]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
210 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
212 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
213 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
214 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
215 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
216 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
217 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
219 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
220 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
222 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
224 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
225 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
226 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
227 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
228 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
229 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
230 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
231 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
232 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
233 | #define SWIGTYPE_p_wxControl swig_types[24] | |
234 | #define SWIGTYPE_p_wxFont swig_types[25] | |
235 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
236 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
237 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
238 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
239 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
240 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
241 | #define SWIGTYPE_p_int swig_types[32] | |
242 | #define SWIGTYPE_p_wxSize swig_types[33] | |
243 | #define SWIGTYPE_p_wxDC swig_types[34] | |
244 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
74a57fcd RD |
245 | #define SWIGTYPE_p_wxVisualAttributes swig_types[36] |
246 | #define SWIGTYPE_p_wxNotifyEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyEvent swig_types[38] | |
248 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[39] | |
249 | #define SWIGTYPE_p_wxAppTraits swig_types[40] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[41] | |
251 | #define SWIGTYPE_p_wxShowEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[43] | |
253 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[44] | |
254 | #define SWIGTYPE_p_wxIconizeEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxActivateEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxMoveEvent swig_types[47] | |
257 | #define SWIGTYPE_p_wxSizeEvent swig_types[48] | |
258 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49] | |
259 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[50] | |
260 | #define SWIGTYPE_p_wxIdleEvent swig_types[51] | |
261 | #define SWIGTYPE_p_wxMenuItem swig_types[52] | |
262 | #define SWIGTYPE_p_wxStaticBox swig_types[53] | |
263 | #define SWIGTYPE_p_long swig_types[54] | |
264 | #define SWIGTYPE_p_wxTIFFHandler swig_types[55] | |
265 | #define SWIGTYPE_p_wxXPMHandler swig_types[56] | |
266 | #define SWIGTYPE_p_wxPNMHandler swig_types[57] | |
267 | #define SWIGTYPE_p_wxJPEGHandler swig_types[58] | |
268 | #define SWIGTYPE_p_wxPCXHandler swig_types[59] | |
269 | #define SWIGTYPE_p_wxGIFHandler swig_types[60] | |
270 | #define SWIGTYPE_p_wxPNGHandler swig_types[61] | |
271 | #define SWIGTYPE_p_wxANIHandler swig_types[62] | |
272 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[63] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[64] | |
274 | #define SWIGTYPE_p_wxCURHandler swig_types[65] | |
275 | #define SWIGTYPE_p_wxICOHandler swig_types[66] | |
276 | #define SWIGTYPE_p_wxBMPHandler swig_types[67] | |
277 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
278 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] | |
280 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[71] | |
281 | #define SWIGTYPE_p_wxZipFSHandler swig_types[72] | |
282 | #define SWIGTYPE_p_wxRect swig_types[73] | |
283 | #define SWIGTYPE_p_wxGBSpan swig_types[74] | |
284 | #define SWIGTYPE_p_wxPropagateOnce swig_types[75] | |
285 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[76] | |
286 | #define SWIGTYPE_p_char swig_types[77] | |
287 | #define SWIGTYPE_p_wxGBPosition swig_types[78] | |
288 | #define SWIGTYPE_p_wxImage swig_types[79] | |
289 | #define SWIGTYPE_p_wxFrame swig_types[80] | |
290 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[81] | |
291 | #define SWIGTYPE_p_wxImageHistogram swig_types[82] | |
292 | #define SWIGTYPE_p_byte swig_types[83] | |
293 | #define SWIGTYPE_p_wxPoint swig_types[84] | |
294 | #define SWIGTYPE_p_wxCursor swig_types[85] | |
295 | #define SWIGTYPE_p_wxObject swig_types[86] | |
296 | #define SWIGTYPE_p_wxPyInputStream swig_types[87] | |
297 | #define SWIGTYPE_p_wxOutputStream swig_types[88] | |
298 | #define SWIGTYPE_p_wxInputStream swig_types[89] | |
299 | #define SWIGTYPE_p_wxDateTime swig_types[90] | |
300 | #define SWIGTYPE_p_wxKeyEvent swig_types[91] | |
301 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
302 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] | |
303 | #define SWIGTYPE_p_wxWindow swig_types[94] | |
304 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
305 | #define SWIGTYPE_p_wxFileSystem swig_types[96] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[97] | |
307 | #define SWIGTYPE_p_wxMenuEvent swig_types[98] | |
308 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[99] | |
309 | #define SWIGTYPE_p_unsigned_char swig_types[100] | |
310 | #define SWIGTYPE_p_wxCloseEvent swig_types[101] | |
311 | #define SWIGTYPE_p_wxEraseEvent swig_types[102] | |
312 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
313 | #define SWIGTYPE_p_wxPyApp swig_types[104] | |
314 | #define SWIGTYPE_p_wxCommandEvent swig_types[105] | |
315 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
316 | #define SWIGTYPE_p_wxPyDropTarget swig_types[107] | |
317 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[108] | |
318 | #define SWIGTYPE_p_wxFocusEvent swig_types[109] | |
319 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[110] | |
320 | #define SWIGTYPE_p_wxControlWithItems swig_types[111] | |
321 | #define SWIGTYPE_p_wxColour swig_types[112] | |
322 | #define SWIGTYPE_p_wxValidator swig_types[113] | |
323 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
324 | static swig_type_info *swig_types[116]; | |
d14a1e28 RD |
325 | |
326 | /* -------- TYPES TABLE (END) -------- */ | |
327 | ||
328 | ||
329 | /*----------------------------------------------- | |
54f9ee45 | 330 | @(target):= _core_.so |
d14a1e28 | 331 | ------------------------------------------------*/ |
54f9ee45 | 332 | #define SWIG_init init_core_ |
d14a1e28 | 333 | |
54f9ee45 | 334 | #define SWIG_name "_core_" |
d14a1e28 | 335 | |
15afbcd0 | 336 | /* Auxiliar swig macros */ |
994141e6 | 337 | |
994141e6 | 338 | #ifdef __cplusplus |
15afbcd0 | 339 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 340 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
341 | #define swig_new_array(type, size) (new type[(size)]) |
342 | #define swig_delete_array(cptr) delete[] cptr | |
343 | #define swig_const_cast(type,a) const_cast<type>(a) | |
344 | #define swig_static_cast(type,a) static_cast<type>(a) | |
345 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 346 | |
994141e6 | 347 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 348 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 349 | #else |
15afbcd0 | 350 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
351 | #endif |
352 | ||
15afbcd0 RD |
353 | #else /* C case */ |
354 | ||
355 | #define SWIGSTATICINLINE(a) static a | |
356 | #define SWIGSTATIC(a) static a | |
357 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
358 | #define swig_delete_array(cptr) free((char*)cptr) | |
359 | #define swig_const_cast(type,a) (type)(a) | |
360 | #define swig_static_cast(type,a) (type)(a) | |
361 | #define swig_reinterpret_cast(type,a) (type)(a) | |
362 | #define swig_numeric_cast(type,a) (type)(a) | |
363 | ||
364 | #endif /* __cplusplus */ | |
994141e6 RD |
365 | |
366 | ||
15afbcd0 RD |
367 | #define SWIG_FromSignedChar PyInt_FromLong |
368 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
369 | #define SWIG_FromShort PyInt_FromLong | |
370 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
371 | #define SWIG_FromInt PyInt_FromLong | |
372 | #define SWIG_FromLong PyInt_FromLong | |
373 | #define SWIG_FromFloat PyFloat_FromDouble | |
374 | #define SWIG_FromDouble PyFloat_FromDouble | |
375 | #define SWIG_FromFloat PyFloat_FromDouble | |
376 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
377 | |
378 | ||
d14a1e28 RD |
379 | #include "wx/wxPython/wxPython_int.h" |
380 | #include "wx/wxPython/pyclasses.h" | |
381 | ||
382 | ||
383 | #ifndef wxPyUSE_EXPORT | |
384 | // Helper functions for dealing with SWIG objects and such. These are | |
385 | // located here so they know about the SWIG types and functions declared | |
386 | // in the wrapper code. | |
387 | ||
388 | #include <wx/hashmap.h> | |
389 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
390 | ||
391 | ||
392 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
393 | // name of a class either looks up the type info in the cache, or scans the | |
394 | // SWIG tables for it. | |
395 | extern PyObject* wxPyPtrTypeMap; | |
396 | static | |
397 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
398 | ||
399 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
400 | ||
401 | if (typeInfoCache == NULL) | |
402 | typeInfoCache = new wxPyTypeInfoHashMap; | |
403 | ||
404 | wxString name(className); | |
405 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
406 | ||
407 | if (! swigType) { | |
408 | // it wasn't in the cache, so look it up from SWIG | |
409 | name.Append(wxT(" *")); | |
410 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
411 | ||
412 | // if it still wasn't found, try looking for a mapped name | |
413 | if (!swigType) { | |
414 | PyObject* item; | |
415 | name = className; | |
416 | ||
417 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
418 | (char*)(const char*)name.mbc_str())) != NULL) { | |
419 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
420 | name.Append(wxT(" *")); | |
421 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
422 | } | |
423 | } | |
424 | if (swigType) { | |
425 | // and add it to the map if found | |
426 | (*typeInfoCache)[className] = swigType; | |
427 | } | |
428 | } | |
429 | return swigType; | |
430 | } | |
431 | ||
432 | ||
433 | // Check if a class name is a type known to SWIG | |
434 | bool wxPyCheckSwigType(const wxChar* className) { | |
435 | ||
436 | swig_type_info* swigType = wxPyFindSwigType(className); | |
437 | return swigType != NULL; | |
438 | } | |
439 | ||
440 | ||
441 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
442 | // object for it. | |
443 | PyObject* wxPyConstructObject(void* ptr, | |
444 | const wxChar* className, | |
445 | int setThisOwn) { | |
446 | ||
447 | swig_type_info* swigType = wxPyFindSwigType(className); | |
448 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
449 | ||
450 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
451 | } | |
452 | ||
453 | ||
454 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
455 | // Ensures that the proxy object is of the specified (or derived) type. If | |
456 | // not able to perform the conversion then a Python exception is set and the | |
e811c8ce | 457 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
458 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
459 | const wxChar* className) { | |
460 | ||
461 | swig_type_info* swigType = wxPyFindSwigType(className); | |
e811c8ce | 462 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
463 | |
464 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
465 | } | |
466 | ||
467 | ||
468 | // Make a SWIGified pointer object suitable for a .this attribute | |
469 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
470 | ||
471 | PyObject* robj = NULL; | |
472 | ||
473 | swig_type_info* swigType = wxPyFindSwigType(className); | |
474 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
475 | ||
476 | #ifdef SWIG_COBJECT_TYPES | |
477 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
478 | #else | |
479 | { | |
480 | char result[1024]; | |
481 | char *r = result; | |
482 | *(r++) = '_'; | |
483 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
484 | strcpy(r, swigType->name); | |
485 | robj = PyString_FromString(result); | |
486 | } | |
487 | #endif | |
488 | ||
489 | return robj; | |
490 | } | |
491 | ||
492 | ||
493 | ||
494 | ||
495 | // Export a C API in a struct. Other modules will be able to load this from | |
121b9a67 RD |
496 | // the wx._core_ module and will then have safe access to these functions, |
497 | // even if they are located in another shared library. | |
d14a1e28 RD |
498 | static wxPyCoreAPI API = { |
499 | ||
500 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
501 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
502 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
503 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
504 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
505 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
506 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
507 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
508 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
509 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
510 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
511 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
512 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
513 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
514 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
515 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
516 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
517 | ||
518 | wxPyCheckSwigType, | |
519 | wxPyConstructObject, | |
520 | wxPyConvertSwigPtr, | |
521 | wxPyMakeSwigPtr, | |
522 | ||
523 | wxPyBeginAllowThreads, | |
524 | wxPyEndAllowThreads, | |
525 | wxPyBeginBlockThreads, | |
526 | wxPyEndBlockThreads, | |
527 | ||
528 | wxPy_ConvertList, | |
529 | ||
530 | wxString_in_helper, | |
531 | Py2wxString, | |
532 | wx2PyString, | |
533 | ||
534 | byte_LIST_helper, | |
535 | int_LIST_helper, | |
536 | long_LIST_helper, | |
537 | string_LIST_helper, | |
538 | wxPoint_LIST_helper, | |
539 | wxBitmap_LIST_helper, | |
540 | wxString_LIST_helper, | |
541 | wxAcceleratorEntry_LIST_helper, | |
542 | ||
543 | wxSize_helper, | |
544 | wxPoint_helper, | |
545 | wxRealPoint_helper, | |
546 | wxRect_helper, | |
547 | wxColour_helper, | |
548 | wxPoint2D_helper, | |
549 | ||
550 | wxPySimple_typecheck, | |
551 | wxColour_typecheck, | |
552 | ||
553 | wxPyCBH_setCallbackInfo, | |
554 | wxPyCBH_findCallback, | |
555 | wxPyCBH_callCallback, | |
556 | wxPyCBH_callCallbackObj, | |
557 | wxPyCBH_delete, | |
558 | ||
559 | wxPyMake_wxObject, | |
560 | wxPyMake_wxSizer, | |
561 | wxPyPtrTypeMap_Add, | |
562 | wxPy2int_seq_helper, | |
563 | wxPy4int_seq_helper, | |
564 | wxArrayString2PyList_helper, | |
565 | wxArrayInt2PyList_helper, | |
566 | ||
567 | wxPyClientData_dtor, | |
568 | wxPyUserData_dtor, | |
569 | wxPyOORClientData_dtor, | |
570 | ||
571 | wxPyCBInputStream_create, | |
572 | ||
573 | wxPyInstance_Check, | |
e3b71cb8 RD |
574 | wxPySwigInstance_Check, |
575 | ||
576 | wxPyCheckForApp | |
d14a1e28 RD |
577 | |
578 | }; | |
579 | ||
580 | #endif | |
581 | ||
582 | ||
d14a1e28 RD |
583 | #if ! wxUSE_HOTKEY |
584 | enum wxHotkeyModifier | |
585 | { | |
586 | wxMOD_NONE = 0, | |
587 | wxMOD_ALT = 1, | |
588 | wxMOD_CONTROL = 2, | |
589 | wxMOD_SHIFT = 4, | |
590 | wxMOD_WIN = 8 | |
591 | }; | |
592 | #define wxEVT_HOTKEY 9999 | |
593 | #endif | |
594 | ||
196addbf | 595 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
596 | wxString wxObject_GetClassName(wxObject *self){ |
597 | return self->GetClassInfo()->GetClassName(); | |
598 | } | |
599 | void wxObject_Destroy(wxObject *self){ | |
600 | delete self; | |
601 | } | |
602 | ||
603 | #ifndef __WXMAC__ | |
604 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
605 | #endif | |
606 | ||
994141e6 | 607 | |
15afbcd0 RD |
608 | #include <limits.h> |
609 | ||
610 | ||
611 | SWIGSTATICINLINE(long) | |
612 | SWIG_CheckLongInRange(long value, const char* type, | |
613 | long min_value, long max_value) | |
614 | { | |
615 | if (!PyErr_Occurred()) { | |
616 | if (value < min_value) { | |
617 | PyObject *err = | |
618 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
619 | value, type, min_value); | |
620 | ||
621 | PyErr_SetObject(PyExc_OverflowError, err); | |
622 | Py_DECREF(err); | |
623 | } else if (value > max_value) { | |
624 | PyObject *err = | |
625 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
626 | value, type, max_value); | |
627 | PyErr_SetObject(PyExc_OverflowError, err); | |
628 | Py_DECREF(err); | |
629 | } | |
630 | } | |
631 | return value; | |
632 | } | |
633 | ||
634 | ||
635 | SWIGSTATICINLINE(long) | |
636 | SWIG_AsLong(PyObject * obj) | |
637 | { | |
69223c70 RD |
638 | if (PyNumber_Check(obj)) |
639 | return PyInt_AsLong(obj); | |
640 | else { | |
641 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
642 | obj->ob_type->tp_name); | |
643 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
644 | Py_DECREF(errmsg); | |
645 | return 0; | |
646 | } | |
15afbcd0 RD |
647 | } |
648 | ||
649 | ||
650 | #if INT_MAX != LONG_MAX | |
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 653 | { |
15afbcd0 RD |
654 | return swig_numeric_cast(int, |
655 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
656 | "int", INT_MIN, INT_MAX)); | |
657 | } | |
658 | #else | |
659 | #define SWIG_AsInt SWIG_AsLong | |
660 | #endif | |
661 | ||
662 | ||
663 | SWIGSTATICINLINE(int) | |
664 | SWIG_CheckInt(PyObject* obj) | |
665 | { | |
666 | SWIG_AsInt(obj); | |
667 | if (PyErr_Occurred()) { | |
668 | PyErr_Clear(); | |
669 | return 0; | |
670 | } else { | |
671 | return 1; | |
672 | } | |
994141e6 RD |
673 | } |
674 | ||
e811c8ce | 675 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 676 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
677 | PyObject* tup = PyTuple_New(2); |
678 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
679 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 680 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
681 | return tup; |
682 | } | |
994141e6 | 683 | |
15afbcd0 RD |
684 | SWIGSTATICINLINE(double) |
685 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 686 | { |
69223c70 RD |
687 | if (PyNumber_Check(obj)) |
688 | return PyFloat_AsDouble(obj); | |
689 | else { | |
690 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
691 | obj->ob_type->tp_name); | |
692 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
693 | Py_DECREF(errmsg); | |
694 | return 0; | |
695 | } | |
15afbcd0 RD |
696 | } |
697 | ||
698 | ||
699 | SWIGSTATICINLINE(int) | |
700 | SWIG_CheckDouble(PyObject* obj) | |
701 | { | |
702 | SWIG_AsDouble(obj); | |
703 | if (PyErr_Occurred()) { | |
704 | PyErr_Clear(); | |
705 | return 0; | |
706 | } else { | |
707 | return 1; | |
708 | } | |
994141e6 RD |
709 | } |
710 | ||
d14a1e28 RD |
711 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
712 | self->x = x; | |
713 | self->y = y; | |
714 | } | |
e811c8ce | 715 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 716 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
717 | PyObject* tup = PyTuple_New(2); |
718 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
719 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 720 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
721 | return tup; |
722 | } | |
994141e6 | 723 | |
15afbcd0 RD |
724 | SWIGSTATICINLINE(int) |
725 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 726 | { |
15afbcd0 RD |
727 | SWIG_AsLong(obj); |
728 | if (PyErr_Occurred()) { | |
729 | PyErr_Clear(); | |
730 | return 0; | |
731 | } else { | |
732 | return 1; | |
733 | } | |
994141e6 RD |
734 | } |
735 | ||
d14a1e28 RD |
736 | void wxPoint_Set(wxPoint *self,long x,long y){ |
737 | self->x = x; | |
738 | self->y = y; | |
739 | } | |
e811c8ce | 740 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 741 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
742 | PyObject* tup = PyTuple_New(2); |
743 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
744 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 745 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
746 | return tup; |
747 | } | |
748 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
749 | self->x = x; | |
750 | self->y = y; | |
751 | self->width = width; | |
752 | self->height = height; | |
753 | } | |
e811c8ce | 754 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 755 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
756 | PyObject* tup = PyTuple_New(4); |
757 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
758 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
759 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
760 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 761 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
762 | return tup; |
763 | } | |
764 | ||
765 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
766 | wxRegion reg1(*r1); | |
767 | wxRegion reg2(*r2); | |
768 | wxRect dest(0,0,0,0); | |
769 | PyObject* obj; | |
770 | ||
771 | reg1.Intersect(reg2); | |
772 | dest = reg1.GetBox(); | |
773 | ||
774 | if (dest != wxRect(0,0,0,0)) { | |
4f89f6a3 | 775 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 776 | wxRect* newRect = new wxRect(dest); |
e811c8ce | 777 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 778 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
779 | return obj; |
780 | } | |
781 | Py_INCREF(Py_None); | |
782 | return Py_None; | |
783 | } | |
784 | ||
785 | ||
786 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
787 | PyObject* o2; | |
788 | PyObject* o3; | |
789 | ||
790 | if (!target) { | |
791 | target = o; | |
792 | } else if (target == Py_None) { | |
793 | Py_DECREF(Py_None); | |
794 | target = o; | |
795 | } else { | |
796 | if (!PyTuple_Check(target)) { | |
797 | o2 = target; | |
798 | target = PyTuple_New(1); | |
799 | PyTuple_SetItem(target, 0, o2); | |
800 | } | |
801 | o3 = PyTuple_New(1); | |
802 | PyTuple_SetItem(o3, 0, o); | |
803 | ||
804 | o2 = target; | |
805 | target = PySequence_Concat(o2, o3); | |
806 | Py_DECREF(o2); | |
807 | Py_DECREF(o3); | |
808 | } | |
809 | return target; | |
810 | } | |
811 | ||
812 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
813 | self->m_x = x; | |
814 | self->m_y = y; | |
815 | } | |
e811c8ce | 816 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 817 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
818 | PyObject* tup = PyTuple_New(2); |
819 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
820 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 821 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
822 | return tup; |
823 | } | |
824 | ||
825 | #include "wx/wxPython/pyistream.h" | |
826 | ||
827 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
828 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
829 | if (wxis) | |
830 | return new wxPyInputStream(wxis); | |
831 | else | |
832 | return NULL; | |
833 | } | |
994141e6 | 834 | |
15afbcd0 RD |
835 | SWIGSTATICINLINE(PyObject*) |
836 | SWIG_FromChar(char c) | |
994141e6 RD |
837 | { |
838 | return PyString_FromStringAndSize(&c,1); | |
839 | } | |
840 | ||
841 | ||
15afbcd0 RD |
842 | SWIGSTATICINLINE(PyObject* ) |
843 | SWIG_FromUnsignedLong(unsigned long value) | |
844 | { | |
845 | return (value > LONG_MAX) ? | |
846 | PyLong_FromUnsignedLong(value) | |
847 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
848 | } | |
849 | ||
850 | ||
851 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
852 | SWIGSTATIC(int) | |
853 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
994141e6 | 854 | { |
15afbcd0 RD |
855 | static swig_type_info* pchar_info = 0; |
856 | int psize = 0; | |
857 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
858 | ||
859 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
860 | PyErr_Clear(); | |
861 | PyString_AsStringAndSize(obj, cptr, &psize); | |
862 | if (PyErr_Occurred()) { | |
863 | PyErr_Clear(); | |
864 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
865 | } | |
866 | if (size) *size = psize; | |
867 | return 0; | |
868 | } else { | |
869 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
870 | return 1; | |
871 | } | |
994141e6 RD |
872 | } |
873 | ||
874 | ||
15afbcd0 RD |
875 | SWIGSTATIC(void) |
876 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
877 | { | |
878 | char* cptr; size_t csize; | |
879 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
880 | if (PyErr_Occurred()) { | |
881 | PyErr_Clear(); | |
882 | PyObject *err = | |
883 | PyString_FromFormat("a char array of size %d is expected", size); | |
884 | PyErr_SetObject(PyExc_TypeError, err); | |
885 | Py_DECREF(err); | |
886 | } else { | |
887 | /* in C (but not in C++) you can do: | |
888 | ||
889 | char x[5] = "hello"; | |
890 | ||
891 | ie, assing the array using an extra '0' char. | |
892 | */ | |
893 | #ifndef __cplusplus | |
894 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
895 | #endif | |
896 | if (csize > size) { | |
897 | PyObject *err = | |
898 | PyString_FromFormat("a char array of maximum size %d is expected", | |
899 | size); | |
900 | PyErr_SetObject(PyExc_TypeError, err); | |
901 | Py_DECREF(err); | |
902 | } else { | |
903 | if (csize) memcpy(carray, cptr, csize); | |
904 | if (csize < size) memset(carray + csize, 0, size - csize); | |
905 | } | |
906 | } | |
907 | } | |
908 | ||
909 | ||
910 | SWIGSTATICINLINE(char) | |
911 | SWIG_AsChar(PyObject *obj) | |
994141e6 RD |
912 | { |
913 | char c = 0; | |
914 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
15afbcd0 RD |
915 | c = swig_numeric_cast(char, |
916 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
917 | "char", CHAR_MIN, CHAR_MAX)); | |
994141e6 | 918 | } else { |
15afbcd0 RD |
919 | SWIG_AsCharArray(obj, &c, 1); |
920 | if (PyErr_Occurred()) { | |
921 | PyErr_Clear(); | |
994141e6 RD |
922 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
923 | } | |
924 | } | |
925 | return c; | |
926 | } | |
927 | ||
15afbcd0 RD |
928 | |
929 | SWIGSTATICINLINE(int) | |
930 | SWIG_CheckChar(PyObject* obj) | |
931 | { | |
932 | SWIG_AsChar(obj); | |
933 | if (PyErr_Occurred()) { | |
934 | PyErr_Clear(); | |
935 | return 0; | |
936 | } else { | |
937 | return 1; | |
938 | } | |
939 | } | |
940 | ||
d14a1e28 RD |
941 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
942 | // We use only strings for the streams, not unicode | |
943 | PyObject* str = PyObject_Str(obj); | |
944 | if (! str) { | |
945 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
946 | return; | |
947 | } | |
948 | self->Write(PyString_AS_STRING(str), | |
949 | PyString_GET_SIZE(str)); | |
950 | Py_DECREF(str); | |
951 | } | |
952 | ||
953 | #include "wx/wxPython/pyistream.h" | |
954 | ||
955 | ||
956 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
957 | { | |
958 | public: | |
959 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
960 | ||
961 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
962 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
963 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
964 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
965 | ||
966 | wxString GetProtocol(const wxString& location) { | |
967 | return wxFileSystemHandler::GetProtocol(location); | |
968 | } | |
969 | ||
970 | wxString GetLeftLocation(const wxString& location) { | |
971 | return wxFileSystemHandler::GetLeftLocation(location); | |
972 | } | |
973 | ||
974 | wxString GetAnchor(const wxString& location) { | |
975 | return wxFileSystemHandler::GetAnchor(location); | |
976 | } | |
977 | ||
978 | wxString GetRightLocation(const wxString& location) { | |
979 | return wxFileSystemHandler::GetRightLocation(location); | |
980 | } | |
981 | ||
982 | wxString GetMimeTypeFromExt(const wxString& location) { | |
983 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
984 | } | |
985 | ||
986 | PYPRIVATE; | |
987 | }; | |
988 | ||
989 | ||
990 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
991 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
992 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
993 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
994 | ||
995 | ||
15afbcd0 RD |
996 | SWIGSTATICINLINE(bool) |
997 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
998 | { |
999 | return PyObject_IsTrue(obj) ? true : false; | |
1000 | } | |
1001 | ||
1002 | ||
15afbcd0 RD |
1003 | SWIGSTATICINLINE(int) |
1004 | SWIG_CheckBool(PyObject* obj) | |
1005 | { | |
1006 | SWIG_AsBool(obj); | |
1007 | if (PyErr_Occurred()) { | |
1008 | PyErr_Clear(); | |
1009 | return 0; | |
1010 | } else { | |
1011 | return 1; | |
1012 | } | |
1013 | } | |
1014 | ||
1015 | ||
d14a1e28 RD |
1016 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1017 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1018 | return fname.GetFullPath(); | |
1019 | } | |
1020 | ||
1021 | ||
1022 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1023 | wxImage& image, | |
1024 | long type) { | |
1025 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1026 | } | |
1027 | ||
1028 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1029 | const wxBitmap& bitmap, | |
1030 | long type) { | |
1031 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1032 | } | |
1033 | ||
1034 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1035 | PyObject* data) { | |
1036 | wxMemoryFSHandler::AddFile(filename, | |
1037 | // TODO: Verify data type | |
1038 | (void*)PyString_AsString(data), | |
1039 | (size_t)PyString_Size(data)); | |
1040 | } | |
1041 | ||
1042 | ||
1043 | #include "wx/wxPython/pyistream.h" | |
1044 | ||
994141e6 | 1045 | |
15afbcd0 RD |
1046 | SWIGSTATICINLINE(unsigned long) |
1047 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1048 | unsigned long max_value) | |
1049 | { | |
1050 | if (!PyErr_Occurred()) { | |
1051 | if (value > max_value) { | |
1052 | PyObject *err = | |
1053 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1054 | value, type, max_value); | |
1055 | PyErr_SetObject(PyExc_OverflowError, err); | |
1056 | Py_DECREF(err); | |
1057 | } | |
1058 | } | |
1059 | return value; | |
1060 | } | |
1061 | ||
1062 | ||
1063 | SWIGSTATICINLINE(unsigned long) | |
1064 | SWIG_AsUnsignedLong(PyObject * obj) | |
1065 | { | |
1066 | if (PyLong_Check(obj)) { | |
1067 | return PyLong_AsUnsignedLong(obj); | |
1068 | } else { | |
69223c70 | 1069 | long i = SWIG_AsLong(obj); |
15afbcd0 | 1070 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1071 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
1072 | } |
1073 | return i; | |
1074 | } | |
1075 | } | |
1076 | ||
1077 | ||
1078 | SWIGSTATICINLINE(unsigned char) | |
1079 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 1080 | { |
15afbcd0 RD |
1081 | return swig_numeric_cast(unsigned char, |
1082 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1083 | "unsigned char", UCHAR_MAX)); | |
1084 | } | |
1085 | ||
1086 | ||
1087 | SWIGSTATICINLINE(int) | |
1088 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1089 | { | |
1090 | SWIG_AsUnsignedChar(obj); | |
1091 | if (PyErr_Occurred()) { | |
1092 | PyErr_Clear(); | |
1093 | return 0; | |
1094 | } else { | |
1095 | return 1; | |
1096 | } | |
994141e6 RD |
1097 | } |
1098 | ||
66c033b4 | 1099 | wxImage *new_wxImage(int width,int height,bool clear){ |
d14a1e28 RD |
1100 | if (width > 0 && height > 0) |
1101 | return new wxImage(width, height, clear); | |
1102 | else | |
1103 | return new wxImage; | |
1104 | } | |
1105 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
1106 | return new wxImage(bitmap.ConvertToImage()); | |
1107 | } | |
1108 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1109 | // Copy the source data so the wxImage can clean it up later | |
1110 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1111 | if (copy == NULL) { | |
1112 | PyErr_NoMemory(); | |
1113 | return NULL; | |
1114 | } | |
1115 | memcpy(copy, data, width*height*3); | |
e811c8ce | 1116 | return new wxImage(width, height, copy, False); |
d14a1e28 | 1117 | } |
b2df227b RD |
1118 | wxSize wxImage_GetSize(wxImage *self){ |
1119 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1120 | return size; | |
1121 | } | |
d14a1e28 RD |
1122 | PyObject *wxImage_GetData(wxImage *self){ |
1123 | unsigned char* data = self->GetData(); | |
1124 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1125 | PyObject* rv; | |
1126 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1127 | return rv; | |
1128 | } | |
1129 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1130 | unsigned char* dataPtr; | |
1131 | ||
1132 | if (! PyString_Check(data)) { | |
1133 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1134 | return /* NULL */ ; | |
1135 | } | |
1136 | ||
1137 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1138 | dataPtr = (unsigned char*) malloc(len); | |
1139 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1140 | self->SetData(dataPtr); | |
1141 | // wxImage takes ownership of dataPtr... | |
1142 | } | |
1143 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1144 | unsigned char* data = self->GetData(); | |
1145 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1146 | PyObject* rv; | |
1147 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1148 | return rv; | |
1149 | } | |
1150 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1151 | unsigned char* buffer; | |
1152 | int size; | |
1153 | ||
4f89f6a3 | 1154 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1155 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1156 | goto done; | |
1157 | ||
1158 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1159 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1160 | goto done; | |
1161 | } | |
1162 | self->SetData(buffer); | |
1163 | done: | |
4f89f6a3 | 1164 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1165 | } |
1166 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1167 | unsigned char* data = self->GetAlpha(); | |
1168 | if (! data) { | |
1169 | RETURN_NONE(); | |
1170 | } else { | |
1171 | int len = self->GetWidth() * self->GetHeight(); | |
1172 | PyObject* rv; | |
1173 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1174 | return rv; | |
1175 | } | |
1176 | } | |
1177 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1178 | unsigned char* dataPtr; | |
1179 | ||
1180 | if (! PyString_Check(data)) { | |
1181 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1182 | return /* NULL */ ; | |
1183 | } | |
1184 | ||
1185 | size_t len = self->GetWidth() * self->GetHeight(); | |
1186 | dataPtr = (unsigned char*) malloc(len); | |
1187 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1188 | self->SetAlpha(dataPtr); | |
1189 | // wxImage takes ownership of dataPtr... | |
1190 | } | |
1191 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1192 | unsigned char* data = self->GetAlpha(); | |
1193 | int len = self->GetWidth() * self->GetHeight(); | |
1194 | PyObject* rv; | |
1195 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1196 | return rv; | |
1197 | } | |
1198 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1199 | unsigned char* buffer; | |
1200 | int size; | |
1201 | ||
4f89f6a3 | 1202 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1203 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1204 | goto done; | |
1205 | ||
1206 | if (size != self->GetWidth() * self->GetHeight()) { | |
1207 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1208 | goto done; | |
1209 | } | |
1210 | self->SetAlpha(buffer); | |
1211 | done: | |
4f89f6a3 | 1212 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1213 | } |
15afbcd0 RD |
1214 | |
1215 | SWIGSTATICINLINE(int) | |
1216 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1217 | { | |
1218 | SWIG_AsUnsignedLong(obj); | |
1219 | if (PyErr_Occurred()) { | |
1220 | PyErr_Clear(); | |
1221 | return 0; | |
1222 | } else { | |
1223 | return 1; | |
1224 | } | |
1225 | } | |
1226 | ||
d14a1e28 RD |
1227 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1228 | wxBitmap bitmap(*self); | |
1229 | return bitmap; | |
1230 | } | |
1231 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1232 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1233 | wxBitmap bitmap( mono, 1 ); | |
1234 | return bitmap; | |
1235 | } | |
1236 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1237 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1238 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1239 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1240 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1241 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1242 | if (PyCallable_Check(func)) { | |
1243 | self->Connect(id, lastId, eventType, | |
1244 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1245 | new wxPyCallback(func)); | |
1246 | } | |
1247 | else if (func == Py_None) { | |
1248 | self->Disconnect(id, lastId, eventType, | |
1249 | (wxObjectEventFunction) | |
1250 | &wxPyCallback::EventThunker); | |
1251 | } | |
1252 | else { | |
a95a7133 RD |
1253 | wxPyBLOCK_THREADS( |
1254 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
d14a1e28 RD |
1255 | } |
1256 | } | |
1257 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1258 | return self->Disconnect(id, lastId, eventType, | |
1259 | (wxObjectEventFunction) | |
1260 | &wxPyCallback::EventThunker); | |
1261 | } | |
1262 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1263 | if (_self && _self != Py_None) { | |
1264 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1265 | } | |
1266 | else { | |
1267 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1268 | if (data) { | |
1269 | self->SetClientObject(NULL); // This will delete it too | |
1270 | } | |
1271 | } | |
1272 | } | |
1273 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
3b7224dc RD |
1274 | #if wxUSE_UNICODE |
1275 | return self->m_uniChar; | |
1276 | #else | |
d14a1e28 | 1277 | return 0; |
3b7224dc | 1278 | #endif |
d14a1e28 | 1279 | } |
994141e6 | 1280 | |
15afbcd0 RD |
1281 | #if UINT_MAX < LONG_MAX |
1282 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1283 | #else | |
1284 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1285 | #endif | |
994141e6 RD |
1286 | |
1287 | ||
15afbcd0 RD |
1288 | #if UINT_MAX != ULONG_MAX |
1289 | SWIGSTATICINLINE(unsigned int) | |
1290 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 1291 | { |
15afbcd0 RD |
1292 | return swig_numeric_cast(unsigned int, |
1293 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1294 | "unsigned int", UINT_MAX)); | |
1295 | } | |
1296 | #else | |
1297 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1298 | #endif | |
1299 | ||
1300 | ||
1301 | SWIGSTATICINLINE(int) | |
1302 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1303 | { | |
1304 | SWIG_AsUnsignedInt(obj); | |
1305 | if (PyErr_Occurred()) { | |
1306 | PyErr_Clear(); | |
1307 | return 0; | |
1308 | } else { | |
1309 | return 1; | |
1310 | } | |
994141e6 RD |
1311 | } |
1312 | ||
d14a1e28 RD |
1313 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1314 | self->m_size = size; | |
1315 | } | |
1316 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1317 | self->m_pos = pos; | |
1318 | } | |
1319 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1320 | int count = self->GetNumberOfFiles(); | |
1321 | wxString* files = self->GetFiles(); | |
1322 | PyObject* list = PyList_New(count); | |
1323 | ||
1324 | if (!list) { | |
1325 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1326 | return NULL; | |
1327 | } | |
1328 | ||
1329 | for (int i=0; i<count; i++) { | |
1fc9204a | 1330 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1331 | } |
1332 | return list; | |
1333 | } | |
1334 | ||
1335 | ||
1336 | wxPyApp *new_wxPyApp(){ | |
1337 | wxPythonApp = new wxPyApp(); | |
1338 | return wxPythonApp; | |
1339 | } | |
39f61e25 | 1340 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1341 | |
1342 | void wxApp_CleanUp() { | |
1343 | __wxPyCleanup(); | |
1344 | } | |
1345 | ||
1346 | ||
db3e571a | 1347 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d14a1e28 RD |
1348 | |
1349 | ||
1350 | ||
e811c8ce | 1351 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
74a57fcd | 1352 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
22bfe96c | 1353 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d14a1e28 RD |
1354 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1355 | wxWindowList& list = self->GetChildren(); | |
1356 | return wxPy_ConvertList(&list); | |
1357 | } | |
1358 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
74a57fcd RD |
1359 | #if wxUSE_HOTKEY |
1360 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1361 | #else | |
e811c8ce | 1362 | return False; |
74a57fcd | 1363 | #endif |
d14a1e28 RD |
1364 | } |
1365 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1366 | ||
1367 | ||
1368 | ||
e811c8ce | 1369 | return False; |
d14a1e28 RD |
1370 | |
1371 | } | |
1372 | long wxWindow_GetHandle(wxWindow *self){ | |
1373 | return wxPyGetWinHandle(self); | |
1374 | } | |
1375 | ||
1376 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1377 | return wxWindow::FindWindowById(id, parent); | |
1378 | } | |
1379 | ||
1380 | wxWindow* wxFindWindowByName( const wxString& name, | |
1381 | const wxWindow *parent = NULL ) { | |
1382 | return wxWindow::FindWindowByName(name, parent); | |
1383 | } | |
1384 | ||
1385 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1386 | const wxWindow *parent = NULL ) { | |
1387 | return wxWindow::FindWindowByLabel(label, parent); | |
1388 | } | |
1389 | ||
1390 | ||
d14a1e28 | 1391 | #ifdef __WXMSW__ |
4276dc52 RD |
1392 | #include <wx/msw/private.h> // to get wxGetWindowId |
1393 | #endif | |
1394 | ||
1395 | ||
1396 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1397 | #ifdef __WXMSW__ | |
1398 | WXHWND hWnd = (WXHWND)_hWnd; | |
1399 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1400 | wxWindow* win = new wxWindow; |
4276dc52 RD |
1401 | parent->AddChild(win); |
1402 | win->SetEventHandler(win); | |
1403 | win->SetHWND(hWnd); | |
1404 | win->SetId(id); | |
1405 | win->SubclassWin(hWnd); | |
1406 | win->AdoptAttributesFromHWND(); | |
1407 | win->SetupColours(); | |
d14a1e28 RD |
1408 | return win; |
1409 | #else | |
39f61e25 | 1410 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1411 | return NULL; |
1412 | #endif | |
1413 | } | |
1414 | ||
1415 | ||
1416 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1417 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1418 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1419 | ||
1420 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1421 | ||
1422 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1423 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1424 | wxMenuItemList& list = self->GetMenuItems(); | |
1425 | return wxPy_ConvertList(&list); | |
1426 | } | |
1427 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1428 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1429 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1430 | if (clientData) { | |
1431 | wxPyClientData* data = new wxPyClientData(clientData); | |
1432 | return self->Append(item, data); | |
1433 | } else | |
1434 | return self->Append(item); | |
1435 | } | |
1436 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1437 | if (clientData) { | |
1438 | wxPyClientData* data = new wxPyClientData(clientData); | |
1439 | return self->Insert(item, pos, data); | |
1440 | } else | |
1441 | return self->Insert(item, pos); | |
1442 | } | |
1443 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1444 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1445 | if (data) { | |
1446 | Py_INCREF(data->m_obj); | |
1447 | return data->m_obj; | |
1448 | } else { | |
1449 | Py_INCREF(Py_None); | |
1450 | return Py_None; | |
1451 | } | |
1452 | } | |
1453 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1454 | wxPyClientData* data = new wxPyClientData(clientData); | |
1455 | self->SetClientObject(n, data); | |
1456 | } | |
1457 | ||
1458 | ||
248ed943 RD |
1459 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1460 | wxPyUserData* data = NULL; | |
1461 | if ( userData ) { | |
1462 | bool blocked = wxPyBeginBlockThreads(); | |
1463 | data = new wxPyUserData(userData); | |
1464 | wxPyEndBlockThreads(blocked); | |
1465 | } | |
1466 | return new wxSizerItem(window, proportion, flag, border, data); | |
1467 | } | |
1468 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1469 | wxPyUserData* data = NULL; | |
1470 | if ( userData ) { | |
1471 | bool blocked = wxPyBeginBlockThreads(); | |
1472 | data = new wxPyUserData(userData); | |
1473 | wxPyEndBlockThreads(blocked); | |
1474 | } | |
1475 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1476 | } | |
1477 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1478 | wxPyUserData* data = NULL; | |
1479 | if ( userData ) { | |
1480 | bool blocked = wxPyBeginBlockThreads(); | |
1481 | data = new wxPyUserData(userData); | |
1482 | wxPyEndBlockThreads(blocked); | |
1483 | } | |
1484 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1485 | } | |
994141e6 | 1486 | |
15afbcd0 RD |
1487 | #include <float.h> |
1488 | ||
994141e6 | 1489 | SWIGSTATIC(float) |
15afbcd0 RD |
1490 | SWIG_FloatCast(double value) |
1491 | { | |
1492 | float f = 0; | |
1493 | if (!PyErr_Occurred()) { | |
1494 | if (value < FLT_MIN) { | |
1495 | PyObject *err = | |
1496 | PyString_FromFormat("value %g is less than float minimum %g", | |
1497 | value, FLT_MIN); | |
1498 | PyErr_SetObject(PyExc_OverflowError, err); | |
1499 | Py_DECREF(err); | |
1500 | } else if (value > FLT_MAX) { | |
1501 | PyObject *err = | |
1502 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1503 | value, FLT_MAX); | |
1504 | PyErr_SetObject(PyExc_OverflowError, err); | |
1505 | Py_DECREF(err); | |
1506 | } else { | |
1507 | f = swig_numeric_cast(float, value); | |
1508 | } | |
1509 | } | |
1510 | return f; | |
1511 | } | |
1512 | ||
1513 | ||
1514 | SWIGSTATICINLINE(float) | |
1515 | SWIG_AsFloat(PyObject *obj) | |
994141e6 | 1516 | { |
15afbcd0 RD |
1517 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1518 | } | |
1519 | ||
1520 | ||
1521 | SWIGSTATICINLINE(int) | |
1522 | SWIG_CheckFloat(PyObject* obj) | |
1523 | { | |
1524 | SWIG_AsFloat(obj); | |
1525 | if (PyErr_Occurred()) { | |
1526 | PyErr_Clear(); | |
1527 | return 0; | |
1528 | } else { | |
1529 | return 1; | |
1530 | } | |
994141e6 RD |
1531 | } |
1532 | ||
d14a1e28 RD |
1533 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1534 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1535 | if (data) { | |
1536 | Py_INCREF(data->m_obj); | |
1537 | return data->m_obj; | |
1538 | } else { | |
1539 | Py_INCREF(Py_None); | |
1540 | return Py_None; | |
1541 | } | |
1542 | } | |
1543 | ||
1544 | // Figure out the type of the sizer item | |
1545 | ||
1546 | struct wxPySizerItemInfo { | |
1547 | wxPySizerItemInfo() | |
e811c8ce RD |
1548 | : window(NULL), sizer(NULL), gotSize(False), |
1549 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1550 | {} |
1551 | ||
1552 | wxWindow* window; | |
1553 | wxSizer* sizer; | |
1554 | bool gotSize; | |
1555 | wxSize size; | |
1556 | bool gotPos; | |
1557 | int pos; | |
1558 | }; | |
1559 | ||
1560 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1561 | ||
1562 | wxPySizerItemInfo info; | |
1563 | wxSize size; | |
1564 | wxSize* sizePtr = &size; | |
1565 | ||
1566 | // Find out what the type of the item is | |
1567 | // try wxWindow | |
1568 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1569 | PyErr_Clear(); | |
1570 | info.window = NULL; | |
1571 | ||
1572 | // try wxSizer | |
1573 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1574 | PyErr_Clear(); | |
1575 | info.sizer = NULL; | |
1576 | ||
1577 | // try wxSize or (w,h) | |
1578 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1579 | info.size = *sizePtr; | |
e811c8ce | 1580 | info.gotSize = True; |
d14a1e28 RD |
1581 | } |
1582 | ||
1583 | // or a single int | |
1584 | if (checkIdx && PyInt_Check(item)) { | |
1585 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1586 | info.gotPos = True; |
d14a1e28 RD |
1587 | } |
1588 | } | |
1589 | } | |
1590 | ||
1591 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1592 | // no expected type, figure out what kind of error message to generate | |
1593 | if ( !checkSize && !checkIdx ) | |
1594 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1595 | else if ( checkSize && !checkIdx ) | |
1596 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1597 | else if ( !checkSize && checkIdx) | |
1598 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1599 | else | |
1600 | // can this one happen? | |
1601 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1602 | } | |
1603 | ||
1604 | return info; | |
1605 | } | |
1606 | ||
1607 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1608 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1609 | } | |
1610 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1611 | ||
1612 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1613 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1614 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1615 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1616 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1617 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1618 | |
1619 | // Now call the real Add method if a valid item type was found | |
1620 | if ( info.window ) | |
1621 | self->Add(info.window, proportion, flag, border, data); | |
1622 | else if ( info.sizer ) | |
1623 | self->Add(info.sizer, proportion, flag, border, data); | |
1624 | else if (info.gotSize) | |
1625 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1626 | proportion, flag, border, data); | |
1627 | } | |
1628 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1629 | ||
1630 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1631 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1632 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1633 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1634 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1635 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1636 | |
1637 | // Now call the real Insert method if a valid item type was found | |
1638 | if ( info.window ) | |
1639 | self->Insert(before, info.window, proportion, flag, border, data); | |
1640 | else if ( info.sizer ) | |
1641 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1642 | else if (info.gotSize) | |
1643 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1644 | proportion, flag, border, data); | |
1645 | } | |
1646 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1647 | ||
1648 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1649 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1650 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1651 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1652 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1653 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1654 | |
1655 | // Now call the real Prepend method if a valid item type was found | |
1656 | if ( info.window ) | |
1657 | self->Prepend(info.window, proportion, flag, border, data); | |
1658 | else if ( info.sizer ) | |
1659 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1660 | else if (info.gotSize) | |
1661 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1662 | proportion, flag, border, data); | |
1663 | } | |
1664 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1665 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1666 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1667 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1668 | if ( info.window ) |
1669 | return self->Remove(info.window); | |
1670 | else if ( info.sizer ) | |
1671 | return self->Remove(info.sizer); | |
1672 | else if ( info.gotPos ) | |
1673 | return self->Remove(info.pos); | |
1674 | else | |
e811c8ce | 1675 | return False; |
d14a1e28 | 1676 | } |
1c0f361b RD |
1677 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1678 | bool blocked = wxPyBeginBlockThreads(); | |
1679 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1680 | wxPyEndBlockThreads(blocked); | |
1681 | if ( info.window ) | |
1682 | return self->Detach(info.window); | |
1683 | else if ( info.sizer ) | |
1684 | return self->Detach(info.sizer); | |
1685 | else if ( info.gotPos ) | |
1686 | return self->Detach(info.pos); | |
1687 | else | |
1688 | return False; | |
1689 | } | |
e811c8ce | 1690 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1691 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1692 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1693 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1694 | if ( info.window ) |
1695 | self->SetItemMinSize(info.window, size); | |
1696 | else if ( info.sizer ) | |
1697 | self->SetItemMinSize(info.sizer, size); | |
1698 | else if ( info.gotPos ) | |
1699 | self->SetItemMinSize(info.pos, size); | |
1700 | } | |
1701 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1702 | wxSizerItemList& list = self->GetChildren(); | |
1703 | return wxPy_ConvertList(&list); | |
1704 | } | |
1705 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
03e37cd5 | 1706 | bool blocked = wxPyBeginBlockThreads(); |
248ed943 | 1707 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
03e37cd5 | 1708 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1709 | if ( info.window ) |
1710 | self->Show(info.window, show); | |
1711 | else if ( info.sizer ) | |
1712 | self->Show(info.sizer, show); | |
248ed943 RD |
1713 | else if ( info.gotPos ) |
1714 | self->Show(info.pos, show); | |
d14a1e28 RD |
1715 | } |
1716 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
03e37cd5 | 1717 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1718 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
03e37cd5 | 1719 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1720 | if ( info.window ) |
1721 | return self->IsShown(info.window); | |
1722 | else if ( info.sizer ) | |
1723 | return self->IsShown(info.sizer); | |
248ed943 RD |
1724 | else if ( info.gotPos ) |
1725 | return self->IsShown(info.pos); | |
d14a1e28 | 1726 | else |
e811c8ce | 1727 | return False; |
d14a1e28 RD |
1728 | } |
1729 | ||
1730 | // See pyclasses.h | |
1731 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1732 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1733 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1739 | { | |
4f89f6a3 RD |
1740 | if (source == Py_None) { |
1741 | **obj = wxGBPosition(-1,-1); | |
1742 | return True; | |
1743 | } | |
d14a1e28 RD |
1744 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1745 | } | |
1746 | ||
1747 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1748 | { | |
4f89f6a3 RD |
1749 | if (source == Py_None) { |
1750 | **obj = wxGBSpan(-1,-1); | |
1751 | return True; | |
1752 | } | |
d14a1e28 RD |
1753 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1754 | } | |
1755 | ||
1756 | ||
e811c8ce RD |
1757 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1758 | self->SetRow(row); | |
1759 | self->SetCol(col); | |
1760 | } | |
1761 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1762 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1763 | PyObject* tup = PyTuple_New(2); |
1764 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1765 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1766 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1767 | return tup; |
1768 | } | |
e811c8ce RD |
1769 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1770 | self->SetRowspan(rowspan); | |
1771 | self->SetColspan(colspan); | |
1772 | } | |
1773 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1774 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1775 | PyObject* tup = PyTuple_New(2); |
1776 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1777 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1778 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1779 | return tup; |
1780 | } | |
248ed943 RD |
1781 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1782 | wxPyUserData* data = NULL; | |
1783 | if ( userData ) { | |
1784 | bool blocked = wxPyBeginBlockThreads(); | |
1785 | data = new wxPyUserData(userData); | |
1786 | wxPyEndBlockThreads(blocked); | |
1787 | } | |
1788 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
1789 | } | |
1790 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1791 | wxPyUserData* data = NULL; | |
1792 | if ( userData ) { | |
1793 | bool blocked = wxPyBeginBlockThreads(); | |
1794 | data = new wxPyUserData(userData); | |
1795 | wxPyEndBlockThreads(blocked); | |
1796 | } | |
1797 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
1798 | } | |
1799 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1800 | wxPyUserData* data = NULL; | |
1801 | if ( userData ) { | |
1802 | bool blocked = wxPyBeginBlockThreads(); | |
1803 | data = new wxPyUserData(userData); | |
1804 | wxPyEndBlockThreads(blocked); | |
1805 | } | |
1806 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
1807 | } | |
1808 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
1809 | int row, col; | |
1810 | self->GetEndPos(row, col); | |
1811 | return wxGBPosition(row, col); | |
1812 | } | |
d14a1e28 RD |
1813 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1814 | ||
1815 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1816 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1817 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1818 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1819 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1820 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1821 | |
1822 | // Now call the real Add method if a valid item type was found | |
1823 | if ( info.window ) | |
1824 | return self->Add(info.window, pos, span, flag, border, data); | |
1825 | else if ( info.sizer ) | |
1826 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1827 | else if (info.gotSize) | |
1828 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1829 | pos, span, flag, border, data); | |
e811c8ce | 1830 | return False; |
d14a1e28 RD |
1831 | } |
1832 | ||
1833 | ||
1834 | #ifdef __cplusplus | |
1835 | extern "C" { | |
1836 | #endif | |
196addbf RD |
1837 | static int _wrap_EmptyString_set(PyObject *_val) { |
1838 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1839 | return 1; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_EmptyString_get() { | |
1844 | PyObject *pyobj; | |
1845 | ||
1846 | { | |
1847 | #if wxUSE_UNICODE | |
1848 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1849 | #else | |
1850 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1851 | #endif | |
1852 | } | |
1853 | return pyobj; | |
1854 | } | |
1855 | ||
1856 | ||
d14a1e28 RD |
1857 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1858 | PyObject *resultobj; | |
1859 | wxObject *arg1 = (wxObject *) 0 ; | |
1860 | wxString result; | |
1861 | PyObject * obj0 = 0 ; | |
1862 | char *kwnames[] = { | |
1863 | (char *) "self", NULL | |
1864 | }; | |
1865 | ||
1866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1869 | { |
1870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1871 | result = wxObject_GetClassName(arg1); | |
1872 | ||
1873 | wxPyEndAllowThreads(__tstate); | |
1874 | if (PyErr_Occurred()) SWIG_fail; | |
1875 | } | |
1876 | { | |
1877 | #if wxUSE_UNICODE | |
1878 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1879 | #else | |
1880 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1881 | #endif | |
1882 | } | |
1883 | return resultobj; | |
1884 | fail: | |
1885 | return NULL; | |
1886 | } | |
1887 | ||
1888 | ||
1889 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1890 | PyObject *resultobj; | |
1891 | wxObject *arg1 = (wxObject *) 0 ; | |
1892 | PyObject * obj0 = 0 ; | |
1893 | char *kwnames[] = { | |
1894 | (char *) "self", NULL | |
1895 | }; | |
1896 | ||
1897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1900 | { |
1901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1902 | wxObject_Destroy(arg1); | |
1903 | ||
1904 | wxPyEndAllowThreads(__tstate); | |
1905 | if (PyErr_Occurred()) SWIG_fail; | |
1906 | } | |
1907 | Py_INCREF(Py_None); resultobj = Py_None; | |
1908 | return resultobj; | |
1909 | fail: | |
1910 | return NULL; | |
1911 | } | |
1912 | ||
1913 | ||
1914 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1915 | PyObject *obj; | |
1916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1917 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1918 | Py_INCREF(obj); | |
1919 | return Py_BuildValue((char *)""); | |
1920 | } | |
1921 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1922 | PyObject *resultobj; | |
1923 | wxSize *arg1 = (wxSize *) 0 ; | |
1924 | int arg2 ; | |
1925 | PyObject * obj0 = 0 ; | |
994141e6 | 1926 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1927 | char *kwnames[] = { |
1928 | (char *) "self",(char *) "x", NULL | |
1929 | }; | |
1930 | ||
994141e6 | 1931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1934 | arg2 = (int) SWIG_AsInt(obj1); | |
1935 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1936 | if (arg1) (arg1)->x = arg2; |
1937 | ||
1938 | Py_INCREF(Py_None); resultobj = Py_None; | |
1939 | return resultobj; | |
1940 | fail: | |
1941 | return NULL; | |
1942 | } | |
1943 | ||
1944 | ||
1945 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1946 | PyObject *resultobj; | |
1947 | wxSize *arg1 = (wxSize *) 0 ; | |
1948 | int result; | |
1949 | PyObject * obj0 = 0 ; | |
1950 | char *kwnames[] = { | |
1951 | (char *) "self", NULL | |
1952 | }; | |
1953 | ||
1954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1957 | result = (int) ((arg1)->x); |
1958 | ||
15afbcd0 | 1959 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1960 | return resultobj; |
1961 | fail: | |
1962 | return NULL; | |
1963 | } | |
1964 | ||
1965 | ||
1966 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1967 | PyObject *resultobj; | |
1968 | wxSize *arg1 = (wxSize *) 0 ; | |
1969 | int arg2 ; | |
1970 | PyObject * obj0 = 0 ; | |
994141e6 | 1971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1972 | char *kwnames[] = { |
1973 | (char *) "self",(char *) "y", NULL | |
1974 | }; | |
1975 | ||
994141e6 | 1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1979 | arg2 = (int) SWIG_AsInt(obj1); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1981 | if (arg1) (arg1)->y = arg2; |
1982 | ||
1983 | Py_INCREF(Py_None); resultobj = Py_None; | |
1984 | return resultobj; | |
1985 | fail: | |
1986 | return NULL; | |
1987 | } | |
1988 | ||
1989 | ||
1990 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1991 | PyObject *resultobj; | |
1992 | wxSize *arg1 = (wxSize *) 0 ; | |
1993 | int result; | |
1994 | PyObject * obj0 = 0 ; | |
1995 | char *kwnames[] = { | |
1996 | (char *) "self", NULL | |
1997 | }; | |
1998 | ||
1999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2002 | result = (int) ((arg1)->y); |
2003 | ||
15afbcd0 | 2004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2005 | return resultobj; |
2006 | fail: | |
2007 | return NULL; | |
2008 | } | |
2009 | ||
2010 | ||
2011 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2012 | PyObject *resultobj; | |
2013 | int arg1 = (int) 0 ; | |
2014 | int arg2 = (int) 0 ; | |
2015 | wxSize *result; | |
994141e6 RD |
2016 | PyObject * obj0 = 0 ; |
2017 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2018 | char *kwnames[] = { |
2019 | (char *) "w",(char *) "h", NULL | |
2020 | }; | |
2021 | ||
994141e6 RD |
2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
2023 | if (obj0) { | |
15afbcd0 RD |
2024 | arg1 = (int) SWIG_AsInt(obj0); |
2025 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2026 | } |
2027 | if (obj1) { | |
15afbcd0 RD |
2028 | arg2 = (int) SWIG_AsInt(obj1); |
2029 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2030 | } |
d14a1e28 RD |
2031 | { |
2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2033 | result = (wxSize *)new wxSize(arg1,arg2); | |
2034 | ||
2035 | wxPyEndAllowThreads(__tstate); | |
2036 | if (PyErr_Occurred()) SWIG_fail; | |
2037 | } | |
15afbcd0 | 2038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2039 | return resultobj; |
2040 | fail: | |
2041 | return NULL; | |
2042 | } | |
2043 | ||
2044 | ||
2045 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2046 | PyObject *resultobj; | |
2047 | wxSize *arg1 = (wxSize *) 0 ; | |
2048 | PyObject * obj0 = 0 ; | |
2049 | char *kwnames[] = { | |
2050 | (char *) "self", NULL | |
2051 | }; | |
2052 | ||
2053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2056 | { |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2058 | delete arg1; | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
2061 | if (PyErr_Occurred()) SWIG_fail; | |
2062 | } | |
2063 | Py_INCREF(Py_None); resultobj = Py_None; | |
2064 | return resultobj; | |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2071 | PyObject *resultobj; | |
2072 | wxSize *arg1 = (wxSize *) 0 ; | |
2073 | wxSize *arg2 = 0 ; | |
2074 | bool result; | |
2075 | wxSize temp2 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | PyObject * obj1 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self",(char *) "sz", NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2085 | { |
2086 | arg2 = &temp2; | |
2087 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2088 | } | |
2089 | { | |
2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2091 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2092 | |
2093 | wxPyEndAllowThreads(__tstate); | |
2094 | if (PyErr_Occurred()) SWIG_fail; | |
2095 | } | |
4f89f6a3 RD |
2096 | { |
2097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2098 | } | |
d14a1e28 RD |
2099 | return resultobj; |
2100 | fail: | |
2101 | return NULL; | |
2102 | } | |
2103 | ||
2104 | ||
2105 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2106 | PyObject *resultobj; | |
2107 | wxSize *arg1 = (wxSize *) 0 ; | |
2108 | wxSize *arg2 = 0 ; | |
2109 | bool result; | |
2110 | wxSize temp2 ; | |
2111 | PyObject * obj0 = 0 ; | |
2112 | PyObject * obj1 = 0 ; | |
2113 | char *kwnames[] = { | |
2114 | (char *) "self",(char *) "sz", NULL | |
2115 | }; | |
2116 | ||
2117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2120 | { |
2121 | arg2 = &temp2; | |
2122 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2123 | } | |
2124 | { | |
2125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2126 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2127 | |
2128 | wxPyEndAllowThreads(__tstate); | |
2129 | if (PyErr_Occurred()) SWIG_fail; | |
2130 | } | |
4f89f6a3 RD |
2131 | { |
2132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2133 | } | |
d14a1e28 RD |
2134 | return resultobj; |
2135 | fail: | |
2136 | return NULL; | |
2137 | } | |
2138 | ||
2139 | ||
2140 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2141 | PyObject *resultobj; | |
2142 | wxSize *arg1 = (wxSize *) 0 ; | |
2143 | wxSize *arg2 = 0 ; | |
2144 | wxSize result; | |
2145 | wxSize temp2 ; | |
2146 | PyObject * obj0 = 0 ; | |
2147 | PyObject * obj1 = 0 ; | |
2148 | char *kwnames[] = { | |
2149 | (char *) "self",(char *) "sz", NULL | |
2150 | }; | |
2151 | ||
2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2155 | { |
2156 | arg2 = &temp2; | |
2157 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2158 | } | |
2159 | { | |
2160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2161 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2162 | ||
2163 | wxPyEndAllowThreads(__tstate); | |
2164 | if (PyErr_Occurred()) SWIG_fail; | |
2165 | } | |
2166 | { | |
2167 | wxSize * resultptr; | |
2168 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2169 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2170 | } |
2171 | return resultobj; | |
2172 | fail: | |
2173 | return NULL; | |
2174 | } | |
2175 | ||
2176 | ||
2177 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2178 | PyObject *resultobj; | |
2179 | wxSize *arg1 = (wxSize *) 0 ; | |
2180 | wxSize *arg2 = 0 ; | |
2181 | wxSize result; | |
2182 | wxSize temp2 ; | |
2183 | PyObject * obj0 = 0 ; | |
2184 | PyObject * obj1 = 0 ; | |
2185 | char *kwnames[] = { | |
2186 | (char *) "self",(char *) "sz", NULL | |
2187 | }; | |
2188 | ||
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2192 | { |
2193 | arg2 = &temp2; | |
2194 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2195 | } | |
2196 | { | |
2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2198 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2199 | ||
2200 | wxPyEndAllowThreads(__tstate); | |
2201 | if (PyErr_Occurred()) SWIG_fail; | |
2202 | } | |
2203 | { | |
2204 | wxSize * resultptr; | |
2205 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2206 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2207 | } |
2208 | return resultobj; | |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | wxSize *arg1 = (wxSize *) 0 ; | |
2217 | wxSize *arg2 = 0 ; | |
2218 | wxSize temp2 ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | PyObject * obj1 = 0 ; | |
2221 | char *kwnames[] = { | |
2222 | (char *) "self",(char *) "sz", NULL | |
2223 | }; | |
2224 | ||
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2228 | { |
2229 | arg2 = &temp2; | |
2230 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2231 | } | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | (arg1)->IncTo((wxSize const &)*arg2); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) SWIG_fail; | |
2238 | } | |
2239 | Py_INCREF(Py_None); resultobj = Py_None; | |
2240 | return resultobj; | |
2241 | fail: | |
2242 | return NULL; | |
2243 | } | |
2244 | ||
2245 | ||
2246 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2247 | PyObject *resultobj; | |
2248 | wxSize *arg1 = (wxSize *) 0 ; | |
2249 | wxSize *arg2 = 0 ; | |
2250 | wxSize temp2 ; | |
2251 | PyObject * obj0 = 0 ; | |
2252 | PyObject * obj1 = 0 ; | |
2253 | char *kwnames[] = { | |
2254 | (char *) "self",(char *) "sz", NULL | |
2255 | }; | |
2256 | ||
2257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2260 | { |
2261 | arg2 = &temp2; | |
2262 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2263 | } | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2266 | (arg1)->DecTo((wxSize const &)*arg2); | |
2267 | ||
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) SWIG_fail; | |
2270 | } | |
2271 | Py_INCREF(Py_None); resultobj = Py_None; | |
2272 | return resultobj; | |
2273 | fail: | |
2274 | return NULL; | |
2275 | } | |
2276 | ||
2277 | ||
2278 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2279 | PyObject *resultobj; | |
2280 | wxSize *arg1 = (wxSize *) 0 ; | |
2281 | int arg2 ; | |
2282 | int arg3 ; | |
2283 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2284 | PyObject * obj1 = 0 ; |
2285 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2286 | char *kwnames[] = { |
e811c8ce | 2287 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2288 | }; |
2289 | ||
994141e6 | 2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2293 | arg2 = (int) SWIG_AsInt(obj1); | |
2294 | if (PyErr_Occurred()) SWIG_fail; | |
2295 | arg3 = (int) SWIG_AsInt(obj2); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2297 | { |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | (arg1)->Set(arg2,arg3); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | Py_INCREF(Py_None); resultobj = Py_None; | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxSize *arg1 = (wxSize *) 0 ; | |
2314 | int arg2 ; | |
2315 | PyObject * obj0 = 0 ; | |
994141e6 | 2316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2317 | char *kwnames[] = { |
2318 | (char *) "self",(char *) "w", NULL | |
2319 | }; | |
2320 | ||
994141e6 | 2321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2324 | arg2 = (int) SWIG_AsInt(obj1); | |
2325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2326 | { |
2327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2328 | (arg1)->SetWidth(arg2); | |
2329 | ||
2330 | wxPyEndAllowThreads(__tstate); | |
2331 | if (PyErr_Occurred()) SWIG_fail; | |
2332 | } | |
2333 | Py_INCREF(Py_None); resultobj = Py_None; | |
2334 | return resultobj; | |
2335 | fail: | |
2336 | return NULL; | |
2337 | } | |
2338 | ||
2339 | ||
2340 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2341 | PyObject *resultobj; | |
2342 | wxSize *arg1 = (wxSize *) 0 ; | |
2343 | int arg2 ; | |
2344 | PyObject * obj0 = 0 ; | |
994141e6 | 2345 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2346 | char *kwnames[] = { |
2347 | (char *) "self",(char *) "h", NULL | |
2348 | }; | |
2349 | ||
994141e6 | 2350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2353 | arg2 = (int) SWIG_AsInt(obj1); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2355 | { |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | (arg1)->SetHeight(arg2); | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | } | |
2362 | Py_INCREF(Py_None); resultobj = Py_None; | |
2363 | return resultobj; | |
2364 | fail: | |
2365 | return NULL; | |
2366 | } | |
2367 | ||
2368 | ||
2369 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2370 | PyObject *resultobj; | |
2371 | wxSize *arg1 = (wxSize *) 0 ; | |
2372 | int result; | |
2373 | PyObject * obj0 = 0 ; | |
2374 | char *kwnames[] = { | |
2375 | (char *) "self", NULL | |
2376 | }; | |
2377 | ||
2378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2381 | { |
2382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2383 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2384 | ||
2385 | wxPyEndAllowThreads(__tstate); | |
2386 | if (PyErr_Occurred()) SWIG_fail; | |
2387 | } | |
15afbcd0 | 2388 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2389 | return resultobj; |
2390 | fail: | |
2391 | return NULL; | |
2392 | } | |
2393 | ||
2394 | ||
2395 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2396 | PyObject *resultobj; | |
2397 | wxSize *arg1 = (wxSize *) 0 ; | |
2398 | int result; | |
2399 | PyObject * obj0 = 0 ; | |
2400 | char *kwnames[] = { | |
2401 | (char *) "self", NULL | |
2402 | }; | |
2403 | ||
2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2407 | { |
2408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2409 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2410 | ||
2411 | wxPyEndAllowThreads(__tstate); | |
2412 | if (PyErr_Occurred()) SWIG_fail; | |
2413 | } | |
15afbcd0 | 2414 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2415 | return resultobj; |
2416 | fail: | |
2417 | return NULL; | |
2418 | } | |
2419 | ||
2420 | ||
74a57fcd RD |
2421 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { |
2422 | PyObject *resultobj; | |
2423 | wxSize *arg1 = (wxSize *) 0 ; | |
2424 | bool result; | |
2425 | PyObject * obj0 = 0 ; | |
2426 | char *kwnames[] = { | |
2427 | (char *) "self", NULL | |
2428 | }; | |
2429 | ||
2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2433 | { | |
2434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2435 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2436 | ||
2437 | wxPyEndAllowThreads(__tstate); | |
2438 | if (PyErr_Occurred()) SWIG_fail; | |
2439 | } | |
2440 | { | |
2441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2442 | } | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2450 | PyObject *resultobj; | |
2451 | wxSize *arg1 = (wxSize *) 0 ; | |
2452 | wxSize *arg2 = 0 ; | |
2453 | wxSize temp2 ; | |
2454 | PyObject * obj0 = 0 ; | |
2455 | PyObject * obj1 = 0 ; | |
2456 | char *kwnames[] = { | |
2457 | (char *) "self",(char *) "size", NULL | |
2458 | }; | |
2459 | ||
2460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2463 | { | |
2464 | arg2 = &temp2; | |
2465 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2466 | } | |
2467 | { | |
2468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2469 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2470 | ||
2471 | wxPyEndAllowThreads(__tstate); | |
2472 | if (PyErr_Occurred()) SWIG_fail; | |
2473 | } | |
2474 | Py_INCREF(Py_None); resultobj = Py_None; | |
2475 | return resultobj; | |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
e811c8ce | 2481 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2482 | PyObject *resultobj; |
2483 | wxSize *arg1 = (wxSize *) 0 ; | |
2484 | PyObject *result; | |
2485 | PyObject * obj0 = 0 ; | |
2486 | char *kwnames[] = { | |
2487 | (char *) "self", NULL | |
2488 | }; | |
2489 | ||
e811c8ce | 2490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2493 | { |
2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2495 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2496 | |
2497 | wxPyEndAllowThreads(__tstate); | |
2498 | if (PyErr_Occurred()) SWIG_fail; | |
2499 | } | |
2500 | resultobj = result; | |
2501 | return resultobj; | |
2502 | fail: | |
2503 | return NULL; | |
2504 | } | |
2505 | ||
2506 | ||
2507 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2508 | PyObject *obj; | |
2509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2510 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2511 | Py_INCREF(obj); | |
2512 | return Py_BuildValue((char *)""); | |
2513 | } | |
2514 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2515 | PyObject *resultobj; | |
2516 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2517 | double arg2 ; | |
2518 | PyObject * obj0 = 0 ; | |
994141e6 | 2519 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2520 | char *kwnames[] = { |
2521 | (char *) "self",(char *) "x", NULL | |
2522 | }; | |
2523 | ||
994141e6 | 2524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2527 | arg2 = (double) SWIG_AsDouble(obj1); | |
2528 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2529 | if (arg1) (arg1)->x = arg2; |
2530 | ||
2531 | Py_INCREF(Py_None); resultobj = Py_None; | |
2532 | return resultobj; | |
2533 | fail: | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2539 | PyObject *resultobj; | |
2540 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2541 | double result; | |
2542 | PyObject * obj0 = 0 ; | |
2543 | char *kwnames[] = { | |
2544 | (char *) "self", NULL | |
2545 | }; | |
2546 | ||
2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2550 | result = (double) ((arg1)->x); |
2551 | ||
15afbcd0 | 2552 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2553 | return resultobj; |
2554 | fail: | |
2555 | return NULL; | |
2556 | } | |
2557 | ||
2558 | ||
2559 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2560 | PyObject *resultobj; | |
2561 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2562 | double arg2 ; | |
2563 | PyObject * obj0 = 0 ; | |
994141e6 | 2564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2565 | char *kwnames[] = { |
2566 | (char *) "self",(char *) "y", NULL | |
2567 | }; | |
2568 | ||
994141e6 | 2569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2572 | arg2 = (double) SWIG_AsDouble(obj1); | |
2573 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2574 | if (arg1) (arg1)->y = arg2; |
2575 | ||
2576 | Py_INCREF(Py_None); resultobj = Py_None; | |
2577 | return resultobj; | |
2578 | fail: | |
2579 | return NULL; | |
2580 | } | |
2581 | ||
2582 | ||
2583 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2584 | PyObject *resultobj; | |
2585 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2586 | double result; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | char *kwnames[] = { | |
2589 | (char *) "self", NULL | |
2590 | }; | |
2591 | ||
2592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2595 | result = (double) ((arg1)->y); |
2596 | ||
15afbcd0 | 2597 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2598 | return resultobj; |
2599 | fail: | |
2600 | return NULL; | |
2601 | } | |
2602 | ||
2603 | ||
2604 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2605 | PyObject *resultobj; | |
2606 | double arg1 = (double) 0.0 ; | |
2607 | double arg2 = (double) 0.0 ; | |
2608 | wxRealPoint *result; | |
994141e6 RD |
2609 | PyObject * obj0 = 0 ; |
2610 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2611 | char *kwnames[] = { |
2612 | (char *) "x",(char *) "y", NULL | |
2613 | }; | |
2614 | ||
994141e6 RD |
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2616 | if (obj0) { | |
15afbcd0 RD |
2617 | arg1 = (double) SWIG_AsDouble(obj0); |
2618 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2619 | } |
2620 | if (obj1) { | |
15afbcd0 RD |
2621 | arg2 = (double) SWIG_AsDouble(obj1); |
2622 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2623 | } |
d14a1e28 RD |
2624 | { |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2627 | ||
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
15afbcd0 | 2631 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2632 | return resultobj; |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
2638 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject *resultobj; | |
2640 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2641 | PyObject * obj0 = 0 ; | |
2642 | char *kwnames[] = { | |
2643 | (char *) "self", NULL | |
2644 | }; | |
2645 | ||
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2649 | { |
2650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2651 | delete arg1; | |
2652 | ||
2653 | wxPyEndAllowThreads(__tstate); | |
2654 | if (PyErr_Occurred()) SWIG_fail; | |
2655 | } | |
2656 | Py_INCREF(Py_None); resultobj = Py_None; | |
2657 | return resultobj; | |
2658 | fail: | |
2659 | return NULL; | |
2660 | } | |
2661 | ||
2662 | ||
e811c8ce | 2663 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2664 | PyObject *resultobj; |
2665 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2666 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2667 | bool result; |
d14a1e28 RD |
2668 | wxRealPoint temp2 ; |
2669 | PyObject * obj0 = 0 ; | |
2670 | PyObject * obj1 = 0 ; | |
2671 | char *kwnames[] = { | |
2672 | (char *) "self",(char *) "pt", NULL | |
2673 | }; | |
2674 | ||
e811c8ce | 2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2678 | { |
2679 | arg2 = &temp2; | |
2680 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2681 | } | |
2682 | { | |
2683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2684 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2685 | |
2686 | wxPyEndAllowThreads(__tstate); | |
2687 | if (PyErr_Occurred()) SWIG_fail; | |
2688 | } | |
4f89f6a3 RD |
2689 | { |
2690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2691 | } | |
d14a1e28 RD |
2692 | return resultobj; |
2693 | fail: | |
2694 | return NULL; | |
2695 | } | |
2696 | ||
2697 | ||
e811c8ce | 2698 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2699 | PyObject *resultobj; |
2700 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2701 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2702 | bool result; |
d14a1e28 RD |
2703 | wxRealPoint temp2 ; |
2704 | PyObject * obj0 = 0 ; | |
2705 | PyObject * obj1 = 0 ; | |
2706 | char *kwnames[] = { | |
2707 | (char *) "self",(char *) "pt", NULL | |
2708 | }; | |
2709 | ||
e811c8ce | 2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2713 | { |
2714 | arg2 = &temp2; | |
2715 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2716 | } | |
2717 | { | |
2718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2719 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2720 | |
2721 | wxPyEndAllowThreads(__tstate); | |
2722 | if (PyErr_Occurred()) SWIG_fail; | |
2723 | } | |
4f89f6a3 RD |
2724 | { |
2725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2726 | } | |
d14a1e28 RD |
2727 | return resultobj; |
2728 | fail: | |
2729 | return NULL; | |
2730 | } | |
2731 | ||
2732 | ||
e811c8ce | 2733 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2734 | PyObject *resultobj; |
2735 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2736 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2737 | wxRealPoint result; |
d14a1e28 RD |
2738 | wxRealPoint temp2 ; |
2739 | PyObject * obj0 = 0 ; | |
2740 | PyObject * obj1 = 0 ; | |
2741 | char *kwnames[] = { | |
2742 | (char *) "self",(char *) "pt", NULL | |
2743 | }; | |
2744 | ||
e811c8ce | 2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2748 | { |
2749 | arg2 = &temp2; | |
2750 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2751 | } | |
2752 | { | |
2753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2754 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2755 | |
2756 | wxPyEndAllowThreads(__tstate); | |
2757 | if (PyErr_Occurred()) SWIG_fail; | |
2758 | } | |
e811c8ce RD |
2759 | { |
2760 | wxRealPoint * resultptr; | |
2761 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2762 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2763 | } |
d14a1e28 RD |
2764 | return resultobj; |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
e811c8ce | 2770 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2771 | PyObject *resultobj; |
2772 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2773 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2774 | wxRealPoint result; |
d14a1e28 RD |
2775 | wxRealPoint temp2 ; |
2776 | PyObject * obj0 = 0 ; | |
2777 | PyObject * obj1 = 0 ; | |
2778 | char *kwnames[] = { | |
2779 | (char *) "self",(char *) "pt", NULL | |
2780 | }; | |
2781 | ||
e811c8ce | 2782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2785 | { |
2786 | arg2 = &temp2; | |
2787 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2788 | } | |
2789 | { | |
2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2791 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2792 | |
2793 | wxPyEndAllowThreads(__tstate); | |
2794 | if (PyErr_Occurred()) SWIG_fail; | |
2795 | } | |
e811c8ce RD |
2796 | { |
2797 | wxRealPoint * resultptr; | |
2798 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2799 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2800 | } |
d14a1e28 RD |
2801 | return resultobj; |
2802 | fail: | |
2803 | return NULL; | |
2804 | } | |
2805 | ||
2806 | ||
2807 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2808 | PyObject *resultobj; | |
2809 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2810 | double arg2 ; | |
2811 | double arg3 ; | |
2812 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2813 | PyObject * obj1 = 0 ; |
2814 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2815 | char *kwnames[] = { |
2816 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2817 | }; | |
2818 | ||
994141e6 | 2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2822 | arg2 = (double) SWIG_AsDouble(obj1); | |
2823 | if (PyErr_Occurred()) SWIG_fail; | |
2824 | arg3 = (double) SWIG_AsDouble(obj2); | |
2825 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2826 | { |
2827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2828 | wxRealPoint_Set(arg1,arg2,arg3); | |
2829 | ||
2830 | wxPyEndAllowThreads(__tstate); | |
2831 | if (PyErr_Occurred()) SWIG_fail; | |
2832 | } | |
2833 | Py_INCREF(Py_None); resultobj = Py_None; | |
2834 | return resultobj; | |
2835 | fail: | |
2836 | return NULL; | |
2837 | } | |
2838 | ||
2839 | ||
e811c8ce | 2840 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2841 | PyObject *resultobj; |
2842 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2843 | PyObject *result; | |
2844 | PyObject * obj0 = 0 ; | |
2845 | char *kwnames[] = { | |
2846 | (char *) "self", NULL | |
2847 | }; | |
2848 | ||
e811c8ce | 2849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2852 | { |
2853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2854 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2855 | |
2856 | wxPyEndAllowThreads(__tstate); | |
2857 | if (PyErr_Occurred()) SWIG_fail; | |
2858 | } | |
2859 | resultobj = result; | |
2860 | return resultobj; | |
2861 | fail: | |
2862 | return NULL; | |
2863 | } | |
2864 | ||
2865 | ||
2866 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2867 | PyObject *obj; | |
2868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2869 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2870 | Py_INCREF(obj); | |
2871 | return Py_BuildValue((char *)""); | |
2872 | } | |
2873 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2874 | PyObject *resultobj; | |
2875 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2876 | int arg2 ; | |
2877 | PyObject * obj0 = 0 ; | |
994141e6 | 2878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2879 | char *kwnames[] = { |
2880 | (char *) "self",(char *) "x", NULL | |
2881 | }; | |
2882 | ||
994141e6 | 2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2886 | arg2 = (int) SWIG_AsInt(obj1); | |
2887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2888 | if (arg1) (arg1)->x = arg2; |
2889 | ||
2890 | Py_INCREF(Py_None); resultobj = Py_None; | |
2891 | return resultobj; | |
2892 | fail: | |
2893 | return NULL; | |
2894 | } | |
2895 | ||
2896 | ||
2897 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2898 | PyObject *resultobj; | |
2899 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2900 | int result; | |
2901 | PyObject * obj0 = 0 ; | |
2902 | char *kwnames[] = { | |
2903 | (char *) "self", NULL | |
2904 | }; | |
2905 | ||
2906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2909 | result = (int) ((arg1)->x); |
2910 | ||
15afbcd0 | 2911 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2912 | return resultobj; |
2913 | fail: | |
2914 | return NULL; | |
2915 | } | |
2916 | ||
2917 | ||
2918 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2919 | PyObject *resultobj; | |
2920 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2921 | int arg2 ; | |
2922 | PyObject * obj0 = 0 ; | |
994141e6 | 2923 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2924 | char *kwnames[] = { |
2925 | (char *) "self",(char *) "y", NULL | |
2926 | }; | |
2927 | ||
994141e6 | 2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2931 | arg2 = (int) SWIG_AsInt(obj1); | |
2932 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2933 | if (arg1) (arg1)->y = arg2; |
2934 | ||
2935 | Py_INCREF(Py_None); resultobj = Py_None; | |
2936 | return resultobj; | |
2937 | fail: | |
2938 | return NULL; | |
2939 | } | |
2940 | ||
2941 | ||
2942 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2943 | PyObject *resultobj; | |
2944 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2945 | int result; | |
2946 | PyObject * obj0 = 0 ; | |
2947 | char *kwnames[] = { | |
2948 | (char *) "self", NULL | |
2949 | }; | |
2950 | ||
2951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2954 | result = (int) ((arg1)->y); |
2955 | ||
15afbcd0 | 2956 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2957 | return resultobj; |
2958 | fail: | |
2959 | return NULL; | |
2960 | } | |
2961 | ||
2962 | ||
2963 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2964 | PyObject *resultobj; | |
2965 | int arg1 = (int) 0 ; | |
2966 | int arg2 = (int) 0 ; | |
2967 | wxPoint *result; | |
994141e6 RD |
2968 | PyObject * obj0 = 0 ; |
2969 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2970 | char *kwnames[] = { |
2971 | (char *) "x",(char *) "y", NULL | |
2972 | }; | |
2973 | ||
994141e6 RD |
2974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2975 | if (obj0) { | |
15afbcd0 RD |
2976 | arg1 = (int) SWIG_AsInt(obj0); |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2978 | } |
2979 | if (obj1) { | |
15afbcd0 RD |
2980 | arg2 = (int) SWIG_AsInt(obj1); |
2981 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2982 | } |
d14a1e28 RD |
2983 | { |
2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2985 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2986 | ||
2987 | wxPyEndAllowThreads(__tstate); | |
2988 | if (PyErr_Occurred()) SWIG_fail; | |
2989 | } | |
15afbcd0 | 2990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2991 | return resultobj; |
2992 | fail: | |
2993 | return NULL; | |
2994 | } | |
2995 | ||
2996 | ||
2997 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject *resultobj; | |
2999 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3000 | PyObject * obj0 = 0 ; | |
3001 | char *kwnames[] = { | |
3002 | (char *) "self", NULL | |
3003 | }; | |
3004 | ||
3005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3008 | { |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | delete arg1; | |
3011 | ||
3012 | wxPyEndAllowThreads(__tstate); | |
3013 | if (PyErr_Occurred()) SWIG_fail; | |
3014 | } | |
3015 | Py_INCREF(Py_None); resultobj = Py_None; | |
3016 | return resultobj; | |
3017 | fail: | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3023 | PyObject *resultobj; | |
3024 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3025 | wxPoint *arg2 = 0 ; | |
3026 | bool result; | |
3027 | wxPoint temp2 ; | |
3028 | PyObject * obj0 = 0 ; | |
3029 | PyObject * obj1 = 0 ; | |
3030 | char *kwnames[] = { | |
e811c8ce | 3031 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3032 | }; |
3033 | ||
3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3037 | { |
3038 | arg2 = &temp2; | |
3039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3040 | } | |
3041 | { | |
3042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3043 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
3044 | |
3045 | wxPyEndAllowThreads(__tstate); | |
3046 | if (PyErr_Occurred()) SWIG_fail; | |
3047 | } | |
4f89f6a3 RD |
3048 | { |
3049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3050 | } | |
d14a1e28 RD |
3051 | return resultobj; |
3052 | fail: | |
3053 | return NULL; | |
3054 | } | |
3055 | ||
3056 | ||
3057 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3058 | PyObject *resultobj; | |
3059 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3060 | wxPoint *arg2 = 0 ; | |
3061 | bool result; | |
3062 | wxPoint temp2 ; | |
3063 | PyObject * obj0 = 0 ; | |
3064 | PyObject * obj1 = 0 ; | |
3065 | char *kwnames[] = { | |
e811c8ce | 3066 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3067 | }; |
3068 | ||
3069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3072 | { |
3073 | arg2 = &temp2; | |
3074 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3075 | } | |
3076 | { | |
3077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3078 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
3079 | |
3080 | wxPyEndAllowThreads(__tstate); | |
3081 | if (PyErr_Occurred()) SWIG_fail; | |
3082 | } | |
4f89f6a3 RD |
3083 | { |
3084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3085 | } | |
d14a1e28 RD |
3086 | return resultobj; |
3087 | fail: | |
3088 | return NULL; | |
3089 | } | |
3090 | ||
3091 | ||
3092 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3093 | PyObject *resultobj; | |
3094 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3095 | wxPoint *arg2 = 0 ; | |
3096 | wxPoint result; | |
3097 | wxPoint temp2 ; | |
3098 | PyObject * obj0 = 0 ; | |
3099 | PyObject * obj1 = 0 ; | |
3100 | char *kwnames[] = { | |
e811c8ce | 3101 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3102 | }; |
3103 | ||
3104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3107 | { |
3108 | arg2 = &temp2; | |
3109 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3110 | } | |
3111 | { | |
3112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3113 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
3114 | |
3115 | wxPyEndAllowThreads(__tstate); | |
3116 | if (PyErr_Occurred()) SWIG_fail; | |
3117 | } | |
3118 | { | |
3119 | wxPoint * resultptr; | |
3120 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3121 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3122 | } |
3123 | return resultobj; | |
3124 | fail: | |
3125 | return NULL; | |
3126 | } | |
3127 | ||
3128 | ||
3129 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3130 | PyObject *resultobj; | |
3131 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3132 | wxPoint *arg2 = 0 ; | |
3133 | wxPoint result; | |
3134 | wxPoint temp2 ; | |
3135 | PyObject * obj0 = 0 ; | |
3136 | PyObject * obj1 = 0 ; | |
3137 | char *kwnames[] = { | |
e811c8ce | 3138 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3139 | }; |
3140 | ||
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3144 | { |
3145 | arg2 = &temp2; | |
3146 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3147 | } | |
3148 | { | |
3149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3150 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3151 | |
3152 | wxPyEndAllowThreads(__tstate); | |
3153 | if (PyErr_Occurred()) SWIG_fail; | |
3154 | } | |
3155 | { | |
3156 | wxPoint * resultptr; | |
3157 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3158 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3159 | } |
3160 | return resultobj; | |
3161 | fail: | |
3162 | return NULL; | |
3163 | } | |
3164 | ||
3165 | ||
3166 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3167 | PyObject *resultobj; | |
3168 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3169 | wxPoint *arg2 = 0 ; | |
3170 | wxPoint *result; | |
3171 | wxPoint temp2 ; | |
3172 | PyObject * obj0 = 0 ; | |
3173 | PyObject * obj1 = 0 ; | |
3174 | char *kwnames[] = { | |
e811c8ce | 3175 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3176 | }; |
3177 | ||
3178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3181 | { |
3182 | arg2 = &temp2; | |
3183 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3184 | } | |
3185 | { | |
3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3187 | { | |
3188 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3189 | result = (wxPoint *) &_result_ref; | |
3190 | } | |
3191 | ||
3192 | wxPyEndAllowThreads(__tstate); | |
3193 | if (PyErr_Occurred()) SWIG_fail; | |
3194 | } | |
15afbcd0 | 3195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3196 | return resultobj; |
3197 | fail: | |
3198 | return NULL; | |
3199 | } | |
3200 | ||
3201 | ||
3202 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3203 | PyObject *resultobj; | |
3204 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3205 | wxPoint *arg2 = 0 ; | |
3206 | wxPoint *result; | |
3207 | wxPoint temp2 ; | |
3208 | PyObject * obj0 = 0 ; | |
3209 | PyObject * obj1 = 0 ; | |
3210 | char *kwnames[] = { | |
e811c8ce | 3211 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3212 | }; |
3213 | ||
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3217 | { |
3218 | arg2 = &temp2; | |
3219 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3220 | } | |
3221 | { | |
3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3223 | { | |
3224 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3225 | result = (wxPoint *) &_result_ref; | |
3226 | } | |
3227 | ||
3228 | wxPyEndAllowThreads(__tstate); | |
3229 | if (PyErr_Occurred()) SWIG_fail; | |
3230 | } | |
15afbcd0 | 3231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3232 | return resultobj; |
3233 | fail: | |
3234 | return NULL; | |
3235 | } | |
3236 | ||
3237 | ||
3238 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3239 | PyObject *resultobj; | |
3240 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3241 | long arg2 ; | |
3242 | long arg3 ; | |
3243 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3244 | PyObject * obj1 = 0 ; |
3245 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3246 | char *kwnames[] = { |
3247 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3248 | }; | |
3249 | ||
994141e6 | 3250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3253 | arg2 = (long) SWIG_AsLong(obj1); | |
3254 | if (PyErr_Occurred()) SWIG_fail; | |
3255 | arg3 = (long) SWIG_AsLong(obj2); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3257 | { |
3258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3259 | wxPoint_Set(arg1,arg2,arg3); | |
3260 | ||
3261 | wxPyEndAllowThreads(__tstate); | |
3262 | if (PyErr_Occurred()) SWIG_fail; | |
3263 | } | |
3264 | Py_INCREF(Py_None); resultobj = Py_None; | |
3265 | return resultobj; | |
3266 | fail: | |
3267 | return NULL; | |
3268 | } | |
3269 | ||
3270 | ||
e811c8ce | 3271 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3272 | PyObject *resultobj; |
3273 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3274 | PyObject *result; | |
3275 | PyObject * obj0 = 0 ; | |
3276 | char *kwnames[] = { | |
3277 | (char *) "self", NULL | |
3278 | }; | |
3279 | ||
e811c8ce | 3280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3283 | { |
3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3285 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3286 | |
3287 | wxPyEndAllowThreads(__tstate); | |
3288 | if (PyErr_Occurred()) SWIG_fail; | |
3289 | } | |
3290 | resultobj = result; | |
3291 | return resultobj; | |
3292 | fail: | |
3293 | return NULL; | |
3294 | } | |
3295 | ||
3296 | ||
3297 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3298 | PyObject *obj; | |
3299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3300 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3301 | Py_INCREF(obj); | |
3302 | return Py_BuildValue((char *)""); | |
3303 | } | |
3304 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject *resultobj; | |
3306 | int arg1 = (int) 0 ; | |
3307 | int arg2 = (int) 0 ; | |
3308 | int arg3 = (int) 0 ; | |
3309 | int arg4 = (int) 0 ; | |
3310 | wxRect *result; | |
994141e6 RD |
3311 | PyObject * obj0 = 0 ; |
3312 | PyObject * obj1 = 0 ; | |
3313 | PyObject * obj2 = 0 ; | |
3314 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3315 | char *kwnames[] = { |
3316 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3317 | }; | |
3318 | ||
994141e6 RD |
3319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3320 | if (obj0) { | |
15afbcd0 RD |
3321 | arg1 = (int) SWIG_AsInt(obj0); |
3322 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3323 | } |
3324 | if (obj1) { | |
15afbcd0 RD |
3325 | arg2 = (int) SWIG_AsInt(obj1); |
3326 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3327 | } |
3328 | if (obj2) { | |
15afbcd0 RD |
3329 | arg3 = (int) SWIG_AsInt(obj2); |
3330 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3331 | } |
3332 | if (obj3) { | |
15afbcd0 RD |
3333 | arg4 = (int) SWIG_AsInt(obj3); |
3334 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3335 | } |
d14a1e28 RD |
3336 | { |
3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3338 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3339 | ||
3340 | wxPyEndAllowThreads(__tstate); | |
3341 | if (PyErr_Occurred()) SWIG_fail; | |
3342 | } | |
15afbcd0 | 3343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3344 | return resultobj; |
3345 | fail: | |
3346 | return NULL; | |
3347 | } | |
3348 | ||
3349 | ||
3350 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3351 | PyObject *resultobj; | |
3352 | wxPoint *arg1 = 0 ; | |
3353 | wxPoint *arg2 = 0 ; | |
3354 | wxRect *result; | |
3355 | wxPoint temp1 ; | |
3356 | wxPoint temp2 ; | |
3357 | PyObject * obj0 = 0 ; | |
3358 | PyObject * obj1 = 0 ; | |
3359 | char *kwnames[] = { | |
3360 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3361 | }; | |
3362 | ||
3363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3364 | { | |
3365 | arg1 = &temp1; | |
3366 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3367 | } | |
3368 | { | |
3369 | arg2 = &temp2; | |
3370 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3371 | } | |
3372 | { | |
3373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3374 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3375 | ||
3376 | wxPyEndAllowThreads(__tstate); | |
3377 | if (PyErr_Occurred()) SWIG_fail; | |
3378 | } | |
15afbcd0 | 3379 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3380 | return resultobj; |
3381 | fail: | |
3382 | return NULL; | |
3383 | } | |
3384 | ||
3385 | ||
3386 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3387 | PyObject *resultobj; | |
3388 | wxPoint *arg1 = 0 ; | |
3389 | wxSize *arg2 = 0 ; | |
3390 | wxRect *result; | |
3391 | wxPoint temp1 ; | |
3392 | wxSize temp2 ; | |
3393 | PyObject * obj0 = 0 ; | |
3394 | PyObject * obj1 = 0 ; | |
3395 | char *kwnames[] = { | |
3396 | (char *) "pos",(char *) "size", NULL | |
3397 | }; | |
3398 | ||
3399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3400 | { | |
3401 | arg1 = &temp1; | |
3402 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3403 | } | |
3404 | { | |
3405 | arg2 = &temp2; | |
3406 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3407 | } | |
3408 | { | |
3409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3410 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3411 | ||
3412 | wxPyEndAllowThreads(__tstate); | |
3413 | if (PyErr_Occurred()) SWIG_fail; | |
3414 | } | |
15afbcd0 | 3415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3416 | return resultobj; |
3417 | fail: | |
3418 | return NULL; | |
3419 | } | |
3420 | ||
3421 | ||
3422 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3423 | PyObject *resultobj; | |
3424 | wxRect *arg1 = (wxRect *) 0 ; | |
3425 | PyObject * obj0 = 0 ; | |
3426 | char *kwnames[] = { | |
3427 | (char *) "self", NULL | |
3428 | }; | |
3429 | ||
3430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3433 | { |
3434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3435 | delete arg1; | |
3436 | ||
3437 | wxPyEndAllowThreads(__tstate); | |
3438 | if (PyErr_Occurred()) SWIG_fail; | |
3439 | } | |
3440 | Py_INCREF(Py_None); resultobj = Py_None; | |
3441 | return resultobj; | |
3442 | fail: | |
3443 | return NULL; | |
3444 | } | |
3445 | ||
3446 | ||
3447 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3448 | PyObject *resultobj; | |
3449 | wxRect *arg1 = (wxRect *) 0 ; | |
3450 | int result; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | char *kwnames[] = { | |
3453 | (char *) "self", NULL | |
3454 | }; | |
3455 | ||
3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3459 | { |
3460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3461 | result = (int)((wxRect const *)arg1)->GetX(); | |
3462 | ||
3463 | wxPyEndAllowThreads(__tstate); | |
3464 | if (PyErr_Occurred()) SWIG_fail; | |
3465 | } | |
15afbcd0 | 3466 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3467 | return resultobj; |
3468 | fail: | |
3469 | return NULL; | |
3470 | } | |
3471 | ||
3472 | ||
3473 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3474 | PyObject *resultobj; | |
3475 | wxRect *arg1 = (wxRect *) 0 ; | |
3476 | int arg2 ; | |
3477 | PyObject * obj0 = 0 ; | |
994141e6 | 3478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3479 | char *kwnames[] = { |
3480 | (char *) "self",(char *) "x", NULL | |
3481 | }; | |
3482 | ||
994141e6 | 3483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3486 | arg2 = (int) SWIG_AsInt(obj1); | |
3487 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3488 | { |
3489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3490 | (arg1)->SetX(arg2); | |
3491 | ||
3492 | wxPyEndAllowThreads(__tstate); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | } | |
3495 | Py_INCREF(Py_None); resultobj = Py_None; | |
3496 | return resultobj; | |
3497 | fail: | |
3498 | return NULL; | |
3499 | } | |
3500 | ||
3501 | ||
3502 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3503 | PyObject *resultobj; | |
3504 | wxRect *arg1 = (wxRect *) 0 ; | |
3505 | int result; | |
3506 | PyObject * obj0 = 0 ; | |
3507 | char *kwnames[] = { | |
3508 | (char *) "self", NULL | |
3509 | }; | |
3510 | ||
3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3514 | { |
3515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3516 | result = (int)(arg1)->GetY(); | |
3517 | ||
3518 | wxPyEndAllowThreads(__tstate); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
3520 | } | |
15afbcd0 | 3521 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3522 | return resultobj; |
3523 | fail: | |
3524 | return NULL; | |
3525 | } | |
3526 | ||
3527 | ||
3528 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3529 | PyObject *resultobj; | |
3530 | wxRect *arg1 = (wxRect *) 0 ; | |
3531 | int arg2 ; | |
3532 | PyObject * obj0 = 0 ; | |
994141e6 | 3533 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3534 | char *kwnames[] = { |
3535 | (char *) "self",(char *) "y", NULL | |
3536 | }; | |
3537 | ||
994141e6 | 3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3541 | arg2 = (int) SWIG_AsInt(obj1); | |
3542 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3543 | { |
3544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3545 | (arg1)->SetY(arg2); | |
3546 | ||
3547 | wxPyEndAllowThreads(__tstate); | |
3548 | if (PyErr_Occurred()) SWIG_fail; | |
3549 | } | |
3550 | Py_INCREF(Py_None); resultobj = Py_None; | |
3551 | return resultobj; | |
3552 | fail: | |
3553 | return NULL; | |
3554 | } | |
3555 | ||
3556 | ||
3557 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3558 | PyObject *resultobj; | |
3559 | wxRect *arg1 = (wxRect *) 0 ; | |
3560 | int result; | |
3561 | PyObject * obj0 = 0 ; | |
3562 | char *kwnames[] = { | |
3563 | (char *) "self", NULL | |
3564 | }; | |
3565 | ||
3566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3569 | { |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
15afbcd0 | 3576 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3577 | return resultobj; |
3578 | fail: | |
3579 | return NULL; | |
3580 | } | |
3581 | ||
3582 | ||
3583 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3584 | PyObject *resultobj; | |
3585 | wxRect *arg1 = (wxRect *) 0 ; | |
3586 | int arg2 ; | |
3587 | PyObject * obj0 = 0 ; | |
994141e6 | 3588 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3589 | char *kwnames[] = { |
3590 | (char *) "self",(char *) "w", NULL | |
3591 | }; | |
3592 | ||
994141e6 | 3593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3596 | arg2 = (int) SWIG_AsInt(obj1); | |
3597 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3598 | { |
3599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3600 | (arg1)->SetWidth(arg2); | |
3601 | ||
3602 | wxPyEndAllowThreads(__tstate); | |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
3604 | } | |
3605 | Py_INCREF(Py_None); resultobj = Py_None; | |
3606 | return resultobj; | |
3607 | fail: | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
3612 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3613 | PyObject *resultobj; | |
3614 | wxRect *arg1 = (wxRect *) 0 ; | |
3615 | int result; | |
3616 | PyObject * obj0 = 0 ; | |
3617 | char *kwnames[] = { | |
3618 | (char *) "self", NULL | |
3619 | }; | |
3620 | ||
3621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3624 | { |
3625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3626 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3627 | ||
3628 | wxPyEndAllowThreads(__tstate); | |
3629 | if (PyErr_Occurred()) SWIG_fail; | |
3630 | } | |
15afbcd0 | 3631 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3632 | return resultobj; |
3633 | fail: | |
3634 | return NULL; | |
3635 | } | |
3636 | ||
3637 | ||
3638 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject *resultobj; | |
3640 | wxRect *arg1 = (wxRect *) 0 ; | |
3641 | int arg2 ; | |
3642 | PyObject * obj0 = 0 ; | |
994141e6 | 3643 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3644 | char *kwnames[] = { |
3645 | (char *) "self",(char *) "h", NULL | |
3646 | }; | |
3647 | ||
994141e6 | 3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3651 | arg2 = (int) SWIG_AsInt(obj1); | |
3652 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3653 | { |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | (arg1)->SetHeight(arg2); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | Py_INCREF(Py_None); resultobj = Py_None; | |
3661 | return resultobj; | |
3662 | fail: | |
3663 | return NULL; | |
3664 | } | |
3665 | ||
3666 | ||
3667 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject *resultobj; | |
3669 | wxRect *arg1 = (wxRect *) 0 ; | |
3670 | wxPoint result; | |
3671 | PyObject * obj0 = 0 ; | |
3672 | char *kwnames[] = { | |
3673 | (char *) "self", NULL | |
3674 | }; | |
3675 | ||
3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3679 | { |
3680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3681 | result = ((wxRect const *)arg1)->GetPosition(); | |
3682 | ||
3683 | wxPyEndAllowThreads(__tstate); | |
3684 | if (PyErr_Occurred()) SWIG_fail; | |
3685 | } | |
3686 | { | |
3687 | wxPoint * resultptr; | |
3688 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3689 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3690 | } |
3691 | return resultobj; | |
3692 | fail: | |
3693 | return NULL; | |
3694 | } | |
3695 | ||
3696 | ||
3697 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3698 | PyObject *resultobj; | |
3699 | wxRect *arg1 = (wxRect *) 0 ; | |
3700 | wxPoint *arg2 = 0 ; | |
3701 | wxPoint temp2 ; | |
3702 | PyObject * obj0 = 0 ; | |
3703 | PyObject * obj1 = 0 ; | |
3704 | char *kwnames[] = { | |
3705 | (char *) "self",(char *) "p", NULL | |
3706 | }; | |
3707 | ||
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3711 | { |
3712 | arg2 = &temp2; | |
3713 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3714 | } | |
3715 | { | |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
3722 | Py_INCREF(Py_None); resultobj = Py_None; | |
3723 | return resultobj; | |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3730 | PyObject *resultobj; | |
3731 | wxRect *arg1 = (wxRect *) 0 ; | |
3732 | wxSize result; | |
3733 | PyObject * obj0 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3741 | { |
3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3743 | result = ((wxRect const *)arg1)->GetSize(); | |
3744 | ||
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | { | |
3749 | wxSize * resultptr; | |
3750 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3752 | } |
3753 | return resultobj; | |
3754 | fail: | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
3759 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3760 | PyObject *resultobj; | |
3761 | wxRect *arg1 = (wxRect *) 0 ; | |
3762 | wxSize *arg2 = 0 ; | |
3763 | wxSize temp2 ; | |
3764 | PyObject * obj0 = 0 ; | |
3765 | PyObject * obj1 = 0 ; | |
3766 | char *kwnames[] = { | |
3767 | (char *) "self",(char *) "s", NULL | |
3768 | }; | |
3769 | ||
3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3773 | { |
3774 | arg2 = &temp2; | |
3775 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3776 | } | |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | (arg1)->SetSize((wxSize const &)*arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
c9c7117a RD |
3791 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3792 | PyObject *resultobj; | |
3793 | wxRect *arg1 = (wxRect *) 0 ; | |
3794 | wxPoint result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3803 | { |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
3810 | { | |
3811 | wxPoint * resultptr; | |
3812 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3813 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3814 | } |
3815 | return resultobj; | |
3816 | fail: | |
3817 | return NULL; | |
3818 | } | |
3819 | ||
3820 | ||
3821 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3822 | PyObject *resultobj; | |
3823 | wxRect *arg1 = (wxRect *) 0 ; | |
3824 | wxPoint *arg2 = 0 ; | |
3825 | wxPoint temp2 ; | |
3826 | PyObject * obj0 = 0 ; | |
3827 | PyObject * obj1 = 0 ; | |
3828 | char *kwnames[] = { | |
3829 | (char *) "self",(char *) "p", NULL | |
3830 | }; | |
3831 | ||
3832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3835 | { |
3836 | arg2 = &temp2; | |
3837 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3838 | } | |
3839 | { | |
3840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3841 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3842 | ||
3843 | wxPyEndAllowThreads(__tstate); | |
3844 | if (PyErr_Occurred()) SWIG_fail; | |
3845 | } | |
3846 | Py_INCREF(Py_None); resultobj = Py_None; | |
3847 | return resultobj; | |
3848 | fail: | |
3849 | return NULL; | |
3850 | } | |
3851 | ||
3852 | ||
3853 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3854 | PyObject *resultobj; | |
3855 | wxRect *arg1 = (wxRect *) 0 ; | |
3856 | wxPoint result; | |
3857 | PyObject * obj0 = 0 ; | |
3858 | char *kwnames[] = { | |
3859 | (char *) "self", NULL | |
3860 | }; | |
3861 | ||
3862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3865 | { |
3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3867 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3868 | ||
3869 | wxPyEndAllowThreads(__tstate); | |
3870 | if (PyErr_Occurred()) SWIG_fail; | |
3871 | } | |
3872 | { | |
3873 | wxPoint * resultptr; | |
3874 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3875 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3876 | } |
3877 | return resultobj; | |
3878 | fail: | |
3879 | return NULL; | |
3880 | } | |
3881 | ||
3882 | ||
3883 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3884 | PyObject *resultobj; | |
3885 | wxRect *arg1 = (wxRect *) 0 ; | |
3886 | wxPoint *arg2 = 0 ; | |
3887 | wxPoint temp2 ; | |
3888 | PyObject * obj0 = 0 ; | |
3889 | PyObject * obj1 = 0 ; | |
3890 | char *kwnames[] = { | |
3891 | (char *) "self",(char *) "p", NULL | |
3892 | }; | |
3893 | ||
3894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3897 | { |
3898 | arg2 = &temp2; | |
3899 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3900 | } | |
3901 | { | |
3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3903 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3904 | ||
3905 | wxPyEndAllowThreads(__tstate); | |
3906 | if (PyErr_Occurred()) SWIG_fail; | |
3907 | } | |
3908 | Py_INCREF(Py_None); resultobj = Py_None; | |
3909 | return resultobj; | |
3910 | fail: | |
3911 | return NULL; | |
3912 | } | |
3913 | ||
3914 | ||
d14a1e28 RD |
3915 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3916 | PyObject *resultobj; | |
3917 | wxRect *arg1 = (wxRect *) 0 ; | |
3918 | int result; | |
3919 | PyObject * obj0 = 0 ; | |
3920 | char *kwnames[] = { | |
3921 | (char *) "self", NULL | |
3922 | }; | |
3923 | ||
3924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3927 | { |
3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3929 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3930 | ||
3931 | wxPyEndAllowThreads(__tstate); | |
3932 | if (PyErr_Occurred()) SWIG_fail; | |
3933 | } | |
15afbcd0 | 3934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3935 | return resultobj; |
3936 | fail: | |
3937 | return NULL; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | wxRect *arg1 = (wxRect *) 0 ; | |
3944 | int result; | |
3945 | PyObject * obj0 = 0 ; | |
3946 | char *kwnames[] = { | |
3947 | (char *) "self", NULL | |
3948 | }; | |
3949 | ||
3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3953 | { |
3954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3955 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3956 | ||
3957 | wxPyEndAllowThreads(__tstate); | |
3958 | if (PyErr_Occurred()) SWIG_fail; | |
3959 | } | |
15afbcd0 | 3960 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3961 | return resultobj; |
3962 | fail: | |
3963 | return NULL; | |
3964 | } | |
3965 | ||
3966 | ||
3967 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3968 | PyObject *resultobj; | |
3969 | wxRect *arg1 = (wxRect *) 0 ; | |
3970 | int result; | |
3971 | PyObject * obj0 = 0 ; | |
3972 | char *kwnames[] = { | |
3973 | (char *) "self", NULL | |
3974 | }; | |
3975 | ||
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3979 | { |
3980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3981 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3982 | ||
3983 | wxPyEndAllowThreads(__tstate); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
15afbcd0 | 3986 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3987 | return resultobj; |
3988 | fail: | |
3989 | return NULL; | |
3990 | } | |
3991 | ||
3992 | ||
3993 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3994 | PyObject *resultobj; | |
3995 | wxRect *arg1 = (wxRect *) 0 ; | |
3996 | int result; | |
3997 | PyObject * obj0 = 0 ; | |
3998 | char *kwnames[] = { | |
3999 | (char *) "self", NULL | |
4000 | }; | |
4001 | ||
4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4005 | { |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4008 | ||
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
15afbcd0 | 4012 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4013 | return resultobj; |
4014 | fail: | |
4015 | return NULL; | |
4016 | } | |
4017 | ||
4018 | ||
4019 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4020 | PyObject *resultobj; | |
4021 | wxRect *arg1 = (wxRect *) 0 ; | |
4022 | int arg2 ; | |
4023 | PyObject * obj0 = 0 ; | |
994141e6 | 4024 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4025 | char *kwnames[] = { |
4026 | (char *) "self",(char *) "left", NULL | |
4027 | }; | |
4028 | ||
994141e6 | 4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4032 | arg2 = (int) SWIG_AsInt(obj1); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4034 | { |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4036 | (arg1)->SetLeft(arg2); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
4039 | if (PyErr_Occurred()) SWIG_fail; | |
4040 | } | |
4041 | Py_INCREF(Py_None); resultobj = Py_None; | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
4048 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject *resultobj; | |
4050 | wxRect *arg1 = (wxRect *) 0 ; | |
4051 | int arg2 ; | |
4052 | PyObject * obj0 = 0 ; | |
994141e6 | 4053 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4054 | char *kwnames[] = { |
4055 | (char *) "self",(char *) "right", NULL | |
4056 | }; | |
4057 | ||
994141e6 | 4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4061 | arg2 = (int) SWIG_AsInt(obj1); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4063 | { |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | (arg1)->SetRight(arg2); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | Py_INCREF(Py_None); resultobj = Py_None; | |
4071 | return resultobj; | |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
4077 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject *resultobj; | |
4079 | wxRect *arg1 = (wxRect *) 0 ; | |
4080 | int arg2 ; | |
4081 | PyObject * obj0 = 0 ; | |
994141e6 | 4082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4083 | char *kwnames[] = { |
4084 | (char *) "self",(char *) "top", NULL | |
4085 | }; | |
4086 | ||
994141e6 | 4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4090 | arg2 = (int) SWIG_AsInt(obj1); | |
4091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4092 | { |
4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4094 | (arg1)->SetTop(arg2); | |
4095 | ||
4096 | wxPyEndAllowThreads(__tstate); | |
4097 | if (PyErr_Occurred()) SWIG_fail; | |
4098 | } | |
4099 | Py_INCREF(Py_None); resultobj = Py_None; | |
4100 | return resultobj; | |
4101 | fail: | |
4102 | return NULL; | |
4103 | } | |
4104 | ||
4105 | ||
4106 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4107 | PyObject *resultobj; | |
4108 | wxRect *arg1 = (wxRect *) 0 ; | |
4109 | int arg2 ; | |
4110 | PyObject * obj0 = 0 ; | |
994141e6 | 4111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4112 | char *kwnames[] = { |
4113 | (char *) "self",(char *) "bottom", NULL | |
4114 | }; | |
4115 | ||
994141e6 | 4116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4119 | arg2 = (int) SWIG_AsInt(obj1); | |
4120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4121 | { |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | (arg1)->SetBottom(arg2); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
4128 | Py_INCREF(Py_None); resultobj = Py_None; | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
4135 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4136 | PyObject *resultobj; | |
4137 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4138 | int arg2 ; |
4139 | int arg3 ; | |
d14a1e28 RD |
4140 | wxRect *result; |
4141 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4142 | PyObject * obj1 = 0 ; |
4143 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4144 | char *kwnames[] = { |
4145 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4146 | }; | |
4147 | ||
994141e6 | 4148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4151 | arg2 = (int) SWIG_AsInt(obj1); | |
4152 | if (PyErr_Occurred()) SWIG_fail; | |
4153 | arg3 = (int) SWIG_AsInt(obj2); | |
4154 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4155 | { |
4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4157 | { | |
4158 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4159 | result = (wxRect *) &_result_ref; | |
4160 | } | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
15afbcd0 | 4165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4166 | return resultobj; |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
4172 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4175 | int arg2 ; |
4176 | int arg3 ; | |
d14a1e28 RD |
4177 | wxRect *result; |
4178 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4179 | PyObject * obj1 = 0 ; |
4180 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4181 | char *kwnames[] = { |
4182 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4183 | }; | |
4184 | ||
994141e6 | 4185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4188 | arg2 = (int) SWIG_AsInt(obj1); | |
4189 | if (PyErr_Occurred()) SWIG_fail; | |
4190 | arg3 = (int) SWIG_AsInt(obj2); | |
4191 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4192 | { |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4194 | { | |
4195 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4196 | result = (wxRect *) &_result_ref; | |
4197 | } | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
15afbcd0 | 4202 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4203 | return resultobj; |
4204 | fail: | |
4205 | return NULL; | |
4206 | } | |
4207 | ||
4208 | ||
4209 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject *resultobj; | |
4211 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4212 | int arg2 ; |
4213 | int arg3 ; | |
d14a1e28 | 4214 | PyObject * obj0 = 0 ; |
994141e6 RD |
4215 | PyObject * obj1 = 0 ; |
4216 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4217 | char *kwnames[] = { |
4218 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4219 | }; | |
4220 | ||
994141e6 | 4221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4224 | arg2 = (int) SWIG_AsInt(obj1); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
4226 | arg3 = (int) SWIG_AsInt(obj2); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4228 | { |
4229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4230 | (arg1)->Offset(arg2,arg3); | |
4231 | ||
4232 | wxPyEndAllowThreads(__tstate); | |
4233 | if (PyErr_Occurred()) SWIG_fail; | |
4234 | } | |
4235 | Py_INCREF(Py_None); resultobj = Py_None; | |
4236 | return resultobj; | |
4237 | fail: | |
4238 | return NULL; | |
4239 | } | |
4240 | ||
4241 | ||
4242 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4243 | PyObject *resultobj; | |
4244 | wxRect *arg1 = (wxRect *) 0 ; | |
4245 | wxPoint *arg2 = 0 ; | |
4246 | wxPoint temp2 ; | |
4247 | PyObject * obj0 = 0 ; | |
4248 | PyObject * obj1 = 0 ; | |
4249 | char *kwnames[] = { | |
4250 | (char *) "self",(char *) "pt", NULL | |
4251 | }; | |
4252 | ||
4253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4256 | { |
4257 | arg2 = &temp2; | |
4258 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4259 | } | |
4260 | { | |
4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4262 | (arg1)->Offset((wxPoint const &)*arg2); | |
4263 | ||
4264 | wxPyEndAllowThreads(__tstate); | |
4265 | if (PyErr_Occurred()) SWIG_fail; | |
4266 | } | |
4267 | Py_INCREF(Py_None); resultobj = Py_None; | |
4268 | return resultobj; | |
4269 | fail: | |
4270 | return NULL; | |
4271 | } | |
4272 | ||
4273 | ||
4274 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4275 | PyObject *resultobj; | |
4276 | wxRect *arg1 = (wxRect *) 0 ; | |
4277 | wxRect *arg2 = 0 ; | |
4278 | wxRect *result; | |
4279 | wxRect temp2 ; | |
4280 | PyObject * obj0 = 0 ; | |
4281 | PyObject * obj1 = 0 ; | |
4282 | char *kwnames[] = { | |
4283 | (char *) "self",(char *) "rect", NULL | |
4284 | }; | |
4285 | ||
4286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4289 | { |
4290 | arg2 = &temp2; | |
4291 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4292 | } | |
4293 | { | |
4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4295 | { | |
4296 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4297 | result = (wxRect *) &_result_ref; | |
4298 | } | |
4299 | ||
4300 | wxPyEndAllowThreads(__tstate); | |
4301 | if (PyErr_Occurred()) SWIG_fail; | |
4302 | } | |
15afbcd0 | 4303 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4304 | return resultobj; |
4305 | fail: | |
4306 | return NULL; | |
4307 | } | |
4308 | ||
4309 | ||
4310 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4311 | PyObject *resultobj; | |
4312 | wxRect *arg1 = (wxRect *) 0 ; | |
4313 | wxRect *arg2 = 0 ; | |
4314 | wxRect result; | |
4315 | wxRect temp2 ; | |
4316 | PyObject * obj0 = 0 ; | |
4317 | PyObject * obj1 = 0 ; | |
4318 | char *kwnames[] = { | |
4319 | (char *) "self",(char *) "rect", NULL | |
4320 | }; | |
4321 | ||
4322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4325 | { |
4326 | arg2 = &temp2; | |
4327 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4328 | } | |
4329 | { | |
4330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4331 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4332 | ||
4333 | wxPyEndAllowThreads(__tstate); | |
4334 | if (PyErr_Occurred()) SWIG_fail; | |
4335 | } | |
4336 | { | |
4337 | wxRect * resultptr; | |
4338 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4340 | } |
4341 | return resultobj; | |
4342 | fail: | |
4343 | return NULL; | |
4344 | } | |
4345 | ||
4346 | ||
4347 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4348 | PyObject *resultobj; | |
4349 | wxRect *arg1 = (wxRect *) 0 ; | |
4350 | wxRect *arg2 = 0 ; | |
4351 | wxRect *result; | |
4352 | wxRect temp2 ; | |
4353 | PyObject * obj0 = 0 ; | |
4354 | PyObject * obj1 = 0 ; | |
4355 | char *kwnames[] = { | |
4356 | (char *) "self",(char *) "rect", NULL | |
4357 | }; | |
4358 | ||
4359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4362 | { |
4363 | arg2 = &temp2; | |
4364 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4365 | } | |
4366 | { | |
4367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4368 | { | |
4369 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4370 | result = (wxRect *) &_result_ref; | |
4371 | } | |
4372 | ||
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
15afbcd0 | 4376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4377 | return resultobj; |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj; | |
4385 | wxRect *arg1 = (wxRect *) 0 ; | |
4386 | wxRect *arg2 = 0 ; | |
4387 | bool result; | |
4388 | wxRect temp2 ; | |
4389 | PyObject * obj0 = 0 ; | |
4390 | PyObject * obj1 = 0 ; | |
4391 | char *kwnames[] = { | |
4392 | (char *) "self",(char *) "rect", NULL | |
4393 | }; | |
4394 | ||
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4398 | { |
4399 | arg2 = &temp2; | |
4400 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4401 | } | |
4402 | { | |
4403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4404 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4405 | ||
4406 | wxPyEndAllowThreads(__tstate); | |
4407 | if (PyErr_Occurred()) SWIG_fail; | |
4408 | } | |
4f89f6a3 RD |
4409 | { |
4410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4411 | } | |
d14a1e28 RD |
4412 | return resultobj; |
4413 | fail: | |
4414 | return NULL; | |
4415 | } | |
4416 | ||
4417 | ||
4418 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4419 | PyObject *resultobj; | |
4420 | wxRect *arg1 = (wxRect *) 0 ; | |
4421 | wxRect *arg2 = 0 ; | |
4422 | bool result; | |
4423 | wxRect temp2 ; | |
4424 | PyObject * obj0 = 0 ; | |
4425 | PyObject * obj1 = 0 ; | |
4426 | char *kwnames[] = { | |
4427 | (char *) "self",(char *) "rect", NULL | |
4428 | }; | |
4429 | ||
4430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4433 | { |
4434 | arg2 = &temp2; | |
4435 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4436 | } | |
4437 | { | |
4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4439 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4440 | ||
4441 | wxPyEndAllowThreads(__tstate); | |
4442 | if (PyErr_Occurred()) SWIG_fail; | |
4443 | } | |
4f89f6a3 RD |
4444 | { |
4445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4446 | } | |
d14a1e28 RD |
4447 | return resultobj; |
4448 | fail: | |
4449 | return NULL; | |
4450 | } | |
4451 | ||
4452 | ||
4453 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4454 | PyObject *resultobj; | |
4455 | wxRect *arg1 = (wxRect *) 0 ; | |
4456 | int arg2 ; | |
4457 | int arg3 ; | |
4458 | bool result; | |
4459 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4460 | PyObject * obj1 = 0 ; |
4461 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4462 | char *kwnames[] = { |
4463 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4464 | }; | |
4465 | ||
994141e6 | 4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4469 | arg2 = (int) SWIG_AsInt(obj1); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | arg3 = (int) SWIG_AsInt(obj2); | |
4472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4473 | { |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4476 | ||
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4f89f6a3 RD |
4480 | { |
4481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4482 | } | |
d14a1e28 RD |
4483 | return resultobj; |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj; | |
4491 | wxRect *arg1 = (wxRect *) 0 ; | |
4492 | wxPoint *arg2 = 0 ; | |
4493 | bool result; | |
4494 | wxPoint temp2 ; | |
4495 | PyObject * obj0 = 0 ; | |
4496 | PyObject * obj1 = 0 ; | |
4497 | char *kwnames[] = { | |
4498 | (char *) "self",(char *) "pt", NULL | |
4499 | }; | |
4500 | ||
4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4504 | { |
4505 | arg2 = &temp2; | |
4506 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4507 | } | |
4508 | { | |
4509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4510 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4511 | ||
4512 | wxPyEndAllowThreads(__tstate); | |
4513 | if (PyErr_Occurred()) SWIG_fail; | |
4514 | } | |
4f89f6a3 RD |
4515 | { |
4516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4517 | } | |
d14a1e28 RD |
4518 | return resultobj; |
4519 | fail: | |
4520 | return NULL; | |
4521 | } | |
4522 | ||
4523 | ||
4524 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4525 | PyObject *resultobj; | |
4526 | wxRect *arg1 = (wxRect *) 0 ; | |
4527 | wxRect *arg2 = 0 ; | |
4528 | bool result; | |
4529 | wxRect temp2 ; | |
4530 | PyObject * obj0 = 0 ; | |
4531 | PyObject * obj1 = 0 ; | |
4532 | char *kwnames[] = { | |
4533 | (char *) "self",(char *) "rect", NULL | |
4534 | }; | |
4535 | ||
4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4539 | { |
4540 | arg2 = &temp2; | |
4541 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4542 | } | |
4543 | { | |
4544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4545 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4546 | ||
4547 | wxPyEndAllowThreads(__tstate); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
4549 | } | |
4f89f6a3 RD |
4550 | { |
4551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4552 | } | |
d14a1e28 RD |
4553 | return resultobj; |
4554 | fail: | |
4555 | return NULL; | |
4556 | } | |
4557 | ||
4558 | ||
4559 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4560 | PyObject *resultobj; | |
4561 | wxRect *arg1 = (wxRect *) 0 ; | |
4562 | int arg2 ; | |
4563 | PyObject * obj0 = 0 ; | |
994141e6 | 4564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4565 | char *kwnames[] = { |
4566 | (char *) "self",(char *) "x", NULL | |
4567 | }; | |
4568 | ||
994141e6 | 4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4572 | arg2 = (int) SWIG_AsInt(obj1); | |
4573 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4574 | if (arg1) (arg1)->x = arg2; |
4575 | ||
4576 | Py_INCREF(Py_None); resultobj = Py_None; | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
4580 | } | |
4581 | ||
4582 | ||
4583 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4584 | PyObject *resultobj; | |
4585 | wxRect *arg1 = (wxRect *) 0 ; | |
4586 | int result; | |
4587 | PyObject * obj0 = 0 ; | |
4588 | char *kwnames[] = { | |
4589 | (char *) "self", NULL | |
4590 | }; | |
4591 | ||
4592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4595 | result = (int) ((arg1)->x); |
4596 | ||
15afbcd0 | 4597 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4598 | return resultobj; |
4599 | fail: | |
4600 | return NULL; | |
4601 | } | |
4602 | ||
4603 | ||
4604 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject *resultobj; | |
4606 | wxRect *arg1 = (wxRect *) 0 ; | |
4607 | int arg2 ; | |
4608 | PyObject * obj0 = 0 ; | |
994141e6 | 4609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4610 | char *kwnames[] = { |
4611 | (char *) "self",(char *) "y", NULL | |
4612 | }; | |
4613 | ||
994141e6 | 4614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4617 | arg2 = (int) SWIG_AsInt(obj1); | |
4618 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4619 | if (arg1) (arg1)->y = arg2; |
4620 | ||
4621 | Py_INCREF(Py_None); resultobj = Py_None; | |
4622 | return resultobj; | |
4623 | fail: | |
4624 | return NULL; | |
4625 | } | |
4626 | ||
4627 | ||
4628 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4629 | PyObject *resultobj; | |
4630 | wxRect *arg1 = (wxRect *) 0 ; | |
4631 | int result; | |
4632 | PyObject * obj0 = 0 ; | |
4633 | char *kwnames[] = { | |
4634 | (char *) "self", NULL | |
4635 | }; | |
4636 | ||
4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4640 | result = (int) ((arg1)->y); |
4641 | ||
15afbcd0 | 4642 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4643 | return resultobj; |
4644 | fail: | |
4645 | return NULL; | |
4646 | } | |
4647 | ||
4648 | ||
4649 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4650 | PyObject *resultobj; | |
4651 | wxRect *arg1 = (wxRect *) 0 ; | |
4652 | int arg2 ; | |
4653 | PyObject * obj0 = 0 ; | |
994141e6 | 4654 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4655 | char *kwnames[] = { |
4656 | (char *) "self",(char *) "width", NULL | |
4657 | }; | |
4658 | ||
994141e6 | 4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4662 | arg2 = (int) SWIG_AsInt(obj1); | |
4663 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4664 | if (arg1) (arg1)->width = arg2; |
4665 | ||
4666 | Py_INCREF(Py_None); resultobj = Py_None; | |
4667 | return resultobj; | |
4668 | fail: | |
4669 | return NULL; | |
4670 | } | |
4671 | ||
4672 | ||
4673 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4674 | PyObject *resultobj; | |
4675 | wxRect *arg1 = (wxRect *) 0 ; | |
4676 | int result; | |
4677 | PyObject * obj0 = 0 ; | |
4678 | char *kwnames[] = { | |
4679 | (char *) "self", NULL | |
4680 | }; | |
4681 | ||
4682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4685 | result = (int) ((arg1)->width); |
4686 | ||
15afbcd0 | 4687 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4688 | return resultobj; |
4689 | fail: | |
4690 | return NULL; | |
4691 | } | |
4692 | ||
4693 | ||
4694 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject *resultobj; | |
4696 | wxRect *arg1 = (wxRect *) 0 ; | |
4697 | int arg2 ; | |
4698 | PyObject * obj0 = 0 ; | |
994141e6 | 4699 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4700 | char *kwnames[] = { |
4701 | (char *) "self",(char *) "height", NULL | |
4702 | }; | |
4703 | ||
994141e6 | 4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4707 | arg2 = (int) SWIG_AsInt(obj1); | |
4708 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4709 | if (arg1) (arg1)->height = arg2; |
4710 | ||
4711 | Py_INCREF(Py_None); resultobj = Py_None; | |
4712 | return resultobj; | |
4713 | fail: | |
4714 | return NULL; | |
4715 | } | |
4716 | ||
4717 | ||
4718 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4719 | PyObject *resultobj; | |
4720 | wxRect *arg1 = (wxRect *) 0 ; | |
4721 | int result; | |
4722 | PyObject * obj0 = 0 ; | |
4723 | char *kwnames[] = { | |
4724 | (char *) "self", NULL | |
4725 | }; | |
4726 | ||
4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4730 | result = (int) ((arg1)->height); |
4731 | ||
15afbcd0 | 4732 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4733 | return resultobj; |
4734 | fail: | |
4735 | return NULL; | |
4736 | } | |
4737 | ||
4738 | ||
4739 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4740 | PyObject *resultobj; | |
4741 | wxRect *arg1 = (wxRect *) 0 ; | |
4742 | int arg2 = (int) 0 ; | |
4743 | int arg3 = (int) 0 ; | |
4744 | int arg4 = (int) 0 ; | |
4745 | int arg5 = (int) 0 ; | |
4746 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4747 | PyObject * obj1 = 0 ; |
4748 | PyObject * obj2 = 0 ; | |
4749 | PyObject * obj3 = 0 ; | |
4750 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4751 | char *kwnames[] = { |
4752 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4753 | }; | |
4754 | ||
994141e6 | 4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4758 | if (obj1) { |
15afbcd0 RD |
4759 | arg2 = (int) SWIG_AsInt(obj1); |
4760 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4761 | } |
4762 | if (obj2) { | |
15afbcd0 RD |
4763 | arg3 = (int) SWIG_AsInt(obj2); |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4765 | } |
4766 | if (obj3) { | |
15afbcd0 RD |
4767 | arg4 = (int) SWIG_AsInt(obj3); |
4768 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4769 | } |
4770 | if (obj4) { | |
15afbcd0 RD |
4771 | arg5 = (int) SWIG_AsInt(obj4); |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4773 | } |
d14a1e28 RD |
4774 | { |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4777 | ||
4778 | wxPyEndAllowThreads(__tstate); | |
4779 | if (PyErr_Occurred()) SWIG_fail; | |
4780 | } | |
4781 | Py_INCREF(Py_None); resultobj = Py_None; | |
4782 | return resultobj; | |
4783 | fail: | |
4784 | return NULL; | |
4785 | } | |
4786 | ||
4787 | ||
e811c8ce | 4788 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4789 | PyObject *resultobj; |
4790 | wxRect *arg1 = (wxRect *) 0 ; | |
4791 | PyObject *result; | |
4792 | PyObject * obj0 = 0 ; | |
4793 | char *kwnames[] = { | |
4794 | (char *) "self", NULL | |
4795 | }; | |
4796 | ||
e811c8ce | 4797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4800 | { |
4801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4802 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4803 | |
4804 | wxPyEndAllowThreads(__tstate); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | } | |
4807 | resultobj = result; | |
4808 | return resultobj; | |
4809 | fail: | |
4810 | return NULL; | |
4811 | } | |
4812 | ||
4813 | ||
4814 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4815 | PyObject *obj; | |
4816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4817 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4818 | Py_INCREF(obj); | |
4819 | return Py_BuildValue((char *)""); | |
4820 | } | |
4821 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4822 | PyObject *resultobj; | |
4823 | wxRect *arg1 = (wxRect *) 0 ; | |
4824 | wxRect *arg2 = (wxRect *) 0 ; | |
4825 | PyObject *result; | |
4826 | PyObject * obj0 = 0 ; | |
4827 | PyObject * obj1 = 0 ; | |
4828 | char *kwnames[] = { | |
4829 | (char *) "r1",(char *) "r2", NULL | |
4830 | }; | |
4831 | ||
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4837 | { |
e3b71cb8 | 4838 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4840 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4841 | ||
4842 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 4843 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4844 | } |
4845 | resultobj = result; | |
4846 | return resultobj; | |
4847 | fail: | |
4848 | return NULL; | |
4849 | } | |
4850 | ||
4851 | ||
4852 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4853 | PyObject *resultobj; | |
4854 | double arg1 = (double) 0.0 ; | |
4855 | double arg2 = (double) 0.0 ; | |
4856 | wxPoint2D *result; | |
994141e6 RD |
4857 | PyObject * obj0 = 0 ; |
4858 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4859 | char *kwnames[] = { |
4860 | (char *) "x",(char *) "y", NULL | |
4861 | }; | |
4862 | ||
994141e6 RD |
4863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4864 | if (obj0) { | |
15afbcd0 RD |
4865 | arg1 = (double) SWIG_AsDouble(obj0); |
4866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4867 | } |
4868 | if (obj1) { | |
15afbcd0 RD |
4869 | arg2 = (double) SWIG_AsDouble(obj1); |
4870 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4871 | } |
d14a1e28 RD |
4872 | { |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4874 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4875 | ||
4876 | wxPyEndAllowThreads(__tstate); | |
4877 | if (PyErr_Occurred()) SWIG_fail; | |
4878 | } | |
15afbcd0 | 4879 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4880 | return resultobj; |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
4886 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4887 | PyObject *resultobj; | |
4888 | wxPoint2D *arg1 = 0 ; | |
4889 | wxPoint2D *result; | |
4890 | wxPoint2D temp1 ; | |
4891 | PyObject * obj0 = 0 ; | |
4892 | char *kwnames[] = { | |
4893 | (char *) "pt", NULL | |
4894 | }; | |
4895 | ||
4896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4897 | { | |
4898 | arg1 = &temp1; | |
4899 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4900 | } | |
4901 | { | |
4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4903 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4904 | ||
4905 | wxPyEndAllowThreads(__tstate); | |
4906 | if (PyErr_Occurred()) SWIG_fail; | |
4907 | } | |
15afbcd0 | 4908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4909 | return resultobj; |
4910 | fail: | |
4911 | return NULL; | |
4912 | } | |
4913 | ||
4914 | ||
4915 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4916 | PyObject *resultobj; | |
4917 | wxPoint *arg1 = 0 ; | |
4918 | wxPoint2D *result; | |
4919 | wxPoint temp1 ; | |
4920 | PyObject * obj0 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "pt", NULL | |
4923 | }; | |
4924 | ||
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4926 | { | |
4927 | arg1 = &temp1; | |
4928 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4929 | } | |
4930 | { | |
4931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4932 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4933 | ||
4934 | wxPyEndAllowThreads(__tstate); | |
4935 | if (PyErr_Occurred()) SWIG_fail; | |
4936 | } | |
15afbcd0 | 4937 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4938 | return resultobj; |
4939 | fail: | |
4940 | return NULL; | |
4941 | } | |
4942 | ||
4943 | ||
4944 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4945 | PyObject *resultobj; | |
4946 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4947 | int *arg2 = (int *) 0 ; | |
4948 | int *arg3 = (int *) 0 ; | |
4949 | int temp2 ; | |
4950 | int temp3 ; | |
4951 | PyObject * obj0 = 0 ; | |
4952 | char *kwnames[] = { | |
4953 | (char *) "self", NULL | |
4954 | }; | |
4955 | ||
4956 | arg2 = &temp2; | |
4957 | arg3 = &temp3; | |
4958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4961 | { |
4962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4963 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4964 | ||
4965 | wxPyEndAllowThreads(__tstate); | |
4966 | if (PyErr_Occurred()) SWIG_fail; | |
4967 | } | |
4968 | Py_INCREF(Py_None); resultobj = Py_None; | |
4969 | { | |
4970 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4971 | resultobj = t_output_helper(resultobj,o); | |
4972 | } | |
4973 | { | |
4974 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4975 | resultobj = t_output_helper(resultobj,o); | |
4976 | } | |
4977 | return resultobj; | |
4978 | fail: | |
4979 | return NULL; | |
4980 | } | |
4981 | ||
4982 | ||
4983 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4984 | PyObject *resultobj; | |
4985 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4986 | int *arg2 = (int *) 0 ; | |
4987 | int *arg3 = (int *) 0 ; | |
4988 | int temp2 ; | |
4989 | int temp3 ; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | char *kwnames[] = { | |
4992 | (char *) "self", NULL | |
4993 | }; | |
4994 | ||
4995 | arg2 = &temp2; | |
4996 | arg3 = &temp3; | |
4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5000 | { |
5001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5002 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5003 | ||
5004 | wxPyEndAllowThreads(__tstate); | |
5005 | if (PyErr_Occurred()) SWIG_fail; | |
5006 | } | |
5007 | Py_INCREF(Py_None); resultobj = Py_None; | |
5008 | { | |
5009 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
5010 | resultobj = t_output_helper(resultobj,o); | |
5011 | } | |
5012 | { | |
5013 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5014 | resultobj = t_output_helper(resultobj,o); | |
5015 | } | |
5016 | return resultobj; | |
5017 | fail: | |
5018 | return NULL; | |
5019 | } | |
5020 | ||
5021 | ||
5022 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5023 | PyObject *resultobj; | |
5024 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5025 | double result; | |
5026 | PyObject * obj0 = 0 ; | |
5027 | char *kwnames[] = { | |
5028 | (char *) "self", NULL | |
5029 | }; | |
5030 | ||
5031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5034 | { |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5036 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
5039 | if (PyErr_Occurred()) SWIG_fail; | |
5040 | } | |
15afbcd0 | 5041 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5042 | return resultobj; |
5043 | fail: | |
5044 | return NULL; | |
5045 | } | |
5046 | ||
5047 | ||
5048 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject *resultobj; | |
5050 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5051 | double result; | |
5052 | PyObject * obj0 = 0 ; | |
5053 | char *kwnames[] = { | |
5054 | (char *) "self", NULL | |
5055 | }; | |
5056 | ||
5057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5060 | { |
5061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5062 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5063 | ||
5064 | wxPyEndAllowThreads(__tstate); | |
5065 | if (PyErr_Occurred()) SWIG_fail; | |
5066 | } | |
15afbcd0 | 5067 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5068 | return resultobj; |
5069 | fail: | |
5070 | return NULL; | |
5071 | } | |
5072 | ||
5073 | ||
5074 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5075 | PyObject *resultobj; | |
5076 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5077 | double arg2 ; | |
5078 | PyObject * obj0 = 0 ; | |
994141e6 | 5079 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5080 | char *kwnames[] = { |
5081 | (char *) "self",(char *) "length", NULL | |
5082 | }; | |
5083 | ||
994141e6 | 5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5087 | arg2 = (double) SWIG_AsDouble(obj1); | |
5088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5089 | { |
5090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5091 | (arg1)->SetVectorLength(arg2); | |
5092 | ||
5093 | wxPyEndAllowThreads(__tstate); | |
5094 | if (PyErr_Occurred()) SWIG_fail; | |
5095 | } | |
5096 | Py_INCREF(Py_None); resultobj = Py_None; | |
5097 | return resultobj; | |
5098 | fail: | |
5099 | return NULL; | |
5100 | } | |
5101 | ||
5102 | ||
5103 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5104 | PyObject *resultobj; | |
5105 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5106 | double arg2 ; | |
5107 | PyObject * obj0 = 0 ; | |
994141e6 | 5108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5109 | char *kwnames[] = { |
5110 | (char *) "self",(char *) "degrees", NULL | |
5111 | }; | |
5112 | ||
994141e6 | 5113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5116 | arg2 = (double) SWIG_AsDouble(obj1); | |
5117 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5118 | { |
5119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5120 | (arg1)->SetVectorAngle(arg2); | |
5121 | ||
5122 | wxPyEndAllowThreads(__tstate); | |
5123 | if (PyErr_Occurred()) SWIG_fail; | |
5124 | } | |
5125 | Py_INCREF(Py_None); resultobj = Py_None; | |
5126 | return resultobj; | |
5127 | fail: | |
5128 | return NULL; | |
5129 | } | |
5130 | ||
5131 | ||
5132 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject *resultobj; | |
5134 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5135 | wxPoint2D *arg2 = 0 ; | |
5136 | double result; | |
5137 | wxPoint2D temp2 ; | |
5138 | PyObject * obj0 = 0 ; | |
5139 | PyObject * obj1 = 0 ; | |
5140 | char *kwnames[] = { | |
5141 | (char *) "self",(char *) "pt", NULL | |
5142 | }; | |
5143 | ||
5144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5147 | { |
5148 | arg2 = &temp2; | |
5149 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5150 | } | |
5151 | { | |
5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5153 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5154 | ||
5155 | wxPyEndAllowThreads(__tstate); | |
5156 | if (PyErr_Occurred()) SWIG_fail; | |
5157 | } | |
15afbcd0 | 5158 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5159 | return resultobj; |
5160 | fail: | |
5161 | return NULL; | |
5162 | } | |
5163 | ||
5164 | ||
5165 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5166 | PyObject *resultobj; | |
5167 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5168 | wxPoint2D *arg2 = 0 ; | |
5169 | double result; | |
5170 | wxPoint2D temp2 ; | |
5171 | PyObject * obj0 = 0 ; | |
5172 | PyObject * obj1 = 0 ; | |
5173 | char *kwnames[] = { | |
5174 | (char *) "self",(char *) "pt", NULL | |
5175 | }; | |
5176 | ||
5177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5180 | { |
5181 | arg2 = &temp2; | |
5182 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5183 | } | |
5184 | { | |
5185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5186 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5187 | ||
5188 | wxPyEndAllowThreads(__tstate); | |
5189 | if (PyErr_Occurred()) SWIG_fail; | |
5190 | } | |
15afbcd0 | 5191 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5192 | return resultobj; |
5193 | fail: | |
5194 | return NULL; | |
5195 | } | |
5196 | ||
5197 | ||
5198 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject *resultobj; | |
5200 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5201 | wxPoint2D *arg2 = 0 ; | |
5202 | double result; | |
5203 | wxPoint2D temp2 ; | |
5204 | PyObject * obj0 = 0 ; | |
5205 | PyObject * obj1 = 0 ; | |
5206 | char *kwnames[] = { | |
5207 | (char *) "self",(char *) "vec", NULL | |
5208 | }; | |
5209 | ||
5210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5213 | { |
5214 | arg2 = &temp2; | |
5215 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5216 | } | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5220 | ||
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
15afbcd0 | 5224 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5225 | return resultobj; |
5226 | fail: | |
5227 | return NULL; | |
5228 | } | |
5229 | ||
5230 | ||
5231 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5232 | PyObject *resultobj; | |
5233 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5234 | wxPoint2D *arg2 = 0 ; | |
5235 | double result; | |
5236 | wxPoint2D temp2 ; | |
5237 | PyObject * obj0 = 0 ; | |
5238 | PyObject * obj1 = 0 ; | |
5239 | char *kwnames[] = { | |
5240 | (char *) "self",(char *) "vec", NULL | |
5241 | }; | |
5242 | ||
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5246 | { |
5247 | arg2 = &temp2; | |
5248 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5249 | } | |
5250 | { | |
5251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5252 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5253 | ||
5254 | wxPyEndAllowThreads(__tstate); | |
5255 | if (PyErr_Occurred()) SWIG_fail; | |
5256 | } | |
15afbcd0 | 5257 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5258 | return resultobj; |
5259 | fail: | |
5260 | return NULL; | |
5261 | } | |
5262 | ||
5263 | ||
5264 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5265 | PyObject *resultobj; | |
5266 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5267 | wxPoint2D result; | |
5268 | PyObject * obj0 = 0 ; | |
5269 | char *kwnames[] = { | |
5270 | (char *) "self", NULL | |
5271 | }; | |
5272 | ||
5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5276 | { |
5277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5278 | result = (arg1)->operator -(); | |
5279 | ||
5280 | wxPyEndAllowThreads(__tstate); | |
5281 | if (PyErr_Occurred()) SWIG_fail; | |
5282 | } | |
5283 | { | |
5284 | wxPoint2D * resultptr; | |
5285 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
15afbcd0 | 5286 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5287 | } |
5288 | return resultobj; | |
5289 | fail: | |
5290 | return NULL; | |
5291 | } | |
5292 | ||
5293 | ||
5294 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5295 | PyObject *resultobj; | |
5296 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5297 | wxPoint2D *arg2 = 0 ; | |
5298 | wxPoint2D *result; | |
5299 | wxPoint2D temp2 ; | |
5300 | PyObject * obj0 = 0 ; | |
5301 | PyObject * obj1 = 0 ; | |
5302 | char *kwnames[] = { | |
5303 | (char *) "self",(char *) "pt", NULL | |
5304 | }; | |
5305 | ||
5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5309 | { |
5310 | arg2 = &temp2; | |
5311 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5312 | } | |
5313 | { | |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5315 | { | |
5316 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5317 | result = (wxPoint2D *) &_result_ref; | |
5318 | } | |
5319 | ||
5320 | wxPyEndAllowThreads(__tstate); | |
5321 | if (PyErr_Occurred()) SWIG_fail; | |
5322 | } | |
15afbcd0 | 5323 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5324 | return resultobj; |
5325 | fail: | |
5326 | return NULL; | |
5327 | } | |
5328 | ||
5329 | ||
5330 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5331 | PyObject *resultobj; | |
5332 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5333 | wxPoint2D *arg2 = 0 ; | |
5334 | wxPoint2D *result; | |
5335 | wxPoint2D temp2 ; | |
5336 | PyObject * obj0 = 0 ; | |
5337 | PyObject * obj1 = 0 ; | |
5338 | char *kwnames[] = { | |
5339 | (char *) "self",(char *) "pt", NULL | |
5340 | }; | |
5341 | ||
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5345 | { |
5346 | arg2 = &temp2; | |
5347 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5348 | } | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | { | |
5352 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5353 | result = (wxPoint2D *) &_result_ref; | |
5354 | } | |
5355 | ||
5356 | wxPyEndAllowThreads(__tstate); | |
5357 | if (PyErr_Occurred()) SWIG_fail; | |
5358 | } | |
15afbcd0 | 5359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5360 | return resultobj; |
5361 | fail: | |
5362 | return NULL; | |
5363 | } | |
5364 | ||
5365 | ||
5366 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject *resultobj; | |
5368 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5369 | wxPoint2D *arg2 = 0 ; | |
5370 | wxPoint2D *result; | |
5371 | wxPoint2D temp2 ; | |
5372 | PyObject * obj0 = 0 ; | |
5373 | PyObject * obj1 = 0 ; | |
5374 | char *kwnames[] = { | |
5375 | (char *) "self",(char *) "pt", NULL | |
5376 | }; | |
5377 | ||
5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5381 | { |
5382 | arg2 = &temp2; | |
5383 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5384 | } | |
5385 | { | |
5386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5387 | { | |
5388 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5389 | result = (wxPoint2D *) &_result_ref; | |
5390 | } | |
5391 | ||
5392 | wxPyEndAllowThreads(__tstate); | |
5393 | if (PyErr_Occurred()) SWIG_fail; | |
5394 | } | |
15afbcd0 | 5395 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5396 | return resultobj; |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject *resultobj; | |
5404 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5405 | wxPoint2D *arg2 = 0 ; | |
5406 | wxPoint2D *result; | |
5407 | wxPoint2D temp2 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | PyObject * obj1 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self",(char *) "pt", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5417 | { |
5418 | arg2 = &temp2; | |
5419 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | { | |
5424 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5425 | result = (wxPoint2D *) &_result_ref; | |
5426 | } | |
5427 | ||
5428 | wxPyEndAllowThreads(__tstate); | |
5429 | if (PyErr_Occurred()) SWIG_fail; | |
5430 | } | |
15afbcd0 | 5431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5432 | return resultobj; |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
5438 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject *resultobj; | |
5440 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5441 | wxPoint2D *arg2 = 0 ; | |
5442 | bool result; | |
5443 | wxPoint2D temp2 ; | |
5444 | PyObject * obj0 = 0 ; | |
5445 | PyObject * obj1 = 0 ; | |
5446 | char *kwnames[] = { | |
5447 | (char *) "self",(char *) "pt", NULL | |
5448 | }; | |
5449 | ||
5450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5453 | { |
5454 | arg2 = &temp2; | |
5455 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5456 | } | |
5457 | { | |
5458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5459 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5460 | ||
5461 | wxPyEndAllowThreads(__tstate); | |
5462 | if (PyErr_Occurred()) SWIG_fail; | |
5463 | } | |
4f89f6a3 RD |
5464 | { |
5465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5466 | } | |
d14a1e28 RD |
5467 | return resultobj; |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj; | |
5475 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5476 | wxPoint2D *arg2 = 0 ; | |
5477 | bool result; | |
5478 | wxPoint2D temp2 ; | |
5479 | PyObject * obj0 = 0 ; | |
5480 | PyObject * obj1 = 0 ; | |
5481 | char *kwnames[] = { | |
5482 | (char *) "self",(char *) "pt", NULL | |
5483 | }; | |
5484 | ||
5485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5488 | { |
5489 | arg2 = &temp2; | |
5490 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5491 | } | |
5492 | { | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5495 | ||
5496 | wxPyEndAllowThreads(__tstate); | |
5497 | if (PyErr_Occurred()) SWIG_fail; | |
5498 | } | |
4f89f6a3 RD |
5499 | { |
5500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5501 | } | |
d14a1e28 RD |
5502 | return resultobj; |
5503 | fail: | |
5504 | return NULL; | |
5505 | } | |
5506 | ||
5507 | ||
d14a1e28 RD |
5508 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5509 | PyObject *resultobj; | |
5510 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5511 | double arg2 ; | |
5512 | PyObject * obj0 = 0 ; | |
994141e6 | 5513 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5514 | char *kwnames[] = { |
5515 | (char *) "self",(char *) "m_x", NULL | |
5516 | }; | |
5517 | ||
994141e6 | 5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5521 | arg2 = (double) SWIG_AsDouble(obj1); | |
5522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5523 | if (arg1) (arg1)->m_x = arg2; |
5524 | ||
5525 | Py_INCREF(Py_None); resultobj = Py_None; | |
5526 | return resultobj; | |
5527 | fail: | |
5528 | return NULL; | |
5529 | } | |
5530 | ||
5531 | ||
5532 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5533 | PyObject *resultobj; | |
5534 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5535 | double result; | |
5536 | PyObject * obj0 = 0 ; | |
5537 | char *kwnames[] = { | |
5538 | (char *) "self", NULL | |
5539 | }; | |
5540 | ||
5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5544 | result = (double) ((arg1)->m_x); |
5545 | ||
15afbcd0 | 5546 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5547 | return resultobj; |
5548 | fail: | |
5549 | return NULL; | |
5550 | } | |
5551 | ||
5552 | ||
5553 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5554 | PyObject *resultobj; | |
5555 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5556 | double arg2 ; | |
5557 | PyObject * obj0 = 0 ; | |
994141e6 | 5558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5559 | char *kwnames[] = { |
5560 | (char *) "self",(char *) "m_y", NULL | |
5561 | }; | |
5562 | ||
994141e6 | 5563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5566 | arg2 = (double) SWIG_AsDouble(obj1); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5568 | if (arg1) (arg1)->m_y = arg2; |
5569 | ||
5570 | Py_INCREF(Py_None); resultobj = Py_None; | |
5571 | return resultobj; | |
5572 | fail: | |
5573 | return NULL; | |
5574 | } | |
5575 | ||
5576 | ||
5577 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5578 | PyObject *resultobj; | |
5579 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5580 | double result; | |
5581 | PyObject * obj0 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "self", NULL | |
5584 | }; | |
5585 | ||
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5589 | result = (double) ((arg1)->m_y); |
5590 | ||
15afbcd0 | 5591 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5592 | return resultobj; |
5593 | fail: | |
5594 | return NULL; | |
5595 | } | |
5596 | ||
5597 | ||
5598 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5599 | PyObject *resultobj; | |
5600 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5601 | double arg2 = (double) 0 ; | |
5602 | double arg3 = (double) 0 ; | |
5603 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5604 | PyObject * obj1 = 0 ; |
5605 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5606 | char *kwnames[] = { |
5607 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5608 | }; | |
5609 | ||
994141e6 | 5610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5613 | if (obj1) { |
15afbcd0 RD |
5614 | arg2 = (double) SWIG_AsDouble(obj1); |
5615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
5616 | } |
5617 | if (obj2) { | |
15afbcd0 RD |
5618 | arg3 = (double) SWIG_AsDouble(obj2); |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5620 | } |
d14a1e28 RD |
5621 | { |
5622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5623 | wxPoint2D_Set(arg1,arg2,arg3); | |
5624 | ||
5625 | wxPyEndAllowThreads(__tstate); | |
5626 | if (PyErr_Occurred()) SWIG_fail; | |
5627 | } | |
5628 | Py_INCREF(Py_None); resultobj = Py_None; | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
e811c8ce | 5635 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5636 | PyObject *resultobj; |
5637 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5638 | PyObject *result; | |
5639 | PyObject * obj0 = 0 ; | |
5640 | char *kwnames[] = { | |
5641 | (char *) "self", NULL | |
5642 | }; | |
5643 | ||
e811c8ce | 5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5647 | { |
5648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5649 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5650 | |
5651 | wxPyEndAllowThreads(__tstate); | |
5652 | if (PyErr_Occurred()) SWIG_fail; | |
5653 | } | |
5654 | resultobj = result; | |
5655 | return resultobj; | |
5656 | fail: | |
5657 | return NULL; | |
5658 | } | |
5659 | ||
5660 | ||
5661 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5662 | PyObject *obj; | |
5663 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5664 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5665 | Py_INCREF(obj); | |
5666 | return Py_BuildValue((char *)""); | |
5667 | } | |
5668 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5669 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5670 | return 1; | |
5671 | } | |
5672 | ||
5673 | ||
5674 | static PyObject *_wrap_DefaultPosition_get() { | |
5675 | PyObject *pyobj; | |
5676 | ||
15afbcd0 | 5677 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5678 | return pyobj; |
5679 | } | |
5680 | ||
5681 | ||
5682 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5683 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5684 | return 1; | |
5685 | } | |
5686 | ||
5687 | ||
5688 | static PyObject *_wrap_DefaultSize_get() { | |
5689 | PyObject *pyobj; | |
5690 | ||
15afbcd0 | 5691 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5692 | return pyobj; |
5693 | } | |
5694 | ||
5695 | ||
5696 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5697 | PyObject *resultobj; | |
5698 | PyObject *arg1 = (PyObject *) 0 ; | |
5699 | wxPyInputStream *result; | |
5700 | PyObject * obj0 = 0 ; | |
5701 | char *kwnames[] = { | |
5702 | (char *) "p", NULL | |
5703 | }; | |
5704 | ||
5705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5706 | arg1 = obj0; | |
5707 | { | |
5708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5709 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5710 | ||
5711 | wxPyEndAllowThreads(__tstate); | |
5712 | if (PyErr_Occurred()) SWIG_fail; | |
5713 | } | |
15afbcd0 | 5714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5715 | return resultobj; |
5716 | fail: | |
5717 | return NULL; | |
5718 | } | |
5719 | ||
5720 | ||
5721 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5722 | PyObject *resultobj; | |
5723 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5724 | PyObject * obj0 = 0 ; | |
5725 | char *kwnames[] = { | |
5726 | (char *) "self", NULL | |
5727 | }; | |
5728 | ||
5729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5732 | { |
5733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5734 | (arg1)->close(); | |
5735 | ||
5736 | wxPyEndAllowThreads(__tstate); | |
5737 | if (PyErr_Occurred()) SWIG_fail; | |
5738 | } | |
5739 | Py_INCREF(Py_None); resultobj = Py_None; | |
5740 | return resultobj; | |
5741 | fail: | |
5742 | return NULL; | |
5743 | } | |
5744 | ||
5745 | ||
5746 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5747 | PyObject *resultobj; | |
5748 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5749 | PyObject * obj0 = 0 ; | |
5750 | char *kwnames[] = { | |
5751 | (char *) "self", NULL | |
5752 | }; | |
5753 | ||
5754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5757 | { |
5758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5759 | (arg1)->flush(); | |
5760 | ||
5761 | wxPyEndAllowThreads(__tstate); | |
5762 | if (PyErr_Occurred()) SWIG_fail; | |
5763 | } | |
5764 | Py_INCREF(Py_None); resultobj = Py_None; | |
5765 | return resultobj; | |
5766 | fail: | |
5767 | return NULL; | |
5768 | } | |
5769 | ||
5770 | ||
5771 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject *resultobj; | |
5773 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5774 | bool result; | |
5775 | PyObject * obj0 = 0 ; | |
5776 | char *kwnames[] = { | |
5777 | (char *) "self", NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5783 | { |
5784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5785 | result = (bool)(arg1)->eof(); | |
5786 | ||
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
4f89f6a3 RD |
5790 | { |
5791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5792 | } | |
d14a1e28 RD |
5793 | return resultobj; |
5794 | fail: | |
5795 | return NULL; | |
5796 | } | |
5797 | ||
5798 | ||
5799 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5800 | PyObject *resultobj; | |
5801 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5802 | int arg2 = (int) -1 ; | |
5803 | PyObject *result; | |
5804 | PyObject * obj0 = 0 ; | |
994141e6 | 5805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5806 | char *kwnames[] = { |
5807 | (char *) "self",(char *) "size", NULL | |
5808 | }; | |
5809 | ||
994141e6 | 5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5813 | if (obj1) { |
15afbcd0 RD |
5814 | arg2 = (int) SWIG_AsInt(obj1); |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5816 | } |
d14a1e28 RD |
5817 | { |
5818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5819 | result = (PyObject *)(arg1)->read(arg2); | |
5820 | ||
5821 | wxPyEndAllowThreads(__tstate); | |
5822 | if (PyErr_Occurred()) SWIG_fail; | |
5823 | } | |
5824 | resultobj = result; | |
5825 | return resultobj; | |
5826 | fail: | |
5827 | return NULL; | |
5828 | } | |
5829 | ||
5830 | ||
5831 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5832 | PyObject *resultobj; | |
5833 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5834 | int arg2 = (int) -1 ; | |
5835 | PyObject *result; | |
5836 | PyObject * obj0 = 0 ; | |
994141e6 | 5837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5838 | char *kwnames[] = { |
5839 | (char *) "self",(char *) "size", NULL | |
5840 | }; | |
5841 | ||
994141e6 | 5842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5845 | if (obj1) { |
15afbcd0 RD |
5846 | arg2 = (int) SWIG_AsInt(obj1); |
5847 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5848 | } |
d14a1e28 RD |
5849 | { |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | result = (PyObject *)(arg1)->readline(arg2); | |
5852 | ||
5853 | wxPyEndAllowThreads(__tstate); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
5856 | resultobj = result; | |
5857 | return resultobj; | |
5858 | fail: | |
5859 | return NULL; | |
5860 | } | |
5861 | ||
5862 | ||
5863 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject *resultobj; | |
5865 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5866 | int arg2 = (int) -1 ; | |
5867 | PyObject *result; | |
5868 | PyObject * obj0 = 0 ; | |
994141e6 | 5869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5870 | char *kwnames[] = { |
5871 | (char *) "self",(char *) "sizehint", NULL | |
5872 | }; | |
5873 | ||
994141e6 | 5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5877 | if (obj1) { |
15afbcd0 RD |
5878 | arg2 = (int) SWIG_AsInt(obj1); |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5880 | } |
d14a1e28 RD |
5881 | { |
5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5883 | result = (PyObject *)(arg1)->readlines(arg2); | |
5884 | ||
5885 | wxPyEndAllowThreads(__tstate); | |
5886 | if (PyErr_Occurred()) SWIG_fail; | |
5887 | } | |
5888 | resultobj = result; | |
5889 | return resultobj; | |
5890 | fail: | |
5891 | return NULL; | |
5892 | } | |
5893 | ||
5894 | ||
5895 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject *resultobj; | |
5897 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5898 | int arg2 ; | |
5899 | int arg3 = (int) 0 ; | |
5900 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5901 | PyObject * obj1 = 0 ; |
5902 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5903 | char *kwnames[] = { |
5904 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5905 | }; | |
5906 | ||
994141e6 | 5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5910 | arg2 = (int) SWIG_AsInt(obj1); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5912 | if (obj2) { |
15afbcd0 RD |
5913 | arg3 = (int) SWIG_AsInt(obj2); |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5915 | } |
d14a1e28 RD |
5916 | { |
5917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5918 | (arg1)->seek(arg2,arg3); | |
5919 | ||
5920 | wxPyEndAllowThreads(__tstate); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | } | |
5923 | Py_INCREF(Py_None); resultobj = Py_None; | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
5930 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject *resultobj; | |
5932 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5933 | int result; | |
5934 | PyObject * obj0 = 0 ; | |
5935 | char *kwnames[] = { | |
5936 | (char *) "self", NULL | |
5937 | }; | |
5938 | ||
5939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5942 | { |
5943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5944 | result = (int)(arg1)->tell(); | |
5945 | ||
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
15afbcd0 | 5949 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5950 | return resultobj; |
5951 | fail: | |
5952 | return NULL; | |
5953 | } | |
5954 | ||
5955 | ||
5956 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject *resultobj; | |
5958 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5959 | char result; | |
5960 | PyObject * obj0 = 0 ; | |
5961 | char *kwnames[] = { | |
5962 | (char *) "self", NULL | |
5963 | }; | |
5964 | ||
5965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5968 | { |
5969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5970 | result = (char)(arg1)->Peek(); | |
5971 | ||
5972 | wxPyEndAllowThreads(__tstate); | |
5973 | if (PyErr_Occurred()) SWIG_fail; | |
5974 | } | |
15afbcd0 | 5975 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5976 | return resultobj; |
5977 | fail: | |
5978 | return NULL; | |
5979 | } | |
5980 | ||
5981 | ||
5982 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5983 | PyObject *resultobj; | |
5984 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5985 | char result; | |
5986 | PyObject * obj0 = 0 ; | |
5987 | char *kwnames[] = { | |
5988 | (char *) "self", NULL | |
5989 | }; | |
5990 | ||
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5994 | { |
5995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5996 | result = (char)(arg1)->GetC(); | |
5997 | ||
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
15afbcd0 | 6001 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
6002 | return resultobj; |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
6008 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6009 | PyObject *resultobj; | |
6010 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6011 | size_t result; | |
6012 | PyObject * obj0 = 0 ; | |
6013 | char *kwnames[] = { | |
6014 | (char *) "self", NULL | |
6015 | }; | |
6016 | ||
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6020 | { |
6021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6022 | result = (size_t)(arg1)->LastRead(); | |
6023 | ||
6024 | wxPyEndAllowThreads(__tstate); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
15afbcd0 | 6027 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6028 | return resultobj; |
6029 | fail: | |
6030 | return NULL; | |
6031 | } | |
6032 | ||
6033 | ||
6034 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6035 | PyObject *resultobj; | |
6036 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6037 | bool result; | |
6038 | PyObject * obj0 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "self", NULL | |
6041 | }; | |
6042 | ||
6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6046 | { |
6047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6048 | result = (bool)(arg1)->CanRead(); | |
6049 | ||
6050 | wxPyEndAllowThreads(__tstate); | |
6051 | if (PyErr_Occurred()) SWIG_fail; | |
6052 | } | |
4f89f6a3 RD |
6053 | { |
6054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6055 | } | |
d14a1e28 RD |
6056 | return resultobj; |
6057 | fail: | |
6058 | return NULL; | |
6059 | } | |
6060 | ||
6061 | ||
6062 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6063 | PyObject *resultobj; | |
6064 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6065 | bool result; | |
6066 | PyObject * obj0 = 0 ; | |
6067 | char *kwnames[] = { | |
6068 | (char *) "self", NULL | |
6069 | }; | |
6070 | ||
6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6074 | { |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (bool)(arg1)->Eof(); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
4f89f6a3 RD |
6081 | { |
6082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6083 | } | |
d14a1e28 RD |
6084 | return resultobj; |
6085 | fail: | |
6086 | return NULL; | |
6087 | } | |
6088 | ||
6089 | ||
6090 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6091 | PyObject *resultobj; | |
6092 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6093 | char arg2 ; | |
6094 | bool result; | |
6095 | PyObject * obj0 = 0 ; | |
994141e6 | 6096 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6097 | char *kwnames[] = { |
6098 | (char *) "self",(char *) "c", NULL | |
6099 | }; | |
6100 | ||
994141e6 | 6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6104 | arg2 = (char) SWIG_AsChar(obj1); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6106 | { |
6107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6108 | result = (bool)(arg1)->Ungetch(arg2); | |
6109 | ||
6110 | wxPyEndAllowThreads(__tstate); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | } | |
4f89f6a3 RD |
6113 | { |
6114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6115 | } | |
d14a1e28 RD |
6116 | return resultobj; |
6117 | fail: | |
6118 | return NULL; | |
6119 | } | |
6120 | ||
6121 | ||
6122 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6123 | PyObject *resultobj; | |
6124 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6125 | long arg2 ; | |
6126 | int arg3 = (int) wxFromStart ; | |
6127 | long result; | |
6128 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6129 | PyObject * obj1 = 0 ; |
6130 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6131 | char *kwnames[] = { |
6132 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6133 | }; | |
6134 | ||
994141e6 | 6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6138 | arg2 = (long) SWIG_AsLong(obj1); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6140 | if (obj2) { |
15afbcd0 RD |
6141 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
6142 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6143 | } |
d14a1e28 RD |
6144 | { |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6146 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6147 | ||
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
15afbcd0 | 6151 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6152 | return resultobj; |
6153 | fail: | |
6154 | return NULL; | |
6155 | } | |
6156 | ||
6157 | ||
6158 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6159 | PyObject *resultobj; | |
6160 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6161 | long result; | |
6162 | PyObject * obj0 = 0 ; | |
6163 | char *kwnames[] = { | |
6164 | (char *) "self", NULL | |
6165 | }; | |
6166 | ||
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6170 | { |
6171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6172 | result = (long)(arg1)->TellI(); | |
6173 | ||
6174 | wxPyEndAllowThreads(__tstate); | |
6175 | if (PyErr_Occurred()) SWIG_fail; | |
6176 | } | |
15afbcd0 | 6177 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6178 | return resultobj; |
6179 | fail: | |
6180 | return NULL; | |
6181 | } | |
6182 | ||
6183 | ||
6184 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6185 | PyObject *obj; | |
6186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6187 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6188 | Py_INCREF(obj); | |
6189 | return Py_BuildValue((char *)""); | |
6190 | } | |
6191 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject *resultobj; | |
6193 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6194 | PyObject *arg2 = (PyObject *) 0 ; | |
6195 | PyObject * obj0 = 0 ; | |
6196 | PyObject * obj1 = 0 ; | |
6197 | char *kwnames[] = { | |
6198 | (char *) "self",(char *) "obj", NULL | |
6199 | }; | |
6200 | ||
6201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6204 | arg2 = obj1; |
6205 | { | |
6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6207 | wxOutputStream_write(arg1,arg2); | |
6208 | ||
6209 | wxPyEndAllowThreads(__tstate); | |
6210 | if (PyErr_Occurred()) SWIG_fail; | |
6211 | } | |
6212 | Py_INCREF(Py_None); resultobj = Py_None; | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
6219 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6220 | PyObject *obj; | |
6221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6222 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6223 | Py_INCREF(obj); | |
6224 | return Py_BuildValue((char *)""); | |
6225 | } | |
6226 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject *resultobj; | |
6228 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6229 | wxString *arg2 = 0 ; | |
6230 | wxString *arg3 = 0 ; | |
6231 | wxString *arg4 = 0 ; | |
6232 | wxDateTime arg5 ; | |
6233 | wxFSFile *result; | |
6234 | wxPyInputStream *temp1 ; | |
6235 | bool created1 ; | |
e811c8ce RD |
6236 | bool temp2 = False ; |
6237 | bool temp3 = False ; | |
6238 | bool temp4 = False ; | |
d14a1e28 RD |
6239 | wxDateTime *argp5 ; |
6240 | PyObject * obj0 = 0 ; | |
6241 | PyObject * obj1 = 0 ; | |
6242 | PyObject * obj2 = 0 ; | |
6243 | PyObject * obj3 = 0 ; | |
6244 | PyObject * obj4 = 0 ; | |
6245 | char *kwnames[] = { | |
6246 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6247 | }; | |
6248 | ||
6249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6250 | { | |
6251 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6252 | arg1 = temp1->m_wxis; | |
e811c8ce | 6253 | created1 = False; |
d14a1e28 RD |
6254 | } else { |
6255 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 6256 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6257 | if (arg1 == NULL) { |
6258 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6259 | SWIG_fail; | |
6260 | } | |
e811c8ce | 6261 | created1 = True; |
d14a1e28 RD |
6262 | } |
6263 | } | |
6264 | { | |
6265 | arg2 = wxString_in_helper(obj1); | |
6266 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6267 | temp2 = True; |
d14a1e28 RD |
6268 | } |
6269 | { | |
6270 | arg3 = wxString_in_helper(obj2); | |
6271 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6272 | temp3 = True; |
d14a1e28 RD |
6273 | } |
6274 | { | |
6275 | arg4 = wxString_in_helper(obj3); | |
6276 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6277 | temp4 = True; |
d14a1e28 | 6278 | } |
15afbcd0 RD |
6279 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6280 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6281 | arg5 = *argp5; | |
d14a1e28 RD |
6282 | { |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | { | |
6290 | resultobj = wxPyMake_wxObject(result); | |
6291 | } | |
6292 | { | |
6293 | if (created1) | |
6294 | delete arg1; | |
6295 | } | |
6296 | { | |
6297 | if (temp2) | |
6298 | delete arg2; | |
6299 | } | |
6300 | { | |
6301 | if (temp3) | |
6302 | delete arg3; | |
6303 | } | |
6304 | { | |
6305 | if (temp4) | |
6306 | delete arg4; | |
6307 | } | |
6308 | return resultobj; | |
6309 | fail: | |
6310 | { | |
6311 | if (created1) | |
6312 | delete arg1; | |
6313 | } | |
6314 | { | |
6315 | if (temp2) | |
6316 | delete arg2; | |
6317 | } | |
6318 | { | |
6319 | if (temp3) | |
6320 | delete arg3; | |
6321 | } | |
6322 | { | |
6323 | if (temp4) | |
6324 | delete arg4; | |
6325 | } | |
6326 | return NULL; | |
6327 | } | |
6328 | ||
6329 | ||
6330 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6331 | PyObject *resultobj; | |
6332 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6333 | PyObject * obj0 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "self", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6341 | { |
6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6343 | delete arg1; | |
6344 | ||
6345 | wxPyEndAllowThreads(__tstate); | |
6346 | if (PyErr_Occurred()) SWIG_fail; | |
6347 | } | |
6348 | Py_INCREF(Py_None); resultobj = Py_None; | |
6349 | return resultobj; | |
6350 | fail: | |
6351 | return NULL; | |
6352 | } | |
6353 | ||
6354 | ||
6355 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6356 | PyObject *resultobj; | |
6357 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6358 | wxInputStream *result; | |
6359 | PyObject * obj0 = 0 ; | |
6360 | char *kwnames[] = { | |
6361 | (char *) "self", NULL | |
6362 | }; | |
6363 | ||
6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6367 | { |
6368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6369 | result = (wxInputStream *)(arg1)->GetStream(); | |
6370 | ||
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | { | |
6375 | wxPyInputStream * _ptr = NULL; | |
6376 | ||
6377 | if (result) { | |
6378 | _ptr = new wxPyInputStream(result); | |
6379 | } | |
e811c8ce | 6380 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6381 | } |
6382 | return resultobj; | |
6383 | fail: | |
6384 | return NULL; | |
6385 | } | |
6386 | ||
6387 | ||
6388 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6389 | PyObject *resultobj; | |
6390 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6391 | wxString *result; | |
6392 | PyObject * obj0 = 0 ; | |
6393 | char *kwnames[] = { | |
6394 | (char *) "self", NULL | |
6395 | }; | |
6396 | ||
6397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6400 | { |
6401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6402 | { | |
6403 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6404 | result = (wxString *) &_result_ref; | |
6405 | } | |
6406 | ||
6407 | wxPyEndAllowThreads(__tstate); | |
6408 | if (PyErr_Occurred()) SWIG_fail; | |
6409 | } | |
cc6dd355 RD |
6410 | { |
6411 | #if wxUSE_UNICODE | |
6412 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6413 | #else | |
6414 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6415 | #endif | |
6416 | } | |
d14a1e28 RD |
6417 | return resultobj; |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
6423 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject *resultobj; | |
6425 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6426 | wxString *result; | |
6427 | PyObject * obj0 = 0 ; | |
6428 | char *kwnames[] = { | |
6429 | (char *) "self", NULL | |
6430 | }; | |
6431 | ||
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6435 | { |
6436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6437 | { | |
6438 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6439 | result = (wxString *) &_result_ref; | |
6440 | } | |
6441 | ||
6442 | wxPyEndAllowThreads(__tstate); | |
6443 | if (PyErr_Occurred()) SWIG_fail; | |
6444 | } | |
cc6dd355 RD |
6445 | { |
6446 | #if wxUSE_UNICODE | |
6447 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6448 | #else | |
6449 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6450 | #endif | |
6451 | } | |
d14a1e28 RD |
6452 | return resultobj; |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
6458 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6459 | PyObject *resultobj; | |
6460 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6461 | wxString *result; | |
6462 | PyObject * obj0 = 0 ; | |
6463 | char *kwnames[] = { | |
6464 | (char *) "self", NULL | |
6465 | }; | |
6466 | ||
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6470 | { |
6471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6472 | { | |
6473 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6474 | result = (wxString *) &_result_ref; | |
6475 | } | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
cc6dd355 RD |
6480 | { |
6481 | #if wxUSE_UNICODE | |
6482 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6483 | #else | |
6484 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6485 | #endif | |
6486 | } | |
d14a1e28 RD |
6487 | return resultobj; |
6488 | fail: | |
6489 | return NULL; | |
6490 | } | |
6491 | ||
6492 | ||
6493 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6494 | PyObject *resultobj; | |
6495 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6496 | wxDateTime result; | |
6497 | PyObject * obj0 = 0 ; | |
6498 | char *kwnames[] = { | |
6499 | (char *) "self", NULL | |
6500 | }; | |
6501 | ||
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6505 | { |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | result = (arg1)->GetModificationTime(); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | { | |
6513 | wxDateTime * resultptr; | |
6514 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 6515 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6516 | } |
6517 | return resultobj; | |
6518 | fail: | |
6519 | return NULL; | |
6520 | } | |
6521 | ||
6522 | ||
6523 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6524 | PyObject *obj; | |
6525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6526 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6527 | Py_INCREF(obj); | |
6528 | return Py_BuildValue((char *)""); | |
6529 | } | |
6530 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6531 | PyObject *obj; | |
6532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6533 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6534 | Py_INCREF(obj); | |
6535 | return Py_BuildValue((char *)""); | |
6536 | } | |
6537 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6538 | PyObject *resultobj; | |
6539 | wxPyFileSystemHandler *result; | |
6540 | char *kwnames[] = { | |
6541 | NULL | |
6542 | }; | |
6543 | ||
6544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6548 | ||
6549 | wxPyEndAllowThreads(__tstate); | |
6550 | if (PyErr_Occurred()) SWIG_fail; | |
6551 | } | |
15afbcd0 | 6552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6553 | return resultobj; |
6554 | fail: | |
6555 | return NULL; | |
6556 | } | |
6557 | ||
6558 | ||
6559 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6560 | PyObject *resultobj; | |
6561 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6562 | PyObject *arg2 = (PyObject *) 0 ; | |
6563 | PyObject *arg3 = (PyObject *) 0 ; | |
6564 | PyObject * obj0 = 0 ; | |
6565 | PyObject * obj1 = 0 ; | |
6566 | PyObject * obj2 = 0 ; | |
6567 | char *kwnames[] = { | |
6568 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6569 | }; | |
6570 | ||
6571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6574 | arg2 = obj1; |
6575 | arg3 = obj2; | |
6576 | { | |
6577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6578 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6579 | ||
6580 | wxPyEndAllowThreads(__tstate); | |
6581 | if (PyErr_Occurred()) SWIG_fail; | |
6582 | } | |
6583 | Py_INCREF(Py_None); resultobj = Py_None; | |
6584 | return resultobj; | |
6585 | fail: | |
6586 | return NULL; | |
6587 | } | |
6588 | ||
6589 | ||
6590 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6591 | PyObject *resultobj; | |
6592 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6593 | wxString *arg2 = 0 ; | |
6594 | bool result; | |
e811c8ce | 6595 | bool temp2 = False ; |
d14a1e28 RD |
6596 | PyObject * obj0 = 0 ; |
6597 | PyObject * obj1 = 0 ; | |
6598 | char *kwnames[] = { | |
6599 | (char *) "self",(char *) "location", NULL | |
6600 | }; | |
6601 | ||
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6605 | { |
6606 | arg2 = wxString_in_helper(obj1); | |
6607 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6608 | temp2 = True; |
d14a1e28 RD |
6609 | } |
6610 | { | |
6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6612 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6613 | ||
6614 | wxPyEndAllowThreads(__tstate); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
4f89f6a3 RD |
6617 | { |
6618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6619 | } | |
d14a1e28 RD |
6620 | { |
6621 | if (temp2) | |
6622 | delete arg2; | |
6623 | } | |
6624 | return resultobj; | |
6625 | fail: | |
6626 | { | |
6627 | if (temp2) | |
6628 | delete arg2; | |
6629 | } | |
6630 | return NULL; | |
6631 | } | |
6632 | ||
6633 | ||
6634 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6635 | PyObject *resultobj; | |
6636 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6637 | wxFileSystem *arg2 = 0 ; | |
6638 | wxString *arg3 = 0 ; | |
6639 | wxFSFile *result; | |
e811c8ce | 6640 | bool temp3 = False ; |
d14a1e28 RD |
6641 | PyObject * obj0 = 0 ; |
6642 | PyObject * obj1 = 0 ; | |
6643 | PyObject * obj2 = 0 ; | |
6644 | char *kwnames[] = { | |
6645 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6646 | }; | |
6647 | ||
6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6653 | SWIG_fail; | |
d14a1e28 | 6654 | if (arg2 == NULL) { |
15afbcd0 RD |
6655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6656 | SWIG_fail; | |
d14a1e28 RD |
6657 | } |
6658 | { | |
6659 | arg3 = wxString_in_helper(obj2); | |
6660 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6661 | temp3 = True; |
d14a1e28 RD |
6662 | } |
6663 | { | |
6664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6665 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6666 | ||
6667 | wxPyEndAllowThreads(__tstate); | |
6668 | if (PyErr_Occurred()) SWIG_fail; | |
6669 | } | |
6670 | { | |
6671 | resultobj = wxPyMake_wxObject(result); | |
6672 | } | |
6673 | { | |
6674 | if (temp3) | |
6675 | delete arg3; | |
6676 | } | |
6677 | return resultobj; | |
6678 | fail: | |
6679 | { | |
6680 | if (temp3) | |
6681 | delete arg3; | |
6682 | } | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6690 | wxString *arg2 = 0 ; | |
6691 | int arg3 = (int) 0 ; | |
6692 | wxString result; | |
e811c8ce | 6693 | bool temp2 = False ; |
d14a1e28 RD |
6694 | PyObject * obj0 = 0 ; |
6695 | PyObject * obj1 = 0 ; | |
994141e6 | 6696 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6697 | char *kwnames[] = { |
6698 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6699 | }; | |
6700 | ||
994141e6 | 6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6704 | { |
6705 | arg2 = wxString_in_helper(obj1); | |
6706 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6707 | temp2 = True; |
d14a1e28 | 6708 | } |
994141e6 | 6709 | if (obj2) { |
15afbcd0 RD |
6710 | arg3 = (int) SWIG_AsInt(obj2); |
6711 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6712 | } |
d14a1e28 RD |
6713 | { |
6714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6715 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6716 | ||
6717 | wxPyEndAllowThreads(__tstate); | |
6718 | if (PyErr_Occurred()) SWIG_fail; | |
6719 | } | |
6720 | { | |
6721 | #if wxUSE_UNICODE | |
6722 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6723 | #else | |
6724 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6725 | #endif | |
6726 | } | |
6727 | { | |
6728 | if (temp2) | |
6729 | delete arg2; | |
6730 | } | |
6731 | return resultobj; | |
6732 | fail: | |
6733 | { | |
6734 | if (temp2) | |
6735 | delete arg2; | |
6736 | } | |
6737 | return NULL; | |
6738 | } | |
6739 | ||
6740 | ||
6741 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6742 | PyObject *resultobj; | |
6743 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6744 | wxString result; | |
6745 | PyObject * obj0 = 0 ; | |
6746 | char *kwnames[] = { | |
6747 | (char *) "self", NULL | |
6748 | }; | |
6749 | ||
6750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6753 | { |
6754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6755 | result = (arg1)->FindNext(); | |
6756 | ||
6757 | wxPyEndAllowThreads(__tstate); | |
6758 | if (PyErr_Occurred()) SWIG_fail; | |
6759 | } | |
6760 | { | |
6761 | #if wxUSE_UNICODE | |
6762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6763 | #else | |
6764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6765 | #endif | |
6766 | } | |
6767 | return resultobj; | |
6768 | fail: | |
6769 | return NULL; | |
6770 | } | |
6771 | ||
6772 | ||
6773 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6774 | PyObject *resultobj; | |
6775 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6776 | wxString *arg2 = 0 ; | |
6777 | wxString result; | |
e811c8ce | 6778 | bool temp2 = False ; |
d14a1e28 RD |
6779 | PyObject * obj0 = 0 ; |
6780 | PyObject * obj1 = 0 ; | |
6781 | char *kwnames[] = { | |
6782 | (char *) "self",(char *) "location", NULL | |
6783 | }; | |
6784 | ||
6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6788 | { |
6789 | arg2 = wxString_in_helper(obj1); | |
6790 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6791 | temp2 = True; |
d14a1e28 RD |
6792 | } |
6793 | { | |
6794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6795 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6796 | ||
6797 | wxPyEndAllowThreads(__tstate); | |
6798 | if (PyErr_Occurred()) SWIG_fail; | |
6799 | } | |
6800 | { | |
6801 | #if wxUSE_UNICODE | |
6802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6803 | #else | |
6804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6805 | #endif | |
6806 | } | |
6807 | { | |
6808 | if (temp2) | |
6809 | delete arg2; | |
6810 | } | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | { | |
6814 | if (temp2) | |
6815 | delete arg2; | |
6816 | } | |
6817 | return NULL; | |
6818 | } | |
6819 | ||
6820 | ||
6821 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6822 | PyObject *resultobj; | |
6823 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6824 | wxString *arg2 = 0 ; | |
6825 | wxString result; | |
e811c8ce | 6826 | bool temp2 = False ; |
d14a1e28 RD |
6827 | PyObject * obj0 = 0 ; |
6828 | PyObject * obj1 = 0 ; | |
6829 | char *kwnames[] = { | |
6830 | (char *) "self",(char *) "location", NULL | |
6831 | }; | |
6832 | ||
6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6836 | { |
6837 | arg2 = wxString_in_helper(obj1); | |
6838 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6839 | temp2 = True; |
d14a1e28 RD |
6840 | } |
6841 | { | |
6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6843 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | { | |
6849 | #if wxUSE_UNICODE | |
6850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6851 | #else | |
6852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6853 | #endif | |
6854 | } | |
6855 | { | |
6856 | if (temp2) | |
6857 | delete arg2; | |
6858 | } | |
6859 | return resultobj; | |
6860 | fail: | |
6861 | { | |
6862 | if (temp2) | |
6863 | delete arg2; | |
6864 | } | |
6865 | return NULL; | |
6866 | } | |
6867 | ||
6868 | ||
6869 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6870 | PyObject *resultobj; | |
6871 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6872 | wxString *arg2 = 0 ; | |
6873 | wxString result; | |
e811c8ce | 6874 | bool temp2 = False ; |
d14a1e28 RD |
6875 | PyObject * obj0 = 0 ; |
6876 | PyObject * obj1 = 0 ; | |
6877 | char *kwnames[] = { | |
6878 | (char *) "self",(char *) "location", NULL | |
6879 | }; | |
6880 | ||
6881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6884 | { |
6885 | arg2 = wxString_in_helper(obj1); | |
6886 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6887 | temp2 = True; |
d14a1e28 RD |
6888 | } |
6889 | { | |
6890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6891 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6892 | ||
6893 | wxPyEndAllowThreads(__tstate); | |
6894 | if (PyErr_Occurred()) SWIG_fail; | |
6895 | } | |
6896 | { | |
6897 | #if wxUSE_UNICODE | |
6898 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6899 | #else | |
6900 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6901 | #endif | |
6902 | } | |
6903 | { | |
6904 | if (temp2) | |
6905 | delete arg2; | |
6906 | } | |
6907 | return resultobj; | |
6908 | fail: | |
6909 | { | |
6910 | if (temp2) | |
6911 | delete arg2; | |
6912 | } | |
6913 | return NULL; | |
6914 | } | |
6915 | ||
6916 | ||
6917 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6918 | PyObject *resultobj; | |
6919 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6920 | wxString *arg2 = 0 ; | |
6921 | wxString result; | |
e811c8ce | 6922 | bool temp2 = False ; |
d14a1e28 RD |
6923 | PyObject * obj0 = 0 ; |
6924 | PyObject * obj1 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self",(char *) "location", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6932 | { |
6933 | arg2 = wxString_in_helper(obj1); | |
6934 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6935 | temp2 = True; |
d14a1e28 RD |
6936 | } |
6937 | { | |
6938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6939 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6940 | ||
6941 | wxPyEndAllowThreads(__tstate); | |
6942 | if (PyErr_Occurred()) SWIG_fail; | |
6943 | } | |
6944 | { | |
6945 | #if wxUSE_UNICODE | |
6946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6947 | #else | |
6948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6949 | #endif | |
6950 | } | |
6951 | { | |
6952 | if (temp2) | |
6953 | delete arg2; | |
6954 | } | |
6955 | return resultobj; | |
6956 | fail: | |
6957 | { | |
6958 | if (temp2) | |
6959 | delete arg2; | |
6960 | } | |
6961 | return NULL; | |
6962 | } | |
6963 | ||
6964 | ||
6965 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6966 | PyObject *resultobj; | |
6967 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6968 | wxString *arg2 = 0 ; | |
6969 | wxString result; | |
e811c8ce | 6970 | bool temp2 = False ; |
d14a1e28 RD |
6971 | PyObject * obj0 = 0 ; |
6972 | PyObject * obj1 = 0 ; | |
6973 | char *kwnames[] = { | |
6974 | (char *) "self",(char *) "location", NULL | |
6975 | }; | |
6976 | ||
6977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6980 | { |
6981 | arg2 = wxString_in_helper(obj1); | |
6982 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6983 | temp2 = True; |
d14a1e28 RD |
6984 | } |
6985 | { | |
6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6987 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6988 | ||
6989 | wxPyEndAllowThreads(__tstate); | |
6990 | if (PyErr_Occurred()) SWIG_fail; | |
6991 | } | |
6992 | { | |
6993 | #if wxUSE_UNICODE | |
6994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6995 | #else | |
6996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6997 | #endif | |
6998 | } | |
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 * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
7014 | PyObject *obj; | |
7015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7016 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7017 | Py_INCREF(obj); | |
7018 | return Py_BuildValue((char *)""); | |
7019 | } | |
7020 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject *resultobj; | |
7022 | wxFileSystem *result; | |
7023 | char *kwnames[] = { | |
7024 | NULL | |
7025 | }; | |
7026 | ||
7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7028 | { | |
7029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7030 | result = (wxFileSystem *)new wxFileSystem(); | |
7031 | ||
7032 | wxPyEndAllowThreads(__tstate); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | } | |
7035 | { | |
7036 | resultobj = wxPyMake_wxObject(result); | |
7037 | } | |
7038 | return resultobj; | |
7039 | fail: | |
7040 | return NULL; | |
7041 | } | |
7042 | ||
7043 | ||
7044 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7045 | PyObject *resultobj; | |
7046 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7047 | PyObject * obj0 = 0 ; | |
7048 | char *kwnames[] = { | |
7049 | (char *) "self", NULL | |
7050 | }; | |
7051 | ||
7052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7055 | { |
7056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7057 | delete arg1; | |
7058 | ||
7059 | wxPyEndAllowThreads(__tstate); | |
7060 | if (PyErr_Occurred()) SWIG_fail; | |
7061 | } | |
7062 | Py_INCREF(Py_None); resultobj = Py_None; | |
7063 | return resultobj; | |
7064 | fail: | |
7065 | return NULL; | |
7066 | } | |
7067 | ||
7068 | ||
7069 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7072 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7073 | bool arg3 = (bool) False ; |
7074 | bool temp2 = False ; | |
d14a1e28 RD |
7075 | PyObject * obj0 = 0 ; |
7076 | PyObject * obj1 = 0 ; | |
7077 | PyObject * obj2 = 0 ; | |
7078 | char *kwnames[] = { | |
7079 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7080 | }; | |
7081 | ||
7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7085 | { |
7086 | arg2 = wxString_in_helper(obj1); | |
7087 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7088 | temp2 = True; |
d14a1e28 RD |
7089 | } |
7090 | if (obj2) { | |
15afbcd0 RD |
7091 | arg3 = (bool) SWIG_AsBool(obj2); |
7092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7093 | } |
7094 | { | |
7095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7096 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7097 | ||
7098 | wxPyEndAllowThreads(__tstate); | |
7099 | if (PyErr_Occurred()) SWIG_fail; | |
7100 | } | |
7101 | Py_INCREF(Py_None); resultobj = Py_None; | |
7102 | { | |
7103 | if (temp2) | |
7104 | delete arg2; | |
7105 | } | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | { | |
7109 | if (temp2) | |
7110 | delete arg2; | |
7111 | } | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj; | |
7118 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7119 | wxString result; | |
7120 | PyObject * obj0 = 0 ; | |
7121 | char *kwnames[] = { | |
7122 | (char *) "self", NULL | |
7123 | }; | |
7124 | ||
7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7128 | { |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (arg1)->GetPath(); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | { | |
7136 | #if wxUSE_UNICODE | |
7137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7138 | #else | |
7139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7140 | #endif | |
7141 | } | |
7142 | return resultobj; | |
7143 | fail: | |
7144 | return NULL; | |
7145 | } | |
7146 | ||
7147 | ||
7148 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject *resultobj; | |
7150 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7151 | wxString *arg2 = 0 ; | |
7152 | wxFSFile *result; | |
e811c8ce | 7153 | bool temp2 = False ; |
d14a1e28 RD |
7154 | PyObject * obj0 = 0 ; |
7155 | PyObject * obj1 = 0 ; | |
7156 | char *kwnames[] = { | |
7157 | (char *) "self",(char *) "location", NULL | |
7158 | }; | |
7159 | ||
7160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7163 | { |
7164 | arg2 = wxString_in_helper(obj1); | |
7165 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7166 | temp2 = True; |
d14a1e28 RD |
7167 | } |
7168 | { | |
7169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7170 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7171 | ||
7172 | wxPyEndAllowThreads(__tstate); | |
7173 | if (PyErr_Occurred()) SWIG_fail; | |
7174 | } | |
7175 | { | |
7176 | resultobj = wxPyMake_wxObject(result); | |
7177 | } | |
7178 | { | |
7179 | if (temp2) | |
7180 | delete arg2; | |
7181 | } | |
7182 | return resultobj; | |
7183 | fail: | |
7184 | { | |
7185 | if (temp2) | |
7186 | delete arg2; | |
7187 | } | |
7188 | return NULL; | |
7189 | } | |
7190 | ||
7191 | ||
7192 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7193 | PyObject *resultobj; | |
7194 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7195 | wxString *arg2 = 0 ; | |
7196 | int arg3 = (int) 0 ; | |
7197 | wxString result; | |
e811c8ce | 7198 | bool temp2 = False ; |
d14a1e28 RD |
7199 | PyObject * obj0 = 0 ; |
7200 | PyObject * obj1 = 0 ; | |
994141e6 | 7201 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7202 | char *kwnames[] = { |
7203 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7204 | }; | |
7205 | ||
994141e6 | 7206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7209 | { |
7210 | arg2 = wxString_in_helper(obj1); | |
7211 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7212 | temp2 = True; |
d14a1e28 | 7213 | } |
994141e6 | 7214 | if (obj2) { |
15afbcd0 RD |
7215 | arg3 = (int) SWIG_AsInt(obj2); |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7217 | } |
d14a1e28 RD |
7218 | { |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | { | |
7226 | #if wxUSE_UNICODE | |
7227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7228 | #else | |
7229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7230 | #endif | |
7231 | } | |
7232 | { | |
7233 | if (temp2) | |
7234 | delete arg2; | |
7235 | } | |
7236 | return resultobj; | |
7237 | fail: | |
7238 | { | |
7239 | if (temp2) | |
7240 | delete arg2; | |
7241 | } | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7249 | wxString result; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "self", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7258 | { |
7259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7260 | result = (arg1)->FindNext(); | |
7261 | ||
7262 | wxPyEndAllowThreads(__tstate); | |
7263 | if (PyErr_Occurred()) SWIG_fail; | |
7264 | } | |
7265 | { | |
7266 | #if wxUSE_UNICODE | |
7267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7268 | #else | |
7269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7270 | #endif | |
7271 | } | |
7272 | return resultobj; | |
7273 | fail: | |
7274 | return NULL; | |
7275 | } | |
7276 | ||
7277 | ||
7278 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7279 | PyObject *resultobj; | |
7280 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7281 | PyObject * obj0 = 0 ; | |
7282 | char *kwnames[] = { | |
7283 | (char *) "handler", NULL | |
7284 | }; | |
7285 | ||
7286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7289 | { |
7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7291 | wxFileSystem::AddHandler(arg1); | |
7292 | ||
7293 | wxPyEndAllowThreads(__tstate); | |
7294 | if (PyErr_Occurred()) SWIG_fail; | |
7295 | } | |
7296 | Py_INCREF(Py_None); resultobj = Py_None; | |
7297 | return resultobj; | |
7298 | fail: | |
7299 | return NULL; | |
7300 | } | |
7301 | ||
7302 | ||
7303 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7304 | PyObject *resultobj; | |
7305 | char *kwnames[] = { | |
7306 | NULL | |
7307 | }; | |
7308 | ||
7309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7310 | { | |
7311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7312 | wxFileSystem::CleanUpHandlers(); | |
7313 | ||
7314 | wxPyEndAllowThreads(__tstate); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
7317 | Py_INCREF(Py_None); resultobj = Py_None; | |
7318 | return resultobj; | |
7319 | fail: | |
7320 | return NULL; | |
7321 | } | |
7322 | ||
7323 | ||
7324 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7325 | PyObject *resultobj; | |
7326 | wxString *arg1 = 0 ; | |
7327 | wxString result; | |
e811c8ce | 7328 | bool temp1 = False ; |
d14a1e28 RD |
7329 | PyObject * obj0 = 0 ; |
7330 | char *kwnames[] = { | |
7331 | (char *) "filename", NULL | |
7332 | }; | |
7333 | ||
7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7335 | { | |
7336 | arg1 = wxString_in_helper(obj0); | |
7337 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7338 | temp1 = True; |
d14a1e28 RD |
7339 | } |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
7347 | { | |
7348 | #if wxUSE_UNICODE | |
7349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7350 | #else | |
7351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7352 | #endif | |
7353 | } | |
7354 | { | |
7355 | if (temp1) | |
7356 | delete arg1; | |
7357 | } | |
7358 | return resultobj; | |
7359 | fail: | |
7360 | { | |
7361 | if (temp1) | |
7362 | delete arg1; | |
7363 | } | |
7364 | return NULL; | |
7365 | } | |
7366 | ||
7367 | ||
7368 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7369 | PyObject *obj; | |
7370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7371 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7372 | Py_INCREF(obj); | |
7373 | return Py_BuildValue((char *)""); | |
7374 | } | |
7375 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7376 | PyObject *resultobj; | |
7377 | wxString *arg1 = 0 ; | |
7378 | wxString result; | |
e811c8ce | 7379 | bool temp1 = False ; |
d14a1e28 RD |
7380 | PyObject * obj0 = 0 ; |
7381 | char *kwnames[] = { | |
7382 | (char *) "url", NULL | |
7383 | }; | |
7384 | ||
7385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7386 | { | |
7387 | arg1 = wxString_in_helper(obj0); | |
7388 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7389 | temp1 = True; |
d14a1e28 RD |
7390 | } |
7391 | { | |
7392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7393 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7394 | ||
7395 | wxPyEndAllowThreads(__tstate); | |
7396 | if (PyErr_Occurred()) SWIG_fail; | |
7397 | } | |
7398 | { | |
7399 | #if wxUSE_UNICODE | |
7400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7401 | #else | |
7402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7403 | #endif | |
7404 | } | |
7405 | { | |
7406 | if (temp1) | |
7407 | delete arg1; | |
7408 | } | |
7409 | return resultobj; | |
7410 | fail: | |
7411 | { | |
7412 | if (temp1) | |
7413 | delete arg1; | |
7414 | } | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
7419 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7420 | PyObject *resultobj; | |
7421 | wxInternetFSHandler *result; | |
7422 | char *kwnames[] = { | |
7423 | NULL | |
7424 | }; | |
7425 | ||
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7427 | { | |
7428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7429 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7430 | ||
7431 | wxPyEndAllowThreads(__tstate); | |
7432 | if (PyErr_Occurred()) SWIG_fail; | |
7433 | } | |
15afbcd0 | 7434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7435 | return resultobj; |
7436 | fail: | |
7437 | return NULL; | |
7438 | } | |
7439 | ||
7440 | ||
7441 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7442 | PyObject *resultobj; | |
7443 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7444 | wxString *arg2 = 0 ; | |
7445 | bool result; | |
e811c8ce | 7446 | bool temp2 = False ; |
d14a1e28 RD |
7447 | PyObject * obj0 = 0 ; |
7448 | PyObject * obj1 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self",(char *) "location", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7456 | { |
7457 | arg2 = wxString_in_helper(obj1); | |
7458 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7459 | temp2 = True; |
d14a1e28 RD |
7460 | } |
7461 | { | |
7462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7463 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7464 | ||
7465 | wxPyEndAllowThreads(__tstate); | |
7466 | if (PyErr_Occurred()) SWIG_fail; | |
7467 | } | |
4f89f6a3 RD |
7468 | { |
7469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7470 | } | |
d14a1e28 RD |
7471 | { |
7472 | if (temp2) | |
7473 | delete arg2; | |
7474 | } | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | { | |
7478 | if (temp2) | |
7479 | delete arg2; | |
7480 | } | |
7481 | return NULL; | |
7482 | } | |
7483 | ||
7484 | ||
7485 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7486 | PyObject *resultobj; | |
7487 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7488 | wxFileSystem *arg2 = 0 ; | |
7489 | wxString *arg3 = 0 ; | |
7490 | wxFSFile *result; | |
e811c8ce | 7491 | bool temp3 = False ; |
d14a1e28 RD |
7492 | PyObject * obj0 = 0 ; |
7493 | PyObject * obj1 = 0 ; | |
7494 | PyObject * obj2 = 0 ; | |
7495 | char *kwnames[] = { | |
7496 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7497 | }; | |
7498 | ||
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7503 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7504 | SWIG_fail; | |
d14a1e28 | 7505 | if (arg2 == NULL) { |
15afbcd0 RD |
7506 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7507 | SWIG_fail; | |
d14a1e28 RD |
7508 | } |
7509 | { | |
7510 | arg3 = wxString_in_helper(obj2); | |
7511 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7512 | temp3 = True; |
d14a1e28 RD |
7513 | } |
7514 | { | |
7515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7516 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7517 | ||
7518 | wxPyEndAllowThreads(__tstate); | |
7519 | if (PyErr_Occurred()) SWIG_fail; | |
7520 | } | |
7521 | { | |
7522 | resultobj = wxPyMake_wxObject(result); | |
7523 | } | |
7524 | { | |
7525 | if (temp3) | |
7526 | delete arg3; | |
7527 | } | |
7528 | return resultobj; | |
7529 | fail: | |
7530 | { | |
7531 | if (temp3) | |
7532 | delete arg3; | |
7533 | } | |
7534 | return NULL; | |
7535 | } | |
7536 | ||
7537 | ||
7538 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7539 | PyObject *obj; | |
7540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7541 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7542 | Py_INCREF(obj); | |
7543 | return Py_BuildValue((char *)""); | |
7544 | } | |
7545 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7546 | PyObject *resultobj; | |
7547 | wxZipFSHandler *result; | |
7548 | char *kwnames[] = { | |
7549 | NULL | |
7550 | }; | |
7551 | ||
7552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7553 | { | |
7554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7555 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7556 | ||
7557 | wxPyEndAllowThreads(__tstate); | |
7558 | if (PyErr_Occurred()) SWIG_fail; | |
7559 | } | |
15afbcd0 | 7560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7561 | return resultobj; |
7562 | fail: | |
7563 | return NULL; | |
7564 | } | |
7565 | ||
7566 | ||
7567 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7568 | PyObject *resultobj; | |
7569 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7570 | wxString *arg2 = 0 ; | |
7571 | bool result; | |
e811c8ce | 7572 | bool temp2 = False ; |
d14a1e28 RD |
7573 | PyObject * obj0 = 0 ; |
7574 | PyObject * obj1 = 0 ; | |
7575 | char *kwnames[] = { | |
7576 | (char *) "self",(char *) "location", NULL | |
7577 | }; | |
7578 | ||
7579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7582 | { |
7583 | arg2 = wxString_in_helper(obj1); | |
7584 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7585 | temp2 = True; |
d14a1e28 RD |
7586 | } |
7587 | { | |
7588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7589 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7590 | ||
7591 | wxPyEndAllowThreads(__tstate); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
4f89f6a3 RD |
7594 | { |
7595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7596 | } | |
d14a1e28 RD |
7597 | { |
7598 | if (temp2) | |
7599 | delete arg2; | |
7600 | } | |
7601 | return resultobj; | |
7602 | fail: | |
7603 | { | |
7604 | if (temp2) | |
7605 | delete arg2; | |
7606 | } | |
7607 | return NULL; | |
7608 | } | |
7609 | ||
7610 | ||
7611 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7612 | PyObject *resultobj; | |
7613 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7614 | wxFileSystem *arg2 = 0 ; | |
7615 | wxString *arg3 = 0 ; | |
7616 | wxFSFile *result; | |
e811c8ce | 7617 | bool temp3 = False ; |
d14a1e28 RD |
7618 | PyObject * obj0 = 0 ; |
7619 | PyObject * obj1 = 0 ; | |
7620 | PyObject * obj2 = 0 ; | |
7621 | char *kwnames[] = { | |
7622 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7623 | }; | |
7624 | ||
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7628 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7629 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7630 | SWIG_fail; | |
d14a1e28 | 7631 | if (arg2 == NULL) { |
15afbcd0 RD |
7632 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7633 | SWIG_fail; | |
d14a1e28 RD |
7634 | } |
7635 | { | |
7636 | arg3 = wxString_in_helper(obj2); | |
7637 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7638 | temp3 = True; |
d14a1e28 RD |
7639 | } |
7640 | { | |
7641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7642 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7643 | ||
7644 | wxPyEndAllowThreads(__tstate); | |
7645 | if (PyErr_Occurred()) SWIG_fail; | |
7646 | } | |
7647 | { | |
7648 | resultobj = wxPyMake_wxObject(result); | |
7649 | } | |
7650 | { | |
7651 | if (temp3) | |
7652 | delete arg3; | |
7653 | } | |
7654 | return resultobj; | |
7655 | fail: | |
7656 | { | |
7657 | if (temp3) | |
7658 | delete arg3; | |
7659 | } | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj; | |
7666 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7667 | wxString *arg2 = 0 ; | |
7668 | int arg3 = (int) 0 ; | |
7669 | wxString result; | |
e811c8ce | 7670 | bool temp2 = False ; |
d14a1e28 RD |
7671 | PyObject * obj0 = 0 ; |
7672 | PyObject * obj1 = 0 ; | |
994141e6 | 7673 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7674 | char *kwnames[] = { |
7675 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7676 | }; | |
7677 | ||
994141e6 | 7678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7681 | { |
7682 | arg2 = wxString_in_helper(obj1); | |
7683 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7684 | temp2 = True; |
d14a1e28 | 7685 | } |
994141e6 | 7686 | if (obj2) { |
15afbcd0 RD |
7687 | arg3 = (int) SWIG_AsInt(obj2); |
7688 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7689 | } |
d14a1e28 RD |
7690 | { |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | { | |
7698 | #if wxUSE_UNICODE | |
7699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7700 | #else | |
7701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7702 | #endif | |
7703 | } | |
7704 | { | |
7705 | if (temp2) | |
7706 | delete arg2; | |
7707 | } | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | { | |
7711 | if (temp2) | |
7712 | delete arg2; | |
7713 | } | |
7714 | return NULL; | |
7715 | } | |
7716 | ||
7717 | ||
7718 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7719 | PyObject *resultobj; | |
7720 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7721 | wxString result; | |
7722 | PyObject * obj0 = 0 ; | |
7723 | char *kwnames[] = { | |
7724 | (char *) "self", NULL | |
7725 | }; | |
7726 | ||
7727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7730 | { |
7731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7732 | result = (arg1)->FindNext(); | |
7733 | ||
7734 | wxPyEndAllowThreads(__tstate); | |
7735 | if (PyErr_Occurred()) SWIG_fail; | |
7736 | } | |
7737 | { | |
7738 | #if wxUSE_UNICODE | |
7739 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7740 | #else | |
7741 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7742 | #endif | |
7743 | } | |
7744 | return resultobj; | |
7745 | fail: | |
7746 | return NULL; | |
7747 | } | |
7748 | ||
7749 | ||
7750 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7751 | PyObject *obj; | |
7752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7753 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7754 | Py_INCREF(obj); | |
7755 | return Py_BuildValue((char *)""); | |
7756 | } | |
7757 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7758 | PyObject *resultobj; | |
7759 | wxString *arg1 = 0 ; | |
7760 | wxImage *arg2 = 0 ; | |
7761 | long arg3 ; | |
e811c8ce | 7762 | bool temp1 = False ; |
d14a1e28 RD |
7763 | PyObject * obj0 = 0 ; |
7764 | PyObject * obj1 = 0 ; | |
994141e6 | 7765 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7766 | char *kwnames[] = { |
7767 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7768 | }; | |
7769 | ||
994141e6 | 7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7771 | { |
7772 | arg1 = wxString_in_helper(obj0); | |
7773 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7774 | temp1 = True; |
d14a1e28 | 7775 | } |
15afbcd0 RD |
7776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7777 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7778 | SWIG_fail; | |
d14a1e28 | 7779 | if (arg2 == NULL) { |
15afbcd0 RD |
7780 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7781 | SWIG_fail; | |
994141e6 | 7782 | } |
15afbcd0 RD |
7783 | arg3 = (long) SWIG_AsLong(obj2); |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7785 | { |
7786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7787 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7788 | ||
7789 | wxPyEndAllowThreads(__tstate); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
7791 | } | |
7792 | Py_INCREF(Py_None); resultobj = Py_None; | |
7793 | { | |
7794 | if (temp1) | |
7795 | delete arg1; | |
7796 | } | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | { | |
7800 | if (temp1) | |
7801 | delete arg1; | |
7802 | } | |
7803 | return NULL; | |
7804 | } | |
7805 | ||
7806 | ||
7807 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7808 | PyObject *resultobj; | |
7809 | wxString *arg1 = 0 ; | |
7810 | wxBitmap *arg2 = 0 ; | |
7811 | long arg3 ; | |
e811c8ce | 7812 | bool temp1 = False ; |
d14a1e28 RD |
7813 | PyObject * obj0 = 0 ; |
7814 | PyObject * obj1 = 0 ; | |
994141e6 | 7815 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7816 | char *kwnames[] = { |
7817 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7818 | }; | |
7819 | ||
994141e6 | 7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7821 | { |
7822 | arg1 = wxString_in_helper(obj0); | |
7823 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7824 | temp1 = True; |
d14a1e28 | 7825 | } |
15afbcd0 RD |
7826 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7827 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7828 | SWIG_fail; | |
d14a1e28 | 7829 | if (arg2 == NULL) { |
15afbcd0 RD |
7830 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7831 | SWIG_fail; | |
994141e6 | 7832 | } |
15afbcd0 RD |
7833 | arg3 = (long) SWIG_AsLong(obj2); |
7834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7835 | { |
7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7837 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7838 | ||
7839 | wxPyEndAllowThreads(__tstate); | |
7840 | if (PyErr_Occurred()) SWIG_fail; | |
7841 | } | |
7842 | Py_INCREF(Py_None); resultobj = Py_None; | |
7843 | { | |
7844 | if (temp1) | |
7845 | delete arg1; | |
7846 | } | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | { | |
7850 | if (temp1) | |
7851 | delete arg1; | |
7852 | } | |
7853 | return NULL; | |
7854 | } | |
7855 | ||
7856 | ||
7857 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7858 | PyObject *resultobj; | |
7859 | wxString *arg1 = 0 ; | |
7860 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 7861 | bool temp1 = False ; |
d14a1e28 RD |
7862 | PyObject * obj0 = 0 ; |
7863 | PyObject * obj1 = 0 ; | |
7864 | char *kwnames[] = { | |
7865 | (char *) "filename",(char *) "data", NULL | |
7866 | }; | |
7867 | ||
7868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7869 | { | |
7870 | arg1 = wxString_in_helper(obj0); | |
7871 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7872 | temp1 = True; |
d14a1e28 RD |
7873 | } |
7874 | arg2 = obj1; | |
7875 | { | |
7876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7877 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7878 | ||
7879 | wxPyEndAllowThreads(__tstate); | |
7880 | if (PyErr_Occurred()) SWIG_fail; | |
7881 | } | |
7882 | Py_INCREF(Py_None); resultobj = Py_None; | |
7883 | { | |
7884 | if (temp1) | |
7885 | delete arg1; | |
7886 | } | |
7887 | return resultobj; | |
7888 | fail: | |
7889 | { | |
7890 | if (temp1) | |
7891 | delete arg1; | |
7892 | } | |
7893 | return NULL; | |
7894 | } | |
7895 | ||
7896 | ||
7897 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject *resultobj; | |
7899 | wxMemoryFSHandler *result; | |
7900 | char *kwnames[] = { | |
7901 | NULL | |
7902 | }; | |
7903 | ||
7904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7905 | { | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
15afbcd0 | 7912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7913 | return resultobj; |
7914 | fail: | |
7915 | return NULL; | |
7916 | } | |
7917 | ||
7918 | ||
7919 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7920 | PyObject *resultobj; | |
7921 | wxString *arg1 = 0 ; | |
e811c8ce | 7922 | bool temp1 = False ; |
d14a1e28 RD |
7923 | PyObject * obj0 = 0 ; |
7924 | char *kwnames[] = { | |
7925 | (char *) "filename", NULL | |
7926 | }; | |
7927 | ||
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7929 | { | |
7930 | arg1 = wxString_in_helper(obj0); | |
7931 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7932 | temp1 = True; |
d14a1e28 RD |
7933 | } |
7934 | { | |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7937 | ||
7938 | wxPyEndAllowThreads(__tstate); | |
7939 | if (PyErr_Occurred()) SWIG_fail; | |
7940 | } | |
7941 | Py_INCREF(Py_None); resultobj = Py_None; | |
7942 | { | |
7943 | if (temp1) | |
7944 | delete arg1; | |
7945 | } | |
7946 | return resultobj; | |
7947 | fail: | |
7948 | { | |
7949 | if (temp1) | |
7950 | delete arg1; | |
7951 | } | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
7956 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7957 | PyObject *resultobj; | |
7958 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7959 | wxString *arg2 = 0 ; | |
7960 | bool result; | |
e811c8ce | 7961 | bool temp2 = False ; |
d14a1e28 RD |
7962 | PyObject * obj0 = 0 ; |
7963 | PyObject * obj1 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self",(char *) "location", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7971 | { |
7972 | arg2 = wxString_in_helper(obj1); | |
7973 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7974 | temp2 = True; |
d14a1e28 RD |
7975 | } |
7976 | { | |
7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7978 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7979 | ||
7980 | wxPyEndAllowThreads(__tstate); | |
7981 | if (PyErr_Occurred()) SWIG_fail; | |
7982 | } | |
4f89f6a3 RD |
7983 | { |
7984 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7985 | } | |
d14a1e28 RD |
7986 | { |
7987 | if (temp2) | |
7988 | delete arg2; | |
7989 | } | |
7990 | return resultobj; | |
7991 | fail: | |
7992 | { | |
7993 | if (temp2) | |
7994 | delete arg2; | |
7995 | } | |
7996 | return NULL; | |
7997 | } | |
7998 | ||
7999 | ||
8000 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8001 | PyObject *resultobj; | |
8002 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8003 | wxFileSystem *arg2 = 0 ; | |
8004 | wxString *arg3 = 0 ; | |
8005 | wxFSFile *result; | |
e811c8ce | 8006 | bool temp3 = False ; |
d14a1e28 RD |
8007 | PyObject * obj0 = 0 ; |
8008 | PyObject * obj1 = 0 ; | |
8009 | PyObject * obj2 = 0 ; | |
8010 | char *kwnames[] = { | |
8011 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8012 | }; | |
8013 | ||
8014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8017 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8019 | SWIG_fail; | |
d14a1e28 | 8020 | if (arg2 == NULL) { |
15afbcd0 RD |
8021 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8022 | SWIG_fail; | |
d14a1e28 RD |
8023 | } |
8024 | { | |
8025 | arg3 = wxString_in_helper(obj2); | |
8026 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8027 | temp3 = True; |
d14a1e28 RD |
8028 | } |
8029 | { | |
8030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8031 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8032 | ||
8033 | wxPyEndAllowThreads(__tstate); | |
8034 | if (PyErr_Occurred()) SWIG_fail; | |
8035 | } | |
8036 | { | |
8037 | resultobj = wxPyMake_wxObject(result); | |
8038 | } | |
8039 | { | |
8040 | if (temp3) | |
8041 | delete arg3; | |
8042 | } | |
8043 | return resultobj; | |
8044 | fail: | |
8045 | { | |
8046 | if (temp3) | |
8047 | delete arg3; | |
8048 | } | |
8049 | return NULL; | |
8050 | } | |
8051 | ||
8052 | ||
8053 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8054 | PyObject *resultobj; | |
8055 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8056 | wxString *arg2 = 0 ; | |
8057 | int arg3 = (int) 0 ; | |
8058 | wxString result; | |
e811c8ce | 8059 | bool temp2 = False ; |
d14a1e28 RD |
8060 | PyObject * obj0 = 0 ; |
8061 | PyObject * obj1 = 0 ; | |
994141e6 | 8062 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8063 | char *kwnames[] = { |
8064 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8065 | }; | |
8066 | ||
994141e6 | 8067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8070 | { |
8071 | arg2 = wxString_in_helper(obj1); | |
8072 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8073 | temp2 = True; |
d14a1e28 | 8074 | } |
994141e6 | 8075 | if (obj2) { |
15afbcd0 RD |
8076 | arg3 = (int) SWIG_AsInt(obj2); |
8077 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8078 | } |
d14a1e28 RD |
8079 | { |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8082 | ||
8083 | wxPyEndAllowThreads(__tstate); | |
8084 | if (PyErr_Occurred()) SWIG_fail; | |
8085 | } | |
8086 | { | |
8087 | #if wxUSE_UNICODE | |
8088 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8089 | #else | |
8090 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8091 | #endif | |
8092 | } | |
8093 | { | |
8094 | if (temp2) | |
8095 | delete arg2; | |
8096 | } | |
8097 | return resultobj; | |
8098 | fail: | |
8099 | { | |
8100 | if (temp2) | |
8101 | delete arg2; | |
8102 | } | |
8103 | return NULL; | |
8104 | } | |
8105 | ||
8106 | ||
8107 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8108 | PyObject *resultobj; | |
8109 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8110 | wxString result; | |
8111 | PyObject * obj0 = 0 ; | |
8112 | char *kwnames[] = { | |
8113 | (char *) "self", NULL | |
8114 | }; | |
8115 | ||
8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8119 | { |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | result = (arg1)->FindNext(); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | { | |
8127 | #if wxUSE_UNICODE | |
8128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8129 | #else | |
8130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8131 | #endif | |
8132 | } | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | return NULL; | |
8136 | } | |
8137 | ||
8138 | ||
8139 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8140 | PyObject *obj; | |
8141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8142 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8143 | Py_INCREF(obj); | |
8144 | return Py_BuildValue((char *)""); | |
8145 | } | |
8146 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8147 | PyObject *resultobj; | |
8148 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8149 | wxString result; | |
8150 | PyObject * obj0 = 0 ; | |
8151 | char *kwnames[] = { | |
8152 | (char *) "self", NULL | |
8153 | }; | |
8154 | ||
8155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8158 | { |
8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8160 | result = (arg1)->GetName(); | |
8161 | ||
8162 | wxPyEndAllowThreads(__tstate); | |
8163 | if (PyErr_Occurred()) SWIG_fail; | |
8164 | } | |
8165 | { | |
8166 | #if wxUSE_UNICODE | |
8167 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8168 | #else | |
8169 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8170 | #endif | |
8171 | } | |
8172 | return resultobj; | |
8173 | fail: | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject *resultobj; | |
8180 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8181 | wxString result; | |
8182 | PyObject * obj0 = 0 ; | |
8183 | char *kwnames[] = { | |
8184 | (char *) "self", NULL | |
8185 | }; | |
8186 | ||
8187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8190 | { |
8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8192 | result = (arg1)->GetExtension(); | |
8193 | ||
8194 | wxPyEndAllowThreads(__tstate); | |
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | { | |
8198 | #if wxUSE_UNICODE | |
8199 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8200 | #else | |
8201 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8202 | #endif | |
8203 | } | |
8204 | return resultobj; | |
8205 | fail: | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
8210 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject *resultobj; | |
8212 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8213 | long result; | |
8214 | PyObject * obj0 = 0 ; | |
8215 | char *kwnames[] = { | |
8216 | (char *) "self", NULL | |
8217 | }; | |
8218 | ||
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8222 | { |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | result = (long)(arg1)->GetType(); | |
8225 | ||
8226 | wxPyEndAllowThreads(__tstate); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
15afbcd0 | 8229 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8230 | return resultobj; |
8231 | fail: | |
8232 | return NULL; | |
8233 | } | |
8234 | ||
8235 | ||
8236 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8237 | PyObject *resultobj; | |
8238 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8239 | wxString result; | |
8240 | PyObject * obj0 = 0 ; | |
8241 | char *kwnames[] = { | |
8242 | (char *) "self", NULL | |
8243 | }; | |
8244 | ||
8245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8248 | { |
8249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8250 | result = (arg1)->GetMimeType(); | |
8251 | ||
8252 | wxPyEndAllowThreads(__tstate); | |
8253 | if (PyErr_Occurred()) SWIG_fail; | |
8254 | } | |
8255 | { | |
8256 | #if wxUSE_UNICODE | |
8257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8258 | #else | |
8259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8260 | #endif | |
8261 | } | |
8262 | return resultobj; | |
8263 | fail: | |
8264 | return NULL; | |
8265 | } | |
8266 | ||
8267 | ||
8268 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8269 | PyObject *resultobj; | |
8270 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8271 | wxString *arg2 = 0 ; | |
8272 | bool result; | |
e811c8ce | 8273 | bool temp2 = False ; |
d14a1e28 RD |
8274 | PyObject * obj0 = 0 ; |
8275 | PyObject * obj1 = 0 ; | |
8276 | char *kwnames[] = { | |
8277 | (char *) "self",(char *) "name", NULL | |
8278 | }; | |
8279 | ||
8280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8283 | { |
8284 | arg2 = wxString_in_helper(obj1); | |
8285 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8286 | temp2 = True; |
d14a1e28 RD |
8287 | } |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
4f89f6a3 RD |
8295 | { |
8296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8297 | } | |
d14a1e28 RD |
8298 | { |
8299 | if (temp2) | |
8300 | delete arg2; | |
8301 | } | |
8302 | return resultobj; | |
8303 | fail: | |
8304 | { | |
8305 | if (temp2) | |
8306 | delete arg2; | |
8307 | } | |
8308 | return NULL; | |
8309 | } | |
8310 | ||
8311 | ||
8312 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8313 | PyObject *resultobj; | |
8314 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8315 | wxString *arg2 = 0 ; | |
e811c8ce | 8316 | bool temp2 = False ; |
d14a1e28 RD |
8317 | PyObject * obj0 = 0 ; |
8318 | PyObject * obj1 = 0 ; | |
8319 | char *kwnames[] = { | |
8320 | (char *) "self",(char *) "name", NULL | |
8321 | }; | |
8322 | ||
8323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8326 | { |
8327 | arg2 = wxString_in_helper(obj1); | |
8328 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8329 | temp2 = True; |
d14a1e28 RD |
8330 | } |
8331 | { | |
8332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8333 | (arg1)->SetName((wxString const &)*arg2); | |
8334 | ||
8335 | wxPyEndAllowThreads(__tstate); | |
8336 | if (PyErr_Occurred()) SWIG_fail; | |
8337 | } | |
8338 | Py_INCREF(Py_None); resultobj = Py_None; | |
8339 | { | |
8340 | if (temp2) | |
8341 | delete arg2; | |
8342 | } | |
8343 | return resultobj; | |
8344 | fail: | |
8345 | { | |
8346 | if (temp2) | |
8347 | delete arg2; | |
8348 | } | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj; | |
8355 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8356 | wxString *arg2 = 0 ; | |
e811c8ce | 8357 | bool temp2 = False ; |
d14a1e28 RD |
8358 | PyObject * obj0 = 0 ; |
8359 | PyObject * obj1 = 0 ; | |
8360 | char *kwnames[] = { | |
8361 | (char *) "self",(char *) "extension", NULL | |
8362 | }; | |
8363 | ||
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8367 | { |
8368 | arg2 = wxString_in_helper(obj1); | |
8369 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8370 | temp2 = True; |
d14a1e28 RD |
8371 | } |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | (arg1)->SetExtension((wxString const &)*arg2); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | Py_INCREF(Py_None); resultobj = Py_None; | |
8380 | { | |
8381 | if (temp2) | |
8382 | delete arg2; | |
8383 | } | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | { | |
8387 | if (temp2) | |
8388 | delete arg2; | |
8389 | } | |
8390 | return NULL; | |
8391 | } | |
8392 | ||
8393 | ||
8394 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8395 | PyObject *resultobj; | |
8396 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8397 | long arg2 ; | |
8398 | PyObject * obj0 = 0 ; | |
994141e6 | 8399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8400 | char *kwnames[] = { |
8401 | (char *) "self",(char *) "type", NULL | |
8402 | }; | |
8403 | ||
994141e6 | 8404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8407 | arg2 = (long) SWIG_AsLong(obj1); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8409 | { |
8410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8411 | (arg1)->SetType(arg2); | |
8412 | ||
8413 | wxPyEndAllowThreads(__tstate); | |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
8415 | } | |
8416 | Py_INCREF(Py_None); resultobj = Py_None; | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj; | |
8425 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8426 | wxString *arg2 = 0 ; | |
e811c8ce | 8427 | bool temp2 = False ; |
d14a1e28 RD |
8428 | PyObject * obj0 = 0 ; |
8429 | PyObject * obj1 = 0 ; | |
8430 | char *kwnames[] = { | |
8431 | (char *) "self",(char *) "mimetype", NULL | |
8432 | }; | |
8433 | ||
8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8437 | { |
8438 | arg2 = wxString_in_helper(obj1); | |
8439 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8440 | temp2 = True; |
d14a1e28 RD |
8441 | } |
8442 | { | |
8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8444 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8445 | ||
8446 | wxPyEndAllowThreads(__tstate); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
8449 | Py_INCREF(Py_None); resultobj = Py_None; | |
8450 | { | |
8451 | if (temp2) | |
8452 | delete arg2; | |
8453 | } | |
8454 | return resultobj; | |
8455 | fail: | |
8456 | { | |
8457 | if (temp2) | |
8458 | delete arg2; | |
8459 | } | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8465 | PyObject *obj; | |
8466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8467 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8468 | Py_INCREF(obj); | |
8469 | return Py_BuildValue((char *)""); | |
8470 | } | |
8471 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject *resultobj; | |
8473 | wxImageHistogram *result; | |
8474 | char *kwnames[] = { | |
8475 | NULL | |
8476 | }; | |
8477 | ||
8478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
15afbcd0 | 8486 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8487 | return resultobj; |
8488 | fail: | |
8489 | return NULL; | |
8490 | } | |
8491 | ||
8492 | ||
8493 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8494 | PyObject *resultobj; | |
8495 | unsigned char arg1 ; | |
8496 | unsigned char arg2 ; | |
8497 | unsigned char arg3 ; | |
8498 | unsigned long result; | |
8499 | PyObject * obj0 = 0 ; | |
8500 | PyObject * obj1 = 0 ; | |
8501 | PyObject * obj2 = 0 ; | |
8502 | char *kwnames[] = { | |
8503 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8504 | }; | |
8505 | ||
8506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8507 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8508 | if (PyErr_Occurred()) SWIG_fail; | |
8509 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8510 | if (PyErr_Occurred()) SWIG_fail; | |
8511 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8513 | { |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8516 | ||
8517 | wxPyEndAllowThreads(__tstate); | |
8518 | if (PyErr_Occurred()) SWIG_fail; | |
8519 | } | |
15afbcd0 | 8520 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8521 | return resultobj; |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
8527 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject *resultobj; | |
8529 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8530 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8531 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8532 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8533 | unsigned char arg5 = (unsigned char) 1 ; | |
8534 | unsigned char arg6 = (unsigned char) 0 ; | |
8535 | unsigned char arg7 = (unsigned char) 0 ; | |
8536 | bool result; | |
8537 | unsigned char temp2 ; | |
8538 | unsigned char temp3 ; | |
8539 | unsigned char temp4 ; | |
8540 | PyObject * obj0 = 0 ; | |
8541 | PyObject * obj1 = 0 ; | |
8542 | PyObject * obj2 = 0 ; | |
8543 | PyObject * obj3 = 0 ; | |
8544 | char *kwnames[] = { | |
8545 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8546 | }; | |
8547 | ||
8548 | arg2 = &temp2; | |
8549 | arg3 = &temp3; | |
8550 | arg4 = &temp4; | |
8551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8554 | if (obj1) { |
15afbcd0 RD |
8555 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8557 | } |
8558 | if (obj2) { | |
15afbcd0 RD |
8559 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8561 | } |
8562 | if (obj3) { | |
15afbcd0 RD |
8563 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8565 | } |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
4f89f6a3 RD |
8573 | { |
8574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8575 | } | |
d14a1e28 RD |
8576 | { |
8577 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8578 | resultobj = t_output_helper(resultobj,o); | |
8579 | } | |
8580 | { | |
8581 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8582 | resultobj = t_output_helper(resultobj,o); | |
8583 | } | |
8584 | { | |
8585 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8586 | resultobj = t_output_helper(resultobj,o); | |
8587 | } | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8595 | PyObject *obj; | |
8596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8597 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8598 | Py_INCREF(obj); | |
8599 | return Py_BuildValue((char *)""); | |
8600 | } | |
8601 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8602 | PyObject *resultobj; | |
8603 | wxString *arg1 = 0 ; | |
8604 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8605 | int arg3 = (int) -1 ; | |
8606 | wxImage *result; | |
e811c8ce | 8607 | bool temp1 = False ; |
d14a1e28 | 8608 | PyObject * obj0 = 0 ; |
994141e6 RD |
8609 | PyObject * obj1 = 0 ; |
8610 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8611 | char *kwnames[] = { |
8612 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8613 | }; | |
8614 | ||
994141e6 | 8615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8616 | { |
8617 | arg1 = wxString_in_helper(obj0); | |
8618 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8619 | temp1 = True; |
d14a1e28 | 8620 | } |
994141e6 | 8621 | if (obj1) { |
15afbcd0 RD |
8622 | arg2 = (long) SWIG_AsLong(obj1); |
8623 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8624 | } |
8625 | if (obj2) { | |
15afbcd0 RD |
8626 | arg3 = (int) SWIG_AsInt(obj2); |
8627 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8628 | } |
d14a1e28 RD |
8629 | { |
8630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8631 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8632 | ||
8633 | wxPyEndAllowThreads(__tstate); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | } | |
15afbcd0 | 8636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8637 | { |
8638 | if (temp1) | |
8639 | delete arg1; | |
8640 | } | |
8641 | return resultobj; | |
8642 | fail: | |
8643 | { | |
8644 | if (temp1) | |
8645 | delete arg1; | |
8646 | } | |
8647 | return NULL; | |
8648 | } | |
8649 | ||
8650 | ||
8651 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8652 | PyObject *resultobj; | |
8653 | wxImage *arg1 = (wxImage *) 0 ; | |
8654 | PyObject * obj0 = 0 ; | |
8655 | char *kwnames[] = { | |
8656 | (char *) "self", NULL | |
8657 | }; | |
8658 | ||
8659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8662 | { |
8663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8664 | delete arg1; | |
8665 | ||
8666 | wxPyEndAllowThreads(__tstate); | |
8667 | if (PyErr_Occurred()) SWIG_fail; | |
8668 | } | |
8669 | Py_INCREF(Py_None); resultobj = Py_None; | |
8670 | return resultobj; | |
8671 | fail: | |
8672 | return NULL; | |
8673 | } | |
8674 | ||
8675 | ||
8676 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8677 | PyObject *resultobj; | |
8678 | wxString *arg1 = 0 ; | |
8679 | wxString *arg2 = 0 ; | |
8680 | int arg3 = (int) -1 ; | |
8681 | wxImage *result; | |
e811c8ce RD |
8682 | bool temp1 = False ; |
8683 | bool temp2 = False ; | |
d14a1e28 RD |
8684 | PyObject * obj0 = 0 ; |
8685 | PyObject * obj1 = 0 ; | |
994141e6 | 8686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8687 | char *kwnames[] = { |
8688 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8689 | }; | |
8690 | ||
994141e6 | 8691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8692 | { |
8693 | arg1 = wxString_in_helper(obj0); | |
8694 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8695 | temp1 = True; |
d14a1e28 RD |
8696 | } |
8697 | { | |
8698 | arg2 = wxString_in_helper(obj1); | |
8699 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8700 | temp2 = True; |
d14a1e28 | 8701 | } |
994141e6 | 8702 | if (obj2) { |
15afbcd0 RD |
8703 | arg3 = (int) SWIG_AsInt(obj2); |
8704 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8705 | } |
d14a1e28 RD |
8706 | { |
8707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8708 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8709 | ||
8710 | wxPyEndAllowThreads(__tstate); | |
8711 | if (PyErr_Occurred()) SWIG_fail; | |
8712 | } | |
15afbcd0 | 8713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8714 | { |
8715 | if (temp1) | |
8716 | delete arg1; | |
8717 | } | |
8718 | { | |
8719 | if (temp2) | |
8720 | delete arg2; | |
8721 | } | |
8722 | return resultobj; | |
8723 | fail: | |
8724 | { | |
8725 | if (temp1) | |
8726 | delete arg1; | |
8727 | } | |
8728 | { | |
8729 | if (temp2) | |
8730 | delete arg2; | |
8731 | } | |
8732 | return NULL; | |
8733 | } | |
8734 | ||
8735 | ||
8736 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8737 | PyObject *resultobj; | |
8738 | wxInputStream *arg1 = 0 ; | |
8739 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8740 | int arg3 = (int) -1 ; | |
8741 | wxImage *result; | |
8742 | wxPyInputStream *temp1 ; | |
8743 | bool created1 ; | |
8744 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8745 | PyObject * obj1 = 0 ; |
8746 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8747 | char *kwnames[] = { |
8748 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8749 | }; | |
8750 | ||
994141e6 | 8751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8752 | { |
8753 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8754 | arg1 = temp1->m_wxis; | |
e811c8ce | 8755 | created1 = False; |
d14a1e28 RD |
8756 | } else { |
8757 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8758 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8759 | if (arg1 == NULL) { |
8760 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8761 | SWIG_fail; | |
8762 | } | |
e811c8ce | 8763 | created1 = True; |
d14a1e28 RD |
8764 | } |
8765 | } | |
994141e6 | 8766 | if (obj1) { |
15afbcd0 RD |
8767 | arg2 = (long) SWIG_AsLong(obj1); |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8769 | } |
8770 | if (obj2) { | |
15afbcd0 RD |
8771 | arg3 = (int) SWIG_AsInt(obj2); |
8772 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8773 | } |
d14a1e28 RD |
8774 | { |
8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8776 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8777 | ||
8778 | wxPyEndAllowThreads(__tstate); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
8780 | } | |
15afbcd0 | 8781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8782 | { |
8783 | if (created1) | |
8784 | delete arg1; | |
8785 | } | |
8786 | return resultobj; | |
8787 | fail: | |
8788 | { | |
8789 | if (created1) | |
8790 | delete arg1; | |
8791 | } | |
8792 | return NULL; | |
8793 | } | |
8794 | ||
8795 | ||
8796 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8797 | PyObject *resultobj; | |
8798 | wxInputStream *arg1 = 0 ; | |
8799 | wxString *arg2 = 0 ; | |
8800 | int arg3 = (int) -1 ; | |
8801 | wxImage *result; | |
8802 | wxPyInputStream *temp1 ; | |
8803 | bool created1 ; | |
e811c8ce | 8804 | bool temp2 = False ; |
d14a1e28 RD |
8805 | PyObject * obj0 = 0 ; |
8806 | PyObject * obj1 = 0 ; | |
994141e6 | 8807 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8808 | char *kwnames[] = { |
8809 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8810 | }; | |
8811 | ||
994141e6 | 8812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8813 | { |
8814 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8815 | arg1 = temp1->m_wxis; | |
e811c8ce | 8816 | created1 = False; |
d14a1e28 RD |
8817 | } else { |
8818 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8819 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8820 | if (arg1 == NULL) { |
8821 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8822 | SWIG_fail; | |
8823 | } | |
e811c8ce | 8824 | created1 = True; |
d14a1e28 RD |
8825 | } |
8826 | } | |
8827 | { | |
8828 | arg2 = wxString_in_helper(obj1); | |
8829 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8830 | temp2 = True; |
d14a1e28 | 8831 | } |
994141e6 | 8832 | if (obj2) { |
15afbcd0 RD |
8833 | arg3 = (int) SWIG_AsInt(obj2); |
8834 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8835 | } |
d14a1e28 RD |
8836 | { |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
15afbcd0 | 8843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8844 | { |
8845 | if (created1) | |
8846 | delete arg1; | |
8847 | } | |
8848 | { | |
8849 | if (temp2) | |
8850 | delete arg2; | |
8851 | } | |
8852 | return resultobj; | |
8853 | fail: | |
8854 | { | |
8855 | if (created1) | |
8856 | delete arg1; | |
8857 | } | |
8858 | { | |
8859 | if (temp2) | |
8860 | delete arg2; | |
8861 | } | |
8862 | return NULL; | |
8863 | } | |
8864 | ||
8865 | ||
66c033b4 | 8866 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8867 | PyObject *resultobj; |
8868 | int arg1 = (int) 0 ; | |
8869 | int arg2 = (int) 0 ; | |
e811c8ce | 8870 | bool arg3 = (bool) True ; |
d14a1e28 | 8871 | wxImage *result; |
994141e6 RD |
8872 | PyObject * obj0 = 0 ; |
8873 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8874 | PyObject * obj2 = 0 ; |
66c033b4 RD |
8875 | char *kwnames[] = { |
8876 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8877 | }; | |
d14a1e28 | 8878 | |
66c033b4 | 8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 8880 | if (obj0) { |
15afbcd0 RD |
8881 | arg1 = (int) SWIG_AsInt(obj0); |
8882 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8883 | } |
8884 | if (obj1) { | |
15afbcd0 RD |
8885 | arg2 = (int) SWIG_AsInt(obj1); |
8886 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8887 | } |
d14a1e28 | 8888 | if (obj2) { |
15afbcd0 RD |
8889 | arg3 = (bool) SWIG_AsBool(obj2); |
8890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8891 | } |
8892 | { | |
8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 8894 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d14a1e28 RD |
8895 | |
8896 | wxPyEndAllowThreads(__tstate); | |
8897 | if (PyErr_Occurred()) SWIG_fail; | |
8898 | } | |
15afbcd0 | 8899 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8900 | return resultobj; |
8901 | fail: | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
8906 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8907 | PyObject *resultobj; | |
8908 | wxBitmap *arg1 = 0 ; | |
8909 | wxImage *result; | |
8910 | PyObject * obj0 = 0 ; | |
8911 | char *kwnames[] = { | |
8912 | (char *) "bitmap", NULL | |
8913 | }; | |
8914 | ||
8915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8918 | SWIG_fail; | |
d14a1e28 | 8919 | if (arg1 == NULL) { |
15afbcd0 RD |
8920 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8921 | SWIG_fail; | |
d14a1e28 RD |
8922 | } |
8923 | { | |
e3b71cb8 | 8924 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8926 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8927 | ||
8928 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 8929 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8930 | } |
15afbcd0 | 8931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8932 | return resultobj; |
8933 | fail: | |
8934 | return NULL; | |
8935 | } | |
8936 | ||
8937 | ||
8938 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8939 | PyObject *resultobj; | |
8940 | int arg1 ; | |
8941 | int arg2 ; | |
8942 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8943 | wxImage *result; | |
994141e6 RD |
8944 | PyObject * obj0 = 0 ; |
8945 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8946 | PyObject * obj2 = 0 ; |
8947 | char *kwnames[] = { | |
8948 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8949 | }; | |
8950 | ||
994141e6 | 8951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8952 | arg1 = (int) SWIG_AsInt(obj0); |
8953 | if (PyErr_Occurred()) SWIG_fail; | |
8954 | arg2 = (int) SWIG_AsInt(obj1); | |
8955 | if (PyErr_Occurred()) SWIG_fail; | |
8956 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8958 | { |
8959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8960 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8961 | ||
8962 | wxPyEndAllowThreads(__tstate); | |
8963 | if (PyErr_Occurred()) SWIG_fail; | |
8964 | } | |
15afbcd0 | 8965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8966 | return resultobj; |
8967 | fail: | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
8972 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8973 | PyObject *resultobj; | |
8974 | wxImage *arg1 = (wxImage *) 0 ; | |
8975 | int arg2 ; | |
8976 | int arg3 ; | |
8977 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8978 | PyObject * obj1 = 0 ; |
8979 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8980 | char *kwnames[] = { |
8981 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8982 | }; | |
8983 | ||
994141e6 | 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8987 | arg2 = (int) SWIG_AsInt(obj1); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | arg3 = (int) SWIG_AsInt(obj2); | |
8990 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8991 | { |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | (arg1)->Create(arg2,arg3); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | Py_INCREF(Py_None); resultobj = Py_None; | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxImage *arg1 = (wxImage *) 0 ; | |
9008 | PyObject * obj0 = 0 ; | |
9009 | char *kwnames[] = { | |
9010 | (char *) "self", NULL | |
9011 | }; | |
9012 | ||
9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9016 | { |
9017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9018 | (arg1)->Destroy(); | |
9019 | ||
9020 | wxPyEndAllowThreads(__tstate); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
9023 | Py_INCREF(Py_None); resultobj = Py_None; | |
9024 | return resultobj; | |
9025 | fail: | |
9026 | return NULL; | |
9027 | } | |
9028 | ||
9029 | ||
9030 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9031 | PyObject *resultobj; | |
9032 | wxImage *arg1 = (wxImage *) 0 ; | |
9033 | int arg2 ; | |
9034 | int arg3 ; | |
9035 | SwigValueWrapper< wxImage > result; | |
9036 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9037 | PyObject * obj1 = 0 ; |
9038 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9039 | char *kwnames[] = { |
9040 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9041 | }; | |
9042 | ||
994141e6 | 9043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9046 | arg2 = (int) SWIG_AsInt(obj1); | |
9047 | if (PyErr_Occurred()) SWIG_fail; | |
9048 | arg3 = (int) SWIG_AsInt(obj2); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9050 | { |
9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9052 | result = (arg1)->Scale(arg2,arg3); | |
9053 | ||
9054 | wxPyEndAllowThreads(__tstate); | |
9055 | if (PyErr_Occurred()) SWIG_fail; | |
9056 | } | |
9057 | { | |
9058 | wxImage * resultptr; | |
9059 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9060 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9061 | } |
9062 | return resultobj; | |
9063 | fail: | |
9064 | return NULL; | |
9065 | } | |
9066 | ||
9067 | ||
9068 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9069 | PyObject *resultobj; | |
9070 | wxImage *arg1 = (wxImage *) 0 ; | |
9071 | int arg2 ; | |
9072 | int arg3 ; | |
9073 | SwigValueWrapper< wxImage > result; | |
9074 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9075 | PyObject * obj1 = 0 ; |
9076 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9077 | char *kwnames[] = { |
9078 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9079 | }; | |
9080 | ||
994141e6 | 9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9084 | arg2 = (int) SWIG_AsInt(obj1); | |
9085 | if (PyErr_Occurred()) SWIG_fail; | |
9086 | arg3 = (int) SWIG_AsInt(obj2); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9088 | { |
9089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9090 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9091 | ||
9092 | wxPyEndAllowThreads(__tstate); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
9094 | } | |
9095 | { | |
9096 | wxImage * resultptr; | |
9097 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9099 | } |
9100 | return resultobj; | |
9101 | fail: | |
9102 | return NULL; | |
9103 | } | |
9104 | ||
9105 | ||
9106 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9107 | PyObject *resultobj; | |
9108 | wxImage *arg1 = (wxImage *) 0 ; | |
9109 | int arg2 ; | |
9110 | int arg3 ; | |
9111 | wxImage *result; | |
9112 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9113 | PyObject * obj1 = 0 ; |
9114 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9115 | char *kwnames[] = { |
9116 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9117 | }; | |
9118 | ||
994141e6 | 9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9122 | arg2 = (int) SWIG_AsInt(obj1); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
9124 | arg3 = (int) SWIG_AsInt(obj2); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9126 | { |
9127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9128 | { | |
9129 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9130 | result = (wxImage *) &_result_ref; | |
9131 | } | |
9132 | ||
9133 | wxPyEndAllowThreads(__tstate); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
9135 | } | |
15afbcd0 | 9136 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
9137 | return resultobj; |
9138 | fail: | |
9139 | return NULL; | |
9140 | } | |
9141 | ||
9142 | ||
9143 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9144 | PyObject *resultobj; | |
9145 | wxImage *arg1 = (wxImage *) 0 ; | |
9146 | int arg2 ; | |
9147 | int arg3 ; | |
9148 | unsigned char arg4 ; | |
9149 | unsigned char arg5 ; | |
9150 | unsigned char arg6 ; | |
9151 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9152 | PyObject * obj1 = 0 ; |
9153 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9154 | PyObject * obj3 = 0 ; |
9155 | PyObject * obj4 = 0 ; | |
9156 | PyObject * obj5 = 0 ; | |
9157 | char *kwnames[] = { | |
9158 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9159 | }; | |
9160 | ||
994141e6 | 9161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
9162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9164 | arg2 = (int) SWIG_AsInt(obj1); | |
9165 | if (PyErr_Occurred()) SWIG_fail; | |
9166 | arg3 = (int) SWIG_AsInt(obj2); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9169 | if (PyErr_Occurred()) SWIG_fail; | |
9170 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9171 | if (PyErr_Occurred()) SWIG_fail; | |
9172 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9173 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9174 | { |
9175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9176 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9177 | ||
9178 | wxPyEndAllowThreads(__tstate); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | } | |
9181 | Py_INCREF(Py_None); resultobj = Py_None; | |
9182 | return resultobj; | |
9183 | fail: | |
9184 | return NULL; | |
9185 | } | |
9186 | ||
9187 | ||
9188 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9189 | PyObject *resultobj; | |
9190 | wxImage *arg1 = (wxImage *) 0 ; | |
9191 | int arg2 ; | |
9192 | int arg3 ; | |
9193 | unsigned char result; | |
9194 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9195 | PyObject * obj1 = 0 ; |
9196 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9197 | char *kwnames[] = { |
9198 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9199 | }; | |
9200 | ||
994141e6 | 9201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9204 | arg2 = (int) SWIG_AsInt(obj1); | |
9205 | if (PyErr_Occurred()) SWIG_fail; | |
9206 | arg3 = (int) SWIG_AsInt(obj2); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9208 | { |
9209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9210 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9211 | ||
9212 | wxPyEndAllowThreads(__tstate); | |
9213 | if (PyErr_Occurred()) SWIG_fail; | |
9214 | } | |
15afbcd0 | 9215 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9216 | return resultobj; |
9217 | fail: | |
9218 | return NULL; | |
9219 | } | |
9220 | ||
9221 | ||
9222 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9223 | PyObject *resultobj; | |
9224 | wxImage *arg1 = (wxImage *) 0 ; | |
9225 | int arg2 ; | |
9226 | int arg3 ; | |
9227 | unsigned char result; | |
9228 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9229 | PyObject * obj1 = 0 ; |
9230 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9231 | char *kwnames[] = { |
9232 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9233 | }; | |
9234 | ||
994141e6 | 9235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9238 | arg2 = (int) SWIG_AsInt(obj1); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | arg3 = (int) SWIG_AsInt(obj2); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9242 | { |
9243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9244 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9245 | ||
9246 | wxPyEndAllowThreads(__tstate); | |
9247 | if (PyErr_Occurred()) SWIG_fail; | |
9248 | } | |
15afbcd0 | 9249 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9250 | return resultobj; |
9251 | fail: | |
9252 | return NULL; | |
9253 | } | |
9254 | ||
9255 | ||
9256 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9257 | PyObject *resultobj; | |
9258 | wxImage *arg1 = (wxImage *) 0 ; | |
9259 | int arg2 ; | |
9260 | int arg3 ; | |
9261 | unsigned char result; | |
9262 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9263 | PyObject * obj1 = 0 ; |
9264 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9265 | char *kwnames[] = { |
9266 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9267 | }; | |
9268 | ||
994141e6 | 9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9272 | arg2 = (int) SWIG_AsInt(obj1); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
9274 | arg3 = (int) SWIG_AsInt(obj2); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9276 | { |
9277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9278 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9279 | ||
9280 | wxPyEndAllowThreads(__tstate); | |
9281 | if (PyErr_Occurred()) SWIG_fail; | |
9282 | } | |
15afbcd0 | 9283 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9284 | return resultobj; |
9285 | fail: | |
9286 | return NULL; | |
9287 | } | |
9288 | ||
9289 | ||
9290 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9291 | PyObject *resultobj; | |
9292 | wxImage *arg1 = (wxImage *) 0 ; | |
9293 | int arg2 ; | |
9294 | int arg3 ; | |
9295 | unsigned char arg4 ; | |
9296 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9297 | PyObject * obj1 = 0 ; |
9298 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9299 | PyObject * obj3 = 0 ; |
9300 | char *kwnames[] = { | |
9301 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9302 | }; | |
9303 | ||
994141e6 | 9304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9307 | arg2 = (int) SWIG_AsInt(obj1); | |
9308 | if (PyErr_Occurred()) SWIG_fail; | |
9309 | arg3 = (int) SWIG_AsInt(obj2); | |
9310 | if (PyErr_Occurred()) SWIG_fail; | |
9311 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9313 | { |
9314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9315 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9316 | ||
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | Py_INCREF(Py_None); resultobj = Py_None; | |
9321 | return resultobj; | |
9322 | fail: | |
9323 | return NULL; | |
9324 | } | |
9325 | ||
9326 | ||
9327 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9328 | PyObject *resultobj; | |
9329 | wxImage *arg1 = (wxImage *) 0 ; | |
9330 | int arg2 ; | |
9331 | int arg3 ; | |
9332 | unsigned char result; | |
9333 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9334 | PyObject * obj1 = 0 ; |
9335 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9336 | char *kwnames[] = { |
9337 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9338 | }; | |
9339 | ||
994141e6 | 9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9343 | arg2 = (int) SWIG_AsInt(obj1); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | arg3 = (int) SWIG_AsInt(obj2); | |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9347 | { |
9348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9349 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9350 | ||
9351 | wxPyEndAllowThreads(__tstate); | |
9352 | if (PyErr_Occurred()) SWIG_fail; | |
9353 | } | |
15afbcd0 | 9354 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9355 | return resultobj; |
9356 | fail: | |
9357 | return NULL; | |
9358 | } | |
9359 | ||
9360 | ||
9361 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9362 | PyObject *resultobj; | |
9363 | wxImage *arg1 = (wxImage *) 0 ; | |
9364 | bool result; | |
9365 | PyObject * obj0 = 0 ; | |
9366 | char *kwnames[] = { | |
9367 | (char *) "self", NULL | |
9368 | }; | |
9369 | ||
9370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9373 | { |
9374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9375 | result = (bool)(arg1)->HasAlpha(); | |
9376 | ||
9377 | wxPyEndAllowThreads(__tstate); | |
9378 | if (PyErr_Occurred()) SWIG_fail; | |
9379 | } | |
4f89f6a3 RD |
9380 | { |
9381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9382 | } | |
d14a1e28 RD |
9383 | return resultobj; |
9384 | fail: | |
9385 | return NULL; | |
9386 | } | |
9387 | ||
9388 | ||
9389 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9390 | PyObject *resultobj; | |
9391 | wxImage *arg1 = (wxImage *) 0 ; | |
9392 | byte *arg2 = (byte *) 0 ; | |
9393 | byte *arg3 = (byte *) 0 ; | |
9394 | byte *arg4 = (byte *) 0 ; | |
9395 | byte arg5 = (byte) 0 ; | |
9396 | byte arg6 = (byte) 0 ; | |
9397 | byte arg7 = (byte) 0 ; | |
9398 | bool result; | |
9399 | byte temp2 ; | |
9400 | byte temp3 ; | |
9401 | byte temp4 ; | |
9402 | PyObject * obj0 = 0 ; | |
9403 | PyObject * obj1 = 0 ; | |
9404 | PyObject * obj2 = 0 ; | |
9405 | PyObject * obj3 = 0 ; | |
9406 | char *kwnames[] = { | |
9407 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9408 | }; | |
9409 | ||
9410 | arg2 = &temp2; | |
9411 | arg3 = &temp3; | |
9412 | arg4 = &temp4; | |
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9416 | if (obj1) { |
15afbcd0 RD |
9417 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9419 | } |
9420 | if (obj2) { | |
15afbcd0 RD |
9421 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9423 | } |
9424 | if (obj3) { | |
15afbcd0 RD |
9425 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9427 | } |
9428 | { | |
9429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9430 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9431 | ||
9432 | wxPyEndAllowThreads(__tstate); | |
9433 | if (PyErr_Occurred()) SWIG_fail; | |
9434 | } | |
4f89f6a3 RD |
9435 | { |
9436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9437 | } | |
d14a1e28 RD |
9438 | { |
9439 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9440 | resultobj = t_output_helper(resultobj,o); | |
9441 | } | |
9442 | { | |
9443 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9444 | resultobj = t_output_helper(resultobj,o); | |
9445 | } | |
9446 | { | |
9447 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9448 | resultobj = t_output_helper(resultobj,o); | |
9449 | } | |
9450 | return resultobj; | |
9451 | fail: | |
9452 | return NULL; | |
9453 | } | |
9454 | ||
9455 | ||
9456 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9457 | PyObject *resultobj; | |
9458 | wxImage *arg1 = (wxImage *) 0 ; | |
9459 | wxImage *arg2 = 0 ; | |
9460 | byte arg3 ; | |
9461 | byte arg4 ; | |
9462 | byte arg5 ; | |
9463 | bool result; | |
9464 | PyObject * obj0 = 0 ; | |
9465 | PyObject * obj1 = 0 ; | |
9466 | PyObject * obj2 = 0 ; | |
9467 | PyObject * obj3 = 0 ; | |
9468 | PyObject * obj4 = 0 ; | |
9469 | char *kwnames[] = { | |
9470 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9471 | }; | |
9472 | ||
9473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
9474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9476 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9477 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9478 | SWIG_fail; | |
d14a1e28 | 9479 | if (arg2 == NULL) { |
15afbcd0 RD |
9480 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9481 | SWIG_fail; | |
a41e16b6 | 9482 | } |
15afbcd0 RD |
9483 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9486 | if (PyErr_Occurred()) SWIG_fail; | |
9487 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9489 | { |
9490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9491 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9492 | ||
9493 | wxPyEndAllowThreads(__tstate); | |
9494 | if (PyErr_Occurred()) SWIG_fail; | |
9495 | } | |
4f89f6a3 RD |
9496 | { |
9497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9498 | } | |
d14a1e28 RD |
9499 | return resultobj; |
9500 | fail: | |
9501 | return NULL; | |
9502 | } | |
9503 | ||
9504 | ||
9505 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9506 | PyObject *resultobj; | |
9507 | wxString *arg1 = 0 ; | |
9508 | bool result; | |
e811c8ce | 9509 | bool temp1 = False ; |
d14a1e28 RD |
9510 | PyObject * obj0 = 0 ; |
9511 | char *kwnames[] = { | |
9512 | (char *) "name", NULL | |
9513 | }; | |
9514 | ||
9515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9516 | { | |
9517 | arg1 = wxString_in_helper(obj0); | |
9518 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9519 | temp1 = True; |
d14a1e28 RD |
9520 | } |
9521 | { | |
9522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9523 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9524 | ||
9525 | wxPyEndAllowThreads(__tstate); | |
9526 | if (PyErr_Occurred()) SWIG_fail; | |
9527 | } | |
4f89f6a3 RD |
9528 | { |
9529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9530 | } | |
d14a1e28 RD |
9531 | { |
9532 | if (temp1) | |
9533 | delete arg1; | |
9534 | } | |
9535 | return resultobj; | |
9536 | fail: | |
9537 | { | |
9538 | if (temp1) | |
9539 | delete arg1; | |
9540 | } | |
9541 | return NULL; | |
9542 | } | |
9543 | ||
9544 | ||
9545 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9546 | PyObject *resultobj; | |
9547 | wxString *arg1 = 0 ; | |
9548 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9549 | int result; | |
e811c8ce | 9550 | bool temp1 = False ; |
d14a1e28 | 9551 | PyObject * obj0 = 0 ; |
994141e6 | 9552 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9553 | char *kwnames[] = { |
9554 | (char *) "name",(char *) "type", NULL | |
9555 | }; | |
9556 | ||
994141e6 | 9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9558 | { |
9559 | arg1 = wxString_in_helper(obj0); | |
9560 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9561 | temp1 = True; |
d14a1e28 | 9562 | } |
994141e6 | 9563 | if (obj1) { |
15afbcd0 RD |
9564 | arg2 = (long) SWIG_AsLong(obj1); |
9565 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9566 | } |
d14a1e28 RD |
9567 | { |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
15afbcd0 | 9574 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9575 | { |
9576 | if (temp1) | |
9577 | delete arg1; | |
9578 | } | |
9579 | return resultobj; | |
9580 | fail: | |
9581 | { | |
9582 | if (temp1) | |
9583 | delete arg1; | |
9584 | } | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxImage *arg1 = (wxImage *) 0 ; | |
9592 | wxString *arg2 = 0 ; | |
9593 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9594 | int arg4 = (int) -1 ; | |
9595 | bool result; | |
e811c8ce | 9596 | bool temp2 = False ; |
d14a1e28 RD |
9597 | PyObject * obj0 = 0 ; |
9598 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9599 | PyObject * obj2 = 0 ; |
9600 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9601 | char *kwnames[] = { |
9602 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9603 | }; | |
9604 | ||
994141e6 | 9605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9608 | { |
9609 | arg2 = wxString_in_helper(obj1); | |
9610 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9611 | temp2 = True; |
d14a1e28 | 9612 | } |
994141e6 | 9613 | if (obj2) { |
15afbcd0 RD |
9614 | arg3 = (long) SWIG_AsLong(obj2); |
9615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9616 | } |
9617 | if (obj3) { | |
15afbcd0 RD |
9618 | arg4 = (int) SWIG_AsInt(obj3); |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9620 | } |
d14a1e28 RD |
9621 | { |
9622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9623 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9624 | ||
9625 | wxPyEndAllowThreads(__tstate); | |
9626 | if (PyErr_Occurred()) SWIG_fail; | |
9627 | } | |
4f89f6a3 RD |
9628 | { |
9629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9630 | } | |
d14a1e28 RD |
9631 | { |
9632 | if (temp2) | |
9633 | delete arg2; | |
9634 | } | |
9635 | return resultobj; | |
9636 | fail: | |
9637 | { | |
9638 | if (temp2) | |
9639 | delete arg2; | |
9640 | } | |
9641 | return NULL; | |
9642 | } | |
9643 | ||
9644 | ||
9645 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9646 | PyObject *resultobj; | |
9647 | wxImage *arg1 = (wxImage *) 0 ; | |
9648 | wxString *arg2 = 0 ; | |
9649 | wxString *arg3 = 0 ; | |
9650 | int arg4 = (int) -1 ; | |
9651 | bool result; | |
e811c8ce RD |
9652 | bool temp2 = False ; |
9653 | bool temp3 = False ; | |
d14a1e28 RD |
9654 | PyObject * obj0 = 0 ; |
9655 | PyObject * obj1 = 0 ; | |
9656 | PyObject * obj2 = 0 ; | |
994141e6 | 9657 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9658 | char *kwnames[] = { |
9659 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9660 | }; | |
9661 | ||
994141e6 | 9662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9665 | { |
9666 | arg2 = wxString_in_helper(obj1); | |
9667 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9668 | temp2 = True; |
d14a1e28 RD |
9669 | } |
9670 | { | |
9671 | arg3 = wxString_in_helper(obj2); | |
9672 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9673 | temp3 = True; |
d14a1e28 | 9674 | } |
994141e6 | 9675 | if (obj3) { |
15afbcd0 RD |
9676 | arg4 = (int) SWIG_AsInt(obj3); |
9677 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9678 | } |
d14a1e28 RD |
9679 | { |
9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9681 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9682 | ||
9683 | wxPyEndAllowThreads(__tstate); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | } | |
4f89f6a3 RD |
9686 | { |
9687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9688 | } | |
d14a1e28 RD |
9689 | { |
9690 | if (temp2) | |
9691 | delete arg2; | |
9692 | } | |
9693 | { | |
9694 | if (temp3) | |
9695 | delete arg3; | |
9696 | } | |
9697 | return resultobj; | |
9698 | fail: | |
9699 | { | |
9700 | if (temp2) | |
9701 | delete arg2; | |
9702 | } | |
9703 | { | |
9704 | if (temp3) | |
9705 | delete arg3; | |
9706 | } | |
9707 | return NULL; | |
9708 | } | |
9709 | ||
9710 | ||
9711 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9712 | PyObject *resultobj; | |
9713 | wxImage *arg1 = (wxImage *) 0 ; | |
9714 | wxString *arg2 = 0 ; | |
9715 | int arg3 ; | |
9716 | bool result; | |
e811c8ce | 9717 | bool temp2 = False ; |
d14a1e28 RD |
9718 | PyObject * obj0 = 0 ; |
9719 | PyObject * obj1 = 0 ; | |
994141e6 | 9720 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9721 | char *kwnames[] = { |
9722 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9723 | }; | |
9724 | ||
994141e6 | 9725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9728 | { |
9729 | arg2 = wxString_in_helper(obj1); | |
9730 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9731 | temp2 = True; |
d14a1e28 | 9732 | } |
15afbcd0 RD |
9733 | arg3 = (int) SWIG_AsInt(obj2); |
9734 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9735 | { |
9736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9737 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9738 | ||
9739 | wxPyEndAllowThreads(__tstate); | |
9740 | if (PyErr_Occurred()) SWIG_fail; | |
9741 | } | |
4f89f6a3 RD |
9742 | { |
9743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9744 | } | |
d14a1e28 RD |
9745 | { |
9746 | if (temp2) | |
9747 | delete arg2; | |
9748 | } | |
9749 | return resultobj; | |
9750 | fail: | |
9751 | { | |
9752 | if (temp2) | |
9753 | delete arg2; | |
9754 | } | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxImage *arg1 = (wxImage *) 0 ; | |
9762 | wxString *arg2 = 0 ; | |
9763 | wxString *arg3 = 0 ; | |
9764 | bool result; | |
e811c8ce RD |
9765 | bool temp2 = False ; |
9766 | bool temp3 = False ; | |
d14a1e28 RD |
9767 | PyObject * obj0 = 0 ; |
9768 | PyObject * obj1 = 0 ; | |
9769 | PyObject * obj2 = 0 ; | |
9770 | char *kwnames[] = { | |
9771 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9772 | }; | |
9773 | ||
9774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9777 | { |
9778 | arg2 = wxString_in_helper(obj1); | |
9779 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9780 | temp2 = True; |
d14a1e28 RD |
9781 | } |
9782 | { | |
9783 | arg3 = wxString_in_helper(obj2); | |
9784 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9785 | temp3 = True; |
d14a1e28 RD |
9786 | } |
9787 | { | |
9788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9789 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9790 | ||
9791 | wxPyEndAllowThreads(__tstate); | |
9792 | if (PyErr_Occurred()) SWIG_fail; | |
9793 | } | |
4f89f6a3 RD |
9794 | { |
9795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9796 | } | |
d14a1e28 RD |
9797 | { |
9798 | if (temp2) | |
9799 | delete arg2; | |
9800 | } | |
9801 | { | |
9802 | if (temp3) | |
9803 | delete arg3; | |
9804 | } | |
9805 | return resultobj; | |
9806 | fail: | |
9807 | { | |
9808 | if (temp2) | |
9809 | delete arg2; | |
9810 | } | |
9811 | { | |
9812 | if (temp3) | |
9813 | delete arg3; | |
9814 | } | |
9815 | return NULL; | |
9816 | } | |
9817 | ||
9818 | ||
9819 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9820 | PyObject *resultobj; | |
9821 | wxInputStream *arg1 = 0 ; | |
9822 | bool result; | |
9823 | wxPyInputStream *temp1 ; | |
9824 | bool created1 ; | |
9825 | PyObject * obj0 = 0 ; | |
9826 | char *kwnames[] = { | |
9827 | (char *) "stream", NULL | |
9828 | }; | |
9829 | ||
9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9831 | { | |
9832 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9833 | arg1 = temp1->m_wxis; | |
e811c8ce | 9834 | created1 = False; |
d14a1e28 RD |
9835 | } else { |
9836 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9837 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9838 | if (arg1 == NULL) { |
9839 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9840 | SWIG_fail; | |
9841 | } | |
e811c8ce | 9842 | created1 = True; |
d14a1e28 RD |
9843 | } |
9844 | } | |
9845 | { | |
9846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9847 | result = (bool)wxImage::CanRead(*arg1); | |
9848 | ||
9849 | wxPyEndAllowThreads(__tstate); | |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
9851 | } | |
4f89f6a3 RD |
9852 | { |
9853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9854 | } | |
d14a1e28 RD |
9855 | { |
9856 | if (created1) | |
9857 | delete arg1; | |
9858 | } | |
9859 | return resultobj; | |
9860 | fail: | |
9861 | { | |
9862 | if (created1) | |
9863 | delete arg1; | |
9864 | } | |
9865 | return NULL; | |
9866 | } | |
9867 | ||
9868 | ||
9869 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9870 | PyObject *resultobj; | |
9871 | wxImage *arg1 = (wxImage *) 0 ; | |
9872 | wxInputStream *arg2 = 0 ; | |
9873 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9874 | int arg4 = (int) -1 ; | |
9875 | bool result; | |
9876 | wxPyInputStream *temp2 ; | |
9877 | bool created2 ; | |
9878 | PyObject * obj0 = 0 ; | |
9879 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9880 | PyObject * obj2 = 0 ; |
9881 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9882 | char *kwnames[] = { |
9883 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9884 | }; | |
9885 | ||
994141e6 | 9886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9889 | { |
9890 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9891 | arg2 = temp2->m_wxis; | |
e811c8ce | 9892 | created2 = False; |
d14a1e28 RD |
9893 | } else { |
9894 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9895 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9896 | if (arg2 == NULL) { |
9897 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9898 | SWIG_fail; | |
9899 | } | |
e811c8ce | 9900 | created2 = True; |
d14a1e28 RD |
9901 | } |
9902 | } | |
994141e6 | 9903 | if (obj2) { |
15afbcd0 RD |
9904 | arg3 = (long) SWIG_AsLong(obj2); |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9906 | } |
9907 | if (obj3) { | |
15afbcd0 RD |
9908 | arg4 = (int) SWIG_AsInt(obj3); |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9910 | } |
d14a1e28 RD |
9911 | { |
9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9913 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9914 | ||
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
4f89f6a3 RD |
9918 | { |
9919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9920 | } | |
d14a1e28 RD |
9921 | { |
9922 | if (created2) | |
9923 | delete arg2; | |
9924 | } | |
9925 | return resultobj; | |
9926 | fail: | |
9927 | { | |
9928 | if (created2) | |
9929 | delete arg2; | |
9930 | } | |
9931 | return NULL; | |
9932 | } | |
9933 | ||
9934 | ||
9935 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9936 | PyObject *resultobj; | |
9937 | wxImage *arg1 = (wxImage *) 0 ; | |
9938 | wxInputStream *arg2 = 0 ; | |
9939 | wxString *arg3 = 0 ; | |
9940 | int arg4 = (int) -1 ; | |
9941 | bool result; | |
9942 | wxPyInputStream *temp2 ; | |
9943 | bool created2 ; | |
e811c8ce | 9944 | bool temp3 = False ; |
d14a1e28 RD |
9945 | PyObject * obj0 = 0 ; |
9946 | PyObject * obj1 = 0 ; | |
9947 | PyObject * obj2 = 0 ; | |
994141e6 | 9948 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9949 | char *kwnames[] = { |
9950 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9951 | }; | |
9952 | ||
994141e6 | 9953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9956 | { |
9957 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9958 | arg2 = temp2->m_wxis; | |
e811c8ce | 9959 | created2 = False; |
d14a1e28 RD |
9960 | } else { |
9961 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9962 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9963 | if (arg2 == NULL) { |
9964 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9965 | SWIG_fail; | |
9966 | } | |
e811c8ce | 9967 | created2 = True; |
d14a1e28 RD |
9968 | } |
9969 | } | |
9970 | { | |
9971 | arg3 = wxString_in_helper(obj2); | |
9972 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9973 | temp3 = True; |
d14a1e28 | 9974 | } |
994141e6 | 9975 | if (obj3) { |
15afbcd0 RD |
9976 | arg4 = (int) SWIG_AsInt(obj3); |
9977 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9978 | } |
d14a1e28 RD |
9979 | { |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9982 | ||
9983 | wxPyEndAllowThreads(__tstate); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
9985 | } | |
4f89f6a3 RD |
9986 | { |
9987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9988 | } | |
d14a1e28 RD |
9989 | { |
9990 | if (created2) | |
9991 | delete arg2; | |
9992 | } | |
9993 | { | |
9994 | if (temp3) | |
9995 | delete arg3; | |
9996 | } | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | { | |
10000 | if (created2) | |
10001 | delete arg2; | |
10002 | } | |
10003 | { | |
10004 | if (temp3) | |
10005 | delete arg3; | |
10006 | } | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxImage *arg1 = (wxImage *) 0 ; | |
10014 | bool result; | |
10015 | PyObject * obj0 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self", NULL | |
10018 | }; | |
10019 | ||
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10023 | { |
10024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10025 | result = (bool)(arg1)->Ok(); | |
10026 | ||
10027 | wxPyEndAllowThreads(__tstate); | |
10028 | if (PyErr_Occurred()) SWIG_fail; | |
10029 | } | |
4f89f6a3 RD |
10030 | { |
10031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10032 | } | |
d14a1e28 RD |
10033 | return resultobj; |
10034 | fail: | |
10035 | return NULL; | |
10036 | } | |
10037 | ||
10038 | ||
10039 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10040 | PyObject *resultobj; | |
10041 | wxImage *arg1 = (wxImage *) 0 ; | |
10042 | int result; | |
10043 | PyObject * obj0 = 0 ; | |
10044 | char *kwnames[] = { | |
10045 | (char *) "self", NULL | |
10046 | }; | |
10047 | ||
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10051 | { |
10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10053 | result = (int)(arg1)->GetWidth(); | |
10054 | ||
10055 | wxPyEndAllowThreads(__tstate); | |
10056 | if (PyErr_Occurred()) SWIG_fail; | |
10057 | } | |
15afbcd0 | 10058 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10059 | return resultobj; |
10060 | fail: | |
10061 | return NULL; | |
10062 | } | |
10063 | ||
10064 | ||
10065 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject *resultobj; | |
10067 | wxImage *arg1 = (wxImage *) 0 ; | |
10068 | int result; | |
10069 | PyObject * obj0 = 0 ; | |
10070 | char *kwnames[] = { | |
10071 | (char *) "self", NULL | |
10072 | }; | |
10073 | ||
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10077 | { |
10078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10079 | result = (int)(arg1)->GetHeight(); | |
10080 | ||
10081 | wxPyEndAllowThreads(__tstate); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | } | |
15afbcd0 | 10084 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10085 | return resultobj; |
10086 | fail: | |
10087 | return NULL; | |
10088 | } | |
10089 | ||
10090 | ||
b2df227b RD |
10091 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
10092 | PyObject *resultobj; | |
10093 | wxImage *arg1 = (wxImage *) 0 ; | |
10094 | wxSize result; | |
10095 | PyObject * obj0 = 0 ; | |
10096 | char *kwnames[] = { | |
10097 | (char *) "self", NULL | |
10098 | }; | |
10099 | ||
10100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10103 | { | |
10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10105 | result = wxImage_GetSize(arg1); | |
10106 | ||
10107 | wxPyEndAllowThreads(__tstate); | |
10108 | if (PyErr_Occurred()) SWIG_fail; | |
10109 | } | |
10110 | { | |
10111 | wxSize * resultptr; | |
10112 | resultptr = new wxSize((wxSize &) result); | |
10113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10114 | } | |
10115 | return resultobj; | |
10116 | fail: | |
10117 | return NULL; | |
10118 | } | |
10119 | ||
10120 | ||
d14a1e28 RD |
10121 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
10122 | PyObject *resultobj; | |
10123 | wxImage *arg1 = (wxImage *) 0 ; | |
10124 | wxRect *arg2 = 0 ; | |
10125 | SwigValueWrapper< wxImage > result; | |
10126 | wxRect temp2 ; | |
10127 | PyObject * obj0 = 0 ; | |
10128 | PyObject * obj1 = 0 ; | |
10129 | char *kwnames[] = { | |
10130 | (char *) "self",(char *) "rect", NULL | |
10131 | }; | |
10132 | ||
10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10136 | { |
10137 | arg2 = &temp2; | |
10138 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10139 | } | |
10140 | { | |
10141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10142 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10143 | ||
10144 | wxPyEndAllowThreads(__tstate); | |
10145 | if (PyErr_Occurred()) SWIG_fail; | |
10146 | } | |
10147 | { | |
10148 | wxImage * resultptr; | |
10149 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10150 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10151 | } |
10152 | return resultobj; | |
10153 | fail: | |
10154 | return NULL; | |
10155 | } | |
10156 | ||
10157 | ||
10158 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10159 | PyObject *resultobj; | |
10160 | wxImage *arg1 = (wxImage *) 0 ; | |
10161 | SwigValueWrapper< wxImage > result; | |
10162 | PyObject * obj0 = 0 ; | |
10163 | char *kwnames[] = { | |
10164 | (char *) "self", NULL | |
10165 | }; | |
10166 | ||
10167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10170 | { |
10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10172 | result = (arg1)->Copy(); | |
10173 | ||
10174 | wxPyEndAllowThreads(__tstate); | |
10175 | if (PyErr_Occurred()) SWIG_fail; | |
10176 | } | |
10177 | { | |
10178 | wxImage * resultptr; | |
10179 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10180 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10181 | } |
10182 | return resultobj; | |
10183 | fail: | |
10184 | return NULL; | |
10185 | } | |
10186 | ||
10187 | ||
10188 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10189 | PyObject *resultobj; | |
10190 | wxImage *arg1 = (wxImage *) 0 ; | |
10191 | wxImage *arg2 = 0 ; | |
10192 | int arg3 ; | |
10193 | int arg4 ; | |
10194 | PyObject * obj0 = 0 ; | |
10195 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10196 | PyObject * obj2 = 0 ; |
10197 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10198 | char *kwnames[] = { |
10199 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10200 | }; | |
10201 | ||
994141e6 | 10202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10206 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10207 | SWIG_fail; | |
d14a1e28 | 10208 | if (arg2 == NULL) { |
15afbcd0 RD |
10209 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10210 | SWIG_fail; | |
994141e6 | 10211 | } |
15afbcd0 RD |
10212 | arg3 = (int) SWIG_AsInt(obj2); |
10213 | if (PyErr_Occurred()) SWIG_fail; | |
10214 | arg4 = (int) SWIG_AsInt(obj3); | |
10215 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10216 | { |
10217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10218 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10219 | ||
10220 | wxPyEndAllowThreads(__tstate); | |
10221 | if (PyErr_Occurred()) SWIG_fail; | |
10222 | } | |
10223 | Py_INCREF(Py_None); resultobj = Py_None; | |
10224 | return resultobj; | |
10225 | fail: | |
10226 | return NULL; | |
10227 | } | |
10228 | ||
10229 | ||
10230 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10231 | PyObject *resultobj; | |
10232 | wxImage *arg1 = (wxImage *) 0 ; | |
10233 | PyObject *result; | |
10234 | PyObject * obj0 = 0 ; | |
10235 | char *kwnames[] = { | |
10236 | (char *) "self", NULL | |
10237 | }; | |
10238 | ||
10239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10242 | { |
10243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10244 | result = (PyObject *)wxImage_GetData(arg1); | |
10245 | ||
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | resultobj = result; | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10257 | PyObject *resultobj; | |
10258 | wxImage *arg1 = (wxImage *) 0 ; | |
10259 | PyObject *arg2 = (PyObject *) 0 ; | |
10260 | PyObject * obj0 = 0 ; | |
10261 | PyObject * obj1 = 0 ; | |
10262 | char *kwnames[] = { | |
10263 | (char *) "self",(char *) "data", NULL | |
10264 | }; | |
10265 | ||
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10269 | arg2 = obj1; |
10270 | { | |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | wxImage_SetData(arg1,arg2); | |
10273 | ||
10274 | wxPyEndAllowThreads(__tstate); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
10277 | Py_INCREF(Py_None); resultobj = Py_None; | |
10278 | return resultobj; | |
10279 | fail: | |
10280 | return NULL; | |
10281 | } | |
10282 | ||
10283 | ||
10284 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxImage *arg1 = (wxImage *) 0 ; | |
10287 | PyObject *result; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | char *kwnames[] = { | |
10290 | (char *) "self", NULL | |
10291 | }; | |
10292 | ||
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10296 | { |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | resultobj = result; | |
10304 | return resultobj; | |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxImage *arg1 = (wxImage *) 0 ; | |
10313 | PyObject *arg2 = (PyObject *) 0 ; | |
10314 | PyObject * obj0 = 0 ; | |
10315 | PyObject * obj1 = 0 ; | |
10316 | char *kwnames[] = { | |
10317 | (char *) "self",(char *) "data", NULL | |
10318 | }; | |
10319 | ||
10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10323 | arg2 = obj1; |
10324 | { | |
10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10326 | wxImage_SetDataBuffer(arg1,arg2); | |
10327 | ||
10328 | wxPyEndAllowThreads(__tstate); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
10330 | } | |
10331 | Py_INCREF(Py_None); resultobj = Py_None; | |
10332 | return resultobj; | |
10333 | fail: | |
10334 | return NULL; | |
10335 | } | |
10336 | ||
10337 | ||
10338 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10339 | PyObject *resultobj; | |
10340 | wxImage *arg1 = (wxImage *) 0 ; | |
10341 | PyObject *result; | |
10342 | PyObject * obj0 = 0 ; | |
10343 | char *kwnames[] = { | |
10344 | (char *) "self", NULL | |
10345 | }; | |
10346 | ||
10347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10350 | { |
10351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10352 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10353 | ||
10354 | wxPyEndAllowThreads(__tstate); | |
10355 | if (PyErr_Occurred()) SWIG_fail; | |
10356 | } | |
10357 | resultobj = result; | |
10358 | return resultobj; | |
10359 | fail: | |
10360 | return NULL; | |
10361 | } | |
10362 | ||
10363 | ||
10364 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10365 | PyObject *resultobj; | |
10366 | wxImage *arg1 = (wxImage *) 0 ; | |
10367 | PyObject *arg2 = (PyObject *) 0 ; | |
10368 | PyObject * obj0 = 0 ; | |
10369 | PyObject * obj1 = 0 ; | |
10370 | char *kwnames[] = { | |
10371 | (char *) "self",(char *) "data", NULL | |
10372 | }; | |
10373 | ||
10374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10377 | arg2 = obj1; |
10378 | { | |
10379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10380 | wxImage_SetAlphaData(arg1,arg2); | |
10381 | ||
10382 | wxPyEndAllowThreads(__tstate); | |
10383 | if (PyErr_Occurred()) SWIG_fail; | |
10384 | } | |
10385 | Py_INCREF(Py_None); resultobj = Py_None; | |
10386 | return resultobj; | |
10387 | fail: | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
10392 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxImage *arg1 = (wxImage *) 0 ; | |
10395 | PyObject *result; | |
10396 | PyObject * obj0 = 0 ; | |
10397 | char *kwnames[] = { | |
10398 | (char *) "self", NULL | |
10399 | }; | |
10400 | ||
10401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10404 | { |
10405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10406 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10407 | ||
10408 | wxPyEndAllowThreads(__tstate); | |
10409 | if (PyErr_Occurred()) SWIG_fail; | |
10410 | } | |
10411 | resultobj = result; | |
10412 | return resultobj; | |
10413 | fail: | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
10418 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject *resultobj; | |
10420 | wxImage *arg1 = (wxImage *) 0 ; | |
10421 | PyObject *arg2 = (PyObject *) 0 ; | |
10422 | PyObject * obj0 = 0 ; | |
10423 | PyObject * obj1 = 0 ; | |
10424 | char *kwnames[] = { | |
10425 | (char *) "self",(char *) "data", NULL | |
10426 | }; | |
10427 | ||
10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10431 | arg2 = obj1; |
10432 | { | |
10433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10434 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10435 | ||
10436 | wxPyEndAllowThreads(__tstate); | |
10437 | if (PyErr_Occurred()) SWIG_fail; | |
10438 | } | |
10439 | Py_INCREF(Py_None); resultobj = Py_None; | |
10440 | return resultobj; | |
10441 | fail: | |
10442 | return NULL; | |
10443 | } | |
10444 | ||
10445 | ||
10446 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject *resultobj; | |
10448 | wxImage *arg1 = (wxImage *) 0 ; | |
10449 | unsigned char arg2 ; | |
10450 | unsigned char arg3 ; | |
10451 | unsigned char arg4 ; | |
10452 | PyObject * obj0 = 0 ; | |
10453 | PyObject * obj1 = 0 ; | |
10454 | PyObject * obj2 = 0 ; | |
10455 | PyObject * obj3 = 0 ; | |
10456 | char *kwnames[] = { | |
10457 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10463 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10464 | if (PyErr_Occurred()) SWIG_fail; | |
10465 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10468 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10469 | { |
10470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10471 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10472 | ||
10473 | wxPyEndAllowThreads(__tstate); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | } | |
10476 | Py_INCREF(Py_None); resultobj = Py_None; | |
10477 | return resultobj; | |
10478 | fail: | |
10479 | return NULL; | |
10480 | } | |
10481 | ||
10482 | ||
10483 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10484 | PyObject *resultobj; | |
10485 | wxImage *arg1 = (wxImage *) 0 ; | |
10486 | unsigned char result; | |
10487 | PyObject * obj0 = 0 ; | |
10488 | char *kwnames[] = { | |
10489 | (char *) "self", NULL | |
10490 | }; | |
10491 | ||
10492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10495 | { |
10496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10497 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10498 | ||
10499 | wxPyEndAllowThreads(__tstate); | |
10500 | if (PyErr_Occurred()) SWIG_fail; | |
10501 | } | |
15afbcd0 | 10502 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10503 | return resultobj; |
10504 | fail: | |
10505 | return NULL; | |
10506 | } | |
10507 | ||
10508 | ||
10509 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10510 | PyObject *resultobj; | |
10511 | wxImage *arg1 = (wxImage *) 0 ; | |
10512 | unsigned char result; | |
10513 | PyObject * obj0 = 0 ; | |
10514 | char *kwnames[] = { | |
10515 | (char *) "self", NULL | |
10516 | }; | |
10517 | ||
10518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10521 | { |
10522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10523 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10524 | ||
10525 | wxPyEndAllowThreads(__tstate); | |
10526 | if (PyErr_Occurred()) SWIG_fail; | |
10527 | } | |
15afbcd0 | 10528 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10529 | return resultobj; |
10530 | fail: | |
10531 | return NULL; | |
10532 | } | |
10533 | ||
10534 | ||
10535 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10536 | PyObject *resultobj; | |
10537 | wxImage *arg1 = (wxImage *) 0 ; | |
10538 | unsigned char result; | |
10539 | PyObject * obj0 = 0 ; | |
10540 | char *kwnames[] = { | |
10541 | (char *) "self", NULL | |
10542 | }; | |
10543 | ||
10544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10547 | { |
10548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10549 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10550 | ||
10551 | wxPyEndAllowThreads(__tstate); | |
10552 | if (PyErr_Occurred()) SWIG_fail; | |
10553 | } | |
15afbcd0 | 10554 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10555 | return resultobj; |
10556 | fail: | |
10557 | return NULL; | |
10558 | } | |
10559 | ||
10560 | ||
10561 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10562 | PyObject *resultobj; | |
10563 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10564 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10565 | PyObject * obj0 = 0 ; |
10566 | PyObject * obj1 = 0 ; | |
10567 | char *kwnames[] = { | |
10568 | (char *) "self",(char *) "mask", NULL | |
10569 | }; | |
10570 | ||
10571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10574 | if (obj1) { |
15afbcd0 RD |
10575 | arg2 = (bool) SWIG_AsBool(obj1); |
10576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10577 | } |
10578 | { | |
10579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10580 | (arg1)->SetMask(arg2); | |
10581 | ||
10582 | wxPyEndAllowThreads(__tstate); | |
10583 | if (PyErr_Occurred()) SWIG_fail; | |
10584 | } | |
10585 | Py_INCREF(Py_None); resultobj = Py_None; | |
10586 | return resultobj; | |
10587 | fail: | |
10588 | return NULL; | |
10589 | } | |
10590 | ||
10591 | ||
10592 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10593 | PyObject *resultobj; | |
10594 | wxImage *arg1 = (wxImage *) 0 ; | |
10595 | bool result; | |
10596 | PyObject * obj0 = 0 ; | |
10597 | char *kwnames[] = { | |
10598 | (char *) "self", NULL | |
10599 | }; | |
10600 | ||
10601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10604 | { |
10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10606 | result = (bool)(arg1)->HasMask(); | |
10607 | ||
10608 | wxPyEndAllowThreads(__tstate); | |
10609 | if (PyErr_Occurred()) SWIG_fail; | |
10610 | } | |
4f89f6a3 RD |
10611 | { |
10612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10613 | } | |
d14a1e28 RD |
10614 | return resultobj; |
10615 | fail: | |
10616 | return NULL; | |
10617 | } | |
10618 | ||
10619 | ||
10620 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10621 | PyObject *resultobj; | |
10622 | wxImage *arg1 = (wxImage *) 0 ; | |
10623 | double arg2 ; | |
10624 | wxPoint *arg3 = 0 ; | |
e811c8ce | 10625 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10626 | wxPoint *arg5 = (wxPoint *) NULL ; |
10627 | SwigValueWrapper< wxImage > result; | |
10628 | wxPoint temp3 ; | |
10629 | PyObject * obj0 = 0 ; | |
994141e6 | 10630 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10631 | PyObject * obj2 = 0 ; |
10632 | PyObject * obj3 = 0 ; | |
10633 | PyObject * obj4 = 0 ; | |
10634 | char *kwnames[] = { | |
10635 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10636 | }; | |
10637 | ||
994141e6 | 10638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10641 | arg2 = (double) SWIG_AsDouble(obj1); | |
10642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10643 | { |
10644 | arg3 = &temp3; | |
10645 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10646 | } | |
10647 | if (obj3) { | |
15afbcd0 RD |
10648 | arg4 = (bool) SWIG_AsBool(obj3); |
10649 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10650 | } |
10651 | if (obj4) { | |
15afbcd0 RD |
10652 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10654 | } |
10655 | { | |
10656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10657 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10658 | ||
10659 | wxPyEndAllowThreads(__tstate); | |
10660 | if (PyErr_Occurred()) SWIG_fail; | |
10661 | } | |
10662 | { | |
10663 | wxImage * resultptr; | |
10664 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10665 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10666 | } |
10667 | return resultobj; | |
10668 | fail: | |
10669 | return NULL; | |
10670 | } | |
10671 | ||
10672 | ||
10673 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10674 | PyObject *resultobj; | |
10675 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10676 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10677 | SwigValueWrapper< wxImage > result; |
10678 | PyObject * obj0 = 0 ; | |
10679 | PyObject * obj1 = 0 ; | |
10680 | char *kwnames[] = { | |
10681 | (char *) "self",(char *) "clockwise", NULL | |
10682 | }; | |
10683 | ||
10684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10687 | if (obj1) { |
15afbcd0 RD |
10688 | arg2 = (bool) SWIG_AsBool(obj1); |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10690 | } |
10691 | { | |
10692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10693 | result = (arg1)->Rotate90(arg2); | |
10694 | ||
10695 | wxPyEndAllowThreads(__tstate); | |
10696 | if (PyErr_Occurred()) SWIG_fail; | |
10697 | } | |
10698 | { | |
10699 | wxImage * resultptr; | |
10700 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10701 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10702 | } |
10703 | return resultobj; | |
10704 | fail: | |
10705 | return NULL; | |
10706 | } | |
10707 | ||
10708 | ||
10709 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10710 | PyObject *resultobj; | |
10711 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10712 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10713 | SwigValueWrapper< wxImage > result; |
10714 | PyObject * obj0 = 0 ; | |
10715 | PyObject * obj1 = 0 ; | |
10716 | char *kwnames[] = { | |
10717 | (char *) "self",(char *) "horizontally", NULL | |
10718 | }; | |
10719 | ||
10720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10723 | if (obj1) { |
15afbcd0 RD |
10724 | arg2 = (bool) SWIG_AsBool(obj1); |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10726 | } |
10727 | { | |
10728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10729 | result = (arg1)->Mirror(arg2); | |
10730 | ||
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | { | |
10735 | wxImage * resultptr; | |
10736 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10737 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10738 | } |
10739 | return resultobj; | |
10740 | fail: | |
10741 | return NULL; | |
10742 | } | |
10743 | ||
10744 | ||
10745 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10746 | PyObject *resultobj; | |
10747 | wxImage *arg1 = (wxImage *) 0 ; | |
10748 | unsigned char arg2 ; | |
10749 | unsigned char arg3 ; | |
10750 | unsigned char arg4 ; | |
10751 | unsigned char arg5 ; | |
10752 | unsigned char arg6 ; | |
10753 | unsigned char arg7 ; | |
10754 | PyObject * obj0 = 0 ; | |
10755 | PyObject * obj1 = 0 ; | |
10756 | PyObject * obj2 = 0 ; | |
10757 | PyObject * obj3 = 0 ; | |
10758 | PyObject * obj4 = 0 ; | |
10759 | PyObject * obj5 = 0 ; | |
10760 | PyObject * obj6 = 0 ; | |
10761 | char *kwnames[] = { | |
10762 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10763 | }; | |
10764 | ||
10765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15afbcd0 RD |
10766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10768 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10769 | if (PyErr_Occurred()) SWIG_fail; | |
10770 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10771 | if (PyErr_Occurred()) SWIG_fail; | |
10772 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10775 | if (PyErr_Occurred()) SWIG_fail; | |
10776 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10777 | if (PyErr_Occurred()) SWIG_fail; | |
10778 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10780 | { |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10783 | ||
10784 | wxPyEndAllowThreads(__tstate); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
10787 | Py_INCREF(Py_None); resultobj = Py_None; | |
10788 | return resultobj; | |
10789 | fail: | |
10790 | return NULL; | |
10791 | } | |
10792 | ||
10793 | ||
10794 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10795 | PyObject *resultobj; | |
10796 | wxImage *arg1 = (wxImage *) 0 ; | |
10797 | unsigned char arg2 ; | |
10798 | unsigned char arg3 ; | |
10799 | unsigned char arg4 ; | |
10800 | SwigValueWrapper< wxImage > result; | |
10801 | PyObject * obj0 = 0 ; | |
10802 | PyObject * obj1 = 0 ; | |
10803 | PyObject * obj2 = 0 ; | |
10804 | PyObject * obj3 = 0 ; | |
10805 | char *kwnames[] = { | |
10806 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10807 | }; | |
10808 | ||
10809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10812 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10813 | if (PyErr_Occurred()) SWIG_fail; | |
10814 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10818 | { |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | { | |
10826 | wxImage * resultptr; | |
10827 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10829 | } |
10830 | return resultobj; | |
10831 | fail: | |
10832 | return NULL; | |
10833 | } | |
10834 | ||
10835 | ||
10836 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10837 | PyObject *resultobj; | |
10838 | wxImage *arg1 = (wxImage *) 0 ; | |
10839 | wxString *arg2 = 0 ; | |
10840 | wxString *arg3 = 0 ; | |
e811c8ce RD |
10841 | bool temp2 = False ; |
10842 | bool temp3 = False ; | |
d14a1e28 RD |
10843 | PyObject * obj0 = 0 ; |
10844 | PyObject * obj1 = 0 ; | |
10845 | PyObject * obj2 = 0 ; | |
10846 | char *kwnames[] = { | |
10847 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10848 | }; | |
10849 | ||
10850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10853 | { |
10854 | arg2 = wxString_in_helper(obj1); | |
10855 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10856 | temp2 = True; |
d14a1e28 RD |
10857 | } |
10858 | { | |
10859 | arg3 = wxString_in_helper(obj2); | |
10860 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10861 | temp3 = True; |
d14a1e28 RD |
10862 | } |
10863 | { | |
10864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10865 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10866 | ||
10867 | wxPyEndAllowThreads(__tstate); | |
10868 | if (PyErr_Occurred()) SWIG_fail; | |
10869 | } | |
10870 | Py_INCREF(Py_None); resultobj = Py_None; | |
10871 | { | |
10872 | if (temp2) | |
10873 | delete arg2; | |
10874 | } | |
10875 | { | |
10876 | if (temp3) | |
10877 | delete arg3; | |
10878 | } | |
10879 | return resultobj; | |
10880 | fail: | |
10881 | { | |
10882 | if (temp2) | |
10883 | delete arg2; | |
10884 | } | |
10885 | { | |
10886 | if (temp3) | |
10887 | delete arg3; | |
10888 | } | |
10889 | return NULL; | |
10890 | } | |
10891 | ||
10892 | ||
10893 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10894 | PyObject *resultobj; | |
10895 | wxImage *arg1 = (wxImage *) 0 ; | |
10896 | wxString *arg2 = 0 ; | |
10897 | int arg3 ; | |
e811c8ce | 10898 | bool temp2 = False ; |
d14a1e28 RD |
10899 | PyObject * obj0 = 0 ; |
10900 | PyObject * obj1 = 0 ; | |
994141e6 | 10901 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10902 | char *kwnames[] = { |
10903 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10904 | }; | |
10905 | ||
994141e6 | 10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10909 | { |
10910 | arg2 = wxString_in_helper(obj1); | |
10911 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10912 | temp2 = True; |
d14a1e28 | 10913 | } |
15afbcd0 RD |
10914 | arg3 = (int) SWIG_AsInt(obj2); |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10916 | { |
10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10918 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | Py_INCREF(Py_None); resultobj = Py_None; | |
10924 | { | |
10925 | if (temp2) | |
10926 | delete arg2; | |
10927 | } | |
10928 | return resultobj; | |
10929 | fail: | |
10930 | { | |
10931 | if (temp2) | |
10932 | delete arg2; | |
10933 | } | |
10934 | return NULL; | |
10935 | } | |
10936 | ||
10937 | ||
10938 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10939 | PyObject *resultobj; | |
10940 | wxImage *arg1 = (wxImage *) 0 ; | |
10941 | wxString *arg2 = 0 ; | |
10942 | wxString result; | |
e811c8ce | 10943 | bool temp2 = False ; |
d14a1e28 RD |
10944 | PyObject * obj0 = 0 ; |
10945 | PyObject * obj1 = 0 ; | |
10946 | char *kwnames[] = { | |
10947 | (char *) "self",(char *) "name", NULL | |
10948 | }; | |
10949 | ||
10950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10953 | { |
10954 | arg2 = wxString_in_helper(obj1); | |
10955 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10956 | temp2 = True; |
d14a1e28 RD |
10957 | } |
10958 | { | |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | { | |
10966 | #if wxUSE_UNICODE | |
10967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10968 | #else | |
10969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10970 | #endif | |
10971 | } | |
10972 | { | |
10973 | if (temp2) | |
10974 | delete arg2; | |
10975 | } | |
10976 | return resultobj; | |
10977 | fail: | |
10978 | { | |
10979 | if (temp2) | |
10980 | delete arg2; | |
10981 | } | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
10986 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10987 | PyObject *resultobj; | |
10988 | wxImage *arg1 = (wxImage *) 0 ; | |
10989 | wxString *arg2 = 0 ; | |
10990 | int result; | |
e811c8ce | 10991 | bool temp2 = False ; |
d14a1e28 RD |
10992 | PyObject * obj0 = 0 ; |
10993 | PyObject * obj1 = 0 ; | |
10994 | char *kwnames[] = { | |
10995 | (char *) "self",(char *) "name", NULL | |
10996 | }; | |
10997 | ||
10998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11001 | { |
11002 | arg2 = wxString_in_helper(obj1); | |
11003 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11004 | temp2 = True; |
d14a1e28 RD |
11005 | } |
11006 | { | |
11007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11008 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11009 | ||
11010 | wxPyEndAllowThreads(__tstate); | |
11011 | if (PyErr_Occurred()) SWIG_fail; | |
11012 | } | |
15afbcd0 | 11013 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11014 | { |
11015 | if (temp2) | |
11016 | delete arg2; | |
11017 | } | |
11018 | return resultobj; | |
11019 | fail: | |
11020 | { | |
11021 | if (temp2) | |
11022 | delete arg2; | |
11023 | } | |
11024 | return NULL; | |
11025 | } | |
11026 | ||
11027 | ||
11028 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11029 | PyObject *resultobj; | |
11030 | wxImage *arg1 = (wxImage *) 0 ; | |
11031 | wxString *arg2 = 0 ; | |
11032 | bool result; | |
e811c8ce | 11033 | bool temp2 = False ; |
d14a1e28 RD |
11034 | PyObject * obj0 = 0 ; |
11035 | PyObject * obj1 = 0 ; | |
11036 | char *kwnames[] = { | |
11037 | (char *) "self",(char *) "name", NULL | |
11038 | }; | |
11039 | ||
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11043 | { |
11044 | arg2 = wxString_in_helper(obj1); | |
11045 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11046 | temp2 = True; |
d14a1e28 RD |
11047 | } |
11048 | { | |
11049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11050 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11051 | ||
11052 | wxPyEndAllowThreads(__tstate); | |
11053 | if (PyErr_Occurred()) SWIG_fail; | |
11054 | } | |
4f89f6a3 RD |
11055 | { |
11056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11057 | } | |
d14a1e28 RD |
11058 | { |
11059 | if (temp2) | |
11060 | delete arg2; | |
11061 | } | |
11062 | return resultobj; | |
11063 | fail: | |
11064 | { | |
11065 | if (temp2) | |
11066 | delete arg2; | |
11067 | } | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxImage *arg1 = (wxImage *) 0 ; | |
11075 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11076 | unsigned long result; | |
11077 | PyObject * obj0 = 0 ; | |
11078 | PyObject * obj1 = 0 ; | |
11079 | char *kwnames[] = { | |
11080 | (char *) "self",(char *) "stopafter", NULL | |
11081 | }; | |
11082 | ||
11083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11086 | if (obj1) { |
15afbcd0 RD |
11087 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11089 | } |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
15afbcd0 | 11097 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11098 | return resultobj; |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11105 | PyObject *resultobj; | |
11106 | wxImage *arg1 = (wxImage *) 0 ; | |
11107 | wxImageHistogram *arg2 = 0 ; | |
11108 | unsigned long result; | |
11109 | PyObject * obj0 = 0 ; | |
11110 | PyObject * obj1 = 0 ; | |
11111 | char *kwnames[] = { | |
11112 | (char *) "self",(char *) "h", NULL | |
11113 | }; | |
11114 | ||
11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11119 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11120 | SWIG_fail; | |
d14a1e28 | 11121 | if (arg2 == NULL) { |
15afbcd0 RD |
11122 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11123 | SWIG_fail; | |
d14a1e28 RD |
11124 | } |
11125 | { | |
11126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11127 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11128 | ||
11129 | wxPyEndAllowThreads(__tstate); | |
11130 | if (PyErr_Occurred()) SWIG_fail; | |
11131 | } | |
15afbcd0 | 11132 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11133 | return resultobj; |
11134 | fail: | |
11135 | return NULL; | |
11136 | } | |
11137 | ||
11138 | ||
11139 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11140 | PyObject *resultobj; | |
11141 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11142 | PyObject * obj0 = 0 ; | |
11143 | char *kwnames[] = { | |
11144 | (char *) "handler", NULL | |
11145 | }; | |
11146 | ||
11147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11150 | { |
11151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11152 | wxImage::AddHandler(arg1); | |
11153 | ||
11154 | wxPyEndAllowThreads(__tstate); | |
11155 | if (PyErr_Occurred()) SWIG_fail; | |
11156 | } | |
11157 | Py_INCREF(Py_None); resultobj = Py_None; | |
11158 | return resultobj; | |
11159 | fail: | |
11160 | return NULL; | |
11161 | } | |
11162 | ||
11163 | ||
11164 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11165 | PyObject *resultobj; | |
11166 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11167 | PyObject * obj0 = 0 ; | |
11168 | char *kwnames[] = { | |
11169 | (char *) "handler", NULL | |
11170 | }; | |
11171 | ||
11172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11175 | { |
11176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11177 | wxImage::InsertHandler(arg1); | |
11178 | ||
11179 | wxPyEndAllowThreads(__tstate); | |
11180 | if (PyErr_Occurred()) SWIG_fail; | |
11181 | } | |
11182 | Py_INCREF(Py_None); resultobj = Py_None; | |
11183 | return resultobj; | |
11184 | fail: | |
11185 | return NULL; | |
11186 | } | |
11187 | ||
11188 | ||
11189 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11190 | PyObject *resultobj; | |
11191 | wxString *arg1 = 0 ; | |
11192 | bool result; | |
e811c8ce | 11193 | bool temp1 = False ; |
d14a1e28 RD |
11194 | PyObject * obj0 = 0 ; |
11195 | char *kwnames[] = { | |
11196 | (char *) "name", NULL | |
11197 | }; | |
11198 | ||
11199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11200 | { | |
11201 | arg1 = wxString_in_helper(obj0); | |
11202 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11203 | temp1 = True; |
d14a1e28 RD |
11204 | } |
11205 | { | |
11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11207 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11208 | ||
11209 | wxPyEndAllowThreads(__tstate); | |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
4f89f6a3 RD |
11212 | { |
11213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11214 | } | |
d14a1e28 RD |
11215 | { |
11216 | if (temp1) | |
11217 | delete arg1; | |
11218 | } | |
11219 | return resultobj; | |
11220 | fail: | |
11221 | { | |
11222 | if (temp1) | |
11223 | delete arg1; | |
11224 | } | |
11225 | return NULL; | |
11226 | } | |
11227 | ||
11228 | ||
11229 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11230 | PyObject *resultobj; | |
11231 | wxString result; | |
11232 | char *kwnames[] = { | |
11233 | NULL | |
11234 | }; | |
11235 | ||
11236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11237 | { | |
11238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11239 | result = wxImage::GetImageExtWildcard(); | |
11240 | ||
11241 | wxPyEndAllowThreads(__tstate); | |
11242 | if (PyErr_Occurred()) SWIG_fail; | |
11243 | } | |
11244 | { | |
11245 | #if wxUSE_UNICODE | |
11246 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11247 | #else | |
11248 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11249 | #endif | |
11250 | } | |
11251 | return resultobj; | |
11252 | fail: | |
11253 | return NULL; | |
11254 | } | |
11255 | ||
11256 | ||
11257 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11258 | PyObject *resultobj; | |
11259 | wxImage *arg1 = (wxImage *) 0 ; | |
11260 | wxBitmap result; | |
11261 | PyObject * obj0 = 0 ; | |
11262 | char *kwnames[] = { | |
11263 | (char *) "self", NULL | |
11264 | }; | |
11265 | ||
11266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11269 | { |
e3b71cb8 | 11270 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11272 | result = wxImage_ConvertToBitmap(arg1); | |
11273 | ||
11274 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11275 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11276 | } |
11277 | { | |
11278 | wxBitmap * resultptr; | |
11279 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11280 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11281 | } |
11282 | return resultobj; | |
11283 | fail: | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxImage *arg1 = (wxImage *) 0 ; | |
11291 | unsigned char arg2 ; | |
11292 | unsigned char arg3 ; | |
11293 | unsigned char arg4 ; | |
11294 | wxBitmap result; | |
11295 | PyObject * obj0 = 0 ; | |
11296 | PyObject * obj1 = 0 ; | |
11297 | PyObject * obj2 = 0 ; | |
11298 | PyObject * obj3 = 0 ; | |
11299 | char *kwnames[] = { | |
11300 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11301 | }; | |
11302 | ||
11303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11306 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11307 | if (PyErr_Occurred()) SWIG_fail; | |
11308 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11312 | { |
e3b71cb8 | 11313 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11315 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11316 | ||
11317 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 11318 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11319 | } |
11320 | { | |
11321 | wxBitmap * resultptr; | |
11322 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11323 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11324 | } |
11325 | return resultobj; | |
11326 | fail: | |
11327 | return NULL; | |
11328 | } | |
11329 | ||
11330 | ||
11331 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11332 | PyObject *obj; | |
11333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11334 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11335 | Py_INCREF(obj); | |
11336 | return Py_BuildValue((char *)""); | |
11337 | } | |
d14a1e28 RD |
11338 | static int _wrap_NullImage_set(PyObject *_val) { |
11339 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11340 | return 1; | |
11341 | } | |
11342 | ||
11343 | ||
11344 | static PyObject *_wrap_NullImage_get() { | |
11345 | PyObject *pyobj; | |
11346 | ||
15afbcd0 | 11347 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11348 | return pyobj; |
11349 | } | |
11350 | ||
11351 | ||
11352 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11353 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11354 | return 1; | |
11355 | } | |
11356 | ||
11357 | ||
11358 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11359 | PyObject *pyobj; | |
11360 | ||
11361 | { | |
11362 | #if wxUSE_UNICODE | |
11363 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11364 | #else | |
11365 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11366 | #endif | |
11367 | } | |
11368 | return pyobj; | |
11369 | } | |
11370 | ||
11371 | ||
11372 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11373 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11374 | return 1; | |
11375 | } | |
11376 | ||
11377 | ||
11378 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11379 | PyObject *pyobj; | |
11380 | ||
11381 | { | |
11382 | #if wxUSE_UNICODE | |
11383 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11384 | #else | |
11385 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11386 | #endif | |
11387 | } | |
11388 | return pyobj; | |
11389 | } | |
11390 | ||
11391 | ||
11392 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11393 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11394 | return 1; | |
11395 | } | |
11396 | ||
11397 | ||
11398 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11399 | PyObject *pyobj; | |
11400 | ||
11401 | { | |
11402 | #if wxUSE_UNICODE | |
11403 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11404 | #else | |
11405 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11406 | #endif | |
11407 | } | |
11408 | return pyobj; | |
11409 | } | |
11410 | ||
11411 | ||
11412 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11413 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11414 | return 1; | |
11415 | } | |
11416 | ||
11417 | ||
11418 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11419 | PyObject *pyobj; | |
11420 | ||
11421 | { | |
11422 | #if wxUSE_UNICODE | |
11423 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11424 | #else | |
11425 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11426 | #endif | |
11427 | } | |
11428 | return pyobj; | |
11429 | } | |
11430 | ||
11431 | ||
11432 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11433 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11434 | return 1; | |
11435 | } | |
11436 | ||
11437 | ||
11438 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11439 | PyObject *pyobj; | |
11440 | ||
11441 | { | |
11442 | #if wxUSE_UNICODE | |
11443 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11444 | #else | |
11445 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11446 | #endif | |
11447 | } | |
11448 | return pyobj; | |
11449 | } | |
11450 | ||
11451 | ||
11452 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11453 | PyObject *resultobj; | |
11454 | wxBMPHandler *result; | |
11455 | char *kwnames[] = { | |
11456 | NULL | |
11457 | }; | |
11458 | ||
11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11460 | { | |
11461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11462 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11463 | ||
11464 | wxPyEndAllowThreads(__tstate); | |
11465 | if (PyErr_Occurred()) SWIG_fail; | |
11466 | } | |
15afbcd0 | 11467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11468 | return resultobj; |
11469 | fail: | |
11470 | return NULL; | |
11471 | } | |
11472 | ||
11473 | ||
11474 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11475 | PyObject *obj; | |
11476 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11477 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11478 | Py_INCREF(obj); | |
11479 | return Py_BuildValue((char *)""); | |
11480 | } | |
11481 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11482 | PyObject *resultobj; | |
11483 | wxICOHandler *result; | |
11484 | char *kwnames[] = { | |
11485 | NULL | |
11486 | }; | |
11487 | ||
11488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11489 | { | |
11490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11491 | result = (wxICOHandler *)new wxICOHandler(); | |
11492 | ||
11493 | wxPyEndAllowThreads(__tstate); | |
11494 | if (PyErr_Occurred()) SWIG_fail; | |
11495 | } | |
15afbcd0 | 11496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11497 | return resultobj; |
11498 | fail: | |
11499 | return NULL; | |
11500 | } | |
11501 | ||
11502 | ||
11503 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11504 | PyObject *obj; | |
11505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11506 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11507 | Py_INCREF(obj); | |
11508 | return Py_BuildValue((char *)""); | |
11509 | } | |
11510 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11511 | PyObject *resultobj; | |
11512 | wxCURHandler *result; | |
11513 | char *kwnames[] = { | |
11514 | NULL | |
11515 | }; | |
11516 | ||
11517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11518 | { | |
11519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11520 | result = (wxCURHandler *)new wxCURHandler(); | |
11521 | ||
11522 | wxPyEndAllowThreads(__tstate); | |
11523 | if (PyErr_Occurred()) SWIG_fail; | |
11524 | } | |
15afbcd0 | 11525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11526 | return resultobj; |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
11532 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11533 | PyObject *obj; | |
11534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11535 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11536 | Py_INCREF(obj); | |
11537 | return Py_BuildValue((char *)""); | |
11538 | } | |
11539 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11540 | PyObject *resultobj; | |
11541 | wxANIHandler *result; | |
11542 | char *kwnames[] = { | |
11543 | NULL | |
11544 | }; | |
11545 | ||
11546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11547 | { | |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11549 | result = (wxANIHandler *)new wxANIHandler(); | |
11550 | ||
11551 | wxPyEndAllowThreads(__tstate); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | } | |
15afbcd0 | 11554 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11555 | return resultobj; |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
11561 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11562 | PyObject *obj; | |
11563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11564 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11565 | Py_INCREF(obj); | |
11566 | return Py_BuildValue((char *)""); | |
11567 | } | |
11568 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11569 | PyObject *resultobj; | |
11570 | wxPNGHandler *result; | |
11571 | char *kwnames[] = { | |
11572 | NULL | |
11573 | }; | |
11574 | ||
11575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11576 | { | |
11577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11578 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11579 | ||
11580 | wxPyEndAllowThreads(__tstate); | |
11581 | if (PyErr_Occurred()) SWIG_fail; | |
11582 | } | |
15afbcd0 | 11583 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11584 | return resultobj; |
11585 | fail: | |
11586 | return NULL; | |
11587 | } | |
11588 | ||
11589 | ||
11590 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11591 | PyObject *obj; | |
11592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11593 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11594 | Py_INCREF(obj); | |
11595 | return Py_BuildValue((char *)""); | |
11596 | } | |
11597 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11598 | PyObject *resultobj; | |
11599 | wxGIFHandler *result; | |
11600 | char *kwnames[] = { | |
11601 | NULL | |
11602 | }; | |
11603 | ||
11604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11605 | { | |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11607 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11608 | ||
11609 | wxPyEndAllowThreads(__tstate); | |
11610 | if (PyErr_Occurred()) SWIG_fail; | |
11611 | } | |
15afbcd0 | 11612 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11613 | return resultobj; |
11614 | fail: | |
11615 | return NULL; | |
11616 | } | |
11617 | ||
11618 | ||
11619 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11620 | PyObject *obj; | |
11621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11622 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11623 | Py_INCREF(obj); | |
11624 | return Py_BuildValue((char *)""); | |
11625 | } | |
11626 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11627 | PyObject *resultobj; | |
11628 | wxPCXHandler *result; | |
11629 | char *kwnames[] = { | |
11630 | NULL | |
11631 | }; | |
11632 | ||
11633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11634 | { | |
11635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11636 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11637 | ||
11638 | wxPyEndAllowThreads(__tstate); | |
11639 | if (PyErr_Occurred()) SWIG_fail; | |
11640 | } | |
15afbcd0 | 11641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11642 | return resultobj; |
11643 | fail: | |
11644 | return NULL; | |
11645 | } | |
11646 | ||
11647 | ||
11648 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11649 | PyObject *obj; | |
11650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11651 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11652 | Py_INCREF(obj); | |
11653 | return Py_BuildValue((char *)""); | |
11654 | } | |
11655 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11656 | PyObject *resultobj; | |
11657 | wxJPEGHandler *result; | |
11658 | char *kwnames[] = { | |
11659 | NULL | |
11660 | }; | |
11661 | ||
11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11663 | { | |
11664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11665 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11666 | ||
11667 | wxPyEndAllowThreads(__tstate); | |
11668 | if (PyErr_Occurred()) SWIG_fail; | |
11669 | } | |
15afbcd0 | 11670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11671 | return resultobj; |
11672 | fail: | |
11673 | return NULL; | |
11674 | } | |
11675 | ||
11676 | ||
11677 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11678 | PyObject *obj; | |
11679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11680 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11681 | Py_INCREF(obj); | |
11682 | return Py_BuildValue((char *)""); | |
11683 | } | |
11684 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11685 | PyObject *resultobj; | |
11686 | wxPNMHandler *result; | |
11687 | char *kwnames[] = { | |
11688 | NULL | |
11689 | }; | |
11690 | ||
11691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11692 | { | |
11693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11694 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11695 | ||
11696 | wxPyEndAllowThreads(__tstate); | |
11697 | if (PyErr_Occurred()) SWIG_fail; | |
11698 | } | |
15afbcd0 | 11699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11700 | return resultobj; |
11701 | fail: | |
11702 | return NULL; | |
11703 | } | |
11704 | ||
11705 | ||
11706 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11707 | PyObject *obj; | |
11708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11709 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11710 | Py_INCREF(obj); | |
11711 | return Py_BuildValue((char *)""); | |
11712 | } | |
11713 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11714 | PyObject *resultobj; | |
11715 | wxXPMHandler *result; | |
11716 | char *kwnames[] = { | |
11717 | NULL | |
11718 | }; | |
11719 | ||
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11721 | { | |
11722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11723 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11724 | ||
11725 | wxPyEndAllowThreads(__tstate); | |
11726 | if (PyErr_Occurred()) SWIG_fail; | |
11727 | } | |
15afbcd0 | 11728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11729 | return resultobj; |
11730 | fail: | |
11731 | return NULL; | |
11732 | } | |
11733 | ||
11734 | ||
11735 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11736 | PyObject *obj; | |
11737 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11738 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11739 | Py_INCREF(obj); | |
11740 | return Py_BuildValue((char *)""); | |
11741 | } | |
11742 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11743 | PyObject *resultobj; | |
11744 | wxTIFFHandler *result; | |
11745 | char *kwnames[] = { | |
11746 | NULL | |
11747 | }; | |
11748 | ||
11749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11750 | { | |
11751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11752 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11753 | ||
11754 | wxPyEndAllowThreads(__tstate); | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | } | |
15afbcd0 | 11757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11758 | return resultobj; |
11759 | fail: | |
11760 | return NULL; | |
11761 | } | |
11762 | ||
11763 | ||
11764 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11765 | PyObject *obj; | |
11766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11767 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11768 | Py_INCREF(obj); | |
11769 | return Py_BuildValue((char *)""); | |
11770 | } | |
11771 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11772 | PyObject *resultobj; | |
11773 | wxEvtHandler *result; | |
11774 | char *kwnames[] = { | |
11775 | NULL | |
11776 | }; | |
11777 | ||
11778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11779 | { | |
11780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11781 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11782 | ||
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | { | |
11787 | resultobj = wxPyMake_wxObject(result); | |
11788 | } | |
11789 | return resultobj; | |
11790 | fail: | |
11791 | return NULL; | |
11792 | } | |
11793 | ||
11794 | ||
11795 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11796 | PyObject *resultobj; | |
11797 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11798 | wxEvtHandler *result; | |
11799 | PyObject * obj0 = 0 ; | |
11800 | char *kwnames[] = { | |
11801 | (char *) "self", NULL | |
11802 | }; | |
11803 | ||
11804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11807 | { |
11808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11809 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11810 | ||
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | { | |
11815 | resultobj = wxPyMake_wxObject(result); | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj; | |
11825 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11826 | wxEvtHandler *result; | |
11827 | PyObject * obj0 = 0 ; | |
11828 | char *kwnames[] = { | |
11829 | (char *) "self", NULL | |
11830 | }; | |
11831 | ||
11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11835 | { |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | resultobj = wxPyMake_wxObject(result); | |
11844 | } | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
11851 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11854 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | PyObject * obj1 = 0 ; | |
11857 | char *kwnames[] = { | |
11858 | (char *) "self",(char *) "handler", NULL | |
11859 | }; | |
11860 | ||
11861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11866 | { |
11867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11868 | (arg1)->SetNextHandler(arg2); | |
11869 | ||
11870 | wxPyEndAllowThreads(__tstate); | |
11871 | if (PyErr_Occurred()) SWIG_fail; | |
11872 | } | |
11873 | Py_INCREF(Py_None); resultobj = Py_None; | |
11874 | return resultobj; | |
11875 | fail: | |
11876 | return NULL; | |
11877 | } | |
11878 | ||
11879 | ||
11880 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11881 | PyObject *resultobj; | |
11882 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11883 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11884 | PyObject * obj0 = 0 ; | |
11885 | PyObject * obj1 = 0 ; | |
11886 | char *kwnames[] = { | |
11887 | (char *) "self",(char *) "handler", NULL | |
11888 | }; | |
11889 | ||
11890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11893 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11895 | { |
11896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11897 | (arg1)->SetPreviousHandler(arg2); | |
11898 | ||
11899 | wxPyEndAllowThreads(__tstate); | |
11900 | if (PyErr_Occurred()) SWIG_fail; | |
11901 | } | |
11902 | Py_INCREF(Py_None); resultobj = Py_None; | |
11903 | return resultobj; | |
11904 | fail: | |
11905 | return NULL; | |
11906 | } | |
11907 | ||
11908 | ||
11909 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11910 | PyObject *resultobj; | |
11911 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11912 | bool result; | |
11913 | PyObject * obj0 = 0 ; | |
11914 | char *kwnames[] = { | |
11915 | (char *) "self", NULL | |
11916 | }; | |
11917 | ||
11918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11921 | { |
11922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11923 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11924 | ||
11925 | wxPyEndAllowThreads(__tstate); | |
11926 | if (PyErr_Occurred()) SWIG_fail; | |
11927 | } | |
4f89f6a3 RD |
11928 | { |
11929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11930 | } | |
d14a1e28 RD |
11931 | return resultobj; |
11932 | fail: | |
11933 | return NULL; | |
11934 | } | |
11935 | ||
11936 | ||
11937 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11938 | PyObject *resultobj; | |
11939 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11940 | bool arg2 ; | |
11941 | PyObject * obj0 = 0 ; | |
11942 | PyObject * obj1 = 0 ; | |
11943 | char *kwnames[] = { | |
11944 | (char *) "self",(char *) "enabled", NULL | |
11945 | }; | |
11946 | ||
11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11950 | arg2 = (bool) SWIG_AsBool(obj1); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11952 | { |
11953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11954 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11955 | ||
11956 | wxPyEndAllowThreads(__tstate); | |
11957 | if (PyErr_Occurred()) SWIG_fail; | |
11958 | } | |
11959 | Py_INCREF(Py_None); resultobj = Py_None; | |
11960 | return resultobj; | |
11961 | fail: | |
11962 | return NULL; | |
11963 | } | |
11964 | ||
11965 | ||
11966 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11967 | PyObject *resultobj; | |
11968 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11969 | wxEvent *arg2 = 0 ; | |
11970 | bool result; | |
11971 | PyObject * obj0 = 0 ; | |
11972 | PyObject * obj1 = 0 ; | |
11973 | char *kwnames[] = { | |
11974 | (char *) "self",(char *) "event", NULL | |
11975 | }; | |
11976 | ||
11977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11981 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11982 | SWIG_fail; | |
d14a1e28 | 11983 | if (arg2 == NULL) { |
15afbcd0 RD |
11984 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11985 | SWIG_fail; | |
d14a1e28 RD |
11986 | } |
11987 | { | |
11988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11989 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11990 | ||
11991 | wxPyEndAllowThreads(__tstate); | |
11992 | if (PyErr_Occurred()) SWIG_fail; | |
11993 | } | |
4f89f6a3 RD |
11994 | { |
11995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11996 | } | |
d14a1e28 RD |
11997 | return resultobj; |
11998 | fail: | |
11999 | return NULL; | |
12000 | } | |
12001 | ||
12002 | ||
12003 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12004 | PyObject *resultobj; | |
12005 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12006 | wxEvent *arg2 = 0 ; | |
12007 | PyObject * obj0 = 0 ; | |
12008 | PyObject * obj1 = 0 ; | |
12009 | char *kwnames[] = { | |
12010 | (char *) "self",(char *) "event", NULL | |
12011 | }; | |
12012 | ||
12013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12016 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12017 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12018 | SWIG_fail; | |
d14a1e28 | 12019 | if (arg2 == NULL) { |
15afbcd0 RD |
12020 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12021 | SWIG_fail; | |
d14a1e28 RD |
12022 | } |
12023 | { | |
12024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12025 | (arg1)->AddPendingEvent(*arg2); | |
12026 | ||
12027 | wxPyEndAllowThreads(__tstate); | |
12028 | if (PyErr_Occurred()) SWIG_fail; | |
12029 | } | |
12030 | Py_INCREF(Py_None); resultobj = Py_None; | |
12031 | return resultobj; | |
12032 | fail: | |
12033 | return NULL; | |
12034 | } | |
12035 | ||
12036 | ||
12037 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12038 | PyObject *resultobj; | |
12039 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12040 | PyObject * obj0 = 0 ; | |
12041 | char *kwnames[] = { | |
12042 | (char *) "self", NULL | |
12043 | }; | |
12044 | ||
12045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12048 | { |
12049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12050 | (arg1)->ProcessPendingEvents(); | |
12051 | ||
12052 | wxPyEndAllowThreads(__tstate); | |
12053 | if (PyErr_Occurred()) SWIG_fail; | |
12054 | } | |
12055 | Py_INCREF(Py_None); resultobj = Py_None; | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | return NULL; | |
12059 | } | |
12060 | ||
12061 | ||
12062 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12063 | PyObject *resultobj; | |
12064 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12065 | int arg2 ; | |
12066 | int arg3 ; | |
12067 | int arg4 ; | |
12068 | PyObject *arg5 = (PyObject *) 0 ; | |
12069 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12070 | PyObject * obj1 = 0 ; |
12071 | PyObject * obj2 = 0 ; | |
12072 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12073 | PyObject * obj4 = 0 ; |
12074 | char *kwnames[] = { | |
12075 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12076 | }; | |
12077 | ||
994141e6 | 12078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12081 | arg2 = (int) SWIG_AsInt(obj1); | |
12082 | if (PyErr_Occurred()) SWIG_fail; | |
12083 | arg3 = (int) SWIG_AsInt(obj2); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | arg4 = (int) SWIG_AsInt(obj3); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12087 | arg5 = obj4; |
12088 | { | |
12089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12090 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12091 | ||
12092 | wxPyEndAllowThreads(__tstate); | |
12093 | if (PyErr_Occurred()) SWIG_fail; | |
12094 | } | |
12095 | Py_INCREF(Py_None); resultobj = Py_None; | |
12096 | return resultobj; | |
12097 | fail: | |
12098 | return NULL; | |
12099 | } | |
12100 | ||
12101 | ||
12102 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12103 | PyObject *resultobj; | |
12104 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12105 | int arg2 ; | |
12106 | int arg3 = (int) -1 ; | |
12107 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12108 | bool result; | |
12109 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12110 | PyObject * obj1 = 0 ; |
12111 | PyObject * obj2 = 0 ; | |
12112 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12113 | char *kwnames[] = { |
12114 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12115 | }; | |
12116 | ||
994141e6 | 12117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12120 | arg2 = (int) SWIG_AsInt(obj1); | |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12122 | if (obj2) { |
15afbcd0 RD |
12123 | arg3 = (int) SWIG_AsInt(obj2); |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12125 | } |
12126 | if (obj3) { | |
15afbcd0 RD |
12127 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12129 | } |
d14a1e28 RD |
12130 | { |
12131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12132 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12133 | ||
12134 | wxPyEndAllowThreads(__tstate); | |
12135 | if (PyErr_Occurred()) SWIG_fail; | |
12136 | } | |
4f89f6a3 RD |
12137 | { |
12138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12139 | } | |
d14a1e28 RD |
12140 | return resultobj; |
12141 | fail: | |
12142 | return NULL; | |
12143 | } | |
12144 | ||
12145 | ||
12146 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12147 | PyObject *resultobj; | |
12148 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12149 | PyObject *arg2 = (PyObject *) 0 ; | |
12150 | PyObject * obj0 = 0 ; | |
12151 | PyObject * obj1 = 0 ; | |
12152 | char *kwnames[] = { | |
12153 | (char *) "self",(char *) "_self", NULL | |
12154 | }; | |
12155 | ||
12156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12159 | arg2 = obj1; |
12160 | { | |
12161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12162 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12163 | ||
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | Py_INCREF(Py_None); resultobj = Py_None; | |
12168 | return resultobj; | |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12175 | PyObject *obj; | |
12176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12177 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12178 | Py_INCREF(obj); | |
12179 | return Py_BuildValue((char *)""); | |
12180 | } | |
12181 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12182 | PyObject *resultobj; | |
12183 | wxEventType result; | |
12184 | char *kwnames[] = { | |
12185 | NULL | |
12186 | }; | |
12187 | ||
12188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12189 | { | |
12190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12191 | result = (wxEventType)wxNewEventType(); | |
12192 | ||
12193 | wxPyEndAllowThreads(__tstate); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
15afbcd0 | 12196 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12197 | return resultobj; |
12198 | fail: | |
12199 | return NULL; | |
12200 | } | |
12201 | ||
12202 | ||
12203 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12204 | PyObject *resultobj; | |
12205 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12206 | PyObject * obj0 = 0 ; | |
12207 | char *kwnames[] = { | |
12208 | (char *) "self", NULL | |
12209 | }; | |
12210 | ||
12211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12214 | { |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | delete arg1; | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | Py_INCREF(Py_None); resultobj = Py_None; | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
12225 | } | |
12226 | ||
12227 | ||
12228 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12229 | PyObject *resultobj; | |
12230 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12231 | wxEventType arg2 ; | |
12232 | PyObject * obj0 = 0 ; | |
994141e6 | 12233 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12234 | char *kwnames[] = { |
12235 | (char *) "self",(char *) "typ", NULL | |
12236 | }; | |
12237 | ||
994141e6 | 12238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12241 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12243 | { |
12244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12245 | (arg1)->SetEventType(arg2); | |
12246 | ||
12247 | wxPyEndAllowThreads(__tstate); | |
12248 | if (PyErr_Occurred()) SWIG_fail; | |
12249 | } | |
12250 | Py_INCREF(Py_None); resultobj = Py_None; | |
12251 | return resultobj; | |
12252 | fail: | |
12253 | return NULL; | |
12254 | } | |
12255 | ||
12256 | ||
12257 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12258 | PyObject *resultobj; | |
12259 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12260 | wxEventType result; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | char *kwnames[] = { | |
12263 | (char *) "self", NULL | |
12264 | }; | |
12265 | ||
12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12269 | { |
12270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12271 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12272 | ||
12273 | wxPyEndAllowThreads(__tstate); | |
12274 | if (PyErr_Occurred()) SWIG_fail; | |
12275 | } | |
15afbcd0 | 12276 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12277 | return resultobj; |
12278 | fail: | |
12279 | return NULL; | |
12280 | } | |
12281 | ||
12282 | ||
12283 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12284 | PyObject *resultobj; | |
12285 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12286 | wxObject *result; | |
12287 | PyObject * obj0 = 0 ; | |
12288 | char *kwnames[] = { | |
12289 | (char *) "self", NULL | |
12290 | }; | |
12291 | ||
12292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12295 | { |
12296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12297 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12298 | ||
12299 | wxPyEndAllowThreads(__tstate); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | { | |
12303 | resultobj = wxPyMake_wxObject(result); | |
12304 | } | |
12305 | return resultobj; | |
12306 | fail: | |
12307 | return NULL; | |
12308 | } | |
12309 | ||
12310 | ||
12311 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12312 | PyObject *resultobj; | |
12313 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12314 | wxObject *arg2 = (wxObject *) 0 ; | |
12315 | PyObject * obj0 = 0 ; | |
12316 | PyObject * obj1 = 0 ; | |
12317 | char *kwnames[] = { | |
12318 | (char *) "self",(char *) "obj", NULL | |
12319 | }; | |
12320 | ||
12321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12326 | { |
12327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12328 | (arg1)->SetEventObject(arg2); | |
12329 | ||
12330 | wxPyEndAllowThreads(__tstate); | |
12331 | if (PyErr_Occurred()) SWIG_fail; | |
12332 | } | |
12333 | Py_INCREF(Py_None); resultobj = Py_None; | |
12334 | return resultobj; | |
12335 | fail: | |
12336 | return NULL; | |
12337 | } | |
12338 | ||
12339 | ||
12340 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12341 | PyObject *resultobj; | |
12342 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12343 | long result; | |
12344 | PyObject * obj0 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "self", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12352 | { |
12353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12354 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12355 | ||
12356 | wxPyEndAllowThreads(__tstate); | |
12357 | if (PyErr_Occurred()) SWIG_fail; | |
12358 | } | |
15afbcd0 | 12359 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12360 | return resultobj; |
12361 | fail: | |
12362 | return NULL; | |
12363 | } | |
12364 | ||
12365 | ||
12366 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12367 | PyObject *resultobj; | |
12368 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12369 | long arg2 = (long) 0 ; | |
12370 | PyObject * obj0 = 0 ; | |
994141e6 | 12371 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12372 | char *kwnames[] = { |
12373 | (char *) "self",(char *) "ts", NULL | |
12374 | }; | |
12375 | ||
994141e6 | 12376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 12379 | if (obj1) { |
15afbcd0 RD |
12380 | arg2 = (long) SWIG_AsLong(obj1); |
12381 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12382 | } |
d14a1e28 RD |
12383 | { |
12384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12385 | (arg1)->SetTimestamp(arg2); | |
12386 | ||
12387 | wxPyEndAllowThreads(__tstate); | |
12388 | if (PyErr_Occurred()) SWIG_fail; | |
12389 | } | |
12390 | Py_INCREF(Py_None); resultobj = Py_None; | |
12391 | return resultobj; | |
12392 | fail: | |
12393 | return NULL; | |
12394 | } | |
12395 | ||
12396 | ||
12397 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12398 | PyObject *resultobj; | |
12399 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12400 | int result; | |
12401 | PyObject * obj0 = 0 ; | |
12402 | char *kwnames[] = { | |
12403 | (char *) "self", NULL | |
12404 | }; | |
12405 | ||
12406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12409 | { |
12410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12411 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12412 | ||
12413 | wxPyEndAllowThreads(__tstate); | |
12414 | if (PyErr_Occurred()) SWIG_fail; | |
12415 | } | |
15afbcd0 | 12416 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12417 | return resultobj; |
12418 | fail: | |
12419 | return NULL; | |
12420 | } | |
12421 | ||
12422 | ||
12423 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12424 | PyObject *resultobj; | |
12425 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12426 | int arg2 ; | |
12427 | PyObject * obj0 = 0 ; | |
994141e6 | 12428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12429 | char *kwnames[] = { |
12430 | (char *) "self",(char *) "Id", NULL | |
12431 | }; | |
12432 | ||
994141e6 | 12433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12436 | arg2 = (int) SWIG_AsInt(obj1); | |
12437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12438 | { |
12439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12440 | (arg1)->SetId(arg2); | |
12441 | ||
12442 | wxPyEndAllowThreads(__tstate); | |
12443 | if (PyErr_Occurred()) SWIG_fail; | |
12444 | } | |
12445 | Py_INCREF(Py_None); resultobj = Py_None; | |
12446 | return resultobj; | |
12447 | fail: | |
12448 | return NULL; | |
12449 | } | |
12450 | ||
12451 | ||
12452 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12453 | PyObject *resultobj; | |
12454 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12455 | bool result; | |
12456 | PyObject * obj0 = 0 ; | |
12457 | char *kwnames[] = { | |
12458 | (char *) "self", NULL | |
12459 | }; | |
12460 | ||
12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12464 | { |
12465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12466 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12467 | ||
12468 | wxPyEndAllowThreads(__tstate); | |
12469 | if (PyErr_Occurred()) SWIG_fail; | |
12470 | } | |
4f89f6a3 RD |
12471 | { |
12472 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12473 | } | |
d14a1e28 RD |
12474 | return resultobj; |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12481 | PyObject *resultobj; | |
12482 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 12483 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12484 | PyObject * obj0 = 0 ; |
12485 | PyObject * obj1 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self",(char *) "skip", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12493 | if (obj1) { |
15afbcd0 RD |
12494 | arg2 = (bool) SWIG_AsBool(obj1); |
12495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12496 | } |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | (arg1)->Skip(arg2); | |
12500 | ||
12501 | wxPyEndAllowThreads(__tstate); | |
12502 | if (PyErr_Occurred()) SWIG_fail; | |
12503 | } | |
12504 | Py_INCREF(Py_None); resultobj = Py_None; | |
12505 | return resultobj; | |
12506 | fail: | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
12511 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12512 | PyObject *resultobj; | |
12513 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12514 | bool result; | |
12515 | PyObject * obj0 = 0 ; | |
12516 | char *kwnames[] = { | |
12517 | (char *) "self", NULL | |
12518 | }; | |
12519 | ||
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12523 | { |
12524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12525 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12526 | ||
12527 | wxPyEndAllowThreads(__tstate); | |
12528 | if (PyErr_Occurred()) SWIG_fail; | |
12529 | } | |
4f89f6a3 RD |
12530 | { |
12531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12532 | } | |
d14a1e28 RD |
12533 | return resultobj; |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj; | |
12541 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12542 | bool result; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12551 | { |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
4f89f6a3 RD |
12558 | { |
12559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12560 | } | |
d14a1e28 RD |
12561 | return resultobj; |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
12567 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12568 | PyObject *resultobj; | |
12569 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12570 | int result; | |
12571 | PyObject * obj0 = 0 ; | |
12572 | char *kwnames[] = { | |
12573 | (char *) "self", NULL | |
12574 | }; | |
12575 | ||
12576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12579 | { |
12580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12581 | result = (int)(arg1)->StopPropagation(); | |
12582 | ||
12583 | wxPyEndAllowThreads(__tstate); | |
12584 | if (PyErr_Occurred()) SWIG_fail; | |
12585 | } | |
15afbcd0 | 12586 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12587 | return resultobj; |
12588 | fail: | |
12589 | return NULL; | |
12590 | } | |
12591 | ||
12592 | ||
12593 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12594 | PyObject *resultobj; | |
12595 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12596 | int arg2 ; | |
12597 | PyObject * obj0 = 0 ; | |
994141e6 | 12598 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12599 | char *kwnames[] = { |
12600 | (char *) "self",(char *) "propagationLevel", NULL | |
12601 | }; | |
12602 | ||
994141e6 | 12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12606 | arg2 = (int) SWIG_AsInt(obj1); | |
12607 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12608 | { |
12609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12610 | (arg1)->ResumePropagation(arg2); | |
12611 | ||
12612 | wxPyEndAllowThreads(__tstate); | |
12613 | if (PyErr_Occurred()) SWIG_fail; | |
12614 | } | |
12615 | Py_INCREF(Py_None); resultobj = Py_None; | |
12616 | return resultobj; | |
12617 | fail: | |
12618 | return NULL; | |
12619 | } | |
12620 | ||
12621 | ||
12622 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12623 | PyObject *resultobj; | |
12624 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12625 | wxEvent *result; | |
12626 | PyObject * obj0 = 0 ; | |
12627 | char *kwnames[] = { | |
12628 | (char *) "self", NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12634 | { |
12635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12636 | result = (wxEvent *)(arg1)->Clone(); | |
12637 | ||
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
15afbcd0 | 12641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12642 | return resultobj; |
12643 | fail: | |
12644 | return NULL; | |
12645 | } | |
12646 | ||
12647 | ||
12648 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12649 | PyObject *obj; | |
12650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12651 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12652 | Py_INCREF(obj); | |
12653 | return Py_BuildValue((char *)""); | |
12654 | } | |
12655 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12656 | PyObject *resultobj; | |
12657 | wxEvent *arg1 = 0 ; | |
12658 | wxPropagationDisabler *result; | |
12659 | PyObject * obj0 = 0 ; | |
12660 | char *kwnames[] = { | |
12661 | (char *) "event", NULL | |
12662 | }; | |
12663 | ||
12664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12667 | SWIG_fail; | |
d14a1e28 | 12668 | if (arg1 == NULL) { |
15afbcd0 RD |
12669 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12670 | SWIG_fail; | |
d14a1e28 RD |
12671 | } |
12672 | { | |
12673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12674 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12675 | ||
12676 | wxPyEndAllowThreads(__tstate); | |
12677 | if (PyErr_Occurred()) SWIG_fail; | |
12678 | } | |
15afbcd0 | 12679 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12680 | return resultobj; |
12681 | fail: | |
12682 | return NULL; | |
12683 | } | |
12684 | ||
12685 | ||
12686 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12687 | PyObject *resultobj; | |
12688 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12689 | PyObject * obj0 = 0 ; | |
12690 | char *kwnames[] = { | |
12691 | (char *) "self", NULL | |
12692 | }; | |
12693 | ||
12694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12697 | { |
12698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12699 | delete arg1; | |
12700 | ||
12701 | wxPyEndAllowThreads(__tstate); | |
12702 | if (PyErr_Occurred()) SWIG_fail; | |
12703 | } | |
12704 | Py_INCREF(Py_None); resultobj = Py_None; | |
12705 | return resultobj; | |
12706 | fail: | |
12707 | return NULL; | |
12708 | } | |
12709 | ||
12710 | ||
12711 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12712 | PyObject *obj; | |
12713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12714 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12715 | Py_INCREF(obj); | |
12716 | return Py_BuildValue((char *)""); | |
12717 | } | |
12718 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12719 | PyObject *resultobj; | |
12720 | wxEvent *arg1 = 0 ; | |
12721 | wxPropagateOnce *result; | |
12722 | PyObject * obj0 = 0 ; | |
12723 | char *kwnames[] = { | |
12724 | (char *) "event", NULL | |
12725 | }; | |
12726 | ||
12727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12729 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12730 | SWIG_fail; | |
d14a1e28 | 12731 | if (arg1 == NULL) { |
15afbcd0 RD |
12732 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12733 | SWIG_fail; | |
d14a1e28 RD |
12734 | } |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12738 | ||
12739 | wxPyEndAllowThreads(__tstate); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
15afbcd0 | 12742 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12743 | return resultobj; |
12744 | fail: | |
12745 | return NULL; | |
12746 | } | |
12747 | ||
12748 | ||
12749 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12750 | PyObject *resultobj; | |
12751 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12752 | PyObject * obj0 = 0 ; | |
12753 | char *kwnames[] = { | |
12754 | (char *) "self", NULL | |
12755 | }; | |
12756 | ||
12757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12760 | { |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | delete arg1; | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
12767 | Py_INCREF(Py_None); resultobj = Py_None; | |
12768 | return resultobj; | |
12769 | fail: | |
12770 | return NULL; | |
12771 | } | |
12772 | ||
12773 | ||
12774 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12775 | PyObject *obj; | |
12776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12777 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12778 | Py_INCREF(obj); | |
12779 | return Py_BuildValue((char *)""); | |
12780 | } | |
12781 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj; | |
12783 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12784 | int arg2 = (int) 0 ; | |
12785 | wxCommandEvent *result; | |
994141e6 RD |
12786 | PyObject * obj0 = 0 ; |
12787 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12788 | char *kwnames[] = { |
12789 | (char *) "commandType",(char *) "winid", NULL | |
12790 | }; | |
12791 | ||
994141e6 RD |
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12793 | if (obj0) { | |
15afbcd0 RD |
12794 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12795 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12796 | } |
12797 | if (obj1) { | |
15afbcd0 RD |
12798 | arg2 = (int) SWIG_AsInt(obj1); |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12800 | } |
d14a1e28 RD |
12801 | { |
12802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12803 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12804 | ||
12805 | wxPyEndAllowThreads(__tstate); | |
12806 | if (PyErr_Occurred()) SWIG_fail; | |
12807 | } | |
15afbcd0 | 12808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12809 | return resultobj; |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
12815 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12816 | PyObject *resultobj; | |
12817 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12818 | int result; | |
12819 | PyObject * obj0 = 0 ; | |
12820 | char *kwnames[] = { | |
12821 | (char *) "self", NULL | |
12822 | }; | |
12823 | ||
12824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12827 | { |
12828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12829 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12830 | ||
12831 | wxPyEndAllowThreads(__tstate); | |
12832 | if (PyErr_Occurred()) SWIG_fail; | |
12833 | } | |
15afbcd0 | 12834 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12835 | return resultobj; |
12836 | fail: | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
12841 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject *resultobj; | |
12843 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12844 | wxString *arg2 = 0 ; | |
e811c8ce | 12845 | bool temp2 = False ; |
d14a1e28 RD |
12846 | PyObject * obj0 = 0 ; |
12847 | PyObject * obj1 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self",(char *) "s", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12855 | { |
12856 | arg2 = wxString_in_helper(obj1); | |
12857 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12858 | temp2 = True; |
d14a1e28 RD |
12859 | } |
12860 | { | |
12861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12862 | (arg1)->SetString((wxString const &)*arg2); | |
12863 | ||
12864 | wxPyEndAllowThreads(__tstate); | |
12865 | if (PyErr_Occurred()) SWIG_fail; | |
12866 | } | |
12867 | Py_INCREF(Py_None); resultobj = Py_None; | |
12868 | { | |
12869 | if (temp2) | |
12870 | delete arg2; | |
12871 | } | |
12872 | return resultobj; | |
12873 | fail: | |
12874 | { | |
12875 | if (temp2) | |
12876 | delete arg2; | |
12877 | } | |
12878 | return NULL; | |
12879 | } | |
12880 | ||
12881 | ||
12882 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12883 | PyObject *resultobj; | |
12884 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12885 | wxString result; | |
12886 | PyObject * obj0 = 0 ; | |
12887 | char *kwnames[] = { | |
12888 | (char *) "self", NULL | |
12889 | }; | |
12890 | ||
12891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12894 | { |
12895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12896 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12897 | ||
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | { | |
12902 | #if wxUSE_UNICODE | |
12903 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12904 | #else | |
12905 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12906 | #endif | |
12907 | } | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12915 | PyObject *resultobj; | |
12916 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12917 | bool result; | |
12918 | PyObject * obj0 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "self", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12926 | { |
12927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12928 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12929 | ||
12930 | wxPyEndAllowThreads(__tstate); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
4f89f6a3 RD |
12933 | { |
12934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12935 | } | |
d14a1e28 RD |
12936 | return resultobj; |
12937 | fail: | |
12938 | return NULL; | |
12939 | } | |
12940 | ||
12941 | ||
12942 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12943 | PyObject *resultobj; | |
12944 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12945 | bool result; | |
12946 | PyObject * obj0 = 0 ; | |
12947 | char *kwnames[] = { | |
12948 | (char *) "self", NULL | |
12949 | }; | |
12950 | ||
12951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12954 | { |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
4f89f6a3 RD |
12961 | { |
12962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12963 | } | |
d14a1e28 RD |
12964 | return resultobj; |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
12970 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12971 | PyObject *resultobj; | |
12972 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12973 | long arg2 ; | |
12974 | PyObject * obj0 = 0 ; | |
994141e6 | 12975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12976 | char *kwnames[] = { |
12977 | (char *) "self",(char *) "extraLong", NULL | |
12978 | }; | |
12979 | ||
994141e6 | 12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12983 | arg2 = (long) SWIG_AsLong(obj1); | |
12984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12985 | { |
12986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12987 | (arg1)->SetExtraLong(arg2); | |
12988 | ||
12989 | wxPyEndAllowThreads(__tstate); | |
12990 | if (PyErr_Occurred()) SWIG_fail; | |
12991 | } | |
12992 | Py_INCREF(Py_None); resultobj = Py_None; | |
12993 | return resultobj; | |
12994 | fail: | |
12995 | return NULL; | |
12996 | } | |
12997 | ||
12998 | ||
12999 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13000 | PyObject *resultobj; | |
13001 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13002 | long result; | |
13003 | PyObject * obj0 = 0 ; | |
13004 | char *kwnames[] = { | |
13005 | (char *) "self", NULL | |
13006 | }; | |
13007 | ||
13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13011 | { |
13012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13013 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13014 | ||
13015 | wxPyEndAllowThreads(__tstate); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
15afbcd0 | 13018 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13019 | return resultobj; |
13020 | fail: | |
13021 | return NULL; | |
13022 | } | |
13023 | ||
13024 | ||
13025 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13026 | PyObject *resultobj; | |
13027 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13028 | int arg2 ; | |
13029 | PyObject * obj0 = 0 ; | |
994141e6 | 13030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13031 | char *kwnames[] = { |
13032 | (char *) "self",(char *) "i", NULL | |
13033 | }; | |
13034 | ||
994141e6 | 13035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13038 | arg2 = (int) SWIG_AsInt(obj1); | |
13039 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13040 | { |
13041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13042 | (arg1)->SetInt(arg2); | |
13043 | ||
13044 | wxPyEndAllowThreads(__tstate); | |
13045 | if (PyErr_Occurred()) SWIG_fail; | |
13046 | } | |
13047 | Py_INCREF(Py_None); resultobj = Py_None; | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13055 | PyObject *resultobj; | |
13056 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13057 | long result; | |
13058 | PyObject * obj0 = 0 ; | |
13059 | char *kwnames[] = { | |
13060 | (char *) "self", NULL | |
13061 | }; | |
13062 | ||
13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13066 | { |
13067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13068 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13069 | ||
13070 | wxPyEndAllowThreads(__tstate); | |
13071 | if (PyErr_Occurred()) SWIG_fail; | |
13072 | } | |
15afbcd0 | 13073 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13074 | return resultobj; |
13075 | fail: | |
13076 | return NULL; | |
13077 | } | |
13078 | ||
13079 | ||
13080 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13081 | PyObject *resultobj; | |
13082 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13083 | wxEvent *result; | |
13084 | PyObject * obj0 = 0 ; | |
13085 | char *kwnames[] = { | |
13086 | (char *) "self", NULL | |
13087 | }; | |
13088 | ||
13089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13092 | { |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
15afbcd0 | 13099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13100 | return resultobj; |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13107 | PyObject *obj; | |
13108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13109 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13110 | Py_INCREF(obj); | |
13111 | return Py_BuildValue((char *)""); | |
13112 | } | |
13113 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13114 | PyObject *resultobj; | |
13115 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13116 | int arg2 = (int) 0 ; | |
13117 | wxNotifyEvent *result; | |
994141e6 RD |
13118 | PyObject * obj0 = 0 ; |
13119 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13120 | char *kwnames[] = { |
13121 | (char *) "commandType",(char *) "winid", NULL | |
13122 | }; | |
13123 | ||
994141e6 RD |
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
13125 | if (obj0) { | |
15afbcd0 RD |
13126 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13127 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13128 | } |
13129 | if (obj1) { | |
15afbcd0 RD |
13130 | arg2 = (int) SWIG_AsInt(obj1); |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13132 | } |
d14a1e28 RD |
13133 | { |
13134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13135 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13136 | ||
13137 | wxPyEndAllowThreads(__tstate); | |
13138 | if (PyErr_Occurred()) SWIG_fail; | |
13139 | } | |
15afbcd0 | 13140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
13141 | return resultobj; |
13142 | fail: | |
13143 | return NULL; | |
13144 | } | |
13145 | ||
13146 | ||
13147 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13148 | PyObject *resultobj; | |
13149 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13150 | PyObject * obj0 = 0 ; | |
13151 | char *kwnames[] = { | |
13152 | (char *) "self", NULL | |
13153 | }; | |
13154 | ||
13155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13158 | { |
13159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13160 | (arg1)->Veto(); | |
13161 | ||
13162 | wxPyEndAllowThreads(__tstate); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | Py_INCREF(Py_None); resultobj = Py_None; | |
13166 | return resultobj; | |
13167 | fail: | |
13168 | return NULL; | |
13169 | } | |
13170 | ||
13171 | ||
13172 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13173 | PyObject *resultobj; | |
13174 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13175 | PyObject * obj0 = 0 ; | |
13176 | char *kwnames[] = { | |
13177 | (char *) "self", NULL | |
13178 | }; | |
13179 | ||
13180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13183 | { |
13184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13185 | (arg1)->Allow(); | |
13186 | ||
13187 | wxPyEndAllowThreads(__tstate); | |
13188 | if (PyErr_Occurred()) SWIG_fail; | |
13189 | } | |
13190 | Py_INCREF(Py_None); resultobj = Py_None; | |
13191 | return resultobj; | |
13192 | fail: | |
13193 | return NULL; | |
13194 | } | |
13195 | ||
13196 | ||
13197 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13198 | PyObject *resultobj; | |
13199 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13200 | bool result; | |
13201 | PyObject * obj0 = 0 ; | |
13202 | char *kwnames[] = { | |
13203 | (char *) "self", NULL | |
13204 | }; | |
13205 | ||
13206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13209 | { |
13210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13211 | result = (bool)(arg1)->IsAllowed(); | |
13212 | ||
13213 | wxPyEndAllowThreads(__tstate); | |
13214 | if (PyErr_Occurred()) SWIG_fail; | |
13215 | } | |
4f89f6a3 RD |
13216 | { |
13217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13218 | } | |
d14a1e28 RD |
13219 | return resultobj; |
13220 | fail: | |
13221 | return NULL; | |
13222 | } | |
13223 | ||
13224 | ||
13225 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13226 | PyObject *obj; | |
13227 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13228 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13229 | Py_INCREF(obj); | |
13230 | return Py_BuildValue((char *)""); | |
13231 | } | |
13232 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13233 | PyObject *resultobj; | |
13234 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13235 | int arg2 = (int) 0 ; | |
13236 | int arg3 = (int) 0 ; | |
13237 | int arg4 = (int) 0 ; | |
13238 | wxScrollEvent *result; | |
994141e6 RD |
13239 | PyObject * obj0 = 0 ; |
13240 | PyObject * obj1 = 0 ; | |
13241 | PyObject * obj2 = 0 ; | |
13242 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13243 | char *kwnames[] = { |
13244 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13245 | }; | |
13246 | ||
994141e6 RD |
13247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13248 | if (obj0) { | |
15afbcd0 RD |
13249 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13251 | } |
13252 | if (obj1) { | |
15afbcd0 RD |
13253 | arg2 = (int) SWIG_AsInt(obj1); |
13254 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13255 | } |
13256 | if (obj2) { | |
15afbcd0 RD |
13257 | arg3 = (int) SWIG_AsInt(obj2); |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13259 | } |
13260 | if (obj3) { | |
15afbcd0 RD |
13261 | arg4 = (int) SWIG_AsInt(obj3); |
13262 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13263 | } |
d14a1e28 RD |
13264 | { |
13265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13266 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13267 | ||
13268 | wxPyEndAllowThreads(__tstate); | |
13269 | if (PyErr_Occurred()) SWIG_fail; | |
13270 | } | |
15afbcd0 | 13271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13272 | return resultobj; |
13273 | fail: | |
13274 | return NULL; | |
13275 | } | |
13276 | ||
13277 | ||
13278 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13279 | PyObject *resultobj; | |
13280 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13281 | int result; | |
13282 | PyObject * obj0 = 0 ; | |
13283 | char *kwnames[] = { | |
13284 | (char *) "self", NULL | |
13285 | }; | |
13286 | ||
13287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13290 | { |
13291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13292 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13293 | ||
13294 | wxPyEndAllowThreads(__tstate); | |
13295 | if (PyErr_Occurred()) SWIG_fail; | |
13296 | } | |
15afbcd0 | 13297 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13298 | return resultobj; |
13299 | fail: | |
13300 | return NULL; | |
13301 | } | |
13302 | ||
13303 | ||
13304 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13305 | PyObject *resultobj; | |
13306 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13307 | int result; | |
13308 | PyObject * obj0 = 0 ; | |
13309 | char *kwnames[] = { | |
13310 | (char *) "self", NULL | |
13311 | }; | |
13312 | ||
13313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13316 | { |
13317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13318 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13319 | ||
13320 | wxPyEndAllowThreads(__tstate); | |
13321 | if (PyErr_Occurred()) SWIG_fail; | |
13322 | } | |
15afbcd0 | 13323 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13324 | return resultobj; |
13325 | fail: | |
13326 | return NULL; | |
13327 | } | |
13328 | ||
13329 | ||
13330 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13331 | PyObject *resultobj; | |
13332 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13333 | int arg2 ; | |
13334 | PyObject * obj0 = 0 ; | |
994141e6 | 13335 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13336 | char *kwnames[] = { |
13337 | (char *) "self",(char *) "orient", NULL | |
13338 | }; | |
13339 | ||
994141e6 | 13340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13343 | arg2 = (int) SWIG_AsInt(obj1); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13345 | { |
13346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13347 | (arg1)->SetOrientation(arg2); | |
13348 | ||
13349 | wxPyEndAllowThreads(__tstate); | |
13350 | if (PyErr_Occurred()) SWIG_fail; | |
13351 | } | |
13352 | Py_INCREF(Py_None); resultobj = Py_None; | |
13353 | return resultobj; | |
13354 | fail: | |
13355 | return NULL; | |
13356 | } | |
13357 | ||
13358 | ||
13359 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13360 | PyObject *resultobj; | |
13361 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13362 | int arg2 ; | |
13363 | PyObject * obj0 = 0 ; | |
994141e6 | 13364 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13365 | char *kwnames[] = { |
13366 | (char *) "self",(char *) "pos", NULL | |
13367 | }; | |
13368 | ||
994141e6 | 13369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13372 | arg2 = (int) SWIG_AsInt(obj1); | |
13373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13374 | { |
13375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13376 | (arg1)->SetPosition(arg2); | |
13377 | ||
13378 | wxPyEndAllowThreads(__tstate); | |
13379 | if (PyErr_Occurred()) SWIG_fail; | |
13380 | } | |
13381 | Py_INCREF(Py_None); resultobj = Py_None; | |
13382 | return resultobj; | |
13383 | fail: | |
13384 | return NULL; | |
13385 | } | |
13386 | ||
13387 | ||
13388 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13389 | PyObject *obj; | |
13390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13391 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13392 | Py_INCREF(obj); | |
13393 | return Py_BuildValue((char *)""); | |
13394 | } | |
13395 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13396 | PyObject *resultobj; | |
13397 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13398 | int arg2 = (int) 0 ; | |
13399 | int arg3 = (int) 0 ; | |
13400 | wxScrollWinEvent *result; | |
994141e6 RD |
13401 | PyObject * obj0 = 0 ; |
13402 | PyObject * obj1 = 0 ; | |
13403 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13404 | char *kwnames[] = { |
13405 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13406 | }; | |
13407 | ||
994141e6 RD |
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13409 | if (obj0) { | |
15afbcd0 RD |
13410 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13412 | } |
13413 | if (obj1) { | |
15afbcd0 RD |
13414 | arg2 = (int) SWIG_AsInt(obj1); |
13415 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13416 | } |
13417 | if (obj2) { | |
15afbcd0 RD |
13418 | arg3 = (int) SWIG_AsInt(obj2); |
13419 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13420 | } |
d14a1e28 RD |
13421 | { |
13422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13423 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13424 | ||
13425 | wxPyEndAllowThreads(__tstate); | |
13426 | if (PyErr_Occurred()) SWIG_fail; | |
13427 | } | |
15afbcd0 | 13428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13429 | return resultobj; |
13430 | fail: | |
13431 | return NULL; | |
13432 | } | |
13433 | ||
13434 | ||
13435 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13436 | PyObject *resultobj; | |
13437 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13438 | int result; | |
13439 | PyObject * obj0 = 0 ; | |
13440 | char *kwnames[] = { | |
13441 | (char *) "self", NULL | |
13442 | }; | |
13443 | ||
13444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13447 | { |
13448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13449 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13450 | ||
13451 | wxPyEndAllowThreads(__tstate); | |
13452 | if (PyErr_Occurred()) SWIG_fail; | |
13453 | } | |
15afbcd0 | 13454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13455 | return resultobj; |
13456 | fail: | |
13457 | return NULL; | |
13458 | } | |
13459 | ||
13460 | ||
13461 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13462 | PyObject *resultobj; | |
13463 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13464 | int result; | |
13465 | PyObject * obj0 = 0 ; | |
13466 | char *kwnames[] = { | |
13467 | (char *) "self", NULL | |
13468 | }; | |
13469 | ||
13470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13473 | { |
13474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13475 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13476 | ||
13477 | wxPyEndAllowThreads(__tstate); | |
13478 | if (PyErr_Occurred()) SWIG_fail; | |
13479 | } | |
15afbcd0 | 13480 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13481 | return resultobj; |
13482 | fail: | |
13483 | return NULL; | |
13484 | } | |
13485 | ||
13486 | ||
13487 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13488 | PyObject *resultobj; | |
13489 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13490 | int arg2 ; | |
13491 | PyObject * obj0 = 0 ; | |
994141e6 | 13492 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13493 | char *kwnames[] = { |
13494 | (char *) "self",(char *) "orient", NULL | |
13495 | }; | |
13496 | ||
994141e6 | 13497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13500 | arg2 = (int) SWIG_AsInt(obj1); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13502 | { |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | (arg1)->SetOrientation(arg2); | |
13505 | ||
13506 | wxPyEndAllowThreads(__tstate); | |
13507 | if (PyErr_Occurred()) SWIG_fail; | |
13508 | } | |
13509 | Py_INCREF(Py_None); resultobj = Py_None; | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
13516 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13517 | PyObject *resultobj; | |
13518 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13519 | int arg2 ; | |
13520 | PyObject * obj0 = 0 ; | |
994141e6 | 13521 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13522 | char *kwnames[] = { |
13523 | (char *) "self",(char *) "pos", NULL | |
13524 | }; | |
13525 | ||
994141e6 | 13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13529 | arg2 = (int) SWIG_AsInt(obj1); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13531 | { |
13532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13533 | (arg1)->SetPosition(arg2); | |
13534 | ||
13535 | wxPyEndAllowThreads(__tstate); | |
13536 | if (PyErr_Occurred()) SWIG_fail; | |
13537 | } | |
13538 | Py_INCREF(Py_None); resultobj = Py_None; | |
13539 | return resultobj; | |
13540 | fail: | |
13541 | return NULL; | |
13542 | } | |
13543 | ||
13544 | ||
13545 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13546 | PyObject *obj; | |
13547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13548 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13549 | Py_INCREF(obj); | |
13550 | return Py_BuildValue((char *)""); | |
13551 | } | |
13552 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13555 | wxMouseEvent *result; | |
994141e6 | 13556 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13557 | char *kwnames[] = { |
13558 | (char *) "mouseType", NULL | |
13559 | }; | |
13560 | ||
994141e6 RD |
13561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13562 | if (obj0) { | |
15afbcd0 RD |
13563 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13564 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13565 | } |
d14a1e28 RD |
13566 | { |
13567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13568 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13569 | ||
13570 | wxPyEndAllowThreads(__tstate); | |
13571 | if (PyErr_Occurred()) SWIG_fail; | |
13572 | } | |
13573 | { | |
13574 | resultobj = wxPyMake_wxObject(result); | |
13575 | } | |
13576 | return resultobj; | |
13577 | fail: | |
13578 | return NULL; | |
13579 | } | |
13580 | ||
13581 | ||
13582 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13583 | PyObject *resultobj; | |
13584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13585 | bool result; | |
13586 | PyObject * obj0 = 0 ; | |
13587 | char *kwnames[] = { | |
13588 | (char *) "self", NULL | |
13589 | }; | |
13590 | ||
13591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13594 | { |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
13599 | if (PyErr_Occurred()) SWIG_fail; | |
13600 | } | |
4f89f6a3 RD |
13601 | { |
13602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13603 | } | |
d14a1e28 RD |
13604 | return resultobj; |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13611 | PyObject *resultobj; | |
13612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13613 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13614 | bool result; | |
13615 | PyObject * obj0 = 0 ; | |
994141e6 | 13616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13617 | char *kwnames[] = { |
13618 | (char *) "self",(char *) "but", NULL | |
13619 | }; | |
13620 | ||
994141e6 | 13621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13624 | if (obj1) { |
15afbcd0 RD |
13625 | arg2 = (int) SWIG_AsInt(obj1); |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13627 | } |
d14a1e28 RD |
13628 | { |
13629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13630 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13631 | ||
13632 | wxPyEndAllowThreads(__tstate); | |
13633 | if (PyErr_Occurred()) SWIG_fail; | |
13634 | } | |
4f89f6a3 RD |
13635 | { |
13636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13637 | } | |
d14a1e28 RD |
13638 | return resultobj; |
13639 | fail: | |
13640 | return NULL; | |
13641 | } | |
13642 | ||
13643 | ||
13644 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13645 | PyObject *resultobj; | |
13646 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13647 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13648 | bool result; | |
13649 | PyObject * obj0 = 0 ; | |
994141e6 | 13650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13651 | char *kwnames[] = { |
13652 | (char *) "self",(char *) "but", NULL | |
13653 | }; | |
13654 | ||
994141e6 | 13655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13658 | if (obj1) { |
15afbcd0 RD |
13659 | arg2 = (int) SWIG_AsInt(obj1); |
13660 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13661 | } |
d14a1e28 RD |
13662 | { |
13663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13664 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13665 | ||
13666 | wxPyEndAllowThreads(__tstate); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
4f89f6a3 RD |
13669 | { |
13670 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13671 | } | |
d14a1e28 RD |
13672 | return resultobj; |
13673 | fail: | |
13674 | return NULL; | |
13675 | } | |
13676 | ||
13677 | ||
13678 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13679 | PyObject *resultobj; | |
13680 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13681 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13682 | bool result; | |
13683 | PyObject * obj0 = 0 ; | |
994141e6 | 13684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13685 | char *kwnames[] = { |
13686 | (char *) "self",(char *) "but", NULL | |
13687 | }; | |
13688 | ||
994141e6 | 13689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13692 | if (obj1) { |
15afbcd0 RD |
13693 | arg2 = (int) SWIG_AsInt(obj1); |
13694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13695 | } |
d14a1e28 RD |
13696 | { |
13697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13698 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13699 | ||
13700 | wxPyEndAllowThreads(__tstate); | |
13701 | if (PyErr_Occurred()) SWIG_fail; | |
13702 | } | |
4f89f6a3 RD |
13703 | { |
13704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13705 | } | |
d14a1e28 RD |
13706 | return resultobj; |
13707 | fail: | |
13708 | return NULL; | |
13709 | } | |
13710 | ||
13711 | ||
13712 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13713 | PyObject *resultobj; | |
13714 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13715 | int arg2 ; | |
13716 | bool result; | |
13717 | PyObject * obj0 = 0 ; | |
994141e6 | 13718 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13719 | char *kwnames[] = { |
13720 | (char *) "self",(char *) "but", NULL | |
13721 | }; | |
13722 | ||
994141e6 | 13723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13726 | arg2 = (int) SWIG_AsInt(obj1); | |
13727 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13728 | { |
13729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13730 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13731 | ||
13732 | wxPyEndAllowThreads(__tstate); | |
13733 | if (PyErr_Occurred()) SWIG_fail; | |
13734 | } | |
4f89f6a3 RD |
13735 | { |
13736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13737 | } | |
d14a1e28 RD |
13738 | return resultobj; |
13739 | fail: | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
13744 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13745 | PyObject *resultobj; | |
13746 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13747 | int arg2 ; | |
13748 | bool result; | |
13749 | PyObject * obj0 = 0 ; | |
994141e6 | 13750 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13751 | char *kwnames[] = { |
13752 | (char *) "self",(char *) "but", NULL | |
13753 | }; | |
13754 | ||
994141e6 | 13755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13758 | arg2 = (int) SWIG_AsInt(obj1); | |
13759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13760 | { |
13761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13762 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13763 | ||
13764 | wxPyEndAllowThreads(__tstate); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
4f89f6a3 RD |
13767 | { |
13768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13769 | } | |
d14a1e28 RD |
13770 | return resultobj; |
13771 | fail: | |
13772 | return NULL; | |
13773 | } | |
13774 | ||
13775 | ||
13776 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13777 | PyObject *resultobj; | |
13778 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13779 | int result; | |
13780 | PyObject * obj0 = 0 ; | |
13781 | char *kwnames[] = { | |
13782 | (char *) "self", NULL | |
13783 | }; | |
13784 | ||
13785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13788 | { |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
15afbcd0 | 13795 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13796 | return resultobj; |
13797 | fail: | |
13798 | return NULL; | |
13799 | } | |
13800 | ||
13801 | ||
13802 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13803 | PyObject *resultobj; | |
13804 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13805 | bool result; | |
13806 | PyObject * obj0 = 0 ; | |
13807 | char *kwnames[] = { | |
13808 | (char *) "self", NULL | |
13809 | }; | |
13810 | ||
13811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13814 | { |
13815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13816 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13817 | ||
13818 | wxPyEndAllowThreads(__tstate); | |
13819 | if (PyErr_Occurred()) SWIG_fail; | |
13820 | } | |
4f89f6a3 RD |
13821 | { |
13822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13823 | } | |
d14a1e28 RD |
13824 | return resultobj; |
13825 | fail: | |
13826 | return NULL; | |
13827 | } | |
13828 | ||
13829 | ||
13830 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13831 | PyObject *resultobj; | |
13832 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13833 | bool result; | |
13834 | PyObject * obj0 = 0 ; | |
13835 | char *kwnames[] = { | |
13836 | (char *) "self", NULL | |
13837 | }; | |
13838 | ||
13839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13842 | { |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13845 | ||
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
4f89f6a3 RD |
13849 | { |
13850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13851 | } | |
d14a1e28 RD |
13852 | return resultobj; |
13853 | fail: | |
13854 | return NULL; | |
13855 | } | |
13856 | ||
13857 | ||
13858 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13859 | PyObject *resultobj; | |
13860 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13861 | bool result; | |
13862 | PyObject * obj0 = 0 ; | |
13863 | char *kwnames[] = { | |
13864 | (char *) "self", NULL | |
13865 | }; | |
13866 | ||
13867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13870 | { |
13871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13872 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13873 | ||
13874 | wxPyEndAllowThreads(__tstate); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | } | |
4f89f6a3 RD |
13877 | { |
13878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13879 | } | |
d14a1e28 RD |
13880 | return resultobj; |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13889 | bool result; | |
13890 | PyObject * obj0 = 0 ; | |
13891 | char *kwnames[] = { | |
13892 | (char *) "self", NULL | |
13893 | }; | |
13894 | ||
13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13898 | { |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
4f89f6a3 RD |
13905 | { |
13906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13907 | } | |
d14a1e28 RD |
13908 | return resultobj; |
13909 | fail: | |
13910 | return NULL; | |
13911 | } | |
13912 | ||
13913 | ||
13914 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13915 | PyObject *resultobj; | |
13916 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13917 | bool result; | |
13918 | PyObject * obj0 = 0 ; | |
13919 | char *kwnames[] = { | |
13920 | (char *) "self", NULL | |
13921 | }; | |
13922 | ||
13923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13926 | { |
13927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13928 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13929 | ||
13930 | wxPyEndAllowThreads(__tstate); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
4f89f6a3 RD |
13933 | { |
13934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13935 | } | |
d14a1e28 RD |
13936 | return resultobj; |
13937 | fail: | |
13938 | return NULL; | |
13939 | } | |
13940 | ||
13941 | ||
13942 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13943 | PyObject *resultobj; | |
13944 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13945 | bool result; | |
13946 | PyObject * obj0 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "self", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13954 | { |
13955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13956 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13957 | ||
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
4f89f6a3 RD |
13961 | { |
13962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13963 | } | |
d14a1e28 RD |
13964 | return resultobj; |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
13970 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13971 | PyObject *resultobj; | |
13972 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13973 | bool result; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13982 | { |
13983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13984 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13985 | ||
13986 | wxPyEndAllowThreads(__tstate); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
4f89f6a3 RD |
13989 | { |
13990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13991 | } | |
d14a1e28 RD |
13992 | return resultobj; |
13993 | fail: | |
13994 | return NULL; | |
13995 | } | |
13996 | ||
13997 | ||
13998 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13999 | PyObject *resultobj; | |
14000 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14001 | bool result; | |
14002 | PyObject * obj0 = 0 ; | |
14003 | char *kwnames[] = { | |
14004 | (char *) "self", NULL | |
14005 | }; | |
14006 | ||
14007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14010 | { |
14011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14012 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14013 | ||
14014 | wxPyEndAllowThreads(__tstate); | |
14015 | if (PyErr_Occurred()) SWIG_fail; | |
14016 | } | |
4f89f6a3 RD |
14017 | { |
14018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14019 | } | |
d14a1e28 RD |
14020 | return resultobj; |
14021 | fail: | |
14022 | return NULL; | |
14023 | } | |
14024 | ||
14025 | ||
14026 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14027 | PyObject *resultobj; | |
14028 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14029 | bool result; | |
14030 | PyObject * obj0 = 0 ; | |
14031 | char *kwnames[] = { | |
14032 | (char *) "self", NULL | |
14033 | }; | |
14034 | ||
14035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14038 | { |
14039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14040 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14041 | ||
14042 | wxPyEndAllowThreads(__tstate); | |
14043 | if (PyErr_Occurred()) SWIG_fail; | |
14044 | } | |
4f89f6a3 RD |
14045 | { |
14046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14047 | } | |
d14a1e28 RD |
14048 | return resultobj; |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14055 | PyObject *resultobj; | |
14056 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14057 | bool result; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | char *kwnames[] = { | |
14060 | (char *) "self", NULL | |
14061 | }; | |
14062 | ||
14063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14066 | { |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
4f89f6a3 RD |
14073 | { |
14074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14075 | } | |
d14a1e28 RD |
14076 | return resultobj; |
14077 | fail: | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
14082 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14083 | PyObject *resultobj; | |
14084 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14085 | bool result; | |
14086 | PyObject * obj0 = 0 ; | |
14087 | char *kwnames[] = { | |
14088 | (char *) "self", NULL | |
14089 | }; | |
14090 | ||
14091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14094 | { |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14097 | ||
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
4f89f6a3 RD |
14101 | { |
14102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14103 | } | |
d14a1e28 RD |
14104 | return resultobj; |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14113 | bool result; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | char *kwnames[] = { | |
14116 | (char *) "self", NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14122 | { |
14123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14124 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14125 | ||
14126 | wxPyEndAllowThreads(__tstate); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | } | |
4f89f6a3 RD |
14129 | { |
14130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14131 | } | |
d14a1e28 RD |
14132 | return resultobj; |
14133 | fail: | |
14134 | return NULL; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14139 | PyObject *resultobj; | |
14140 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14141 | bool result; | |
14142 | PyObject * obj0 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14150 | { |
14151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14152 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14153 | ||
14154 | wxPyEndAllowThreads(__tstate); | |
14155 | if (PyErr_Occurred()) SWIG_fail; | |
14156 | } | |
4f89f6a3 RD |
14157 | { |
14158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14159 | } | |
d14a1e28 RD |
14160 | return resultobj; |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
14166 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14167 | PyObject *resultobj; | |
14168 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14169 | bool result; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | char *kwnames[] = { | |
14172 | (char *) "self", NULL | |
14173 | }; | |
14174 | ||
14175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14178 | { |
14179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14180 | result = (bool)(arg1)->LeftIsDown(); | |
14181 | ||
14182 | wxPyEndAllowThreads(__tstate); | |
14183 | if (PyErr_Occurred()) SWIG_fail; | |
14184 | } | |
4f89f6a3 RD |
14185 | { |
14186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14187 | } | |
d14a1e28 RD |
14188 | return resultobj; |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14195 | PyObject *resultobj; | |
14196 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14197 | bool result; | |
14198 | PyObject * obj0 = 0 ; | |
14199 | char *kwnames[] = { | |
14200 | (char *) "self", NULL | |
14201 | }; | |
14202 | ||
14203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14206 | { |
14207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14208 | result = (bool)(arg1)->MiddleIsDown(); | |
14209 | ||
14210 | wxPyEndAllowThreads(__tstate); | |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
4f89f6a3 RD |
14213 | { |
14214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14215 | } | |
d14a1e28 RD |
14216 | return resultobj; |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_MouseEvent_RightIsDown(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_RightIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14234 | { |
14235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14236 | result = (bool)(arg1)->RightIsDown(); | |
14237 | ||
14238 | wxPyEndAllowThreads(__tstate); | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
14240 | } | |
4f89f6a3 RD |
14241 | { |
14242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14243 | } | |
d14a1e28 RD |
14244 | return resultobj; |
14245 | fail: | |
14246 | return NULL; | |
14247 | } | |
14248 | ||
14249 | ||
14250 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14251 | PyObject *resultobj; | |
14252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14253 | bool result; | |
14254 | PyObject * obj0 = 0 ; | |
14255 | char *kwnames[] = { | |
14256 | (char *) "self", NULL | |
14257 | }; | |
14258 | ||
14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14262 | { |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14265 | ||
14266 | wxPyEndAllowThreads(__tstate); | |
14267 | if (PyErr_Occurred()) SWIG_fail; | |
14268 | } | |
4f89f6a3 RD |
14269 | { |
14270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14271 | } | |
d14a1e28 RD |
14272 | return resultobj; |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14279 | PyObject *resultobj; | |
14280 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14281 | bool result; | |
14282 | PyObject * obj0 = 0 ; | |
14283 | char *kwnames[] = { | |
14284 | (char *) "self", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14290 | { |
14291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14292 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14293 | ||
14294 | wxPyEndAllowThreads(__tstate); | |
14295 | if (PyErr_Occurred()) SWIG_fail; | |
14296 | } | |
4f89f6a3 RD |
14297 | { |
14298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14299 | } | |
d14a1e28 RD |
14300 | return resultobj; |
14301 | fail: | |
14302 | return NULL; | |
14303 | } | |
14304 | ||
14305 | ||
14306 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14307 | PyObject *resultobj; | |
14308 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14309 | bool result; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | char *kwnames[] = { | |
14312 | (char *) "self", NULL | |
14313 | }; | |
14314 | ||
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14318 | { |
14319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14320 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14321 | ||
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
4f89f6a3 RD |
14325 | { |
14326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14327 | } | |
d14a1e28 RD |
14328 | return resultobj; |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14337 | bool result; | |
14338 | PyObject * obj0 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14346 | { |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14348 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14349 | ||
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
4f89f6a3 RD |
14353 | { |
14354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14355 | } | |
d14a1e28 RD |
14356 | return resultobj; |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14365 | wxPoint result; | |
14366 | PyObject * obj0 = 0 ; | |
14367 | char *kwnames[] = { | |
14368 | (char *) "self", NULL | |
14369 | }; | |
14370 | ||
14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14374 | { |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | result = (arg1)->GetPosition(); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | { | |
14382 | wxPoint * resultptr; | |
14383 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14385 | } |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14395 | long *arg2 = (long *) 0 ; | |
14396 | long *arg3 = (long *) 0 ; | |
14397 | long temp2 ; | |
14398 | long temp3 ; | |
14399 | PyObject * obj0 = 0 ; | |
14400 | char *kwnames[] = { | |
14401 | (char *) "self", NULL | |
14402 | }; | |
14403 | ||
14404 | arg2 = &temp2; | |
14405 | arg3 = &temp3; | |
14406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14409 | { |
14410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14411 | (arg1)->GetPosition(arg2,arg3); | |
14412 | ||
14413 | wxPyEndAllowThreads(__tstate); | |
14414 | if (PyErr_Occurred()) SWIG_fail; | |
14415 | } | |
14416 | Py_INCREF(Py_None); resultobj = Py_None; | |
14417 | { | |
14418 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14419 | resultobj = t_output_helper(resultobj,o); | |
14420 | } | |
14421 | { | |
14422 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14423 | resultobj = t_output_helper(resultobj,o); | |
14424 | } | |
14425 | return resultobj; | |
14426 | fail: | |
14427 | return NULL; | |
14428 | } | |
14429 | ||
14430 | ||
14431 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14432 | PyObject *resultobj; | |
14433 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14434 | wxDC *arg2 = 0 ; | |
14435 | wxPoint result; | |
14436 | PyObject * obj0 = 0 ; | |
14437 | PyObject * obj1 = 0 ; | |
14438 | char *kwnames[] = { | |
14439 | (char *) "self",(char *) "dc", NULL | |
14440 | }; | |
14441 | ||
14442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14447 | SWIG_fail; | |
d14a1e28 | 14448 | if (arg2 == NULL) { |
15afbcd0 RD |
14449 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14450 | SWIG_fail; | |
d14a1e28 RD |
14451 | } |
14452 | { | |
14453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14454 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14455 | ||
14456 | wxPyEndAllowThreads(__tstate); | |
14457 | if (PyErr_Occurred()) SWIG_fail; | |
14458 | } | |
14459 | { | |
14460 | wxPoint * resultptr; | |
14461 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14463 | } |
14464 | return resultobj; | |
14465 | fail: | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
14470 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14471 | PyObject *resultobj; | |
14472 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14473 | int result; |
d14a1e28 RD |
14474 | PyObject * obj0 = 0 ; |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14482 | { |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14484 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14485 | |
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
15afbcd0 | 14489 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14490 | return resultobj; |
14491 | fail: | |
14492 | return NULL; | |
14493 | } | |
14494 | ||
14495 | ||
14496 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14497 | PyObject *resultobj; | |
14498 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14499 | int result; |
d14a1e28 RD |
14500 | PyObject * obj0 = 0 ; |
14501 | char *kwnames[] = { | |
14502 | (char *) "self", NULL | |
14503 | }; | |
14504 | ||
14505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14508 | { |
14509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14510 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14511 | |
14512 | wxPyEndAllowThreads(__tstate); | |
14513 | if (PyErr_Occurred()) SWIG_fail; | |
14514 | } | |
15afbcd0 | 14515 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14516 | return resultobj; |
14517 | fail: | |
14518 | return NULL; | |
14519 | } | |
14520 | ||
14521 | ||
14522 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14523 | PyObject *resultobj; | |
14524 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14525 | int result; | |
14526 | PyObject * obj0 = 0 ; | |
14527 | char *kwnames[] = { | |
14528 | (char *) "self", NULL | |
14529 | }; | |
14530 | ||
14531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14534 | { |
14535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14536 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14537 | ||
14538 | wxPyEndAllowThreads(__tstate); | |
14539 | if (PyErr_Occurred()) SWIG_fail; | |
14540 | } | |
15afbcd0 | 14541 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14542 | return resultobj; |
14543 | fail: | |
14544 | return NULL; | |
14545 | } | |
14546 | ||
14547 | ||
14548 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14549 | PyObject *resultobj; | |
14550 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14551 | int result; | |
14552 | PyObject * obj0 = 0 ; | |
14553 | char *kwnames[] = { | |
14554 | (char *) "self", NULL | |
14555 | }; | |
14556 | ||
14557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14560 | { |
14561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14562 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14563 | ||
14564 | wxPyEndAllowThreads(__tstate); | |
14565 | if (PyErr_Occurred()) SWIG_fail; | |
14566 | } | |
15afbcd0 | 14567 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14568 | return resultobj; |
14569 | fail: | |
14570 | return NULL; | |
14571 | } | |
14572 | ||
14573 | ||
14574 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14575 | PyObject *resultobj; | |
14576 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14577 | int result; | |
14578 | PyObject * obj0 = 0 ; | |
14579 | char *kwnames[] = { | |
14580 | (char *) "self", NULL | |
14581 | }; | |
14582 | ||
14583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14586 | { |
14587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14588 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14589 | ||
14590 | wxPyEndAllowThreads(__tstate); | |
14591 | if (PyErr_Occurred()) SWIG_fail; | |
14592 | } | |
15afbcd0 | 14593 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14594 | return resultobj; |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14603 | bool result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14612 | { |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14615 | ||
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
4f89f6a3 RD |
14619 | { |
14620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14621 | } | |
d14a1e28 RD |
14622 | return resultobj; |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
14628 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj; | |
14630 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14631 | int arg2 ; |
d14a1e28 | 14632 | PyObject * obj0 = 0 ; |
994141e6 | 14633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14634 | char *kwnames[] = { |
14635 | (char *) "self",(char *) "m_x", NULL | |
14636 | }; | |
14637 | ||
994141e6 | 14638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14641 | arg2 = (int) SWIG_AsInt(obj1); | |
14642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14643 | if (arg1) (arg1)->m_x = arg2; |
14644 | ||
14645 | Py_INCREF(Py_None); resultobj = Py_None; | |
14646 | return resultobj; | |
14647 | fail: | |
14648 | return NULL; | |
14649 | } | |
14650 | ||
14651 | ||
14652 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14653 | PyObject *resultobj; | |
14654 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14655 | int result; |
d14a1e28 RD |
14656 | PyObject * obj0 = 0 ; |
14657 | char *kwnames[] = { | |
14658 | (char *) "self", NULL | |
14659 | }; | |
14660 | ||
14661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14664 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14665 | |
15afbcd0 | 14666 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14667 | return resultobj; |
14668 | fail: | |
14669 | return NULL; | |
14670 | } | |
14671 | ||
14672 | ||
14673 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14674 | PyObject *resultobj; | |
14675 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14676 | int arg2 ; |
d14a1e28 | 14677 | PyObject * obj0 = 0 ; |
994141e6 | 14678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14679 | char *kwnames[] = { |
14680 | (char *) "self",(char *) "m_y", NULL | |
14681 | }; | |
14682 | ||
994141e6 | 14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14686 | arg2 = (int) SWIG_AsInt(obj1); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14688 | if (arg1) (arg1)->m_y = arg2; |
14689 | ||
14690 | Py_INCREF(Py_None); resultobj = Py_None; | |
14691 | return resultobj; | |
14692 | fail: | |
14693 | return NULL; | |
14694 | } | |
14695 | ||
14696 | ||
14697 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14698 | PyObject *resultobj; | |
14699 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14700 | int result; |
d14a1e28 RD |
14701 | PyObject * obj0 = 0 ; |
14702 | char *kwnames[] = { | |
14703 | (char *) "self", NULL | |
14704 | }; | |
14705 | ||
14706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14709 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14710 | |
15afbcd0 | 14711 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14712 | return resultobj; |
14713 | fail: | |
14714 | return NULL; | |
14715 | } | |
14716 | ||
14717 | ||
14718 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14719 | PyObject *resultobj; | |
14720 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14721 | bool arg2 ; | |
14722 | PyObject * obj0 = 0 ; | |
14723 | PyObject * obj1 = 0 ; | |
14724 | char *kwnames[] = { | |
14725 | (char *) "self",(char *) "m_leftDown", NULL | |
14726 | }; | |
14727 | ||
14728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14731 | arg2 = (bool) SWIG_AsBool(obj1); | |
14732 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14733 | if (arg1) (arg1)->m_leftDown = arg2; |
14734 | ||
14735 | Py_INCREF(Py_None); resultobj = Py_None; | |
14736 | return resultobj; | |
14737 | fail: | |
14738 | return NULL; | |
14739 | } | |
14740 | ||
14741 | ||
14742 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14743 | PyObject *resultobj; | |
14744 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14745 | bool result; | |
14746 | PyObject * obj0 = 0 ; | |
14747 | char *kwnames[] = { | |
14748 | (char *) "self", NULL | |
14749 | }; | |
14750 | ||
14751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14754 | result = (bool) ((arg1)->m_leftDown); |
14755 | ||
4f89f6a3 RD |
14756 | { |
14757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14758 | } | |
d14a1e28 RD |
14759 | return resultobj; |
14760 | fail: | |
14761 | return NULL; | |
14762 | } | |
14763 | ||
14764 | ||
14765 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14766 | PyObject *resultobj; | |
14767 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14768 | bool arg2 ; | |
14769 | PyObject * obj0 = 0 ; | |
14770 | PyObject * obj1 = 0 ; | |
14771 | char *kwnames[] = { | |
14772 | (char *) "self",(char *) "m_middleDown", NULL | |
14773 | }; | |
14774 | ||
14775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14778 | arg2 = (bool) SWIG_AsBool(obj1); | |
14779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14780 | if (arg1) (arg1)->m_middleDown = arg2; |
14781 | ||
14782 | Py_INCREF(Py_None); resultobj = Py_None; | |
14783 | return resultobj; | |
14784 | fail: | |
14785 | return NULL; | |
14786 | } | |
14787 | ||
14788 | ||
14789 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14790 | PyObject *resultobj; | |
14791 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14792 | bool result; | |
14793 | PyObject * obj0 = 0 ; | |
14794 | char *kwnames[] = { | |
14795 | (char *) "self", NULL | |
14796 | }; | |
14797 | ||
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14801 | result = (bool) ((arg1)->m_middleDown); |
14802 | ||
4f89f6a3 RD |
14803 | { |
14804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14805 | } | |
d14a1e28 RD |
14806 | return resultobj; |
14807 | fail: | |
14808 | return NULL; | |
14809 | } | |
14810 | ||
14811 | ||
14812 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14813 | PyObject *resultobj; | |
14814 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14815 | bool arg2 ; | |
14816 | PyObject * obj0 = 0 ; | |
14817 | PyObject * obj1 = 0 ; | |
14818 | char *kwnames[] = { | |
14819 | (char *) "self",(char *) "m_rightDown", NULL | |
14820 | }; | |
14821 | ||
14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14825 | arg2 = (bool) SWIG_AsBool(obj1); | |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14827 | if (arg1) (arg1)->m_rightDown = arg2; |
14828 | ||
14829 | Py_INCREF(Py_None); resultobj = Py_None; | |
14830 | return resultobj; | |
14831 | fail: | |
14832 | return NULL; | |
14833 | } | |
14834 | ||
14835 | ||
14836 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14837 | PyObject *resultobj; | |
14838 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14839 | bool result; | |
14840 | PyObject * obj0 = 0 ; | |
14841 | char *kwnames[] = { | |
14842 | (char *) "self", NULL | |
14843 | }; | |
14844 | ||
14845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14848 | result = (bool) ((arg1)->m_rightDown); |
14849 | ||
4f89f6a3 RD |
14850 | { |
14851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14852 | } | |
d14a1e28 RD |
14853 | return resultobj; |
14854 | fail: | |
14855 | return NULL; | |
14856 | } | |
14857 | ||
14858 | ||
14859 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14860 | PyObject *resultobj; | |
14861 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14862 | bool arg2 ; | |
14863 | PyObject * obj0 = 0 ; | |
14864 | PyObject * obj1 = 0 ; | |
14865 | char *kwnames[] = { | |
14866 | (char *) "self",(char *) "m_controlDown", NULL | |
14867 | }; | |
14868 | ||
14869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14872 | arg2 = (bool) SWIG_AsBool(obj1); | |
14873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14874 | if (arg1) (arg1)->m_controlDown = arg2; |
14875 | ||
14876 | Py_INCREF(Py_None); resultobj = Py_None; | |
14877 | return resultobj; | |
14878 | fail: | |
14879 | return NULL; | |
14880 | } | |
14881 | ||
14882 | ||
14883 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14884 | PyObject *resultobj; | |
14885 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14886 | bool result; | |
14887 | PyObject * obj0 = 0 ; | |
14888 | char *kwnames[] = { | |
14889 | (char *) "self", NULL | |
14890 | }; | |
14891 | ||
14892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14895 | result = (bool) ((arg1)->m_controlDown); |
14896 | ||
4f89f6a3 RD |
14897 | { |
14898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14899 | } | |
d14a1e28 RD |
14900 | return resultobj; |
14901 | fail: | |
14902 | return NULL; | |
14903 | } | |
14904 | ||
14905 | ||
14906 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14907 | PyObject *resultobj; | |
14908 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14909 | bool arg2 ; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | PyObject * obj1 = 0 ; | |
14912 | char *kwnames[] = { | |
14913 | (char *) "self",(char *) "m_shiftDown", NULL | |
14914 | }; | |
14915 | ||
14916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14919 | arg2 = (bool) SWIG_AsBool(obj1); | |
14920 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14921 | if (arg1) (arg1)->m_shiftDown = arg2; |
14922 | ||
14923 | Py_INCREF(Py_None); resultobj = Py_None; | |
14924 | return resultobj; | |
14925 | fail: | |
14926 | return NULL; | |
14927 | } | |
14928 | ||
14929 | ||
14930 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14931 | PyObject *resultobj; | |
14932 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14933 | bool result; | |
14934 | PyObject * obj0 = 0 ; | |
14935 | char *kwnames[] = { | |
14936 | (char *) "self", NULL | |
14937 | }; | |
14938 | ||
14939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14942 | result = (bool) ((arg1)->m_shiftDown); |
14943 | ||
4f89f6a3 RD |
14944 | { |
14945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14946 | } | |
d14a1e28 RD |
14947 | return resultobj; |
14948 | fail: | |
14949 | return NULL; | |
14950 | } | |
14951 | ||
14952 | ||
14953 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14954 | PyObject *resultobj; | |
14955 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14956 | bool arg2 ; | |
14957 | PyObject * obj0 = 0 ; | |
14958 | PyObject * obj1 = 0 ; | |
14959 | char *kwnames[] = { | |
14960 | (char *) "self",(char *) "m_altDown", NULL | |
14961 | }; | |
14962 | ||
14963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14966 | arg2 = (bool) SWIG_AsBool(obj1); | |
14967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14968 | if (arg1) (arg1)->m_altDown = arg2; |
14969 | ||
14970 | Py_INCREF(Py_None); resultobj = Py_None; | |
14971 | return resultobj; | |
14972 | fail: | |
14973 | return NULL; | |
14974 | } | |
14975 | ||
14976 | ||
14977 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14978 | PyObject *resultobj; | |
14979 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14980 | bool result; | |
14981 | PyObject * obj0 = 0 ; | |
14982 | char *kwnames[] = { | |
14983 | (char *) "self", NULL | |
14984 | }; | |
14985 | ||
14986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14989 | result = (bool) ((arg1)->m_altDown); |
14990 | ||
4f89f6a3 RD |
14991 | { |
14992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14993 | } | |
d14a1e28 RD |
14994 | return resultobj; |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15001 | PyObject *resultobj; | |
15002 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15003 | bool arg2 ; | |
15004 | PyObject * obj0 = 0 ; | |
15005 | PyObject * obj1 = 0 ; | |
15006 | char *kwnames[] = { | |
15007 | (char *) "self",(char *) "m_metaDown", NULL | |
15008 | }; | |
15009 | ||
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15013 | arg2 = (bool) SWIG_AsBool(obj1); | |
15014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15015 | if (arg1) (arg1)->m_metaDown = arg2; |
15016 | ||
15017 | Py_INCREF(Py_None); resultobj = Py_None; | |
15018 | return resultobj; | |
15019 | fail: | |
15020 | return NULL; | |
15021 | } | |
15022 | ||
15023 | ||
15024 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15025 | PyObject *resultobj; | |
15026 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15027 | bool result; | |
15028 | PyObject * obj0 = 0 ; | |
15029 | char *kwnames[] = { | |
15030 | (char *) "self", NULL | |
15031 | }; | |
15032 | ||
15033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15036 | result = (bool) ((arg1)->m_metaDown); |
15037 | ||
4f89f6a3 RD |
15038 | { |
15039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15040 | } | |
d14a1e28 RD |
15041 | return resultobj; |
15042 | fail: | |
15043 | return NULL; | |
15044 | } | |
15045 | ||
15046 | ||
15047 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15048 | PyObject *resultobj; | |
15049 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15050 | int arg2 ; | |
15051 | PyObject * obj0 = 0 ; | |
994141e6 | 15052 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15053 | char *kwnames[] = { |
15054 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15055 | }; | |
15056 | ||
994141e6 | 15057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15060 | arg2 = (int) SWIG_AsInt(obj1); | |
15061 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15062 | if (arg1) (arg1)->m_wheelRotation = arg2; |
15063 | ||
15064 | Py_INCREF(Py_None); resultobj = Py_None; | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15074 | int result; | |
15075 | PyObject * obj0 = 0 ; | |
15076 | char *kwnames[] = { | |
15077 | (char *) "self", NULL | |
15078 | }; | |
15079 | ||
15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15083 | result = (int) ((arg1)->m_wheelRotation); |
15084 | ||
15afbcd0 | 15085 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15086 | return resultobj; |
15087 | fail: | |
15088 | return NULL; | |
15089 | } | |
15090 | ||
15091 | ||
15092 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15093 | PyObject *resultobj; | |
15094 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15095 | int arg2 ; | |
15096 | PyObject * obj0 = 0 ; | |
994141e6 | 15097 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15098 | char *kwnames[] = { |
15099 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15100 | }; | |
15101 | ||
994141e6 | 15102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15105 | arg2 = (int) SWIG_AsInt(obj1); | |
15106 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15107 | if (arg1) (arg1)->m_wheelDelta = arg2; |
15108 | ||
15109 | Py_INCREF(Py_None); resultobj = Py_None; | |
15110 | return resultobj; | |
15111 | fail: | |
15112 | return NULL; | |
15113 | } | |
15114 | ||
15115 | ||
15116 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15117 | PyObject *resultobj; | |
15118 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15119 | int result; | |
15120 | PyObject * obj0 = 0 ; | |
15121 | char *kwnames[] = { | |
15122 | (char *) "self", NULL | |
15123 | }; | |
15124 | ||
15125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15128 | result = (int) ((arg1)->m_wheelDelta); |
15129 | ||
15afbcd0 | 15130 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15131 | return resultobj; |
15132 | fail: | |
15133 | return NULL; | |
15134 | } | |
15135 | ||
15136 | ||
15137 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15138 | PyObject *resultobj; | |
15139 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15140 | int arg2 ; | |
15141 | PyObject * obj0 = 0 ; | |
994141e6 | 15142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15143 | char *kwnames[] = { |
15144 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15145 | }; | |
15146 | ||
994141e6 | 15147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15150 | arg2 = (int) SWIG_AsInt(obj1); | |
15151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15152 | if (arg1) (arg1)->m_linesPerAction = arg2; |
15153 | ||
15154 | Py_INCREF(Py_None); resultobj = Py_None; | |
15155 | return resultobj; | |
15156 | fail: | |
15157 | return NULL; | |
15158 | } | |
15159 | ||
15160 | ||
15161 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15162 | PyObject *resultobj; | |
15163 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15164 | int result; | |
15165 | PyObject * obj0 = 0 ; | |
15166 | char *kwnames[] = { | |
15167 | (char *) "self", NULL | |
15168 | }; | |
15169 | ||
15170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15173 | result = (int) ((arg1)->m_linesPerAction); |
15174 | ||
15afbcd0 | 15175 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15176 | return resultobj; |
15177 | fail: | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
15182 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15183 | PyObject *obj; | |
15184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15185 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15186 | Py_INCREF(obj); | |
15187 | return Py_BuildValue((char *)""); | |
15188 | } | |
15189 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
e811c8ce RD |
15191 | int arg1 = (int) 0 ; |
15192 | int arg2 = (int) 0 ; | |
d14a1e28 | 15193 | wxSetCursorEvent *result; |
994141e6 RD |
15194 | PyObject * obj0 = 0 ; |
15195 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15196 | char *kwnames[] = { |
15197 | (char *) "x",(char *) "y", NULL | |
15198 | }; | |
15199 | ||
994141e6 RD |
15200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15201 | if (obj0) { | |
15afbcd0 RD |
15202 | arg1 = (int) SWIG_AsInt(obj0); |
15203 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15204 | } |
15205 | if (obj1) { | |
15afbcd0 RD |
15206 | arg2 = (int) SWIG_AsInt(obj1); |
15207 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15208 | } |
d14a1e28 RD |
15209 | { |
15210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15211 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15212 | ||
15213 | wxPyEndAllowThreads(__tstate); | |
15214 | if (PyErr_Occurred()) SWIG_fail; | |
15215 | } | |
15afbcd0 | 15216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15217 | return resultobj; |
15218 | fail: | |
15219 | return NULL; | |
15220 | } | |
15221 | ||
15222 | ||
15223 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15224 | PyObject *resultobj; | |
15225 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15226 | int result; |
d14a1e28 RD |
15227 | PyObject * obj0 = 0 ; |
15228 | char *kwnames[] = { | |
15229 | (char *) "self", NULL | |
15230 | }; | |
15231 | ||
15232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15235 | { |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15237 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15238 | |
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15afbcd0 | 15242 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15243 | return resultobj; |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj; | |
15251 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15252 | int result; |
d14a1e28 RD |
15253 | PyObject * obj0 = 0 ; |
15254 | char *kwnames[] = { | |
15255 | (char *) "self", NULL | |
15256 | }; | |
15257 | ||
15258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15261 | { |
15262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15263 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15264 | |
15265 | wxPyEndAllowThreads(__tstate); | |
15266 | if (PyErr_Occurred()) SWIG_fail; | |
15267 | } | |
15afbcd0 | 15268 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15269 | return resultobj; |
15270 | fail: | |
15271 | return NULL; | |
15272 | } | |
15273 | ||
15274 | ||
15275 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15276 | PyObject *resultobj; | |
15277 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15278 | wxCursor *arg2 = 0 ; | |
15279 | PyObject * obj0 = 0 ; | |
15280 | PyObject * obj1 = 0 ; | |
15281 | char *kwnames[] = { | |
15282 | (char *) "self",(char *) "cursor", NULL | |
15283 | }; | |
15284 | ||
15285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15288 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15289 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15290 | SWIG_fail; | |
d14a1e28 | 15291 | if (arg2 == NULL) { |
15afbcd0 RD |
15292 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15293 | SWIG_fail; | |
d14a1e28 RD |
15294 | } |
15295 | { | |
15296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15297 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15298 | ||
15299 | wxPyEndAllowThreads(__tstate); | |
15300 | if (PyErr_Occurred()) SWIG_fail; | |
15301 | } | |
15302 | Py_INCREF(Py_None); resultobj = Py_None; | |
15303 | return resultobj; | |
15304 | fail: | |
15305 | return NULL; | |
15306 | } | |
15307 | ||
15308 | ||
15309 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15310 | PyObject *resultobj; | |
15311 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15312 | wxCursor *result; | |
15313 | PyObject * obj0 = 0 ; | |
15314 | char *kwnames[] = { | |
15315 | (char *) "self", NULL | |
15316 | }; | |
15317 | ||
15318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15321 | { |
15322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15323 | { | |
15324 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15325 | result = (wxCursor *) &_result_ref; | |
15326 | } | |
15327 | ||
15328 | wxPyEndAllowThreads(__tstate); | |
15329 | if (PyErr_Occurred()) SWIG_fail; | |
15330 | } | |
4276dc52 RD |
15331 | { |
15332 | wxCursor* resultptr = new wxCursor(*result); | |
15333 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15334 | } | |
d14a1e28 RD |
15335 | return resultobj; |
15336 | fail: | |
15337 | return NULL; | |
15338 | } | |
15339 | ||
15340 | ||
15341 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15342 | PyObject *resultobj; | |
15343 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15344 | bool result; | |
15345 | PyObject * obj0 = 0 ; | |
15346 | char *kwnames[] = { | |
15347 | (char *) "self", NULL | |
15348 | }; | |
15349 | ||
15350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15353 | { |
15354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15355 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15356 | ||
15357 | wxPyEndAllowThreads(__tstate); | |
15358 | if (PyErr_Occurred()) SWIG_fail; | |
15359 | } | |
4f89f6a3 RD |
15360 | { |
15361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15362 | } | |
d14a1e28 RD |
15363 | return resultobj; |
15364 | fail: | |
15365 | return NULL; | |
15366 | } | |
15367 | ||
15368 | ||
15369 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15370 | PyObject *obj; | |
15371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15372 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15373 | Py_INCREF(obj); | |
15374 | return Py_BuildValue((char *)""); | |
15375 | } | |
15376 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15377 | PyObject *resultobj; | |
15378 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15379 | wxKeyEvent *result; | |
994141e6 | 15380 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15381 | char *kwnames[] = { |
15382 | (char *) "keyType", NULL | |
15383 | }; | |
15384 | ||
994141e6 RD |
15385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15386 | if (obj0) { | |
15afbcd0 RD |
15387 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15388 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15389 | } |
d14a1e28 RD |
15390 | { |
15391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15392 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15393 | ||
15394 | wxPyEndAllowThreads(__tstate); | |
15395 | if (PyErr_Occurred()) SWIG_fail; | |
15396 | } | |
15afbcd0 | 15397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15398 | return resultobj; |
15399 | fail: | |
15400 | return NULL; | |
15401 | } | |
15402 | ||
15403 | ||
15404 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15405 | PyObject *resultobj; | |
15406 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15407 | bool result; | |
15408 | PyObject * obj0 = 0 ; | |
15409 | char *kwnames[] = { | |
15410 | (char *) "self", NULL | |
15411 | }; | |
15412 | ||
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15416 | { |
15417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15418 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15419 | ||
15420 | wxPyEndAllowThreads(__tstate); | |
15421 | if (PyErr_Occurred()) SWIG_fail; | |
15422 | } | |
4f89f6a3 RD |
15423 | { |
15424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15425 | } | |
d14a1e28 RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15435 | bool result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15447 | ||
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
4f89f6a3 RD |
15451 | { |
15452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15453 | } | |
d14a1e28 RD |
15454 | return resultobj; |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15463 | bool result; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15472 | { |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
4f89f6a3 RD |
15479 | { |
15480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15481 | } | |
d14a1e28 RD |
15482 | return resultobj; |
15483 | fail: | |
15484 | return NULL; | |
15485 | } | |
15486 | ||
15487 | ||
15488 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15489 | PyObject *resultobj; | |
15490 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15491 | bool result; | |
15492 | PyObject * obj0 = 0 ; | |
15493 | char *kwnames[] = { | |
15494 | (char *) "self", NULL | |
15495 | }; | |
15496 | ||
15497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15500 | { |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
4f89f6a3 RD |
15507 | { |
15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15509 | } | |
d14a1e28 RD |
15510 | return resultobj; |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15519 | bool result; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | char *kwnames[] = { | |
15522 | (char *) "self", NULL | |
15523 | }; | |
15524 | ||
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15528 | { |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15531 | ||
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
4f89f6a3 RD |
15535 | { |
15536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15537 | } | |
d14a1e28 RD |
15538 | return resultobj; |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj; | |
15546 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15547 | int result; | |
15548 | PyObject * obj0 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "self", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15556 | { |
15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15558 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15559 | ||
15560 | wxPyEndAllowThreads(__tstate); | |
15561 | if (PyErr_Occurred()) SWIG_fail; | |
15562 | } | |
15afbcd0 | 15563 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15564 | return resultobj; |
15565 | fail: | |
15566 | return NULL; | |
15567 | } | |
15568 | ||
15569 | ||
15570 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15571 | PyObject *resultobj; | |
15572 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15573 | int result; | |
15574 | PyObject * obj0 = 0 ; | |
15575 | char *kwnames[] = { | |
15576 | (char *) "self", NULL | |
15577 | }; | |
15578 | ||
15579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15582 | { |
15583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15584 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15585 | ||
15586 | wxPyEndAllowThreads(__tstate); | |
15587 | if (PyErr_Occurred()) SWIG_fail; | |
15588 | } | |
15afbcd0 | 15589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15590 | return resultobj; |
15591 | fail: | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15599 | unsigned int result; |
d14a1e28 RD |
15600 | PyObject * obj0 = 0 ; |
15601 | char *kwnames[] = { | |
15602 | (char *) "self", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15608 | { |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15610 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15611 | |
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15afbcd0 | 15615 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15616 | return resultobj; |
15617 | fail: | |
15618 | return NULL; | |
15619 | } | |
15620 | ||
15621 | ||
15622 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15623 | PyObject *resultobj; | |
15624 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15625 | unsigned int result; |
d14a1e28 RD |
15626 | PyObject * obj0 = 0 ; |
15627 | char *kwnames[] = { | |
15628 | (char *) "self", NULL | |
15629 | }; | |
15630 | ||
15631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15634 | { |
15635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15636 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15637 | |
15638 | wxPyEndAllowThreads(__tstate); | |
15639 | if (PyErr_Occurred()) SWIG_fail; | |
15640 | } | |
15afbcd0 | 15641 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15642 | return resultobj; |
15643 | fail: | |
15644 | return NULL; | |
15645 | } | |
15646 | ||
15647 | ||
15648 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15649 | PyObject *resultobj; | |
15650 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15651 | wxPoint result; | |
15652 | PyObject * obj0 = 0 ; | |
15653 | char *kwnames[] = { | |
15654 | (char *) "self", NULL | |
15655 | }; | |
15656 | ||
15657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15660 | { |
15661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15662 | result = (arg1)->GetPosition(); | |
15663 | ||
15664 | wxPyEndAllowThreads(__tstate); | |
15665 | if (PyErr_Occurred()) SWIG_fail; | |
15666 | } | |
15667 | { | |
15668 | wxPoint * resultptr; | |
15669 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 15670 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15671 | } |
15672 | return resultobj; | |
15673 | fail: | |
15674 | return NULL; | |
15675 | } | |
15676 | ||
15677 | ||
15678 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15679 | PyObject *resultobj; | |
15680 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15681 | long *arg2 = (long *) 0 ; | |
15682 | long *arg3 = (long *) 0 ; | |
15683 | long temp2 ; | |
15684 | long temp3 ; | |
15685 | PyObject * obj0 = 0 ; | |
15686 | char *kwnames[] = { | |
15687 | (char *) "self", NULL | |
15688 | }; | |
15689 | ||
15690 | arg2 = &temp2; | |
15691 | arg3 = &temp3; | |
15692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15695 | { |
15696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15697 | (arg1)->GetPosition(arg2,arg3); | |
15698 | ||
15699 | wxPyEndAllowThreads(__tstate); | |
15700 | if (PyErr_Occurred()) SWIG_fail; | |
15701 | } | |
15702 | Py_INCREF(Py_None); resultobj = Py_None; | |
15703 | { | |
15704 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15705 | resultobj = t_output_helper(resultobj,o); | |
15706 | } | |
15707 | { | |
15708 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15709 | resultobj = t_output_helper(resultobj,o); | |
15710 | } | |
15711 | return resultobj; | |
15712 | fail: | |
15713 | return NULL; | |
15714 | } | |
15715 | ||
15716 | ||
15717 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15718 | PyObject *resultobj; | |
15719 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15720 | int result; |
d14a1e28 RD |
15721 | PyObject * obj0 = 0 ; |
15722 | char *kwnames[] = { | |
15723 | (char *) "self", NULL | |
15724 | }; | |
15725 | ||
15726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15729 | { |
15730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15731 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15732 | |
15733 | wxPyEndAllowThreads(__tstate); | |
15734 | if (PyErr_Occurred()) SWIG_fail; | |
15735 | } | |
15afbcd0 | 15736 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15737 | return resultobj; |
15738 | fail: | |
15739 | return NULL; | |
15740 | } | |
15741 | ||
15742 | ||
15743 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15744 | PyObject *resultobj; | |
15745 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15746 | int result; |
d14a1e28 RD |
15747 | PyObject * obj0 = 0 ; |
15748 | char *kwnames[] = { | |
15749 | (char *) "self", NULL | |
15750 | }; | |
15751 | ||
15752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15755 | { |
15756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15757 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15758 | |
15759 | wxPyEndAllowThreads(__tstate); | |
15760 | if (PyErr_Occurred()) SWIG_fail; | |
15761 | } | |
15afbcd0 | 15762 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15763 | return resultobj; |
15764 | fail: | |
15765 | return NULL; | |
15766 | } | |
15767 | ||
15768 | ||
15769 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15770 | PyObject *resultobj; | |
15771 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15772 | int arg2 ; |
d14a1e28 | 15773 | PyObject * obj0 = 0 ; |
994141e6 | 15774 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15775 | char *kwnames[] = { |
15776 | (char *) "self",(char *) "m_x", NULL | |
15777 | }; | |
15778 | ||
994141e6 | 15779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15782 | arg2 = (int) SWIG_AsInt(obj1); | |
15783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15784 | if (arg1) (arg1)->m_x = arg2; |
15785 | ||
15786 | Py_INCREF(Py_None); resultobj = Py_None; | |
15787 | return resultobj; | |
15788 | fail: | |
15789 | return NULL; | |
15790 | } | |
15791 | ||
15792 | ||
15793 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15794 | PyObject *resultobj; | |
15795 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15796 | int result; |
d14a1e28 RD |
15797 | PyObject * obj0 = 0 ; |
15798 | char *kwnames[] = { | |
15799 | (char *) "self", NULL | |
15800 | }; | |
15801 | ||
15802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15805 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15806 | |
15afbcd0 | 15807 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15808 | return resultobj; |
15809 | fail: | |
15810 | return NULL; | |
15811 | } | |
15812 | ||
15813 | ||
15814 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15815 | PyObject *resultobj; | |
15816 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15817 | int arg2 ; |
d14a1e28 | 15818 | PyObject * obj0 = 0 ; |
994141e6 | 15819 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15820 | char *kwnames[] = { |
15821 | (char *) "self",(char *) "m_y", NULL | |
15822 | }; | |
15823 | ||
994141e6 | 15824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15827 | arg2 = (int) SWIG_AsInt(obj1); | |
15828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15829 | if (arg1) (arg1)->m_y = arg2; |
15830 | ||
15831 | Py_INCREF(Py_None); resultobj = Py_None; | |
15832 | return resultobj; | |
15833 | fail: | |
15834 | return NULL; | |
15835 | } | |
15836 | ||
15837 | ||
15838 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15839 | PyObject *resultobj; | |
15840 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15841 | int result; |
d14a1e28 RD |
15842 | PyObject * obj0 = 0 ; |
15843 | char *kwnames[] = { | |
15844 | (char *) "self", NULL | |
15845 | }; | |
15846 | ||
15847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15850 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15851 | |
15afbcd0 | 15852 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15853 | return resultobj; |
15854 | fail: | |
15855 | return NULL; | |
15856 | } | |
15857 | ||
15858 | ||
15859 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15860 | PyObject *resultobj; | |
15861 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15862 | long arg2 ; | |
15863 | PyObject * obj0 = 0 ; | |
994141e6 | 15864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15865 | char *kwnames[] = { |
15866 | (char *) "self",(char *) "m_keyCode", NULL | |
15867 | }; | |
15868 | ||
994141e6 | 15869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15872 | arg2 = (long) SWIG_AsLong(obj1); | |
15873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15874 | if (arg1) (arg1)->m_keyCode = arg2; |
15875 | ||
15876 | Py_INCREF(Py_None); resultobj = Py_None; | |
15877 | return resultobj; | |
15878 | fail: | |
15879 | return NULL; | |
15880 | } | |
15881 | ||
15882 | ||
15883 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15884 | PyObject *resultobj; | |
15885 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15886 | long result; | |
15887 | PyObject * obj0 = 0 ; | |
15888 | char *kwnames[] = { | |
15889 | (char *) "self", NULL | |
15890 | }; | |
15891 | ||
15892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15895 | result = (long) ((arg1)->m_keyCode); |
15896 | ||
15afbcd0 | 15897 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15898 | return resultobj; |
15899 | fail: | |
15900 | return NULL; | |
15901 | } | |
15902 | ||
15903 | ||
15904 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15905 | PyObject *resultobj; | |
15906 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15907 | bool arg2 ; | |
15908 | PyObject * obj0 = 0 ; | |
15909 | PyObject * obj1 = 0 ; | |
15910 | char *kwnames[] = { | |
15911 | (char *) "self",(char *) "m_controlDown", NULL | |
15912 | }; | |
15913 | ||
15914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15917 | arg2 = (bool) SWIG_AsBool(obj1); | |
15918 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15919 | if (arg1) (arg1)->m_controlDown = arg2; |
15920 | ||
15921 | Py_INCREF(Py_None); resultobj = Py_None; | |
15922 | return resultobj; | |
15923 | fail: | |
15924 | return NULL; | |
15925 | } | |
15926 | ||
15927 | ||
15928 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15929 | PyObject *resultobj; | |
15930 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15931 | bool result; | |
15932 | PyObject * obj0 = 0 ; | |
15933 | char *kwnames[] = { | |
15934 | (char *) "self", NULL | |
15935 | }; | |
15936 | ||
15937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15940 | result = (bool) ((arg1)->m_controlDown); |
15941 | ||
4f89f6a3 RD |
15942 | { |
15943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15944 | } | |
d14a1e28 RD |
15945 | return resultobj; |
15946 | fail: | |
15947 | return NULL; | |
15948 | } | |
15949 | ||
15950 | ||
15951 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15952 | PyObject *resultobj; | |
15953 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15954 | bool arg2 ; | |
15955 | PyObject * obj0 = 0 ; | |
15956 | PyObject * obj1 = 0 ; | |
15957 | char *kwnames[] = { | |
15958 | (char *) "self",(char *) "m_shiftDown", NULL | |
15959 | }; | |
15960 | ||
15961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15964 | arg2 = (bool) SWIG_AsBool(obj1); | |
15965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15966 | if (arg1) (arg1)->m_shiftDown = arg2; |
15967 | ||
15968 | Py_INCREF(Py_None); resultobj = Py_None; | |
15969 | return resultobj; | |
15970 | fail: | |
15971 | return NULL; | |
15972 | } | |
15973 | ||
15974 | ||
15975 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15976 | PyObject *resultobj; | |
15977 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15978 | bool result; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | char *kwnames[] = { | |
15981 | (char *) "self", NULL | |
15982 | }; | |
15983 | ||
15984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15987 | result = (bool) ((arg1)->m_shiftDown); |
15988 | ||
4f89f6a3 RD |
15989 | { |
15990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15991 | } | |
d14a1e28 RD |
15992 | return resultobj; |
15993 | fail: | |
15994 | return NULL; | |
15995 | } | |
15996 | ||
15997 | ||
15998 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15999 | PyObject *resultobj; | |
16000 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16001 | bool arg2 ; | |
16002 | PyObject * obj0 = 0 ; | |
16003 | PyObject * obj1 = 0 ; | |
16004 | char *kwnames[] = { | |
16005 | (char *) "self",(char *) "m_altDown", NULL | |
16006 | }; | |
16007 | ||
16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16011 | arg2 = (bool) SWIG_AsBool(obj1); | |
16012 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16013 | if (arg1) (arg1)->m_altDown = arg2; |
16014 | ||
16015 | Py_INCREF(Py_None); resultobj = Py_None; | |
16016 | return resultobj; | |
16017 | fail: | |
16018 | return NULL; | |
16019 | } | |
16020 | ||
16021 | ||
16022 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16023 | PyObject *resultobj; | |
16024 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16025 | bool result; | |
16026 | PyObject * obj0 = 0 ; | |
16027 | char *kwnames[] = { | |
16028 | (char *) "self", NULL | |
16029 | }; | |
16030 | ||
16031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16034 | result = (bool) ((arg1)->m_altDown); |
16035 | ||
4f89f6a3 RD |
16036 | { |
16037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16038 | } | |
d14a1e28 RD |
16039 | return resultobj; |
16040 | fail: | |
16041 | return NULL; | |
16042 | } | |
16043 | ||
16044 | ||
16045 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16046 | PyObject *resultobj; | |
16047 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16048 | bool arg2 ; | |
16049 | PyObject * obj0 = 0 ; | |
16050 | PyObject * obj1 = 0 ; | |
16051 | char *kwnames[] = { | |
16052 | (char *) "self",(char *) "m_metaDown", NULL | |
16053 | }; | |
16054 | ||
16055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16058 | arg2 = (bool) SWIG_AsBool(obj1); | |
16059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16060 | if (arg1) (arg1)->m_metaDown = arg2; |
16061 | ||
16062 | Py_INCREF(Py_None); resultobj = Py_None; | |
16063 | return resultobj; | |
16064 | fail: | |
16065 | return NULL; | |
16066 | } | |
16067 | ||
16068 | ||
16069 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16070 | PyObject *resultobj; | |
16071 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16072 | bool result; | |
16073 | PyObject * obj0 = 0 ; | |
16074 | char *kwnames[] = { | |
16075 | (char *) "self", NULL | |
16076 | }; | |
16077 | ||
16078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16081 | result = (bool) ((arg1)->m_metaDown); |
16082 | ||
4f89f6a3 RD |
16083 | { |
16084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16085 | } | |
d14a1e28 RD |
16086 | return resultobj; |
16087 | fail: | |
16088 | return NULL; | |
16089 | } | |
16090 | ||
16091 | ||
16092 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16093 | PyObject *resultobj; | |
16094 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16095 | bool arg2 ; | |
16096 | PyObject * obj0 = 0 ; | |
16097 | PyObject * obj1 = 0 ; | |
16098 | char *kwnames[] = { | |
16099 | (char *) "self",(char *) "m_scanCode", NULL | |
16100 | }; | |
16101 | ||
16102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16105 | arg2 = (bool) SWIG_AsBool(obj1); | |
16106 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16107 | if (arg1) (arg1)->m_scanCode = arg2; |
16108 | ||
16109 | Py_INCREF(Py_None); resultobj = Py_None; | |
16110 | return resultobj; | |
16111 | fail: | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
16116 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16117 | PyObject *resultobj; | |
16118 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16119 | bool result; | |
16120 | PyObject * obj0 = 0 ; | |
16121 | char *kwnames[] = { | |
16122 | (char *) "self", NULL | |
16123 | }; | |
16124 | ||
16125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16128 | result = (bool) ((arg1)->m_scanCode); |
16129 | ||
4f89f6a3 RD |
16130 | { |
16131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16132 | } | |
d14a1e28 RD |
16133 | return resultobj; |
16134 | fail: | |
16135 | return NULL; | |
16136 | } | |
16137 | ||
16138 | ||
16139 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16140 | PyObject *resultobj; | |
16141 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16142 | unsigned int arg2 ; |
d14a1e28 RD |
16143 | PyObject * obj0 = 0 ; |
16144 | PyObject * obj1 = 0 ; | |
16145 | char *kwnames[] = { | |
16146 | (char *) "self",(char *) "m_rawCode", NULL | |
16147 | }; | |
16148 | ||
16149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16152 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16153 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16154 | if (arg1) (arg1)->m_rawCode = arg2; |
16155 | ||
16156 | Py_INCREF(Py_None); resultobj = Py_None; | |
16157 | return resultobj; | |
16158 | fail: | |
16159 | return NULL; | |
16160 | } | |
16161 | ||
16162 | ||
16163 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16164 | PyObject *resultobj; | |
16165 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16166 | unsigned int result; |
d14a1e28 RD |
16167 | PyObject * obj0 = 0 ; |
16168 | char *kwnames[] = { | |
16169 | (char *) "self", NULL | |
16170 | }; | |
16171 | ||
16172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16175 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16176 | |
15afbcd0 | 16177 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16178 | return resultobj; |
16179 | fail: | |
16180 | return NULL; | |
16181 | } | |
16182 | ||
16183 | ||
16184 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16185 | PyObject *resultobj; | |
16186 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16187 | unsigned int arg2 ; |
d14a1e28 RD |
16188 | PyObject * obj0 = 0 ; |
16189 | PyObject * obj1 = 0 ; | |
16190 | char *kwnames[] = { | |
16191 | (char *) "self",(char *) "m_rawFlags", NULL | |
16192 | }; | |
16193 | ||
16194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16197 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16198 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16199 | if (arg1) (arg1)->m_rawFlags = arg2; |
16200 | ||
16201 | Py_INCREF(Py_None); resultobj = Py_None; | |
16202 | return resultobj; | |
16203 | fail: | |
16204 | return NULL; | |
16205 | } | |
16206 | ||
16207 | ||
16208 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16209 | PyObject *resultobj; | |
16210 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16211 | unsigned int result; |
d14a1e28 RD |
16212 | PyObject * obj0 = 0 ; |
16213 | char *kwnames[] = { | |
16214 | (char *) "self", NULL | |
16215 | }; | |
16216 | ||
16217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16220 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16221 | |
15afbcd0 | 16222 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16223 | return resultobj; |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16230 | PyObject *obj; | |
16231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16232 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16233 | Py_INCREF(obj); | |
16234 | return Py_BuildValue((char *)""); | |
16235 | } | |
16236 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16237 | PyObject *resultobj; | |
16238 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16239 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16240 | int arg2 = (int) 0 ; | |
16241 | wxSizeEvent *result; | |
16242 | wxSize temp1 ; | |
16243 | PyObject * obj0 = 0 ; | |
994141e6 | 16244 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16245 | char *kwnames[] = { |
16246 | (char *) "sz",(char *) "winid", NULL | |
16247 | }; | |
16248 | ||
994141e6 | 16249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16250 | if (obj0) { |
16251 | { | |
16252 | arg1 = &temp1; | |
16253 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16254 | } | |
16255 | } | |
994141e6 | 16256 | if (obj1) { |
15afbcd0 RD |
16257 | arg2 = (int) SWIG_AsInt(obj1); |
16258 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16259 | } |
d14a1e28 RD |
16260 | { |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
15afbcd0 | 16267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16268 | return resultobj; |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
16276 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16277 | wxSize result; | |
16278 | PyObject * obj0 = 0 ; | |
16279 | char *kwnames[] = { | |
16280 | (char *) "self", NULL | |
16281 | }; | |
16282 | ||
16283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16286 | { |
16287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16288 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16289 | ||
16290 | wxPyEndAllowThreads(__tstate); | |
16291 | if (PyErr_Occurred()) SWIG_fail; | |
16292 | } | |
16293 | { | |
16294 | wxSize * resultptr; | |
16295 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16297 | } |
16298 | return resultobj; | |
16299 | fail: | |
16300 | return NULL; | |
16301 | } | |
16302 | ||
16303 | ||
16304 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16305 | PyObject *resultobj; | |
16306 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16307 | wxRect result; | |
16308 | PyObject * obj0 = 0 ; | |
16309 | char *kwnames[] = { | |
16310 | (char *) "self", NULL | |
16311 | }; | |
16312 | ||
16313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16316 | { |
16317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16318 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16319 | ||
16320 | wxPyEndAllowThreads(__tstate); | |
16321 | if (PyErr_Occurred()) SWIG_fail; | |
16322 | } | |
16323 | { | |
16324 | wxRect * resultptr; | |
16325 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16326 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16327 | } |
16328 | return resultobj; | |
16329 | fail: | |
16330 | return NULL; | |
16331 | } | |
16332 | ||
16333 | ||
16334 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16335 | PyObject *resultobj; | |
16336 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16337 | wxRect arg2 ; | |
16338 | wxRect *argp2 ; | |
16339 | PyObject * obj0 = 0 ; | |
16340 | PyObject * obj1 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self",(char *) "rect", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16348 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16349 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16350 | arg2 = *argp2; | |
d14a1e28 RD |
16351 | { |
16352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16353 | (arg1)->SetRect(arg2); | |
16354 | ||
16355 | wxPyEndAllowThreads(__tstate); | |
16356 | if (PyErr_Occurred()) SWIG_fail; | |
16357 | } | |
16358 | Py_INCREF(Py_None); resultobj = Py_None; | |
16359 | return resultobj; | |
16360 | fail: | |
16361 | return NULL; | |
16362 | } | |
16363 | ||
16364 | ||
16365 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16366 | PyObject *resultobj; | |
16367 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16368 | wxSize arg2 ; | |
16369 | wxSize *argp2 ; | |
16370 | PyObject * obj0 = 0 ; | |
16371 | PyObject * obj1 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self",(char *) "size", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16380 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16381 | arg2 = *argp2; | |
d14a1e28 RD |
16382 | { |
16383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16384 | wxSizeEvent_SetSize(arg1,arg2); | |
16385 | ||
16386 | wxPyEndAllowThreads(__tstate); | |
16387 | if (PyErr_Occurred()) SWIG_fail; | |
16388 | } | |
16389 | Py_INCREF(Py_None); resultobj = Py_None; | |
16390 | return resultobj; | |
16391 | fail: | |
16392 | return NULL; | |
16393 | } | |
16394 | ||
16395 | ||
16396 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16397 | PyObject *resultobj; | |
16398 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16399 | wxSize *arg2 = (wxSize *) 0 ; | |
16400 | PyObject * obj0 = 0 ; | |
16401 | PyObject * obj1 = 0 ; | |
16402 | char *kwnames[] = { | |
16403 | (char *) "self",(char *) "m_size", NULL | |
16404 | }; | |
16405 | ||
16406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16411 | if (arg1) (arg1)->m_size = *arg2; |
16412 | ||
16413 | Py_INCREF(Py_None); resultobj = Py_None; | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16423 | wxSize *result; | |
16424 | PyObject * obj0 = 0 ; | |
16425 | char *kwnames[] = { | |
16426 | (char *) "self", NULL | |
16427 | }; | |
16428 | ||
16429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16432 | result = (wxSize *)& ((arg1)->m_size); |
16433 | ||
15afbcd0 | 16434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16435 | return resultobj; |
16436 | fail: | |
16437 | return NULL; | |
16438 | } | |
16439 | ||
16440 | ||
16441 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16442 | PyObject *resultobj; | |
16443 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16444 | wxRect *arg2 = (wxRect *) 0 ; | |
16445 | PyObject * obj0 = 0 ; | |
16446 | PyObject * obj1 = 0 ; | |
16447 | char *kwnames[] = { | |
16448 | (char *) "self",(char *) "m_rect", NULL | |
16449 | }; | |
16450 | ||
16451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16456 | if (arg1) (arg1)->m_rect = *arg2; |
16457 | ||
16458 | Py_INCREF(Py_None); resultobj = Py_None; | |
16459 | return resultobj; | |
16460 | fail: | |
16461 | return NULL; | |
16462 | } | |
16463 | ||
16464 | ||
16465 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16466 | PyObject *resultobj; | |
16467 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16468 | wxRect *result; | |
16469 | PyObject * obj0 = 0 ; | |
16470 | char *kwnames[] = { | |
16471 | (char *) "self", NULL | |
16472 | }; | |
16473 | ||
16474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16477 | result = (wxRect *)& ((arg1)->m_rect); |
16478 | ||
15afbcd0 | 16479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16480 | return resultobj; |
16481 | fail: | |
16482 | return NULL; | |
16483 | } | |
16484 | ||
16485 | ||
16486 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16487 | PyObject *obj; | |
16488 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16489 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16490 | Py_INCREF(obj); | |
16491 | return Py_BuildValue((char *)""); | |
16492 | } | |
16493 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16494 | PyObject *resultobj; | |
16495 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16496 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16497 | int arg2 = (int) 0 ; | |
16498 | wxMoveEvent *result; | |
16499 | wxPoint temp1 ; | |
16500 | PyObject * obj0 = 0 ; | |
994141e6 | 16501 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16502 | char *kwnames[] = { |
16503 | (char *) "pos",(char *) "winid", NULL | |
16504 | }; | |
16505 | ||
994141e6 | 16506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16507 | if (obj0) { |
16508 | { | |
16509 | arg1 = &temp1; | |
16510 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16511 | } | |
16512 | } | |
994141e6 | 16513 | if (obj1) { |
15afbcd0 RD |
16514 | arg2 = (int) SWIG_AsInt(obj1); |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16516 | } |
d14a1e28 RD |
16517 | { |
16518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16519 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16520 | ||
16521 | wxPyEndAllowThreads(__tstate); | |
16522 | if (PyErr_Occurred()) SWIG_fail; | |
16523 | } | |
15afbcd0 | 16524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16525 | return resultobj; |
16526 | fail: | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
16531 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16532 | PyObject *resultobj; | |
16533 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16534 | wxPoint result; | |
16535 | PyObject * obj0 = 0 ; | |
16536 | char *kwnames[] = { | |
16537 | (char *) "self", NULL | |
16538 | }; | |
16539 | ||
16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16543 | { |
16544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16545 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16546 | ||
16547 | wxPyEndAllowThreads(__tstate); | |
16548 | if (PyErr_Occurred()) SWIG_fail; | |
16549 | } | |
16550 | { | |
16551 | wxPoint * resultptr; | |
16552 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 16553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16554 | } |
16555 | return resultobj; | |
16556 | fail: | |
16557 | return NULL; | |
16558 | } | |
16559 | ||
16560 | ||
16561 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16562 | PyObject *resultobj; | |
16563 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16564 | wxRect result; | |
16565 | PyObject * obj0 = 0 ; | |
16566 | char *kwnames[] = { | |
16567 | (char *) "self", NULL | |
16568 | }; | |
16569 | ||
16570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16573 | { |
16574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16575 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16576 | ||
16577 | wxPyEndAllowThreads(__tstate); | |
16578 | if (PyErr_Occurred()) SWIG_fail; | |
16579 | } | |
16580 | { | |
16581 | wxRect * resultptr; | |
16582 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16583 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16584 | } |
16585 | return resultobj; | |
16586 | fail: | |
16587 | return NULL; | |
16588 | } | |
16589 | ||
16590 | ||
16591 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16592 | PyObject *resultobj; | |
16593 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16594 | wxRect arg2 ; | |
16595 | wxRect *argp2 ; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | PyObject * obj1 = 0 ; | |
16598 | char *kwnames[] = { | |
16599 | (char *) "self",(char *) "rect", NULL | |
16600 | }; | |
16601 | ||
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16605 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16606 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16607 | arg2 = *argp2; | |
d14a1e28 RD |
16608 | { |
16609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16610 | (arg1)->SetRect(arg2); | |
16611 | ||
16612 | wxPyEndAllowThreads(__tstate); | |
16613 | if (PyErr_Occurred()) SWIG_fail; | |
16614 | } | |
16615 | Py_INCREF(Py_None); resultobj = Py_None; | |
16616 | return resultobj; | |
16617 | fail: | |
16618 | return NULL; | |
16619 | } | |
16620 | ||
16621 | ||
16622 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16623 | PyObject *resultobj; | |
16624 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16625 | wxPoint arg2 ; | |
16626 | wxPoint *argp2 ; | |
16627 | PyObject * obj0 = 0 ; | |
16628 | PyObject * obj1 = 0 ; | |
16629 | char *kwnames[] = { | |
16630 | (char *) "self",(char *) "pos", NULL | |
16631 | }; | |
16632 | ||
16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16636 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16637 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16638 | arg2 = *argp2; | |
d14a1e28 RD |
16639 | { |
16640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16641 | wxMoveEvent_SetPosition(arg1,arg2); | |
16642 | ||
16643 | wxPyEndAllowThreads(__tstate); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
16646 | Py_INCREF(Py_None); resultobj = Py_None; | |
16647 | return resultobj; | |
16648 | fail: | |
16649 | return NULL; | |
16650 | } | |
16651 | ||
16652 | ||
16653 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16654 | PyObject *resultobj; | |
16655 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16656 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16657 | PyObject * obj0 = 0 ; | |
16658 | PyObject * obj1 = 0 ; | |
16659 | char *kwnames[] = { | |
16660 | (char *) "self",(char *) "m_pos", NULL | |
16661 | }; | |
16662 | ||
16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16668 | if (arg1) (arg1)->m_pos = *arg2; |
16669 | ||
16670 | Py_INCREF(Py_None); resultobj = Py_None; | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | return NULL; | |
16674 | } | |
16675 | ||
16676 | ||
16677 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16678 | PyObject *resultobj; | |
16679 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16680 | wxPoint *result; | |
16681 | PyObject * obj0 = 0 ; | |
16682 | char *kwnames[] = { | |
16683 | (char *) "self", NULL | |
16684 | }; | |
16685 | ||
16686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16689 | result = (wxPoint *)& ((arg1)->m_pos); |
16690 | ||
15afbcd0 | 16691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16692 | return resultobj; |
16693 | fail: | |
16694 | return NULL; | |
16695 | } | |
16696 | ||
16697 | ||
16698 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16699 | PyObject *resultobj; | |
16700 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16701 | wxRect *arg2 = (wxRect *) 0 ; | |
16702 | PyObject * obj0 = 0 ; | |
16703 | PyObject * obj1 = 0 ; | |
16704 | char *kwnames[] = { | |
16705 | (char *) "self",(char *) "m_rect", NULL | |
16706 | }; | |
16707 | ||
16708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16713 | if (arg1) (arg1)->m_rect = *arg2; |
16714 | ||
16715 | Py_INCREF(Py_None); resultobj = Py_None; | |
16716 | return resultobj; | |
16717 | fail: | |
16718 | return NULL; | |
16719 | } | |
16720 | ||
16721 | ||
16722 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16723 | PyObject *resultobj; | |
16724 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16725 | wxRect *result; | |
16726 | PyObject * obj0 = 0 ; | |
16727 | char *kwnames[] = { | |
16728 | (char *) "self", NULL | |
16729 | }; | |
16730 | ||
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16734 | result = (wxRect *)& ((arg1)->m_rect); |
16735 | ||
15afbcd0 | 16736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16737 | return resultobj; |
16738 | fail: | |
16739 | return NULL; | |
16740 | } | |
16741 | ||
16742 | ||
16743 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16744 | PyObject *obj; | |
16745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16746 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16747 | Py_INCREF(obj); | |
16748 | return Py_BuildValue((char *)""); | |
16749 | } | |
16750 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16751 | PyObject *resultobj; | |
16752 | int arg1 = (int) 0 ; | |
16753 | wxPaintEvent *result; | |
994141e6 | 16754 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16755 | char *kwnames[] = { |
16756 | (char *) "Id", NULL | |
16757 | }; | |
16758 | ||
994141e6 RD |
16759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16760 | if (obj0) { | |
15afbcd0 RD |
16761 | arg1 = (int) SWIG_AsInt(obj0); |
16762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16763 | } |
d14a1e28 RD |
16764 | { |
16765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16766 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16767 | ||
16768 | wxPyEndAllowThreads(__tstate); | |
16769 | if (PyErr_Occurred()) SWIG_fail; | |
16770 | } | |
15afbcd0 | 16771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16772 | return resultobj; |
16773 | fail: | |
16774 | return NULL; | |
16775 | } | |
16776 | ||
16777 | ||
16778 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16779 | PyObject *obj; | |
16780 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16781 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16782 | Py_INCREF(obj); | |
16783 | return Py_BuildValue((char *)""); | |
16784 | } | |
16785 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16786 | PyObject *resultobj; | |
16787 | int arg1 = (int) 0 ; | |
16788 | wxNcPaintEvent *result; | |
994141e6 | 16789 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16790 | char *kwnames[] = { |
16791 | (char *) "winid", NULL | |
16792 | }; | |
16793 | ||
994141e6 RD |
16794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16795 | if (obj0) { | |
15afbcd0 RD |
16796 | arg1 = (int) SWIG_AsInt(obj0); |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16798 | } |
d14a1e28 RD |
16799 | { |
16800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16801 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16802 | ||
16803 | wxPyEndAllowThreads(__tstate); | |
16804 | if (PyErr_Occurred()) SWIG_fail; | |
16805 | } | |
15afbcd0 | 16806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16807 | return resultobj; |
16808 | fail: | |
16809 | return NULL; | |
16810 | } | |
16811 | ||
16812 | ||
16813 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16814 | PyObject *obj; | |
16815 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16816 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16817 | Py_INCREF(obj); | |
16818 | return Py_BuildValue((char *)""); | |
16819 | } | |
16820 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16821 | PyObject *resultobj; | |
16822 | int arg1 = (int) 0 ; | |
16823 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16824 | wxEraseEvent *result; | |
994141e6 | 16825 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16826 | PyObject * obj1 = 0 ; |
16827 | char *kwnames[] = { | |
16828 | (char *) "Id",(char *) "dc", NULL | |
16829 | }; | |
16830 | ||
994141e6 RD |
16831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16832 | if (obj0) { | |
15afbcd0 RD |
16833 | arg1 = (int) SWIG_AsInt(obj0); |
16834 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16835 | } |
d14a1e28 | 16836 | if (obj1) { |
15afbcd0 RD |
16837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16839 | } |
16840 | { | |
16841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16842 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16843 | ||
16844 | wxPyEndAllowThreads(__tstate); | |
16845 | if (PyErr_Occurred()) SWIG_fail; | |
16846 | } | |
15afbcd0 | 16847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16848 | return resultobj; |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
16854 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16855 | PyObject *resultobj; | |
16856 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16857 | wxDC *result; | |
16858 | PyObject * obj0 = 0 ; | |
16859 | char *kwnames[] = { | |
16860 | (char *) "self", NULL | |
16861 | }; | |
16862 | ||
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16866 | { |
16867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16868 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16869 | ||
16870 | wxPyEndAllowThreads(__tstate); | |
16871 | if (PyErr_Occurred()) SWIG_fail; | |
16872 | } | |
16873 | { | |
16874 | resultobj = wxPyMake_wxObject(result); | |
16875 | } | |
16876 | return resultobj; | |
16877 | fail: | |
16878 | return NULL; | |
16879 | } | |
16880 | ||
16881 | ||
16882 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16883 | PyObject *obj; | |
16884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16885 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16886 | Py_INCREF(obj); | |
16887 | return Py_BuildValue((char *)""); | |
16888 | } | |
16889 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16890 | PyObject *resultobj; | |
16891 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16892 | int arg2 = (int) 0 ; | |
16893 | wxFocusEvent *result; | |
994141e6 RD |
16894 | PyObject * obj0 = 0 ; |
16895 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16896 | char *kwnames[] = { |
16897 | (char *) "type",(char *) "winid", NULL | |
16898 | }; | |
16899 | ||
994141e6 RD |
16900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16901 | if (obj0) { | |
15afbcd0 RD |
16902 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16903 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16904 | } |
16905 | if (obj1) { | |
15afbcd0 RD |
16906 | arg2 = (int) SWIG_AsInt(obj1); |
16907 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16908 | } |
d14a1e28 RD |
16909 | { |
16910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16911 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16912 | ||
16913 | wxPyEndAllowThreads(__tstate); | |
16914 | if (PyErr_Occurred()) SWIG_fail; | |
16915 | } | |
15afbcd0 | 16916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16917 | return resultobj; |
16918 | fail: | |
16919 | return NULL; | |
16920 | } | |
16921 | ||
16922 | ||
16923 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16924 | PyObject *resultobj; | |
16925 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16926 | wxWindow *result; | |
16927 | PyObject * obj0 = 0 ; | |
16928 | char *kwnames[] = { | |
16929 | (char *) "self", NULL | |
16930 | }; | |
16931 | ||
16932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16935 | { |
16936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16937 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16938 | ||
16939 | wxPyEndAllowThreads(__tstate); | |
16940 | if (PyErr_Occurred()) SWIG_fail; | |
16941 | } | |
16942 | { | |
16943 | resultobj = wxPyMake_wxObject(result); | |
16944 | } | |
16945 | return resultobj; | |
16946 | fail: | |
16947 | return NULL; | |
16948 | } | |
16949 | ||
16950 | ||
16951 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16952 | PyObject *resultobj; | |
16953 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16954 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16955 | PyObject * obj0 = 0 ; | |
16956 | PyObject * obj1 = 0 ; | |
16957 | char *kwnames[] = { | |
16958 | (char *) "self",(char *) "win", NULL | |
16959 | }; | |
16960 | ||
16961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16966 | { |
16967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16968 | (arg1)->SetWindow(arg2); | |
16969 | ||
16970 | wxPyEndAllowThreads(__tstate); | |
16971 | if (PyErr_Occurred()) SWIG_fail; | |
16972 | } | |
16973 | Py_INCREF(Py_None); resultobj = Py_None; | |
16974 | return resultobj; | |
16975 | fail: | |
16976 | return NULL; | |
16977 | } | |
16978 | ||
16979 | ||
16980 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16981 | PyObject *obj; | |
16982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16983 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16984 | Py_INCREF(obj); | |
16985 | return Py_BuildValue((char *)""); | |
16986 | } | |
16987 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16988 | PyObject *resultobj; | |
16989 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16990 | wxChildFocusEvent *result; | |
16991 | PyObject * obj0 = 0 ; | |
16992 | char *kwnames[] = { | |
16993 | (char *) "win", NULL | |
16994 | }; | |
16995 | ||
16996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16997 | if (obj0) { | |
15afbcd0 RD |
16998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17000 | } |
17001 | { | |
17002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17003 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17004 | ||
17005 | wxPyEndAllowThreads(__tstate); | |
17006 | if (PyErr_Occurred()) SWIG_fail; | |
17007 | } | |
15afbcd0 | 17008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
17009 | return resultobj; |
17010 | fail: | |
17011 | return NULL; | |
17012 | } | |
17013 | ||
17014 | ||
17015 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17016 | PyObject *resultobj; | |
17017 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17018 | wxWindow *result; | |
17019 | PyObject * obj0 = 0 ; | |
17020 | char *kwnames[] = { | |
17021 | (char *) "self", NULL | |
17022 | }; | |
17023 | ||
17024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
17026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17027 | { |
17028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17029 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17030 | ||
17031 | wxPyEndAllowThreads(__tstate); | |
17032 | if (PyErr_Occurred()) SWIG_fail; | |
17033 | } | |
17034 | { | |
17035 | resultobj = wxPyMake_wxObject(result); | |
17036 | } | |
17037 | return resultobj; | |
17038 | fail: | |
17039 | return NULL; | |
17040 | } | |
17041 | ||
17042 | ||
17043 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17044 | PyObject *obj; | |
17045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17046 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17047 | Py_INCREF(obj); | |
17048 | return Py_BuildValue((char *)""); | |
17049 | } | |
17050 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17051 | PyObject *resultobj; | |
17052 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 17053 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17054 | int arg3 = (int) 0 ; |
17055 | wxActivateEvent *result; | |
994141e6 | 17056 | PyObject * obj0 = 0 ; |
d14a1e28 | 17057 | PyObject * obj1 = 0 ; |
994141e6 | 17058 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17059 | char *kwnames[] = { |
17060 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17061 | }; | |
17062 | ||
994141e6 RD |
17063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17064 | if (obj0) { | |
15afbcd0 RD |
17065 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17066 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17067 | } |
d14a1e28 | 17068 | if (obj1) { |
15afbcd0 RD |
17069 | arg2 = (bool) SWIG_AsBool(obj1); |
17070 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17071 | } |
17072 | if (obj2) { | |
15afbcd0 RD |
17073 | arg3 = (int) SWIG_AsInt(obj2); |
17074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17075 | } |
17076 | { | |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17079 | ||
17080 | wxPyEndAllowThreads(__tstate); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
15afbcd0 | 17083 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
17084 | return resultobj; |
17085 | fail: | |
17086 | return NULL; | |
17087 | } | |
17088 | ||
17089 | ||
17090 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17091 | PyObject *resultobj; | |
17092 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17093 | bool result; | |
17094 | PyObject * obj0 = 0 ; | |
17095 | char *kwnames[] = { | |
17096 | (char *) "self", NULL | |
17097 | }; | |
17098 | ||
17099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
17101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17102 | { |
17103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17104 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17105 | ||
17106 | wxPyEndAllowThreads(__tstate); | |
17107 | if (PyErr_Occurred()) SWIG_fail; | |
17108 | } | |
4f89f6a3 RD |
17109 | { |
17110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17111 | } | |
d14a1e28 RD |
17112 | return resultobj; |
17113 | fail: | |
17114 | return NULL; | |
17115 | } | |
17116 | ||
17117 | ||
17118 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17119 | PyObject *obj; | |
17120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17121 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17122 | Py_INCREF(obj); | |
17123 | return Py_BuildValue((char *)""); | |
17124 | } | |
17125 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17126 | PyObject *resultobj; | |
17127 | int arg1 = (int) 0 ; | |
17128 | wxInitDialogEvent *result; | |
994141e6 | 17129 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17130 | char *kwnames[] = { |
17131 | (char *) "Id", NULL | |
17132 | }; | |
17133 | ||
994141e6 RD |
17134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
17135 | if (obj0) { | |
15afbcd0 RD |
17136 | arg1 = (int) SWIG_AsInt(obj0); |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17138 | } |
d14a1e28 RD |
17139 | { |
17140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17141 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17142 | ||
17143 | wxPyEndAllowThreads(__tstate); | |
17144 | if (PyErr_Occurred()) SWIG_fail; | |
17145 | } | |
15afbcd0 | 17146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
17147 | return resultobj; |
17148 | fail: | |
17149 | return NULL; | |
17150 | } | |
17151 | ||
17152 | ||
17153 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17154 | PyObject *obj; | |
17155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17156 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17157 | Py_INCREF(obj); | |
17158 | return Py_BuildValue((char *)""); | |
17159 | } | |
17160 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17161 | PyObject *resultobj; | |
17162 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17163 | int arg2 = (int) 0 ; | |
17164 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17165 | wxMenuEvent *result; | |
994141e6 RD |
17166 | PyObject * obj0 = 0 ; |
17167 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17168 | PyObject * obj2 = 0 ; |
17169 | char *kwnames[] = { | |
17170 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17171 | }; | |
17172 | ||
994141e6 RD |
17173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17174 | if (obj0) { | |
15afbcd0 RD |
17175 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17177 | } |
17178 | if (obj1) { | |
15afbcd0 RD |
17179 | arg2 = (int) SWIG_AsInt(obj1); |
17180 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17181 | } |
d14a1e28 | 17182 | if (obj2) { |
15afbcd0 RD |
17183 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17185 | } |
17186 | { | |
17187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17188 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17189 | ||
17190 | wxPyEndAllowThreads(__tstate); | |
17191 | if (PyErr_Occurred()) SWIG_fail; | |
17192 | } | |
15afbcd0 | 17193 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17194 | return resultobj; |
17195 | fail: | |
17196 | return NULL; | |
17197 | } | |
17198 | ||
17199 | ||
17200 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17201 | PyObject *resultobj; | |
17202 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17203 | int result; | |
17204 | PyObject * obj0 = 0 ; | |
17205 | char *kwnames[] = { | |
17206 | (char *) "self", NULL | |
17207 | }; | |
17208 | ||
17209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17212 | { |
17213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17214 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17215 | ||
17216 | wxPyEndAllowThreads(__tstate); | |
17217 | if (PyErr_Occurred()) SWIG_fail; | |
17218 | } | |
15afbcd0 | 17219 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17220 | return resultobj; |
17221 | fail: | |
17222 | return NULL; | |
17223 | } | |
17224 | ||
17225 | ||
17226 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17227 | PyObject *resultobj; | |
17228 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17229 | bool result; | |
17230 | PyObject * obj0 = 0 ; | |
17231 | char *kwnames[] = { | |
17232 | (char *) "self", NULL | |
17233 | }; | |
17234 | ||
17235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17238 | { |
17239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17240 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17241 | ||
17242 | wxPyEndAllowThreads(__tstate); | |
17243 | if (PyErr_Occurred()) SWIG_fail; | |
17244 | } | |
4f89f6a3 RD |
17245 | { |
17246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17247 | } | |
d14a1e28 RD |
17248 | return resultobj; |
17249 | fail: | |
17250 | return NULL; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17255 | PyObject *resultobj; | |
17256 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17257 | wxMenu *result; | |
17258 | PyObject * obj0 = 0 ; | |
17259 | char *kwnames[] = { | |
17260 | (char *) "self", NULL | |
17261 | }; | |
17262 | ||
17263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17266 | { |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | { | |
17274 | resultobj = wxPyMake_wxObject(result); | |
17275 | } | |
17276 | return resultobj; | |
17277 | fail: | |
17278 | return NULL; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17283 | PyObject *obj; | |
17284 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17285 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17286 | Py_INCREF(obj); | |
17287 | return Py_BuildValue((char *)""); | |
17288 | } | |
17289 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj; | |
17291 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17292 | int arg2 = (int) 0 ; | |
17293 | wxCloseEvent *result; | |
994141e6 RD |
17294 | PyObject * obj0 = 0 ; |
17295 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17296 | char *kwnames[] = { |
17297 | (char *) "type",(char *) "winid", NULL | |
17298 | }; | |
17299 | ||
994141e6 RD |
17300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17301 | if (obj0) { | |
15afbcd0 RD |
17302 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17303 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17304 | } |
17305 | if (obj1) { | |
15afbcd0 RD |
17306 | arg2 = (int) SWIG_AsInt(obj1); |
17307 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17308 | } |
d14a1e28 RD |
17309 | { |
17310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17311 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17312 | ||
17313 | wxPyEndAllowThreads(__tstate); | |
17314 | if (PyErr_Occurred()) SWIG_fail; | |
17315 | } | |
15afbcd0 | 17316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17317 | return resultobj; |
17318 | fail: | |
17319 | return NULL; | |
17320 | } | |
17321 | ||
17322 | ||
17323 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17324 | PyObject *resultobj; | |
17325 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17326 | bool arg2 ; | |
17327 | PyObject * obj0 = 0 ; | |
17328 | PyObject * obj1 = 0 ; | |
17329 | char *kwnames[] = { | |
17330 | (char *) "self",(char *) "logOff", NULL | |
17331 | }; | |
17332 | ||
17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17336 | arg2 = (bool) SWIG_AsBool(obj1); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17338 | { |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | (arg1)->SetLoggingOff(arg2); | |
17341 | ||
17342 | wxPyEndAllowThreads(__tstate); | |
17343 | if (PyErr_Occurred()) SWIG_fail; | |
17344 | } | |
17345 | Py_INCREF(Py_None); resultobj = Py_None; | |
17346 | return resultobj; | |
17347 | fail: | |
17348 | return NULL; | |
17349 | } | |
17350 | ||
17351 | ||
17352 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17353 | PyObject *resultobj; | |
17354 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17355 | bool result; | |
17356 | PyObject * obj0 = 0 ; | |
17357 | char *kwnames[] = { | |
17358 | (char *) "self", NULL | |
17359 | }; | |
17360 | ||
17361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17364 | { |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17367 | ||
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
4f89f6a3 RD |
17371 | { |
17372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17373 | } | |
d14a1e28 RD |
17374 | return resultobj; |
17375 | fail: | |
17376 | return NULL; | |
17377 | } | |
17378 | ||
17379 | ||
17380 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17381 | PyObject *resultobj; | |
17382 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 17383 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17384 | PyObject * obj0 = 0 ; |
17385 | PyObject * obj1 = 0 ; | |
17386 | char *kwnames[] = { | |
17387 | (char *) "self",(char *) "veto", NULL | |
17388 | }; | |
17389 | ||
17390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17393 | if (obj1) { |
15afbcd0 RD |
17394 | arg2 = (bool) SWIG_AsBool(obj1); |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17396 | } |
17397 | { | |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | (arg1)->Veto(arg2); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | Py_INCREF(Py_None); resultobj = Py_None; | |
17405 | return resultobj; | |
17406 | fail: | |
17407 | return NULL; | |
17408 | } | |
17409 | ||
17410 | ||
17411 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17412 | PyObject *resultobj; | |
17413 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17414 | bool arg2 ; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | PyObject * obj1 = 0 ; | |
17417 | char *kwnames[] = { | |
17418 | (char *) "self",(char *) "canVeto", NULL | |
17419 | }; | |
17420 | ||
17421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17424 | arg2 = (bool) SWIG_AsBool(obj1); | |
17425 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17426 | { |
17427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17428 | (arg1)->SetCanVeto(arg2); | |
17429 | ||
17430 | wxPyEndAllowThreads(__tstate); | |
17431 | if (PyErr_Occurred()) SWIG_fail; | |
17432 | } | |
17433 | Py_INCREF(Py_None); resultobj = Py_None; | |
17434 | return resultobj; | |
17435 | fail: | |
17436 | return NULL; | |
17437 | } | |
17438 | ||
17439 | ||
17440 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17441 | PyObject *resultobj; | |
17442 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17443 | bool result; | |
17444 | PyObject * obj0 = 0 ; | |
17445 | char *kwnames[] = { | |
17446 | (char *) "self", NULL | |
17447 | }; | |
17448 | ||
17449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17452 | { |
17453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17454 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17455 | ||
17456 | wxPyEndAllowThreads(__tstate); | |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
17458 | } | |
4f89f6a3 RD |
17459 | { |
17460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17461 | } | |
d14a1e28 RD |
17462 | return resultobj; |
17463 | fail: | |
17464 | return NULL; | |
17465 | } | |
17466 | ||
17467 | ||
17468 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17469 | PyObject *resultobj; | |
17470 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17471 | bool result; | |
17472 | PyObject * obj0 = 0 ; | |
17473 | char *kwnames[] = { | |
17474 | (char *) "self", NULL | |
17475 | }; | |
17476 | ||
17477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17480 | { |
17481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17482 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17483 | ||
17484 | wxPyEndAllowThreads(__tstate); | |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
4f89f6a3 RD |
17487 | { |
17488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17489 | } | |
d14a1e28 RD |
17490 | return resultobj; |
17491 | fail: | |
17492 | return NULL; | |
17493 | } | |
17494 | ||
17495 | ||
17496 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17497 | PyObject *obj; | |
17498 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17499 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17500 | Py_INCREF(obj); | |
17501 | return Py_BuildValue((char *)""); | |
17502 | } | |
17503 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17504 | PyObject *resultobj; | |
17505 | int arg1 = (int) 0 ; | |
e811c8ce | 17506 | bool arg2 = (bool) False ; |
d14a1e28 | 17507 | wxShowEvent *result; |
994141e6 | 17508 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17509 | PyObject * obj1 = 0 ; |
17510 | char *kwnames[] = { | |
17511 | (char *) "winid",(char *) "show", NULL | |
17512 | }; | |
17513 | ||
994141e6 RD |
17514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17515 | if (obj0) { | |
15afbcd0 RD |
17516 | arg1 = (int) SWIG_AsInt(obj0); |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17518 | } |
d14a1e28 | 17519 | if (obj1) { |
15afbcd0 RD |
17520 | arg2 = (bool) SWIG_AsBool(obj1); |
17521 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17522 | } |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
15afbcd0 | 17530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17531 | return resultobj; |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
17537 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17538 | PyObject *resultobj; | |
17539 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17540 | bool arg2 ; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | PyObject * obj1 = 0 ; | |
17543 | char *kwnames[] = { | |
17544 | (char *) "self",(char *) "show", NULL | |
17545 | }; | |
17546 | ||
17547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17550 | arg2 = (bool) SWIG_AsBool(obj1); | |
17551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17552 | { |
17553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17554 | (arg1)->SetShow(arg2); | |
17555 | ||
17556 | wxPyEndAllowThreads(__tstate); | |
17557 | if (PyErr_Occurred()) SWIG_fail; | |
17558 | } | |
17559 | Py_INCREF(Py_None); resultobj = Py_None; | |
17560 | return resultobj; | |
17561 | fail: | |
17562 | return NULL; | |
17563 | } | |
17564 | ||
17565 | ||
17566 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17567 | PyObject *resultobj; | |
17568 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17569 | bool result; | |
17570 | PyObject * obj0 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17578 | { |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
4f89f6a3 RD |
17585 | { |
17586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17587 | } | |
d14a1e28 RD |
17588 | return resultobj; |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17595 | PyObject *obj; | |
17596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17597 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17598 | Py_INCREF(obj); | |
17599 | return Py_BuildValue((char *)""); | |
17600 | } | |
17601 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17602 | PyObject *resultobj; | |
17603 | int arg1 = (int) 0 ; | |
e811c8ce | 17604 | bool arg2 = (bool) True ; |
d14a1e28 | 17605 | wxIconizeEvent *result; |
994141e6 | 17606 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17607 | PyObject * obj1 = 0 ; |
17608 | char *kwnames[] = { | |
17609 | (char *) "id",(char *) "iconized", NULL | |
17610 | }; | |
17611 | ||
994141e6 RD |
17612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17613 | if (obj0) { | |
15afbcd0 RD |
17614 | arg1 = (int) SWIG_AsInt(obj0); |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17616 | } |
d14a1e28 | 17617 | if (obj1) { |
15afbcd0 RD |
17618 | arg2 = (bool) SWIG_AsBool(obj1); |
17619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17620 | } |
17621 | { | |
17622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17623 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17624 | ||
17625 | wxPyEndAllowThreads(__tstate); | |
17626 | if (PyErr_Occurred()) SWIG_fail; | |
17627 | } | |
15afbcd0 | 17628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17629 | return resultobj; |
17630 | fail: | |
17631 | return NULL; | |
17632 | } | |
17633 | ||
17634 | ||
17635 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17636 | PyObject *resultobj; | |
17637 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17638 | bool result; | |
17639 | PyObject * obj0 = 0 ; | |
17640 | char *kwnames[] = { | |
17641 | (char *) "self", NULL | |
17642 | }; | |
17643 | ||
17644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17647 | { |
17648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17649 | result = (bool)(arg1)->Iconized(); | |
17650 | ||
17651 | wxPyEndAllowThreads(__tstate); | |
17652 | if (PyErr_Occurred()) SWIG_fail; | |
17653 | } | |
4f89f6a3 RD |
17654 | { |
17655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17656 | } | |
d14a1e28 RD |
17657 | return resultobj; |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
17663 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17664 | PyObject *obj; | |
17665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17666 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17667 | Py_INCREF(obj); | |
17668 | return Py_BuildValue((char *)""); | |
17669 | } | |
17670 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17671 | PyObject *resultobj; | |
17672 | int arg1 = (int) 0 ; | |
17673 | wxMaximizeEvent *result; | |
994141e6 | 17674 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17675 | char *kwnames[] = { |
17676 | (char *) "id", NULL | |
17677 | }; | |
17678 | ||
994141e6 RD |
17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17680 | if (obj0) { | |
15afbcd0 RD |
17681 | arg1 = (int) SWIG_AsInt(obj0); |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17683 | } |
d14a1e28 RD |
17684 | { |
17685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17686 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17687 | ||
17688 | wxPyEndAllowThreads(__tstate); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | } | |
15afbcd0 | 17691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17692 | return resultobj; |
17693 | fail: | |
17694 | return NULL; | |
17695 | } | |
17696 | ||
17697 | ||
17698 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17699 | PyObject *obj; | |
17700 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17701 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17702 | Py_INCREF(obj); | |
17703 | return Py_BuildValue((char *)""); | |
17704 | } | |
17705 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17706 | PyObject *resultobj; | |
17707 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17708 | wxPoint result; | |
17709 | PyObject * obj0 = 0 ; | |
17710 | char *kwnames[] = { | |
17711 | (char *) "self", NULL | |
17712 | }; | |
17713 | ||
17714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17717 | { |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | result = (arg1)->GetPosition(); | |
17720 | ||
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
17724 | { | |
17725 | wxPoint * resultptr; | |
17726 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 17727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17728 | } |
17729 | return resultobj; | |
17730 | fail: | |
17731 | return NULL; | |
17732 | } | |
17733 | ||
17734 | ||
17735 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17736 | PyObject *resultobj; | |
17737 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17738 | int result; | |
17739 | PyObject * obj0 = 0 ; | |
17740 | char *kwnames[] = { | |
17741 | (char *) "self", NULL | |
17742 | }; | |
17743 | ||
17744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17747 | { |
17748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17749 | result = (int)(arg1)->GetNumberOfFiles(); | |
17750 | ||
17751 | wxPyEndAllowThreads(__tstate); | |
17752 | if (PyErr_Occurred()) SWIG_fail; | |
17753 | } | |
15afbcd0 | 17754 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17755 | return resultobj; |
17756 | fail: | |
17757 | return NULL; | |
17758 | } | |
17759 | ||
17760 | ||
17761 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17762 | PyObject *resultobj; | |
17763 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17764 | PyObject *result; | |
17765 | PyObject * obj0 = 0 ; | |
17766 | char *kwnames[] = { | |
17767 | (char *) "self", NULL | |
17768 | }; | |
17769 | ||
17770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17773 | { |
17774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17775 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17776 | ||
17777 | wxPyEndAllowThreads(__tstate); | |
17778 | if (PyErr_Occurred()) SWIG_fail; | |
17779 | } | |
17780 | resultobj = result; | |
17781 | return resultobj; | |
17782 | fail: | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17788 | PyObject *obj; | |
17789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17790 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17791 | Py_INCREF(obj); | |
17792 | return Py_BuildValue((char *)""); | |
17793 | } | |
17794 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17795 | PyObject *resultobj; | |
e811c8ce | 17796 | int arg1 = (int) 0 ; |
d14a1e28 | 17797 | wxUpdateUIEvent *result; |
994141e6 | 17798 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17799 | char *kwnames[] = { |
17800 | (char *) "commandId", NULL | |
17801 | }; | |
17802 | ||
994141e6 RD |
17803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17804 | if (obj0) { | |
15afbcd0 RD |
17805 | arg1 = (int) SWIG_AsInt(obj0); |
17806 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17807 | } |
d14a1e28 RD |
17808 | { |
17809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17810 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17811 | ||
17812 | wxPyEndAllowThreads(__tstate); | |
17813 | if (PyErr_Occurred()) SWIG_fail; | |
17814 | } | |
15afbcd0 | 17815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17816 | return resultobj; |
17817 | fail: | |
17818 | return NULL; | |
17819 | } | |
17820 | ||
17821 | ||
17822 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17823 | PyObject *resultobj; | |
17824 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17825 | bool result; | |
17826 | PyObject * obj0 = 0 ; | |
17827 | char *kwnames[] = { | |
17828 | (char *) "self", NULL | |
17829 | }; | |
17830 | ||
17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17834 | { |
17835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17836 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17837 | ||
17838 | wxPyEndAllowThreads(__tstate); | |
17839 | if (PyErr_Occurred()) SWIG_fail; | |
17840 | } | |
4f89f6a3 RD |
17841 | { |
17842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17843 | } | |
d14a1e28 RD |
17844 | return resultobj; |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
17850 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17851 | PyObject *resultobj; | |
17852 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17853 | bool result; | |
17854 | PyObject * obj0 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17862 | { |
17863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17864 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17865 | ||
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
4f89f6a3 RD |
17869 | { |
17870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17871 | } | |
d14a1e28 RD |
17872 | return resultobj; |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
17878 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17879 | PyObject *resultobj; | |
17880 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17881 | wxString result; | |
17882 | PyObject * obj0 = 0 ; | |
17883 | char *kwnames[] = { | |
17884 | (char *) "self", NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17890 | { |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | { | |
17898 | #if wxUSE_UNICODE | |
17899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17900 | #else | |
17901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17902 | #endif | |
17903 | } | |
17904 | return resultobj; | |
17905 | fail: | |
17906 | return NULL; | |
17907 | } | |
17908 | ||
17909 | ||
17910 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17911 | PyObject *resultobj; | |
17912 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17913 | bool result; | |
17914 | PyObject * obj0 = 0 ; | |
17915 | char *kwnames[] = { | |
17916 | (char *) "self", NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17922 | { |
17923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17924 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17925 | ||
17926 | wxPyEndAllowThreads(__tstate); | |
17927 | if (PyErr_Occurred()) SWIG_fail; | |
17928 | } | |
4f89f6a3 RD |
17929 | { |
17930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17931 | } | |
d14a1e28 RD |
17932 | return resultobj; |
17933 | fail: | |
17934 | return NULL; | |
17935 | } | |
17936 | ||
17937 | ||
17938 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17939 | PyObject *resultobj; | |
17940 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17941 | bool result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | char *kwnames[] = { | |
17944 | (char *) "self", NULL | |
17945 | }; | |
17946 | ||
17947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17950 | { |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17953 | ||
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
4f89f6a3 RD |
17957 | { |
17958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17959 | } | |
d14a1e28 RD |
17960 | return resultobj; |
17961 | fail: | |
17962 | return NULL; | |
17963 | } | |
17964 | ||
17965 | ||
17966 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17967 | PyObject *resultobj; | |
17968 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17969 | bool result; | |
17970 | PyObject * obj0 = 0 ; | |
17971 | char *kwnames[] = { | |
17972 | (char *) "self", NULL | |
17973 | }; | |
17974 | ||
17975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17978 | { |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
4f89f6a3 RD |
17985 | { |
17986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17987 | } | |
d14a1e28 RD |
17988 | return resultobj; |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17997 | bool arg2 ; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | PyObject * obj1 = 0 ; | |
18000 | char *kwnames[] = { | |
18001 | (char *) "self",(char *) "check", NULL | |
18002 | }; | |
18003 | ||
18004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18007 | arg2 = (bool) SWIG_AsBool(obj1); | |
18008 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18009 | { |
18010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18011 | (arg1)->Check(arg2); | |
18012 | ||
18013 | wxPyEndAllowThreads(__tstate); | |
18014 | if (PyErr_Occurred()) SWIG_fail; | |
18015 | } | |
18016 | Py_INCREF(Py_None); resultobj = Py_None; | |
18017 | return resultobj; | |
18018 | fail: | |
18019 | return NULL; | |
18020 | } | |
18021 | ||
18022 | ||
18023 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18024 | PyObject *resultobj; | |
18025 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18026 | bool arg2 ; | |
18027 | PyObject * obj0 = 0 ; | |
18028 | PyObject * obj1 = 0 ; | |
18029 | char *kwnames[] = { | |
18030 | (char *) "self",(char *) "enable", NULL | |
18031 | }; | |
18032 | ||
18033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18036 | arg2 = (bool) SWIG_AsBool(obj1); | |
18037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18038 | { |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | (arg1)->Enable(arg2); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
18045 | Py_INCREF(Py_None); resultobj = Py_None; | |
18046 | return resultobj; | |
18047 | fail: | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
18052 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18053 | PyObject *resultobj; | |
18054 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18055 | wxString *arg2 = 0 ; | |
e811c8ce | 18056 | bool temp2 = False ; |
d14a1e28 RD |
18057 | PyObject * obj0 = 0 ; |
18058 | PyObject * obj1 = 0 ; | |
18059 | char *kwnames[] = { | |
18060 | (char *) "self",(char *) "text", NULL | |
18061 | }; | |
18062 | ||
18063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18066 | { |
18067 | arg2 = wxString_in_helper(obj1); | |
18068 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18069 | temp2 = True; |
d14a1e28 RD |
18070 | } |
18071 | { | |
18072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18073 | (arg1)->SetText((wxString const &)*arg2); | |
18074 | ||
18075 | wxPyEndAllowThreads(__tstate); | |
18076 | if (PyErr_Occurred()) SWIG_fail; | |
18077 | } | |
18078 | Py_INCREF(Py_None); resultobj = Py_None; | |
18079 | { | |
18080 | if (temp2) | |
18081 | delete arg2; | |
18082 | } | |
18083 | return resultobj; | |
18084 | fail: | |
18085 | { | |
18086 | if (temp2) | |
18087 | delete arg2; | |
18088 | } | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18094 | PyObject *resultobj; | |
18095 | long arg1 ; | |
994141e6 | 18096 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18097 | char *kwnames[] = { |
18098 | (char *) "updateInterval", NULL | |
18099 | }; | |
18100 | ||
994141e6 | 18101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18102 | arg1 = (long) SWIG_AsLong(obj0); |
18103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18104 | { |
18105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18106 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18107 | ||
18108 | wxPyEndAllowThreads(__tstate); | |
18109 | if (PyErr_Occurred()) SWIG_fail; | |
18110 | } | |
18111 | Py_INCREF(Py_None); resultobj = Py_None; | |
18112 | return resultobj; | |
18113 | fail: | |
18114 | return NULL; | |
18115 | } | |
18116 | ||
18117 | ||
18118 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18119 | PyObject *resultobj; | |
18120 | long result; | |
18121 | char *kwnames[] = { | |
18122 | NULL | |
18123 | }; | |
18124 | ||
18125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18126 | { | |
18127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18128 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18129 | ||
18130 | wxPyEndAllowThreads(__tstate); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | } | |
15afbcd0 | 18133 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18134 | return resultobj; |
18135 | fail: | |
18136 | return NULL; | |
18137 | } | |
18138 | ||
18139 | ||
18140 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18141 | PyObject *resultobj; | |
18142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18143 | bool result; | |
18144 | PyObject * obj0 = 0 ; | |
18145 | char *kwnames[] = { | |
18146 | (char *) "win", NULL | |
18147 | }; | |
18148 | ||
18149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18152 | { |
18153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18154 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18155 | ||
18156 | wxPyEndAllowThreads(__tstate); | |
18157 | if (PyErr_Occurred()) SWIG_fail; | |
18158 | } | |
4f89f6a3 RD |
18159 | { |
18160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18161 | } | |
d14a1e28 RD |
18162 | return resultobj; |
18163 | fail: | |
18164 | return NULL; | |
18165 | } | |
18166 | ||
18167 | ||
18168 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18169 | PyObject *resultobj; | |
18170 | char *kwnames[] = { | |
18171 | NULL | |
18172 | }; | |
18173 | ||
18174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18175 | { | |
18176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18177 | wxUpdateUIEvent::ResetUpdateTime(); | |
18178 | ||
18179 | wxPyEndAllowThreads(__tstate); | |
18180 | if (PyErr_Occurred()) SWIG_fail; | |
18181 | } | |
18182 | Py_INCREF(Py_None); resultobj = Py_None; | |
18183 | return resultobj; | |
18184 | fail: | |
18185 | return NULL; | |
18186 | } | |
18187 | ||
18188 | ||
18189 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18190 | PyObject *resultobj; | |
18191 | int arg1 ; | |
994141e6 | 18192 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18193 | char *kwnames[] = { |
18194 | (char *) "mode", NULL | |
18195 | }; | |
18196 | ||
994141e6 | 18197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18198 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18199 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18200 | { |
18201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18202 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18203 | ||
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
18207 | Py_INCREF(Py_None); resultobj = Py_None; | |
18208 | return resultobj; | |
18209 | fail: | |
18210 | return NULL; | |
18211 | } | |
18212 | ||
18213 | ||
18214 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18215 | PyObject *resultobj; | |
18216 | int result; | |
18217 | char *kwnames[] = { | |
18218 | NULL | |
18219 | }; | |
18220 | ||
18221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18222 | { | |
18223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18224 | result = (int)wxUpdateUIEvent::GetMode(); | |
18225 | ||
18226 | wxPyEndAllowThreads(__tstate); | |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
18228 | } | |
15afbcd0 | 18229 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18230 | return resultobj; |
18231 | fail: | |
18232 | return NULL; | |
18233 | } | |
18234 | ||
18235 | ||
18236 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18237 | PyObject *obj; | |
18238 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18239 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18240 | Py_INCREF(obj); | |
18241 | return Py_BuildValue((char *)""); | |
18242 | } | |
18243 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18244 | PyObject *resultobj; | |
18245 | wxSysColourChangedEvent *result; | |
18246 | char *kwnames[] = { | |
18247 | NULL | |
18248 | }; | |
18249 | ||
18250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18251 | { | |
18252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18253 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18254 | ||
18255 | wxPyEndAllowThreads(__tstate); | |
18256 | if (PyErr_Occurred()) SWIG_fail; | |
18257 | } | |
15afbcd0 | 18258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18259 | return resultobj; |
18260 | fail: | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18266 | PyObject *obj; | |
18267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18268 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18269 | Py_INCREF(obj); | |
18270 | return Py_BuildValue((char *)""); | |
18271 | } | |
18272 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18273 | PyObject *resultobj; | |
e811c8ce | 18274 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18275 | wxWindow *arg2 = (wxWindow *) NULL ; |
18276 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 18277 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18278 | PyObject * obj1 = 0 ; |
18279 | char *kwnames[] = { | |
18280 | (char *) "winid",(char *) "gainedCapture", NULL | |
18281 | }; | |
18282 | ||
994141e6 RD |
18283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18284 | if (obj0) { | |
15afbcd0 RD |
18285 | arg1 = (int) SWIG_AsInt(obj0); |
18286 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18287 | } |
d14a1e28 | 18288 | if (obj1) { |
15afbcd0 RD |
18289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18291 | } |
18292 | { | |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
15afbcd0 | 18299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18300 | return resultobj; |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
18306 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18307 | PyObject *resultobj; | |
18308 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18309 | wxWindow *result; | |
18310 | PyObject * obj0 = 0 ; | |
18311 | char *kwnames[] = { | |
18312 | (char *) "self", NULL | |
18313 | }; | |
18314 | ||
18315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18318 | { |
18319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18320 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18321 | ||
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | resultobj = wxPyMake_wxObject(result); | |
18327 | } | |
18328 | return resultobj; | |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18335 | PyObject *obj; | |
18336 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18337 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18338 | Py_INCREF(obj); | |
18339 | return Py_BuildValue((char *)""); | |
18340 | } | |
18341 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18342 | PyObject *resultobj; | |
18343 | wxDisplayChangedEvent *result; | |
18344 | char *kwnames[] = { | |
18345 | NULL | |
18346 | }; | |
18347 | ||
18348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18349 | { | |
18350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18351 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18352 | ||
18353 | wxPyEndAllowThreads(__tstate); | |
18354 | if (PyErr_Occurred()) SWIG_fail; | |
18355 | } | |
15afbcd0 | 18356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18357 | return resultobj; |
18358 | fail: | |
18359 | return NULL; | |
18360 | } | |
18361 | ||
18362 | ||
18363 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18364 | PyObject *obj; | |
18365 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18366 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18367 | Py_INCREF(obj); | |
18368 | return Py_BuildValue((char *)""); | |
18369 | } | |
18370 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18371 | PyObject *resultobj; | |
e811c8ce | 18372 | int arg1 = (int) 0 ; |
d14a1e28 | 18373 | wxPaletteChangedEvent *result; |
994141e6 | 18374 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18375 | char *kwnames[] = { |
18376 | (char *) "id", NULL | |
18377 | }; | |
18378 | ||
994141e6 RD |
18379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18380 | if (obj0) { | |
15afbcd0 RD |
18381 | arg1 = (int) SWIG_AsInt(obj0); |
18382 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18383 | } |
d14a1e28 RD |
18384 | { |
18385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18386 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18387 | ||
18388 | wxPyEndAllowThreads(__tstate); | |
18389 | if (PyErr_Occurred()) SWIG_fail; | |
18390 | } | |
15afbcd0 | 18391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18392 | return resultobj; |
18393 | fail: | |
18394 | return NULL; | |
18395 | } | |
18396 | ||
18397 | ||
18398 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18399 | PyObject *resultobj; | |
18400 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18401 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18402 | PyObject * obj0 = 0 ; | |
18403 | PyObject * obj1 = 0 ; | |
18404 | char *kwnames[] = { | |
18405 | (char *) "self",(char *) "win", NULL | |
18406 | }; | |
18407 | ||
18408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18413 | { |
18414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18415 | (arg1)->SetChangedWindow(arg2); | |
18416 | ||
18417 | wxPyEndAllowThreads(__tstate); | |
18418 | if (PyErr_Occurred()) SWIG_fail; | |
18419 | } | |
18420 | Py_INCREF(Py_None); resultobj = Py_None; | |
18421 | return resultobj; | |
18422 | fail: | |
18423 | return NULL; | |
18424 | } | |
18425 | ||
18426 | ||
18427 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18428 | PyObject *resultobj; | |
18429 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18430 | wxWindow *result; | |
18431 | PyObject * obj0 = 0 ; | |
18432 | char *kwnames[] = { | |
18433 | (char *) "self", NULL | |
18434 | }; | |
18435 | ||
18436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18439 | { |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
18446 | { | |
18447 | resultobj = wxPyMake_wxObject(result); | |
18448 | } | |
18449 | return resultobj; | |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18456 | PyObject *obj; | |
18457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18458 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18459 | Py_INCREF(obj); | |
18460 | return Py_BuildValue((char *)""); | |
18461 | } | |
18462 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18463 | PyObject *resultobj; | |
e811c8ce | 18464 | int arg1 = (int) 0 ; |
d14a1e28 | 18465 | wxQueryNewPaletteEvent *result; |
994141e6 | 18466 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18467 | char *kwnames[] = { |
18468 | (char *) "winid", NULL | |
18469 | }; | |
18470 | ||
994141e6 RD |
18471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18472 | if (obj0) { | |
15afbcd0 RD |
18473 | arg1 = (int) SWIG_AsInt(obj0); |
18474 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18475 | } |
d14a1e28 RD |
18476 | { |
18477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18478 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18479 | ||
18480 | wxPyEndAllowThreads(__tstate); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
18482 | } | |
15afbcd0 | 18483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18484 | return resultobj; |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
18490 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj; | |
18492 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18493 | bool arg2 ; | |
18494 | PyObject * obj0 = 0 ; | |
18495 | PyObject * obj1 = 0 ; | |
18496 | char *kwnames[] = { | |
18497 | (char *) "self",(char *) "realized", NULL | |
18498 | }; | |
18499 | ||
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18503 | arg2 = (bool) SWIG_AsBool(obj1); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18505 | { |
18506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18507 | (arg1)->SetPaletteRealized(arg2); | |
18508 | ||
18509 | wxPyEndAllowThreads(__tstate); | |
18510 | if (PyErr_Occurred()) SWIG_fail; | |
18511 | } | |
18512 | Py_INCREF(Py_None); resultobj = Py_None; | |
18513 | return resultobj; | |
18514 | fail: | |
18515 | return NULL; | |
18516 | } | |
18517 | ||
18518 | ||
18519 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18520 | PyObject *resultobj; | |
18521 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18522 | bool result; | |
18523 | PyObject * obj0 = 0 ; | |
18524 | char *kwnames[] = { | |
18525 | (char *) "self", NULL | |
18526 | }; | |
18527 | ||
18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18531 | { |
18532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18533 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18534 | ||
18535 | wxPyEndAllowThreads(__tstate); | |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
18537 | } | |
4f89f6a3 RD |
18538 | { |
18539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18540 | } | |
d14a1e28 RD |
18541 | return resultobj; |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
18547 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18548 | PyObject *obj; | |
18549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18550 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18551 | Py_INCREF(obj); | |
18552 | return Py_BuildValue((char *)""); | |
18553 | } | |
18554 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18555 | PyObject *resultobj; | |
18556 | wxNavigationKeyEvent *result; | |
18557 | char *kwnames[] = { | |
18558 | NULL | |
18559 | }; | |
18560 | ||
18561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18562 | { | |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18565 | ||
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
15afbcd0 | 18569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18570 | return resultobj; |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18579 | bool result; | |
18580 | PyObject * obj0 = 0 ; | |
18581 | char *kwnames[] = { | |
18582 | (char *) "self", NULL | |
18583 | }; | |
18584 | ||
18585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18588 | { |
18589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18590 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18591 | ||
18592 | wxPyEndAllowThreads(__tstate); | |
18593 | if (PyErr_Occurred()) SWIG_fail; | |
18594 | } | |
4f89f6a3 RD |
18595 | { |
18596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18597 | } | |
d14a1e28 RD |
18598 | return resultobj; |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18605 | PyObject *resultobj; | |
18606 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18607 | bool arg2 ; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | PyObject * obj1 = 0 ; | |
18610 | char *kwnames[] = { | |
18611 | (char *) "self",(char *) "bForward", NULL | |
18612 | }; | |
18613 | ||
18614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18617 | arg2 = (bool) SWIG_AsBool(obj1); | |
18618 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18619 | { |
18620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18621 | (arg1)->SetDirection(arg2); | |
18622 | ||
18623 | wxPyEndAllowThreads(__tstate); | |
18624 | if (PyErr_Occurred()) SWIG_fail; | |
18625 | } | |
18626 | Py_INCREF(Py_None); resultobj = Py_None; | |
18627 | return resultobj; | |
18628 | fail: | |
18629 | return NULL; | |
18630 | } | |
18631 | ||
18632 | ||
18633 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18634 | PyObject *resultobj; | |
18635 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18636 | bool result; | |
18637 | PyObject * obj0 = 0 ; | |
18638 | char *kwnames[] = { | |
18639 | (char *) "self", NULL | |
18640 | }; | |
18641 | ||
18642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18645 | { |
18646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18647 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18648 | ||
18649 | wxPyEndAllowThreads(__tstate); | |
18650 | if (PyErr_Occurred()) SWIG_fail; | |
18651 | } | |
4f89f6a3 RD |
18652 | { |
18653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18654 | } | |
d14a1e28 RD |
18655 | return resultobj; |
18656 | fail: | |
18657 | return NULL; | |
18658 | } | |
18659 | ||
18660 | ||
18661 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18662 | PyObject *resultobj; | |
18663 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18664 | bool arg2 ; | |
18665 | PyObject * obj0 = 0 ; | |
18666 | PyObject * obj1 = 0 ; | |
18667 | char *kwnames[] = { | |
18668 | (char *) "self",(char *) "bIs", NULL | |
18669 | }; | |
18670 | ||
18671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18674 | arg2 = (bool) SWIG_AsBool(obj1); | |
18675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18676 | { |
18677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18678 | (arg1)->SetWindowChange(arg2); | |
18679 | ||
18680 | wxPyEndAllowThreads(__tstate); | |
18681 | if (PyErr_Occurred()) SWIG_fail; | |
18682 | } | |
18683 | Py_INCREF(Py_None); resultobj = Py_None; | |
18684 | return resultobj; | |
18685 | fail: | |
18686 | return NULL; | |
18687 | } | |
18688 | ||
18689 | ||
18690 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18691 | PyObject *resultobj; | |
18692 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18693 | wxWindow *result; | |
18694 | PyObject * obj0 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18702 | { |
18703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18704 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18705 | ||
18706 | wxPyEndAllowThreads(__tstate); | |
18707 | if (PyErr_Occurred()) SWIG_fail; | |
18708 | } | |
18709 | { | |
18710 | resultobj = wxPyMake_wxObject(result); | |
18711 | } | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
18718 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj; | |
18720 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18721 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | PyObject * obj1 = 0 ; | |
18724 | char *kwnames[] = { | |
18725 | (char *) "self",(char *) "win", NULL | |
18726 | }; | |
18727 | ||
18728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18731 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18733 | { |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | (arg1)->SetCurrentFocus(arg2); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | Py_INCREF(Py_None); resultobj = Py_None; | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
18747 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18748 | PyObject *obj; | |
18749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18750 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18751 | Py_INCREF(obj); | |
18752 | return Py_BuildValue((char *)""); | |
18753 | } | |
18754 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18755 | PyObject *resultobj; | |
18756 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18757 | wxWindowCreateEvent *result; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | char *kwnames[] = { | |
18760 | (char *) "win", NULL | |
18761 | }; | |
18762 | ||
18763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18764 | if (obj0) { | |
15afbcd0 RD |
18765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18767 | } |
18768 | { | |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18771 | ||
18772 | wxPyEndAllowThreads(__tstate); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
15afbcd0 | 18775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18776 | return resultobj; |
18777 | fail: | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
18782 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18783 | PyObject *resultobj; | |
18784 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18785 | wxWindow *result; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "self", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18794 | { |
18795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18796 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18797 | ||
18798 | wxPyEndAllowThreads(__tstate); | |
18799 | if (PyErr_Occurred()) SWIG_fail; | |
18800 | } | |
18801 | { | |
18802 | resultobj = wxPyMake_wxObject(result); | |
18803 | } | |
18804 | return resultobj; | |
18805 | fail: | |
18806 | return NULL; | |
18807 | } | |
18808 | ||
18809 | ||
18810 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18811 | PyObject *obj; | |
18812 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18813 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18814 | Py_INCREF(obj); | |
18815 | return Py_BuildValue((char *)""); | |
18816 | } | |
18817 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18818 | PyObject *resultobj; | |
18819 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18820 | wxWindowDestroyEvent *result; | |
18821 | PyObject * obj0 = 0 ; | |
18822 | char *kwnames[] = { | |
18823 | (char *) "win", NULL | |
18824 | }; | |
18825 | ||
18826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18827 | if (obj0) { | |
15afbcd0 RD |
18828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18830 | } |
18831 | { | |
18832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18833 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18834 | ||
18835 | wxPyEndAllowThreads(__tstate); | |
18836 | if (PyErr_Occurred()) SWIG_fail; | |
18837 | } | |
15afbcd0 | 18838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18839 | return resultobj; |
18840 | fail: | |
18841 | return NULL; | |
18842 | } | |
18843 | ||
18844 | ||
18845 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18846 | PyObject *resultobj; | |
18847 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18848 | wxWindow *result; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | char *kwnames[] = { | |
18851 | (char *) "self", NULL | |
18852 | }; | |
18853 | ||
18854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18857 | { |
18858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18859 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18860 | ||
18861 | wxPyEndAllowThreads(__tstate); | |
18862 | if (PyErr_Occurred()) SWIG_fail; | |
18863 | } | |
18864 | { | |
18865 | resultobj = wxPyMake_wxObject(result); | |
18866 | } | |
18867 | return resultobj; | |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
18873 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18874 | PyObject *obj; | |
18875 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18876 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18877 | Py_INCREF(obj); | |
18878 | return Py_BuildValue((char *)""); | |
18879 | } | |
18880 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18881 | PyObject *resultobj; | |
18882 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 18883 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18884 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18885 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18886 | wxContextMenuEvent *result; | |
18887 | wxPoint temp3 ; | |
994141e6 RD |
18888 | PyObject * obj0 = 0 ; |
18889 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18890 | PyObject * obj2 = 0 ; |
18891 | char *kwnames[] = { | |
18892 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18893 | }; | |
18894 | ||
994141e6 RD |
18895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18896 | if (obj0) { | |
15afbcd0 RD |
18897 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18899 | } |
18900 | if (obj1) { | |
15afbcd0 RD |
18901 | arg2 = (int) SWIG_AsInt(obj1); |
18902 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18903 | } |
d14a1e28 RD |
18904 | if (obj2) { |
18905 | { | |
18906 | arg3 = &temp3; | |
18907 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18908 | } | |
18909 | } | |
18910 | { | |
18911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18912 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18913 | ||
18914 | wxPyEndAllowThreads(__tstate); | |
18915 | if (PyErr_Occurred()) SWIG_fail; | |
18916 | } | |
15afbcd0 | 18917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18918 | return resultobj; |
18919 | fail: | |
18920 | return NULL; | |
18921 | } | |
18922 | ||
18923 | ||
18924 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18925 | PyObject *resultobj; | |
18926 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18927 | wxPoint *result; | |
18928 | PyObject * obj0 = 0 ; | |
18929 | char *kwnames[] = { | |
18930 | (char *) "self", NULL | |
18931 | }; | |
18932 | ||
18933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18936 | { |
18937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18938 | { | |
18939 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18940 | result = (wxPoint *) &_result_ref; | |
18941 | } | |
18942 | ||
18943 | wxPyEndAllowThreads(__tstate); | |
18944 | if (PyErr_Occurred()) SWIG_fail; | |
18945 | } | |
15afbcd0 | 18946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18947 | return resultobj; |
18948 | fail: | |
18949 | return NULL; | |
18950 | } | |
18951 | ||
18952 | ||
18953 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18954 | PyObject *resultobj; | |
18955 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18956 | wxPoint *arg2 = 0 ; | |
18957 | wxPoint temp2 ; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | PyObject * obj1 = 0 ; | |
18960 | char *kwnames[] = { | |
18961 | (char *) "self",(char *) "pos", NULL | |
18962 | }; | |
18963 | ||
18964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18967 | { |
18968 | arg2 = &temp2; | |
18969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18970 | } | |
18971 | { | |
18972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18973 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18974 | ||
18975 | wxPyEndAllowThreads(__tstate); | |
18976 | if (PyErr_Occurred()) SWIG_fail; | |
18977 | } | |
18978 | Py_INCREF(Py_None); resultobj = Py_None; | |
18979 | return resultobj; | |
18980 | fail: | |
18981 | return NULL; | |
18982 | } | |
18983 | ||
18984 | ||
18985 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18986 | PyObject *obj; | |
18987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18988 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18989 | Py_INCREF(obj); | |
18990 | return Py_BuildValue((char *)""); | |
18991 | } | |
18992 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18993 | PyObject *resultobj; | |
18994 | wxIdleEvent *result; | |
18995 | char *kwnames[] = { | |
18996 | NULL | |
18997 | }; | |
18998 | ||
18999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19000 | { | |
19001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19002 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19003 | ||
19004 | wxPyEndAllowThreads(__tstate); | |
19005 | if (PyErr_Occurred()) SWIG_fail; | |
19006 | } | |
15afbcd0 | 19007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
19008 | return resultobj; |
19009 | fail: | |
19010 | return NULL; | |
19011 | } | |
19012 | ||
19013 | ||
19014 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19015 | PyObject *resultobj; | |
19016 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 19017 | bool arg2 = (bool) True ; |
d14a1e28 RD |
19018 | PyObject * obj0 = 0 ; |
19019 | PyObject * obj1 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self",(char *) "needMore", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19027 | if (obj1) { |
15afbcd0 RD |
19028 | arg2 = (bool) SWIG_AsBool(obj1); |
19029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19030 | } |
19031 | { | |
19032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19033 | (arg1)->RequestMore(arg2); | |
19034 | ||
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | Py_INCREF(Py_None); resultobj = Py_None; | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19048 | bool result; | |
19049 | PyObject * obj0 = 0 ; | |
19050 | char *kwnames[] = { | |
19051 | (char *) "self", NULL | |
19052 | }; | |
19053 | ||
19054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19057 | { |
19058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19059 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19060 | ||
19061 | wxPyEndAllowThreads(__tstate); | |
19062 | if (PyErr_Occurred()) SWIG_fail; | |
19063 | } | |
4f89f6a3 RD |
19064 | { |
19065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19066 | } | |
d14a1e28 RD |
19067 | return resultobj; |
19068 | fail: | |
19069 | return NULL; | |
19070 | } | |
19071 | ||
19072 | ||
19073 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19074 | PyObject *resultobj; | |
19075 | int arg1 ; | |
994141e6 | 19076 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19077 | char *kwnames[] = { |
19078 | (char *) "mode", NULL | |
19079 | }; | |
19080 | ||
994141e6 | 19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
19082 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
19083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19084 | { |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
19091 | Py_INCREF(Py_None); resultobj = Py_None; | |
19092 | return resultobj; | |
19093 | fail: | |
19094 | return NULL; | |
19095 | } | |
19096 | ||
19097 | ||
19098 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19099 | PyObject *resultobj; | |
19100 | int result; | |
19101 | char *kwnames[] = { | |
19102 | NULL | |
19103 | }; | |
19104 | ||
19105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | result = (int)wxIdleEvent::GetMode(); | |
19109 | ||
19110 | wxPyEndAllowThreads(__tstate); | |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
19112 | } | |
15afbcd0 | 19113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19114 | return resultobj; |
19115 | fail: | |
19116 | return NULL; | |
19117 | } | |
19118 | ||
19119 | ||
19120 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19121 | PyObject *resultobj; | |
19122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19123 | bool result; | |
19124 | PyObject * obj0 = 0 ; | |
19125 | char *kwnames[] = { | |
19126 | (char *) "win", NULL | |
19127 | }; | |
19128 | ||
19129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19132 | { |
19133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19134 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19135 | ||
19136 | wxPyEndAllowThreads(__tstate); | |
19137 | if (PyErr_Occurred()) SWIG_fail; | |
19138 | } | |
4f89f6a3 RD |
19139 | { |
19140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19141 | } | |
d14a1e28 RD |
19142 | return resultobj; |
19143 | fail: | |
19144 | return NULL; | |
19145 | } | |
19146 | ||
19147 | ||
19148 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19149 | PyObject *obj; | |
19150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19151 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19152 | Py_INCREF(obj); | |
19153 | return Py_BuildValue((char *)""); | |
19154 | } | |
19155 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19156 | PyObject *resultobj; | |
19157 | int arg1 = (int) 0 ; | |
19158 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19159 | wxPyEvent *result; | |
994141e6 RD |
19160 | PyObject * obj0 = 0 ; |
19161 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19162 | char *kwnames[] = { |
19163 | (char *) "winid",(char *) "commandType", NULL | |
19164 | }; | |
19165 | ||
994141e6 RD |
19166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19167 | if (obj0) { | |
15afbcd0 RD |
19168 | arg1 = (int) SWIG_AsInt(obj0); |
19169 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19170 | } |
19171 | if (obj1) { | |
15afbcd0 RD |
19172 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19173 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19174 | } |
d14a1e28 RD |
19175 | { |
19176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19177 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19178 | ||
19179 | wxPyEndAllowThreads(__tstate); | |
19180 | if (PyErr_Occurred()) SWIG_fail; | |
19181 | } | |
15afbcd0 | 19182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19183 | return resultobj; |
19184 | fail: | |
19185 | return NULL; | |
19186 | } | |
19187 | ||
19188 | ||
19189 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19190 | PyObject *resultobj; | |
19191 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19192 | PyObject * obj0 = 0 ; | |
19193 | char *kwnames[] = { | |
19194 | (char *) "self", NULL | |
19195 | }; | |
19196 | ||
19197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19200 | { |
19201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19202 | delete arg1; | |
19203 | ||
19204 | wxPyEndAllowThreads(__tstate); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | } | |
19207 | Py_INCREF(Py_None); resultobj = Py_None; | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
19214 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19215 | PyObject *resultobj; | |
19216 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19217 | PyObject *arg2 = (PyObject *) 0 ; | |
19218 | PyObject * obj0 = 0 ; | |
19219 | PyObject * obj1 = 0 ; | |
19220 | char *kwnames[] = { | |
19221 | (char *) "self",(char *) "self", NULL | |
19222 | }; | |
19223 | ||
19224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19227 | arg2 = obj1; |
19228 | { | |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | (arg1)->SetSelf(arg2); | |
19231 | ||
19232 | wxPyEndAllowThreads(__tstate); | |
19233 | if (PyErr_Occurred()) SWIG_fail; | |
19234 | } | |
19235 | Py_INCREF(Py_None); resultobj = Py_None; | |
19236 | return resultobj; | |
19237 | fail: | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
19242 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19243 | PyObject *resultobj; | |
19244 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19245 | PyObject *result; | |
19246 | PyObject * obj0 = 0 ; | |
19247 | char *kwnames[] = { | |
19248 | (char *) "self", NULL | |
19249 | }; | |
19250 | ||
19251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19254 | { |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | result = (PyObject *)(arg1)->GetSelf(); | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
19261 | resultobj = result; | |
19262 | return resultobj; | |
19263 | fail: | |
19264 | return NULL; | |
19265 | } | |
19266 | ||
19267 | ||
19268 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19269 | PyObject *obj; | |
19270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19271 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19272 | Py_INCREF(obj); | |
19273 | return Py_BuildValue((char *)""); | |
19274 | } | |
19275 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19276 | PyObject *resultobj; | |
19277 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19278 | int arg2 = (int) 0 ; | |
19279 | wxPyCommandEvent *result; | |
994141e6 RD |
19280 | PyObject * obj0 = 0 ; |
19281 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19282 | char *kwnames[] = { |
19283 | (char *) "commandType",(char *) "id", NULL | |
19284 | }; | |
19285 | ||
994141e6 RD |
19286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19287 | if (obj0) { | |
15afbcd0 RD |
19288 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19289 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19290 | } |
19291 | if (obj1) { | |
15afbcd0 RD |
19292 | arg2 = (int) SWIG_AsInt(obj1); |
19293 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19294 | } |
d14a1e28 RD |
19295 | { |
19296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19297 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19298 | ||
19299 | wxPyEndAllowThreads(__tstate); | |
19300 | if (PyErr_Occurred()) SWIG_fail; | |
19301 | } | |
15afbcd0 | 19302 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19303 | return resultobj; |
19304 | fail: | |
19305 | return NULL; | |
19306 | } | |
19307 | ||
19308 | ||
19309 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19310 | PyObject *resultobj; | |
19311 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19312 | PyObject * obj0 = 0 ; | |
19313 | char *kwnames[] = { | |
19314 | (char *) "self", NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19320 | { |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | delete arg1; | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | Py_INCREF(Py_None); resultobj = Py_None; | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
19334 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19335 | PyObject *resultobj; | |
19336 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19337 | PyObject *arg2 = (PyObject *) 0 ; | |
19338 | PyObject * obj0 = 0 ; | |
19339 | PyObject * obj1 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "self",(char *) "self", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19347 | arg2 = obj1; |
19348 | { | |
19349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19350 | (arg1)->SetSelf(arg2); | |
19351 | ||
19352 | wxPyEndAllowThreads(__tstate); | |
19353 | if (PyErr_Occurred()) SWIG_fail; | |
19354 | } | |
19355 | Py_INCREF(Py_None); resultobj = Py_None; | |
19356 | return resultobj; | |
19357 | fail: | |
19358 | return NULL; | |
19359 | } | |
19360 | ||
19361 | ||
19362 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19363 | PyObject *resultobj; | |
19364 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19365 | PyObject *result; | |
19366 | PyObject * obj0 = 0 ; | |
19367 | char *kwnames[] = { | |
19368 | (char *) "self", NULL | |
19369 | }; | |
19370 | ||
19371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19374 | { |
19375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19376 | result = (PyObject *)(arg1)->GetSelf(); | |
19377 | ||
19378 | wxPyEndAllowThreads(__tstate); | |
19379 | if (PyErr_Occurred()) SWIG_fail; | |
19380 | } | |
19381 | resultobj = result; | |
19382 | return resultobj; | |
19383 | fail: | |
19384 | return NULL; | |
19385 | } | |
19386 | ||
19387 | ||
19388 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19389 | PyObject *obj; | |
19390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19391 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19392 | Py_INCREF(obj); | |
19393 | return Py_BuildValue((char *)""); | |
19394 | } | |
19395 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19396 | PyObject *resultobj; | |
19397 | wxPyApp *result; | |
19398 | char *kwnames[] = { | |
19399 | NULL | |
19400 | }; | |
19401 | ||
19402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19403 | { | |
19404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19405 | result = (wxPyApp *)new_wxPyApp(); | |
19406 | ||
19407 | wxPyEndAllowThreads(__tstate); | |
19408 | if (PyErr_Occurred()) SWIG_fail; | |
19409 | } | |
19410 | { | |
19411 | resultobj = wxPyMake_wxObject(result); | |
19412 | } | |
19413 | return resultobj; | |
19414 | fail: | |
19415 | return NULL; | |
19416 | } | |
19417 | ||
19418 | ||
19419 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19420 | PyObject *resultobj; | |
19421 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19422 | PyObject * obj0 = 0 ; | |
19423 | char *kwnames[] = { | |
19424 | (char *) "self", NULL | |
19425 | }; | |
19426 | ||
19427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19430 | { |
19431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19432 | delete arg1; | |
19433 | ||
19434 | wxPyEndAllowThreads(__tstate); | |
19435 | if (PyErr_Occurred()) SWIG_fail; | |
19436 | } | |
19437 | Py_INCREF(Py_None); resultobj = Py_None; | |
19438 | return resultobj; | |
19439 | fail: | |
19440 | return NULL; | |
19441 | } | |
19442 | ||
19443 | ||
19444 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19445 | PyObject *resultobj; | |
19446 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19447 | PyObject *arg2 = (PyObject *) 0 ; | |
19448 | PyObject *arg3 = (PyObject *) 0 ; | |
19449 | PyObject * obj0 = 0 ; | |
19450 | PyObject * obj1 = 0 ; | |
19451 | PyObject * obj2 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19454 | }; | |
19455 | ||
19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19459 | arg2 = obj1; |
19460 | arg3 = obj2; | |
19461 | { | |
19462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19463 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19464 | ||
19465 | wxPyEndAllowThreads(__tstate); | |
19466 | if (PyErr_Occurred()) SWIG_fail; | |
19467 | } | |
19468 | Py_INCREF(Py_None); resultobj = Py_None; | |
19469 | return resultobj; | |
19470 | fail: | |
19471 | return NULL; | |
19472 | } | |
19473 | ||
19474 | ||
19475 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19476 | PyObject *resultobj; | |
19477 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19478 | wxString result; | |
19479 | PyObject * obj0 = 0 ; | |
19480 | char *kwnames[] = { | |
19481 | (char *) "self", NULL | |
19482 | }; | |
19483 | ||
19484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19487 | { |
19488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19489 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19490 | ||
19491 | wxPyEndAllowThreads(__tstate); | |
19492 | if (PyErr_Occurred()) SWIG_fail; | |
19493 | } | |
19494 | { | |
19495 | #if wxUSE_UNICODE | |
19496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19497 | #else | |
19498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19499 | #endif | |
19500 | } | |
19501 | return resultobj; | |
19502 | fail: | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
19507 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19508 | PyObject *resultobj; | |
19509 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19510 | wxString *arg2 = 0 ; | |
e811c8ce | 19511 | bool temp2 = False ; |
d14a1e28 RD |
19512 | PyObject * obj0 = 0 ; |
19513 | PyObject * obj1 = 0 ; | |
19514 | char *kwnames[] = { | |
19515 | (char *) "self",(char *) "name", NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19521 | { |
19522 | arg2 = wxString_in_helper(obj1); | |
19523 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19524 | temp2 = True; |
d14a1e28 RD |
19525 | } |
19526 | { | |
19527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19528 | (arg1)->SetAppName((wxString const &)*arg2); | |
19529 | ||
19530 | wxPyEndAllowThreads(__tstate); | |
19531 | if (PyErr_Occurred()) SWIG_fail; | |
19532 | } | |
19533 | Py_INCREF(Py_None); resultobj = Py_None; | |
19534 | { | |
19535 | if (temp2) | |
19536 | delete arg2; | |
19537 | } | |
19538 | return resultobj; | |
19539 | fail: | |
19540 | { | |
19541 | if (temp2) | |
19542 | delete arg2; | |
19543 | } | |
19544 | return NULL; | |
19545 | } | |
19546 | ||
19547 | ||
19548 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19549 | PyObject *resultobj; | |
19550 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19551 | wxString result; | |
19552 | PyObject * obj0 = 0 ; | |
19553 | char *kwnames[] = { | |
19554 | (char *) "self", NULL | |
19555 | }; | |
19556 | ||
19557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19560 | { |
19561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19562 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19563 | ||
19564 | wxPyEndAllowThreads(__tstate); | |
19565 | if (PyErr_Occurred()) SWIG_fail; | |
19566 | } | |
19567 | { | |
19568 | #if wxUSE_UNICODE | |
19569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19570 | #else | |
19571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19572 | #endif | |
19573 | } | |
19574 | return resultobj; | |
19575 | fail: | |
19576 | return NULL; | |
19577 | } | |
19578 | ||
19579 | ||
19580 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19581 | PyObject *resultobj; | |
19582 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19583 | wxString *arg2 = 0 ; | |
e811c8ce | 19584 | bool temp2 = False ; |
d14a1e28 RD |
19585 | PyObject * obj0 = 0 ; |
19586 | PyObject * obj1 = 0 ; | |
19587 | char *kwnames[] = { | |
19588 | (char *) "self",(char *) "name", NULL | |
19589 | }; | |
19590 | ||
19591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19594 | { |
19595 | arg2 = wxString_in_helper(obj1); | |
19596 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19597 | temp2 = True; |
d14a1e28 RD |
19598 | } |
19599 | { | |
19600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19601 | (arg1)->SetClassName((wxString const &)*arg2); | |
19602 | ||
19603 | wxPyEndAllowThreads(__tstate); | |
19604 | if (PyErr_Occurred()) SWIG_fail; | |
19605 | } | |
19606 | Py_INCREF(Py_None); resultobj = Py_None; | |
19607 | { | |
19608 | if (temp2) | |
19609 | delete arg2; | |
19610 | } | |
19611 | return resultobj; | |
19612 | fail: | |
19613 | { | |
19614 | if (temp2) | |
19615 | delete arg2; | |
19616 | } | |
19617 | return NULL; | |
19618 | } | |
19619 | ||
19620 | ||
19621 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19622 | PyObject *resultobj; | |
19623 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19624 | wxString *result; | |
19625 | PyObject * obj0 = 0 ; | |
19626 | char *kwnames[] = { | |
19627 | (char *) "self", NULL | |
19628 | }; | |
19629 | ||
19630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19633 | { |
19634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19635 | { | |
19636 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19637 | result = (wxString *) &_result_ref; | |
19638 | } | |
19639 | ||
19640 | wxPyEndAllowThreads(__tstate); | |
19641 | if (PyErr_Occurred()) SWIG_fail; | |
19642 | } | |
cc6dd355 RD |
19643 | { |
19644 | #if wxUSE_UNICODE | |
19645 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19646 | #else | |
19647 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19648 | #endif | |
19649 | } | |
d14a1e28 RD |
19650 | return resultobj; |
19651 | fail: | |
19652 | return NULL; | |
19653 | } | |
19654 | ||
19655 | ||
19656 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19657 | PyObject *resultobj; | |
19658 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19659 | wxString *arg2 = 0 ; | |
e811c8ce | 19660 | bool temp2 = False ; |
d14a1e28 RD |
19661 | PyObject * obj0 = 0 ; |
19662 | PyObject * obj1 = 0 ; | |
19663 | char *kwnames[] = { | |
19664 | (char *) "self",(char *) "name", NULL | |
19665 | }; | |
19666 | ||
19667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19670 | { |
19671 | arg2 = wxString_in_helper(obj1); | |
19672 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19673 | temp2 = True; |
d14a1e28 RD |
19674 | } |
19675 | { | |
19676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19677 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19678 | ||
19679 | wxPyEndAllowThreads(__tstate); | |
19680 | if (PyErr_Occurred()) SWIG_fail; | |
19681 | } | |
19682 | Py_INCREF(Py_None); resultobj = Py_None; | |
19683 | { | |
19684 | if (temp2) | |
19685 | delete arg2; | |
19686 | } | |
19687 | return resultobj; | |
19688 | fail: | |
19689 | { | |
19690 | if (temp2) | |
19691 | delete arg2; | |
19692 | } | |
19693 | return NULL; | |
19694 | } | |
19695 | ||
19696 | ||
19697 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19698 | PyObject *resultobj; | |
19699 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19700 | wxAppTraits *result; | |
19701 | PyObject * obj0 = 0 ; | |
19702 | char *kwnames[] = { | |
19703 | (char *) "self", NULL | |
19704 | }; | |
19705 | ||
19706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19709 | { |
19710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19711 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19712 | ||
19713 | wxPyEndAllowThreads(__tstate); | |
19714 | if (PyErr_Occurred()) SWIG_fail; | |
19715 | } | |
15afbcd0 | 19716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19717 | return resultobj; |
19718 | fail: | |
19719 | return NULL; | |
19720 | } | |
19721 | ||
19722 | ||
19723 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19724 | PyObject *resultobj; | |
19725 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19726 | PyObject * obj0 = 0 ; | |
19727 | char *kwnames[] = { | |
19728 | (char *) "self", NULL | |
19729 | }; | |
19730 | ||
19731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19734 | { |
19735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19736 | (arg1)->ProcessPendingEvents(); | |
19737 | ||
19738 | wxPyEndAllowThreads(__tstate); | |
19739 | if (PyErr_Occurred()) SWIG_fail; | |
19740 | } | |
19741 | Py_INCREF(Py_None); resultobj = Py_None; | |
19742 | return resultobj; | |
19743 | fail: | |
19744 | return NULL; | |
19745 | } | |
19746 | ||
19747 | ||
19748 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19749 | PyObject *resultobj; | |
19750 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 19751 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19752 | bool result; |
19753 | PyObject * obj0 = 0 ; | |
19754 | PyObject * obj1 = 0 ; | |
19755 | char *kwnames[] = { | |
19756 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19757 | }; | |
19758 | ||
19759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19762 | if (obj1) { |
15afbcd0 RD |
19763 | arg2 = (bool) SWIG_AsBool(obj1); |
19764 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19765 | } |
19766 | { | |
19767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19768 | result = (bool)(arg1)->Yield(arg2); | |
19769 | ||
19770 | wxPyEndAllowThreads(__tstate); | |
19771 | if (PyErr_Occurred()) SWIG_fail; | |
19772 | } | |
4f89f6a3 RD |
19773 | { |
19774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19775 | } | |
d14a1e28 RD |
19776 | return resultobj; |
19777 | fail: | |
19778 | return NULL; | |
19779 | } | |
19780 | ||
19781 | ||
19782 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19783 | PyObject *resultobj; | |
19784 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19785 | PyObject * obj0 = 0 ; | |
19786 | char *kwnames[] = { | |
19787 | (char *) "self", NULL | |
19788 | }; | |
19789 | ||
19790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19793 | { |
19794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19795 | (arg1)->WakeUpIdle(); | |
19796 | ||
19797 | wxPyEndAllowThreads(__tstate); | |
19798 | if (PyErr_Occurred()) SWIG_fail; | |
19799 | } | |
19800 | Py_INCREF(Py_None); resultobj = Py_None; | |
19801 | return resultobj; | |
19802 | fail: | |
19803 | return NULL; | |
19804 | } | |
19805 | ||
19806 | ||
19807 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19808 | PyObject *resultobj; | |
19809 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19810 | int result; | |
19811 | PyObject * obj0 = 0 ; | |
19812 | char *kwnames[] = { | |
19813 | (char *) "self", NULL | |
19814 | }; | |
19815 | ||
19816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19819 | { |
19820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19821 | result = (int)(arg1)->MainLoop(); | |
19822 | ||
19823 | wxPyEndAllowThreads(__tstate); | |
19824 | if (PyErr_Occurred()) SWIG_fail; | |
19825 | } | |
15afbcd0 | 19826 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19827 | return resultobj; |
19828 | fail: | |
19829 | return NULL; | |
19830 | } | |
19831 | ||
19832 | ||
19833 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19834 | PyObject *resultobj; | |
19835 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19836 | PyObject * obj0 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19844 | { |
19845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19846 | (arg1)->Exit(); | |
19847 | ||
19848 | wxPyEndAllowThreads(__tstate); | |
19849 | if (PyErr_Occurred()) SWIG_fail; | |
19850 | } | |
19851 | Py_INCREF(Py_None); resultobj = Py_None; | |
19852 | return resultobj; | |
19853 | fail: | |
19854 | return NULL; | |
19855 | } | |
19856 | ||
19857 | ||
19858 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19859 | PyObject *resultobj; | |
19860 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19861 | PyObject * obj0 = 0 ; | |
19862 | char *kwnames[] = { | |
19863 | (char *) "self", NULL | |
19864 | }; | |
19865 | ||
19866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19869 | { |
19870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19871 | (arg1)->ExitMainLoop(); | |
19872 | ||
19873 | wxPyEndAllowThreads(__tstate); | |
19874 | if (PyErr_Occurred()) SWIG_fail; | |
19875 | } | |
19876 | Py_INCREF(Py_None); resultobj = Py_None; | |
19877 | return resultobj; | |
19878 | fail: | |
19879 | return NULL; | |
19880 | } | |
19881 | ||
19882 | ||
19883 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19884 | PyObject *resultobj; | |
19885 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19886 | bool result; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | char *kwnames[] = { | |
19889 | (char *) "self", NULL | |
19890 | }; | |
19891 | ||
19892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19895 | { |
19896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19897 | result = (bool)(arg1)->Pending(); | |
19898 | ||
19899 | wxPyEndAllowThreads(__tstate); | |
19900 | if (PyErr_Occurred()) SWIG_fail; | |
19901 | } | |
4f89f6a3 RD |
19902 | { |
19903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19904 | } | |
d14a1e28 RD |
19905 | return resultobj; |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19912 | PyObject *resultobj; | |
19913 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19914 | bool result; | |
19915 | PyObject * obj0 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self", NULL | |
19918 | }; | |
19919 | ||
19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19923 | { |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | result = (bool)(arg1)->Dispatch(); | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
4f89f6a3 RD |
19930 | { |
19931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19932 | } | |
d14a1e28 RD |
19933 | return resultobj; |
19934 | fail: | |
19935 | return NULL; | |
19936 | } | |
19937 | ||
19938 | ||
19939 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19940 | PyObject *resultobj; | |
19941 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19942 | bool result; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19951 | { |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = (bool)(arg1)->ProcessIdle(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
4f89f6a3 RD |
19958 | { |
19959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19960 | } | |
d14a1e28 RD |
19961 | return resultobj; |
19962 | fail: | |
19963 | return NULL; | |
19964 | } | |
19965 | ||
19966 | ||
19967 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19968 | PyObject *resultobj; | |
19969 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19970 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19971 | wxIdleEvent *arg3 = 0 ; | |
19972 | bool result; | |
19973 | PyObject * obj0 = 0 ; | |
19974 | PyObject * obj1 = 0 ; | |
19975 | PyObject * obj2 = 0 ; | |
19976 | char *kwnames[] = { | |
19977 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19978 | }; | |
19979 | ||
19980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19983 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19985 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19987 | SWIG_fail; | |
d14a1e28 | 19988 | if (arg3 == NULL) { |
15afbcd0 RD |
19989 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19990 | SWIG_fail; | |
d14a1e28 RD |
19991 | } |
19992 | { | |
19993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19994 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19995 | ||
19996 | wxPyEndAllowThreads(__tstate); | |
19997 | if (PyErr_Occurred()) SWIG_fail; | |
19998 | } | |
4f89f6a3 RD |
19999 | { |
20000 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20001 | } | |
d14a1e28 RD |
20002 | return resultobj; |
20003 | fail: | |
20004 | return NULL; | |
20005 | } | |
20006 | ||
20007 | ||
d14a1e28 RD |
20008 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
20009 | PyObject *resultobj; | |
20010 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20011 | bool result; | |
20012 | PyObject * obj0 = 0 ; | |
20013 | char *kwnames[] = { | |
20014 | (char *) "self", NULL | |
20015 | }; | |
20016 | ||
20017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20020 | { |
20021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20022 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20023 | ||
20024 | wxPyEndAllowThreads(__tstate); | |
20025 | if (PyErr_Occurred()) SWIG_fail; | |
20026 | } | |
4f89f6a3 RD |
20027 | { |
20028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20029 | } | |
d14a1e28 RD |
20030 | return resultobj; |
20031 | fail: | |
20032 | return NULL; | |
20033 | } | |
20034 | ||
20035 | ||
20036 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20037 | PyObject *resultobj; | |
20038 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20039 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20040 | PyObject * obj0 = 0 ; | |
20041 | PyObject * obj1 = 0 ; | |
20042 | char *kwnames[] = { | |
20043 | (char *) "self",(char *) "win", NULL | |
20044 | }; | |
20045 | ||
20046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20049 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20051 | { |
20052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20053 | (arg1)->SetTopWindow(arg2); | |
20054 | ||
20055 | wxPyEndAllowThreads(__tstate); | |
20056 | if (PyErr_Occurred()) SWIG_fail; | |
20057 | } | |
20058 | Py_INCREF(Py_None); resultobj = Py_None; | |
20059 | return resultobj; | |
20060 | fail: | |
20061 | return NULL; | |
20062 | } | |
20063 | ||
20064 | ||
20065 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20066 | PyObject *resultobj; | |
20067 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20068 | wxWindow *result; | |
20069 | PyObject * obj0 = 0 ; | |
20070 | char *kwnames[] = { | |
20071 | (char *) "self", NULL | |
20072 | }; | |
20073 | ||
20074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20077 | { |
20078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20079 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20080 | ||
20081 | wxPyEndAllowThreads(__tstate); | |
20082 | if (PyErr_Occurred()) SWIG_fail; | |
20083 | } | |
20084 | { | |
20085 | resultobj = wxPyMake_wxObject(result); | |
20086 | } | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
20093 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20094 | PyObject *resultobj; | |
20095 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20096 | bool arg2 ; | |
20097 | PyObject * obj0 = 0 ; | |
20098 | PyObject * obj1 = 0 ; | |
20099 | char *kwnames[] = { | |
20100 | (char *) "self",(char *) "flag", NULL | |
20101 | }; | |
20102 | ||
20103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20106 | arg2 = (bool) SWIG_AsBool(obj1); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20108 | { |
20109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20110 | (arg1)->SetExitOnFrameDelete(arg2); | |
20111 | ||
20112 | wxPyEndAllowThreads(__tstate); | |
20113 | if (PyErr_Occurred()) SWIG_fail; | |
20114 | } | |
20115 | Py_INCREF(Py_None); resultobj = Py_None; | |
20116 | return resultobj; | |
20117 | fail: | |
20118 | return NULL; | |
20119 | } | |
20120 | ||
20121 | ||
20122 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20123 | PyObject *resultobj; | |
20124 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20125 | bool result; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | char *kwnames[] = { | |
20128 | (char *) "self", NULL | |
20129 | }; | |
20130 | ||
20131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20134 | { |
20135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20136 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20137 | ||
20138 | wxPyEndAllowThreads(__tstate); | |
20139 | if (PyErr_Occurred()) SWIG_fail; | |
20140 | } | |
4f89f6a3 RD |
20141 | { |
20142 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20143 | } | |
d14a1e28 RD |
20144 | return resultobj; |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj; | |
20152 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20153 | bool arg2 ; | |
20154 | PyObject * obj0 = 0 ; | |
20155 | PyObject * obj1 = 0 ; | |
20156 | char *kwnames[] = { | |
20157 | (char *) "self",(char *) "flag", NULL | |
20158 | }; | |
20159 | ||
20160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20163 | arg2 = (bool) SWIG_AsBool(obj1); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20165 | { |
20166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20167 | (arg1)->SetUseBestVisual(arg2); | |
20168 | ||
20169 | wxPyEndAllowThreads(__tstate); | |
20170 | if (PyErr_Occurred()) SWIG_fail; | |
20171 | } | |
20172 | Py_INCREF(Py_None); resultobj = Py_None; | |
20173 | return resultobj; | |
20174 | fail: | |
20175 | return NULL; | |
20176 | } | |
20177 | ||
20178 | ||
20179 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20180 | PyObject *resultobj; | |
20181 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20182 | bool result; | |
20183 | PyObject * obj0 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20191 | { |
20192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20193 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20194 | ||
20195 | wxPyEndAllowThreads(__tstate); | |
20196 | if (PyErr_Occurred()) SWIG_fail; | |
20197 | } | |
4f89f6a3 RD |
20198 | { |
20199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20200 | } | |
d14a1e28 RD |
20201 | return resultobj; |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20208 | PyObject *resultobj; | |
20209 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20210 | int arg2 ; | |
20211 | PyObject * obj0 = 0 ; | |
994141e6 | 20212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20213 | char *kwnames[] = { |
20214 | (char *) "self",(char *) "mode", NULL | |
20215 | }; | |
20216 | ||
994141e6 | 20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20220 | arg2 = (int) SWIG_AsInt(obj1); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20222 | { |
20223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20224 | (arg1)->SetPrintMode(arg2); | |
20225 | ||
20226 | wxPyEndAllowThreads(__tstate); | |
20227 | if (PyErr_Occurred()) SWIG_fail; | |
20228 | } | |
20229 | Py_INCREF(Py_None); resultobj = Py_None; | |
20230 | return resultobj; | |
20231 | fail: | |
20232 | return NULL; | |
20233 | } | |
20234 | ||
20235 | ||
20236 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20237 | PyObject *resultobj; | |
20238 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20239 | int result; | |
20240 | PyObject * obj0 = 0 ; | |
20241 | char *kwnames[] = { | |
20242 | (char *) "self", NULL | |
20243 | }; | |
20244 | ||
20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20248 | { |
20249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20250 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20251 | ||
20252 | wxPyEndAllowThreads(__tstate); | |
20253 | if (PyErr_Occurred()) SWIG_fail; | |
20254 | } | |
15afbcd0 | 20255 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20256 | return resultobj; |
20257 | fail: | |
20258 | return NULL; | |
20259 | } | |
20260 | ||
20261 | ||
6c3b4aae | 20262 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20263 | PyObject *resultobj; |
20264 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20265 | int arg2 ; |
d14a1e28 | 20266 | PyObject * obj0 = 0 ; |
994141e6 | 20267 | PyObject * obj1 = 0 ; |
d14a1e28 | 20268 | char *kwnames[] = { |
6c3b4aae | 20269 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20270 | }; |
20271 | ||
994141e6 | 20272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20275 | arg2 = (int) SWIG_AsInt(obj1); | |
20276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20277 | { |
20278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20279 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20280 | |
20281 | wxPyEndAllowThreads(__tstate); | |
20282 | if (PyErr_Occurred()) SWIG_fail; | |
20283 | } | |
6c3b4aae | 20284 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20285 | return resultobj; |
20286 | fail: | |
20287 | return NULL; | |
20288 | } | |
20289 | ||
20290 | ||
6c3b4aae | 20291 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20292 | PyObject *resultobj; |
20293 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20294 | int result; |
d14a1e28 RD |
20295 | PyObject * obj0 = 0 ; |
20296 | char *kwnames[] = { | |
6c3b4aae | 20297 | (char *) "self", NULL |
d14a1e28 RD |
20298 | }; |
20299 | ||
6c3b4aae | 20300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20303 | { |
20304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20305 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20306 | |
20307 | wxPyEndAllowThreads(__tstate); | |
20308 | if (PyErr_Occurred()) SWIG_fail; | |
20309 | } | |
15afbcd0 | 20310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20311 | return resultobj; |
20312 | fail: | |
20313 | return NULL; | |
20314 | } | |
20315 | ||
20316 | ||
20317 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20318 | PyObject *resultobj; | |
20319 | bool result; | |
20320 | char *kwnames[] = { | |
20321 | NULL | |
20322 | }; | |
20323 | ||
20324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20325 | { | |
20326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20327 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20328 | ||
20329 | wxPyEndAllowThreads(__tstate); | |
20330 | if (PyErr_Occurred()) SWIG_fail; | |
20331 | } | |
4f89f6a3 RD |
20332 | { |
20333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20334 | } | |
d14a1e28 RD |
20335 | return resultobj; |
20336 | fail: | |
20337 | return NULL; | |
20338 | } | |
20339 | ||
20340 | ||
20341 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20342 | PyObject *resultobj; | |
20343 | long result; | |
20344 | char *kwnames[] = { | |
20345 | NULL | |
20346 | }; | |
20347 | ||
20348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20349 | { | |
20350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20351 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20352 | ||
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
15afbcd0 | 20356 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20357 | return resultobj; |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
20363 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20364 | PyObject *resultobj; | |
20365 | long result; | |
20366 | char *kwnames[] = { | |
20367 | NULL | |
20368 | }; | |
20369 | ||
20370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20371 | { | |
20372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20373 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20374 | ||
20375 | wxPyEndAllowThreads(__tstate); | |
20376 | if (PyErr_Occurred()) SWIG_fail; | |
20377 | } | |
15afbcd0 | 20378 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20379 | return resultobj; |
20380 | fail: | |
20381 | return NULL; | |
20382 | } | |
20383 | ||
20384 | ||
20385 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20386 | PyObject *resultobj; | |
20387 | long result; | |
20388 | char *kwnames[] = { | |
20389 | NULL | |
20390 | }; | |
20391 | ||
20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20393 | { | |
20394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20395 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20396 | ||
20397 | wxPyEndAllowThreads(__tstate); | |
20398 | if (PyErr_Occurred()) SWIG_fail; | |
20399 | } | |
15afbcd0 | 20400 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20401 | return resultobj; |
20402 | fail: | |
20403 | return NULL; | |
20404 | } | |
20405 | ||
20406 | ||
20407 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20408 | PyObject *resultobj; | |
20409 | wxString result; | |
20410 | char *kwnames[] = { | |
20411 | NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | { | |
20423 | #if wxUSE_UNICODE | |
20424 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20425 | #else | |
20426 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20427 | #endif | |
20428 | } | |
20429 | return resultobj; | |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | bool arg1 ; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | char *kwnames[] = { | |
20440 | (char *) "val", NULL | |
20441 | }; | |
20442 | ||
20443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20444 | arg1 = (bool) SWIG_AsBool(obj0); |
20445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20446 | { |
20447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20448 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | Py_INCREF(Py_None); resultobj = Py_None; | |
20454 | return resultobj; | |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
20460 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20461 | PyObject *resultobj; | |
20462 | long arg1 ; | |
994141e6 | 20463 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20464 | char *kwnames[] = { |
20465 | (char *) "val", NULL | |
20466 | }; | |
20467 | ||
994141e6 | 20468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20469 | arg1 = (long) SWIG_AsLong(obj0); |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20471 | { |
20472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20473 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20474 | ||
20475 | wxPyEndAllowThreads(__tstate); | |
20476 | if (PyErr_Occurred()) SWIG_fail; | |
20477 | } | |
20478 | Py_INCREF(Py_None); resultobj = Py_None; | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20486 | PyObject *resultobj; | |
20487 | long arg1 ; | |
994141e6 | 20488 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20489 | char *kwnames[] = { |
20490 | (char *) "val", NULL | |
20491 | }; | |
20492 | ||
994141e6 | 20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20494 | arg1 = (long) SWIG_AsLong(obj0); |
20495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20496 | { |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20499 | ||
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
20503 | Py_INCREF(Py_None); resultobj = Py_None; | |
20504 | return resultobj; | |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
20510 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20511 | PyObject *resultobj; | |
20512 | long arg1 ; | |
994141e6 | 20513 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20514 | char *kwnames[] = { |
20515 | (char *) "val", NULL | |
20516 | }; | |
20517 | ||
994141e6 | 20518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20519 | arg1 = (long) SWIG_AsLong(obj0); |
20520 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20521 | { |
20522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20523 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20524 | ||
20525 | wxPyEndAllowThreads(__tstate); | |
20526 | if (PyErr_Occurred()) SWIG_fail; | |
20527 | } | |
20528 | Py_INCREF(Py_None); resultobj = Py_None; | |
20529 | return resultobj; | |
20530 | fail: | |
20531 | return NULL; | |
20532 | } | |
20533 | ||
20534 | ||
20535 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20536 | PyObject *resultobj; | |
20537 | wxString *arg1 = 0 ; | |
e811c8ce | 20538 | bool temp1 = False ; |
d14a1e28 RD |
20539 | PyObject * obj0 = 0 ; |
20540 | char *kwnames[] = { | |
20541 | (char *) "val", NULL | |
20542 | }; | |
20543 | ||
20544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20545 | { | |
20546 | arg1 = wxString_in_helper(obj0); | |
20547 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 20548 | temp1 = True; |
d14a1e28 RD |
20549 | } |
20550 | { | |
20551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20552 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20553 | ||
20554 | wxPyEndAllowThreads(__tstate); | |
20555 | if (PyErr_Occurred()) SWIG_fail; | |
20556 | } | |
20557 | Py_INCREF(Py_None); resultobj = Py_None; | |
20558 | { | |
20559 | if (temp1) | |
20560 | delete arg1; | |
20561 | } | |
20562 | return resultobj; | |
20563 | fail: | |
20564 | { | |
20565 | if (temp1) | |
20566 | delete arg1; | |
20567 | } | |
20568 | return NULL; | |
20569 | } | |
20570 | ||
20571 | ||
20572 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20573 | PyObject *resultobj; | |
20574 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20575 | PyObject * obj0 = 0 ; | |
20576 | char *kwnames[] = { | |
20577 | (char *) "self", NULL | |
20578 | }; | |
20579 | ||
20580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20583 | { |
20584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20585 | (arg1)->_BootstrapApp(); | |
20586 | ||
20587 | wxPyEndAllowThreads(__tstate); | |
20588 | if (PyErr_Occurred()) SWIG_fail; | |
20589 | } | |
20590 | Py_INCREF(Py_None); resultobj = Py_None; | |
20591 | return resultobj; | |
20592 | fail: | |
20593 | return NULL; | |
20594 | } | |
20595 | ||
20596 | ||
20597 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20598 | PyObject *resultobj; | |
20599 | int result; | |
20600 | char *kwnames[] = { | |
20601 | NULL | |
20602 | }; | |
20603 | ||
20604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | result = (int)PyApp_GetComCtl32Version(); | |
20608 | ||
20609 | wxPyEndAllowThreads(__tstate); | |
20610 | if (PyErr_Occurred()) SWIG_fail; | |
20611 | } | |
15afbcd0 | 20612 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20613 | return resultobj; |
20614 | fail: | |
20615 | return NULL; | |
20616 | } | |
20617 | ||
20618 | ||
20619 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20620 | PyObject *obj; | |
20621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20622 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20623 | Py_INCREF(obj); | |
20624 | return Py_BuildValue((char *)""); | |
20625 | } | |
20626 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20627 | PyObject *resultobj; | |
20628 | char *kwnames[] = { | |
20629 | NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20633 | { | |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | wxExit(); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
20640 | Py_INCREF(Py_None); resultobj = Py_None; | |
20641 | return resultobj; | |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
20647 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20648 | PyObject *resultobj; | |
20649 | bool result; | |
20650 | char *kwnames[] = { | |
20651 | NULL | |
20652 | }; | |
20653 | ||
20654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20655 | { | |
20656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20657 | result = (bool)wxYield(); | |
20658 | ||
20659 | wxPyEndAllowThreads(__tstate); | |
20660 | if (PyErr_Occurred()) SWIG_fail; | |
20661 | } | |
4f89f6a3 RD |
20662 | { |
20663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20664 | } | |
d14a1e28 RD |
20665 | return resultobj; |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
20671 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20672 | PyObject *resultobj; | |
20673 | bool result; | |
20674 | char *kwnames[] = { | |
20675 | NULL | |
20676 | }; | |
20677 | ||
20678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20679 | { | |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20681 | result = (bool)wxYieldIfNeeded(); | |
20682 | ||
20683 | wxPyEndAllowThreads(__tstate); | |
20684 | if (PyErr_Occurred()) SWIG_fail; | |
20685 | } | |
4f89f6a3 RD |
20686 | { |
20687 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20688 | } | |
d14a1e28 RD |
20689 | return resultobj; |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 20698 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20699 | bool result; |
20700 | PyObject * obj0 = 0 ; | |
20701 | PyObject * obj1 = 0 ; | |
20702 | char *kwnames[] = { | |
20703 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20707 | if (obj0) { | |
15afbcd0 RD |
20708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20710 | } |
20711 | if (obj1) { | |
15afbcd0 RD |
20712 | arg2 = (bool) SWIG_AsBool(obj1); |
20713 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20714 | } |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | result = (bool)wxSafeYield(arg1,arg2); | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
4f89f6a3 RD |
20722 | { |
20723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20724 | } | |
d14a1e28 RD |
20725 | return resultobj; |
20726 | fail: | |
20727 | return NULL; | |
20728 | } | |
20729 | ||
20730 | ||
20731 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20732 | PyObject *resultobj; | |
20733 | char *kwnames[] = { | |
20734 | NULL | |
20735 | }; | |
20736 | ||
20737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20738 | { | |
20739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20740 | wxWakeUpIdle(); | |
20741 | ||
20742 | wxPyEndAllowThreads(__tstate); | |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
20744 | } | |
20745 | Py_INCREF(Py_None); resultobj = Py_None; | |
20746 | return resultobj; | |
20747 | fail: | |
20748 | return NULL; | |
20749 | } | |
20750 | ||
20751 | ||
20752 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20753 | PyObject *resultobj; | |
20754 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20755 | wxEvent *arg2 = 0 ; | |
20756 | PyObject * obj0 = 0 ; | |
20757 | PyObject * obj1 = 0 ; | |
20758 | char *kwnames[] = { | |
20759 | (char *) "dest",(char *) "event", NULL | |
20760 | }; | |
20761 | ||
20762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20767 | SWIG_fail; | |
d14a1e28 | 20768 | if (arg2 == NULL) { |
15afbcd0 RD |
20769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20770 | SWIG_fail; | |
d14a1e28 RD |
20771 | } |
20772 | { | |
20773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20774 | wxPostEvent(arg1,*arg2); | |
20775 | ||
20776 | wxPyEndAllowThreads(__tstate); | |
20777 | if (PyErr_Occurred()) SWIG_fail; | |
20778 | } | |
20779 | Py_INCREF(Py_None); resultobj = Py_None; | |
20780 | return resultobj; | |
20781 | fail: | |
20782 | return NULL; | |
20783 | } | |
20784 | ||
20785 | ||
20786 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20787 | PyObject *resultobj; | |
20788 | char *kwnames[] = { | |
20789 | NULL | |
20790 | }; | |
20791 | ||
20792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20793 | { | |
20794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20795 | wxApp_CleanUp(); | |
20796 | ||
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | Py_INCREF(Py_None); resultobj = Py_None; | |
20801 | return resultobj; | |
20802 | fail: | |
20803 | return NULL; | |
20804 | } | |
20805 | ||
20806 | ||
20807 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20808 | PyObject *resultobj; | |
20809 | wxPyApp *result; | |
20810 | char *kwnames[] = { | |
20811 | NULL | |
20812 | }; | |
20813 | ||
20814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20815 | { | |
20816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 20817 | result = (wxPyApp *)wxPyGetApp(); |
d14a1e28 RD |
20818 | |
20819 | wxPyEndAllowThreads(__tstate); | |
20820 | if (PyErr_Occurred()) SWIG_fail; | |
20821 | } | |
20822 | { | |
20823 | resultobj = wxPyMake_wxObject(result); | |
20824 | } | |
20825 | return resultobj; | |
20826 | fail: | |
20827 | return NULL; | |
20828 | } | |
20829 | ||
20830 | ||
1e0c8722 RD |
20831 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20832 | PyObject *resultobj; | |
20833 | int arg1 = (int) 0 ; | |
20834 | int arg2 = (int) 0 ; | |
20835 | int arg3 = (int) 0 ; | |
1e0c8722 | 20836 | wxAcceleratorEntry *result; |
994141e6 RD |
20837 | PyObject * obj0 = 0 ; |
20838 | PyObject * obj1 = 0 ; | |
20839 | PyObject * obj2 = 0 ; | |
1e0c8722 | 20840 | char *kwnames[] = { |
66c033b4 | 20841 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
1e0c8722 RD |
20842 | }; |
20843 | ||
66c033b4 | 20844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 20845 | if (obj0) { |
15afbcd0 RD |
20846 | arg1 = (int) SWIG_AsInt(obj0); |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20848 | } |
20849 | if (obj1) { | |
15afbcd0 RD |
20850 | arg2 = (int) SWIG_AsInt(obj1); |
20851 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20852 | } |
20853 | if (obj2) { | |
15afbcd0 RD |
20854 | arg3 = (int) SWIG_AsInt(obj2); |
20855 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20856 | } |
1e0c8722 RD |
20857 | { |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 20859 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
1e0c8722 RD |
20860 | |
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
15afbcd0 | 20864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
20865 | return resultobj; |
20866 | fail: | |
20867 | return NULL; | |
20868 | } | |
20869 | ||
20870 | ||
20871 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20872 | PyObject *resultobj; | |
20873 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20874 | PyObject * obj0 = 0 ; | |
20875 | char *kwnames[] = { | |
20876 | (char *) "self", NULL | |
20877 | }; | |
20878 | ||
20879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20882 | { |
20883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20884 | delete arg1; | |
20885 | ||
20886 | wxPyEndAllowThreads(__tstate); | |
20887 | if (PyErr_Occurred()) SWIG_fail; | |
20888 | } | |
20889 | Py_INCREF(Py_None); resultobj = Py_None; | |
20890 | return resultobj; | |
20891 | fail: | |
20892 | return NULL; | |
20893 | } | |
20894 | ||
20895 | ||
20896 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20897 | PyObject *resultobj; | |
20898 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20899 | int arg2 ; | |
20900 | int arg3 ; | |
20901 | int arg4 ; | |
1e0c8722 | 20902 | PyObject * obj0 = 0 ; |
994141e6 RD |
20903 | PyObject * obj1 = 0 ; |
20904 | PyObject * obj2 = 0 ; | |
20905 | PyObject * obj3 = 0 ; | |
1e0c8722 | 20906 | char *kwnames[] = { |
66c033b4 | 20907 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
1e0c8722 RD |
20908 | }; |
20909 | ||
66c033b4 | 20910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
20911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20913 | arg2 = (int) SWIG_AsInt(obj1); | |
20914 | if (PyErr_Occurred()) SWIG_fail; | |
20915 | arg3 = (int) SWIG_AsInt(obj2); | |
20916 | if (PyErr_Occurred()) SWIG_fail; | |
20917 | arg4 = (int) SWIG_AsInt(obj3); | |
20918 | if (PyErr_Occurred()) SWIG_fail; | |
1e0c8722 RD |
20919 | { |
20920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 20921 | (arg1)->Set(arg2,arg3,arg4); |
1e0c8722 RD |
20922 | |
20923 | wxPyEndAllowThreads(__tstate); | |
20924 | if (PyErr_Occurred()) SWIG_fail; | |
20925 | } | |
20926 | Py_INCREF(Py_None); resultobj = Py_None; | |
20927 | return resultobj; | |
20928 | fail: | |
20929 | return NULL; | |
20930 | } | |
20931 | ||
20932 | ||
1e0c8722 RD |
20933 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
20934 | PyObject *resultobj; | |
20935 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20936 | int result; | |
20937 | PyObject * obj0 = 0 ; | |
20938 | char *kwnames[] = { | |
20939 | (char *) "self", NULL | |
20940 | }; | |
20941 | ||
20942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20945 | { |
20946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20947 | result = (int)(arg1)->GetFlags(); | |
20948 | ||
20949 | wxPyEndAllowThreads(__tstate); | |
20950 | if (PyErr_Occurred()) SWIG_fail; | |
20951 | } | |
15afbcd0 | 20952 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
20953 | return resultobj; |
20954 | fail: | |
20955 | return NULL; | |
20956 | } | |
20957 | ||
20958 | ||
20959 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20960 | PyObject *resultobj; | |
20961 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20962 | int result; | |
20963 | PyObject * obj0 = 0 ; | |
20964 | char *kwnames[] = { | |
20965 | (char *) "self", NULL | |
20966 | }; | |
20967 | ||
20968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20971 | { |
20972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20973 | result = (int)(arg1)->GetKeyCode(); | |
20974 | ||
20975 | wxPyEndAllowThreads(__tstate); | |
20976 | if (PyErr_Occurred()) SWIG_fail; | |
20977 | } | |
15afbcd0 | 20978 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
20979 | return resultobj; |
20980 | fail: | |
20981 | return NULL; | |
20982 | } | |
20983 | ||
20984 | ||
20985 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20986 | PyObject *resultobj; | |
20987 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20988 | int result; | |
20989 | PyObject * obj0 = 0 ; | |
20990 | char *kwnames[] = { | |
20991 | (char *) "self", NULL | |
20992 | }; | |
20993 | ||
20994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20997 | { |
20998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20999 | result = (int)(arg1)->GetCommand(); | |
21000 | ||
21001 | wxPyEndAllowThreads(__tstate); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | } | |
15afbcd0 | 21004 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21005 | return resultobj; |
21006 | fail: | |
21007 | return NULL; | |
21008 | } | |
21009 | ||
21010 | ||
21011 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
21012 | PyObject *obj; | |
21013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21014 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21015 | Py_INCREF(obj); | |
21016 | return Py_BuildValue((char *)""); | |
21017 | } | |
21018 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21019 | PyObject *resultobj; | |
21020 | int arg1 ; | |
21021 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21022 | wxAcceleratorTable *result; | |
21023 | PyObject * obj0 = 0 ; | |
21024 | char *kwnames[] = { | |
21025 | (char *) "n", NULL | |
21026 | }; | |
21027 | ||
21028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21029 | { | |
21030 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21031 | if (arg2) arg1 = PyList_Size(obj0); | |
21032 | else arg1 = 0; | |
21033 | } | |
21034 | { | |
21035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21036 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21037 | ||
21038 | wxPyEndAllowThreads(__tstate); | |
21039 | if (PyErr_Occurred()) SWIG_fail; | |
21040 | } | |
15afbcd0 | 21041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
21042 | { |
21043 | delete [] arg2; | |
21044 | } | |
21045 | return resultobj; | |
21046 | fail: | |
21047 | { | |
21048 | delete [] arg2; | |
21049 | } | |
21050 | return NULL; | |
21051 | } | |
21052 | ||
21053 | ||
21054 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21055 | PyObject *resultobj; | |
21056 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21057 | PyObject * obj0 = 0 ; | |
21058 | char *kwnames[] = { | |
21059 | (char *) "self", NULL | |
21060 | }; | |
21061 | ||
21062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21065 | { |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | delete arg1; | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | Py_INCREF(Py_None); resultobj = Py_None; | |
21073 | return resultobj; | |
21074 | fail: | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21080 | PyObject *resultobj; | |
21081 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21082 | bool result; | |
21083 | PyObject * obj0 = 0 ; | |
21084 | char *kwnames[] = { | |
21085 | (char *) "self", NULL | |
21086 | }; | |
21087 | ||
21088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21091 | { |
21092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21093 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21094 | ||
21095 | wxPyEndAllowThreads(__tstate); | |
21096 | if (PyErr_Occurred()) SWIG_fail; | |
21097 | } | |
4f89f6a3 RD |
21098 | { |
21099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21100 | } | |
1e0c8722 RD |
21101 | return resultobj; |
21102 | fail: | |
21103 | return NULL; | |
21104 | } | |
21105 | ||
21106 | ||
21107 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21108 | PyObject *obj; | |
21109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21110 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21111 | Py_INCREF(obj); | |
21112 | return Py_BuildValue((char *)""); | |
21113 | } | |
21114 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21115 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21116 | return 1; | |
21117 | } | |
21118 | ||
21119 | ||
21120 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21121 | PyObject *pyobj; | |
21122 | ||
15afbcd0 | 21123 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
21124 | return pyobj; |
21125 | } | |
21126 | ||
21127 | ||
21128 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21129 | PyObject *resultobj; | |
21130 | wxString *arg1 = 0 ; | |
21131 | wxAcceleratorEntry *result; | |
21132 | bool temp1 = False ; | |
21133 | PyObject * obj0 = 0 ; | |
21134 | char *kwnames[] = { | |
21135 | (char *) "label", NULL | |
21136 | }; | |
21137 | ||
21138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21139 | { | |
21140 | arg1 = wxString_in_helper(obj0); | |
21141 | if (arg1 == NULL) SWIG_fail; | |
21142 | temp1 = True; | |
21143 | } | |
21144 | { | |
21145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21146 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21147 | ||
21148 | wxPyEndAllowThreads(__tstate); | |
21149 | if (PyErr_Occurred()) SWIG_fail; | |
21150 | } | |
15afbcd0 | 21151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
21152 | { |
21153 | if (temp1) | |
21154 | delete arg1; | |
21155 | } | |
21156 | return resultobj; | |
21157 | fail: | |
21158 | { | |
21159 | if (temp1) | |
21160 | delete arg1; | |
21161 | } | |
21162 | return NULL; | |
21163 | } | |
21164 | ||
21165 | ||
e811c8ce RD |
21166 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
21167 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21168 | return 1; | |
21169 | } | |
21170 | ||
21171 | ||
21172 | static PyObject *_wrap_PanelNameStr_get() { | |
21173 | PyObject *pyobj; | |
21174 | ||
21175 | { | |
21176 | #if wxUSE_UNICODE | |
21177 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21178 | #else | |
21179 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21180 | #endif | |
21181 | } | |
21182 | return pyobj; | |
21183 | } | |
21184 | ||
21185 | ||
74a57fcd RD |
21186 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
21187 | PyObject *resultobj; | |
21188 | wxVisualAttributes *result; | |
21189 | char *kwnames[] = { | |
21190 | NULL | |
21191 | }; | |
21192 | ||
21193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21194 | { | |
21195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21196 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21197 | ||
21198 | wxPyEndAllowThreads(__tstate); | |
21199 | if (PyErr_Occurred()) SWIG_fail; | |
21200 | } | |
21201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21209 | PyObject *resultobj; | |
21210 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21211 | PyObject * obj0 = 0 ; | |
21212 | char *kwnames[] = { | |
21213 | (char *) "self", NULL | |
21214 | }; | |
21215 | ||
21216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21219 | { | |
21220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21221 | delete_wxVisualAttributes(arg1); | |
21222 | ||
21223 | wxPyEndAllowThreads(__tstate); | |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
21225 | } | |
21226 | Py_INCREF(Py_None); resultobj = Py_None; | |
21227 | return resultobj; | |
21228 | fail: | |
21229 | return NULL; | |
21230 | } | |
21231 | ||
21232 | ||
21233 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21234 | PyObject *resultobj; | |
21235 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21236 | wxFont *arg2 = (wxFont *) 0 ; | |
21237 | PyObject * obj0 = 0 ; | |
21238 | PyObject * obj1 = 0 ; | |
21239 | char *kwnames[] = { | |
21240 | (char *) "self",(char *) "font", NULL | |
21241 | }; | |
21242 | ||
21243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21248 | if (arg1) (arg1)->font = *arg2; | |
21249 | ||
21250 | Py_INCREF(Py_None); resultobj = Py_None; | |
21251 | return resultobj; | |
21252 | fail: | |
21253 | return NULL; | |
21254 | } | |
21255 | ||
21256 | ||
21257 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21258 | PyObject *resultobj; | |
21259 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21260 | wxFont *result; | |
21261 | PyObject * obj0 = 0 ; | |
21262 | char *kwnames[] = { | |
21263 | (char *) "self", NULL | |
21264 | }; | |
21265 | ||
21266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21269 | result = (wxFont *)& ((arg1)->font); | |
21270 | ||
21271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21272 | return resultobj; | |
21273 | fail: | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
21278 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21279 | PyObject *resultobj; | |
21280 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21281 | wxColour *arg2 = (wxColour *) 0 ; | |
21282 | PyObject * obj0 = 0 ; | |
21283 | PyObject * obj1 = 0 ; | |
21284 | char *kwnames[] = { | |
21285 | (char *) "self",(char *) "colFg", NULL | |
21286 | }; | |
21287 | ||
21288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21291 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21293 | if (arg1) (arg1)->colFg = *arg2; | |
21294 | ||
21295 | Py_INCREF(Py_None); resultobj = Py_None; | |
21296 | return resultobj; | |
21297 | fail: | |
21298 | return NULL; | |
21299 | } | |
21300 | ||
21301 | ||
21302 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21303 | PyObject *resultobj; | |
21304 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21305 | wxColour *result; | |
21306 | PyObject * obj0 = 0 ; | |
21307 | char *kwnames[] = { | |
21308 | (char *) "self", NULL | |
21309 | }; | |
21310 | ||
21311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21314 | result = (wxColour *)& ((arg1)->colFg); | |
21315 | ||
21316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21317 | return resultobj; | |
21318 | fail: | |
21319 | return NULL; | |
21320 | } | |
21321 | ||
21322 | ||
21323 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21324 | PyObject *resultobj; | |
21325 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21326 | wxColour *arg2 = (wxColour *) 0 ; | |
21327 | PyObject * obj0 = 0 ; | |
21328 | PyObject * obj1 = 0 ; | |
21329 | char *kwnames[] = { | |
21330 | (char *) "self",(char *) "colBg", NULL | |
21331 | }; | |
21332 | ||
21333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21336 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21338 | if (arg1) (arg1)->colBg = *arg2; | |
21339 | ||
21340 | Py_INCREF(Py_None); resultobj = Py_None; | |
21341 | return resultobj; | |
21342 | fail: | |
21343 | return NULL; | |
21344 | } | |
21345 | ||
21346 | ||
21347 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21348 | PyObject *resultobj; | |
21349 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21350 | wxColour *result; | |
21351 | PyObject * obj0 = 0 ; | |
21352 | char *kwnames[] = { | |
21353 | (char *) "self", NULL | |
21354 | }; | |
21355 | ||
21356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21359 | result = (wxColour *)& ((arg1)->colBg); | |
21360 | ||
21361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21362 | return resultobj; | |
21363 | fail: | |
21364 | return NULL; | |
21365 | } | |
21366 | ||
21367 | ||
21368 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21369 | PyObject *obj; | |
21370 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21371 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21372 | Py_INCREF(obj); | |
21373 | return Py_BuildValue((char *)""); | |
21374 | } | |
d14a1e28 RD |
21375 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21376 | PyObject *resultobj; | |
21377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 21378 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
21379 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21380 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21381 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21382 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21383 | long arg5 = (long) 0 ; | |
21384 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21385 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21386 | wxWindow *result; | |
21387 | wxPoint temp3 ; | |
21388 | wxSize temp4 ; | |
e811c8ce | 21389 | bool temp6 = False ; |
d14a1e28 | 21390 | PyObject * obj0 = 0 ; |
994141e6 | 21391 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21392 | PyObject * obj2 = 0 ; |
21393 | PyObject * obj3 = 0 ; | |
994141e6 | 21394 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21395 | PyObject * obj5 = 0 ; |
21396 | char *kwnames[] = { | |
21397 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21398 | }; | |
21399 | ||
74a57fcd | 21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
21401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21403 | if (obj1) { |
21404 | arg2 = (int const) SWIG_AsInt(obj1); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
21406 | } | |
d14a1e28 RD |
21407 | if (obj2) { |
21408 | { | |
21409 | arg3 = &temp3; | |
21410 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21411 | } | |
21412 | } | |
21413 | if (obj3) { | |
21414 | { | |
21415 | arg4 = &temp4; | |
21416 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21417 | } | |
21418 | } | |
994141e6 | 21419 | if (obj4) { |
15afbcd0 RD |
21420 | arg5 = (long) SWIG_AsLong(obj4); |
21421 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21422 | } |
d14a1e28 RD |
21423 | if (obj5) { |
21424 | { | |
21425 | arg6 = wxString_in_helper(obj5); | |
21426 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 21427 | temp6 = True; |
d14a1e28 RD |
21428 | } |
21429 | } | |
21430 | { | |
e3b71cb8 | 21431 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21433 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21434 | ||
21435 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 21436 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21437 | } |
21438 | { | |
21439 | resultobj = wxPyMake_wxObject(result); | |
21440 | } | |
21441 | { | |
21442 | if (temp6) | |
21443 | delete arg6; | |
21444 | } | |
21445 | return resultobj; | |
21446 | fail: | |
21447 | { | |
21448 | if (temp6) | |
21449 | delete arg6; | |
21450 | } | |
21451 | return NULL; | |
21452 | } | |
21453 | ||
21454 | ||
21455 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21456 | PyObject *resultobj; | |
21457 | wxWindow *result; | |
21458 | char *kwnames[] = { | |
21459 | NULL | |
21460 | }; | |
21461 | ||
21462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21463 | { | |
e3b71cb8 | 21464 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21466 | result = (wxWindow *)new wxWindow(); | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 21469 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
21470 | } |
21471 | { | |
21472 | resultobj = wxPyMake_wxObject(result); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21481 | PyObject *resultobj; | |
21482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21483 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 21484 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
21485 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21486 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21487 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21488 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21489 | long arg6 = (long) 0 ; | |
21490 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21491 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21492 | bool result; | |
21493 | wxPoint temp4 ; | |
21494 | wxSize temp5 ; | |
e811c8ce | 21495 | bool temp7 = False ; |
d14a1e28 RD |
21496 | PyObject * obj0 = 0 ; |
21497 | PyObject * obj1 = 0 ; | |
994141e6 | 21498 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21499 | PyObject * obj3 = 0 ; |
21500 | PyObject * obj4 = 0 ; | |
994141e6 | 21501 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21502 | PyObject * obj6 = 0 ; |
21503 | char *kwnames[] = { | |
21504 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21505 | }; | |
21506 | ||
74a57fcd | 21507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21512 | if (obj2) { |
21513 | arg3 = (int const) SWIG_AsInt(obj2); | |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
21515 | } | |
d14a1e28 RD |
21516 | if (obj3) { |
21517 | { | |
21518 | arg4 = &temp4; | |
21519 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21520 | } | |
21521 | } | |
21522 | if (obj4) { | |
21523 | { | |
21524 | arg5 = &temp5; | |
21525 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21526 | } | |
21527 | } | |
994141e6 | 21528 | if (obj5) { |
15afbcd0 RD |
21529 | arg6 = (long) SWIG_AsLong(obj5); |
21530 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21531 | } |
d14a1e28 RD |
21532 | if (obj6) { |
21533 | { | |
21534 | arg7 = wxString_in_helper(obj6); | |
21535 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21536 | temp7 = True; |
d14a1e28 RD |
21537 | } |
21538 | } | |
21539 | { | |
21540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21541 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21542 | ||
21543 | wxPyEndAllowThreads(__tstate); | |
21544 | if (PyErr_Occurred()) SWIG_fail; | |
21545 | } | |
4f89f6a3 RD |
21546 | { |
21547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21548 | } | |
d14a1e28 RD |
21549 | { |
21550 | if (temp7) | |
21551 | delete arg7; | |
21552 | } | |
21553 | return resultobj; | |
21554 | fail: | |
21555 | { | |
21556 | if (temp7) | |
21557 | delete arg7; | |
21558 | } | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21566 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21567 | bool result; |
21568 | PyObject * obj0 = 0 ; | |
21569 | PyObject * obj1 = 0 ; | |
21570 | char *kwnames[] = { | |
21571 | (char *) "self",(char *) "force", NULL | |
21572 | }; | |
21573 | ||
21574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21577 | if (obj1) { |
15afbcd0 RD |
21578 | arg2 = (bool) SWIG_AsBool(obj1); |
21579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21580 | } |
21581 | { | |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | result = (bool)(arg1)->Close(arg2); | |
21584 | ||
21585 | wxPyEndAllowThreads(__tstate); | |
21586 | if (PyErr_Occurred()) SWIG_fail; | |
21587 | } | |
4f89f6a3 RD |
21588 | { |
21589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21590 | } | |
d14a1e28 RD |
21591 | return resultobj; |
21592 | fail: | |
21593 | return NULL; | |
21594 | } | |
21595 | ||
21596 | ||
21597 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21598 | PyObject *resultobj; | |
21599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21600 | bool result; | |
21601 | PyObject * obj0 = 0 ; | |
21602 | char *kwnames[] = { | |
21603 | (char *) "self", NULL | |
21604 | }; | |
21605 | ||
21606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21609 | { |
21610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21611 | result = (bool)(arg1)->Destroy(); | |
21612 | ||
21613 | wxPyEndAllowThreads(__tstate); | |
21614 | if (PyErr_Occurred()) SWIG_fail; | |
21615 | } | |
4f89f6a3 RD |
21616 | { |
21617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21618 | } | |
d14a1e28 RD |
21619 | return resultobj; |
21620 | fail: | |
21621 | return NULL; | |
21622 | } | |
21623 | ||
21624 | ||
21625 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21626 | PyObject *resultobj; | |
21627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21628 | bool result; | |
21629 | PyObject * obj0 = 0 ; | |
21630 | char *kwnames[] = { | |
21631 | (char *) "self", NULL | |
21632 | }; | |
21633 | ||
21634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21637 | { |
21638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21639 | result = (bool)(arg1)->DestroyChildren(); | |
21640 | ||
21641 | wxPyEndAllowThreads(__tstate); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | } | |
4f89f6a3 RD |
21644 | { |
21645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21646 | } | |
d14a1e28 RD |
21647 | return resultobj; |
21648 | fail: | |
21649 | return NULL; | |
21650 | } | |
21651 | ||
21652 | ||
21653 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21654 | PyObject *resultobj; | |
21655 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21656 | bool result; | |
21657 | PyObject * obj0 = 0 ; | |
21658 | char *kwnames[] = { | |
21659 | (char *) "self", NULL | |
21660 | }; | |
21661 | ||
21662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21665 | { |
21666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21667 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21668 | ||
21669 | wxPyEndAllowThreads(__tstate); | |
21670 | if (PyErr_Occurred()) SWIG_fail; | |
21671 | } | |
4f89f6a3 RD |
21672 | { |
21673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21674 | } | |
d14a1e28 RD |
21675 | return resultobj; |
21676 | fail: | |
21677 | return NULL; | |
21678 | } | |
21679 | ||
21680 | ||
21681 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21682 | PyObject *resultobj; | |
21683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21684 | wxString *arg2 = 0 ; | |
e811c8ce | 21685 | bool temp2 = False ; |
d14a1e28 RD |
21686 | PyObject * obj0 = 0 ; |
21687 | PyObject * obj1 = 0 ; | |
21688 | char *kwnames[] = { | |
21689 | (char *) "self",(char *) "title", NULL | |
21690 | }; | |
21691 | ||
21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21695 | { |
21696 | arg2 = wxString_in_helper(obj1); | |
21697 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21698 | temp2 = True; |
d14a1e28 RD |
21699 | } |
21700 | { | |
21701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21702 | (arg1)->SetTitle((wxString const &)*arg2); | |
21703 | ||
21704 | wxPyEndAllowThreads(__tstate); | |
21705 | if (PyErr_Occurred()) SWIG_fail; | |
21706 | } | |
21707 | Py_INCREF(Py_None); resultobj = Py_None; | |
21708 | { | |
21709 | if (temp2) | |
21710 | delete arg2; | |
21711 | } | |
21712 | return resultobj; | |
21713 | fail: | |
21714 | { | |
21715 | if (temp2) | |
21716 | delete arg2; | |
21717 | } | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj; | |
21724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21725 | wxString result; | |
21726 | PyObject * obj0 = 0 ; | |
21727 | char *kwnames[] = { | |
21728 | (char *) "self", NULL | |
21729 | }; | |
21730 | ||
21731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21734 | { |
21735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21736 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21737 | ||
21738 | wxPyEndAllowThreads(__tstate); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | } | |
21741 | { | |
21742 | #if wxUSE_UNICODE | |
21743 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21744 | #else | |
21745 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21746 | #endif | |
21747 | } | |
21748 | return resultobj; | |
21749 | fail: | |
21750 | return NULL; | |
21751 | } | |
21752 | ||
21753 | ||
21754 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21755 | PyObject *resultobj; | |
21756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21757 | wxString *arg2 = 0 ; | |
e811c8ce | 21758 | bool temp2 = False ; |
d14a1e28 RD |
21759 | PyObject * obj0 = 0 ; |
21760 | PyObject * obj1 = 0 ; | |
21761 | char *kwnames[] = { | |
21762 | (char *) "self",(char *) "label", NULL | |
21763 | }; | |
21764 | ||
21765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21768 | { |
21769 | arg2 = wxString_in_helper(obj1); | |
21770 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21771 | temp2 = True; |
d14a1e28 RD |
21772 | } |
21773 | { | |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | (arg1)->SetLabel((wxString const &)*arg2); | |
21776 | ||
21777 | wxPyEndAllowThreads(__tstate); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
21780 | Py_INCREF(Py_None); resultobj = Py_None; | |
21781 | { | |
21782 | if (temp2) | |
21783 | delete arg2; | |
21784 | } | |
21785 | return resultobj; | |
21786 | fail: | |
21787 | { | |
21788 | if (temp2) | |
21789 | delete arg2; | |
21790 | } | |
21791 | return NULL; | |
21792 | } | |
21793 | ||
21794 | ||
21795 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21796 | PyObject *resultobj; | |
21797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21798 | wxString result; | |
21799 | PyObject * obj0 = 0 ; | |
21800 | char *kwnames[] = { | |
21801 | (char *) "self", NULL | |
21802 | }; | |
21803 | ||
21804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21807 | { |
21808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21809 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21810 | ||
21811 | wxPyEndAllowThreads(__tstate); | |
21812 | if (PyErr_Occurred()) SWIG_fail; | |
21813 | } | |
21814 | { | |
21815 | #if wxUSE_UNICODE | |
21816 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21817 | #else | |
21818 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21819 | #endif | |
21820 | } | |
21821 | return resultobj; | |
21822 | fail: | |
21823 | return NULL; | |
21824 | } | |
21825 | ||
21826 | ||
21827 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21828 | PyObject *resultobj; | |
21829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21830 | wxString *arg2 = 0 ; | |
e811c8ce | 21831 | bool temp2 = False ; |
d14a1e28 RD |
21832 | PyObject * obj0 = 0 ; |
21833 | PyObject * obj1 = 0 ; | |
21834 | char *kwnames[] = { | |
21835 | (char *) "self",(char *) "name", NULL | |
21836 | }; | |
21837 | ||
21838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21841 | { |
21842 | arg2 = wxString_in_helper(obj1); | |
21843 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21844 | temp2 = True; |
d14a1e28 RD |
21845 | } |
21846 | { | |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | (arg1)->SetName((wxString const &)*arg2); | |
21849 | ||
21850 | wxPyEndAllowThreads(__tstate); | |
21851 | if (PyErr_Occurred()) SWIG_fail; | |
21852 | } | |
21853 | Py_INCREF(Py_None); resultobj = Py_None; | |
21854 | { | |
21855 | if (temp2) | |
21856 | delete arg2; | |
21857 | } | |
21858 | return resultobj; | |
21859 | fail: | |
21860 | { | |
21861 | if (temp2) | |
21862 | delete arg2; | |
21863 | } | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21869 | PyObject *resultobj; | |
21870 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21871 | wxString result; | |
21872 | PyObject * obj0 = 0 ; | |
21873 | char *kwnames[] = { | |
21874 | (char *) "self", NULL | |
21875 | }; | |
21876 | ||
21877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21880 | { |
21881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21882 | result = ((wxWindow const *)arg1)->GetName(); | |
21883 | ||
21884 | wxPyEndAllowThreads(__tstate); | |
21885 | if (PyErr_Occurred()) SWIG_fail; | |
21886 | } | |
21887 | { | |
21888 | #if wxUSE_UNICODE | |
21889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21890 | #else | |
21891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21892 | #endif | |
21893 | } | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | return NULL; | |
21897 | } | |
21898 | ||
21899 | ||
4276dc52 RD |
21900 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21901 | PyObject *resultobj; | |
21902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21903 | int arg2 ; | |
21904 | PyObject * obj0 = 0 ; | |
21905 | PyObject * obj1 = 0 ; | |
21906 | char *kwnames[] = { | |
21907 | (char *) "self",(char *) "variant", NULL | |
21908 | }; | |
21909 | ||
21910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21913 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21914 | if (PyErr_Occurred()) SWIG_fail; | |
21915 | { | |
21916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21917 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21918 | ||
21919 | wxPyEndAllowThreads(__tstate); | |
21920 | if (PyErr_Occurred()) SWIG_fail; | |
21921 | } | |
21922 | Py_INCREF(Py_None); resultobj = Py_None; | |
21923 | return resultobj; | |
21924 | fail: | |
21925 | return NULL; | |
21926 | } | |
21927 | ||
21928 | ||
21929 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21930 | PyObject *resultobj; | |
21931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21932 | int result; | |
21933 | PyObject * obj0 = 0 ; | |
21934 | char *kwnames[] = { | |
21935 | (char *) "self", NULL | |
21936 | }; | |
21937 | ||
21938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21941 | { | |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
21948 | resultobj = SWIG_FromInt((int)result); | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
d14a1e28 RD |
21955 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
21956 | PyObject *resultobj; | |
21957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21958 | int arg2 ; |
d14a1e28 | 21959 | PyObject * obj0 = 0 ; |
994141e6 | 21960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21961 | char *kwnames[] = { |
21962 | (char *) "self",(char *) "winid", NULL | |
21963 | }; | |
21964 | ||
994141e6 | 21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21968 | arg2 = (int) SWIG_AsInt(obj1); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21970 | { |
21971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21972 | (arg1)->SetId(arg2); | |
21973 | ||
21974 | wxPyEndAllowThreads(__tstate); | |
21975 | if (PyErr_Occurred()) SWIG_fail; | |
21976 | } | |
21977 | Py_INCREF(Py_None); resultobj = Py_None; | |
21978 | return resultobj; | |
21979 | fail: | |
21980 | return NULL; | |
21981 | } | |
21982 | ||
21983 | ||
21984 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21985 | PyObject *resultobj; | |
21986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21987 | int result; |
d14a1e28 RD |
21988 | PyObject * obj0 = 0 ; |
21989 | char *kwnames[] = { | |
21990 | (char *) "self", NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21996 | { |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 21998 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21999 | |
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
15afbcd0 | 22003 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22004 | return resultobj; |
22005 | fail: | |
22006 | return NULL; | |
22007 | } | |
22008 | ||
22009 | ||
22010 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22011 | PyObject *resultobj; | |
22012 | int result; | |
22013 | char *kwnames[] = { | |
22014 | NULL | |
22015 | }; | |
22016 | ||
22017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22018 | { | |
22019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22020 | result = (int)wxWindow::NewControlId(); | |
22021 | ||
22022 | wxPyEndAllowThreads(__tstate); | |
22023 | if (PyErr_Occurred()) SWIG_fail; | |
22024 | } | |
15afbcd0 | 22025 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22026 | return resultobj; |
22027 | fail: | |
22028 | return NULL; | |
22029 | } | |
22030 | ||
22031 | ||
22032 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22033 | PyObject *resultobj; | |
22034 | int arg1 ; | |
22035 | int result; | |
994141e6 | 22036 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22037 | char *kwnames[] = { |
22038 | (char *) "winid", NULL | |
22039 | }; | |
22040 | ||
994141e6 | 22041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22042 | arg1 = (int) SWIG_AsInt(obj0); |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22044 | { |
22045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22046 | result = (int)wxWindow::NextControlId(arg1); | |
22047 | ||
22048 | wxPyEndAllowThreads(__tstate); | |
22049 | if (PyErr_Occurred()) SWIG_fail; | |
22050 | } | |
15afbcd0 | 22051 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22052 | return resultobj; |
22053 | fail: | |
22054 | return NULL; | |
22055 | } | |
22056 | ||
22057 | ||
22058 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22059 | PyObject *resultobj; | |
22060 | int arg1 ; | |
22061 | int result; | |
994141e6 | 22062 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22063 | char *kwnames[] = { |
22064 | (char *) "winid", NULL | |
22065 | }; | |
22066 | ||
994141e6 | 22067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22068 | arg1 = (int) SWIG_AsInt(obj0); |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22070 | { |
22071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22072 | result = (int)wxWindow::PrevControlId(arg1); | |
22073 | ||
22074 | wxPyEndAllowThreads(__tstate); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | } | |
15afbcd0 | 22077 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22078 | return resultobj; |
22079 | fail: | |
22080 | return NULL; | |
22081 | } | |
22082 | ||
22083 | ||
22084 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22085 | PyObject *resultobj; | |
22086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22087 | wxSize *arg2 = 0 ; | |
22088 | wxSize temp2 ; | |
22089 | PyObject * obj0 = 0 ; | |
22090 | PyObject * obj1 = 0 ; | |
22091 | char *kwnames[] = { | |
22092 | (char *) "self",(char *) "size", NULL | |
22093 | }; | |
22094 | ||
22095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22098 | { |
22099 | arg2 = &temp2; | |
22100 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22101 | } | |
22102 | { | |
22103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22104 | (arg1)->SetSize((wxSize const &)*arg2); | |
22105 | ||
22106 | wxPyEndAllowThreads(__tstate); | |
22107 | if (PyErr_Occurred()) SWIG_fail; | |
22108 | } | |
22109 | Py_INCREF(Py_None); resultobj = Py_None; | |
22110 | return resultobj; | |
22111 | fail: | |
22112 | return NULL; | |
22113 | } | |
22114 | ||
22115 | ||
22116 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22117 | PyObject *resultobj; | |
22118 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22119 | int arg2 ; | |
22120 | int arg3 ; | |
22121 | int arg4 ; | |
22122 | int arg5 ; | |
22123 | int arg6 = (int) wxSIZE_AUTO ; | |
22124 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22125 | PyObject * obj1 = 0 ; |
22126 | PyObject * obj2 = 0 ; | |
22127 | PyObject * obj3 = 0 ; | |
22128 | PyObject * obj4 = 0 ; | |
22129 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
22130 | char *kwnames[] = { |
22131 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22132 | }; | |
22133 | ||
994141e6 | 22134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22137 | arg2 = (int) SWIG_AsInt(obj1); | |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
22139 | arg3 = (int) SWIG_AsInt(obj2); | |
22140 | if (PyErr_Occurred()) SWIG_fail; | |
22141 | arg4 = (int) SWIG_AsInt(obj3); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | arg5 = (int) SWIG_AsInt(obj4); | |
22144 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22145 | if (obj5) { |
15afbcd0 RD |
22146 | arg6 = (int) SWIG_AsInt(obj5); |
22147 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22148 | } |
d14a1e28 RD |
22149 | { |
22150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22151 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22152 | ||
22153 | wxPyEndAllowThreads(__tstate); | |
22154 | if (PyErr_Occurred()) SWIG_fail; | |
22155 | } | |
22156 | Py_INCREF(Py_None); resultobj = Py_None; | |
22157 | return resultobj; | |
22158 | fail: | |
22159 | return NULL; | |
22160 | } | |
22161 | ||
22162 | ||
22163 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22164 | PyObject *resultobj; | |
22165 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22166 | wxRect *arg2 = 0 ; | |
22167 | int arg3 = (int) wxSIZE_AUTO ; | |
22168 | wxRect temp2 ; | |
22169 | PyObject * obj0 = 0 ; | |
22170 | PyObject * obj1 = 0 ; | |
994141e6 | 22171 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22172 | char *kwnames[] = { |
22173 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22174 | }; | |
22175 | ||
994141e6 | 22176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22179 | { |
22180 | arg2 = &temp2; | |
22181 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22182 | } | |
994141e6 | 22183 | if (obj2) { |
15afbcd0 RD |
22184 | arg3 = (int) SWIG_AsInt(obj2); |
22185 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22186 | } |
d14a1e28 RD |
22187 | { |
22188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22189 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22190 | ||
22191 | wxPyEndAllowThreads(__tstate); | |
22192 | if (PyErr_Occurred()) SWIG_fail; | |
22193 | } | |
22194 | Py_INCREF(Py_None); resultobj = Py_None; | |
22195 | return resultobj; | |
22196 | fail: | |
22197 | return NULL; | |
22198 | } | |
22199 | ||
22200 | ||
22201 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22202 | PyObject *resultobj; | |
22203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22204 | int arg2 ; | |
22205 | int arg3 ; | |
22206 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22207 | PyObject * obj1 = 0 ; |
22208 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22209 | char *kwnames[] = { |
22210 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22211 | }; | |
22212 | ||
994141e6 | 22213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22216 | arg2 = (int) SWIG_AsInt(obj1); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
22218 | arg3 = (int) SWIG_AsInt(obj2); | |
22219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22220 | { |
22221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22222 | (arg1)->SetSize(arg2,arg3); | |
22223 | ||
22224 | wxPyEndAllowThreads(__tstate); | |
22225 | if (PyErr_Occurred()) SWIG_fail; | |
22226 | } | |
22227 | Py_INCREF(Py_None); resultobj = Py_None; | |
22228 | return resultobj; | |
22229 | fail: | |
22230 | return NULL; | |
22231 | } | |
22232 | ||
22233 | ||
22234 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22235 | PyObject *resultobj; | |
22236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22237 | wxPoint *arg2 = 0 ; | |
22238 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22239 | wxPoint temp2 ; | |
22240 | PyObject * obj0 = 0 ; | |
22241 | PyObject * obj1 = 0 ; | |
994141e6 | 22242 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22243 | char *kwnames[] = { |
22244 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22245 | }; | |
22246 | ||
994141e6 | 22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22250 | { |
22251 | arg2 = &temp2; | |
22252 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22253 | } | |
994141e6 | 22254 | if (obj2) { |
15afbcd0 RD |
22255 | arg3 = (int) SWIG_AsInt(obj2); |
22256 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22257 | } |
d14a1e28 RD |
22258 | { |
22259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22260 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22261 | ||
22262 | wxPyEndAllowThreads(__tstate); | |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
22264 | } | |
22265 | Py_INCREF(Py_None); resultobj = Py_None; | |
22266 | return resultobj; | |
22267 | fail: | |
22268 | return NULL; | |
22269 | } | |
22270 | ||
22271 | ||
22272 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22273 | PyObject *resultobj; | |
22274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22275 | int arg2 ; | |
22276 | int arg3 ; | |
22277 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22278 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22279 | PyObject * obj1 = 0 ; |
22280 | PyObject * obj2 = 0 ; | |
22281 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22282 | char *kwnames[] = { |
22283 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22284 | }; | |
22285 | ||
994141e6 | 22286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22289 | arg2 = (int) SWIG_AsInt(obj1); | |
22290 | if (PyErr_Occurred()) SWIG_fail; | |
22291 | arg3 = (int) SWIG_AsInt(obj2); | |
22292 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22293 | if (obj3) { |
15afbcd0 RD |
22294 | arg4 = (int) SWIG_AsInt(obj3); |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22296 | } |
d14a1e28 RD |
22297 | { |
22298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22299 | (arg1)->Move(arg2,arg3,arg4); | |
22300 | ||
22301 | wxPyEndAllowThreads(__tstate); | |
22302 | if (PyErr_Occurred()) SWIG_fail; | |
22303 | } | |
22304 | Py_INCREF(Py_None); resultobj = Py_None; | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
22311 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22312 | PyObject *resultobj; | |
22313 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22314 | PyObject * obj0 = 0 ; | |
22315 | char *kwnames[] = { | |
22316 | (char *) "self", NULL | |
22317 | }; | |
22318 | ||
22319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22322 | { |
22323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22324 | (arg1)->Raise(); | |
22325 | ||
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | Py_INCREF(Py_None); resultobj = Py_None; | |
22330 | return resultobj; | |
22331 | fail: | |
22332 | return NULL; | |
22333 | } | |
22334 | ||
22335 | ||
22336 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22337 | PyObject *resultobj; | |
22338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22339 | PyObject * obj0 = 0 ; | |
22340 | char *kwnames[] = { | |
22341 | (char *) "self", NULL | |
22342 | }; | |
22343 | ||
22344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22347 | { |
22348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22349 | (arg1)->Lower(); | |
22350 | ||
22351 | wxPyEndAllowThreads(__tstate); | |
22352 | if (PyErr_Occurred()) SWIG_fail; | |
22353 | } | |
22354 | Py_INCREF(Py_None); resultobj = Py_None; | |
22355 | return resultobj; | |
22356 | fail: | |
22357 | return NULL; | |
22358 | } | |
22359 | ||
22360 | ||
22361 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22362 | PyObject *resultobj; | |
22363 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22364 | wxSize *arg2 = 0 ; | |
22365 | wxSize temp2 ; | |
22366 | PyObject * obj0 = 0 ; | |
22367 | PyObject * obj1 = 0 ; | |
22368 | char *kwnames[] = { | |
22369 | (char *) "self",(char *) "size", NULL | |
22370 | }; | |
22371 | ||
22372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22375 | { |
22376 | arg2 = &temp2; | |
22377 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22378 | } | |
22379 | { | |
22380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22381 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22382 | ||
22383 | wxPyEndAllowThreads(__tstate); | |
22384 | if (PyErr_Occurred()) SWIG_fail; | |
22385 | } | |
22386 | Py_INCREF(Py_None); resultobj = Py_None; | |
22387 | return resultobj; | |
22388 | fail: | |
22389 | return NULL; | |
22390 | } | |
22391 | ||
22392 | ||
22393 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22394 | PyObject *resultobj; | |
22395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22396 | int arg2 ; | |
22397 | int arg3 ; | |
22398 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22399 | PyObject * obj1 = 0 ; |
22400 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22401 | char *kwnames[] = { |
22402 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22403 | }; | |
22404 | ||
994141e6 | 22405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22408 | arg2 = (int) SWIG_AsInt(obj1); | |
22409 | if (PyErr_Occurred()) SWIG_fail; | |
22410 | arg3 = (int) SWIG_AsInt(obj2); | |
22411 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22412 | { |
22413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22414 | (arg1)->SetClientSize(arg2,arg3); | |
22415 | ||
22416 | wxPyEndAllowThreads(__tstate); | |
22417 | if (PyErr_Occurred()) SWIG_fail; | |
22418 | } | |
22419 | Py_INCREF(Py_None); resultobj = Py_None; | |
22420 | return resultobj; | |
22421 | fail: | |
22422 | return NULL; | |
22423 | } | |
22424 | ||
22425 | ||
22426 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22427 | PyObject *resultobj; | |
22428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22429 | wxRect *arg2 = 0 ; | |
22430 | wxRect temp2 ; | |
22431 | PyObject * obj0 = 0 ; | |
22432 | PyObject * obj1 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self",(char *) "rect", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22440 | { |
22441 | arg2 = &temp2; | |
22442 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22443 | } | |
22444 | { | |
22445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22446 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22447 | ||
22448 | wxPyEndAllowThreads(__tstate); | |
22449 | if (PyErr_Occurred()) SWIG_fail; | |
22450 | } | |
22451 | Py_INCREF(Py_None); resultobj = Py_None; | |
22452 | return resultobj; | |
22453 | fail: | |
22454 | return NULL; | |
22455 | } | |
22456 | ||
22457 | ||
22458 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22461 | wxPoint result; | |
22462 | PyObject * obj0 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22470 | { |
22471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22472 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22473 | |
22474 | wxPyEndAllowThreads(__tstate); | |
22475 | if (PyErr_Occurred()) SWIG_fail; | |
22476 | } | |
22477 | { | |
22478 | wxPoint * resultptr; | |
22479 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22480 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22481 | } |
22482 | return resultobj; | |
22483 | fail: | |
22484 | return NULL; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22489 | PyObject *resultobj; | |
22490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22491 | int *arg2 = (int *) 0 ; | |
22492 | int *arg3 = (int *) 0 ; | |
22493 | int temp2 ; | |
22494 | int temp3 ; | |
22495 | PyObject * obj0 = 0 ; | |
22496 | char *kwnames[] = { | |
22497 | (char *) "self", NULL | |
22498 | }; | |
22499 | ||
22500 | arg2 = &temp2; | |
22501 | arg3 = &temp3; | |
22502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22505 | { |
22506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22507 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22508 | |
22509 | wxPyEndAllowThreads(__tstate); | |
22510 | if (PyErr_Occurred()) SWIG_fail; | |
22511 | } | |
22512 | Py_INCREF(Py_None); resultobj = Py_None; | |
22513 | { | |
22514 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22515 | resultobj = t_output_helper(resultobj,o); | |
22516 | } | |
22517 | { | |
22518 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22519 | resultobj = t_output_helper(resultobj,o); | |
22520 | } | |
22521 | return resultobj; | |
22522 | fail: | |
22523 | return NULL; | |
22524 | } | |
22525 | ||
22526 | ||
22527 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22528 | PyObject *resultobj; | |
22529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22530 | wxSize result; | |
22531 | PyObject * obj0 = 0 ; | |
22532 | char *kwnames[] = { | |
22533 | (char *) "self", NULL | |
22534 | }; | |
22535 | ||
22536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22539 | { |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | result = ((wxWindow const *)arg1)->GetSize(); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | { | |
22547 | wxSize * resultptr; | |
22548 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22550 | } |
22551 | return resultobj; | |
22552 | fail: | |
22553 | return NULL; | |
22554 | } | |
22555 | ||
22556 | ||
22557 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22558 | PyObject *resultobj; | |
22559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22560 | int *arg2 = (int *) 0 ; | |
22561 | int *arg3 = (int *) 0 ; | |
22562 | int temp2 ; | |
22563 | int temp3 ; | |
22564 | PyObject * obj0 = 0 ; | |
22565 | char *kwnames[] = { | |
22566 | (char *) "self", NULL | |
22567 | }; | |
22568 | ||
22569 | arg2 = &temp2; | |
22570 | arg3 = &temp3; | |
22571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22574 | { |
22575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22576 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22577 | ||
22578 | wxPyEndAllowThreads(__tstate); | |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
22580 | } | |
22581 | Py_INCREF(Py_None); resultobj = Py_None; | |
22582 | { | |
22583 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22584 | resultobj = t_output_helper(resultobj,o); | |
22585 | } | |
22586 | { | |
22587 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22588 | resultobj = t_output_helper(resultobj,o); | |
22589 | } | |
22590 | return resultobj; | |
22591 | fail: | |
22592 | return NULL; | |
22593 | } | |
22594 | ||
22595 | ||
22596 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22597 | PyObject *resultobj; | |
22598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22599 | wxRect result; | |
22600 | PyObject * obj0 = 0 ; | |
22601 | char *kwnames[] = { | |
22602 | (char *) "self", NULL | |
22603 | }; | |
22604 | ||
22605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22608 | { |
22609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22610 | result = ((wxWindow const *)arg1)->GetRect(); | |
22611 | ||
22612 | wxPyEndAllowThreads(__tstate); | |
22613 | if (PyErr_Occurred()) SWIG_fail; | |
22614 | } | |
22615 | { | |
22616 | wxRect * resultptr; | |
22617 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22619 | } |
22620 | return resultobj; | |
22621 | fail: | |
22622 | return NULL; | |
22623 | } | |
22624 | ||
22625 | ||
22626 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22627 | PyObject *resultobj; | |
22628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22629 | wxSize result; | |
22630 | PyObject * obj0 = 0 ; | |
22631 | char *kwnames[] = { | |
22632 | (char *) "self", NULL | |
22633 | }; | |
22634 | ||
22635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22638 | { |
22639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22640 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22641 | ||
22642 | wxPyEndAllowThreads(__tstate); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | { | |
22646 | wxSize * resultptr; | |
22647 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22648 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22649 | } |
22650 | return resultobj; | |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
22656 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22657 | PyObject *resultobj; | |
22658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22659 | int *arg2 = (int *) 0 ; | |
22660 | int *arg3 = (int *) 0 ; | |
22661 | int temp2 ; | |
22662 | int temp3 ; | |
22663 | PyObject * obj0 = 0 ; | |
22664 | char *kwnames[] = { | |
22665 | (char *) "self", NULL | |
22666 | }; | |
22667 | ||
22668 | arg2 = &temp2; | |
22669 | arg3 = &temp3; | |
22670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22673 | { |
22674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22675 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22676 | ||
22677 | wxPyEndAllowThreads(__tstate); | |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
22680 | Py_INCREF(Py_None); resultobj = Py_None; | |
22681 | { | |
22682 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22683 | resultobj = t_output_helper(resultobj,o); | |
22684 | } | |
22685 | { | |
22686 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22687 | resultobj = t_output_helper(resultobj,o); | |
22688 | } | |
22689 | return resultobj; | |
22690 | fail: | |
22691 | return NULL; | |
22692 | } | |
22693 | ||
22694 | ||
22695 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22696 | PyObject *resultobj; | |
22697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22698 | wxPoint result; | |
22699 | PyObject * obj0 = 0 ; | |
22700 | char *kwnames[] = { | |
22701 | (char *) "self", NULL | |
22702 | }; | |
22703 | ||
22704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22707 | { |
22708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22709 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22710 | ||
22711 | wxPyEndAllowThreads(__tstate); | |
22712 | if (PyErr_Occurred()) SWIG_fail; | |
22713 | } | |
22714 | { | |
22715 | wxPoint * resultptr; | |
22716 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22717 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22718 | } |
22719 | return resultobj; | |
22720 | fail: | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
22725 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22726 | PyObject *resultobj; | |
22727 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22728 | wxRect result; | |
22729 | PyObject * obj0 = 0 ; | |
22730 | char *kwnames[] = { | |
22731 | (char *) "self", NULL | |
22732 | }; | |
22733 | ||
22734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22737 | { |
22738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22739 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22740 | ||
22741 | wxPyEndAllowThreads(__tstate); | |
22742 | if (PyErr_Occurred()) SWIG_fail; | |
22743 | } | |
22744 | { | |
22745 | wxRect * resultptr; | |
22746 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22747 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22748 | } |
22749 | return resultobj; | |
22750 | fail: | |
22751 | return NULL; | |
22752 | } | |
22753 | ||
22754 | ||
22755 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22756 | PyObject *resultobj; | |
22757 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22758 | wxSize result; | |
22759 | PyObject * obj0 = 0 ; | |
22760 | char *kwnames[] = { | |
22761 | (char *) "self", NULL | |
22762 | }; | |
22763 | ||
22764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22767 | { |
22768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22769 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22770 | ||
22771 | wxPyEndAllowThreads(__tstate); | |
22772 | if (PyErr_Occurred()) SWIG_fail; | |
22773 | } | |
22774 | { | |
22775 | wxSize * resultptr; | |
22776 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22778 | } |
22779 | return resultobj; | |
22780 | fail: | |
22781 | return NULL; | |
22782 | } | |
22783 | ||
22784 | ||
22785 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22786 | PyObject *resultobj; | |
22787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22788 | int *arg2 = (int *) 0 ; | |
22789 | int *arg3 = (int *) 0 ; | |
22790 | int temp2 ; | |
22791 | int temp3 ; | |
22792 | PyObject * obj0 = 0 ; | |
22793 | char *kwnames[] = { | |
22794 | (char *) "self", NULL | |
22795 | }; | |
22796 | ||
22797 | arg2 = &temp2; | |
22798 | arg3 = &temp3; | |
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22802 | { |
22803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22804 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22805 | ||
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
22809 | Py_INCREF(Py_None); resultobj = Py_None; | |
22810 | { | |
22811 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22812 | resultobj = t_output_helper(resultobj,o); | |
22813 | } | |
22814 | { | |
22815 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22816 | resultobj = t_output_helper(resultobj,o); | |
22817 | } | |
22818 | return resultobj; | |
22819 | fail: | |
22820 | return NULL; | |
22821 | } | |
22822 | ||
22823 | ||
22824 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22825 | PyObject *resultobj; | |
22826 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22827 | wxSize result; | |
22828 | PyObject * obj0 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22836 | { |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | { | |
22844 | wxSize * resultptr; | |
22845 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22846 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22847 | } |
22848 | return resultobj; | |
22849 | fail: | |
22850 | return NULL; | |
22851 | } | |
22852 | ||
22853 | ||
22854 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22855 | PyObject *resultobj; | |
22856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22857 | int arg2 = (int) wxBOTH ; | |
22858 | PyObject * obj0 = 0 ; | |
994141e6 | 22859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22860 | char *kwnames[] = { |
22861 | (char *) "self",(char *) "direction", NULL | |
22862 | }; | |
22863 | ||
994141e6 | 22864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22867 | if (obj1) { |
15afbcd0 RD |
22868 | arg2 = (int) SWIG_AsInt(obj1); |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22870 | } |
d14a1e28 RD |
22871 | { |
22872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22873 | (arg1)->Center(arg2); | |
22874 | ||
22875 | wxPyEndAllowThreads(__tstate); | |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
22877 | } | |
22878 | Py_INCREF(Py_None); resultobj = Py_None; | |
22879 | return resultobj; | |
22880 | fail: | |
22881 | return NULL; | |
22882 | } | |
22883 | ||
22884 | ||
22885 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22886 | PyObject *resultobj; | |
22887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22888 | int arg2 = (int) wxBOTH ; | |
22889 | PyObject * obj0 = 0 ; | |
994141e6 | 22890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22891 | char *kwnames[] = { |
22892 | (char *) "self",(char *) "dir", NULL | |
22893 | }; | |
22894 | ||
994141e6 | 22895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22898 | if (obj1) { |
15afbcd0 RD |
22899 | arg2 = (int) SWIG_AsInt(obj1); |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22901 | } |
d14a1e28 RD |
22902 | { |
22903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22904 | (arg1)->CenterOnScreen(arg2); | |
22905 | ||
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
22909 | Py_INCREF(Py_None); resultobj = Py_None; | |
22910 | return resultobj; | |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
22916 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22917 | PyObject *resultobj; | |
22918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22919 | int arg2 = (int) wxBOTH ; | |
22920 | PyObject * obj0 = 0 ; | |
994141e6 | 22921 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22922 | char *kwnames[] = { |
22923 | (char *) "self",(char *) "dir", NULL | |
22924 | }; | |
22925 | ||
994141e6 | 22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22929 | if (obj1) { |
15afbcd0 RD |
22930 | arg2 = (int) SWIG_AsInt(obj1); |
22931 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22932 | } |
d14a1e28 RD |
22933 | { |
22934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22935 | (arg1)->CenterOnParent(arg2); | |
22936 | ||
22937 | wxPyEndAllowThreads(__tstate); | |
22938 | if (PyErr_Occurred()) SWIG_fail; | |
22939 | } | |
22940 | Py_INCREF(Py_None); resultobj = Py_None; | |
22941 | return resultobj; | |
22942 | fail: | |
22943 | return NULL; | |
22944 | } | |
22945 | ||
22946 | ||
22947 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22948 | PyObject *resultobj; | |
22949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22950 | PyObject * obj0 = 0 ; | |
22951 | char *kwnames[] = { | |
22952 | (char *) "self", NULL | |
22953 | }; | |
22954 | ||
22955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22958 | { |
22959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22960 | (arg1)->Fit(); | |
22961 | ||
22962 | wxPyEndAllowThreads(__tstate); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
22964 | } | |
22965 | Py_INCREF(Py_None); resultobj = Py_None; | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22975 | PyObject * obj0 = 0 ; | |
22976 | char *kwnames[] = { | |
22977 | (char *) "self", NULL | |
22978 | }; | |
22979 | ||
22980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22983 | { |
22984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22985 | (arg1)->FitInside(); | |
22986 | ||
22987 | wxPyEndAllowThreads(__tstate); | |
22988 | if (PyErr_Occurred()) SWIG_fail; | |
22989 | } | |
22990 | Py_INCREF(Py_None); resultobj = Py_None; | |
22991 | return resultobj; | |
22992 | fail: | |
22993 | return NULL; | |
22994 | } | |
22995 | ||
22996 | ||
74a57fcd | 22997 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
22998 | PyObject *resultobj; |
22999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23000 | int arg2 ; | |
23001 | int arg3 ; | |
23002 | int arg4 = (int) -1 ; | |
23003 | int arg5 = (int) -1 ; | |
23004 | int arg6 = (int) -1 ; | |
23005 | int arg7 = (int) -1 ; | |
23006 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23007 | PyObject * obj1 = 0 ; |
23008 | PyObject * obj2 = 0 ; | |
23009 | PyObject * obj3 = 0 ; | |
23010 | PyObject * obj4 = 0 ; | |
23011 | PyObject * obj5 = 0 ; | |
23012 | PyObject * obj6 = 0 ; | |
d14a1e28 | 23013 | |
74a57fcd | 23014 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23017 | arg2 = (int) SWIG_AsInt(obj1); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | arg3 = (int) SWIG_AsInt(obj2); | |
23020 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23021 | if (obj3) { |
15afbcd0 RD |
23022 | arg4 = (int) SWIG_AsInt(obj3); |
23023 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23024 | } |
23025 | if (obj4) { | |
15afbcd0 RD |
23026 | arg5 = (int) SWIG_AsInt(obj4); |
23027 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23028 | } |
23029 | if (obj5) { | |
15afbcd0 RD |
23030 | arg6 = (int) SWIG_AsInt(obj5); |
23031 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23032 | } |
23033 | if (obj6) { | |
15afbcd0 RD |
23034 | arg7 = (int) SWIG_AsInt(obj6); |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23036 | } |
d14a1e28 RD |
23037 | { |
23038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23039 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23040 | ||
23041 | wxPyEndAllowThreads(__tstate); | |
23042 | if (PyErr_Occurred()) SWIG_fail; | |
23043 | } | |
23044 | Py_INCREF(Py_None); resultobj = Py_None; | |
23045 | return resultobj; | |
23046 | fail: | |
23047 | return NULL; | |
23048 | } | |
23049 | ||
23050 | ||
74a57fcd RD |
23051 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23052 | PyObject *resultobj; | |
23053 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23054 | wxSize *arg2 = 0 ; | |
23055 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23056 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23057 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23058 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23059 | wxSize temp2 ; | |
23060 | wxSize temp3 ; | |
23061 | wxSize temp4 ; | |
23062 | PyObject * obj0 = 0 ; | |
23063 | PyObject * obj1 = 0 ; | |
23064 | PyObject * obj2 = 0 ; | |
23065 | PyObject * obj3 = 0 ; | |
23066 | ||
23067 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23070 | { | |
23071 | arg2 = &temp2; | |
23072 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23073 | } | |
23074 | if (obj2) { | |
23075 | { | |
23076 | arg3 = &temp3; | |
23077 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23078 | } | |
23079 | } | |
23080 | if (obj3) { | |
23081 | { | |
23082 | arg4 = &temp4; | |
23083 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23084 | } | |
23085 | } | |
23086 | { | |
23087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23088 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
23089 | ||
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | Py_INCREF(Py_None); resultobj = Py_None; | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { | |
23101 | int argc; | |
23102 | PyObject *argv[8]; | |
23103 | int ii; | |
23104 | ||
23105 | argc = PyObject_Length(args); | |
23106 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23107 | argv[ii] = PyTuple_GetItem(args,ii); | |
23108 | } | |
23109 | if ((argc >= 2) && (argc <= 4)) { | |
23110 | int _v; | |
23111 | { | |
23112 | void *ptr; | |
23113 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23114 | _v = 0; | |
23115 | PyErr_Clear(); | |
23116 | } else { | |
23117 | _v = 1; | |
23118 | } | |
23119 | } | |
23120 | if (_v) { | |
23121 | { | |
23122 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23123 | } | |
23124 | if (_v) { | |
23125 | if (argc <= 2) { | |
23126 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23127 | } | |
23128 | { | |
23129 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23130 | } | |
23131 | if (_v) { | |
23132 | if (argc <= 3) { | |
23133 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23134 | } | |
23135 | { | |
23136 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23137 | } | |
23138 | if (_v) { | |
23139 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23140 | } | |
23141 | } | |
23142 | } | |
23143 | } | |
23144 | } | |
23145 | if ((argc >= 3) && (argc <= 7)) { | |
23146 | int _v; | |
23147 | { | |
23148 | void *ptr; | |
23149 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23150 | _v = 0; | |
23151 | PyErr_Clear(); | |
23152 | } else { | |
23153 | _v = 1; | |
23154 | } | |
23155 | } | |
23156 | if (_v) { | |
23157 | _v = SWIG_CheckInt(argv[1]); | |
23158 | if (_v) { | |
23159 | _v = SWIG_CheckInt(argv[2]); | |
23160 | if (_v) { | |
23161 | if (argc <= 3) { | |
23162 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23163 | } | |
23164 | _v = SWIG_CheckInt(argv[3]); | |
23165 | if (_v) { | |
23166 | if (argc <= 4) { | |
23167 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23168 | } | |
23169 | _v = SWIG_CheckInt(argv[4]); | |
23170 | if (_v) { | |
23171 | if (argc <= 5) { | |
23172 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23173 | } | |
23174 | _v = SWIG_CheckInt(argv[5]); | |
23175 | if (_v) { | |
23176 | if (argc <= 6) { | |
23177 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23178 | } | |
23179 | _v = SWIG_CheckInt(argv[6]); | |
23180 | if (_v) { | |
23181 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23182 | } | |
23183 | } | |
23184 | } | |
23185 | } | |
23186 | } | |
23187 | } | |
23188 | } | |
23189 | } | |
23190 | ||
23191 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
23196 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
23197 | PyObject *resultobj; |
23198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23199 | int arg2 ; | |
23200 | int arg3 ; | |
23201 | int arg4 = (int) -1 ; | |
23202 | int arg5 = (int) -1 ; | |
23203 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23204 | PyObject * obj1 = 0 ; |
23205 | PyObject * obj2 = 0 ; | |
23206 | PyObject * obj3 = 0 ; | |
23207 | PyObject * obj4 = 0 ; | |
d14a1e28 | 23208 | |
74a57fcd | 23209 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23212 | arg2 = (int) SWIG_AsInt(obj1); | |
23213 | if (PyErr_Occurred()) SWIG_fail; | |
23214 | arg3 = (int) SWIG_AsInt(obj2); | |
23215 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23216 | if (obj3) { |
15afbcd0 RD |
23217 | arg4 = (int) SWIG_AsInt(obj3); |
23218 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23219 | } |
23220 | if (obj4) { | |
15afbcd0 RD |
23221 | arg5 = (int) SWIG_AsInt(obj4); |
23222 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23223 | } |
d14a1e28 RD |
23224 | { |
23225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23226 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
23227 | ||
23228 | wxPyEndAllowThreads(__tstate); | |
23229 | if (PyErr_Occurred()) SWIG_fail; | |
23230 | } | |
23231 | Py_INCREF(Py_None); resultobj = Py_None; | |
23232 | return resultobj; | |
23233 | fail: | |
23234 | return NULL; | |
23235 | } | |
23236 | ||
23237 | ||
74a57fcd RD |
23238 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23239 | PyObject *resultobj; | |
23240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23241 | wxSize *arg2 = 0 ; | |
23242 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23243 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23244 | wxSize temp2 ; | |
23245 | wxSize temp3 ; | |
23246 | PyObject * obj0 = 0 ; | |
23247 | PyObject * obj1 = 0 ; | |
23248 | PyObject * obj2 = 0 ; | |
23249 | ||
23250 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; | |
23251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23253 | { | |
23254 | arg2 = &temp2; | |
23255 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23256 | } | |
23257 | if (obj2) { | |
23258 | { | |
23259 | arg3 = &temp3; | |
23260 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23261 | } | |
23262 | } | |
23263 | { | |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23266 | ||
23267 | wxPyEndAllowThreads(__tstate); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | } | |
23270 | Py_INCREF(Py_None); resultobj = Py_None; | |
23271 | return resultobj; | |
23272 | fail: | |
23273 | return NULL; | |
23274 | } | |
23275 | ||
23276 | ||
23277 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23278 | int argc; | |
23279 | PyObject *argv[6]; | |
23280 | int ii; | |
23281 | ||
23282 | argc = PyObject_Length(args); | |
23283 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23284 | argv[ii] = PyTuple_GetItem(args,ii); | |
23285 | } | |
23286 | if ((argc >= 2) && (argc <= 3)) { | |
23287 | int _v; | |
23288 | { | |
23289 | void *ptr; | |
23290 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23291 | _v = 0; | |
23292 | PyErr_Clear(); | |
23293 | } else { | |
23294 | _v = 1; | |
23295 | } | |
23296 | } | |
23297 | if (_v) { | |
23298 | { | |
23299 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23300 | } | |
23301 | if (_v) { | |
23302 | if (argc <= 2) { | |
23303 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23304 | } | |
23305 | { | |
23306 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23307 | } | |
23308 | if (_v) { | |
23309 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23310 | } | |
23311 | } | |
23312 | } | |
23313 | } | |
23314 | if ((argc >= 3) && (argc <= 5)) { | |
23315 | int _v; | |
23316 | { | |
23317 | void *ptr; | |
23318 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23319 | _v = 0; | |
23320 | PyErr_Clear(); | |
23321 | } else { | |
23322 | _v = 1; | |
23323 | } | |
23324 | } | |
23325 | if (_v) { | |
23326 | _v = SWIG_CheckInt(argv[1]); | |
23327 | if (_v) { | |
23328 | _v = SWIG_CheckInt(argv[2]); | |
23329 | if (_v) { | |
23330 | if (argc <= 3) { | |
23331 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23332 | } | |
23333 | _v = SWIG_CheckInt(argv[3]); | |
23334 | if (_v) { | |
23335 | if (argc <= 4) { | |
23336 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23337 | } | |
23338 | _v = SWIG_CheckInt(argv[4]); | |
23339 | if (_v) { | |
23340 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23341 | } | |
23342 | } | |
23343 | } | |
23344 | } | |
23345 | } | |
23346 | } | |
23347 | ||
23348 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23349 | return NULL; | |
23350 | } | |
23351 | ||
23352 | ||
d14a1e28 RD |
23353 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
23354 | PyObject *resultobj; | |
23355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23356 | int result; | |
23357 | PyObject * obj0 = 0 ; | |
23358 | char *kwnames[] = { | |
23359 | (char *) "self", NULL | |
23360 | }; | |
23361 | ||
23362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23365 | { |
23366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23367 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
23368 | ||
23369 | wxPyEndAllowThreads(__tstate); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
15afbcd0 | 23372 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23373 | return resultobj; |
23374 | fail: | |
23375 | return NULL; | |
23376 | } | |
23377 | ||
23378 | ||
23379 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23380 | PyObject *resultobj; | |
23381 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23382 | int result; | |
23383 | PyObject * obj0 = 0 ; | |
23384 | char *kwnames[] = { | |
23385 | (char *) "self", NULL | |
23386 | }; | |
23387 | ||
23388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23391 | { |
23392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23393 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
23394 | ||
23395 | wxPyEndAllowThreads(__tstate); | |
23396 | if (PyErr_Occurred()) SWIG_fail; | |
23397 | } | |
15afbcd0 | 23398 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23399 | return resultobj; |
23400 | fail: | |
23401 | return NULL; | |
23402 | } | |
23403 | ||
23404 | ||
23405 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23406 | PyObject *resultobj; | |
23407 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23408 | int result; | |
23409 | PyObject * obj0 = 0 ; | |
23410 | char *kwnames[] = { | |
23411 | (char *) "self", NULL | |
23412 | }; | |
23413 | ||
23414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23417 | { |
23418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23419 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
23420 | ||
23421 | wxPyEndAllowThreads(__tstate); | |
23422 | if (PyErr_Occurred()) SWIG_fail; | |
23423 | } | |
15afbcd0 | 23424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23425 | return resultobj; |
23426 | fail: | |
23427 | return NULL; | |
23428 | } | |
23429 | ||
23430 | ||
23431 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23432 | PyObject *resultobj; | |
23433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23434 | int result; | |
23435 | PyObject * obj0 = 0 ; | |
23436 | char *kwnames[] = { | |
23437 | (char *) "self", NULL | |
23438 | }; | |
23439 | ||
23440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23443 | { |
23444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23445 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
23446 | ||
23447 | wxPyEndAllowThreads(__tstate); | |
23448 | if (PyErr_Occurred()) SWIG_fail; | |
23449 | } | |
15afbcd0 | 23450 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23451 | return resultobj; |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
23457 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23458 | PyObject *resultobj; | |
23459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23460 | wxSize result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23469 | { |
23470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23471 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
23472 | ||
23473 | wxPyEndAllowThreads(__tstate); | |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
23475 | } | |
23476 | { | |
23477 | wxSize * resultptr; | |
23478 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23480 | } |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
74a57fcd RD |
23487 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23488 | PyObject *resultobj; | |
23489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23490 | wxSize result; | |
23491 | PyObject * obj0 = 0 ; | |
23492 | char *kwnames[] = { | |
23493 | (char *) "self", NULL | |
23494 | }; | |
23495 | ||
23496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; | |
23497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23499 | { | |
23500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23501 | result = ((wxWindow const *)arg1)->GetMinSize(); | |
23502 | ||
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | { | |
23507 | wxSize * resultptr; | |
23508 | resultptr = new wxSize((wxSize &) result); | |
23509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23510 | } | |
23511 | return resultobj; | |
23512 | fail: | |
23513 | return NULL; | |
23514 | } | |
23515 | ||
23516 | ||
d14a1e28 RD |
23517 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23518 | PyObject *resultobj; | |
23519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23520 | wxSize *arg2 = 0 ; | |
23521 | wxSize temp2 ; | |
23522 | PyObject * obj0 = 0 ; | |
23523 | PyObject * obj1 = 0 ; | |
23524 | char *kwnames[] = { | |
23525 | (char *) "self",(char *) "size", NULL | |
23526 | }; | |
23527 | ||
23528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23531 | { |
23532 | arg2 = &temp2; | |
23533 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23534 | } | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | Py_INCREF(Py_None); resultobj = Py_None; | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj; | |
23551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23552 | int arg2 ; | |
23553 | int arg3 ; | |
23554 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23555 | PyObject * obj1 = 0 ; |
23556 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23557 | char *kwnames[] = { |
23558 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23559 | }; | |
23560 | ||
994141e6 | 23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23564 | arg2 = (int) SWIG_AsInt(obj1); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | arg3 = (int) SWIG_AsInt(obj2); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23568 | { |
23569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23570 | (arg1)->SetVirtualSize(arg2,arg3); | |
23571 | ||
23572 | wxPyEndAllowThreads(__tstate); | |
23573 | if (PyErr_Occurred()) SWIG_fail; | |
23574 | } | |
23575 | Py_INCREF(Py_None); resultobj = Py_None; | |
23576 | return resultobj; | |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
23582 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23583 | PyObject *resultobj; | |
23584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23585 | wxSize result; | |
23586 | PyObject * obj0 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23594 | { |
23595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23596 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23597 | ||
23598 | wxPyEndAllowThreads(__tstate); | |
23599 | if (PyErr_Occurred()) SWIG_fail; | |
23600 | } | |
23601 | { | |
23602 | wxSize * resultptr; | |
23603 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23605 | } |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
23612 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23613 | PyObject *resultobj; | |
23614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23615 | int *arg2 = (int *) 0 ; | |
23616 | int *arg3 = (int *) 0 ; | |
23617 | int temp2 ; | |
23618 | int temp3 ; | |
23619 | PyObject * obj0 = 0 ; | |
23620 | char *kwnames[] = { | |
23621 | (char *) "self", NULL | |
23622 | }; | |
23623 | ||
23624 | arg2 = &temp2; | |
23625 | arg3 = &temp3; | |
23626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23629 | { |
23630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23631 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23632 | ||
23633 | wxPyEndAllowThreads(__tstate); | |
23634 | if (PyErr_Occurred()) SWIG_fail; | |
23635 | } | |
23636 | Py_INCREF(Py_None); resultobj = Py_None; | |
23637 | { | |
23638 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23639 | resultobj = t_output_helper(resultobj,o); | |
23640 | } | |
23641 | { | |
23642 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23643 | resultobj = t_output_helper(resultobj,o); | |
23644 | } | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23652 | PyObject *resultobj; | |
23653 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23654 | wxSize result; | |
23655 | PyObject * obj0 = 0 ; | |
23656 | char *kwnames[] = { | |
23657 | (char *) "self", NULL | |
23658 | }; | |
23659 | ||
23660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23663 | { |
23664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23665 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23666 | ||
23667 | wxPyEndAllowThreads(__tstate); | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | } | |
23670 | { | |
23671 | wxSize * resultptr; | |
23672 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23674 | } |
23675 | return resultobj; | |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
23681 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23682 | PyObject *resultobj; | |
23683 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23684 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23685 | bool result; |
23686 | PyObject * obj0 = 0 ; | |
23687 | PyObject * obj1 = 0 ; | |
23688 | char *kwnames[] = { | |
23689 | (char *) "self",(char *) "show", NULL | |
23690 | }; | |
23691 | ||
23692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23695 | if (obj1) { |
15afbcd0 RD |
23696 | arg2 = (bool) SWIG_AsBool(obj1); |
23697 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23698 | } |
23699 | { | |
23700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23701 | result = (bool)(arg1)->Show(arg2); | |
23702 | ||
23703 | wxPyEndAllowThreads(__tstate); | |
23704 | if (PyErr_Occurred()) SWIG_fail; | |
23705 | } | |
4f89f6a3 RD |
23706 | { |
23707 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23708 | } | |
d14a1e28 RD |
23709 | return resultobj; |
23710 | fail: | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
23715 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23718 | bool result; | |
23719 | PyObject * obj0 = 0 ; | |
23720 | char *kwnames[] = { | |
23721 | (char *) "self", NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23727 | { |
23728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23729 | result = (bool)(arg1)->Hide(); | |
23730 | ||
23731 | wxPyEndAllowThreads(__tstate); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
4f89f6a3 RD |
23734 | { |
23735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23736 | } | |
d14a1e28 RD |
23737 | return resultobj; |
23738 | fail: | |
23739 | return NULL; | |
23740 | } | |
23741 | ||
23742 | ||
23743 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23744 | PyObject *resultobj; | |
23745 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23746 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23747 | bool result; |
23748 | PyObject * obj0 = 0 ; | |
23749 | PyObject * obj1 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self",(char *) "enable", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23757 | if (obj1) { |
15afbcd0 RD |
23758 | arg2 = (bool) SWIG_AsBool(obj1); |
23759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23760 | } |
23761 | { | |
23762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23763 | result = (bool)(arg1)->Enable(arg2); | |
23764 | ||
23765 | wxPyEndAllowThreads(__tstate); | |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
23767 | } | |
4f89f6a3 RD |
23768 | { |
23769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23770 | } | |
d14a1e28 RD |
23771 | return resultobj; |
23772 | fail: | |
23773 | return NULL; | |
23774 | } | |
23775 | ||
23776 | ||
23777 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23778 | PyObject *resultobj; | |
23779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23780 | bool result; | |
23781 | PyObject * obj0 = 0 ; | |
23782 | char *kwnames[] = { | |
23783 | (char *) "self", NULL | |
23784 | }; | |
23785 | ||
23786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23789 | { |
23790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23791 | result = (bool)(arg1)->Disable(); | |
23792 | ||
23793 | wxPyEndAllowThreads(__tstate); | |
23794 | if (PyErr_Occurred()) SWIG_fail; | |
23795 | } | |
4f89f6a3 RD |
23796 | { |
23797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23798 | } | |
d14a1e28 RD |
23799 | return resultobj; |
23800 | fail: | |
23801 | return NULL; | |
23802 | } | |
23803 | ||
23804 | ||
23805 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23806 | PyObject *resultobj; | |
23807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23808 | bool result; | |
23809 | PyObject * obj0 = 0 ; | |
23810 | char *kwnames[] = { | |
23811 | (char *) "self", NULL | |
23812 | }; | |
23813 | ||
23814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23817 | { |
23818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23819 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23820 | ||
23821 | wxPyEndAllowThreads(__tstate); | |
23822 | if (PyErr_Occurred()) SWIG_fail; | |
23823 | } | |
4f89f6a3 RD |
23824 | { |
23825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23826 | } | |
d14a1e28 RD |
23827 | return resultobj; |
23828 | fail: | |
23829 | return NULL; | |
23830 | } | |
23831 | ||
23832 | ||
23833 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23834 | PyObject *resultobj; | |
23835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23836 | bool result; | |
23837 | PyObject * obj0 = 0 ; | |
23838 | char *kwnames[] = { | |
23839 | (char *) "self", NULL | |
23840 | }; | |
23841 | ||
23842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23845 | { |
23846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23847 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23848 | ||
23849 | wxPyEndAllowThreads(__tstate); | |
23850 | if (PyErr_Occurred()) SWIG_fail; | |
23851 | } | |
4f89f6a3 RD |
23852 | { |
23853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23854 | } | |
d14a1e28 RD |
23855 | return resultobj; |
23856 | fail: | |
23857 | return NULL; | |
23858 | } | |
23859 | ||
23860 | ||
23861 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23862 | PyObject *resultobj; | |
23863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23864 | long arg2 ; | |
23865 | PyObject * obj0 = 0 ; | |
994141e6 | 23866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23867 | char *kwnames[] = { |
23868 | (char *) "self",(char *) "style", NULL | |
23869 | }; | |
23870 | ||
994141e6 | 23871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23874 | arg2 = (long) SWIG_AsLong(obj1); | |
23875 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23876 | { |
23877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23878 | (arg1)->SetWindowStyleFlag(arg2); | |
23879 | ||
23880 | wxPyEndAllowThreads(__tstate); | |
23881 | if (PyErr_Occurred()) SWIG_fail; | |
23882 | } | |
23883 | Py_INCREF(Py_None); resultobj = Py_None; | |
23884 | return resultobj; | |
23885 | fail: | |
23886 | return NULL; | |
23887 | } | |
23888 | ||
23889 | ||
23890 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23891 | PyObject *resultobj; | |
23892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23893 | long result; | |
23894 | PyObject * obj0 = 0 ; | |
23895 | char *kwnames[] = { | |
23896 | (char *) "self", NULL | |
23897 | }; | |
23898 | ||
23899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23902 | { |
23903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23904 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23905 | ||
23906 | wxPyEndAllowThreads(__tstate); | |
23907 | if (PyErr_Occurred()) SWIG_fail; | |
23908 | } | |
15afbcd0 | 23909 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23910 | return resultobj; |
23911 | fail: | |
23912 | return NULL; | |
23913 | } | |
23914 | ||
23915 | ||
23916 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23917 | PyObject *resultobj; | |
23918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23919 | int arg2 ; | |
23920 | bool result; | |
23921 | PyObject * obj0 = 0 ; | |
994141e6 | 23922 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23923 | char *kwnames[] = { |
23924 | (char *) "self",(char *) "flag", NULL | |
23925 | }; | |
23926 | ||
994141e6 | 23927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23930 | arg2 = (int) SWIG_AsInt(obj1); | |
23931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23932 | { |
23933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23934 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23935 | ||
23936 | wxPyEndAllowThreads(__tstate); | |
23937 | if (PyErr_Occurred()) SWIG_fail; | |
23938 | } | |
4f89f6a3 RD |
23939 | { |
23940 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23941 | } | |
d14a1e28 RD |
23942 | return resultobj; |
23943 | fail: | |
23944 | return NULL; | |
23945 | } | |
23946 | ||
23947 | ||
23948 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23949 | PyObject *resultobj; | |
23950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23951 | bool result; | |
23952 | PyObject * obj0 = 0 ; | |
23953 | char *kwnames[] = { | |
23954 | (char *) "self", NULL | |
23955 | }; | |
23956 | ||
23957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23960 | { |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23962 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23963 | ||
23964 | wxPyEndAllowThreads(__tstate); | |
23965 | if (PyErr_Occurred()) SWIG_fail; | |
23966 | } | |
4f89f6a3 RD |
23967 | { |
23968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23969 | } | |
d14a1e28 RD |
23970 | return resultobj; |
23971 | fail: | |
23972 | return NULL; | |
23973 | } | |
23974 | ||
23975 | ||
23976 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23977 | PyObject *resultobj; | |
23978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23979 | long arg2 ; | |
23980 | PyObject * obj0 = 0 ; | |
994141e6 | 23981 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23982 | char *kwnames[] = { |
23983 | (char *) "self",(char *) "exStyle", NULL | |
23984 | }; | |
23985 | ||
994141e6 | 23986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23989 | arg2 = (long) SWIG_AsLong(obj1); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23991 | { |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | (arg1)->SetExtraStyle(arg2); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | Py_INCREF(Py_None); resultobj = Py_None; | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24006 | PyObject *resultobj; | |
24007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24008 | long result; | |
24009 | PyObject * obj0 = 0 ; | |
24010 | char *kwnames[] = { | |
24011 | (char *) "self", NULL | |
24012 | }; | |
24013 | ||
24014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24017 | { |
24018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24019 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24020 | ||
24021 | wxPyEndAllowThreads(__tstate); | |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
24023 | } | |
15afbcd0 | 24024 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24025 | return resultobj; |
24026 | fail: | |
24027 | return NULL; | |
24028 | } | |
24029 | ||
24030 | ||
24031 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24032 | PyObject *resultobj; | |
24033 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24034 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24035 | PyObject * obj0 = 0 ; |
24036 | PyObject * obj1 = 0 ; | |
24037 | char *kwnames[] = { | |
24038 | (char *) "self",(char *) "modal", NULL | |
24039 | }; | |
24040 | ||
24041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24044 | if (obj1) { |
15afbcd0 RD |
24045 | arg2 = (bool) SWIG_AsBool(obj1); |
24046 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24047 | } |
24048 | { | |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | (arg1)->MakeModal(arg2); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
24055 | Py_INCREF(Py_None); resultobj = Py_None; | |
24056 | return resultobj; | |
24057 | fail: | |
24058 | return NULL; | |
24059 | } | |
24060 | ||
24061 | ||
24062 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24063 | PyObject *resultobj; | |
24064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24065 | bool arg2 ; | |
24066 | PyObject * obj0 = 0 ; | |
24067 | PyObject * obj1 = 0 ; | |
24068 | char *kwnames[] = { | |
24069 | (char *) "self",(char *) "enableTheme", NULL | |
24070 | }; | |
24071 | ||
24072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24075 | arg2 = (bool) SWIG_AsBool(obj1); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24077 | { |
24078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24079 | (arg1)->SetThemeEnabled(arg2); | |
24080 | ||
24081 | wxPyEndAllowThreads(__tstate); | |
24082 | if (PyErr_Occurred()) SWIG_fail; | |
24083 | } | |
24084 | Py_INCREF(Py_None); resultobj = Py_None; | |
24085 | return resultobj; | |
24086 | fail: | |
24087 | return NULL; | |
24088 | } | |
24089 | ||
24090 | ||
24091 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24092 | PyObject *resultobj; | |
24093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24094 | bool result; | |
24095 | PyObject * obj0 = 0 ; | |
24096 | char *kwnames[] = { | |
24097 | (char *) "self", NULL | |
24098 | }; | |
24099 | ||
24100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24103 | { |
24104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24105 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24106 | ||
24107 | wxPyEndAllowThreads(__tstate); | |
24108 | if (PyErr_Occurred()) SWIG_fail; | |
24109 | } | |
4f89f6a3 RD |
24110 | { |
24111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24112 | } | |
d14a1e28 RD |
24113 | return resultobj; |
24114 | fail: | |
24115 | return NULL; | |
24116 | } | |
24117 | ||
24118 | ||
d14a1e28 RD |
24119 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
24120 | PyObject *resultobj; | |
24121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24122 | PyObject * obj0 = 0 ; | |
24123 | char *kwnames[] = { | |
24124 | (char *) "self", NULL | |
24125 | }; | |
24126 | ||
24127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24130 | { |
24131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24132 | (arg1)->SetFocus(); | |
24133 | ||
24134 | wxPyEndAllowThreads(__tstate); | |
24135 | if (PyErr_Occurred()) SWIG_fail; | |
24136 | } | |
24137 | Py_INCREF(Py_None); resultobj = Py_None; | |
24138 | return resultobj; | |
24139 | fail: | |
24140 | return NULL; | |
24141 | } | |
24142 | ||
24143 | ||
24144 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24145 | PyObject *resultobj; | |
24146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24147 | PyObject * obj0 = 0 ; | |
24148 | char *kwnames[] = { | |
24149 | (char *) "self", NULL | |
24150 | }; | |
24151 | ||
24152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24155 | { |
24156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24157 | (arg1)->SetFocusFromKbd(); | |
24158 | ||
24159 | wxPyEndAllowThreads(__tstate); | |
24160 | if (PyErr_Occurred()) SWIG_fail; | |
24161 | } | |
24162 | Py_INCREF(Py_None); resultobj = Py_None; | |
24163 | return resultobj; | |
24164 | fail: | |
24165 | return NULL; | |
24166 | } | |
24167 | ||
24168 | ||
24169 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24170 | PyObject *resultobj; | |
24171 | wxWindow *result; | |
24172 | char *kwnames[] = { | |
24173 | NULL | |
24174 | }; | |
24175 | ||
24176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24177 | { | |
e3b71cb8 | 24178 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24180 | result = (wxWindow *)wxWindow::FindFocus(); | |
24181 | ||
24182 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 24183 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24184 | } |
24185 | { | |
24186 | resultobj = wxPyMake_wxObject(result); | |
24187 | } | |
24188 | return resultobj; | |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
24194 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24195 | PyObject *resultobj; | |
24196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24197 | bool result; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | char *kwnames[] = { | |
24200 | (char *) "self", NULL | |
24201 | }; | |
24202 | ||
24203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24206 | { |
24207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24208 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24209 | ||
24210 | wxPyEndAllowThreads(__tstate); | |
24211 | if (PyErr_Occurred()) SWIG_fail; | |
24212 | } | |
4f89f6a3 RD |
24213 | { |
24214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24215 | } | |
d14a1e28 RD |
24216 | return resultobj; |
24217 | fail: | |
24218 | return NULL; | |
24219 | } | |
24220 | ||
24221 | ||
24222 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24223 | PyObject *resultobj; | |
24224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24225 | bool result; | |
24226 | PyObject * obj0 = 0 ; | |
24227 | char *kwnames[] = { | |
24228 | (char *) "self", NULL | |
24229 | }; | |
24230 | ||
24231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24234 | { |
24235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24236 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24237 | ||
24238 | wxPyEndAllowThreads(__tstate); | |
24239 | if (PyErr_Occurred()) SWIG_fail; | |
24240 | } | |
4f89f6a3 RD |
24241 | { |
24242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24243 | } | |
d14a1e28 RD |
24244 | return resultobj; |
24245 | fail: | |
24246 | return NULL; | |
24247 | } | |
24248 | ||
24249 | ||
24250 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24251 | PyObject *resultobj; | |
24252 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24253 | wxWindow *result; | |
24254 | PyObject * obj0 = 0 ; | |
24255 | char *kwnames[] = { | |
24256 | (char *) "self", NULL | |
24257 | }; | |
24258 | ||
24259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24262 | { |
24263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24264 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24265 | ||
24266 | wxPyEndAllowThreads(__tstate); | |
24267 | if (PyErr_Occurred()) SWIG_fail; | |
24268 | } | |
24269 | { | |
24270 | resultobj = wxPyMake_wxObject(result); | |
24271 | } | |
24272 | return resultobj; | |
24273 | fail: | |
24274 | return NULL; | |
24275 | } | |
24276 | ||
24277 | ||
24278 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24279 | PyObject *resultobj; | |
24280 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24281 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24282 | wxWindow *result; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | PyObject * obj1 = 0 ; | |
24285 | char *kwnames[] = { | |
24286 | (char *) "self",(char *) "child", NULL | |
24287 | }; | |
24288 | ||
24289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24294 | { |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
24301 | { | |
24302 | resultobj = wxPyMake_wxObject(result); | |
24303 | } | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
24310 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24311 | PyObject *resultobj; | |
24312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24313 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24314 | PyObject * obj0 = 0 ; | |
24315 | PyObject * obj1 = 0 ; | |
24316 | char *kwnames[] = { | |
24317 | (char *) "self",(char *) "win", NULL | |
24318 | }; | |
24319 | ||
24320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24325 | { |
24326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24327 | (arg1)->SetTmpDefaultItem(arg2); | |
24328 | ||
24329 | wxPyEndAllowThreads(__tstate); | |
24330 | if (PyErr_Occurred()) SWIG_fail; | |
24331 | } | |
24332 | Py_INCREF(Py_None); resultobj = Py_None; | |
24333 | return resultobj; | |
24334 | fail: | |
24335 | return NULL; | |
24336 | } | |
24337 | ||
24338 | ||
24339 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24340 | PyObject *resultobj; | |
24341 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24342 | PyObject *result; | |
24343 | PyObject * obj0 = 0 ; | |
24344 | char *kwnames[] = { | |
24345 | (char *) "self", NULL | |
24346 | }; | |
24347 | ||
24348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24351 | { |
24352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24353 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24354 | ||
24355 | wxPyEndAllowThreads(__tstate); | |
24356 | if (PyErr_Occurred()) SWIG_fail; | |
24357 | } | |
24358 | resultobj = result; | |
24359 | return resultobj; | |
24360 | fail: | |
24361 | return NULL; | |
24362 | } | |
24363 | ||
24364 | ||
24365 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24366 | PyObject *resultobj; | |
24367 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24368 | wxWindow *result; | |
24369 | PyObject * obj0 = 0 ; | |
24370 | char *kwnames[] = { | |
24371 | (char *) "self", NULL | |
24372 | }; | |
24373 | ||
24374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24377 | { |
24378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24379 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24380 | ||
24381 | wxPyEndAllowThreads(__tstate); | |
24382 | if (PyErr_Occurred()) SWIG_fail; | |
24383 | } | |
24384 | { | |
24385 | resultobj = wxPyMake_wxObject(result); | |
24386 | } | |
24387 | return resultobj; | |
24388 | fail: | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24394 | PyObject *resultobj; | |
24395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24396 | wxWindow *result; | |
24397 | PyObject * obj0 = 0 ; | |
24398 | char *kwnames[] = { | |
24399 | (char *) "self", NULL | |
24400 | }; | |
24401 | ||
24402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24405 | { |
24406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24407 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24408 | ||
24409 | wxPyEndAllowThreads(__tstate); | |
24410 | if (PyErr_Occurred()) SWIG_fail; | |
24411 | } | |
24412 | { | |
24413 | resultobj = wxPyMake_wxObject(result); | |
24414 | } | |
24415 | return resultobj; | |
24416 | fail: | |
24417 | return NULL; | |
24418 | } | |
24419 | ||
24420 | ||
24421 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24422 | PyObject *resultobj; | |
24423 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24424 | bool result; | |
24425 | PyObject * obj0 = 0 ; | |
24426 | char *kwnames[] = { | |
24427 | (char *) "self", NULL | |
24428 | }; | |
24429 | ||
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24433 | { |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
4f89f6a3 RD |
24440 | { |
24441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24442 | } | |
d14a1e28 RD |
24443 | return resultobj; |
24444 | fail: | |
24445 | return NULL; | |
24446 | } | |
24447 | ||
24448 | ||
24449 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24450 | PyObject *resultobj; | |
24451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24452 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24453 | bool result; | |
24454 | PyObject * obj0 = 0 ; | |
24455 | PyObject * obj1 = 0 ; | |
24456 | char *kwnames[] = { | |
24457 | (char *) "self",(char *) "newParent", NULL | |
24458 | }; | |
24459 | ||
24460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24465 | { |
24466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24467 | result = (bool)(arg1)->Reparent(arg2); | |
24468 | ||
24469 | wxPyEndAllowThreads(__tstate); | |
24470 | if (PyErr_Occurred()) SWIG_fail; | |
24471 | } | |
4f89f6a3 RD |
24472 | { |
24473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24474 | } | |
d14a1e28 RD |
24475 | return resultobj; |
24476 | fail: | |
24477 | return NULL; | |
24478 | } | |
24479 | ||
24480 | ||
24481 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24482 | PyObject *resultobj; | |
24483 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24484 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24485 | PyObject * obj0 = 0 ; | |
24486 | PyObject * obj1 = 0 ; | |
24487 | char *kwnames[] = { | |
24488 | (char *) "self",(char *) "child", NULL | |
24489 | }; | |
24490 | ||
24491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24494 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24496 | { |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | (arg1)->AddChild(arg2); | |
24499 | ||
24500 | wxPyEndAllowThreads(__tstate); | |
24501 | if (PyErr_Occurred()) SWIG_fail; | |
24502 | } | |
24503 | Py_INCREF(Py_None); resultobj = Py_None; | |
24504 | return resultobj; | |
24505 | fail: | |
24506 | return NULL; | |
24507 | } | |
24508 | ||
24509 | ||
24510 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24511 | PyObject *resultobj; | |
24512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24513 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24514 | PyObject * obj0 = 0 ; | |
24515 | PyObject * obj1 = 0 ; | |
24516 | char *kwnames[] = { | |
24517 | (char *) "self",(char *) "child", NULL | |
24518 | }; | |
24519 | ||
24520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24523 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24525 | { |
24526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24527 | (arg1)->RemoveChild(arg2); | |
24528 | ||
24529 | wxPyEndAllowThreads(__tstate); | |
24530 | if (PyErr_Occurred()) SWIG_fail; | |
24531 | } | |
24532 | Py_INCREF(Py_None); resultobj = Py_None; | |
24533 | return resultobj; | |
24534 | fail: | |
24535 | return NULL; | |
24536 | } | |
24537 | ||
24538 | ||
24539 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24540 | PyObject *resultobj; | |
24541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24542 | long arg2 ; | |
24543 | wxWindow *result; | |
24544 | PyObject * obj0 = 0 ; | |
994141e6 | 24545 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24546 | char *kwnames[] = { |
24547 | (char *) "self",(char *) "winid", NULL | |
24548 | }; | |
24549 | ||
994141e6 | 24550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24553 | arg2 = (long) SWIG_AsLong(obj1); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24555 | { |
24556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24557 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24558 | ||
24559 | wxPyEndAllowThreads(__tstate); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
24562 | { | |
24563 | resultobj = wxPyMake_wxObject(result); | |
24564 | } | |
24565 | return resultobj; | |
24566 | fail: | |
24567 | return NULL; | |
24568 | } | |
24569 | ||
24570 | ||
24571 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24572 | PyObject *resultobj; | |
24573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24574 | wxString *arg2 = 0 ; | |
24575 | wxWindow *result; | |
e811c8ce | 24576 | bool temp2 = False ; |
d14a1e28 RD |
24577 | PyObject * obj0 = 0 ; |
24578 | PyObject * obj1 = 0 ; | |
24579 | char *kwnames[] = { | |
24580 | (char *) "self",(char *) "name", NULL | |
24581 | }; | |
24582 | ||
24583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24586 | { |
24587 | arg2 = wxString_in_helper(obj1); | |
24588 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24589 | temp2 = True; |
d14a1e28 RD |
24590 | } |
24591 | { | |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24594 | ||
24595 | wxPyEndAllowThreads(__tstate); | |
24596 | if (PyErr_Occurred()) SWIG_fail; | |
24597 | } | |
24598 | { | |
24599 | resultobj = wxPyMake_wxObject(result); | |
24600 | } | |
24601 | { | |
24602 | if (temp2) | |
24603 | delete arg2; | |
24604 | } | |
24605 | return resultobj; | |
24606 | fail: | |
24607 | { | |
24608 | if (temp2) | |
24609 | delete arg2; | |
24610 | } | |
24611 | return NULL; | |
24612 | } | |
24613 | ||
24614 | ||
24615 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24616 | PyObject *resultobj; | |
24617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24618 | wxEvtHandler *result; | |
24619 | PyObject * obj0 = 0 ; | |
24620 | char *kwnames[] = { | |
24621 | (char *) "self", NULL | |
24622 | }; | |
24623 | ||
24624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24627 | { |
24628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24629 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24630 | ||
24631 | wxPyEndAllowThreads(__tstate); | |
24632 | if (PyErr_Occurred()) SWIG_fail; | |
24633 | } | |
24634 | { | |
24635 | resultobj = wxPyMake_wxObject(result); | |
24636 | } | |
24637 | return resultobj; | |
24638 | fail: | |
24639 | return NULL; | |
24640 | } | |
24641 | ||
24642 | ||
24643 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24644 | PyObject *resultobj; | |
24645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24646 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24647 | PyObject * obj0 = 0 ; | |
24648 | PyObject * obj1 = 0 ; | |
24649 | char *kwnames[] = { | |
24650 | (char *) "self",(char *) "handler", NULL | |
24651 | }; | |
24652 | ||
24653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24658 | { |
24659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24660 | (arg1)->SetEventHandler(arg2); | |
24661 | ||
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | Py_INCREF(Py_None); resultobj = Py_None; | |
24666 | return resultobj; | |
24667 | fail: | |
24668 | return NULL; | |
24669 | } | |
24670 | ||
24671 | ||
24672 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24673 | PyObject *resultobj; | |
24674 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24675 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24676 | PyObject * obj0 = 0 ; | |
24677 | PyObject * obj1 = 0 ; | |
24678 | char *kwnames[] = { | |
24679 | (char *) "self",(char *) "handler", NULL | |
24680 | }; | |
24681 | ||
24682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24687 | { |
24688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24689 | (arg1)->PushEventHandler(arg2); | |
24690 | ||
24691 | wxPyEndAllowThreads(__tstate); | |
24692 | if (PyErr_Occurred()) SWIG_fail; | |
24693 | } | |
24694 | Py_INCREF(Py_None); resultobj = Py_None; | |
24695 | return resultobj; | |
24696 | fail: | |
24697 | return NULL; | |
24698 | } | |
24699 | ||
24700 | ||
24701 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24702 | PyObject *resultobj; | |
24703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24704 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24705 | wxEvtHandler *result; |
24706 | PyObject * obj0 = 0 ; | |
24707 | PyObject * obj1 = 0 ; | |
24708 | char *kwnames[] = { | |
24709 | (char *) "self",(char *) "deleteHandler", NULL | |
24710 | }; | |
24711 | ||
24712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24715 | if (obj1) { |
15afbcd0 RD |
24716 | arg2 = (bool) SWIG_AsBool(obj1); |
24717 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24718 | } |
24719 | { | |
24720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24721 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24722 | ||
24723 | wxPyEndAllowThreads(__tstate); | |
24724 | if (PyErr_Occurred()) SWIG_fail; | |
24725 | } | |
24726 | { | |
24727 | resultobj = wxPyMake_wxObject(result); | |
24728 | } | |
24729 | return resultobj; | |
24730 | fail: | |
24731 | return NULL; | |
24732 | } | |
24733 | ||
24734 | ||
24735 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24736 | PyObject *resultobj; | |
24737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24738 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24739 | bool result; | |
24740 | PyObject * obj0 = 0 ; | |
24741 | PyObject * obj1 = 0 ; | |
24742 | char *kwnames[] = { | |
24743 | (char *) "self",(char *) "handler", NULL | |
24744 | }; | |
24745 | ||
24746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24751 | { |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24754 | ||
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
4f89f6a3 RD |
24758 | { |
24759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24760 | } | |
d14a1e28 RD |
24761 | return resultobj; |
24762 | fail: | |
24763 | return NULL; | |
24764 | } | |
24765 | ||
24766 | ||
24767 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24768 | PyObject *resultobj; | |
24769 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24770 | wxValidator *arg2 = 0 ; | |
24771 | PyObject * obj0 = 0 ; | |
24772 | PyObject * obj1 = 0 ; | |
24773 | char *kwnames[] = { | |
24774 | (char *) "self",(char *) "validator", NULL | |
24775 | }; | |
24776 | ||
24777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24782 | SWIG_fail; | |
d14a1e28 | 24783 | if (arg2 == NULL) { |
15afbcd0 RD |
24784 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24785 | SWIG_fail; | |
d14a1e28 RD |
24786 | } |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | Py_INCREF(Py_None); resultobj = Py_None; | |
24795 | return resultobj; | |
24796 | fail: | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24802 | PyObject *resultobj; | |
24803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24804 | wxValidator *result; | |
24805 | PyObject * obj0 = 0 ; | |
24806 | char *kwnames[] = { | |
24807 | (char *) "self", NULL | |
24808 | }; | |
24809 | ||
24810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24813 | { |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (wxValidator *)(arg1)->GetValidator(); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | { | |
24821 | resultobj = wxPyMake_wxObject(result); | |
24822 | } | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
74a57fcd RD |
24829 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
24830 | PyObject *resultobj; | |
24831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24832 | bool result; | |
24833 | PyObject * obj0 = 0 ; | |
24834 | char *kwnames[] = { | |
24835 | (char *) "self", NULL | |
24836 | }; | |
24837 | ||
24838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24841 | { | |
24842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24843 | result = (bool)(arg1)->Validate(); | |
24844 | ||
24845 | wxPyEndAllowThreads(__tstate); | |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | { | |
24849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24850 | } | |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24858 | PyObject *resultobj; | |
24859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24860 | bool result; | |
24861 | PyObject * obj0 = 0 ; | |
24862 | char *kwnames[] = { | |
24863 | (char *) "self", NULL | |
24864 | }; | |
24865 | ||
24866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24869 | { | |
24870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24871 | result = (bool)(arg1)->TransferDataToWindow(); | |
24872 | ||
24873 | wxPyEndAllowThreads(__tstate); | |
24874 | if (PyErr_Occurred()) SWIG_fail; | |
24875 | } | |
24876 | { | |
24877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24878 | } | |
24879 | return resultobj; | |
24880 | fail: | |
24881 | return NULL; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24886 | PyObject *resultobj; | |
24887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24888 | bool result; | |
24889 | PyObject * obj0 = 0 ; | |
24890 | char *kwnames[] = { | |
24891 | (char *) "self", NULL | |
24892 | }; | |
24893 | ||
24894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24897 | { | |
24898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24899 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24900 | ||
24901 | wxPyEndAllowThreads(__tstate); | |
24902 | if (PyErr_Occurred()) SWIG_fail; | |
24903 | } | |
24904 | { | |
24905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24906 | } | |
24907 | return resultobj; | |
24908 | fail: | |
24909 | return NULL; | |
24910 | } | |
24911 | ||
24912 | ||
24913 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24914 | PyObject *resultobj; | |
24915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24916 | PyObject * obj0 = 0 ; | |
24917 | char *kwnames[] = { | |
24918 | (char *) "self", NULL | |
24919 | }; | |
24920 | ||
24921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
24922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24924 | { | |
24925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24926 | (arg1)->InitDialog(); | |
24927 | ||
24928 | wxPyEndAllowThreads(__tstate); | |
24929 | if (PyErr_Occurred()) SWIG_fail; | |
24930 | } | |
24931 | Py_INCREF(Py_None); resultobj = Py_None; | |
24932 | return resultobj; | |
24933 | fail: | |
24934 | return NULL; | |
24935 | } | |
24936 | ||
24937 | ||
d14a1e28 RD |
24938 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
24939 | PyObject *resultobj; | |
24940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24941 | wxAcceleratorTable *arg2 = 0 ; | |
24942 | PyObject * obj0 = 0 ; | |
24943 | PyObject * obj1 = 0 ; | |
24944 | char *kwnames[] = { | |
24945 | (char *) "self",(char *) "accel", NULL | |
24946 | }; | |
24947 | ||
24948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24953 | SWIG_fail; | |
d14a1e28 | 24954 | if (arg2 == NULL) { |
15afbcd0 RD |
24955 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24956 | SWIG_fail; | |
d14a1e28 RD |
24957 | } |
24958 | { | |
24959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24960 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24961 | ||
24962 | wxPyEndAllowThreads(__tstate); | |
24963 | if (PyErr_Occurred()) SWIG_fail; | |
24964 | } | |
24965 | Py_INCREF(Py_None); resultobj = Py_None; | |
24966 | return resultobj; | |
24967 | fail: | |
24968 | return NULL; | |
24969 | } | |
24970 | ||
24971 | ||
24972 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24973 | PyObject *resultobj; | |
24974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24975 | wxAcceleratorTable *result; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | char *kwnames[] = { | |
24978 | (char *) "self", NULL | |
24979 | }; | |
24980 | ||
24981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24984 | { |
24985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24986 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24987 | ||
24988 | wxPyEndAllowThreads(__tstate); | |
24989 | if (PyErr_Occurred()) SWIG_fail; | |
24990 | } | |
15afbcd0 | 24991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
24992 | return resultobj; |
24993 | fail: | |
24994 | return NULL; | |
24995 | } | |
24996 | ||
24997 | ||
24998 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24999 | PyObject *resultobj; | |
25000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25001 | int arg2 ; | |
25002 | int arg3 ; | |
25003 | int arg4 ; | |
25004 | bool result; | |
25005 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25006 | PyObject * obj1 = 0 ; |
25007 | PyObject * obj2 = 0 ; | |
25008 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25009 | char *kwnames[] = { |
25010 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25011 | }; | |
25012 | ||
994141e6 | 25013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25016 | arg2 = (int) SWIG_AsInt(obj1); | |
25017 | if (PyErr_Occurred()) SWIG_fail; | |
25018 | arg3 = (int) SWIG_AsInt(obj2); | |
25019 | if (PyErr_Occurred()) SWIG_fail; | |
25020 | arg4 = (int) SWIG_AsInt(obj3); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25022 | { |
25023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25024 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25025 | ||
25026 | wxPyEndAllowThreads(__tstate); | |
25027 | if (PyErr_Occurred()) SWIG_fail; | |
25028 | } | |
4f89f6a3 RD |
25029 | { |
25030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25031 | } | |
d14a1e28 RD |
25032 | return resultobj; |
25033 | fail: | |
25034 | return NULL; | |
25035 | } | |
25036 | ||
25037 | ||
25038 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25039 | PyObject *resultobj; | |
25040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25041 | int arg2 ; | |
25042 | bool result; | |
25043 | PyObject * obj0 = 0 ; | |
994141e6 | 25044 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25045 | char *kwnames[] = { |
25046 | (char *) "self",(char *) "hotkeyId", NULL | |
25047 | }; | |
25048 | ||
994141e6 | 25049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25052 | arg2 = (int) SWIG_AsInt(obj1); | |
25053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25054 | { |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25057 | ||
25058 | wxPyEndAllowThreads(__tstate); | |
25059 | if (PyErr_Occurred()) SWIG_fail; | |
25060 | } | |
4f89f6a3 RD |
25061 | { |
25062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25063 | } | |
d14a1e28 RD |
25064 | return resultobj; |
25065 | fail: | |
25066 | return NULL; | |
25067 | } | |
25068 | ||
25069 | ||
25070 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25071 | PyObject *resultobj; | |
25072 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25073 | wxPoint *arg2 = 0 ; | |
25074 | wxPoint result; | |
25075 | wxPoint temp2 ; | |
25076 | PyObject * obj0 = 0 ; | |
25077 | PyObject * obj1 = 0 ; | |
25078 | char *kwnames[] = { | |
25079 | (char *) "self",(char *) "pt", NULL | |
25080 | }; | |
25081 | ||
25082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25085 | { |
25086 | arg2 = &temp2; | |
25087 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25088 | } | |
25089 | { | |
25090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25091 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25092 | ||
25093 | wxPyEndAllowThreads(__tstate); | |
25094 | if (PyErr_Occurred()) SWIG_fail; | |
25095 | } | |
25096 | { | |
25097 | wxPoint * resultptr; | |
25098 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25100 | } |
25101 | return resultobj; | |
25102 | fail: | |
25103 | return NULL; | |
25104 | } | |
25105 | ||
25106 | ||
25107 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25108 | PyObject *resultobj; | |
25109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25110 | wxSize *arg2 = 0 ; | |
25111 | wxSize result; | |
25112 | wxSize temp2 ; | |
25113 | PyObject * obj0 = 0 ; | |
25114 | PyObject * obj1 = 0 ; | |
25115 | char *kwnames[] = { | |
25116 | (char *) "self",(char *) "sz", NULL | |
25117 | }; | |
25118 | ||
25119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25122 | { |
25123 | arg2 = &temp2; | |
25124 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25125 | } | |
25126 | { | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25129 | ||
25130 | wxPyEndAllowThreads(__tstate); | |
25131 | if (PyErr_Occurred()) SWIG_fail; | |
25132 | } | |
25133 | { | |
25134 | wxSize * resultptr; | |
25135 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25137 | } |
25138 | return resultobj; | |
25139 | fail: | |
25140 | return NULL; | |
25141 | } | |
25142 | ||
25143 | ||
25144 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25145 | PyObject *resultobj; | |
25146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25147 | wxPoint *arg2 = 0 ; | |
25148 | wxPoint result; | |
25149 | wxPoint temp2 ; | |
25150 | PyObject * obj0 = 0 ; | |
25151 | PyObject * obj1 = 0 ; | |
25152 | char *kwnames[] = { | |
25153 | (char *) "self",(char *) "pt", NULL | |
25154 | }; | |
25155 | ||
25156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25159 | { |
25160 | arg2 = &temp2; | |
25161 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25162 | } | |
25163 | { | |
25164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25165 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25166 | ||
25167 | wxPyEndAllowThreads(__tstate); | |
25168 | if (PyErr_Occurred()) SWIG_fail; | |
25169 | } | |
25170 | { | |
25171 | wxPoint * resultptr; | |
25172 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25174 | } |
25175 | return resultobj; | |
25176 | fail: | |
25177 | return NULL; | |
25178 | } | |
25179 | ||
25180 | ||
25181 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25182 | PyObject *resultobj; | |
25183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25184 | wxSize *arg2 = 0 ; | |
25185 | wxSize result; | |
25186 | wxSize temp2 ; | |
25187 | PyObject * obj0 = 0 ; | |
25188 | PyObject * obj1 = 0 ; | |
25189 | char *kwnames[] = { | |
25190 | (char *) "self",(char *) "sz", NULL | |
25191 | }; | |
25192 | ||
25193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25196 | { |
25197 | arg2 = &temp2; | |
25198 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25199 | } | |
25200 | { | |
25201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25202 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25203 | ||
25204 | wxPyEndAllowThreads(__tstate); | |
25205 | if (PyErr_Occurred()) SWIG_fail; | |
25206 | } | |
25207 | { | |
25208 | wxSize * resultptr; | |
25209 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25211 | } |
25212 | return resultobj; | |
25213 | fail: | |
25214 | return NULL; | |
25215 | } | |
25216 | ||
25217 | ||
25218 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25219 | PyObject *resultobj; | |
25220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25221 | wxPoint *arg2 = 0 ; | |
25222 | wxPoint result; | |
25223 | wxPoint temp2 ; | |
25224 | PyObject * obj0 = 0 ; | |
25225 | PyObject * obj1 = 0 ; | |
25226 | char *kwnames[] = { | |
25227 | (char *) "self",(char *) "pt", NULL | |
25228 | }; | |
25229 | ||
25230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25233 | { |
25234 | arg2 = &temp2; | |
25235 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25236 | } | |
25237 | { | |
25238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25239 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25240 | ||
25241 | wxPyEndAllowThreads(__tstate); | |
25242 | if (PyErr_Occurred()) SWIG_fail; | |
25243 | } | |
25244 | { | |
25245 | wxPoint * resultptr; | |
25246 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25247 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25248 | } |
25249 | return resultobj; | |
25250 | fail: | |
25251 | return NULL; | |
25252 | } | |
25253 | ||
25254 | ||
25255 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25256 | PyObject *resultobj; | |
25257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25258 | wxSize *arg2 = 0 ; | |
25259 | wxSize result; | |
25260 | wxSize temp2 ; | |
25261 | PyObject * obj0 = 0 ; | |
25262 | PyObject * obj1 = 0 ; | |
25263 | char *kwnames[] = { | |
25264 | (char *) "self",(char *) "sz", NULL | |
25265 | }; | |
25266 | ||
25267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25270 | { |
25271 | arg2 = &temp2; | |
25272 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25273 | } | |
25274 | { | |
25275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25276 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25277 | ||
25278 | wxPyEndAllowThreads(__tstate); | |
25279 | if (PyErr_Occurred()) SWIG_fail; | |
25280 | } | |
25281 | { | |
25282 | wxSize * resultptr; | |
25283 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25284 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25285 | } |
25286 | return resultobj; | |
25287 | fail: | |
25288 | return NULL; | |
25289 | } | |
25290 | ||
25291 | ||
25292 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25293 | PyObject *resultobj; | |
25294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25295 | int arg2 ; | |
25296 | int arg3 ; | |
25297 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25298 | PyObject * obj1 = 0 ; |
25299 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25300 | char *kwnames[] = { |
25301 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25302 | }; | |
25303 | ||
994141e6 | 25304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25307 | arg2 = (int) SWIG_AsInt(obj1); | |
25308 | if (PyErr_Occurred()) SWIG_fail; | |
25309 | arg3 = (int) SWIG_AsInt(obj2); | |
25310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25311 | { |
25312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25313 | (arg1)->WarpPointer(arg2,arg3); | |
25314 | ||
25315 | wxPyEndAllowThreads(__tstate); | |
25316 | if (PyErr_Occurred()) SWIG_fail; | |
25317 | } | |
25318 | Py_INCREF(Py_None); resultobj = Py_None; | |
25319 | return resultobj; | |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
25325 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25326 | PyObject *resultobj; | |
25327 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25328 | PyObject * obj0 = 0 ; | |
25329 | char *kwnames[] = { | |
25330 | (char *) "self", NULL | |
25331 | }; | |
25332 | ||
25333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25336 | { |
25337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25338 | (arg1)->CaptureMouse(); | |
25339 | ||
25340 | wxPyEndAllowThreads(__tstate); | |
25341 | if (PyErr_Occurred()) SWIG_fail; | |
25342 | } | |
25343 | Py_INCREF(Py_None); resultobj = Py_None; | |
25344 | return resultobj; | |
25345 | fail: | |
25346 | return NULL; | |
25347 | } | |
25348 | ||
25349 | ||
25350 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25351 | PyObject *resultobj; | |
25352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25353 | PyObject * obj0 = 0 ; | |
25354 | char *kwnames[] = { | |
25355 | (char *) "self", NULL | |
25356 | }; | |
25357 | ||
25358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25361 | { |
25362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25363 | (arg1)->ReleaseMouse(); | |
25364 | ||
25365 | wxPyEndAllowThreads(__tstate); | |
25366 | if (PyErr_Occurred()) SWIG_fail; | |
25367 | } | |
25368 | Py_INCREF(Py_None); resultobj = Py_None; | |
25369 | return resultobj; | |
25370 | fail: | |
25371 | return NULL; | |
25372 | } | |
25373 | ||
25374 | ||
25375 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25376 | PyObject *resultobj; | |
25377 | wxWindow *result; | |
25378 | char *kwnames[] = { | |
25379 | NULL | |
25380 | }; | |
25381 | ||
25382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25383 | { | |
e3b71cb8 | 25384 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25386 | result = (wxWindow *)wxWindow::GetCapture(); | |
25387 | ||
25388 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 25389 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25390 | } |
25391 | { | |
25392 | resultobj = wxPyMake_wxObject(result); | |
25393 | } | |
25394 | return resultobj; | |
25395 | fail: | |
25396 | return NULL; | |
25397 | } | |
25398 | ||
25399 | ||
25400 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25401 | PyObject *resultobj; | |
25402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25403 | bool result; | |
25404 | PyObject * obj0 = 0 ; | |
25405 | char *kwnames[] = { | |
25406 | (char *) "self", NULL | |
25407 | }; | |
25408 | ||
25409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25412 | { |
25413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25414 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25415 | ||
25416 | wxPyEndAllowThreads(__tstate); | |
25417 | if (PyErr_Occurred()) SWIG_fail; | |
25418 | } | |
4f89f6a3 RD |
25419 | { |
25420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25421 | } | |
d14a1e28 RD |
25422 | return resultobj; |
25423 | fail: | |
25424 | return NULL; | |
25425 | } | |
25426 | ||
25427 | ||
25428 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25429 | PyObject *resultobj; | |
25430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25431 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25432 | wxRect *arg3 = (wxRect *) NULL ; |
25433 | PyObject * obj0 = 0 ; | |
25434 | PyObject * obj1 = 0 ; | |
25435 | PyObject * obj2 = 0 ; | |
25436 | char *kwnames[] = { | |
25437 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25438 | }; | |
25439 | ||
25440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25443 | if (obj1) { |
15afbcd0 RD |
25444 | arg2 = (bool) SWIG_AsBool(obj1); |
25445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25446 | } |
25447 | if (obj2) { | |
15afbcd0 RD |
25448 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
25449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25450 | } |
25451 | { | |
25452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25453 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25454 | ||
25455 | wxPyEndAllowThreads(__tstate); | |
25456 | if (PyErr_Occurred()) SWIG_fail; | |
25457 | } | |
25458 | Py_INCREF(Py_None); resultobj = Py_None; | |
25459 | return resultobj; | |
25460 | fail: | |
25461 | return NULL; | |
25462 | } | |
25463 | ||
25464 | ||
25465 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25466 | PyObject *resultobj; | |
25467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25468 | wxRect *arg2 = 0 ; | |
25469 | wxRect temp2 ; | |
25470 | PyObject * obj0 = 0 ; | |
25471 | PyObject * obj1 = 0 ; | |
25472 | char *kwnames[] = { | |
25473 | (char *) "self",(char *) "rect", NULL | |
25474 | }; | |
25475 | ||
25476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25479 | { |
25480 | arg2 = &temp2; | |
25481 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25482 | } | |
25483 | { | |
25484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25485 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25486 | ||
25487 | wxPyEndAllowThreads(__tstate); | |
25488 | if (PyErr_Occurred()) SWIG_fail; | |
25489 | } | |
25490 | Py_INCREF(Py_None); resultobj = Py_None; | |
25491 | return resultobj; | |
25492 | fail: | |
25493 | return NULL; | |
25494 | } | |
25495 | ||
25496 | ||
25497 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25498 | PyObject *resultobj; | |
25499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25500 | PyObject * obj0 = 0 ; | |
25501 | char *kwnames[] = { | |
25502 | (char *) "self", NULL | |
25503 | }; | |
25504 | ||
25505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25508 | { |
25509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25510 | (arg1)->Update(); | |
25511 | ||
25512 | wxPyEndAllowThreads(__tstate); | |
25513 | if (PyErr_Occurred()) SWIG_fail; | |
25514 | } | |
25515 | Py_INCREF(Py_None); resultobj = Py_None; | |
25516 | return resultobj; | |
25517 | fail: | |
25518 | return NULL; | |
25519 | } | |
25520 | ||
25521 | ||
25522 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25523 | PyObject *resultobj; | |
25524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25525 | PyObject * obj0 = 0 ; | |
25526 | char *kwnames[] = { | |
25527 | (char *) "self", NULL | |
25528 | }; | |
25529 | ||
25530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25533 | { |
25534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25535 | (arg1)->ClearBackground(); | |
25536 | ||
25537 | wxPyEndAllowThreads(__tstate); | |
25538 | if (PyErr_Occurred()) SWIG_fail; | |
25539 | } | |
25540 | Py_INCREF(Py_None); resultobj = Py_None; | |
25541 | return resultobj; | |
25542 | fail: | |
25543 | return NULL; | |
25544 | } | |
25545 | ||
25546 | ||
25547 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25548 | PyObject *resultobj; | |
25549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25550 | PyObject * obj0 = 0 ; | |
25551 | char *kwnames[] = { | |
25552 | (char *) "self", NULL | |
25553 | }; | |
25554 | ||
25555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25558 | { |
25559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25560 | (arg1)->Freeze(); | |
25561 | ||
25562 | wxPyEndAllowThreads(__tstate); | |
25563 | if (PyErr_Occurred()) SWIG_fail; | |
25564 | } | |
25565 | Py_INCREF(Py_None); resultobj = Py_None; | |
25566 | return resultobj; | |
25567 | fail: | |
25568 | return NULL; | |
25569 | } | |
25570 | ||
25571 | ||
25572 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25573 | PyObject *resultobj; | |
25574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25575 | PyObject * obj0 = 0 ; | |
25576 | char *kwnames[] = { | |
25577 | (char *) "self", NULL | |
25578 | }; | |
25579 | ||
25580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25583 | { |
25584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25585 | (arg1)->Thaw(); | |
25586 | ||
25587 | wxPyEndAllowThreads(__tstate); | |
25588 | if (PyErr_Occurred()) SWIG_fail; | |
25589 | } | |
25590 | Py_INCREF(Py_None); resultobj = Py_None; | |
25591 | return resultobj; | |
25592 | fail: | |
25593 | return NULL; | |
25594 | } | |
25595 | ||
25596 | ||
25597 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25598 | PyObject *resultobj; | |
25599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25600 | wxDC *arg2 = 0 ; | |
25601 | PyObject * obj0 = 0 ; | |
25602 | PyObject * obj1 = 0 ; | |
25603 | char *kwnames[] = { | |
25604 | (char *) "self",(char *) "dc", NULL | |
25605 | }; | |
25606 | ||
25607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25612 | SWIG_fail; | |
d14a1e28 | 25613 | if (arg2 == NULL) { |
15afbcd0 RD |
25614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25615 | SWIG_fail; | |
d14a1e28 RD |
25616 | } |
25617 | { | |
25618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25619 | (arg1)->PrepareDC(*arg2); | |
25620 | ||
25621 | wxPyEndAllowThreads(__tstate); | |
25622 | if (PyErr_Occurred()) SWIG_fail; | |
25623 | } | |
25624 | Py_INCREF(Py_None); resultobj = Py_None; | |
25625 | return resultobj; | |
25626 | fail: | |
25627 | return NULL; | |
25628 | } | |
25629 | ||
25630 | ||
25631 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25632 | PyObject *resultobj; | |
25633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25634 | wxRegion *result; | |
25635 | PyObject * obj0 = 0 ; | |
25636 | char *kwnames[] = { | |
25637 | (char *) "self", NULL | |
25638 | }; | |
25639 | ||
25640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25643 | { |
25644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25645 | { | |
25646 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25647 | result = (wxRegion *) &_result_ref; | |
25648 | } | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
15afbcd0 | 25653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
25654 | return resultobj; |
25655 | fail: | |
25656 | return NULL; | |
25657 | } | |
25658 | ||
25659 | ||
25660 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25661 | PyObject *resultobj; | |
25662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25663 | wxRect result; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | char *kwnames[] = { | |
25666 | (char *) "self", NULL | |
25667 | }; | |
25668 | ||
25669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25672 | { |
25673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25674 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25675 | ||
25676 | wxPyEndAllowThreads(__tstate); | |
25677 | if (PyErr_Occurred()) SWIG_fail; | |
25678 | } | |
25679 | { | |
25680 | wxRect * resultptr; | |
25681 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 25682 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25683 | } |
25684 | return resultobj; | |
25685 | fail: | |
25686 | return NULL; | |
25687 | } | |
25688 | ||
25689 | ||
25690 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25691 | PyObject *resultobj; | |
25692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25693 | int arg2 ; | |
25694 | int arg3 ; | |
25695 | int arg4 = (int) 1 ; | |
25696 | int arg5 = (int) 1 ; | |
25697 | bool result; | |
25698 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25699 | PyObject * obj1 = 0 ; |
25700 | PyObject * obj2 = 0 ; | |
25701 | PyObject * obj3 = 0 ; | |
25702 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25703 | char *kwnames[] = { |
25704 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25705 | }; | |
25706 | ||
994141e6 | 25707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
25708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25710 | arg2 = (int) SWIG_AsInt(obj1); | |
25711 | if (PyErr_Occurred()) SWIG_fail; | |
25712 | arg3 = (int) SWIG_AsInt(obj2); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25714 | if (obj3) { |
15afbcd0 RD |
25715 | arg4 = (int) SWIG_AsInt(obj3); |
25716 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
25717 | } |
25718 | if (obj4) { | |
15afbcd0 RD |
25719 | arg5 = (int) SWIG_AsInt(obj4); |
25720 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25721 | } |
d14a1e28 RD |
25722 | { |
25723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25724 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25725 | ||
25726 | wxPyEndAllowThreads(__tstate); | |
25727 | if (PyErr_Occurred()) SWIG_fail; | |
25728 | } | |
4f89f6a3 RD |
25729 | { |
25730 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25731 | } | |
d14a1e28 RD |
25732 | return resultobj; |
25733 | fail: | |
25734 | return NULL; | |
25735 | } | |
25736 | ||
25737 | ||
25738 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25739 | PyObject *resultobj; | |
25740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25741 | wxPoint *arg2 = 0 ; | |
25742 | bool result; | |
25743 | wxPoint temp2 ; | |
25744 | PyObject * obj0 = 0 ; | |
25745 | PyObject * obj1 = 0 ; | |
25746 | char *kwnames[] = { | |
25747 | (char *) "self",(char *) "pt", NULL | |
25748 | }; | |
25749 | ||
25750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25753 | { |
25754 | arg2 = &temp2; | |
25755 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25756 | } | |
25757 | { | |
25758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25759 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25760 | ||
25761 | wxPyEndAllowThreads(__tstate); | |
25762 | if (PyErr_Occurred()) SWIG_fail; | |
25763 | } | |
4f89f6a3 RD |
25764 | { |
25765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25766 | } | |
d14a1e28 RD |
25767 | return resultobj; |
25768 | fail: | |
25769 | return NULL; | |
25770 | } | |
25771 | ||
25772 | ||
4276dc52 | 25773 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25774 | PyObject *resultobj; |
25775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25776 | wxRect *arg2 = 0 ; | |
25777 | bool result; | |
25778 | wxRect temp2 ; | |
25779 | PyObject * obj0 = 0 ; | |
25780 | PyObject * obj1 = 0 ; | |
25781 | char *kwnames[] = { | |
25782 | (char *) "self",(char *) "rect", NULL | |
25783 | }; | |
25784 | ||
4276dc52 | 25785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25788 | { |
25789 | arg2 = &temp2; | |
25790 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25791 | } | |
25792 | { | |
25793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25794 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25795 | ||
25796 | wxPyEndAllowThreads(__tstate); | |
25797 | if (PyErr_Occurred()) SWIG_fail; | |
25798 | } | |
4f89f6a3 RD |
25799 | { |
25800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25801 | } | |
d14a1e28 RD |
25802 | return resultobj; |
25803 | fail: | |
25804 | return NULL; | |
25805 | } | |
25806 | ||
25807 | ||
74a57fcd RD |
25808 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
25809 | PyObject *resultobj; | |
25810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25811 | wxVisualAttributes result; | |
25812 | PyObject * obj0 = 0 ; | |
25813 | char *kwnames[] = { | |
25814 | (char *) "self", NULL | |
25815 | }; | |
25816 | ||
25817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25820 | { | |
25821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25822 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25823 | ||
25824 | wxPyEndAllowThreads(__tstate); | |
25825 | if (PyErr_Occurred()) SWIG_fail; | |
25826 | } | |
25827 | { | |
25828 | wxVisualAttributes * resultptr; | |
25829 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25831 | } | |
25832 | return resultobj; | |
25833 | fail: | |
25834 | return NULL; | |
25835 | } | |
25836 | ||
25837 | ||
25838 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25839 | PyObject *resultobj; | |
25840 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25841 | wxVisualAttributes result; | |
25842 | PyObject * obj0 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "variant", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25848 | if (obj0) { | |
25849 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25850 | if (PyErr_Occurred()) SWIG_fail; | |
25851 | } | |
25852 | { | |
e3b71cb8 | 25853 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
25854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25855 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25856 | ||
25857 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 25858 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
25859 | } |
25860 | { | |
25861 | wxVisualAttributes * resultptr; | |
25862 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25863 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25864 | } | |
25865 | return resultobj; | |
25866 | fail: | |
25867 | return NULL; | |
25868 | } | |
25869 | ||
25870 | ||
d14a1e28 RD |
25871 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25872 | PyObject *resultobj; | |
25873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25874 | wxColour *arg2 = 0 ; | |
25875 | bool result; | |
25876 | wxColour temp2 ; | |
25877 | PyObject * obj0 = 0 ; | |
25878 | PyObject * obj1 = 0 ; | |
25879 | char *kwnames[] = { | |
25880 | (char *) "self",(char *) "colour", NULL | |
25881 | }; | |
25882 | ||
25883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25886 | { |
25887 | arg2 = &temp2; | |
25888 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25889 | } | |
25890 | { | |
25891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25892 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25893 | ||
25894 | wxPyEndAllowThreads(__tstate); | |
25895 | if (PyErr_Occurred()) SWIG_fail; | |
25896 | } | |
4f89f6a3 RD |
25897 | { |
25898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25899 | } | |
d14a1e28 RD |
25900 | return resultobj; |
25901 | fail: | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
b2df227b RD |
25906 | static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25907 | PyObject *resultobj; | |
25908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25909 | wxColour *arg2 = 0 ; | |
25910 | wxColour temp2 ; | |
25911 | PyObject * obj0 = 0 ; | |
25912 | PyObject * obj1 = 0 ; | |
25913 | char *kwnames[] = { | |
25914 | (char *) "self",(char *) "colour", NULL | |
25915 | }; | |
25916 | ||
25917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25920 | { | |
25921 | arg2 = &temp2; | |
25922 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25923 | } | |
25924 | { | |
25925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25926 | (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); | |
25927 | ||
25928 | wxPyEndAllowThreads(__tstate); | |
25929 | if (PyErr_Occurred()) SWIG_fail; | |
25930 | } | |
25931 | Py_INCREF(Py_None); resultobj = Py_None; | |
25932 | return resultobj; | |
25933 | fail: | |
25934 | return NULL; | |
25935 | } | |
25936 | ||
25937 | ||
d14a1e28 RD |
25938 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25939 | PyObject *resultobj; | |
25940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25941 | wxColour *arg2 = 0 ; | |
25942 | bool result; | |
25943 | wxColour temp2 ; | |
25944 | PyObject * obj0 = 0 ; | |
25945 | PyObject * obj1 = 0 ; | |
25946 | char *kwnames[] = { | |
25947 | (char *) "self",(char *) "colour", NULL | |
25948 | }; | |
25949 | ||
25950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25953 | { |
25954 | arg2 = &temp2; | |
25955 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25956 | } | |
25957 | { | |
25958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25959 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25960 | ||
25961 | wxPyEndAllowThreads(__tstate); | |
25962 | if (PyErr_Occurred()) SWIG_fail; | |
25963 | } | |
4f89f6a3 RD |
25964 | { |
25965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25966 | } | |
d14a1e28 RD |
25967 | return resultobj; |
25968 | fail: | |
25969 | return NULL; | |
25970 | } | |
25971 | ||
25972 | ||
b2df227b RD |
25973 | static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25974 | PyObject *resultobj; | |
25975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25976 | wxColour *arg2 = 0 ; | |
25977 | wxColour temp2 ; | |
25978 | PyObject * obj0 = 0 ; | |
25979 | PyObject * obj1 = 0 ; | |
25980 | char *kwnames[] = { | |
25981 | (char *) "self",(char *) "colour", NULL | |
25982 | }; | |
25983 | ||
25984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25987 | { | |
25988 | arg2 = &temp2; | |
25989 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25990 | } | |
25991 | { | |
25992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25993 | (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); | |
25994 | ||
25995 | wxPyEndAllowThreads(__tstate); | |
25996 | if (PyErr_Occurred()) SWIG_fail; | |
25997 | } | |
25998 | Py_INCREF(Py_None); resultobj = Py_None; | |
25999 | return resultobj; | |
26000 | fail: | |
26001 | return NULL; | |
26002 | } | |
26003 | ||
26004 | ||
d14a1e28 RD |
26005 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26006 | PyObject *resultobj; | |
26007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26008 | wxColour result; | |
26009 | PyObject * obj0 = 0 ; | |
26010 | char *kwnames[] = { | |
26011 | (char *) "self", NULL | |
26012 | }; | |
26013 | ||
26014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26017 | { |
26018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26019 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26020 | ||
26021 | wxPyEndAllowThreads(__tstate); | |
26022 | if (PyErr_Occurred()) SWIG_fail; | |
26023 | } | |
26024 | { | |
26025 | wxColour * resultptr; | |
26026 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26028 | } |
26029 | return resultobj; | |
26030 | fail: | |
26031 | return NULL; | |
26032 | } | |
26033 | ||
26034 | ||
26035 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26036 | PyObject *resultobj; | |
26037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26038 | wxColour result; | |
26039 | PyObject * obj0 = 0 ; | |
26040 | char *kwnames[] = { | |
26041 | (char *) "self", NULL | |
26042 | }; | |
26043 | ||
26044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26047 | { |
26048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26049 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26050 | ||
26051 | wxPyEndAllowThreads(__tstate); | |
26052 | if (PyErr_Occurred()) SWIG_fail; | |
26053 | } | |
26054 | { | |
26055 | wxColour * resultptr; | |
26056 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26058 | } |
26059 | return resultobj; | |
26060 | fail: | |
26061 | return NULL; | |
26062 | } | |
26063 | ||
26064 | ||
26065 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26066 | PyObject *resultobj; | |
26067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26068 | wxCursor *arg2 = 0 ; | |
26069 | bool result; | |
26070 | PyObject * obj0 = 0 ; | |
26071 | PyObject * obj1 = 0 ; | |
26072 | char *kwnames[] = { | |
26073 | (char *) "self",(char *) "cursor", NULL | |
26074 | }; | |
26075 | ||
26076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26079 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26080 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26081 | SWIG_fail; | |
d14a1e28 | 26082 | if (arg2 == NULL) { |
15afbcd0 RD |
26083 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26084 | SWIG_fail; | |
d14a1e28 RD |
26085 | } |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
4f89f6a3 RD |
26093 | { |
26094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26095 | } | |
d14a1e28 RD |
26096 | return resultobj; |
26097 | fail: | |
26098 | return NULL; | |
26099 | } | |
26100 | ||
26101 | ||
26102 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26103 | PyObject *resultobj; | |
26104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26105 | wxCursor *result; | |
26106 | PyObject * obj0 = 0 ; | |
26107 | char *kwnames[] = { | |
26108 | (char *) "self", NULL | |
26109 | }; | |
26110 | ||
26111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26114 | { |
26115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26116 | { | |
26117 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26118 | result = (wxCursor *) &_result_ref; | |
26119 | } | |
26120 | ||
26121 | wxPyEndAllowThreads(__tstate); | |
26122 | if (PyErr_Occurred()) SWIG_fail; | |
26123 | } | |
4276dc52 RD |
26124 | { |
26125 | wxCursor* resultptr = new wxCursor(*result); | |
26126 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26127 | } | |
d14a1e28 RD |
26128 | return resultobj; |
26129 | fail: | |
26130 | return NULL; | |
26131 | } | |
26132 | ||
26133 | ||
26134 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26135 | PyObject *resultobj; | |
26136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26137 | wxFont *arg2 = 0 ; | |
26138 | bool result; | |
26139 | PyObject * obj0 = 0 ; | |
26140 | PyObject * obj1 = 0 ; | |
26141 | char *kwnames[] = { | |
26142 | (char *) "self",(char *) "font", NULL | |
26143 | }; | |
26144 | ||
26145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26150 | SWIG_fail; | |
d14a1e28 | 26151 | if (arg2 == NULL) { |
15afbcd0 RD |
26152 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26153 | SWIG_fail; | |
d14a1e28 RD |
26154 | } |
26155 | { | |
26156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26157 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26158 | ||
26159 | wxPyEndAllowThreads(__tstate); | |
26160 | if (PyErr_Occurred()) SWIG_fail; | |
26161 | } | |
4f89f6a3 RD |
26162 | { |
26163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26164 | } | |
d14a1e28 RD |
26165 | return resultobj; |
26166 | fail: | |
26167 | return NULL; | |
26168 | } | |
26169 | ||
26170 | ||
b2df227b RD |
26171 | static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
26172 | PyObject *resultobj; | |
26173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26174 | wxFont *arg2 = 0 ; | |
26175 | PyObject * obj0 = 0 ; | |
26176 | PyObject * obj1 = 0 ; | |
26177 | char *kwnames[] = { | |
26178 | (char *) "self",(char *) "font", NULL | |
26179 | }; | |
26180 | ||
26181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; | |
26182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26186 | SWIG_fail; | |
26187 | if (arg2 == NULL) { | |
26188 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26189 | SWIG_fail; | |
26190 | } | |
26191 | { | |
26192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26193 | (arg1)->SetDefaultFont((wxFont const &)*arg2); | |
26194 | ||
26195 | wxPyEndAllowThreads(__tstate); | |
26196 | if (PyErr_Occurred()) SWIG_fail; | |
26197 | } | |
26198 | Py_INCREF(Py_None); resultobj = Py_None; | |
26199 | return resultobj; | |
26200 | fail: | |
26201 | return NULL; | |
26202 | } | |
26203 | ||
26204 | ||
d14a1e28 RD |
26205 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
26206 | PyObject *resultobj; | |
26207 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26208 | wxFont *result; | |
26209 | PyObject * obj0 = 0 ; | |
26210 | char *kwnames[] = { | |
26211 | (char *) "self", NULL | |
26212 | }; | |
26213 | ||
26214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26217 | { |
26218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26219 | { | |
26220 | wxFont &_result_ref = (arg1)->GetFont(); | |
26221 | result = (wxFont *) &_result_ref; | |
26222 | } | |
26223 | ||
26224 | wxPyEndAllowThreads(__tstate); | |
26225 | if (PyErr_Occurred()) SWIG_fail; | |
26226 | } | |
4276dc52 RD |
26227 | { |
26228 | wxFont* resultptr = new wxFont(*result); | |
26229 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26230 | } | |
d14a1e28 RD |
26231 | return resultobj; |
26232 | fail: | |
26233 | return NULL; | |
26234 | } | |
26235 | ||
26236 | ||
26237 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26238 | PyObject *resultobj; | |
26239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26240 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26241 | PyObject * obj0 = 0 ; | |
26242 | PyObject * obj1 = 0 ; | |
26243 | char *kwnames[] = { | |
26244 | (char *) "self",(char *) "caret", NULL | |
26245 | }; | |
26246 | ||
26247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26252 | { |
26253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26254 | (arg1)->SetCaret(arg2); | |
26255 | ||
26256 | wxPyEndAllowThreads(__tstate); | |
26257 | if (PyErr_Occurred()) SWIG_fail; | |
26258 | } | |
26259 | Py_INCREF(Py_None); resultobj = Py_None; | |
26260 | return resultobj; | |
26261 | fail: | |
26262 | return NULL; | |
26263 | } | |
26264 | ||
26265 | ||
26266 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26267 | PyObject *resultobj; | |
26268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26269 | wxCaret *result; | |
26270 | PyObject * obj0 = 0 ; | |
26271 | char *kwnames[] = { | |
26272 | (char *) "self", NULL | |
26273 | }; | |
26274 | ||
26275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26278 | { |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
15afbcd0 | 26285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
26286 | return resultobj; |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
26292 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26293 | PyObject *resultobj; | |
26294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26295 | int result; | |
26296 | PyObject * obj0 = 0 ; | |
26297 | char *kwnames[] = { | |
26298 | (char *) "self", NULL | |
26299 | }; | |
26300 | ||
26301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26304 | { |
26305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26306 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26307 | ||
26308 | wxPyEndAllowThreads(__tstate); | |
26309 | if (PyErr_Occurred()) SWIG_fail; | |
26310 | } | |
15afbcd0 | 26311 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26312 | return resultobj; |
26313 | fail: | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
26318 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26319 | PyObject *resultobj; | |
26320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26321 | int result; | |
26322 | PyObject * obj0 = 0 ; | |
26323 | char *kwnames[] = { | |
26324 | (char *) "self", NULL | |
26325 | }; | |
26326 | ||
26327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26330 | { |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26333 | ||
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
15afbcd0 | 26337 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26338 | return resultobj; |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
26344 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26345 | PyObject *resultobj; | |
26346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26347 | wxString *arg2 = 0 ; | |
26348 | int *arg3 = (int *) 0 ; | |
26349 | int *arg4 = (int *) 0 ; | |
e811c8ce | 26350 | bool temp2 = False ; |
d14a1e28 RD |
26351 | int temp3 ; |
26352 | int temp4 ; | |
26353 | PyObject * obj0 = 0 ; | |
26354 | PyObject * obj1 = 0 ; | |
26355 | char *kwnames[] = { | |
26356 | (char *) "self",(char *) "string", NULL | |
26357 | }; | |
26358 | ||
26359 | arg3 = &temp3; | |
26360 | arg4 = &temp4; | |
26361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26364 | { |
26365 | arg2 = wxString_in_helper(obj1); | |
26366 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26367 | temp2 = True; |
d14a1e28 RD |
26368 | } |
26369 | { | |
26370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26371 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26372 | ||
26373 | wxPyEndAllowThreads(__tstate); | |
26374 | if (PyErr_Occurred()) SWIG_fail; | |
26375 | } | |
26376 | Py_INCREF(Py_None); resultobj = Py_None; | |
26377 | { | |
26378 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26379 | resultobj = t_output_helper(resultobj,o); | |
26380 | } | |
26381 | { | |
26382 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26383 | resultobj = t_output_helper(resultobj,o); | |
26384 | } | |
26385 | { | |
26386 | if (temp2) | |
26387 | delete arg2; | |
26388 | } | |
26389 | return resultobj; | |
26390 | fail: | |
26391 | { | |
26392 | if (temp2) | |
26393 | delete arg2; | |
26394 | } | |
26395 | return NULL; | |
26396 | } | |
26397 | ||
26398 | ||
26399 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26400 | PyObject *resultobj; | |
26401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26402 | wxString *arg2 = 0 ; | |
26403 | int *arg3 = (int *) 0 ; | |
26404 | int *arg4 = (int *) 0 ; | |
26405 | int *arg5 = (int *) 0 ; | |
26406 | int *arg6 = (int *) 0 ; | |
26407 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 26408 | bool temp2 = False ; |
d14a1e28 RD |
26409 | int temp3 ; |
26410 | int temp4 ; | |
26411 | int temp5 ; | |
26412 | int temp6 ; | |
26413 | PyObject * obj0 = 0 ; | |
26414 | PyObject * obj1 = 0 ; | |
26415 | PyObject * obj2 = 0 ; | |
26416 | char *kwnames[] = { | |
26417 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26418 | }; | |
26419 | ||
26420 | arg3 = &temp3; | |
26421 | arg4 = &temp4; | |
26422 | arg5 = &temp5; | |
26423 | arg6 = &temp6; | |
26424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26427 | { |
26428 | arg2 = wxString_in_helper(obj1); | |
26429 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26430 | temp2 = True; |
d14a1e28 RD |
26431 | } |
26432 | if (obj2) { | |
15afbcd0 RD |
26433 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
26434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26435 | } |
26436 | { | |
26437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26438 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26439 | ||
26440 | wxPyEndAllowThreads(__tstate); | |
26441 | if (PyErr_Occurred()) SWIG_fail; | |
26442 | } | |
26443 | Py_INCREF(Py_None); resultobj = Py_None; | |
26444 | { | |
26445 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26446 | resultobj = t_output_helper(resultobj,o); | |
26447 | } | |
26448 | { | |
26449 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26450 | resultobj = t_output_helper(resultobj,o); | |
26451 | } | |
26452 | { | |
26453 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26454 | resultobj = t_output_helper(resultobj,o); | |
26455 | } | |
26456 | { | |
26457 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26458 | resultobj = t_output_helper(resultobj,o); | |
26459 | } | |
26460 | { | |
26461 | if (temp2) | |
26462 | delete arg2; | |
26463 | } | |
26464 | return resultobj; | |
26465 | fail: | |
26466 | { | |
26467 | if (temp2) | |
26468 | delete arg2; | |
26469 | } | |
26470 | return NULL; | |
26471 | } | |
26472 | ||
26473 | ||
26474 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26475 | PyObject *resultobj; | |
26476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26477 | int *arg2 = (int *) 0 ; | |
26478 | int *arg3 = (int *) 0 ; | |
26479 | int temp2 ; | |
26480 | int temp3 ; | |
26481 | PyObject * obj0 = 0 ; | |
26482 | PyObject * obj1 = 0 ; | |
26483 | PyObject * obj2 = 0 ; | |
26484 | char *kwnames[] = { | |
26485 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26486 | }; | |
26487 | ||
26488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26491 | { |
26492 | temp2 = PyInt_AsLong(obj1); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | arg2 = &temp2; | |
26495 | } | |
26496 | { | |
26497 | temp3 = PyInt_AsLong(obj2); | |
26498 | if (PyErr_Occurred()) SWIG_fail; | |
26499 | arg3 = &temp3; | |
26500 | } | |
26501 | { | |
26502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26503 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26504 | ||
26505 | wxPyEndAllowThreads(__tstate); | |
26506 | if (PyErr_Occurred()) SWIG_fail; | |
26507 | } | |
26508 | Py_INCREF(Py_None); resultobj = Py_None; | |
26509 | { | |
26510 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26511 | resultobj = t_output_helper(resultobj,o); | |
26512 | } | |
26513 | { | |
26514 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26515 | resultobj = t_output_helper(resultobj,o); | |
26516 | } | |
26517 | return resultobj; | |
26518 | fail: | |
26519 | return NULL; | |
26520 | } | |
26521 | ||
26522 | ||
26523 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26524 | PyObject *resultobj; | |
26525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26526 | int *arg2 = (int *) 0 ; | |
26527 | int *arg3 = (int *) 0 ; | |
26528 | int temp2 ; | |
26529 | int temp3 ; | |
26530 | PyObject * obj0 = 0 ; | |
26531 | PyObject * obj1 = 0 ; | |
26532 | PyObject * obj2 = 0 ; | |
26533 | char *kwnames[] = { | |
26534 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26535 | }; | |
26536 | ||
26537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26540 | { |
26541 | temp2 = PyInt_AsLong(obj1); | |
26542 | if (PyErr_Occurred()) SWIG_fail; | |
26543 | arg2 = &temp2; | |
26544 | } | |
26545 | { | |
26546 | temp3 = PyInt_AsLong(obj2); | |
26547 | if (PyErr_Occurred()) SWIG_fail; | |
26548 | arg3 = &temp3; | |
26549 | } | |
26550 | { | |
26551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26552 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26553 | ||
26554 | wxPyEndAllowThreads(__tstate); | |
26555 | if (PyErr_Occurred()) SWIG_fail; | |
26556 | } | |
26557 | Py_INCREF(Py_None); resultobj = Py_None; | |
26558 | { | |
26559 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26560 | resultobj = t_output_helper(resultobj,o); | |
26561 | } | |
26562 | { | |
26563 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26564 | resultobj = t_output_helper(resultobj,o); | |
26565 | } | |
26566 | return resultobj; | |
26567 | fail: | |
26568 | return NULL; | |
26569 | } | |
26570 | ||
26571 | ||
26572 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26573 | PyObject *resultobj; | |
26574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26575 | wxPoint *arg2 = 0 ; | |
26576 | wxPoint result; | |
26577 | wxPoint temp2 ; | |
26578 | PyObject * obj0 = 0 ; | |
26579 | PyObject * obj1 = 0 ; | |
26580 | char *kwnames[] = { | |
26581 | (char *) "self",(char *) "pt", NULL | |
26582 | }; | |
26583 | ||
26584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26587 | { |
26588 | arg2 = &temp2; | |
26589 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26590 | } | |
26591 | { | |
26592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26593 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26594 | ||
26595 | wxPyEndAllowThreads(__tstate); | |
26596 | if (PyErr_Occurred()) SWIG_fail; | |
26597 | } | |
26598 | { | |
26599 | wxPoint * resultptr; | |
26600 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26602 | } |
26603 | return resultobj; | |
26604 | fail: | |
26605 | return NULL; | |
26606 | } | |
26607 | ||
26608 | ||
26609 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26610 | PyObject *resultobj; | |
26611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26612 | wxPoint *arg2 = 0 ; | |
26613 | wxPoint result; | |
26614 | wxPoint temp2 ; | |
26615 | PyObject * obj0 = 0 ; | |
26616 | PyObject * obj1 = 0 ; | |
26617 | char *kwnames[] = { | |
26618 | (char *) "self",(char *) "pt", NULL | |
26619 | }; | |
26620 | ||
26621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26624 | { |
26625 | arg2 = &temp2; | |
26626 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26627 | } | |
26628 | { | |
26629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26630 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26631 | ||
26632 | wxPyEndAllowThreads(__tstate); | |
26633 | if (PyErr_Occurred()) SWIG_fail; | |
26634 | } | |
26635 | { | |
26636 | wxPoint * resultptr; | |
26637 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26639 | } |
26640 | return resultobj; | |
26641 | fail: | |
26642 | return NULL; | |
26643 | } | |
26644 | ||
26645 | ||
26646 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26647 | PyObject *resultobj; | |
26648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
26649 | int arg2 ; |
26650 | int arg3 ; | |
d14a1e28 RD |
26651 | int result; |
26652 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26653 | PyObject * obj1 = 0 ; |
26654 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26655 | char *kwnames[] = { |
26656 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26657 | }; | |
26658 | ||
994141e6 | 26659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26662 | arg2 = (int) SWIG_AsInt(obj1); | |
26663 | if (PyErr_Occurred()) SWIG_fail; | |
26664 | arg3 = (int) SWIG_AsInt(obj2); | |
26665 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26666 | { |
26667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26668 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26669 | ||
26670 | wxPyEndAllowThreads(__tstate); | |
26671 | if (PyErr_Occurred()) SWIG_fail; | |
26672 | } | |
15afbcd0 | 26673 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26674 | return resultobj; |
26675 | fail: | |
26676 | return NULL; | |
26677 | } | |
26678 | ||
26679 | ||
26680 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26681 | PyObject *resultobj; | |
26682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26683 | wxPoint *arg2 = 0 ; | |
26684 | int result; | |
26685 | wxPoint temp2 ; | |
26686 | PyObject * obj0 = 0 ; | |
26687 | PyObject * obj1 = 0 ; | |
26688 | char *kwnames[] = { | |
26689 | (char *) "self",(char *) "pt", NULL | |
26690 | }; | |
26691 | ||
26692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26695 | { |
26696 | arg2 = &temp2; | |
26697 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26698 | } | |
26699 | { | |
26700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26701 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26702 | ||
26703 | wxPyEndAllowThreads(__tstate); | |
26704 | if (PyErr_Occurred()) SWIG_fail; | |
26705 | } | |
15afbcd0 | 26706 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26707 | return resultobj; |
26708 | fail: | |
26709 | return NULL; | |
26710 | } | |
26711 | ||
26712 | ||
15afbcd0 | 26713 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26714 | PyObject *resultobj; |
26715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26716 | long arg2 ; | |
26717 | int result; | |
26718 | PyObject * obj0 = 0 ; | |
994141e6 | 26719 | PyObject * obj1 = 0 ; |
d14a1e28 | 26720 | |
15afbcd0 RD |
26721 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
26722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26724 | arg2 = (long) SWIG_AsLong(obj1); | |
26725 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26726 | { |
26727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26728 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26729 | ||
26730 | wxPyEndAllowThreads(__tstate); | |
26731 | if (PyErr_Occurred()) SWIG_fail; | |
26732 | } | |
15afbcd0 | 26733 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26734 | return resultobj; |
26735 | fail: | |
26736 | return NULL; | |
26737 | } | |
26738 | ||
26739 | ||
15afbcd0 | 26740 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26741 | PyObject *resultobj; |
26742 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26743 | int result; | |
26744 | PyObject * obj0 = 0 ; | |
d14a1e28 | 26745 | |
15afbcd0 RD |
26746 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
26747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26749 | { |
26750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26751 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26752 | ||
26753 | wxPyEndAllowThreads(__tstate); | |
26754 | if (PyErr_Occurred()) SWIG_fail; | |
26755 | } | |
15afbcd0 | 26756 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26757 | return resultobj; |
26758 | fail: | |
26759 | return NULL; | |
26760 | } | |
26761 | ||
26762 | ||
15afbcd0 RD |
26763 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
26764 | int argc; | |
26765 | PyObject *argv[3]; | |
26766 | int ii; | |
26767 | ||
26768 | argc = PyObject_Length(args); | |
26769 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26770 | argv[ii] = PyTuple_GetItem(args,ii); | |
26771 | } | |
26772 | if (argc == 1) { | |
26773 | int _v; | |
26774 | { | |
26775 | void *ptr; | |
26776 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26777 | _v = 0; | |
26778 | PyErr_Clear(); | |
26779 | } else { | |
26780 | _v = 1; | |
26781 | } | |
26782 | } | |
26783 | if (_v) { | |
26784 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26785 | } | |
26786 | } | |
26787 | if (argc == 2) { | |
26788 | int _v; | |
26789 | { | |
26790 | void *ptr; | |
26791 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26792 | _v = 0; | |
26793 | PyErr_Clear(); | |
26794 | } else { | |
26795 | _v = 1; | |
26796 | } | |
26797 | } | |
26798 | if (_v) { | |
26799 | _v = SWIG_CheckLong(argv[1]); | |
26800 | if (_v) { | |
26801 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26802 | } | |
26803 | } | |
26804 | } | |
26805 | ||
26806 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26807 | return NULL; | |
26808 | } | |
26809 | ||
26810 | ||
d14a1e28 RD |
26811 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
26812 | PyObject *resultobj; | |
26813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26814 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26815 | PyObject * obj0 = 0 ; | |
994141e6 | 26816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26817 | char *kwnames[] = { |
26818 | (char *) "self",(char *) "flags", NULL | |
26819 | }; | |
26820 | ||
994141e6 | 26821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 26824 | if (obj1) { |
15afbcd0 RD |
26825 | arg2 = (long) SWIG_AsLong(obj1); |
26826 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26827 | } |
d14a1e28 RD |
26828 | { |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | (arg1)->UpdateWindowUI(arg2); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | Py_INCREF(Py_None); resultobj = Py_None; | |
26836 | return resultobj; | |
26837 | fail: | |
26838 | return NULL; | |
26839 | } | |
26840 | ||
26841 | ||
26842 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26843 | PyObject *resultobj; | |
26844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26845 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26846 | int arg3 ; | |
26847 | int arg4 ; | |
26848 | bool result; | |
26849 | PyObject * obj0 = 0 ; | |
26850 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26851 | PyObject * obj2 = 0 ; |
26852 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26853 | char *kwnames[] = { |
26854 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26855 | }; | |
26856 | ||
994141e6 | 26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26862 | arg3 = (int) SWIG_AsInt(obj2); | |
26863 | if (PyErr_Occurred()) SWIG_fail; | |
26864 | arg4 = (int) SWIG_AsInt(obj3); | |
26865 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26866 | { |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26869 | ||
26870 | wxPyEndAllowThreads(__tstate); | |
26871 | if (PyErr_Occurred()) SWIG_fail; | |
26872 | } | |
4f89f6a3 RD |
26873 | { |
26874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26875 | } | |
d14a1e28 RD |
26876 | return resultobj; |
26877 | fail: | |
26878 | return NULL; | |
26879 | } | |
26880 | ||
26881 | ||
26882 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26883 | PyObject *resultobj; | |
26884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26885 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26886 | wxPoint *arg3 = 0 ; | |
26887 | bool result; | |
26888 | wxPoint temp3 ; | |
26889 | PyObject * obj0 = 0 ; | |
26890 | PyObject * obj1 = 0 ; | |
26891 | PyObject * obj2 = 0 ; | |
26892 | char *kwnames[] = { | |
26893 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26894 | }; | |
26895 | ||
26896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26901 | { |
26902 | arg3 = &temp3; | |
26903 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26904 | } | |
26905 | { | |
26906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26907 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26908 | ||
26909 | wxPyEndAllowThreads(__tstate); | |
26910 | if (PyErr_Occurred()) SWIG_fail; | |
26911 | } | |
4f89f6a3 RD |
26912 | { |
26913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26914 | } | |
d14a1e28 RD |
26915 | return resultobj; |
26916 | fail: | |
26917 | return NULL; | |
26918 | } | |
26919 | ||
26920 | ||
26921 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26922 | PyObject *resultobj; | |
26923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26924 | long result; | |
26925 | PyObject * obj0 = 0 ; | |
26926 | char *kwnames[] = { | |
26927 | (char *) "self", NULL | |
26928 | }; | |
26929 | ||
26930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26933 | { |
26934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26935 | result = (long)wxWindow_GetHandle(arg1); | |
26936 | ||
26937 | wxPyEndAllowThreads(__tstate); | |
26938 | if (PyErr_Occurred()) SWIG_fail; | |
26939 | } | |
15afbcd0 | 26940 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
26941 | return resultobj; |
26942 | fail: | |
26943 | return NULL; | |
26944 | } | |
26945 | ||
26946 | ||
26947 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26948 | PyObject *resultobj; | |
26949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26950 | int arg2 ; | |
26951 | bool result; | |
26952 | PyObject * obj0 = 0 ; | |
994141e6 | 26953 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26954 | char *kwnames[] = { |
26955 | (char *) "self",(char *) "orient", NULL | |
26956 | }; | |
26957 | ||
994141e6 | 26958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26961 | arg2 = (int) SWIG_AsInt(obj1); | |
26962 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26963 | { |
26964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26965 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26966 | ||
26967 | wxPyEndAllowThreads(__tstate); | |
26968 | if (PyErr_Occurred()) SWIG_fail; | |
26969 | } | |
4f89f6a3 RD |
26970 | { |
26971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26972 | } | |
d14a1e28 RD |
26973 | return resultobj; |
26974 | fail: | |
26975 | return NULL; | |
26976 | } | |
26977 | ||
26978 | ||
26979 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26980 | PyObject *resultobj; | |
26981 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26982 | int arg2 ; | |
26983 | int arg3 ; | |
26984 | int arg4 ; | |
26985 | int arg5 ; | |
e811c8ce | 26986 | bool arg6 = (bool) True ; |
d14a1e28 | 26987 | PyObject * obj0 = 0 ; |
994141e6 RD |
26988 | PyObject * obj1 = 0 ; |
26989 | PyObject * obj2 = 0 ; | |
26990 | PyObject * obj3 = 0 ; | |
26991 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26992 | PyObject * obj5 = 0 ; |
26993 | char *kwnames[] = { | |
41e2b43e | 26994 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
26995 | }; |
26996 | ||
994141e6 | 26997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27000 | arg2 = (int) SWIG_AsInt(obj1); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | arg3 = (int) SWIG_AsInt(obj2); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | arg4 = (int) SWIG_AsInt(obj3); | |
27005 | if (PyErr_Occurred()) SWIG_fail; | |
27006 | arg5 = (int) SWIG_AsInt(obj4); | |
27007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27008 | if (obj5) { |
15afbcd0 RD |
27009 | arg6 = (bool) SWIG_AsBool(obj5); |
27010 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27011 | } |
27012 | { | |
27013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27014 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27015 | ||
27016 | wxPyEndAllowThreads(__tstate); | |
27017 | if (PyErr_Occurred()) SWIG_fail; | |
27018 | } | |
27019 | Py_INCREF(Py_None); resultobj = Py_None; | |
27020 | return resultobj; | |
27021 | fail: | |
27022 | return NULL; | |
27023 | } | |
27024 | ||
27025 | ||
27026 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27027 | PyObject *resultobj; | |
27028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27029 | int arg2 ; | |
27030 | int arg3 ; | |
e811c8ce | 27031 | bool arg4 = (bool) True ; |
d14a1e28 | 27032 | PyObject * obj0 = 0 ; |
994141e6 RD |
27033 | PyObject * obj1 = 0 ; |
27034 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27035 | PyObject * obj3 = 0 ; |
27036 | char *kwnames[] = { | |
15afbcd0 | 27037 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
27038 | }; |
27039 | ||
994141e6 | 27040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27043 | arg2 = (int) SWIG_AsInt(obj1); | |
27044 | if (PyErr_Occurred()) SWIG_fail; | |
27045 | arg3 = (int) SWIG_AsInt(obj2); | |
27046 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27047 | if (obj3) { |
15afbcd0 RD |
27048 | arg4 = (bool) SWIG_AsBool(obj3); |
27049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27050 | } |
27051 | { | |
27052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27053 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27054 | ||
27055 | wxPyEndAllowThreads(__tstate); | |
27056 | if (PyErr_Occurred()) SWIG_fail; | |
27057 | } | |
27058 | Py_INCREF(Py_None); resultobj = Py_None; | |
27059 | return resultobj; | |
27060 | fail: | |
27061 | return NULL; | |
27062 | } | |
27063 | ||
27064 | ||
27065 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27066 | PyObject *resultobj; | |
27067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27068 | int arg2 ; | |
27069 | int result; | |
27070 | PyObject * obj0 = 0 ; | |
994141e6 | 27071 | PyObject * obj1 = 0 ; |
d14a1e28 | 27072 | char *kwnames[] = { |
15afbcd0 | 27073 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27074 | }; |
27075 | ||
994141e6 | 27076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27079 | arg2 = (int) SWIG_AsInt(obj1); | |
27080 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27081 | { |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
15afbcd0 | 27088 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27089 | return resultobj; |
27090 | fail: | |
27091 | return NULL; | |
27092 | } | |
27093 | ||
27094 | ||
27095 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27096 | PyObject *resultobj; | |
27097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27098 | int arg2 ; | |
27099 | int result; | |
27100 | PyObject * obj0 = 0 ; | |
994141e6 | 27101 | PyObject * obj1 = 0 ; |
d14a1e28 | 27102 | char *kwnames[] = { |
15afbcd0 | 27103 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27104 | }; |
27105 | ||
994141e6 | 27106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27109 | arg2 = (int) SWIG_AsInt(obj1); | |
27110 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27111 | { |
27112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27113 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27114 | ||
27115 | wxPyEndAllowThreads(__tstate); | |
27116 | if (PyErr_Occurred()) SWIG_fail; | |
27117 | } | |
15afbcd0 | 27118 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27119 | return resultobj; |
27120 | fail: | |
27121 | return NULL; | |
27122 | } | |
27123 | ||
27124 | ||
27125 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27126 | PyObject *resultobj; | |
27127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27128 | int arg2 ; | |
27129 | int result; | |
27130 | PyObject * obj0 = 0 ; | |
994141e6 | 27131 | PyObject * obj1 = 0 ; |
d14a1e28 | 27132 | char *kwnames[] = { |
15afbcd0 | 27133 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27134 | }; |
27135 | ||
994141e6 | 27136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27139 | arg2 = (int) SWIG_AsInt(obj1); | |
27140 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27141 | { |
27142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27143 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27144 | ||
27145 | wxPyEndAllowThreads(__tstate); | |
27146 | if (PyErr_Occurred()) SWIG_fail; | |
27147 | } | |
15afbcd0 | 27148 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27149 | return resultobj; |
27150 | fail: | |
27151 | return NULL; | |
27152 | } | |
27153 | ||
27154 | ||
27155 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27156 | PyObject *resultobj; | |
27157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27158 | int arg2 ; | |
27159 | int arg3 ; | |
27160 | wxRect *arg4 = (wxRect *) NULL ; | |
27161 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27162 | PyObject * obj1 = 0 ; |
27163 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27164 | PyObject * obj3 = 0 ; |
27165 | char *kwnames[] = { | |
27166 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27167 | }; | |
27168 | ||
994141e6 | 27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27172 | arg2 = (int) SWIG_AsInt(obj1); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | arg3 = (int) SWIG_AsInt(obj2); | |
27175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27176 | if (obj3) { |
15afbcd0 RD |
27177 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
27178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27179 | } |
27180 | { | |
27181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27182 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27183 | ||
27184 | wxPyEndAllowThreads(__tstate); | |
27185 | if (PyErr_Occurred()) SWIG_fail; | |
27186 | } | |
27187 | Py_INCREF(Py_None); resultobj = Py_None; | |
27188 | return resultobj; | |
27189 | fail: | |
27190 | return NULL; | |
27191 | } | |
27192 | ||
27193 | ||
27194 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27195 | PyObject *resultobj; | |
27196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27197 | int arg2 ; | |
27198 | bool result; | |
27199 | PyObject * obj0 = 0 ; | |
994141e6 | 27200 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27201 | char *kwnames[] = { |
27202 | (char *) "self",(char *) "lines", NULL | |
27203 | }; | |
27204 | ||
994141e6 | 27205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27208 | arg2 = (int) SWIG_AsInt(obj1); | |
27209 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27210 | { |
27211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27212 | result = (bool)(arg1)->ScrollLines(arg2); | |
27213 | ||
27214 | wxPyEndAllowThreads(__tstate); | |
27215 | if (PyErr_Occurred()) SWIG_fail; | |
27216 | } | |
4f89f6a3 RD |
27217 | { |
27218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27219 | } | |
d14a1e28 RD |
27220 | return resultobj; |
27221 | fail: | |
27222 | return NULL; | |
27223 | } | |
27224 | ||
27225 | ||
27226 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27227 | PyObject *resultobj; | |
27228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27229 | int arg2 ; | |
27230 | bool result; | |
27231 | PyObject * obj0 = 0 ; | |
994141e6 | 27232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27233 | char *kwnames[] = { |
27234 | (char *) "self",(char *) "pages", NULL | |
27235 | }; | |
27236 | ||
994141e6 | 27237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27240 | arg2 = (int) SWIG_AsInt(obj1); | |
27241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27242 | { |
27243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27244 | result = (bool)(arg1)->ScrollPages(arg2); | |
27245 | ||
27246 | wxPyEndAllowThreads(__tstate); | |
27247 | if (PyErr_Occurred()) SWIG_fail; | |
27248 | } | |
4f89f6a3 RD |
27249 | { |
27250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27251 | } | |
d14a1e28 RD |
27252 | return resultobj; |
27253 | fail: | |
27254 | return NULL; | |
27255 | } | |
27256 | ||
27257 | ||
27258 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27259 | PyObject *resultobj; | |
27260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27261 | bool result; | |
27262 | PyObject * obj0 = 0 ; | |
27263 | char *kwnames[] = { | |
27264 | (char *) "self", NULL | |
27265 | }; | |
27266 | ||
27267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27270 | { |
27271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27272 | result = (bool)(arg1)->LineUp(); | |
27273 | ||
27274 | wxPyEndAllowThreads(__tstate); | |
27275 | if (PyErr_Occurred()) SWIG_fail; | |
27276 | } | |
4f89f6a3 RD |
27277 | { |
27278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27279 | } | |
d14a1e28 RD |
27280 | return resultobj; |
27281 | fail: | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
27286 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27287 | PyObject *resultobj; | |
27288 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27289 | bool result; | |
27290 | PyObject * obj0 = 0 ; | |
27291 | char *kwnames[] = { | |
27292 | (char *) "self", NULL | |
27293 | }; | |
27294 | ||
27295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27298 | { |
27299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27300 | result = (bool)(arg1)->LineDown(); | |
27301 | ||
27302 | wxPyEndAllowThreads(__tstate); | |
27303 | if (PyErr_Occurred()) SWIG_fail; | |
27304 | } | |
4f89f6a3 RD |
27305 | { |
27306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27307 | } | |
d14a1e28 RD |
27308 | return resultobj; |
27309 | fail: | |
27310 | return NULL; | |
27311 | } | |
27312 | ||
27313 | ||
27314 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27315 | PyObject *resultobj; | |
27316 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27317 | bool result; | |
27318 | PyObject * obj0 = 0 ; | |
27319 | char *kwnames[] = { | |
27320 | (char *) "self", NULL | |
27321 | }; | |
27322 | ||
27323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27326 | { |
27327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27328 | result = (bool)(arg1)->PageUp(); | |
27329 | ||
27330 | wxPyEndAllowThreads(__tstate); | |
27331 | if (PyErr_Occurred()) SWIG_fail; | |
27332 | } | |
4f89f6a3 RD |
27333 | { |
27334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27335 | } | |
d14a1e28 RD |
27336 | return resultobj; |
27337 | fail: | |
27338 | return NULL; | |
27339 | } | |
27340 | ||
27341 | ||
27342 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27343 | PyObject *resultobj; | |
27344 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27345 | bool result; | |
27346 | PyObject * obj0 = 0 ; | |
27347 | char *kwnames[] = { | |
27348 | (char *) "self", NULL | |
27349 | }; | |
27350 | ||
27351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27354 | { |
27355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27356 | result = (bool)(arg1)->PageDown(); | |
27357 | ||
27358 | wxPyEndAllowThreads(__tstate); | |
27359 | if (PyErr_Occurred()) SWIG_fail; | |
27360 | } | |
4f89f6a3 RD |
27361 | { |
27362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27363 | } | |
d14a1e28 RD |
27364 | return resultobj; |
27365 | fail: | |
27366 | return NULL; | |
27367 | } | |
27368 | ||
27369 | ||
27370 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27371 | PyObject *resultobj; | |
27372 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27373 | wxString *arg2 = 0 ; | |
e811c8ce | 27374 | bool temp2 = False ; |
d14a1e28 RD |
27375 | PyObject * obj0 = 0 ; |
27376 | PyObject * obj1 = 0 ; | |
27377 | char *kwnames[] = { | |
27378 | (char *) "self",(char *) "text", NULL | |
27379 | }; | |
27380 | ||
27381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27384 | { |
27385 | arg2 = wxString_in_helper(obj1); | |
27386 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27387 | temp2 = True; |
d14a1e28 RD |
27388 | } |
27389 | { | |
27390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27391 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27392 | ||
27393 | wxPyEndAllowThreads(__tstate); | |
27394 | if (PyErr_Occurred()) SWIG_fail; | |
27395 | } | |
27396 | Py_INCREF(Py_None); resultobj = Py_None; | |
27397 | { | |
27398 | if (temp2) | |
27399 | delete arg2; | |
27400 | } | |
27401 | return resultobj; | |
27402 | fail: | |
27403 | { | |
27404 | if (temp2) | |
27405 | delete arg2; | |
27406 | } | |
27407 | return NULL; | |
27408 | } | |
27409 | ||
27410 | ||
27411 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27412 | PyObject *resultobj; | |
27413 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27414 | wxString *arg2 = 0 ; | |
e811c8ce | 27415 | bool temp2 = False ; |
d14a1e28 RD |
27416 | PyObject * obj0 = 0 ; |
27417 | PyObject * obj1 = 0 ; | |
27418 | char *kwnames[] = { | |
27419 | (char *) "self",(char *) "text", NULL | |
27420 | }; | |
27421 | ||
27422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27425 | { |
27426 | arg2 = wxString_in_helper(obj1); | |
27427 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27428 | temp2 = True; |
d14a1e28 RD |
27429 | } |
27430 | { | |
27431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27432 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27433 | ||
27434 | wxPyEndAllowThreads(__tstate); | |
27435 | if (PyErr_Occurred()) SWIG_fail; | |
27436 | } | |
27437 | Py_INCREF(Py_None); resultobj = Py_None; | |
27438 | { | |
27439 | if (temp2) | |
27440 | delete arg2; | |
27441 | } | |
27442 | return resultobj; | |
27443 | fail: | |
27444 | { | |
27445 | if (temp2) | |
27446 | delete arg2; | |
27447 | } | |
27448 | return NULL; | |
27449 | } | |
27450 | ||
27451 | ||
27452 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27453 | PyObject *resultobj; | |
27454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27455 | wxString result; | |
27456 | PyObject * obj0 = 0 ; | |
27457 | char *kwnames[] = { | |
27458 | (char *) "self", NULL | |
27459 | }; | |
27460 | ||
27461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27464 | { |
27465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27466 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27467 | ||
27468 | wxPyEndAllowThreads(__tstate); | |
27469 | if (PyErr_Occurred()) SWIG_fail; | |
27470 | } | |
27471 | { | |
27472 | #if wxUSE_UNICODE | |
27473 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27474 | #else | |
27475 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27476 | #endif | |
27477 | } | |
27478 | return resultobj; | |
27479 | fail: | |
27480 | return NULL; | |
27481 | } | |
27482 | ||
27483 | ||
27484 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27485 | PyObject *resultobj; | |
27486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27487 | wxString *arg2 = 0 ; | |
e811c8ce | 27488 | bool temp2 = False ; |
d14a1e28 RD |
27489 | PyObject * obj0 = 0 ; |
27490 | PyObject * obj1 = 0 ; | |
27491 | char *kwnames[] = { | |
27492 | (char *) "self",(char *) "tip", NULL | |
27493 | }; | |
27494 | ||
27495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27498 | { |
27499 | arg2 = wxString_in_helper(obj1); | |
27500 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27501 | temp2 = True; |
d14a1e28 RD |
27502 | } |
27503 | { | |
27504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27505 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27506 | ||
27507 | wxPyEndAllowThreads(__tstate); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
27510 | Py_INCREF(Py_None); resultobj = Py_None; | |
27511 | { | |
27512 | if (temp2) | |
27513 | delete arg2; | |
27514 | } | |
27515 | return resultobj; | |
27516 | fail: | |
27517 | { | |
27518 | if (temp2) | |
27519 | delete arg2; | |
27520 | } | |
27521 | return NULL; | |
27522 | } | |
27523 | ||
27524 | ||
27525 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27526 | PyObject *resultobj; | |
27527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27528 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27529 | PyObject * obj0 = 0 ; | |
27530 | PyObject * obj1 = 0 ; | |
27531 | char *kwnames[] = { | |
27532 | (char *) "self",(char *) "tip", NULL | |
27533 | }; | |
27534 | ||
27535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27540 | { |
27541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27542 | (arg1)->SetToolTip(arg2); | |
27543 | ||
27544 | wxPyEndAllowThreads(__tstate); | |
27545 | if (PyErr_Occurred()) SWIG_fail; | |
27546 | } | |
27547 | Py_INCREF(Py_None); resultobj = Py_None; | |
27548 | return resultobj; | |
27549 | fail: | |
27550 | return NULL; | |
27551 | } | |
27552 | ||
27553 | ||
27554 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27555 | PyObject *resultobj; | |
27556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27557 | wxToolTip *result; | |
27558 | PyObject * obj0 = 0 ; | |
27559 | char *kwnames[] = { | |
27560 | (char *) "self", NULL | |
27561 | }; | |
27562 | ||
27563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27566 | { |
27567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27568 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27569 | ||
27570 | wxPyEndAllowThreads(__tstate); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | } | |
27573 | { | |
27574 | resultobj = wxPyMake_wxObject(result); | |
27575 | } | |
27576 | return resultobj; | |
27577 | fail: | |
27578 | return NULL; | |
27579 | } | |
27580 | ||
27581 | ||
27582 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27583 | PyObject *resultobj; | |
27584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27585 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
27586 | PyObject * obj0 = 0 ; |
27587 | PyObject * obj1 = 0 ; | |
27588 | char *kwnames[] = { | |
27589 | (char *) "self",(char *) "dropTarget", NULL | |
27590 | }; | |
27591 | ||
27592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27596 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27597 | { |
27598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27599 | (arg1)->SetDropTarget(arg2); | |
27600 | ||
27601 | wxPyEndAllowThreads(__tstate); | |
27602 | if (PyErr_Occurred()) SWIG_fail; | |
27603 | } | |
27604 | Py_INCREF(Py_None); resultobj = Py_None; | |
27605 | return resultobj; | |
27606 | fail: | |
27607 | return NULL; | |
27608 | } | |
27609 | ||
27610 | ||
27611 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27612 | PyObject *resultobj; | |
27613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27614 | wxPyDropTarget *result; |
d14a1e28 RD |
27615 | PyObject * obj0 = 0 ; |
27616 | char *kwnames[] = { | |
27617 | (char *) "self", NULL | |
27618 | }; | |
27619 | ||
27620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27623 | { |
27624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 27625 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
27626 | |
27627 | wxPyEndAllowThreads(__tstate); | |
27628 | if (PyErr_Occurred()) SWIG_fail; | |
27629 | } | |
15afbcd0 | 27630 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
27631 | return resultobj; |
27632 | fail: | |
27633 | return NULL; | |
27634 | } | |
27635 | ||
27636 | ||
27637 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27638 | PyObject *resultobj; | |
27639 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27640 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27641 | PyObject * obj0 = 0 ; | |
27642 | PyObject * obj1 = 0 ; | |
27643 | char *kwnames[] = { | |
27644 | (char *) "self",(char *) "constraints", NULL | |
27645 | }; | |
27646 | ||
27647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27652 | { |
27653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27654 | (arg1)->SetConstraints(arg2); | |
27655 | ||
27656 | wxPyEndAllowThreads(__tstate); | |
27657 | if (PyErr_Occurred()) SWIG_fail; | |
27658 | } | |
27659 | Py_INCREF(Py_None); resultobj = Py_None; | |
27660 | return resultobj; | |
27661 | fail: | |
27662 | return NULL; | |
27663 | } | |
27664 | ||
27665 | ||
27666 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27667 | PyObject *resultobj; | |
27668 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27669 | wxLayoutConstraints *result; | |
27670 | PyObject * obj0 = 0 ; | |
27671 | char *kwnames[] = { | |
27672 | (char *) "self", NULL | |
27673 | }; | |
27674 | ||
27675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27678 | { |
27679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27680 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27681 | ||
27682 | wxPyEndAllowThreads(__tstate); | |
27683 | if (PyErr_Occurred()) SWIG_fail; | |
27684 | } | |
15afbcd0 | 27685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
27686 | return resultobj; |
27687 | fail: | |
27688 | return NULL; | |
27689 | } | |
27690 | ||
27691 | ||
27692 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27693 | PyObject *resultobj; | |
27694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27695 | bool arg2 ; | |
27696 | PyObject * obj0 = 0 ; | |
27697 | PyObject * obj1 = 0 ; | |
27698 | char *kwnames[] = { | |
27699 | (char *) "self",(char *) "autoLayout", NULL | |
27700 | }; | |
27701 | ||
27702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27705 | arg2 = (bool) SWIG_AsBool(obj1); | |
27706 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27707 | { |
27708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27709 | (arg1)->SetAutoLayout(arg2); | |
27710 | ||
27711 | wxPyEndAllowThreads(__tstate); | |
27712 | if (PyErr_Occurred()) SWIG_fail; | |
27713 | } | |
27714 | Py_INCREF(Py_None); resultobj = Py_None; | |
27715 | return resultobj; | |
27716 | fail: | |
27717 | return NULL; | |
27718 | } | |
27719 | ||
27720 | ||
27721 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27722 | PyObject *resultobj; | |
27723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27724 | bool result; | |
27725 | PyObject * obj0 = 0 ; | |
27726 | char *kwnames[] = { | |
27727 | (char *) "self", NULL | |
27728 | }; | |
27729 | ||
27730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27733 | { |
27734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27735 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27736 | ||
27737 | wxPyEndAllowThreads(__tstate); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
4f89f6a3 RD |
27740 | { |
27741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27742 | } | |
d14a1e28 RD |
27743 | return resultobj; |
27744 | fail: | |
27745 | return NULL; | |
27746 | } | |
27747 | ||
27748 | ||
27749 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27750 | PyObject *resultobj; | |
27751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27752 | bool result; | |
27753 | PyObject * obj0 = 0 ; | |
27754 | char *kwnames[] = { | |
27755 | (char *) "self", NULL | |
27756 | }; | |
27757 | ||
27758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27761 | { |
27762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27763 | result = (bool)(arg1)->Layout(); | |
27764 | ||
27765 | wxPyEndAllowThreads(__tstate); | |
27766 | if (PyErr_Occurred()) SWIG_fail; | |
27767 | } | |
4f89f6a3 RD |
27768 | { |
27769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27770 | } | |
d14a1e28 RD |
27771 | return resultobj; |
27772 | fail: | |
27773 | return NULL; | |
27774 | } | |
27775 | ||
27776 | ||
27777 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27778 | PyObject *resultobj; | |
27779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27780 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27781 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27782 | PyObject * obj0 = 0 ; |
27783 | PyObject * obj1 = 0 ; | |
27784 | PyObject * obj2 = 0 ; | |
27785 | char *kwnames[] = { | |
27786 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27787 | }; | |
27788 | ||
27789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27794 | if (obj2) { |
15afbcd0 RD |
27795 | arg3 = (bool) SWIG_AsBool(obj2); |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27797 | } |
27798 | { | |
27799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27800 | (arg1)->SetSizer(arg2,arg3); | |
27801 | ||
27802 | wxPyEndAllowThreads(__tstate); | |
27803 | if (PyErr_Occurred()) SWIG_fail; | |
27804 | } | |
27805 | Py_INCREF(Py_None); resultobj = Py_None; | |
27806 | return resultobj; | |
27807 | fail: | |
27808 | return NULL; | |
27809 | } | |
27810 | ||
27811 | ||
27812 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27813 | PyObject *resultobj; | |
27814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27815 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27816 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27817 | PyObject * obj0 = 0 ; |
27818 | PyObject * obj1 = 0 ; | |
27819 | PyObject * obj2 = 0 ; | |
27820 | char *kwnames[] = { | |
27821 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27822 | }; | |
27823 | ||
27824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27829 | if (obj2) { |
15afbcd0 RD |
27830 | arg3 = (bool) SWIG_AsBool(obj2); |
27831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27832 | } |
27833 | { | |
27834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27835 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27836 | ||
27837 | wxPyEndAllowThreads(__tstate); | |
27838 | if (PyErr_Occurred()) SWIG_fail; | |
27839 | } | |
27840 | Py_INCREF(Py_None); resultobj = Py_None; | |
27841 | return resultobj; | |
27842 | fail: | |
27843 | return NULL; | |
27844 | } | |
27845 | ||
27846 | ||
27847 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27848 | PyObject *resultobj; | |
27849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27850 | wxSizer *result; | |
27851 | PyObject * obj0 = 0 ; | |
27852 | char *kwnames[] = { | |
27853 | (char *) "self", NULL | |
27854 | }; | |
27855 | ||
27856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27859 | { |
27860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27861 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27862 | ||
27863 | wxPyEndAllowThreads(__tstate); | |
27864 | if (PyErr_Occurred()) SWIG_fail; | |
27865 | } | |
27866 | { | |
27867 | resultobj = wxPyMake_wxSizer(result); | |
27868 | } | |
27869 | return resultobj; | |
27870 | fail: | |
27871 | return NULL; | |
27872 | } | |
27873 | ||
27874 | ||
27875 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27876 | PyObject *resultobj; | |
27877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27878 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27879 | PyObject * obj0 = 0 ; | |
27880 | PyObject * obj1 = 0 ; | |
27881 | char *kwnames[] = { | |
27882 | (char *) "self",(char *) "sizer", NULL | |
27883 | }; | |
27884 | ||
27885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27890 | { |
27891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27892 | (arg1)->SetContainingSizer(arg2); | |
27893 | ||
27894 | wxPyEndAllowThreads(__tstate); | |
27895 | if (PyErr_Occurred()) SWIG_fail; | |
27896 | } | |
27897 | Py_INCREF(Py_None); resultobj = Py_None; | |
27898 | return resultobj; | |
27899 | fail: | |
27900 | return NULL; | |
27901 | } | |
27902 | ||
27903 | ||
27904 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27905 | PyObject *resultobj; | |
27906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27907 | wxSizer *result; | |
27908 | PyObject * obj0 = 0 ; | |
27909 | char *kwnames[] = { | |
27910 | (char *) "self", NULL | |
27911 | }; | |
27912 | ||
27913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27916 | { |
27917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27918 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27919 | ||
27920 | wxPyEndAllowThreads(__tstate); | |
27921 | if (PyErr_Occurred()) SWIG_fail; | |
27922 | } | |
27923 | { | |
27924 | resultobj = wxPyMake_wxSizer(result); | |
27925 | } | |
27926 | return resultobj; | |
27927 | fail: | |
27928 | return NULL; | |
27929 | } | |
27930 | ||
27931 | ||
a95a7133 RD |
27932 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27933 | PyObject *resultobj; | |
27934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27935 | PyObject * obj0 = 0 ; | |
27936 | char *kwnames[] = { | |
27937 | (char *) "self", NULL | |
27938 | }; | |
27939 | ||
27940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
27941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27943 | { | |
27944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27945 | (arg1)->InheritAttributes(); | |
27946 | ||
27947 | wxPyEndAllowThreads(__tstate); | |
27948 | if (PyErr_Occurred()) SWIG_fail; | |
27949 | } | |
27950 | Py_INCREF(Py_None); resultobj = Py_None; | |
27951 | return resultobj; | |
27952 | fail: | |
27953 | return NULL; | |
27954 | } | |
27955 | ||
27956 | ||
27957 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27958 | PyObject *resultobj; | |
27959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27960 | bool result; | |
27961 | PyObject * obj0 = 0 ; | |
27962 | char *kwnames[] = { | |
27963 | (char *) "self", NULL | |
27964 | }; | |
27965 | ||
27966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
27967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27969 | { | |
27970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27971 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
27972 | ||
27973 | wxPyEndAllowThreads(__tstate); | |
27974 | if (PyErr_Occurred()) SWIG_fail; | |
27975 | } | |
27976 | { | |
27977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27978 | } | |
27979 | return resultobj; | |
27980 | fail: | |
27981 | return NULL; | |
27982 | } | |
27983 | ||
27984 | ||
d14a1e28 RD |
27985 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { |
27986 | PyObject *obj; | |
27987 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27988 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27989 | Py_INCREF(obj); | |
27990 | return Py_BuildValue((char *)""); | |
27991 | } | |
27992 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27993 | PyObject *resultobj; | |
27994 | long arg1 ; | |
27995 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27996 | wxWindow *result; | |
994141e6 | 27997 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27998 | PyObject * obj1 = 0 ; |
27999 | char *kwnames[] = { | |
28000 | (char *) "id",(char *) "parent", NULL | |
28001 | }; | |
28002 | ||
994141e6 | 28003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28004 | arg1 = (long) SWIG_AsLong(obj0); |
28005 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 28006 | if (obj1) { |
15afbcd0 RD |
28007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28009 | } |
28010 | { | |
e3b71cb8 | 28011 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28013 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28014 | ||
28015 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 28016 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28017 | } |
28018 | { | |
28019 | resultobj = wxPyMake_wxObject(result); | |
28020 | } | |
28021 | return resultobj; | |
28022 | fail: | |
28023 | return NULL; | |
28024 | } | |
28025 | ||
28026 | ||
28027 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28028 | PyObject *resultobj; | |
28029 | wxString *arg1 = 0 ; | |
28030 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28031 | wxWindow *result; | |
e811c8ce | 28032 | bool temp1 = False ; |
d14a1e28 RD |
28033 | PyObject * obj0 = 0 ; |
28034 | PyObject * obj1 = 0 ; | |
28035 | char *kwnames[] = { | |
28036 | (char *) "name",(char *) "parent", NULL | |
28037 | }; | |
28038 | ||
28039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28040 | { | |
28041 | arg1 = wxString_in_helper(obj0); | |
28042 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28043 | temp1 = True; |
d14a1e28 RD |
28044 | } |
28045 | if (obj1) { | |
15afbcd0 RD |
28046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28048 | } |
28049 | { | |
e3b71cb8 | 28050 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28052 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28053 | ||
28054 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 28055 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28056 | } |
28057 | { | |
28058 | resultobj = wxPyMake_wxObject(result); | |
28059 | } | |
28060 | { | |
28061 | if (temp1) | |
28062 | delete arg1; | |
28063 | } | |
28064 | return resultobj; | |
28065 | fail: | |
28066 | { | |
28067 | if (temp1) | |
28068 | delete arg1; | |
28069 | } | |
28070 | return NULL; | |
28071 | } | |
28072 | ||
28073 | ||
28074 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28075 | PyObject *resultobj; | |
28076 | wxString *arg1 = 0 ; | |
28077 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28078 | wxWindow *result; | |
e811c8ce | 28079 | bool temp1 = False ; |
d14a1e28 RD |
28080 | PyObject * obj0 = 0 ; |
28081 | PyObject * obj1 = 0 ; | |
28082 | char *kwnames[] = { | |
28083 | (char *) "label",(char *) "parent", NULL | |
28084 | }; | |
28085 | ||
28086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28087 | { | |
28088 | arg1 = wxString_in_helper(obj0); | |
28089 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28090 | temp1 = True; |
d14a1e28 RD |
28091 | } |
28092 | if (obj1) { | |
15afbcd0 RD |
28093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28095 | } |
28096 | { | |
e3b71cb8 | 28097 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28099 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28100 | ||
28101 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 28102 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28103 | } |
28104 | { | |
28105 | resultobj = wxPyMake_wxObject(result); | |
28106 | } | |
28107 | { | |
28108 | if (temp1) | |
28109 | delete arg1; | |
28110 | } | |
28111 | return resultobj; | |
28112 | fail: | |
28113 | { | |
28114 | if (temp1) | |
28115 | delete arg1; | |
28116 | } | |
28117 | return NULL; | |
28118 | } | |
28119 | ||
28120 | ||
28121 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28122 | PyObject *resultobj; | |
4276dc52 RD |
28123 | wxWindow *arg1 = (wxWindow *) 0 ; |
28124 | unsigned long arg2 ; | |
d14a1e28 RD |
28125 | wxWindow *result; |
28126 | PyObject * obj0 = 0 ; | |
4276dc52 | 28127 | PyObject * obj1 = 0 ; |
d14a1e28 | 28128 | char *kwnames[] = { |
4276dc52 | 28129 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
28130 | }; |
28131 | ||
4276dc52 RD |
28132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
28133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28135 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
15afbcd0 | 28136 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28137 | { |
28138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 28139 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
28140 | |
28141 | wxPyEndAllowThreads(__tstate); | |
28142 | if (PyErr_Occurred()) SWIG_fail; | |
28143 | } | |
28144 | { | |
28145 | resultobj = wxPyMake_wxObject(result); | |
28146 | } | |
28147 | return resultobj; | |
28148 | fail: | |
28149 | return NULL; | |
28150 | } | |
28151 | ||
28152 | ||
28153 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28154 | PyObject *resultobj; | |
28155 | wxValidator *result; | |
28156 | char *kwnames[] = { | |
28157 | NULL | |
28158 | }; | |
28159 | ||
28160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28161 | { | |
28162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28163 | result = (wxValidator *)new wxValidator(); | |
28164 | ||
28165 | wxPyEndAllowThreads(__tstate); | |
28166 | if (PyErr_Occurred()) SWIG_fail; | |
28167 | } | |
28168 | { | |
28169 | resultobj = wxPyMake_wxObject(result); | |
28170 | } | |
28171 | return resultobj; | |
28172 | fail: | |
28173 | return NULL; | |
28174 | } | |
28175 | ||
28176 | ||
28177 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28178 | PyObject *resultobj; | |
28179 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28180 | wxValidator *result; | |
28181 | PyObject * obj0 = 0 ; | |
28182 | char *kwnames[] = { | |
28183 | (char *) "self", NULL | |
28184 | }; | |
28185 | ||
28186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28189 | { |
28190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28191 | result = (wxValidator *)(arg1)->Clone(); | |
28192 | ||
28193 | wxPyEndAllowThreads(__tstate); | |
28194 | if (PyErr_Occurred()) SWIG_fail; | |
28195 | } | |
28196 | { | |
28197 | resultobj = wxPyMake_wxObject(result); | |
28198 | } | |
28199 | return resultobj; | |
28200 | fail: | |
28201 | return NULL; | |
28202 | } | |
28203 | ||
28204 | ||
28205 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28206 | PyObject *resultobj; | |
28207 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28208 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28209 | bool result; | |
28210 | PyObject * obj0 = 0 ; | |
28211 | PyObject * obj1 = 0 ; | |
28212 | char *kwnames[] = { | |
28213 | (char *) "self",(char *) "parent", NULL | |
28214 | }; | |
28215 | ||
28216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28221 | { |
28222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28223 | result = (bool)(arg1)->Validate(arg2); | |
28224 | ||
28225 | wxPyEndAllowThreads(__tstate); | |
28226 | if (PyErr_Occurred()) SWIG_fail; | |
28227 | } | |
4f89f6a3 RD |
28228 | { |
28229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28230 | } | |
d14a1e28 RD |
28231 | return resultobj; |
28232 | fail: | |
28233 | return NULL; | |
28234 | } | |
28235 | ||
28236 | ||
28237 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28238 | PyObject *resultobj; | |
28239 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28240 | bool result; | |
28241 | PyObject * obj0 = 0 ; | |
28242 | char *kwnames[] = { | |
28243 | (char *) "self", NULL | |
28244 | }; | |
28245 | ||
28246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28249 | { |
28250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28251 | result = (bool)(arg1)->TransferToWindow(); | |
28252 | ||
28253 | wxPyEndAllowThreads(__tstate); | |
28254 | if (PyErr_Occurred()) SWIG_fail; | |
28255 | } | |
4f89f6a3 RD |
28256 | { |
28257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28258 | } | |
d14a1e28 RD |
28259 | return resultobj; |
28260 | fail: | |
28261 | return NULL; | |
28262 | } | |
28263 | ||
28264 | ||
28265 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28266 | PyObject *resultobj; | |
28267 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28268 | bool result; | |
28269 | PyObject * obj0 = 0 ; | |
28270 | char *kwnames[] = { | |
28271 | (char *) "self", NULL | |
28272 | }; | |
28273 | ||
28274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28277 | { |
28278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28279 | result = (bool)(arg1)->TransferFromWindow(); | |
28280 | ||
28281 | wxPyEndAllowThreads(__tstate); | |
28282 | if (PyErr_Occurred()) SWIG_fail; | |
28283 | } | |
4f89f6a3 RD |
28284 | { |
28285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28286 | } | |
d14a1e28 RD |
28287 | return resultobj; |
28288 | fail: | |
28289 | return NULL; | |
28290 | } | |
28291 | ||
28292 | ||
28293 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28294 | PyObject *resultobj; | |
28295 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28296 | wxWindow *result; | |
28297 | PyObject * obj0 = 0 ; | |
28298 | char *kwnames[] = { | |
28299 | (char *) "self", NULL | |
28300 | }; | |
28301 | ||
28302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28305 | { |
28306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28307 | result = (wxWindow *)(arg1)->GetWindow(); | |
28308 | ||
28309 | wxPyEndAllowThreads(__tstate); | |
28310 | if (PyErr_Occurred()) SWIG_fail; | |
28311 | } | |
28312 | { | |
28313 | resultobj = wxPyMake_wxObject(result); | |
28314 | } | |
28315 | return resultobj; | |
28316 | fail: | |
28317 | return NULL; | |
28318 | } | |
28319 | ||
28320 | ||
28321 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28322 | PyObject *resultobj; | |
28323 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28324 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28325 | PyObject * obj0 = 0 ; | |
28326 | PyObject * obj1 = 0 ; | |
28327 | char *kwnames[] = { | |
28328 | (char *) "self",(char *) "window", NULL | |
28329 | }; | |
28330 | ||
28331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28336 | { |
28337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28338 | (arg1)->SetWindow(arg2); | |
28339 | ||
28340 | wxPyEndAllowThreads(__tstate); | |
28341 | if (PyErr_Occurred()) SWIG_fail; | |
28342 | } | |
28343 | Py_INCREF(Py_None); resultobj = Py_None; | |
28344 | return resultobj; | |
28345 | fail: | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
28350 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28351 | PyObject *resultobj; | |
28352 | bool result; | |
28353 | char *kwnames[] = { | |
28354 | NULL | |
28355 | }; | |
28356 | ||
28357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28358 | { | |
28359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28360 | result = (bool)wxValidator::IsSilent(); | |
28361 | ||
28362 | wxPyEndAllowThreads(__tstate); | |
28363 | if (PyErr_Occurred()) SWIG_fail; | |
28364 | } | |
4f89f6a3 RD |
28365 | { |
28366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28367 | } | |
d14a1e28 RD |
28368 | return resultobj; |
28369 | fail: | |
28370 | return NULL; | |
28371 | } | |
28372 | ||
28373 | ||
28374 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28375 | PyObject *resultobj; | |
e811c8ce | 28376 | int arg1 = (int) True ; |
994141e6 | 28377 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28378 | char *kwnames[] = { |
28379 | (char *) "doIt", NULL | |
28380 | }; | |
28381 | ||
994141e6 RD |
28382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
28383 | if (obj0) { | |
15afbcd0 RD |
28384 | arg1 = (int) SWIG_AsInt(obj0); |
28385 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28386 | } |
d14a1e28 RD |
28387 | { |
28388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28389 | wxValidator::SetBellOnError(arg1); | |
28390 | ||
28391 | wxPyEndAllowThreads(__tstate); | |
28392 | if (PyErr_Occurred()) SWIG_fail; | |
28393 | } | |
28394 | Py_INCREF(Py_None); resultobj = Py_None; | |
28395 | return resultobj; | |
28396 | fail: | |
28397 | return NULL; | |
28398 | } | |
28399 | ||
28400 | ||
28401 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28402 | PyObject *obj; | |
28403 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28404 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28405 | Py_INCREF(obj); | |
28406 | return Py_BuildValue((char *)""); | |
28407 | } | |
28408 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28409 | PyObject *resultobj; | |
28410 | wxPyValidator *result; | |
28411 | char *kwnames[] = { | |
28412 | NULL | |
28413 | }; | |
28414 | ||
28415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28416 | { | |
28417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28418 | result = (wxPyValidator *)new wxPyValidator(); | |
28419 | ||
28420 | wxPyEndAllowThreads(__tstate); | |
28421 | if (PyErr_Occurred()) SWIG_fail; | |
28422 | } | |
15afbcd0 | 28423 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
28424 | return resultobj; |
28425 | fail: | |
28426 | return NULL; | |
28427 | } | |
28428 | ||
28429 | ||
28430 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28431 | PyObject *resultobj; | |
28432 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28433 | PyObject *arg2 = (PyObject *) 0 ; | |
28434 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 28435 | int arg4 = (int) True ; |
d14a1e28 RD |
28436 | PyObject * obj0 = 0 ; |
28437 | PyObject * obj1 = 0 ; | |
28438 | PyObject * obj2 = 0 ; | |
994141e6 | 28439 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
28440 | char *kwnames[] = { |
28441 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28442 | }; | |
28443 | ||
994141e6 | 28444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
28446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28447 | arg2 = obj1; |
28448 | arg3 = obj2; | |
994141e6 | 28449 | if (obj3) { |
15afbcd0 RD |
28450 | arg4 = (int) SWIG_AsInt(obj3); |
28451 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28452 | } |
d14a1e28 RD |
28453 | { |
28454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28455 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28456 | ||
28457 | wxPyEndAllowThreads(__tstate); | |
28458 | if (PyErr_Occurred()) SWIG_fail; | |
28459 | } | |
28460 | Py_INCREF(Py_None); resultobj = Py_None; | |
28461 | return resultobj; | |
28462 | fail: | |
28463 | return NULL; | |
28464 | } | |
28465 | ||
28466 | ||
28467 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28468 | PyObject *obj; | |
28469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28470 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28471 | Py_INCREF(obj); | |
28472 | return Py_BuildValue((char *)""); | |
28473 | } | |
28474 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28475 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28476 | return 1; | |
28477 | } | |
28478 | ||
28479 | ||
28480 | static PyObject *_wrap_DefaultValidator_get() { | |
28481 | PyObject *pyobj; | |
28482 | ||
15afbcd0 | 28483 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
28484 | return pyobj; |
28485 | } | |
28486 | ||
28487 | ||
28488 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28489 | PyObject *resultobj; | |
28490 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28491 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28492 | long arg2 = (long) 0 ; | |
28493 | wxMenu *result; | |
e811c8ce | 28494 | bool temp1 = False ; |
d14a1e28 | 28495 | PyObject * obj0 = 0 ; |
994141e6 | 28496 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28497 | char *kwnames[] = { |
28498 | (char *) "title",(char *) "style", NULL | |
28499 | }; | |
28500 | ||
994141e6 | 28501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
28502 | if (obj0) { |
28503 | { | |
28504 | arg1 = wxString_in_helper(obj0); | |
28505 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28506 | temp1 = True; |
d14a1e28 RD |
28507 | } |
28508 | } | |
994141e6 | 28509 | if (obj1) { |
15afbcd0 RD |
28510 | arg2 = (long) SWIG_AsLong(obj1); |
28511 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28512 | } |
d14a1e28 | 28513 | { |
e3b71cb8 | 28514 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28516 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28517 | ||
28518 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 28519 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28520 | } |
28521 | { | |
28522 | resultobj = wxPyMake_wxObject(result); | |
28523 | } | |
28524 | { | |
28525 | if (temp1) | |
28526 | delete arg1; | |
28527 | } | |
28528 | return resultobj; | |
28529 | fail: | |
28530 | { | |
28531 | if (temp1) | |
28532 | delete arg1; | |
28533 | } | |
28534 | return NULL; | |
28535 | } | |
28536 | ||
28537 | ||
28538 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28539 | PyObject *resultobj; | |
28540 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28541 | int arg2 ; | |
28542 | wxString *arg3 = 0 ; | |
28543 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28544 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28545 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28546 | wxMenuItem *result; |
e811c8ce RD |
28547 | bool temp3 = False ; |
28548 | bool temp4 = False ; | |
d14a1e28 | 28549 | PyObject * obj0 = 0 ; |
994141e6 | 28550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28551 | PyObject * obj2 = 0 ; |
28552 | PyObject * obj3 = 0 ; | |
994141e6 | 28553 | PyObject * obj4 = 0 ; |
d14a1e28 | 28554 | char *kwnames[] = { |
242b7b46 | 28555 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28556 | }; |
28557 | ||
994141e6 | 28558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28561 | arg2 = (int) SWIG_AsInt(obj1); | |
28562 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28563 | { |
28564 | arg3 = wxString_in_helper(obj2); | |
28565 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28566 | temp3 = True; |
d14a1e28 RD |
28567 | } |
28568 | if (obj3) { | |
28569 | { | |
28570 | arg4 = wxString_in_helper(obj3); | |
28571 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28572 | temp4 = True; |
d14a1e28 RD |
28573 | } |
28574 | } | |
994141e6 | 28575 | if (obj4) { |
15afbcd0 RD |
28576 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28577 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28578 | } |
d14a1e28 RD |
28579 | { |
28580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28581 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28582 | |
28583 | wxPyEndAllowThreads(__tstate); | |
28584 | if (PyErr_Occurred()) SWIG_fail; | |
28585 | } | |
a41e16b6 RD |
28586 | { |
28587 | resultobj = wxPyMake_wxObject(result); | |
28588 | } | |
d14a1e28 RD |
28589 | { |
28590 | if (temp3) | |
28591 | delete arg3; | |
28592 | } | |
28593 | { | |
28594 | if (temp4) | |
28595 | delete arg4; | |
28596 | } | |
28597 | return resultobj; | |
28598 | fail: | |
28599 | { | |
28600 | if (temp3) | |
28601 | delete arg3; | |
28602 | } | |
28603 | { | |
28604 | if (temp4) | |
28605 | delete arg4; | |
28606 | } | |
28607 | return NULL; | |
28608 | } | |
28609 | ||
28610 | ||
28611 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28612 | PyObject *resultobj; | |
28613 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 28614 | wxMenuItem *result; |
d14a1e28 RD |
28615 | PyObject * obj0 = 0 ; |
28616 | char *kwnames[] = { | |
28617 | (char *) "self", NULL | |
28618 | }; | |
28619 | ||
28620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28623 | { |
28624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28625 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
28626 | |
28627 | wxPyEndAllowThreads(__tstate); | |
28628 | if (PyErr_Occurred()) SWIG_fail; | |
28629 | } | |
a41e16b6 RD |
28630 | { |
28631 | resultobj = wxPyMake_wxObject(result); | |
28632 | } | |
d14a1e28 RD |
28633 | return resultobj; |
28634 | fail: | |
28635 | return NULL; | |
28636 | } | |
28637 | ||
28638 | ||
28639 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28640 | PyObject *resultobj; | |
28641 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28642 | int arg2 ; | |
28643 | wxString *arg3 = 0 ; | |
28644 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28645 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28646 | wxMenuItem *result; |
e811c8ce RD |
28647 | bool temp3 = False ; |
28648 | bool temp4 = False ; | |
d14a1e28 | 28649 | PyObject * obj0 = 0 ; |
994141e6 | 28650 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28651 | PyObject * obj2 = 0 ; |
28652 | PyObject * obj3 = 0 ; | |
28653 | char *kwnames[] = { | |
242b7b46 | 28654 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28655 | }; |
28656 | ||
994141e6 | 28657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28660 | arg2 = (int) SWIG_AsInt(obj1); | |
28661 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28662 | { |
28663 | arg3 = wxString_in_helper(obj2); | |
28664 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28665 | temp3 = True; |
d14a1e28 RD |
28666 | } |
28667 | if (obj3) { | |
28668 | { | |
28669 | arg4 = wxString_in_helper(obj3); | |
28670 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28671 | temp4 = True; |
d14a1e28 RD |
28672 | } |
28673 | } | |
28674 | { | |
28675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28676 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28677 | |
28678 | wxPyEndAllowThreads(__tstate); | |
28679 | if (PyErr_Occurred()) SWIG_fail; | |
28680 | } | |
a41e16b6 RD |
28681 | { |
28682 | resultobj = wxPyMake_wxObject(result); | |
28683 | } | |
d14a1e28 RD |
28684 | { |
28685 | if (temp3) | |
28686 | delete arg3; | |
28687 | } | |
28688 | { | |
28689 | if (temp4) | |
28690 | delete arg4; | |
28691 | } | |
28692 | return resultobj; | |
28693 | fail: | |
28694 | { | |
28695 | if (temp3) | |
28696 | delete arg3; | |
28697 | } | |
28698 | { | |
28699 | if (temp4) | |
28700 | delete arg4; | |
28701 | } | |
28702 | return NULL; | |
28703 | } | |
28704 | ||
28705 | ||
28706 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28707 | PyObject *resultobj; | |
28708 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28709 | int arg2 ; | |
28710 | wxString *arg3 = 0 ; | |
28711 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28712 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28713 | wxMenuItem *result; |
e811c8ce RD |
28714 | bool temp3 = False ; |
28715 | bool temp4 = False ; | |
d14a1e28 | 28716 | PyObject * obj0 = 0 ; |
994141e6 | 28717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28718 | PyObject * obj2 = 0 ; |
28719 | PyObject * obj3 = 0 ; | |
28720 | char *kwnames[] = { | |
242b7b46 | 28721 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28722 | }; |
28723 | ||
994141e6 | 28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | arg2 = (int) SWIG_AsInt(obj1); | |
28728 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28729 | { |
28730 | arg3 = wxString_in_helper(obj2); | |
28731 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28732 | temp3 = True; |
d14a1e28 RD |
28733 | } |
28734 | if (obj3) { | |
28735 | { | |
28736 | arg4 = wxString_in_helper(obj3); | |
28737 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28738 | temp4 = True; |
d14a1e28 RD |
28739 | } |
28740 | } | |
28741 | { | |
28742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28743 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28744 | |
28745 | wxPyEndAllowThreads(__tstate); | |
28746 | if (PyErr_Occurred()) SWIG_fail; | |
28747 | } | |
a41e16b6 RD |
28748 | { |
28749 | resultobj = wxPyMake_wxObject(result); | |
28750 | } | |
d14a1e28 RD |
28751 | { |
28752 | if (temp3) | |
28753 | delete arg3; | |
28754 | } | |
28755 | { | |
28756 | if (temp4) | |
28757 | delete arg4; | |
28758 | } | |
28759 | return resultobj; | |
28760 | fail: | |
28761 | { | |
28762 | if (temp3) | |
28763 | delete arg3; | |
28764 | } | |
28765 | { | |
28766 | if (temp4) | |
28767 | delete arg4; | |
28768 | } | |
28769 | return NULL; | |
28770 | } | |
28771 | ||
28772 | ||
28773 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28774 | PyObject *resultobj; | |
28775 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28776 | int arg2 ; | |
28777 | wxString *arg3 = 0 ; | |
28778 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28779 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28780 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 28781 | wxMenuItem *result; |
e811c8ce RD |
28782 | bool temp3 = False ; |
28783 | bool temp5 = False ; | |
d14a1e28 | 28784 | PyObject * obj0 = 0 ; |
994141e6 | 28785 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28786 | PyObject * obj2 = 0 ; |
28787 | PyObject * obj3 = 0 ; | |
28788 | PyObject * obj4 = 0 ; | |
28789 | char *kwnames[] = { | |
242b7b46 | 28790 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28791 | }; |
28792 | ||
994141e6 | 28793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28796 | arg2 = (int) SWIG_AsInt(obj1); | |
28797 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28798 | { |
28799 | arg3 = wxString_in_helper(obj2); | |
28800 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28801 | temp3 = True; |
d14a1e28 | 28802 | } |
15afbcd0 RD |
28803 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28805 | if (obj4) { |
28806 | { | |
28807 | arg5 = wxString_in_helper(obj4); | |
28808 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28809 | temp5 = True; |
d14a1e28 RD |
28810 | } |
28811 | } | |
28812 | { | |
28813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28814 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28815 | |
28816 | wxPyEndAllowThreads(__tstate); | |
28817 | if (PyErr_Occurred()) SWIG_fail; | |
28818 | } | |
a41e16b6 RD |
28819 | { |
28820 | resultobj = wxPyMake_wxObject(result); | |
28821 | } | |
d14a1e28 RD |
28822 | { |
28823 | if (temp3) | |
28824 | delete arg3; | |
28825 | } | |
28826 | { | |
28827 | if (temp5) | |
28828 | delete arg5; | |
28829 | } | |
28830 | return resultobj; | |
28831 | fail: | |
28832 | { | |
28833 | if (temp3) | |
28834 | delete arg3; | |
28835 | } | |
28836 | { | |
28837 | if (temp5) | |
28838 | delete arg5; | |
28839 | } | |
28840 | return NULL; | |
28841 | } | |
28842 | ||
28843 | ||
28844 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28845 | PyObject *resultobj; | |
28846 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28847 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28848 | wxMenuItem *result; |
d14a1e28 RD |
28849 | PyObject * obj0 = 0 ; |
28850 | PyObject * obj1 = 0 ; | |
28851 | char *kwnames[] = { | |
28852 | (char *) "self",(char *) "item", NULL | |
28853 | }; | |
28854 | ||
28855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28860 | { |
28861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28862 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
28863 | |
28864 | wxPyEndAllowThreads(__tstate); | |
28865 | if (PyErr_Occurred()) SWIG_fail; | |
28866 | } | |
a41e16b6 RD |
28867 | { |
28868 | resultobj = wxPyMake_wxObject(result); | |
28869 | } | |
d14a1e28 RD |
28870 | return resultobj; |
28871 | fail: | |
28872 | return NULL; | |
28873 | } | |
28874 | ||
28875 | ||
28876 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28877 | PyObject *resultobj; | |
28878 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28879 | PyObject * obj0 = 0 ; | |
28880 | char *kwnames[] = { | |
28881 | (char *) "self", NULL | |
28882 | }; | |
28883 | ||
28884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28887 | { |
28888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28889 | (arg1)->Break(); | |
28890 | ||
28891 | wxPyEndAllowThreads(__tstate); | |
28892 | if (PyErr_Occurred()) SWIG_fail; | |
28893 | } | |
28894 | Py_INCREF(Py_None); resultobj = Py_None; | |
28895 | return resultobj; | |
28896 | fail: | |
28897 | return NULL; | |
28898 | } | |
28899 | ||
28900 | ||
28901 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28902 | PyObject *resultobj; | |
28903 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28904 | size_t arg2 ; | |
28905 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28906 | wxMenuItem *result; |
d14a1e28 RD |
28907 | PyObject * obj0 = 0 ; |
28908 | PyObject * obj1 = 0 ; | |
28909 | PyObject * obj2 = 0 ; | |
28910 | char *kwnames[] = { | |
28911 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28912 | }; | |
28913 | ||
28914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28917 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28918 | if (PyErr_Occurred()) SWIG_fail; | |
28919 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28921 | { |
28922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28923 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
28924 | |
28925 | wxPyEndAllowThreads(__tstate); | |
28926 | if (PyErr_Occurred()) SWIG_fail; | |
28927 | } | |
a41e16b6 RD |
28928 | { |
28929 | resultobj = wxPyMake_wxObject(result); | |
28930 | } | |
d14a1e28 RD |
28931 | return resultobj; |
28932 | fail: | |
28933 | return NULL; | |
28934 | } | |
28935 | ||
28936 | ||
28937 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28938 | PyObject *resultobj; | |
28939 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28940 | size_t arg2 ; | |
28941 | int arg3 ; | |
28942 | wxString *arg4 = 0 ; | |
28943 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28944 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28945 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28946 | wxMenuItem *result; |
e811c8ce RD |
28947 | bool temp4 = False ; |
28948 | bool temp5 = False ; | |
d14a1e28 RD |
28949 | PyObject * obj0 = 0 ; |
28950 | PyObject * obj1 = 0 ; | |
994141e6 | 28951 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28952 | PyObject * obj3 = 0 ; |
28953 | PyObject * obj4 = 0 ; | |
994141e6 | 28954 | PyObject * obj5 = 0 ; |
d14a1e28 | 28955 | char *kwnames[] = { |
242b7b46 | 28956 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28957 | }; |
28958 | ||
994141e6 | 28959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28962 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28963 | if (PyErr_Occurred()) SWIG_fail; | |
28964 | arg3 = (int) SWIG_AsInt(obj2); | |
28965 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28966 | { |
28967 | arg4 = wxString_in_helper(obj3); | |
28968 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28969 | temp4 = True; |
d14a1e28 RD |
28970 | } |
28971 | if (obj4) { | |
28972 | { | |
28973 | arg5 = wxString_in_helper(obj4); | |
28974 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28975 | temp5 = True; |
d14a1e28 RD |
28976 | } |
28977 | } | |
994141e6 | 28978 | if (obj5) { |
15afbcd0 RD |
28979 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28981 | } |
d14a1e28 RD |
28982 | { |
28983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28984 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
28985 | |
28986 | wxPyEndAllowThreads(__tstate); | |
28987 | if (PyErr_Occurred()) SWIG_fail; | |
28988 | } | |
a41e16b6 RD |
28989 | { |
28990 | resultobj = wxPyMake_wxObject(result); | |
28991 | } | |
d14a1e28 RD |
28992 | { |
28993 | if (temp4) | |
28994 | delete arg4; | |
28995 | } | |
28996 | { | |
28997 | if (temp5) | |
28998 | delete arg5; | |
28999 | } | |
29000 | return resultobj; | |
29001 | fail: | |
29002 | { | |
29003 | if (temp4) | |
29004 | delete arg4; | |
29005 | } | |
29006 | { | |
29007 | if (temp5) | |
29008 | delete arg5; | |
29009 | } | |
29010 | return NULL; | |
29011 | } | |
29012 | ||
29013 | ||
29014 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29015 | PyObject *resultobj; | |
29016 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29017 | size_t arg2 ; | |
a41e16b6 | 29018 | wxMenuItem *result; |
d14a1e28 RD |
29019 | PyObject * obj0 = 0 ; |
29020 | PyObject * obj1 = 0 ; | |
29021 | char *kwnames[] = { | |
29022 | (char *) "self",(char *) "pos", NULL | |
29023 | }; | |
29024 | ||
29025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29028 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29030 | { |
29031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29032 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
29033 | |
29034 | wxPyEndAllowThreads(__tstate); | |
29035 | if (PyErr_Occurred()) SWIG_fail; | |
29036 | } | |
a41e16b6 RD |
29037 | { |
29038 | resultobj = wxPyMake_wxObject(result); | |
29039 | } | |
d14a1e28 RD |
29040 | return resultobj; |
29041 | fail: | |
29042 | return NULL; | |
29043 | } | |
29044 | ||
29045 | ||
29046 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29047 | PyObject *resultobj; | |
29048 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29049 | size_t arg2 ; | |
29050 | int arg3 ; | |
29051 | wxString *arg4 = 0 ; | |
29052 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29053 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29054 | wxMenuItem *result; |
e811c8ce RD |
29055 | bool temp4 = False ; |
29056 | bool temp5 = False ; | |
d14a1e28 RD |
29057 | PyObject * obj0 = 0 ; |
29058 | PyObject * obj1 = 0 ; | |
994141e6 | 29059 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29060 | PyObject * obj3 = 0 ; |
29061 | PyObject * obj4 = 0 ; | |
29062 | char *kwnames[] = { | |
242b7b46 | 29063 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29064 | }; |
29065 | ||
994141e6 | 29066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29069 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29070 | if (PyErr_Occurred()) SWIG_fail; | |
29071 | arg3 = (int) SWIG_AsInt(obj2); | |
29072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29073 | { |
29074 | arg4 = wxString_in_helper(obj3); | |
29075 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29076 | temp4 = True; |
d14a1e28 RD |
29077 | } |
29078 | if (obj4) { | |
29079 | { | |
29080 | arg5 = wxString_in_helper(obj4); | |
29081 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29082 | temp5 = True; |
d14a1e28 RD |
29083 | } |
29084 | } | |
29085 | { | |
29086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29087 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29088 | |
29089 | wxPyEndAllowThreads(__tstate); | |
29090 | if (PyErr_Occurred()) SWIG_fail; | |
29091 | } | |
a41e16b6 RD |
29092 | { |
29093 | resultobj = wxPyMake_wxObject(result); | |
29094 | } | |
d14a1e28 RD |
29095 | { |
29096 | if (temp4) | |
29097 | delete arg4; | |
29098 | } | |
29099 | { | |
29100 | if (temp5) | |
29101 | delete arg5; | |
29102 | } | |
29103 | return resultobj; | |
29104 | fail: | |
29105 | { | |
29106 | if (temp4) | |
29107 | delete arg4; | |
29108 | } | |
29109 | { | |
29110 | if (temp5) | |
29111 | delete arg5; | |
29112 | } | |
29113 | return NULL; | |
29114 | } | |
29115 | ||
29116 | ||
29117 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29118 | PyObject *resultobj; | |
29119 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29120 | size_t arg2 ; | |
29121 | int arg3 ; | |
29122 | wxString *arg4 = 0 ; | |
29123 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29124 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29125 | wxMenuItem *result; |
e811c8ce RD |
29126 | bool temp4 = False ; |
29127 | bool temp5 = False ; | |
d14a1e28 RD |
29128 | PyObject * obj0 = 0 ; |
29129 | PyObject * obj1 = 0 ; | |
994141e6 | 29130 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29131 | PyObject * obj3 = 0 ; |
29132 | PyObject * obj4 = 0 ; | |
29133 | char *kwnames[] = { | |
242b7b46 | 29134 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29135 | }; |
29136 | ||
994141e6 | 29137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29140 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29141 | if (PyErr_Occurred()) SWIG_fail; | |
29142 | arg3 = (int) SWIG_AsInt(obj2); | |
29143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29144 | { |
29145 | arg4 = wxString_in_helper(obj3); | |
29146 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29147 | temp4 = True; |
d14a1e28 RD |
29148 | } |
29149 | if (obj4) { | |
29150 | { | |
29151 | arg5 = wxString_in_helper(obj4); | |
29152 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29153 | temp5 = True; |
d14a1e28 RD |
29154 | } |
29155 | } | |
29156 | { | |
29157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29158 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29159 | |
29160 | wxPyEndAllowThreads(__tstate); | |
29161 | if (PyErr_Occurred()) SWIG_fail; | |
29162 | } | |
a41e16b6 RD |
29163 | { |
29164 | resultobj = wxPyMake_wxObject(result); | |
29165 | } | |
d14a1e28 RD |
29166 | { |
29167 | if (temp4) | |
29168 | delete arg4; | |
29169 | } | |
29170 | { | |
29171 | if (temp5) | |
29172 | delete arg5; | |
29173 | } | |
29174 | return resultobj; | |
29175 | fail: | |
29176 | { | |
29177 | if (temp4) | |
29178 | delete arg4; | |
29179 | } | |
29180 | { | |
29181 | if (temp5) | |
29182 | delete arg5; | |
29183 | } | |
29184 | return NULL; | |
29185 | } | |
29186 | ||
29187 | ||
29188 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29189 | PyObject *resultobj; | |
29190 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29191 | size_t arg2 ; | |
29192 | int arg3 ; | |
29193 | wxString *arg4 = 0 ; | |
29194 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29195 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29196 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 29197 | wxMenuItem *result; |
e811c8ce RD |
29198 | bool temp4 = False ; |
29199 | bool temp6 = False ; | |
d14a1e28 RD |
29200 | PyObject * obj0 = 0 ; |
29201 | PyObject * obj1 = 0 ; | |
994141e6 | 29202 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29203 | PyObject * obj3 = 0 ; |
29204 | PyObject * obj4 = 0 ; | |
29205 | PyObject * obj5 = 0 ; | |
29206 | char *kwnames[] = { | |
242b7b46 | 29207 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29208 | }; |
29209 | ||
994141e6 | 29210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29213 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29214 | if (PyErr_Occurred()) SWIG_fail; | |
29215 | arg3 = (int) SWIG_AsInt(obj2); | |
29216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29217 | { |
29218 | arg4 = wxString_in_helper(obj3); | |
29219 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29220 | temp4 = True; |
d14a1e28 | 29221 | } |
15afbcd0 RD |
29222 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
29223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29224 | if (obj5) { |
29225 | { | |
29226 | arg6 = wxString_in_helper(obj5); | |
29227 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 29228 | temp6 = True; |
d14a1e28 RD |
29229 | } |
29230 | } | |
29231 | { | |
29232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29233 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
29234 | |
29235 | wxPyEndAllowThreads(__tstate); | |
29236 | if (PyErr_Occurred()) SWIG_fail; | |
29237 | } | |
a41e16b6 RD |
29238 | { |
29239 | resultobj = wxPyMake_wxObject(result); | |
29240 | } | |
d14a1e28 RD |
29241 | { |
29242 | if (temp4) | |
29243 | delete arg4; | |
29244 | } | |
29245 | { | |
29246 | if (temp6) | |
29247 | delete arg6; | |
29248 | } | |
29249 | return resultobj; | |
29250 | fail: | |
29251 | { | |
29252 | if (temp4) | |
29253 | delete arg4; | |
29254 | } | |
29255 | { | |
29256 | if (temp6) | |
29257 | delete arg6; | |
29258 | } | |
29259 | return NULL; | |
29260 | } | |
29261 | ||
29262 | ||
29263 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29264 | PyObject *resultobj; | |
29265 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29266 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29267 | wxMenuItem *result; |
d14a1e28 RD |
29268 | PyObject * obj0 = 0 ; |
29269 | PyObject * obj1 = 0 ; | |
29270 | char *kwnames[] = { | |
29271 | (char *) "self",(char *) "item", NULL | |
29272 | }; | |
29273 | ||
29274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29279 | { |
29280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29281 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
29282 | |
29283 | wxPyEndAllowThreads(__tstate); | |
29284 | if (PyErr_Occurred()) SWIG_fail; | |
29285 | } | |
a41e16b6 RD |
29286 | { |
29287 | resultobj = wxPyMake_wxObject(result); | |
29288 | } | |
d14a1e28 RD |
29289 | return resultobj; |
29290 | fail: | |
29291 | return NULL; | |
29292 | } | |
29293 | ||
29294 | ||
29295 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29296 | PyObject *resultobj; | |
29297 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29298 | int arg2 ; | |
29299 | wxString *arg3 = 0 ; | |
29300 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29301 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29302 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29303 | wxMenuItem *result; |
e811c8ce RD |
29304 | bool temp3 = False ; |
29305 | bool temp4 = False ; | |
d14a1e28 | 29306 | PyObject * obj0 = 0 ; |
994141e6 | 29307 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29308 | PyObject * obj2 = 0 ; |
29309 | PyObject * obj3 = 0 ; | |
994141e6 | 29310 | PyObject * obj4 = 0 ; |
d14a1e28 | 29311 | char *kwnames[] = { |
242b7b46 | 29312 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29313 | }; |
29314 | ||
994141e6 | 29315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29318 | arg2 = (int) SWIG_AsInt(obj1); | |
29319 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29320 | { |
29321 | arg3 = wxString_in_helper(obj2); | |
29322 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29323 | temp3 = True; |
d14a1e28 RD |
29324 | } |
29325 | if (obj3) { | |
29326 | { | |
29327 | arg4 = wxString_in_helper(obj3); | |
29328 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29329 | temp4 = True; |
d14a1e28 RD |
29330 | } |
29331 | } | |
994141e6 | 29332 | if (obj4) { |
15afbcd0 RD |
29333 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
29334 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29335 | } |
d14a1e28 RD |
29336 | { |
29337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29338 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
29339 | |
29340 | wxPyEndAllowThreads(__tstate); | |
29341 | if (PyErr_Occurred()) SWIG_fail; | |
29342 | } | |
a41e16b6 RD |
29343 | { |
29344 | resultobj = wxPyMake_wxObject(result); | |
29345 | } | |
d14a1e28 RD |
29346 | { |
29347 | if (temp3) | |
29348 | delete arg3; | |
29349 | } | |
29350 | { | |
29351 | if (temp4) | |
29352 | delete arg4; | |
29353 | } | |
29354 | return resultobj; | |
29355 | fail: | |
29356 | { | |
29357 | if (temp3) | |
29358 | delete arg3; | |
29359 | } | |
29360 | { | |
29361 | if (temp4) | |
29362 | delete arg4; | |
29363 | } | |
29364 | return NULL; | |
29365 | } | |
29366 | ||
29367 | ||
29368 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29369 | PyObject *resultobj; | |
29370 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 29371 | wxMenuItem *result; |
d14a1e28 RD |
29372 | PyObject * obj0 = 0 ; |
29373 | char *kwnames[] = { | |
29374 | (char *) "self", NULL | |
29375 | }; | |
29376 | ||
29377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29380 | { |
29381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29382 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
29383 | |
29384 | wxPyEndAllowThreads(__tstate); | |
29385 | if (PyErr_Occurred()) SWIG_fail; | |
29386 | } | |
a41e16b6 RD |
29387 | { |
29388 | resultobj = wxPyMake_wxObject(result); | |
29389 | } | |
d14a1e28 RD |
29390 | return resultobj; |
29391 | fail: | |
29392 | return NULL; | |
29393 | } | |
29394 | ||
29395 | ||
29396 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29397 | PyObject *resultobj; | |
29398 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29399 | int arg2 ; | |
29400 | wxString *arg3 = 0 ; | |
29401 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29402 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29403 | wxMenuItem *result; |
e811c8ce RD |
29404 | bool temp3 = False ; |
29405 | bool temp4 = False ; | |
d14a1e28 | 29406 | PyObject * obj0 = 0 ; |
994141e6 | 29407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29408 | PyObject * obj2 = 0 ; |
29409 | PyObject * obj3 = 0 ; | |
29410 | char *kwnames[] = { | |
242b7b46 | 29411 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29412 | }; |
29413 | ||
994141e6 | 29414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29417 | arg2 = (int) SWIG_AsInt(obj1); | |
29418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29419 | { |
29420 | arg3 = wxString_in_helper(obj2); | |
29421 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29422 | temp3 = True; |
d14a1e28 RD |
29423 | } |
29424 | if (obj3) { | |
29425 | { | |
29426 | arg4 = wxString_in_helper(obj3); | |
29427 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29428 | temp4 = True; |
d14a1e28 RD |
29429 | } |
29430 | } | |
29431 | { | |
29432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29433 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29434 | |
29435 | wxPyEndAllowThreads(__tstate); | |
29436 | if (PyErr_Occurred()) SWIG_fail; | |
29437 | } | |
a41e16b6 RD |
29438 | { |
29439 | resultobj = wxPyMake_wxObject(result); | |
29440 | } | |
d14a1e28 RD |
29441 | { |
29442 | if (temp3) | |
29443 | delete arg3; | |
29444 | } | |
29445 | { | |
29446 | if (temp4) | |
29447 | delete arg4; | |
29448 | } | |
29449 | return resultobj; | |
29450 | fail: | |
29451 | { | |
29452 | if (temp3) | |
29453 | delete arg3; | |
29454 | } | |
29455 | { | |
29456 | if (temp4) | |
29457 | delete arg4; | |
29458 | } | |
29459 | return NULL; | |
29460 | } | |
29461 | ||
29462 | ||
29463 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29464 | PyObject *resultobj; | |
29465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29466 | int arg2 ; | |
29467 | wxString *arg3 = 0 ; | |
29468 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29469 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29470 | wxMenuItem *result; |
e811c8ce RD |
29471 | bool temp3 = False ; |
29472 | bool temp4 = False ; | |
d14a1e28 | 29473 | PyObject * obj0 = 0 ; |
994141e6 | 29474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29475 | PyObject * obj2 = 0 ; |
29476 | PyObject * obj3 = 0 ; | |
29477 | char *kwnames[] = { | |
242b7b46 | 29478 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29479 | }; |
29480 | ||
994141e6 | 29481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29484 | arg2 = (int) SWIG_AsInt(obj1); | |
29485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29486 | { |
29487 | arg3 = wxString_in_helper(obj2); | |
29488 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29489 | temp3 = True; |
d14a1e28 RD |
29490 | } |
29491 | if (obj3) { | |
29492 | { | |
29493 | arg4 = wxString_in_helper(obj3); | |
29494 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29495 | temp4 = True; |
d14a1e28 RD |
29496 | } |
29497 | } | |
29498 | { | |
29499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29500 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29501 | |
29502 | wxPyEndAllowThreads(__tstate); | |
29503 | if (PyErr_Occurred()) SWIG_fail; | |
29504 | } | |
a41e16b6 RD |
29505 | { |
29506 | resultobj = wxPyMake_wxObject(result); | |
29507 | } | |
d14a1e28 RD |
29508 | { |
29509 | if (temp3) | |
29510 | delete arg3; | |
29511 | } | |
29512 | { | |
29513 | if (temp4) | |
29514 | delete arg4; | |
29515 | } | |
29516 | return resultobj; | |
29517 | fail: | |
29518 | { | |
29519 | if (temp3) | |
29520 | delete arg3; | |
29521 | } | |
29522 | { | |
29523 | if (temp4) | |
29524 | delete arg4; | |
29525 | } | |
29526 | return NULL; | |
29527 | } | |
29528 | ||
29529 | ||
29530 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29531 | PyObject *resultobj; | |
29532 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29533 | int arg2 ; | |
29534 | wxString *arg3 = 0 ; | |
29535 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29536 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29537 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29538 | wxMenuItem *result; |
e811c8ce RD |
29539 | bool temp3 = False ; |
29540 | bool temp5 = False ; | |
d14a1e28 | 29541 | PyObject * obj0 = 0 ; |
994141e6 | 29542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29543 | PyObject * obj2 = 0 ; |
29544 | PyObject * obj3 = 0 ; | |
29545 | PyObject * obj4 = 0 ; | |
29546 | char *kwnames[] = { | |
242b7b46 | 29547 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29548 | }; |
29549 | ||
994141e6 | 29550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29553 | arg2 = (int) SWIG_AsInt(obj1); | |
29554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29555 | { |
29556 | arg3 = wxString_in_helper(obj2); | |
29557 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29558 | temp3 = True; |
d14a1e28 | 29559 | } |
15afbcd0 RD |
29560 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29562 | if (obj4) { |
29563 | { | |
29564 | arg5 = wxString_in_helper(obj4); | |
29565 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29566 | temp5 = True; |
d14a1e28 RD |
29567 | } |
29568 | } | |
29569 | { | |
29570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29571 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29572 | |
29573 | wxPyEndAllowThreads(__tstate); | |
29574 | if (PyErr_Occurred()) SWIG_fail; | |
29575 | } | |
a41e16b6 RD |
29576 | { |
29577 | resultobj = wxPyMake_wxObject(result); | |
29578 | } | |
d14a1e28 RD |
29579 | { |
29580 | if (temp3) | |
29581 | delete arg3; | |
29582 | } | |
29583 | { | |
29584 | if (temp5) | |
29585 | delete arg5; | |
29586 | } | |
29587 | return resultobj; | |
29588 | fail: | |
29589 | { | |
29590 | if (temp3) | |
29591 | delete arg3; | |
29592 | } | |
29593 | { | |
29594 | if (temp5) | |
29595 | delete arg5; | |
29596 | } | |
29597 | return NULL; | |
29598 | } | |
29599 | ||
29600 | ||
29601 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29602 | PyObject *resultobj; | |
29603 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29604 | int arg2 ; | |
29605 | wxMenuItem *result; | |
29606 | PyObject * obj0 = 0 ; | |
994141e6 | 29607 | PyObject * obj1 = 0 ; |
d14a1e28 | 29608 | char *kwnames[] = { |
242b7b46 | 29609 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29610 | }; |
29611 | ||
994141e6 | 29612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29615 | arg2 = (int) SWIG_AsInt(obj1); | |
29616 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29617 | { |
29618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29619 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29620 | ||
29621 | wxPyEndAllowThreads(__tstate); | |
29622 | if (PyErr_Occurred()) SWIG_fail; | |
29623 | } | |
29624 | { | |
29625 | resultobj = wxPyMake_wxObject(result); | |
29626 | } | |
29627 | return resultobj; | |
29628 | fail: | |
29629 | return NULL; | |
29630 | } | |
29631 | ||
29632 | ||
29633 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29634 | PyObject *resultobj; | |
29635 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29636 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29637 | wxMenuItem *result; | |
29638 | PyObject * obj0 = 0 ; | |
29639 | PyObject * obj1 = 0 ; | |
29640 | char *kwnames[] = { | |
29641 | (char *) "self",(char *) "item", NULL | |
29642 | }; | |
29643 | ||
29644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29649 | { |
29650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29651 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29652 | ||
29653 | wxPyEndAllowThreads(__tstate); | |
29654 | if (PyErr_Occurred()) SWIG_fail; | |
29655 | } | |
29656 | { | |
29657 | resultobj = wxPyMake_wxObject(result); | |
29658 | } | |
29659 | return resultobj; | |
29660 | fail: | |
29661 | return NULL; | |
29662 | } | |
29663 | ||
29664 | ||
29665 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29666 | PyObject *resultobj; | |
29667 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29668 | int arg2 ; | |
29669 | bool result; | |
29670 | PyObject * obj0 = 0 ; | |
994141e6 | 29671 | PyObject * obj1 = 0 ; |
d14a1e28 | 29672 | char *kwnames[] = { |
242b7b46 | 29673 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29674 | }; |
29675 | ||
994141e6 | 29676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29679 | arg2 = (int) SWIG_AsInt(obj1); | |
29680 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29681 | { |
29682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29683 | result = (bool)(arg1)->Delete(arg2); | |
29684 | ||
29685 | wxPyEndAllowThreads(__tstate); | |
29686 | if (PyErr_Occurred()) SWIG_fail; | |
29687 | } | |
4f89f6a3 RD |
29688 | { |
29689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29690 | } | |
d14a1e28 RD |
29691 | return resultobj; |
29692 | fail: | |
29693 | return NULL; | |
29694 | } | |
29695 | ||
29696 | ||
29697 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29698 | PyObject *resultobj; | |
29699 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29700 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29701 | bool result; | |
29702 | PyObject * obj0 = 0 ; | |
29703 | PyObject * obj1 = 0 ; | |
29704 | char *kwnames[] = { | |
29705 | (char *) "self",(char *) "item", NULL | |
29706 | }; | |
29707 | ||
29708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29713 | { |
29714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29715 | result = (bool)(arg1)->Delete(arg2); | |
29716 | ||
29717 | wxPyEndAllowThreads(__tstate); | |
29718 | if (PyErr_Occurred()) SWIG_fail; | |
29719 | } | |
4f89f6a3 RD |
29720 | { |
29721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29722 | } | |
d14a1e28 RD |
29723 | return resultobj; |
29724 | fail: | |
29725 | return NULL; | |
29726 | } | |
29727 | ||
29728 | ||
29729 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29730 | PyObject *resultobj; | |
29731 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29732 | PyObject * obj0 = 0 ; | |
29733 | char *kwnames[] = { | |
29734 | (char *) "self", NULL | |
29735 | }; | |
29736 | ||
29737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29740 | { |
29741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29742 | wxMenu_Destroy(arg1); | |
29743 | ||
29744 | wxPyEndAllowThreads(__tstate); | |
29745 | if (PyErr_Occurred()) SWIG_fail; | |
29746 | } | |
29747 | Py_INCREF(Py_None); resultobj = Py_None; | |
29748 | return resultobj; | |
29749 | fail: | |
29750 | return NULL; | |
29751 | } | |
29752 | ||
29753 | ||
29754 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29755 | PyObject *resultobj; | |
29756 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29757 | int arg2 ; | |
29758 | bool result; | |
29759 | PyObject * obj0 = 0 ; | |
994141e6 | 29760 | PyObject * obj1 = 0 ; |
d14a1e28 | 29761 | char *kwnames[] = { |
242b7b46 | 29762 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29763 | }; |
29764 | ||
994141e6 | 29765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29768 | arg2 = (int) SWIG_AsInt(obj1); | |
29769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29770 | { |
29771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29772 | result = (bool)(arg1)->Destroy(arg2); | |
29773 | ||
29774 | wxPyEndAllowThreads(__tstate); | |
29775 | if (PyErr_Occurred()) SWIG_fail; | |
29776 | } | |
4f89f6a3 RD |
29777 | { |
29778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29779 | } | |
d14a1e28 RD |
29780 | return resultobj; |
29781 | fail: | |
29782 | return NULL; | |
29783 | } | |
29784 | ||
29785 | ||
29786 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29787 | PyObject *resultobj; | |
29788 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29789 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29790 | bool result; | |
29791 | PyObject * obj0 = 0 ; | |
29792 | PyObject * obj1 = 0 ; | |
29793 | char *kwnames[] = { | |
29794 | (char *) "self",(char *) "item", NULL | |
29795 | }; | |
29796 | ||
29797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29802 | { |
29803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29804 | result = (bool)(arg1)->Destroy(arg2); | |
29805 | ||
29806 | wxPyEndAllowThreads(__tstate); | |
29807 | if (PyErr_Occurred()) SWIG_fail; | |
29808 | } | |
4f89f6a3 RD |
29809 | { |
29810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29811 | } | |
d14a1e28 RD |
29812 | return resultobj; |
29813 | fail: | |
29814 | return NULL; | |
29815 | } | |
29816 | ||
29817 | ||
29818 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29819 | PyObject *resultobj; | |
29820 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29821 | size_t result; | |
29822 | PyObject * obj0 = 0 ; | |
29823 | char *kwnames[] = { | |
29824 | (char *) "self", NULL | |
29825 | }; | |
29826 | ||
29827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29830 | { |
29831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29832 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29833 | ||
29834 | wxPyEndAllowThreads(__tstate); | |
29835 | if (PyErr_Occurred()) SWIG_fail; | |
29836 | } | |
15afbcd0 | 29837 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29838 | return resultobj; |
29839 | fail: | |
29840 | return NULL; | |
29841 | } | |
29842 | ||
29843 | ||
29844 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29845 | PyObject *resultobj; | |
29846 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29847 | PyObject *result; | |
29848 | PyObject * obj0 = 0 ; | |
29849 | char *kwnames[] = { | |
29850 | (char *) "self", NULL | |
29851 | }; | |
29852 | ||
29853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29856 | { |
29857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29858 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29859 | ||
29860 | wxPyEndAllowThreads(__tstate); | |
29861 | if (PyErr_Occurred()) SWIG_fail; | |
29862 | } | |
29863 | resultobj = result; | |
29864 | return resultobj; | |
29865 | fail: | |
29866 | return NULL; | |
29867 | } | |
29868 | ||
29869 | ||
29870 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29871 | PyObject *resultobj; | |
29872 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29873 | wxString *arg2 = 0 ; | |
29874 | int result; | |
e811c8ce | 29875 | bool temp2 = False ; |
d14a1e28 RD |
29876 | PyObject * obj0 = 0 ; |
29877 | PyObject * obj1 = 0 ; | |
29878 | char *kwnames[] = { | |
29879 | (char *) "self",(char *) "item", NULL | |
29880 | }; | |
29881 | ||
29882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29885 | { |
29886 | arg2 = wxString_in_helper(obj1); | |
29887 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29888 | temp2 = True; |
d14a1e28 RD |
29889 | } |
29890 | { | |
29891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29892 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29893 | ||
29894 | wxPyEndAllowThreads(__tstate); | |
29895 | if (PyErr_Occurred()) SWIG_fail; | |
29896 | } | |
15afbcd0 | 29897 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29898 | { |
29899 | if (temp2) | |
29900 | delete arg2; | |
29901 | } | |
29902 | return resultobj; | |
29903 | fail: | |
29904 | { | |
29905 | if (temp2) | |
29906 | delete arg2; | |
29907 | } | |
29908 | return NULL; | |
29909 | } | |
29910 | ||
29911 | ||
29912 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29913 | PyObject *resultobj; | |
29914 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29915 | int arg2 ; | |
29916 | wxMenuItem *result; | |
29917 | PyObject * obj0 = 0 ; | |
994141e6 | 29918 | PyObject * obj1 = 0 ; |
d14a1e28 | 29919 | char *kwnames[] = { |
242b7b46 | 29920 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29921 | }; |
29922 | ||
994141e6 | 29923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29926 | arg2 = (int) SWIG_AsInt(obj1); | |
29927 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29928 | { |
29929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29930 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29931 | ||
29932 | wxPyEndAllowThreads(__tstate); | |
29933 | if (PyErr_Occurred()) SWIG_fail; | |
29934 | } | |
29935 | { | |
29936 | resultobj = wxPyMake_wxObject(result); | |
29937 | } | |
29938 | return resultobj; | |
29939 | fail: | |
29940 | return NULL; | |
29941 | } | |
29942 | ||
29943 | ||
29944 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29945 | PyObject *resultobj; | |
29946 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29947 | size_t arg2 ; | |
29948 | wxMenuItem *result; | |
29949 | PyObject * obj0 = 0 ; | |
29950 | PyObject * obj1 = 0 ; | |
29951 | char *kwnames[] = { | |
29952 | (char *) "self",(char *) "position", NULL | |
29953 | }; | |
29954 | ||
29955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29958 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29959 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29960 | { |
29961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29962 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29963 | ||
29964 | wxPyEndAllowThreads(__tstate); | |
29965 | if (PyErr_Occurred()) SWIG_fail; | |
29966 | } | |
29967 | { | |
29968 | resultobj = wxPyMake_wxObject(result); | |
29969 | } | |
29970 | return resultobj; | |
29971 | fail: | |
29972 | return NULL; | |
29973 | } | |
29974 | ||
29975 | ||
29976 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29977 | PyObject *resultobj; | |
29978 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29979 | int arg2 ; | |
29980 | bool arg3 ; | |
29981 | PyObject * obj0 = 0 ; | |
994141e6 | 29982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29983 | PyObject * obj2 = 0 ; |
29984 | char *kwnames[] = { | |
242b7b46 | 29985 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29986 | }; |
29987 | ||
994141e6 | 29988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29991 | arg2 = (int) SWIG_AsInt(obj1); | |
29992 | if (PyErr_Occurred()) SWIG_fail; | |
29993 | arg3 = (bool) SWIG_AsBool(obj2); | |
29994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29995 | { |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | (arg1)->Enable(arg2,arg3); | |
29998 | ||
29999 | wxPyEndAllowThreads(__tstate); | |
30000 | if (PyErr_Occurred()) SWIG_fail; | |
30001 | } | |
30002 | Py_INCREF(Py_None); resultobj = Py_None; | |
30003 | return resultobj; | |
30004 | fail: | |
30005 | return NULL; | |
30006 | } | |
30007 | ||
30008 | ||
30009 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30010 | PyObject *resultobj; | |
30011 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30012 | int arg2 ; | |
30013 | bool result; | |
30014 | PyObject * obj0 = 0 ; | |
994141e6 | 30015 | PyObject * obj1 = 0 ; |
d14a1e28 | 30016 | char *kwnames[] = { |
242b7b46 | 30017 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30018 | }; |
30019 | ||
994141e6 | 30020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30023 | arg2 = (int) SWIG_AsInt(obj1); | |
30024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30025 | { |
30026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30027 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30028 | ||
30029 | wxPyEndAllowThreads(__tstate); | |
30030 | if (PyErr_Occurred()) SWIG_fail; | |
30031 | } | |
4f89f6a3 RD |
30032 | { |
30033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30034 | } | |
d14a1e28 RD |
30035 | return resultobj; |
30036 | fail: | |
30037 | return NULL; | |
30038 | } | |
30039 | ||
30040 | ||
30041 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30042 | PyObject *resultobj; | |
30043 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30044 | int arg2 ; | |
30045 | bool arg3 ; | |
30046 | PyObject * obj0 = 0 ; | |
994141e6 | 30047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30048 | PyObject * obj2 = 0 ; |
30049 | char *kwnames[] = { | |
242b7b46 | 30050 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30051 | }; |
30052 | ||
994141e6 | 30053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30056 | arg2 = (int) SWIG_AsInt(obj1); | |
30057 | if (PyErr_Occurred()) SWIG_fail; | |
30058 | arg3 = (bool) SWIG_AsBool(obj2); | |
30059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30060 | { |
30061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30062 | (arg1)->Check(arg2,arg3); | |
30063 | ||
30064 | wxPyEndAllowThreads(__tstate); | |
30065 | if (PyErr_Occurred()) SWIG_fail; | |
30066 | } | |
30067 | Py_INCREF(Py_None); resultobj = Py_None; | |
30068 | return resultobj; | |
30069 | fail: | |
30070 | return NULL; | |
30071 | } | |
30072 | ||
30073 | ||
30074 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30075 | PyObject *resultobj; | |
30076 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30077 | int arg2 ; | |
30078 | bool result; | |
30079 | PyObject * obj0 = 0 ; | |
994141e6 | 30080 | PyObject * obj1 = 0 ; |
d14a1e28 | 30081 | char *kwnames[] = { |
242b7b46 | 30082 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30083 | }; |
30084 | ||
994141e6 | 30085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30088 | arg2 = (int) SWIG_AsInt(obj1); | |
30089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30090 | { |
30091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30092 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30093 | ||
30094 | wxPyEndAllowThreads(__tstate); | |
30095 | if (PyErr_Occurred()) SWIG_fail; | |
30096 | } | |
4f89f6a3 RD |
30097 | { |
30098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30099 | } | |
d14a1e28 RD |
30100 | return resultobj; |
30101 | fail: | |
30102 | return NULL; | |
30103 | } | |
30104 | ||
30105 | ||
30106 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30107 | PyObject *resultobj; | |
30108 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30109 | int arg2 ; | |
30110 | wxString *arg3 = 0 ; | |
e811c8ce | 30111 | bool temp3 = False ; |
d14a1e28 | 30112 | PyObject * obj0 = 0 ; |
994141e6 | 30113 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30114 | PyObject * obj2 = 0 ; |
30115 | char *kwnames[] = { | |
242b7b46 | 30116 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30117 | }; |
30118 | ||
994141e6 | 30119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30122 | arg2 = (int) SWIG_AsInt(obj1); | |
30123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30124 | { |
30125 | arg3 = wxString_in_helper(obj2); | |
30126 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30127 | temp3 = True; |
d14a1e28 RD |
30128 | } |
30129 | { | |
30130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30131 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30132 | ||
30133 | wxPyEndAllowThreads(__tstate); | |
30134 | if (PyErr_Occurred()) SWIG_fail; | |
30135 | } | |
30136 | Py_INCREF(Py_None); resultobj = Py_None; | |
30137 | { | |
30138 | if (temp3) | |
30139 | delete arg3; | |
30140 | } | |
30141 | return resultobj; | |
30142 | fail: | |
30143 | { | |
30144 | if (temp3) | |
30145 | delete arg3; | |
30146 | } | |
30147 | return NULL; | |
30148 | } | |
30149 | ||
30150 | ||
30151 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30152 | PyObject *resultobj; | |
30153 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30154 | int arg2 ; | |
30155 | wxString result; | |
30156 | PyObject * obj0 = 0 ; | |
994141e6 | 30157 | PyObject * obj1 = 0 ; |
d14a1e28 | 30158 | char *kwnames[] = { |
242b7b46 | 30159 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30160 | }; |
30161 | ||
994141e6 | 30162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30165 | arg2 = (int) SWIG_AsInt(obj1); | |
30166 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30167 | { |
30168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30169 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30170 | ||
30171 | wxPyEndAllowThreads(__tstate); | |
30172 | if (PyErr_Occurred()) SWIG_fail; | |
30173 | } | |
30174 | { | |
30175 | #if wxUSE_UNICODE | |
30176 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30177 | #else | |
30178 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30179 | #endif | |
30180 | } | |
30181 | return resultobj; | |
30182 | fail: | |
30183 | return NULL; | |
30184 | } | |
30185 | ||
30186 | ||
30187 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30188 | PyObject *resultobj; | |
30189 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30190 | int arg2 ; | |
30191 | wxString *arg3 = 0 ; | |
e811c8ce | 30192 | bool temp3 = False ; |
d14a1e28 | 30193 | PyObject * obj0 = 0 ; |
994141e6 | 30194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30195 | PyObject * obj2 = 0 ; |
30196 | char *kwnames[] = { | |
242b7b46 | 30197 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30198 | }; |
30199 | ||
994141e6 | 30200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30203 | arg2 = (int) SWIG_AsInt(obj1); | |
30204 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30205 | { |
30206 | arg3 = wxString_in_helper(obj2); | |
30207 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30208 | temp3 = True; |
d14a1e28 RD |
30209 | } |
30210 | { | |
30211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30212 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30213 | ||
30214 | wxPyEndAllowThreads(__tstate); | |
30215 | if (PyErr_Occurred()) SWIG_fail; | |
30216 | } | |
30217 | Py_INCREF(Py_None); resultobj = Py_None; | |
30218 | { | |
30219 | if (temp3) | |
30220 | delete arg3; | |
30221 | } | |
30222 | return resultobj; | |
30223 | fail: | |
30224 | { | |
30225 | if (temp3) | |
30226 | delete arg3; | |
30227 | } | |
30228 | return NULL; | |
30229 | } | |
30230 | ||
30231 | ||
30232 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30233 | PyObject *resultobj; | |
30234 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30235 | int arg2 ; | |
30236 | wxString result; | |
30237 | PyObject * obj0 = 0 ; | |
994141e6 | 30238 | PyObject * obj1 = 0 ; |
d14a1e28 | 30239 | char *kwnames[] = { |
242b7b46 | 30240 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30241 | }; |
30242 | ||
994141e6 | 30243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30246 | arg2 = (int) SWIG_AsInt(obj1); | |
30247 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30248 | { |
30249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30250 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30251 | ||
30252 | wxPyEndAllowThreads(__tstate); | |
30253 | if (PyErr_Occurred()) SWIG_fail; | |
30254 | } | |
30255 | { | |
30256 | #if wxUSE_UNICODE | |
30257 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30258 | #else | |
30259 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30260 | #endif | |
30261 | } | |
30262 | return resultobj; | |
30263 | fail: | |
30264 | return NULL; | |
30265 | } | |
30266 | ||
30267 | ||
30268 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30269 | PyObject *resultobj; | |
30270 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30271 | wxString *arg2 = 0 ; | |
e811c8ce | 30272 | bool temp2 = False ; |
d14a1e28 RD |
30273 | PyObject * obj0 = 0 ; |
30274 | PyObject * obj1 = 0 ; | |
30275 | char *kwnames[] = { | |
30276 | (char *) "self",(char *) "title", NULL | |
30277 | }; | |
30278 | ||
30279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30282 | { |
30283 | arg2 = wxString_in_helper(obj1); | |
30284 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30285 | temp2 = True; |
d14a1e28 RD |
30286 | } |
30287 | { | |
30288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30289 | (arg1)->SetTitle((wxString const &)*arg2); | |
30290 | ||
30291 | wxPyEndAllowThreads(__tstate); | |
30292 | if (PyErr_Occurred()) SWIG_fail; | |
30293 | } | |
30294 | Py_INCREF(Py_None); resultobj = Py_None; | |
30295 | { | |
30296 | if (temp2) | |
30297 | delete arg2; | |
30298 | } | |
30299 | return resultobj; | |
30300 | fail: | |
30301 | { | |
30302 | if (temp2) | |
30303 | delete arg2; | |
30304 | } | |
30305 | return NULL; | |
30306 | } | |
30307 | ||
30308 | ||
30309 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30310 | PyObject *resultobj; | |
30311 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30312 | wxString result; | |
30313 | PyObject * obj0 = 0 ; | |
30314 | char *kwnames[] = { | |
30315 | (char *) "self", NULL | |
30316 | }; | |
30317 | ||
30318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30321 | { |
30322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30323 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30324 | ||
30325 | wxPyEndAllowThreads(__tstate); | |
30326 | if (PyErr_Occurred()) SWIG_fail; | |
30327 | } | |
30328 | { | |
30329 | #if wxUSE_UNICODE | |
30330 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30331 | #else | |
30332 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30333 | #endif | |
30334 | } | |
30335 | return resultobj; | |
30336 | fail: | |
30337 | return NULL; | |
30338 | } | |
30339 | ||
30340 | ||
30341 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30342 | PyObject *resultobj; | |
30343 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30344 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30345 | PyObject * obj0 = 0 ; | |
30346 | PyObject * obj1 = 0 ; | |
30347 | char *kwnames[] = { | |
30348 | (char *) "self",(char *) "handler", NULL | |
30349 | }; | |
30350 | ||
30351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30356 | { |
30357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30358 | (arg1)->SetEventHandler(arg2); | |
30359 | ||
30360 | wxPyEndAllowThreads(__tstate); | |
30361 | if (PyErr_Occurred()) SWIG_fail; | |
30362 | } | |
30363 | Py_INCREF(Py_None); resultobj = Py_None; | |
30364 | return resultobj; | |
30365 | fail: | |
30366 | return NULL; | |
30367 | } | |
30368 | ||
30369 | ||
30370 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30371 | PyObject *resultobj; | |
30372 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30373 | wxEvtHandler *result; | |
30374 | PyObject * obj0 = 0 ; | |
30375 | char *kwnames[] = { | |
30376 | (char *) "self", NULL | |
30377 | }; | |
30378 | ||
30379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30382 | { |
30383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30384 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30385 | ||
30386 | wxPyEndAllowThreads(__tstate); | |
30387 | if (PyErr_Occurred()) SWIG_fail; | |
30388 | } | |
30389 | { | |
30390 | resultobj = wxPyMake_wxObject(result); | |
30391 | } | |
30392 | return resultobj; | |
30393 | fail: | |
30394 | return NULL; | |
30395 | } | |
30396 | ||
30397 | ||
30398 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30399 | PyObject *resultobj; | |
30400 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30401 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30402 | PyObject * obj0 = 0 ; | |
30403 | PyObject * obj1 = 0 ; | |
30404 | char *kwnames[] = { | |
30405 | (char *) "self",(char *) "win", NULL | |
30406 | }; | |
30407 | ||
30408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30413 | { |
30414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30415 | (arg1)->SetInvokingWindow(arg2); | |
30416 | ||
30417 | wxPyEndAllowThreads(__tstate); | |
30418 | if (PyErr_Occurred()) SWIG_fail; | |
30419 | } | |
30420 | Py_INCREF(Py_None); resultobj = Py_None; | |
30421 | return resultobj; | |
30422 | fail: | |
30423 | return NULL; | |
30424 | } | |
30425 | ||
30426 | ||
30427 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30428 | PyObject *resultobj; | |
30429 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30430 | wxWindow *result; | |
30431 | PyObject * obj0 = 0 ; | |
30432 | char *kwnames[] = { | |
30433 | (char *) "self", NULL | |
30434 | }; | |
30435 | ||
30436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30439 | { |
30440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30441 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30442 | ||
30443 | wxPyEndAllowThreads(__tstate); | |
30444 | if (PyErr_Occurred()) SWIG_fail; | |
30445 | } | |
30446 | { | |
30447 | resultobj = wxPyMake_wxObject(result); | |
30448 | } | |
30449 | return resultobj; | |
30450 | fail: | |
30451 | return NULL; | |
30452 | } | |
30453 | ||
30454 | ||
30455 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30456 | PyObject *resultobj; | |
30457 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30458 | long result; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | char *kwnames[] = { | |
30461 | (char *) "self", NULL | |
30462 | }; | |
30463 | ||
30464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30467 | { |
30468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30469 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30470 | ||
30471 | wxPyEndAllowThreads(__tstate); | |
30472 | if (PyErr_Occurred()) SWIG_fail; | |
30473 | } | |
15afbcd0 | 30474 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
30475 | return resultobj; |
30476 | fail: | |
30477 | return NULL; | |
30478 | } | |
30479 | ||
30480 | ||
30481 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30482 | PyObject *resultobj; | |
30483 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30484 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30485 | PyObject * obj0 = 0 ; | |
30486 | PyObject * obj1 = 0 ; | |
30487 | char *kwnames[] = { | |
30488 | (char *) "self",(char *) "source", NULL | |
30489 | }; | |
30490 | ||
30491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30494 | if (obj1) { |
15afbcd0 RD |
30495 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
30496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30497 | } |
30498 | { | |
30499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30500 | (arg1)->UpdateUI(arg2); | |
30501 | ||
30502 | wxPyEndAllowThreads(__tstate); | |
30503 | if (PyErr_Occurred()) SWIG_fail; | |
30504 | } | |
30505 | Py_INCREF(Py_None); resultobj = Py_None; | |
30506 | return resultobj; | |
30507 | fail: | |
30508 | return NULL; | |
30509 | } | |
30510 | ||
30511 | ||
30512 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30513 | PyObject *resultobj; | |
30514 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30515 | wxMenuBar *result; | |
30516 | PyObject * obj0 = 0 ; | |
30517 | char *kwnames[] = { | |
30518 | (char *) "self", NULL | |
30519 | }; | |
30520 | ||
30521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30524 | { |
30525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30526 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30527 | ||
30528 | wxPyEndAllowThreads(__tstate); | |
30529 | if (PyErr_Occurred()) SWIG_fail; | |
30530 | } | |
30531 | { | |
30532 | resultobj = wxPyMake_wxObject(result); | |
30533 | } | |
30534 | return resultobj; | |
30535 | fail: | |
30536 | return NULL; | |
30537 | } | |
30538 | ||
30539 | ||
30540 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30541 | PyObject *resultobj; | |
30542 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30543 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30544 | PyObject * obj0 = 0 ; | |
30545 | PyObject * obj1 = 0 ; | |
30546 | char *kwnames[] = { | |
30547 | (char *) "self",(char *) "menubar", NULL | |
30548 | }; | |
30549 | ||
30550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30555 | { |
30556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30557 | (arg1)->Attach(arg2); | |
30558 | ||
30559 | wxPyEndAllowThreads(__tstate); | |
30560 | if (PyErr_Occurred()) SWIG_fail; | |
30561 | } | |
30562 | Py_INCREF(Py_None); resultobj = Py_None; | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | return NULL; | |
30566 | } | |
30567 | ||
30568 | ||
30569 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30570 | PyObject *resultobj; | |
30571 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30572 | PyObject * obj0 = 0 ; | |
30573 | char *kwnames[] = { | |
30574 | (char *) "self", NULL | |
30575 | }; | |
30576 | ||
30577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30580 | { |
30581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30582 | (arg1)->Detach(); | |
30583 | ||
30584 | wxPyEndAllowThreads(__tstate); | |
30585 | if (PyErr_Occurred()) SWIG_fail; | |
30586 | } | |
30587 | Py_INCREF(Py_None); resultobj = Py_None; | |
30588 | return resultobj; | |
30589 | fail: | |
30590 | return NULL; | |
30591 | } | |
30592 | ||
30593 | ||
30594 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30595 | PyObject *resultobj; | |
30596 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30597 | bool result; | |
30598 | PyObject * obj0 = 0 ; | |
30599 | char *kwnames[] = { | |
30600 | (char *) "self", NULL | |
30601 | }; | |
30602 | ||
30603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30606 | { |
30607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30608 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30609 | ||
30610 | wxPyEndAllowThreads(__tstate); | |
30611 | if (PyErr_Occurred()) SWIG_fail; | |
30612 | } | |
4f89f6a3 RD |
30613 | { |
30614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30615 | } | |
d14a1e28 RD |
30616 | return resultobj; |
30617 | fail: | |
30618 | return NULL; | |
30619 | } | |
30620 | ||
30621 | ||
30622 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30623 | PyObject *resultobj; | |
30624 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30625 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30626 | PyObject * obj0 = 0 ; | |
30627 | PyObject * obj1 = 0 ; | |
30628 | char *kwnames[] = { | |
30629 | (char *) "self",(char *) "parent", NULL | |
30630 | }; | |
30631 | ||
30632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30637 | { |
30638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30639 | (arg1)->SetParent(arg2); | |
30640 | ||
30641 | wxPyEndAllowThreads(__tstate); | |
30642 | if (PyErr_Occurred()) SWIG_fail; | |
30643 | } | |
30644 | Py_INCREF(Py_None); resultobj = Py_None; | |
30645 | return resultobj; | |
30646 | fail: | |
30647 | return NULL; | |
30648 | } | |
30649 | ||
30650 | ||
30651 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30652 | PyObject *resultobj; | |
30653 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30654 | wxMenu *result; | |
30655 | PyObject * obj0 = 0 ; | |
30656 | char *kwnames[] = { | |
30657 | (char *) "self", NULL | |
30658 | }; | |
30659 | ||
30660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30663 | { |
30664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30665 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30666 | ||
30667 | wxPyEndAllowThreads(__tstate); | |
30668 | if (PyErr_Occurred()) SWIG_fail; | |
30669 | } | |
30670 | { | |
30671 | resultobj = wxPyMake_wxObject(result); | |
30672 | } | |
30673 | return resultobj; | |
30674 | fail: | |
30675 | return NULL; | |
30676 | } | |
30677 | ||
30678 | ||
30679 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30680 | PyObject *obj; | |
30681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30682 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30683 | Py_INCREF(obj); | |
30684 | return Py_BuildValue((char *)""); | |
30685 | } | |
30686 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30687 | PyObject *resultobj; | |
30688 | long arg1 = (long) 0 ; | |
30689 | wxMenuBar *result; | |
994141e6 | 30690 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
30691 | char *kwnames[] = { |
30692 | (char *) "style", NULL | |
30693 | }; | |
30694 | ||
994141e6 RD |
30695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
30696 | if (obj0) { | |
15afbcd0 RD |
30697 | arg1 = (long) SWIG_AsLong(obj0); |
30698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30699 | } |
d14a1e28 | 30700 | { |
e3b71cb8 | 30701 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30703 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30704 | ||
30705 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 30706 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
30707 | } |
30708 | { | |
30709 | resultobj = wxPyMake_wxObject(result); | |
30710 | } | |
30711 | return resultobj; | |
30712 | fail: | |
30713 | return NULL; | |
30714 | } | |
30715 | ||
30716 | ||
30717 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30718 | PyObject *resultobj; | |
30719 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30720 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30721 | wxString *arg3 = 0 ; | |
30722 | bool result; | |
e811c8ce | 30723 | bool temp3 = False ; |
d14a1e28 RD |
30724 | PyObject * obj0 = 0 ; |
30725 | PyObject * obj1 = 0 ; | |
30726 | PyObject * obj2 = 0 ; | |
30727 | char *kwnames[] = { | |
30728 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30729 | }; | |
30730 | ||
30731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30736 | { |
30737 | arg3 = wxString_in_helper(obj2); | |
30738 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30739 | temp3 = True; |
d14a1e28 RD |
30740 | } |
30741 | { | |
30742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30743 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30744 | ||
30745 | wxPyEndAllowThreads(__tstate); | |
30746 | if (PyErr_Occurred()) SWIG_fail; | |
30747 | } | |
4f89f6a3 RD |
30748 | { |
30749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30750 | } | |
d14a1e28 RD |
30751 | { |
30752 | if (temp3) | |
30753 | delete arg3; | |
30754 | } | |
30755 | return resultobj; | |
30756 | fail: | |
30757 | { | |
30758 | if (temp3) | |
30759 | delete arg3; | |
30760 | } | |
30761 | return NULL; | |
30762 | } | |
30763 | ||
30764 | ||
30765 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30766 | PyObject *resultobj; | |
30767 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30768 | size_t arg2 ; | |
30769 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30770 | wxString *arg4 = 0 ; | |
30771 | bool result; | |
e811c8ce | 30772 | bool temp4 = False ; |
d14a1e28 RD |
30773 | PyObject * obj0 = 0 ; |
30774 | PyObject * obj1 = 0 ; | |
30775 | PyObject * obj2 = 0 ; | |
30776 | PyObject * obj3 = 0 ; | |
30777 | char *kwnames[] = { | |
30778 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30779 | }; | |
30780 | ||
30781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30784 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30785 | if (PyErr_Occurred()) SWIG_fail; | |
30786 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30788 | { |
30789 | arg4 = wxString_in_helper(obj3); | |
30790 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30791 | temp4 = True; |
d14a1e28 RD |
30792 | } |
30793 | { | |
30794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30795 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30796 | ||
30797 | wxPyEndAllowThreads(__tstate); | |
30798 | if (PyErr_Occurred()) SWIG_fail; | |
30799 | } | |
4f89f6a3 RD |
30800 | { |
30801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30802 | } | |
d14a1e28 RD |
30803 | { |
30804 | if (temp4) | |
30805 | delete arg4; | |
30806 | } | |
30807 | return resultobj; | |
30808 | fail: | |
30809 | { | |
30810 | if (temp4) | |
30811 | delete arg4; | |
30812 | } | |
30813 | return NULL; | |
30814 | } | |
30815 | ||
30816 | ||
30817 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30818 | PyObject *resultobj; | |
30819 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30820 | size_t result; | |
30821 | PyObject * obj0 = 0 ; | |
30822 | char *kwnames[] = { | |
30823 | (char *) "self", NULL | |
30824 | }; | |
30825 | ||
30826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30829 | { |
30830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30831 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30832 | ||
30833 | wxPyEndAllowThreads(__tstate); | |
30834 | if (PyErr_Occurred()) SWIG_fail; | |
30835 | } | |
15afbcd0 | 30836 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
30837 | return resultobj; |
30838 | fail: | |
30839 | return NULL; | |
30840 | } | |
30841 | ||
30842 | ||
30843 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30844 | PyObject *resultobj; | |
30845 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30846 | size_t arg2 ; | |
30847 | wxMenu *result; | |
30848 | PyObject * obj0 = 0 ; | |
30849 | PyObject * obj1 = 0 ; | |
30850 | char *kwnames[] = { | |
30851 | (char *) "self",(char *) "pos", NULL | |
30852 | }; | |
30853 | ||
30854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30857 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30859 | { |
30860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30861 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30862 | ||
30863 | wxPyEndAllowThreads(__tstate); | |
30864 | if (PyErr_Occurred()) SWIG_fail; | |
30865 | } | |
30866 | { | |
30867 | resultobj = wxPyMake_wxObject(result); | |
30868 | } | |
30869 | return resultobj; | |
30870 | fail: | |
30871 | return NULL; | |
30872 | } | |
30873 | ||
30874 | ||
30875 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30876 | PyObject *resultobj; | |
30877 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30878 | size_t arg2 ; | |
30879 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30880 | wxString *arg4 = 0 ; | |
30881 | wxMenu *result; | |
e811c8ce | 30882 | bool temp4 = False ; |
d14a1e28 RD |
30883 | PyObject * obj0 = 0 ; |
30884 | PyObject * obj1 = 0 ; | |
30885 | PyObject * obj2 = 0 ; | |
30886 | PyObject * obj3 = 0 ; | |
30887 | char *kwnames[] = { | |
30888 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30889 | }; | |
30890 | ||
30891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30894 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30895 | if (PyErr_Occurred()) SWIG_fail; | |
30896 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30898 | { |
30899 | arg4 = wxString_in_helper(obj3); | |
30900 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30901 | temp4 = True; |
d14a1e28 RD |
30902 | } |
30903 | { | |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30906 | ||
30907 | wxPyEndAllowThreads(__tstate); | |
30908 | if (PyErr_Occurred()) SWIG_fail; | |
30909 | } | |
30910 | { | |
30911 | resultobj = wxPyMake_wxObject(result); | |
30912 | } | |
30913 | { | |
30914 | if (temp4) | |
30915 | delete arg4; | |
30916 | } | |
30917 | return resultobj; | |
30918 | fail: | |
30919 | { | |
30920 | if (temp4) | |
30921 | delete arg4; | |
30922 | } | |
30923 | return NULL; | |
30924 | } | |
30925 | ||
30926 | ||
30927 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30928 | PyObject *resultobj; | |
30929 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30930 | size_t arg2 ; | |
30931 | wxMenu *result; | |
30932 | PyObject * obj0 = 0 ; | |
30933 | PyObject * obj1 = 0 ; | |
30934 | char *kwnames[] = { | |
30935 | (char *) "self",(char *) "pos", NULL | |
30936 | }; | |
30937 | ||
30938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30941 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30943 | { |
30944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30945 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30946 | ||
30947 | wxPyEndAllowThreads(__tstate); | |
30948 | if (PyErr_Occurred()) SWIG_fail; | |
30949 | } | |
30950 | { | |
30951 | resultobj = wxPyMake_wxObject(result); | |
30952 | } | |
30953 | return resultobj; | |
30954 | fail: | |
30955 | return NULL; | |
30956 | } | |
30957 | ||
30958 | ||
30959 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30960 | PyObject *resultobj; | |
30961 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30962 | size_t arg2 ; | |
30963 | bool arg3 ; | |
30964 | PyObject * obj0 = 0 ; | |
30965 | PyObject * obj1 = 0 ; | |
30966 | PyObject * obj2 = 0 ; | |
30967 | char *kwnames[] = { | |
30968 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30969 | }; | |
30970 | ||
30971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30974 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30975 | if (PyErr_Occurred()) SWIG_fail; | |
30976 | arg3 = (bool) SWIG_AsBool(obj2); | |
30977 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30978 | { |
30979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30980 | (arg1)->EnableTop(arg2,arg3); | |
30981 | ||
30982 | wxPyEndAllowThreads(__tstate); | |
30983 | if (PyErr_Occurred()) SWIG_fail; | |
30984 | } | |
30985 | Py_INCREF(Py_None); resultobj = Py_None; | |
30986 | return resultobj; | |
30987 | fail: | |
30988 | return NULL; | |
30989 | } | |
30990 | ||
30991 | ||
30992 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30993 | PyObject *resultobj; | |
30994 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30995 | size_t arg2 ; | |
30996 | bool result; | |
30997 | PyObject * obj0 = 0 ; | |
30998 | PyObject * obj1 = 0 ; | |
30999 | char *kwnames[] = { | |
31000 | (char *) "self",(char *) "pos", NULL | |
31001 | }; | |
31002 | ||
31003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31006 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31008 | { |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31010 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31011 | ||
31012 | wxPyEndAllowThreads(__tstate); | |
31013 | if (PyErr_Occurred()) SWIG_fail; | |
31014 | } | |
4f89f6a3 RD |
31015 | { |
31016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31017 | } | |
d14a1e28 RD |
31018 | return resultobj; |
31019 | fail: | |
31020 | return NULL; | |
31021 | } | |
31022 | ||
31023 | ||
31024 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31025 | PyObject *resultobj; | |
31026 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31027 | size_t arg2 ; | |
31028 | wxString *arg3 = 0 ; | |
e811c8ce | 31029 | bool temp3 = False ; |
d14a1e28 RD |
31030 | PyObject * obj0 = 0 ; |
31031 | PyObject * obj1 = 0 ; | |
31032 | PyObject * obj2 = 0 ; | |
31033 | char *kwnames[] = { | |
31034 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31035 | }; | |
31036 | ||
31037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31040 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31042 | { |
31043 | arg3 = wxString_in_helper(obj2); | |
31044 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31045 | temp3 = True; |
d14a1e28 RD |
31046 | } |
31047 | { | |
31048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31049 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31050 | ||
31051 | wxPyEndAllowThreads(__tstate); | |
31052 | if (PyErr_Occurred()) SWIG_fail; | |
31053 | } | |
31054 | Py_INCREF(Py_None); resultobj = Py_None; | |
31055 | { | |
31056 | if (temp3) | |
31057 | delete arg3; | |
31058 | } | |
31059 | return resultobj; | |
31060 | fail: | |
31061 | { | |
31062 | if (temp3) | |
31063 | delete arg3; | |
31064 | } | |
31065 | return NULL; | |
31066 | } | |
31067 | ||
31068 | ||
31069 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31070 | PyObject *resultobj; | |
31071 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31072 | size_t arg2 ; | |
31073 | wxString result; | |
31074 | PyObject * obj0 = 0 ; | |
31075 | PyObject * obj1 = 0 ; | |
31076 | char *kwnames[] = { | |
31077 | (char *) "self",(char *) "pos", NULL | |
31078 | }; | |
31079 | ||
31080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31083 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31085 | { |
31086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31087 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31088 | ||
31089 | wxPyEndAllowThreads(__tstate); | |
31090 | if (PyErr_Occurred()) SWIG_fail; | |
31091 | } | |
31092 | { | |
31093 | #if wxUSE_UNICODE | |
31094 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31095 | #else | |
31096 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31097 | #endif | |
31098 | } | |
31099 | return resultobj; | |
31100 | fail: | |
31101 | return NULL; | |
31102 | } | |
31103 | ||
31104 | ||
31105 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31106 | PyObject *resultobj; | |
31107 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31108 | wxString *arg2 = 0 ; | |
31109 | wxString *arg3 = 0 ; | |
31110 | int result; | |
e811c8ce RD |
31111 | bool temp2 = False ; |
31112 | bool temp3 = False ; | |
d14a1e28 RD |
31113 | PyObject * obj0 = 0 ; |
31114 | PyObject * obj1 = 0 ; | |
31115 | PyObject * obj2 = 0 ; | |
31116 | char *kwnames[] = { | |
31117 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31118 | }; | |
31119 | ||
31120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31123 | { |
31124 | arg2 = wxString_in_helper(obj1); | |
31125 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31126 | temp2 = True; |
d14a1e28 RD |
31127 | } |
31128 | { | |
31129 | arg3 = wxString_in_helper(obj2); | |
31130 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31131 | temp3 = True; |
d14a1e28 RD |
31132 | } |
31133 | { | |
31134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31135 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31136 | ||
31137 | wxPyEndAllowThreads(__tstate); | |
31138 | if (PyErr_Occurred()) SWIG_fail; | |
31139 | } | |
15afbcd0 | 31140 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31141 | { |
31142 | if (temp2) | |
31143 | delete arg2; | |
31144 | } | |
31145 | { | |
31146 | if (temp3) | |
31147 | delete arg3; | |
31148 | } | |
31149 | return resultobj; | |
31150 | fail: | |
31151 | { | |
31152 | if (temp2) | |
31153 | delete arg2; | |
31154 | } | |
31155 | { | |
31156 | if (temp3) | |
31157 | delete arg3; | |
31158 | } | |
31159 | return NULL; | |
31160 | } | |
31161 | ||
31162 | ||
31163 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31164 | PyObject *resultobj; | |
31165 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31166 | int arg2 ; | |
31167 | wxMenuItem *result; | |
31168 | PyObject * obj0 = 0 ; | |
994141e6 | 31169 | PyObject * obj1 = 0 ; |
d14a1e28 | 31170 | char *kwnames[] = { |
242b7b46 | 31171 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31172 | }; |
31173 | ||
994141e6 | 31174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31177 | arg2 = (int) SWIG_AsInt(obj1); | |
31178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31179 | { |
31180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31181 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31182 | ||
31183 | wxPyEndAllowThreads(__tstate); | |
31184 | if (PyErr_Occurred()) SWIG_fail; | |
31185 | } | |
31186 | { | |
31187 | resultobj = wxPyMake_wxObject(result); | |
31188 | } | |
31189 | return resultobj; | |
31190 | fail: | |
31191 | return NULL; | |
31192 | } | |
31193 | ||
31194 | ||
31195 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31196 | PyObject *resultobj; | |
31197 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31198 | wxString *arg2 = 0 ; | |
31199 | int result; | |
e811c8ce | 31200 | bool temp2 = False ; |
d14a1e28 RD |
31201 | PyObject * obj0 = 0 ; |
31202 | PyObject * obj1 = 0 ; | |
31203 | char *kwnames[] = { | |
31204 | (char *) "self",(char *) "title", NULL | |
31205 | }; | |
31206 | ||
31207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31210 | { |
31211 | arg2 = wxString_in_helper(obj1); | |
31212 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31213 | temp2 = True; |
d14a1e28 RD |
31214 | } |
31215 | { | |
31216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31217 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31218 | ||
31219 | wxPyEndAllowThreads(__tstate); | |
31220 | if (PyErr_Occurred()) SWIG_fail; | |
31221 | } | |
15afbcd0 | 31222 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31223 | { |
31224 | if (temp2) | |
31225 | delete arg2; | |
31226 | } | |
31227 | return resultobj; | |
31228 | fail: | |
31229 | { | |
31230 | if (temp2) | |
31231 | delete arg2; | |
31232 | } | |
31233 | return NULL; | |
31234 | } | |
31235 | ||
31236 | ||
31237 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31238 | PyObject *resultobj; | |
31239 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31240 | int arg2 ; | |
31241 | bool arg3 ; | |
31242 | PyObject * obj0 = 0 ; | |
994141e6 | 31243 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31244 | PyObject * obj2 = 0 ; |
31245 | char *kwnames[] = { | |
242b7b46 | 31246 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
31247 | }; |
31248 | ||
994141e6 | 31249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31252 | arg2 = (int) SWIG_AsInt(obj1); | |
31253 | if (PyErr_Occurred()) SWIG_fail; | |
31254 | arg3 = (bool) SWIG_AsBool(obj2); | |
31255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31256 | { |
31257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31258 | (arg1)->Enable(arg2,arg3); | |
31259 | ||
31260 | wxPyEndAllowThreads(__tstate); | |
31261 | if (PyErr_Occurred()) SWIG_fail; | |
31262 | } | |
31263 | Py_INCREF(Py_None); resultobj = Py_None; | |
31264 | return resultobj; | |
31265 | fail: | |
31266 | return NULL; | |
31267 | } | |
31268 | ||
31269 | ||
31270 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31271 | PyObject *resultobj; | |
31272 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31273 | int arg2 ; | |
31274 | bool arg3 ; | |
31275 | PyObject * obj0 = 0 ; | |
994141e6 | 31276 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31277 | PyObject * obj2 = 0 ; |
31278 | char *kwnames[] = { | |
242b7b46 | 31279 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
31280 | }; |
31281 | ||
994141e6 | 31282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31285 | arg2 = (int) SWIG_AsInt(obj1); | |
31286 | if (PyErr_Occurred()) SWIG_fail; | |
31287 | arg3 = (bool) SWIG_AsBool(obj2); | |
31288 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31289 | { |
31290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31291 | (arg1)->Check(arg2,arg3); | |
31292 | ||
31293 | wxPyEndAllowThreads(__tstate); | |
31294 | if (PyErr_Occurred()) SWIG_fail; | |
31295 | } | |
31296 | Py_INCREF(Py_None); resultobj = Py_None; | |
31297 | return resultobj; | |
31298 | fail: | |
31299 | return NULL; | |
31300 | } | |
31301 | ||
31302 | ||
31303 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31304 | PyObject *resultobj; | |
31305 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31306 | int arg2 ; | |
31307 | bool result; | |
31308 | PyObject * obj0 = 0 ; | |
994141e6 | 31309 | PyObject * obj1 = 0 ; |
d14a1e28 | 31310 | char *kwnames[] = { |
242b7b46 | 31311 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31312 | }; |
31313 | ||
994141e6 | 31314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31317 | arg2 = (int) SWIG_AsInt(obj1); | |
31318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31319 | { |
31320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31321 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31322 | ||
31323 | wxPyEndAllowThreads(__tstate); | |
31324 | if (PyErr_Occurred()) SWIG_fail; | |
31325 | } | |
4f89f6a3 RD |
31326 | { |
31327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31328 | } | |
d14a1e28 RD |
31329 | return resultobj; |
31330 | fail: | |
31331 | return NULL; | |
31332 | } | |
31333 | ||
31334 | ||
31335 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31336 | PyObject *resultobj; | |
31337 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31338 | int arg2 ; | |
31339 | bool result; | |
31340 | PyObject * obj0 = 0 ; | |
994141e6 | 31341 | PyObject * obj1 = 0 ; |
d14a1e28 | 31342 | char *kwnames[] = { |
242b7b46 | 31343 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31344 | }; |
31345 | ||
994141e6 | 31346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31349 | arg2 = (int) SWIG_AsInt(obj1); | |
31350 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31351 | { |
31352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31353 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31354 | ||
31355 | wxPyEndAllowThreads(__tstate); | |
31356 | if (PyErr_Occurred()) SWIG_fail; | |
31357 | } | |
4f89f6a3 RD |
31358 | { |
31359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31360 | } | |
d14a1e28 RD |
31361 | return resultobj; |
31362 | fail: | |
31363 | return NULL; | |
31364 | } | |
31365 | ||
31366 | ||
31367 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31368 | PyObject *resultobj; | |
31369 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31370 | int arg2 ; | |
31371 | wxString *arg3 = 0 ; | |
e811c8ce | 31372 | bool temp3 = False ; |
d14a1e28 | 31373 | PyObject * obj0 = 0 ; |
994141e6 | 31374 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31375 | PyObject * obj2 = 0 ; |
31376 | char *kwnames[] = { | |
242b7b46 | 31377 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
31378 | }; |
31379 | ||
994141e6 | 31380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31383 | arg2 = (int) SWIG_AsInt(obj1); | |
31384 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31385 | { |
31386 | arg3 = wxString_in_helper(obj2); | |
31387 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31388 | temp3 = True; |
d14a1e28 RD |
31389 | } |
31390 | { | |
31391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31392 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31393 | ||
31394 | wxPyEndAllowThreads(__tstate); | |
31395 | if (PyErr_Occurred()) SWIG_fail; | |
31396 | } | |
31397 | Py_INCREF(Py_None); resultobj = Py_None; | |
31398 | { | |
31399 | if (temp3) | |
31400 | delete arg3; | |
31401 | } | |
31402 | return resultobj; | |
31403 | fail: | |
31404 | { | |
31405 | if (temp3) | |
31406 | delete arg3; | |
31407 | } | |
31408 | return NULL; | |
31409 | } | |
31410 | ||
31411 | ||
31412 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31413 | PyObject *resultobj; | |
31414 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31415 | int arg2 ; | |
31416 | wxString result; | |
31417 | PyObject * obj0 = 0 ; | |
994141e6 | 31418 | PyObject * obj1 = 0 ; |
d14a1e28 | 31419 | char *kwnames[] = { |
242b7b46 | 31420 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31421 | }; |
31422 | ||
994141e6 | 31423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31426 | arg2 = (int) SWIG_AsInt(obj1); | |
31427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31428 | { |
31429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31430 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31431 | ||
31432 | wxPyEndAllowThreads(__tstate); | |
31433 | if (PyErr_Occurred()) SWIG_fail; | |
31434 | } | |
31435 | { | |
31436 | #if wxUSE_UNICODE | |
31437 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31438 | #else | |
31439 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31440 | #endif | |
31441 | } | |
31442 | return resultobj; | |
31443 | fail: | |
31444 | return NULL; | |
31445 | } | |
31446 | ||
31447 | ||
31448 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31449 | PyObject *resultobj; | |
31450 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31451 | int arg2 ; | |
31452 | wxString *arg3 = 0 ; | |
e811c8ce | 31453 | bool temp3 = False ; |
d14a1e28 | 31454 | PyObject * obj0 = 0 ; |
994141e6 | 31455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31456 | PyObject * obj2 = 0 ; |
31457 | char *kwnames[] = { | |
242b7b46 | 31458 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
31459 | }; |
31460 | ||
994141e6 | 31461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31464 | arg2 = (int) SWIG_AsInt(obj1); | |
31465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31466 | { |
31467 | arg3 = wxString_in_helper(obj2); | |
31468 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31469 | temp3 = True; |
d14a1e28 RD |
31470 | } |
31471 | { | |
31472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31473 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31474 | ||
31475 | wxPyEndAllowThreads(__tstate); | |
31476 | if (PyErr_Occurred()) SWIG_fail; | |
31477 | } | |
31478 | Py_INCREF(Py_None); resultobj = Py_None; | |
31479 | { | |
31480 | if (temp3) | |
31481 | delete arg3; | |
31482 | } | |
31483 | return resultobj; | |
31484 | fail: | |
31485 | { | |
31486 | if (temp3) | |
31487 | delete arg3; | |
31488 | } | |
31489 | return NULL; | |
31490 | } | |
31491 | ||
31492 | ||
31493 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31494 | PyObject *resultobj; | |
31495 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31496 | int arg2 ; | |
31497 | wxString result; | |
31498 | PyObject * obj0 = 0 ; | |
994141e6 | 31499 | PyObject * obj1 = 0 ; |
d14a1e28 | 31500 | char *kwnames[] = { |
242b7b46 | 31501 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31502 | }; |
31503 | ||
994141e6 | 31504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31507 | arg2 = (int) SWIG_AsInt(obj1); | |
31508 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31509 | { |
31510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31511 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31512 | ||
31513 | wxPyEndAllowThreads(__tstate); | |
31514 | if (PyErr_Occurred()) SWIG_fail; | |
31515 | } | |
31516 | { | |
31517 | #if wxUSE_UNICODE | |
31518 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31519 | #else | |
31520 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31521 | #endif | |
31522 | } | |
31523 | return resultobj; | |
31524 | fail: | |
31525 | return NULL; | |
31526 | } | |
31527 | ||
31528 | ||
31529 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31530 | PyObject *resultobj; | |
31531 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31532 | wxFrame *result; | |
31533 | PyObject * obj0 = 0 ; | |
31534 | char *kwnames[] = { | |
31535 | (char *) "self", NULL | |
31536 | }; | |
31537 | ||
31538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31541 | { |
31542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31543 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31544 | ||
31545 | wxPyEndAllowThreads(__tstate); | |
31546 | if (PyErr_Occurred()) SWIG_fail; | |
31547 | } | |
31548 | { | |
31549 | resultobj = wxPyMake_wxObject(result); | |
31550 | } | |
31551 | return resultobj; | |
31552 | fail: | |
31553 | return NULL; | |
31554 | } | |
31555 | ||
31556 | ||
31557 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31558 | PyObject *resultobj; | |
31559 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31560 | bool result; | |
31561 | PyObject * obj0 = 0 ; | |
31562 | char *kwnames[] = { | |
31563 | (char *) "self", NULL | |
31564 | }; | |
31565 | ||
31566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31569 | { |
31570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31571 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31572 | ||
31573 | wxPyEndAllowThreads(__tstate); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | } | |
4f89f6a3 RD |
31576 | { |
31577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31578 | } | |
d14a1e28 RD |
31579 | return resultobj; |
31580 | fail: | |
31581 | return NULL; | |
31582 | } | |
31583 | ||
31584 | ||
31585 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31586 | PyObject *resultobj; | |
31587 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31588 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31589 | PyObject * obj0 = 0 ; | |
31590 | PyObject * obj1 = 0 ; | |
31591 | char *kwnames[] = { | |
31592 | (char *) "self",(char *) "frame", NULL | |
31593 | }; | |
31594 | ||
31595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31600 | { |
31601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31602 | (arg1)->Attach(arg2); | |
31603 | ||
31604 | wxPyEndAllowThreads(__tstate); | |
31605 | if (PyErr_Occurred()) SWIG_fail; | |
31606 | } | |
31607 | Py_INCREF(Py_None); resultobj = Py_None; | |
31608 | return resultobj; | |
31609 | fail: | |
31610 | return NULL; | |
31611 | } | |
31612 | ||
31613 | ||
31614 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31615 | PyObject *resultobj; | |
31616 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31617 | PyObject * obj0 = 0 ; | |
31618 | char *kwnames[] = { | |
31619 | (char *) "self", NULL | |
31620 | }; | |
31621 | ||
31622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31625 | { |
31626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31627 | (arg1)->Detach(); | |
31628 | ||
31629 | wxPyEndAllowThreads(__tstate); | |
31630 | if (PyErr_Occurred()) SWIG_fail; | |
31631 | } | |
31632 | Py_INCREF(Py_None); resultobj = Py_None; | |
31633 | return resultobj; | |
31634 | fail: | |
31635 | return NULL; | |
31636 | } | |
31637 | ||
31638 | ||
31639 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31640 | PyObject *obj; | |
31641 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31642 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31643 | Py_INCREF(obj); | |
31644 | return Py_BuildValue((char *)""); | |
31645 | } | |
31646 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31647 | PyObject *resultobj; | |
31648 | wxMenu *arg1 = (wxMenu *) NULL ; | |
a95a7133 | 31649 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
31650 | wxString const &arg3_defvalue = wxPyEmptyString ; |
31651 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31652 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31653 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31654 | int arg5 = (int) wxITEM_NORMAL ; | |
31655 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31656 | wxMenuItem *result; | |
e811c8ce RD |
31657 | bool temp3 = False ; |
31658 | bool temp4 = False ; | |
d14a1e28 | 31659 | PyObject * obj0 = 0 ; |
994141e6 | 31660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31661 | PyObject * obj2 = 0 ; |
31662 | PyObject * obj3 = 0 ; | |
994141e6 | 31663 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31664 | PyObject * obj5 = 0 ; |
31665 | char *kwnames[] = { | |
31666 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31667 | }; | |
31668 | ||
994141e6 | 31669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 31670 | if (obj0) { |
15afbcd0 RD |
31671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31673 | } |
994141e6 | 31674 | if (obj1) { |
15afbcd0 RD |
31675 | arg2 = (int) SWIG_AsInt(obj1); |
31676 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31677 | } |
d14a1e28 RD |
31678 | if (obj2) { |
31679 | { | |
31680 | arg3 = wxString_in_helper(obj2); | |
31681 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31682 | temp3 = True; |
d14a1e28 RD |
31683 | } |
31684 | } | |
31685 | if (obj3) { | |
31686 | { | |
31687 | arg4 = wxString_in_helper(obj3); | |
31688 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 31689 | temp4 = True; |
d14a1e28 RD |
31690 | } |
31691 | } | |
994141e6 | 31692 | if (obj4) { |
15afbcd0 RD |
31693 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
31694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31695 | } |
d14a1e28 | 31696 | if (obj5) { |
15afbcd0 RD |
31697 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
31698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31699 | } |
31700 | { | |
31701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31702 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31703 | ||
31704 | wxPyEndAllowThreads(__tstate); | |
31705 | if (PyErr_Occurred()) SWIG_fail; | |
31706 | } | |
31707 | { | |
31708 | resultobj = wxPyMake_wxObject(result); | |
31709 | } | |
31710 | { | |
31711 | if (temp3) | |
31712 | delete arg3; | |
31713 | } | |
31714 | { | |
31715 | if (temp4) | |
31716 | delete arg4; | |
31717 | } | |
31718 | return resultobj; | |
31719 | fail: | |
31720 | { | |
31721 | if (temp3) | |
31722 | delete arg3; | |
31723 | } | |
31724 | { | |
31725 | if (temp4) | |
31726 | delete arg4; | |
31727 | } | |
31728 | return NULL; | |
31729 | } | |
31730 | ||
31731 | ||
31732 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31733 | PyObject *resultobj; | |
31734 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31735 | wxMenu *result; | |
31736 | PyObject * obj0 = 0 ; | |
31737 | char *kwnames[] = { | |
31738 | (char *) "self", NULL | |
31739 | }; | |
31740 | ||
31741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31744 | { |
31745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31746 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31747 | ||
31748 | wxPyEndAllowThreads(__tstate); | |
31749 | if (PyErr_Occurred()) SWIG_fail; | |
31750 | } | |
31751 | { | |
31752 | resultobj = wxPyMake_wxObject(result); | |
31753 | } | |
31754 | return resultobj; | |
31755 | fail: | |
31756 | return NULL; | |
31757 | } | |
31758 | ||
31759 | ||
31760 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31761 | PyObject *resultobj; | |
31762 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31763 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31764 | PyObject * obj0 = 0 ; | |
31765 | PyObject * obj1 = 0 ; | |
31766 | char *kwnames[] = { | |
31767 | (char *) "self",(char *) "menu", NULL | |
31768 | }; | |
31769 | ||
31770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31775 | { |
31776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31777 | (arg1)->SetMenu(arg2); | |
31778 | ||
31779 | wxPyEndAllowThreads(__tstate); | |
31780 | if (PyErr_Occurred()) SWIG_fail; | |
31781 | } | |
31782 | Py_INCREF(Py_None); resultobj = Py_None; | |
31783 | return resultobj; | |
31784 | fail: | |
31785 | return NULL; | |
31786 | } | |
31787 | ||
31788 | ||
31789 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31790 | PyObject *resultobj; | |
31791 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31792 | int arg2 ; | |
31793 | PyObject * obj0 = 0 ; | |
994141e6 | 31794 | PyObject * obj1 = 0 ; |
d14a1e28 | 31795 | char *kwnames[] = { |
242b7b46 | 31796 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31797 | }; |
31798 | ||
994141e6 | 31799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31802 | arg2 = (int) SWIG_AsInt(obj1); | |
31803 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31804 | { |
31805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31806 | (arg1)->SetId(arg2); | |
31807 | ||
31808 | wxPyEndAllowThreads(__tstate); | |
31809 | if (PyErr_Occurred()) SWIG_fail; | |
31810 | } | |
31811 | Py_INCREF(Py_None); resultobj = Py_None; | |
31812 | return resultobj; | |
31813 | fail: | |
31814 | return NULL; | |
31815 | } | |
31816 | ||
31817 | ||
31818 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31819 | PyObject *resultobj; | |
31820 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31821 | int result; | |
31822 | PyObject * obj0 = 0 ; | |
31823 | char *kwnames[] = { | |
31824 | (char *) "self", NULL | |
31825 | }; | |
31826 | ||
31827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31830 | { |
31831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31832 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31833 | ||
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
15afbcd0 | 31837 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31838 | return resultobj; |
31839 | fail: | |
31840 | return NULL; | |
31841 | } | |
31842 | ||
31843 | ||
31844 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31845 | PyObject *resultobj; | |
31846 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31847 | bool result; | |
31848 | PyObject * obj0 = 0 ; | |
31849 | char *kwnames[] = { | |
31850 | (char *) "self", NULL | |
31851 | }; | |
31852 | ||
31853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31856 | { |
31857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31858 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31859 | ||
31860 | wxPyEndAllowThreads(__tstate); | |
31861 | if (PyErr_Occurred()) SWIG_fail; | |
31862 | } | |
4f89f6a3 RD |
31863 | { |
31864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31865 | } | |
d14a1e28 RD |
31866 | return resultobj; |
31867 | fail: | |
31868 | return NULL; | |
31869 | } | |
31870 | ||
31871 | ||
31872 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31873 | PyObject *resultobj; | |
31874 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31875 | wxString *arg2 = 0 ; | |
e811c8ce | 31876 | bool temp2 = False ; |
d14a1e28 RD |
31877 | PyObject * obj0 = 0 ; |
31878 | PyObject * obj1 = 0 ; | |
31879 | char *kwnames[] = { | |
31880 | (char *) "self",(char *) "str", NULL | |
31881 | }; | |
31882 | ||
31883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31886 | { |
31887 | arg2 = wxString_in_helper(obj1); | |
31888 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31889 | temp2 = True; |
d14a1e28 RD |
31890 | } |
31891 | { | |
31892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31893 | (arg1)->SetText((wxString const &)*arg2); | |
31894 | ||
31895 | wxPyEndAllowThreads(__tstate); | |
31896 | if (PyErr_Occurred()) SWIG_fail; | |
31897 | } | |
31898 | Py_INCREF(Py_None); resultobj = Py_None; | |
31899 | { | |
31900 | if (temp2) | |
31901 | delete arg2; | |
31902 | } | |
31903 | return resultobj; | |
31904 | fail: | |
31905 | { | |
31906 | if (temp2) | |
31907 | delete arg2; | |
31908 | } | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
31913 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31914 | PyObject *resultobj; | |
31915 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31916 | wxString result; | |
31917 | PyObject * obj0 = 0 ; | |
31918 | char *kwnames[] = { | |
31919 | (char *) "self", NULL | |
31920 | }; | |
31921 | ||
31922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31925 | { |
31926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31927 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31928 | ||
31929 | wxPyEndAllowThreads(__tstate); | |
31930 | if (PyErr_Occurred()) SWIG_fail; | |
31931 | } | |
31932 | { | |
31933 | #if wxUSE_UNICODE | |
31934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31935 | #else | |
31936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31937 | #endif | |
31938 | } | |
31939 | return resultobj; | |
31940 | fail: | |
31941 | return NULL; | |
31942 | } | |
31943 | ||
31944 | ||
31945 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31946 | PyObject *resultobj; | |
31947 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31948 | wxString *result; | |
31949 | PyObject * obj0 = 0 ; | |
31950 | char *kwnames[] = { | |
31951 | (char *) "self", NULL | |
31952 | }; | |
31953 | ||
31954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31957 | { |
31958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31959 | { | |
31960 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31961 | result = (wxString *) &_result_ref; | |
31962 | } | |
31963 | ||
31964 | wxPyEndAllowThreads(__tstate); | |
31965 | if (PyErr_Occurred()) SWIG_fail; | |
31966 | } | |
cc6dd355 RD |
31967 | { |
31968 | #if wxUSE_UNICODE | |
31969 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31970 | #else | |
31971 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31972 | #endif | |
31973 | } | |
d14a1e28 RD |
31974 | return resultobj; |
31975 | fail: | |
31976 | return NULL; | |
31977 | } | |
31978 | ||
31979 | ||
31980 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31981 | PyObject *resultobj; | |
31982 | wxString *arg1 = 0 ; | |
31983 | wxString result; | |
e811c8ce | 31984 | bool temp1 = False ; |
d14a1e28 RD |
31985 | PyObject * obj0 = 0 ; |
31986 | char *kwnames[] = { | |
31987 | (char *) "text", NULL | |
31988 | }; | |
31989 | ||
31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31991 | { | |
31992 | arg1 = wxString_in_helper(obj0); | |
31993 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 31994 | temp1 = True; |
d14a1e28 RD |
31995 | } |
31996 | { | |
31997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31998 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
31999 | ||
32000 | wxPyEndAllowThreads(__tstate); | |
32001 | if (PyErr_Occurred()) SWIG_fail; | |
32002 | } | |
32003 | { | |
32004 | #if wxUSE_UNICODE | |
32005 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32006 | #else | |
32007 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32008 | #endif | |
32009 | } | |
32010 | { | |
32011 | if (temp1) | |
32012 | delete arg1; | |
32013 | } | |
32014 | return resultobj; | |
32015 | fail: | |
32016 | { | |
32017 | if (temp1) | |
32018 | delete arg1; | |
32019 | } | |
32020 | return NULL; | |
32021 | } | |
32022 | ||
32023 | ||
32024 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32025 | PyObject *resultobj; | |
32026 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32027 | int result; | |
32028 | PyObject * obj0 = 0 ; | |
32029 | char *kwnames[] = { | |
32030 | (char *) "self", NULL | |
32031 | }; | |
32032 | ||
32033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32036 | { |
32037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32038 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32039 | ||
32040 | wxPyEndAllowThreads(__tstate); | |
32041 | if (PyErr_Occurred()) SWIG_fail; | |
32042 | } | |
15afbcd0 | 32043 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32044 | return resultobj; |
32045 | fail: | |
32046 | return NULL; | |
32047 | } | |
32048 | ||
32049 | ||
a95a7133 RD |
32050 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { |
32051 | PyObject *resultobj; | |
32052 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32053 | int arg2 ; | |
32054 | PyObject * obj0 = 0 ; | |
32055 | PyObject * obj1 = 0 ; | |
32056 | char *kwnames[] = { | |
32057 | (char *) "self",(char *) "kind", NULL | |
32058 | }; | |
32059 | ||
32060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32063 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32064 | if (PyErr_Occurred()) SWIG_fail; | |
32065 | { | |
32066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32067 | (arg1)->SetKind((wxItemKind )arg2); | |
32068 | ||
32069 | wxPyEndAllowThreads(__tstate); | |
32070 | if (PyErr_Occurred()) SWIG_fail; | |
32071 | } | |
32072 | Py_INCREF(Py_None); resultobj = Py_None; | |
32073 | return resultobj; | |
32074 | fail: | |
32075 | return NULL; | |
32076 | } | |
32077 | ||
32078 | ||
d14a1e28 RD |
32079 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
32080 | PyObject *resultobj; | |
32081 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32082 | bool arg2 ; | |
32083 | PyObject * obj0 = 0 ; | |
32084 | PyObject * obj1 = 0 ; | |
32085 | char *kwnames[] = { | |
32086 | (char *) "self",(char *) "checkable", NULL | |
32087 | }; | |
32088 | ||
32089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32092 | arg2 = (bool) SWIG_AsBool(obj1); | |
32093 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32094 | { |
32095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32096 | (arg1)->SetCheckable(arg2); | |
32097 | ||
32098 | wxPyEndAllowThreads(__tstate); | |
32099 | if (PyErr_Occurred()) SWIG_fail; | |
32100 | } | |
32101 | Py_INCREF(Py_None); resultobj = Py_None; | |
32102 | return resultobj; | |
32103 | fail: | |
32104 | return NULL; | |
32105 | } | |
32106 | ||
32107 | ||
32108 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32109 | PyObject *resultobj; | |
32110 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32111 | bool result; | |
32112 | PyObject * obj0 = 0 ; | |
32113 | char *kwnames[] = { | |
32114 | (char *) "self", NULL | |
32115 | }; | |
32116 | ||
32117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32120 | { |
32121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32122 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32123 | ||
32124 | wxPyEndAllowThreads(__tstate); | |
32125 | if (PyErr_Occurred()) SWIG_fail; | |
32126 | } | |
4f89f6a3 RD |
32127 | { |
32128 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32129 | } | |
d14a1e28 RD |
32130 | return resultobj; |
32131 | fail: | |
32132 | return NULL; | |
32133 | } | |
32134 | ||
32135 | ||
32136 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32137 | PyObject *resultobj; | |
32138 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32139 | bool result; | |
32140 | PyObject * obj0 = 0 ; | |
32141 | char *kwnames[] = { | |
32142 | (char *) "self", NULL | |
32143 | }; | |
32144 | ||
32145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32148 | { |
32149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32150 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32151 | ||
32152 | wxPyEndAllowThreads(__tstate); | |
32153 | if (PyErr_Occurred()) SWIG_fail; | |
32154 | } | |
4f89f6a3 RD |
32155 | { |
32156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32157 | } | |
d14a1e28 RD |
32158 | return resultobj; |
32159 | fail: | |
32160 | return NULL; | |
32161 | } | |
32162 | ||
32163 | ||
32164 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32165 | PyObject *resultobj; | |
32166 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32167 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32168 | PyObject * obj0 = 0 ; | |
32169 | PyObject * obj1 = 0 ; | |
32170 | char *kwnames[] = { | |
32171 | (char *) "self",(char *) "menu", NULL | |
32172 | }; | |
32173 | ||
32174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32179 | { |
32180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32181 | (arg1)->SetSubMenu(arg2); | |
32182 | ||
32183 | wxPyEndAllowThreads(__tstate); | |
32184 | if (PyErr_Occurred()) SWIG_fail; | |
32185 | } | |
32186 | Py_INCREF(Py_None); resultobj = Py_None; | |
32187 | return resultobj; | |
32188 | fail: | |
32189 | return NULL; | |
32190 | } | |
32191 | ||
32192 | ||
32193 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32194 | PyObject *resultobj; | |
32195 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32196 | wxMenu *result; | |
32197 | PyObject * obj0 = 0 ; | |
32198 | char *kwnames[] = { | |
32199 | (char *) "self", NULL | |
32200 | }; | |
32201 | ||
32202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32205 | { |
32206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32207 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32208 | ||
32209 | wxPyEndAllowThreads(__tstate); | |
32210 | if (PyErr_Occurred()) SWIG_fail; | |
32211 | } | |
32212 | { | |
32213 | resultobj = wxPyMake_wxObject(result); | |
32214 | } | |
32215 | return resultobj; | |
32216 | fail: | |
32217 | return NULL; | |
32218 | } | |
32219 | ||
32220 | ||
32221 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32222 | PyObject *resultobj; | |
32223 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32224 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32225 | PyObject * obj0 = 0 ; |
32226 | PyObject * obj1 = 0 ; | |
32227 | char *kwnames[] = { | |
32228 | (char *) "self",(char *) "enable", NULL | |
32229 | }; | |
32230 | ||
32231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32234 | if (obj1) { |
15afbcd0 RD |
32235 | arg2 = (bool) SWIG_AsBool(obj1); |
32236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32237 | } |
32238 | { | |
32239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32240 | (arg1)->Enable(arg2); | |
32241 | ||
32242 | wxPyEndAllowThreads(__tstate); | |
32243 | if (PyErr_Occurred()) SWIG_fail; | |
32244 | } | |
32245 | Py_INCREF(Py_None); resultobj = Py_None; | |
32246 | return resultobj; | |
32247 | fail: | |
32248 | return NULL; | |
32249 | } | |
32250 | ||
32251 | ||
32252 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32253 | PyObject *resultobj; | |
32254 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32255 | bool result; | |
32256 | PyObject * obj0 = 0 ; | |
32257 | char *kwnames[] = { | |
32258 | (char *) "self", NULL | |
32259 | }; | |
32260 | ||
32261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32264 | { |
32265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32266 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32267 | ||
32268 | wxPyEndAllowThreads(__tstate); | |
32269 | if (PyErr_Occurred()) SWIG_fail; | |
32270 | } | |
4f89f6a3 RD |
32271 | { |
32272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32273 | } | |
d14a1e28 RD |
32274 | return resultobj; |
32275 | fail: | |
32276 | return NULL; | |
32277 | } | |
32278 | ||
32279 | ||
32280 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32281 | PyObject *resultobj; | |
32282 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32283 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32284 | PyObject * obj0 = 0 ; |
32285 | PyObject * obj1 = 0 ; | |
32286 | char *kwnames[] = { | |
32287 | (char *) "self",(char *) "check", NULL | |
32288 | }; | |
32289 | ||
32290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32293 | if (obj1) { |
15afbcd0 RD |
32294 | arg2 = (bool) SWIG_AsBool(obj1); |
32295 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32296 | } |
32297 | { | |
32298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32299 | (arg1)->Check(arg2); | |
32300 | ||
32301 | wxPyEndAllowThreads(__tstate); | |
32302 | if (PyErr_Occurred()) SWIG_fail; | |
32303 | } | |
32304 | Py_INCREF(Py_None); resultobj = Py_None; | |
32305 | return resultobj; | |
32306 | fail: | |
32307 | return NULL; | |
32308 | } | |
32309 | ||
32310 | ||
32311 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32312 | PyObject *resultobj; | |
32313 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32314 | bool result; | |
32315 | PyObject * obj0 = 0 ; | |
32316 | char *kwnames[] = { | |
32317 | (char *) "self", NULL | |
32318 | }; | |
32319 | ||
32320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32323 | { |
32324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32325 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32326 | ||
32327 | wxPyEndAllowThreads(__tstate); | |
32328 | if (PyErr_Occurred()) SWIG_fail; | |
32329 | } | |
4f89f6a3 RD |
32330 | { |
32331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32332 | } | |
d14a1e28 RD |
32333 | return resultobj; |
32334 | fail: | |
32335 | return NULL; | |
32336 | } | |
32337 | ||
32338 | ||
32339 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32340 | PyObject *resultobj; | |
32341 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32342 | PyObject * obj0 = 0 ; | |
32343 | char *kwnames[] = { | |
32344 | (char *) "self", NULL | |
32345 | }; | |
32346 | ||
32347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32350 | { |
32351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32352 | (arg1)->Toggle(); | |
32353 | ||
32354 | wxPyEndAllowThreads(__tstate); | |
32355 | if (PyErr_Occurred()) SWIG_fail; | |
32356 | } | |
32357 | Py_INCREF(Py_None); resultobj = Py_None; | |
32358 | return resultobj; | |
32359 | fail: | |
32360 | return NULL; | |
32361 | } | |
32362 | ||
32363 | ||
32364 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32365 | PyObject *resultobj; | |
32366 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32367 | wxString *arg2 = 0 ; | |
e811c8ce | 32368 | bool temp2 = False ; |
d14a1e28 RD |
32369 | PyObject * obj0 = 0 ; |
32370 | PyObject * obj1 = 0 ; | |
32371 | char *kwnames[] = { | |
32372 | (char *) "self",(char *) "str", NULL | |
32373 | }; | |
32374 | ||
32375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32378 | { |
32379 | arg2 = wxString_in_helper(obj1); | |
32380 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32381 | temp2 = True; |
d14a1e28 RD |
32382 | } |
32383 | { | |
32384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32385 | (arg1)->SetHelp((wxString const &)*arg2); | |
32386 | ||
32387 | wxPyEndAllowThreads(__tstate); | |
32388 | if (PyErr_Occurred()) SWIG_fail; | |
32389 | } | |
32390 | Py_INCREF(Py_None); resultobj = Py_None; | |
32391 | { | |
32392 | if (temp2) | |
32393 | delete arg2; | |
32394 | } | |
32395 | return resultobj; | |
32396 | fail: | |
32397 | { | |
32398 | if (temp2) | |
32399 | delete arg2; | |
32400 | } | |
32401 | return NULL; | |
32402 | } | |
32403 | ||
32404 | ||
32405 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32406 | PyObject *resultobj; | |
32407 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32408 | wxString *result; | |
32409 | PyObject * obj0 = 0 ; | |
32410 | char *kwnames[] = { | |
32411 | (char *) "self", NULL | |
32412 | }; | |
32413 | ||
32414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32417 | { |
32418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32419 | { | |
32420 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32421 | result = (wxString *) &_result_ref; | |
32422 | } | |
32423 | ||
32424 | wxPyEndAllowThreads(__tstate); | |
32425 | if (PyErr_Occurred()) SWIG_fail; | |
32426 | } | |
cc6dd355 RD |
32427 | { |
32428 | #if wxUSE_UNICODE | |
32429 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32430 | #else | |
32431 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32432 | #endif | |
32433 | } | |
d14a1e28 RD |
32434 | return resultobj; |
32435 | fail: | |
32436 | return NULL; | |
32437 | } | |
32438 | ||
32439 | ||
32440 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32441 | PyObject *resultobj; | |
32442 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32443 | wxAcceleratorEntry *result; | |
32444 | PyObject * obj0 = 0 ; | |
32445 | char *kwnames[] = { | |
32446 | (char *) "self", NULL | |
32447 | }; | |
32448 | ||
32449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32452 | { |
32453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32454 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32455 | ||
32456 | wxPyEndAllowThreads(__tstate); | |
32457 | if (PyErr_Occurred()) SWIG_fail; | |
32458 | } | |
15afbcd0 | 32459 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
32460 | return resultobj; |
32461 | fail: | |
32462 | return NULL; | |
32463 | } | |
32464 | ||
32465 | ||
32466 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32467 | PyObject *resultobj; | |
32468 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32469 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32470 | PyObject * obj0 = 0 ; | |
32471 | PyObject * obj1 = 0 ; | |
32472 | char *kwnames[] = { | |
32473 | (char *) "self",(char *) "accel", NULL | |
32474 | }; | |
32475 | ||
32476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32481 | { |
32482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32483 | (arg1)->SetAccel(arg2); | |
32484 | ||
32485 | wxPyEndAllowThreads(__tstate); | |
32486 | if (PyErr_Occurred()) SWIG_fail; | |
32487 | } | |
32488 | Py_INCREF(Py_None); resultobj = Py_None; | |
32489 | return resultobj; | |
32490 | fail: | |
32491 | return NULL; | |
32492 | } | |
32493 | ||
32494 | ||
32495 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32496 | PyObject *resultobj; | |
32497 | int result; | |
32498 | char *kwnames[] = { | |
32499 | NULL | |
32500 | }; | |
32501 | ||
32502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32503 | { | |
32504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32505 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
32506 | ||
32507 | wxPyEndAllowThreads(__tstate); | |
32508 | if (PyErr_Occurred()) SWIG_fail; | |
32509 | } | |
15afbcd0 | 32510 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32511 | return resultobj; |
32512 | fail: | |
32513 | return NULL; | |
32514 | } | |
32515 | ||
32516 | ||
32517 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32518 | PyObject *resultobj; | |
32519 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32520 | wxBitmap *arg2 = 0 ; | |
32521 | PyObject * obj0 = 0 ; | |
32522 | PyObject * obj1 = 0 ; | |
32523 | char *kwnames[] = { | |
32524 | (char *) "self",(char *) "bitmap", NULL | |
32525 | }; | |
32526 | ||
32527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32531 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32532 | SWIG_fail; | |
d14a1e28 | 32533 | if (arg2 == NULL) { |
15afbcd0 RD |
32534 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32535 | SWIG_fail; | |
d14a1e28 RD |
32536 | } |
32537 | { | |
32538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32539 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32540 | ||
32541 | wxPyEndAllowThreads(__tstate); | |
32542 | if (PyErr_Occurred()) SWIG_fail; | |
32543 | } | |
32544 | Py_INCREF(Py_None); resultobj = Py_None; | |
32545 | return resultobj; | |
32546 | fail: | |
32547 | return NULL; | |
32548 | } | |
32549 | ||
32550 | ||
32551 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32552 | PyObject *resultobj; | |
32553 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32554 | wxBitmap *result; | |
32555 | PyObject * obj0 = 0 ; | |
32556 | char *kwnames[] = { | |
32557 | (char *) "self", NULL | |
32558 | }; | |
32559 | ||
32560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32563 | { |
32564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32565 | { | |
32566 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32567 | result = (wxBitmap *) &_result_ref; | |
32568 | } | |
32569 | ||
32570 | wxPyEndAllowThreads(__tstate); | |
32571 | if (PyErr_Occurred()) SWIG_fail; | |
32572 | } | |
4276dc52 RD |
32573 | { |
32574 | wxBitmap* resultptr = new wxBitmap(*result); | |
32575 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32576 | } | |
d14a1e28 RD |
32577 | return resultobj; |
32578 | fail: | |
32579 | return NULL; | |
32580 | } | |
32581 | ||
32582 | ||
32583 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32584 | PyObject *obj; | |
32585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32586 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32587 | Py_INCREF(obj); | |
32588 | return Py_BuildValue((char *)""); | |
32589 | } | |
b2dc1044 RD |
32590 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
32591 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
32592 | return 1; | |
32593 | } | |
32594 | ||
32595 | ||
32596 | static PyObject *_wrap_ControlNameStr_get() { | |
32597 | PyObject *pyobj; | |
32598 | ||
32599 | { | |
32600 | #if wxUSE_UNICODE | |
32601 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32602 | #else | |
32603 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32604 | #endif | |
32605 | } | |
32606 | return pyobj; | |
32607 | } | |
32608 | ||
32609 | ||
d14a1e28 RD |
32610 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32611 | PyObject *resultobj; | |
32612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 32613 | int arg2 = (int) -1 ; |
d14a1e28 RD |
32614 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32615 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32616 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32617 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32618 | long arg5 = (long) 0 ; | |
32619 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32620 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32621 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32622 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32623 | wxControl *result; | |
32624 | wxPoint temp3 ; | |
32625 | wxSize temp4 ; | |
e811c8ce | 32626 | bool temp7 = False ; |
d14a1e28 | 32627 | PyObject * obj0 = 0 ; |
994141e6 | 32628 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32629 | PyObject * obj2 = 0 ; |
32630 | PyObject * obj3 = 0 ; | |
994141e6 | 32631 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32632 | PyObject * obj5 = 0 ; |
32633 | PyObject * obj6 = 0 ; | |
32634 | char *kwnames[] = { | |
32635 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32636 | }; | |
32637 | ||
248ed943 | 32638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
32639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
32641 | if (obj1) { |
32642 | arg2 = (int) SWIG_AsInt(obj1); | |
32643 | if (PyErr_Occurred()) SWIG_fail; | |
32644 | } | |
d14a1e28 RD |
32645 | if (obj2) { |
32646 | { | |
32647 | arg3 = &temp3; | |
32648 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32649 | } | |
32650 | } | |
32651 | if (obj3) { | |
32652 | { | |
32653 | arg4 = &temp4; | |
32654 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32655 | } | |
32656 | } | |
994141e6 | 32657 | if (obj4) { |
15afbcd0 RD |
32658 | arg5 = (long) SWIG_AsLong(obj4); |
32659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32660 | } |
d14a1e28 | 32661 | if (obj5) { |
15afbcd0 RD |
32662 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32664 | SWIG_fail; | |
d14a1e28 | 32665 | if (arg6 == NULL) { |
15afbcd0 RD |
32666 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32667 | SWIG_fail; | |
d14a1e28 RD |
32668 | } |
32669 | } | |
32670 | if (obj6) { | |
32671 | { | |
32672 | arg7 = wxString_in_helper(obj6); | |
32673 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 32674 | temp7 = True; |
d14a1e28 RD |
32675 | } |
32676 | } | |
32677 | { | |
e3b71cb8 | 32678 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32680 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32681 | ||
32682 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 32683 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32684 | } |
32685 | { | |
32686 | resultobj = wxPyMake_wxObject(result); | |
32687 | } | |
32688 | { | |
32689 | if (temp7) | |
32690 | delete arg7; | |
32691 | } | |
32692 | return resultobj; | |
32693 | fail: | |
32694 | { | |
32695 | if (temp7) | |
32696 | delete arg7; | |
32697 | } | |
32698 | return NULL; | |
32699 | } | |
32700 | ||
32701 | ||
32702 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32703 | PyObject *resultobj; | |
32704 | wxControl *result; | |
32705 | char *kwnames[] = { | |
32706 | NULL | |
32707 | }; | |
32708 | ||
32709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32710 | { | |
e3b71cb8 | 32711 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
32712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32713 | result = (wxControl *)new wxControl(); | |
32714 | ||
32715 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 32716 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32717 | } |
32718 | { | |
32719 | resultobj = wxPyMake_wxObject(result); | |
32720 | } | |
32721 | return resultobj; | |
32722 | fail: | |
32723 | return NULL; | |
32724 | } | |
32725 | ||
32726 | ||
32727 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32728 | PyObject *resultobj; | |
32729 | wxControl *arg1 = (wxControl *) 0 ; | |
32730 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 32731 | int arg3 = (int) -1 ; |
d14a1e28 RD |
32732 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32733 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32734 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32735 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32736 | long arg6 = (long) 0 ; | |
32737 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32738 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32739 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32740 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32741 | bool result; | |
32742 | wxPoint temp4 ; | |
32743 | wxSize temp5 ; | |
e811c8ce | 32744 | bool temp8 = False ; |
d14a1e28 RD |
32745 | PyObject * obj0 = 0 ; |
32746 | PyObject * obj1 = 0 ; | |
994141e6 | 32747 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32748 | PyObject * obj3 = 0 ; |
32749 | PyObject * obj4 = 0 ; | |
994141e6 | 32750 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32751 | PyObject * obj6 = 0 ; |
32752 | PyObject * obj7 = 0 ; | |
32753 | char *kwnames[] = { | |
32754 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32755 | }; | |
32756 | ||
248ed943 | 32757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
32758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32760 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
32762 | if (obj2) { |
32763 | arg3 = (int) SWIG_AsInt(obj2); | |
32764 | if (PyErr_Occurred()) SWIG_fail; | |
32765 | } | |
d14a1e28 RD |
32766 | if (obj3) { |
32767 | { | |
32768 | arg4 = &temp4; | |
32769 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32770 | } | |
32771 | } | |
32772 | if (obj4) { | |
32773 | { | |
32774 | arg5 = &temp5; | |
32775 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32776 | } | |
32777 | } | |
994141e6 | 32778 | if (obj5) { |
15afbcd0 RD |
32779 | arg6 = (long) SWIG_AsLong(obj5); |
32780 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32781 | } |
d14a1e28 | 32782 | if (obj6) { |
15afbcd0 RD |
32783 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
32784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32785 | SWIG_fail; | |
d14a1e28 | 32786 | if (arg7 == NULL) { |
15afbcd0 RD |
32787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32788 | SWIG_fail; | |
d14a1e28 RD |
32789 | } |
32790 | } | |
32791 | if (obj7) { | |
32792 | { | |
32793 | arg8 = wxString_in_helper(obj7); | |
32794 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 32795 | temp8 = True; |
d14a1e28 RD |
32796 | } |
32797 | } | |
32798 | { | |
32799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32800 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32801 | ||
32802 | wxPyEndAllowThreads(__tstate); | |
32803 | if (PyErr_Occurred()) SWIG_fail; | |
32804 | } | |
4f89f6a3 RD |
32805 | { |
32806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32807 | } | |
d14a1e28 RD |
32808 | { |
32809 | if (temp8) | |
32810 | delete arg8; | |
32811 | } | |
32812 | return resultobj; | |
32813 | fail: | |
32814 | { | |
32815 | if (temp8) | |
32816 | delete arg8; | |
32817 | } | |
32818 | return NULL; | |
32819 | } | |
32820 | ||
32821 | ||
32822 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32823 | PyObject *resultobj; | |
32824 | wxControl *arg1 = (wxControl *) 0 ; | |
32825 | wxCommandEvent *arg2 = 0 ; | |
32826 | PyObject * obj0 = 0 ; | |
32827 | PyObject * obj1 = 0 ; | |
32828 | char *kwnames[] = { | |
32829 | (char *) "self",(char *) "event", NULL | |
32830 | }; | |
32831 | ||
32832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32835 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32836 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32837 | SWIG_fail; | |
d14a1e28 | 32838 | if (arg2 == NULL) { |
15afbcd0 RD |
32839 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32840 | SWIG_fail; | |
d14a1e28 RD |
32841 | } |
32842 | { | |
32843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32844 | (arg1)->Command(*arg2); | |
32845 | ||
32846 | wxPyEndAllowThreads(__tstate); | |
32847 | if (PyErr_Occurred()) SWIG_fail; | |
32848 | } | |
32849 | Py_INCREF(Py_None); resultobj = Py_None; | |
32850 | return resultobj; | |
32851 | fail: | |
32852 | return NULL; | |
32853 | } | |
32854 | ||
32855 | ||
32856 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32857 | PyObject *resultobj; | |
32858 | wxControl *arg1 = (wxControl *) 0 ; | |
32859 | wxString result; | |
32860 | PyObject * obj0 = 0 ; | |
32861 | char *kwnames[] = { | |
32862 | (char *) "self", NULL | |
32863 | }; | |
32864 | ||
32865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32868 | { |
32869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32870 | result = (arg1)->GetLabel(); | |
32871 | ||
32872 | wxPyEndAllowThreads(__tstate); | |
32873 | if (PyErr_Occurred()) SWIG_fail; | |
32874 | } | |
32875 | { | |
32876 | #if wxUSE_UNICODE | |
32877 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32878 | #else | |
32879 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32880 | #endif | |
32881 | } | |
32882 | return resultobj; | |
32883 | fail: | |
32884 | return NULL; | |
32885 | } | |
32886 | ||
32887 | ||
32888 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32889 | PyObject *resultobj; | |
32890 | wxControl *arg1 = (wxControl *) 0 ; | |
32891 | wxString *arg2 = 0 ; | |
e811c8ce | 32892 | bool temp2 = False ; |
d14a1e28 RD |
32893 | PyObject * obj0 = 0 ; |
32894 | PyObject * obj1 = 0 ; | |
32895 | char *kwnames[] = { | |
32896 | (char *) "self",(char *) "label", NULL | |
32897 | }; | |
32898 | ||
32899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32902 | { |
32903 | arg2 = wxString_in_helper(obj1); | |
32904 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32905 | temp2 = True; |
d14a1e28 RD |
32906 | } |
32907 | { | |
32908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32909 | (arg1)->SetLabel((wxString const &)*arg2); | |
32910 | ||
32911 | wxPyEndAllowThreads(__tstate); | |
32912 | if (PyErr_Occurred()) SWIG_fail; | |
32913 | } | |
32914 | Py_INCREF(Py_None); resultobj = Py_None; | |
32915 | { | |
32916 | if (temp2) | |
32917 | delete arg2; | |
32918 | } | |
32919 | return resultobj; | |
32920 | fail: | |
32921 | { | |
32922 | if (temp2) | |
32923 | delete arg2; | |
32924 | } | |
32925 | return NULL; | |
32926 | } | |
32927 | ||
32928 | ||
74a57fcd RD |
32929 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
32930 | PyObject *resultobj; | |
32931 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
32932 | wxVisualAttributes result; | |
32933 | PyObject * obj0 = 0 ; | |
32934 | char *kwnames[] = { | |
32935 | (char *) "variant", NULL | |
32936 | }; | |
32937 | ||
32938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
32939 | if (obj0) { | |
32940 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
32941 | if (PyErr_Occurred()) SWIG_fail; | |
32942 | } | |
32943 | { | |
e3b71cb8 | 32944 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
32945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32946 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
32947 | ||
32948 | wxPyEndAllowThreads(__tstate); | |
e3b71cb8 | 32949 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
32950 | } |
32951 | { | |
32952 | wxVisualAttributes * resultptr; | |
32953 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
32954 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
32955 | } | |
32956 | return resultobj; | |
32957 | fail: | |
32958 | return NULL; | |
32959 | } | |
32960 | ||
32961 | ||
d14a1e28 RD |
32962 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { |
32963 | PyObject *obj; | |
32964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32965 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32966 | Py_INCREF(obj); | |
32967 | return Py_BuildValue((char *)""); | |
32968 | } | |
32969 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32970 | PyObject *resultobj; | |
32971 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32972 | wxString *arg2 = 0 ; | |
32973 | PyObject *arg3 = (PyObject *) NULL ; | |
32974 | int result; | |
e811c8ce | 32975 | bool temp2 = False ; |
d14a1e28 RD |
32976 | PyObject * obj0 = 0 ; |
32977 | PyObject * obj1 = 0 ; | |
32978 | PyObject * obj2 = 0 ; | |
32979 | char *kwnames[] = { | |
32980 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32981 | }; | |
32982 | ||
32983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
32984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32986 | { |
32987 | arg2 = wxString_in_helper(obj1); | |
32988 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32989 | temp2 = True; |
d14a1e28 RD |
32990 | } |
32991 | if (obj2) { | |
32992 | arg3 = obj2; | |
32993 | } | |
32994 | { | |
32995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32996 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32997 | ||
32998 | wxPyEndAllowThreads(__tstate); | |
32999 | if (PyErr_Occurred()) SWIG_fail; | |
33000 | } | |
15afbcd0 | 33001 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33002 | { |
33003 | if (temp2) | |
33004 | delete arg2; | |
33005 | } | |
33006 | return resultobj; | |
33007 | fail: | |
33008 | { | |
33009 | if (temp2) | |
33010 | delete arg2; | |
33011 | } | |
33012 | return NULL; | |
33013 | } | |
33014 | ||
33015 | ||
33016 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33017 | PyObject *resultobj; | |
33018 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33019 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 33020 | bool temp2 = False ; |
d14a1e28 RD |
33021 | PyObject * obj0 = 0 ; |
33022 | PyObject * obj1 = 0 ; | |
33023 | char *kwnames[] = { | |
33024 | (char *) "self",(char *) "strings", NULL | |
33025 | }; | |
33026 | ||
33027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33030 | { |
33031 | if (! PySequence_Check(obj1)) { | |
33032 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33033 | SWIG_fail; | |
33034 | } | |
33035 | arg2 = new wxArrayString; | |
3adfb63b | 33036 | temp2 = True; |
d14a1e28 RD |
33037 | int i, len=PySequence_Length(obj1); |
33038 | for (i=0; i<len; i++) { | |
33039 | PyObject* item = PySequence_GetItem(obj1, i); | |
33040 | #if wxUSE_UNICODE | |
33041 | PyObject* str = PyObject_Unicode(item); | |
33042 | #else | |
33043 | PyObject* str = PyObject_Str(item); | |
33044 | #endif | |
74a57fcd | 33045 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33046 | arg2->Add(Py2wxString(str)); |
33047 | Py_DECREF(item); | |
33048 | Py_DECREF(str); | |
33049 | } | |
33050 | } | |
33051 | { | |
33052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33053 | (arg1)->Append((wxArrayString const &)*arg2); | |
33054 | ||
33055 | wxPyEndAllowThreads(__tstate); | |
33056 | if (PyErr_Occurred()) SWIG_fail; | |
33057 | } | |
33058 | Py_INCREF(Py_None); resultobj = Py_None; | |
33059 | { | |
3adfb63b | 33060 | if (temp2) delete arg2; |
d14a1e28 RD |
33061 | } |
33062 | return resultobj; | |
33063 | fail: | |
33064 | { | |
3adfb63b | 33065 | if (temp2) delete arg2; |
d14a1e28 RD |
33066 | } |
33067 | return NULL; | |
33068 | } | |
33069 | ||
33070 | ||
33071 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33072 | PyObject *resultobj; | |
33073 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33074 | wxString *arg2 = 0 ; | |
33075 | int arg3 ; | |
33076 | PyObject *arg4 = (PyObject *) NULL ; | |
33077 | int result; | |
e811c8ce | 33078 | bool temp2 = False ; |
d14a1e28 RD |
33079 | PyObject * obj0 = 0 ; |
33080 | PyObject * obj1 = 0 ; | |
994141e6 | 33081 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33082 | PyObject * obj3 = 0 ; |
33083 | char *kwnames[] = { | |
33084 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33085 | }; | |
33086 | ||
994141e6 | 33087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
33088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33090 | { |
33091 | arg2 = wxString_in_helper(obj1); | |
33092 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33093 | temp2 = True; |
d14a1e28 | 33094 | } |
15afbcd0 RD |
33095 | arg3 = (int) SWIG_AsInt(obj2); |
33096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33097 | if (obj3) { |
33098 | arg4 = obj3; | |
33099 | } | |
33100 | { | |
33101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33102 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33103 | ||
33104 | wxPyEndAllowThreads(__tstate); | |
33105 | if (PyErr_Occurred()) SWIG_fail; | |
33106 | } | |
15afbcd0 | 33107 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33108 | { |
33109 | if (temp2) | |
33110 | delete arg2; | |
33111 | } | |
33112 | return resultobj; | |
33113 | fail: | |
33114 | { | |
33115 | if (temp2) | |
33116 | delete arg2; | |
33117 | } | |
33118 | return NULL; | |
33119 | } | |
33120 | ||
33121 | ||
33122 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33123 | PyObject *resultobj; | |
33124 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33125 | PyObject * obj0 = 0 ; | |
33126 | char *kwnames[] = { | |
33127 | (char *) "self", NULL | |
33128 | }; | |
33129 | ||
33130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33133 | { |
33134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33135 | (arg1)->Clear(); | |
33136 | ||
33137 | wxPyEndAllowThreads(__tstate); | |
33138 | if (PyErr_Occurred()) SWIG_fail; | |
33139 | } | |
33140 | Py_INCREF(Py_None); resultobj = Py_None; | |
33141 | return resultobj; | |
33142 | fail: | |
33143 | return NULL; | |
33144 | } | |
33145 | ||
33146 | ||
33147 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33148 | PyObject *resultobj; | |
33149 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33150 | int arg2 ; | |
33151 | PyObject * obj0 = 0 ; | |
994141e6 | 33152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33153 | char *kwnames[] = { |
33154 | (char *) "self",(char *) "n", NULL | |
33155 | }; | |
33156 | ||
994141e6 | 33157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33160 | arg2 = (int) SWIG_AsInt(obj1); | |
33161 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33162 | { |
33163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33164 | (arg1)->Delete(arg2); | |
33165 | ||
33166 | wxPyEndAllowThreads(__tstate); | |
33167 | if (PyErr_Occurred()) SWIG_fail; | |
33168 | } | |
33169 | Py_INCREF(Py_None); resultobj = Py_None; | |
33170 | return resultobj; | |
33171 | fail: | |
33172 | return NULL; | |
33173 | } | |
33174 | ||
33175 | ||
33176 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33177 | PyObject *resultobj; | |
33178 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33179 | int result; | |
33180 | PyObject * obj0 = 0 ; | |
33181 | char *kwnames[] = { | |
33182 | (char *) "self", NULL | |
33183 | }; | |
33184 | ||
33185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33188 | { |
33189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33190 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33191 | ||
33192 | wxPyEndAllowThreads(__tstate); | |
33193 | if (PyErr_Occurred()) SWIG_fail; | |
33194 | } | |
15afbcd0 | 33195 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33196 | return resultobj; |
33197 | fail: | |
33198 | return NULL; | |
33199 | } | |
33200 | ||
33201 | ||
33202 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33203 | PyObject *resultobj; | |
33204 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33205 | bool result; | |
33206 | PyObject * obj0 = 0 ; | |
33207 | char *kwnames[] = { | |
33208 | (char *) "self", NULL | |
33209 | }; | |
33210 | ||
33211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33214 | { |
33215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33216 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33217 | ||
33218 | wxPyEndAllowThreads(__tstate); | |
33219 | if (PyErr_Occurred()) SWIG_fail; | |
33220 | } | |
4f89f6a3 RD |
33221 | { |
33222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33223 | } | |
d14a1e28 RD |
33224 | return resultobj; |
33225 | fail: | |
33226 | return NULL; | |
33227 | } | |
33228 | ||
33229 | ||
33230 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33231 | PyObject *resultobj; | |
33232 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33233 | int arg2 ; | |
33234 | wxString result; | |
33235 | PyObject * obj0 = 0 ; | |
994141e6 | 33236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33237 | char *kwnames[] = { |
33238 | (char *) "self",(char *) "n", NULL | |
33239 | }; | |
33240 | ||
994141e6 | 33241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33244 | arg2 = (int) SWIG_AsInt(obj1); | |
33245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33246 | { |
33247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33248 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33249 | ||
33250 | wxPyEndAllowThreads(__tstate); | |
33251 | if (PyErr_Occurred()) SWIG_fail; | |
33252 | } | |
33253 | { | |
33254 | #if wxUSE_UNICODE | |
33255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33256 | #else | |
33257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33258 | #endif | |
33259 | } | |
33260 | return resultobj; | |
33261 | fail: | |
33262 | return NULL; | |
33263 | } | |
33264 | ||
33265 | ||
33266 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33267 | PyObject *resultobj; | |
33268 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33269 | wxArrayString result; | |
33270 | PyObject * obj0 = 0 ; | |
33271 | char *kwnames[] = { | |
33272 | (char *) "self", NULL | |
33273 | }; | |
33274 | ||
33275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33278 | { |
33279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33280 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33281 | ||
33282 | wxPyEndAllowThreads(__tstate); | |
33283 | if (PyErr_Occurred()) SWIG_fail; | |
33284 | } | |
33285 | { | |
33286 | resultobj = wxArrayString2PyList_helper(result); | |
33287 | } | |
33288 | return resultobj; | |
33289 | fail: | |
33290 | return NULL; | |
33291 | } | |
33292 | ||
33293 | ||
33294 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33295 | PyObject *resultobj; | |
33296 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33297 | int arg2 ; | |
33298 | wxString *arg3 = 0 ; | |
e811c8ce | 33299 | bool temp3 = False ; |
d14a1e28 | 33300 | PyObject * obj0 = 0 ; |
994141e6 | 33301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33302 | PyObject * obj2 = 0 ; |
33303 | char *kwnames[] = { | |
33304 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33305 | }; | |
33306 | ||
994141e6 | 33307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33310 | arg2 = (int) SWIG_AsInt(obj1); | |
33311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33312 | { |
33313 | arg3 = wxString_in_helper(obj2); | |
33314 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 33315 | temp3 = True; |
d14a1e28 RD |
33316 | } |
33317 | { | |
33318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33319 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33320 | ||
33321 | wxPyEndAllowThreads(__tstate); | |
33322 | if (PyErr_Occurred()) SWIG_fail; | |
33323 | } | |
33324 | Py_INCREF(Py_None); resultobj = Py_None; | |
33325 | { | |
33326 | if (temp3) | |
33327 | delete arg3; | |
33328 | } | |
33329 | return resultobj; | |
33330 | fail: | |
33331 | { | |
33332 | if (temp3) | |
33333 | delete arg3; | |
33334 | } | |
33335 | return NULL; | |
33336 | } | |
33337 | ||
33338 | ||
33339 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33340 | PyObject *resultobj; | |
33341 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33342 | wxString *arg2 = 0 ; | |
33343 | int result; | |
e811c8ce | 33344 | bool temp2 = False ; |
d14a1e28 RD |
33345 | PyObject * obj0 = 0 ; |
33346 | PyObject * obj1 = 0 ; | |
33347 | char *kwnames[] = { | |
33348 | (char *) "self",(char *) "s", NULL | |
33349 | }; | |
33350 | ||
33351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33354 | { |
33355 | arg2 = wxString_in_helper(obj1); | |
33356 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33357 | temp2 = True; |
d14a1e28 RD |
33358 | } |
33359 | { | |
33360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33361 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33362 | ||
33363 | wxPyEndAllowThreads(__tstate); | |
33364 | if (PyErr_Occurred()) SWIG_fail; | |
33365 | } | |
15afbcd0 | 33366 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33367 | { |
33368 | if (temp2) | |
33369 | delete arg2; | |
33370 | } | |
33371 | return resultobj; | |
33372 | fail: | |
33373 | { | |
33374 | if (temp2) | |
33375 | delete arg2; | |
33376 | } | |
33377 | return NULL; | |
33378 | } | |
33379 | ||
33380 | ||
33381 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33382 | PyObject *resultobj; | |
33383 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33384 | int arg2 ; | |
33385 | PyObject * obj0 = 0 ; | |
994141e6 | 33386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33387 | char *kwnames[] = { |
33388 | (char *) "self",(char *) "n", NULL | |
33389 | }; | |
33390 | ||
994141e6 | 33391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33394 | arg2 = (int) SWIG_AsInt(obj1); | |
33395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33396 | { |
33397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33398 | (arg1)->Select(arg2); | |
33399 | ||
33400 | wxPyEndAllowThreads(__tstate); | |
33401 | if (PyErr_Occurred()) SWIG_fail; | |
33402 | } | |
33403 | Py_INCREF(Py_None); resultobj = Py_None; | |
33404 | return resultobj; | |
33405 | fail: | |
33406 | return NULL; | |
33407 | } | |
33408 | ||
33409 | ||
33410 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33411 | PyObject *resultobj; | |
33412 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33413 | int result; | |
33414 | PyObject * obj0 = 0 ; | |
33415 | char *kwnames[] = { | |
33416 | (char *) "self", NULL | |
33417 | }; | |
33418 | ||
33419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33422 | { |
33423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33424 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33425 | ||
33426 | wxPyEndAllowThreads(__tstate); | |
33427 | if (PyErr_Occurred()) SWIG_fail; | |
33428 | } | |
15afbcd0 | 33429 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33430 | return resultobj; |
33431 | fail: | |
33432 | return NULL; | |
33433 | } | |
33434 | ||
33435 | ||
33436 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33437 | PyObject *resultobj; | |
33438 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33439 | wxString result; | |
33440 | PyObject * obj0 = 0 ; | |
33441 | char *kwnames[] = { | |
33442 | (char *) "self", NULL | |
33443 | }; | |
33444 | ||
33445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33448 | { |
33449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33450 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33451 | ||
33452 | wxPyEndAllowThreads(__tstate); | |
33453 | if (PyErr_Occurred()) SWIG_fail; | |
33454 | } | |
33455 | { | |
33456 | #if wxUSE_UNICODE | |
33457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33458 | #else | |
33459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33460 | #endif | |
33461 | } | |
33462 | return resultobj; | |
33463 | fail: | |
33464 | return NULL; | |
33465 | } | |
33466 | ||
33467 | ||
33468 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33469 | PyObject *resultobj; | |
33470 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33471 | int arg2 ; | |
33472 | PyObject *result; | |
33473 | PyObject * obj0 = 0 ; | |
994141e6 | 33474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33475 | char *kwnames[] = { |
33476 | (char *) "self",(char *) "n", NULL | |
33477 | }; | |
33478 | ||
994141e6 | 33479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33482 | arg2 = (int) SWIG_AsInt(obj1); | |
33483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33484 | { |
33485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33486 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33487 | ||
33488 | wxPyEndAllowThreads(__tstate); | |
33489 | if (PyErr_Occurred()) SWIG_fail; | |
33490 | } | |
33491 | resultobj = result; | |
33492 | return resultobj; | |
33493 | fail: | |
33494 | return NULL; | |
33495 | } | |
33496 | ||
33497 | ||
33498 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33499 | PyObject *resultobj; | |
33500 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33501 | int arg2 ; | |
33502 | PyObject *arg3 = (PyObject *) 0 ; | |
33503 | PyObject * obj0 = 0 ; | |
994141e6 | 33504 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33505 | PyObject * obj2 = 0 ; |
33506 | char *kwnames[] = { | |
33507 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33508 | }; | |
33509 | ||
994141e6 | 33510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33513 | arg2 = (int) SWIG_AsInt(obj1); | |
33514 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33515 | arg3 = obj2; |
33516 | { | |
33517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33518 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33519 | ||
33520 | wxPyEndAllowThreads(__tstate); | |
33521 | if (PyErr_Occurred()) SWIG_fail; | |
33522 | } | |
33523 | Py_INCREF(Py_None); resultobj = Py_None; | |
33524 | return resultobj; | |
33525 | fail: | |
33526 | return NULL; | |
33527 | } | |
33528 | ||
33529 | ||
33530 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33531 | PyObject *obj; | |
33532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33533 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33534 | Py_INCREF(obj); | |
33535 | return Py_BuildValue((char *)""); | |
33536 | } | |
33537 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33538 | PyObject *obj; | |
33539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33540 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33541 | Py_INCREF(obj); | |
33542 | return Py_BuildValue((char *)""); | |
33543 | } | |
33544 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33545 | PyObject *resultobj; | |
33546 | wxSizerItem *result; | |
33547 | char *kwnames[] = { | |
33548 | NULL | |
33549 | }; | |
33550 | ||
33551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33552 | { | |
33553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33554 | result = (wxSizerItem *)new wxSizerItem(); | |
33555 | ||
33556 | wxPyEndAllowThreads(__tstate); | |
33557 | if (PyErr_Occurred()) SWIG_fail; | |
33558 | } | |
15afbcd0 | 33559 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33560 | return resultobj; |
33561 | fail: | |
33562 | return NULL; | |
33563 | } | |
33564 | ||
33565 | ||
248ed943 | 33566 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 33567 | PyObject *resultobj; |
248ed943 | 33568 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
33569 | int arg2 ; |
33570 | int arg3 ; | |
33571 | int arg4 ; | |
248ed943 | 33572 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 | 33573 | wxSizerItem *result; |
994141e6 RD |
33574 | PyObject * obj0 = 0 ; |
33575 | PyObject * obj1 = 0 ; | |
33576 | PyObject * obj2 = 0 ; | |
33577 | PyObject * obj3 = 0 ; | |
33578 | PyObject * obj4 = 0 ; | |
d14a1e28 | 33579 | char *kwnames[] = { |
248ed943 | 33580 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
33581 | }; |
33582 | ||
248ed943 RD |
33583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
33584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
33585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15afbcd0 RD |
33586 | arg2 = (int) SWIG_AsInt(obj1); |
33587 | if (PyErr_Occurred()) SWIG_fail; | |
33588 | arg3 = (int) SWIG_AsInt(obj2); | |
33589 | if (PyErr_Occurred()) SWIG_fail; | |
33590 | arg4 = (int) SWIG_AsInt(obj3); | |
33591 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33592 | if (obj4) { |
33593 | arg5 = obj4; | |
33594 | } | |
d14a1e28 RD |
33595 | { |
33596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 33597 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
33598 | |
33599 | wxPyEndAllowThreads(__tstate); | |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
15afbcd0 | 33602 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33603 | return resultobj; |
33604 | fail: | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
248ed943 | 33609 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 33610 | PyObject *resultobj; |
248ed943 | 33611 | int arg1 ; |
d14a1e28 RD |
33612 | int arg2 ; |
33613 | int arg3 ; | |
33614 | int arg4 ; | |
248ed943 RD |
33615 | int arg5 ; |
33616 | PyObject *arg6 = (PyObject *) NULL ; | |
d14a1e28 RD |
33617 | wxSizerItem *result; |
33618 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33619 | PyObject * obj1 = 0 ; |
33620 | PyObject * obj2 = 0 ; | |
33621 | PyObject * obj3 = 0 ; | |
d14a1e28 | 33622 | PyObject * obj4 = 0 ; |
248ed943 | 33623 | PyObject * obj5 = 0 ; |
d14a1e28 | 33624 | char *kwnames[] = { |
248ed943 | 33625 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
33626 | }; |
33627 | ||
248ed943 RD |
33628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
33629 | arg1 = (int) SWIG_AsInt(obj0); | |
33630 | if (PyErr_Occurred()) SWIG_fail; | |
15afbcd0 RD |
33631 | arg2 = (int) SWIG_AsInt(obj1); |
33632 | if (PyErr_Occurred()) SWIG_fail; | |
33633 | arg3 = (int) SWIG_AsInt(obj2); | |
33634 | if (PyErr_Occurred()) SWIG_fail; | |
33635 | arg4 = (int) SWIG_AsInt(obj3); | |
33636 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33637 | arg5 = (int) SWIG_AsInt(obj4); |
33638 | if (PyErr_Occurred()) SWIG_fail; | |
33639 | if (obj5) { | |
33640 | arg6 = obj5; | |
33641 | } | |
d14a1e28 RD |
33642 | { |
33643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 33644 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
33645 | |
33646 | wxPyEndAllowThreads(__tstate); | |
33647 | if (PyErr_Occurred()) SWIG_fail; | |
33648 | } | |
15afbcd0 | 33649 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33650 | return resultobj; |
33651 | fail: | |
33652 | return NULL; | |
33653 | } | |
33654 | ||
33655 | ||
33656 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33657 | PyObject *resultobj; | |
33658 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33659 | int arg2 ; | |
33660 | int arg3 ; | |
33661 | int arg4 ; | |
248ed943 | 33662 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 RD |
33663 | wxSizerItem *result; |
33664 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33665 | PyObject * obj1 = 0 ; |
33666 | PyObject * obj2 = 0 ; | |
33667 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33668 | PyObject * obj4 = 0 ; |
33669 | char *kwnames[] = { | |
33670 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33671 | }; | |
33672 | ||
248ed943 | 33673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33676 | arg2 = (int) SWIG_AsInt(obj1); | |
33677 | if (PyErr_Occurred()) SWIG_fail; | |
33678 | arg3 = (int) SWIG_AsInt(obj2); | |
33679 | if (PyErr_Occurred()) SWIG_fail; | |
33680 | arg4 = (int) SWIG_AsInt(obj3); | |
33681 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33682 | if (obj4) { |
33683 | arg5 = obj4; | |
33684 | } | |
d14a1e28 RD |
33685 | { |
33686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 33687 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
33688 | |
33689 | wxPyEndAllowThreads(__tstate); | |
33690 | if (PyErr_Occurred()) SWIG_fail; | |
33691 | } | |
15afbcd0 | 33692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33693 | return resultobj; |
33694 | fail: | |
33695 | return NULL; | |
33696 | } | |
33697 | ||
33698 | ||
33699 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33700 | PyObject *resultobj; | |
33701 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33702 | PyObject * obj0 = 0 ; | |
33703 | char *kwnames[] = { | |
33704 | (char *) "self", NULL | |
33705 | }; | |
33706 | ||
33707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33710 | { |
33711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33712 | (arg1)->DeleteWindows(); | |
33713 | ||
33714 | wxPyEndAllowThreads(__tstate); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
33716 | } | |
33717 | Py_INCREF(Py_None); resultobj = Py_None; | |
33718 | return resultobj; | |
33719 | fail: | |
33720 | return NULL; | |
33721 | } | |
33722 | ||
33723 | ||
33724 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33725 | PyObject *resultobj; | |
33726 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33727 | PyObject * obj0 = 0 ; | |
33728 | char *kwnames[] = { | |
33729 | (char *) "self", NULL | |
33730 | }; | |
33731 | ||
33732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33735 | { |
33736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33737 | (arg1)->DetachSizer(); | |
33738 | ||
33739 | wxPyEndAllowThreads(__tstate); | |
33740 | if (PyErr_Occurred()) SWIG_fail; | |
33741 | } | |
33742 | Py_INCREF(Py_None); resultobj = Py_None; | |
33743 | return resultobj; | |
33744 | fail: | |
33745 | return NULL; | |
33746 | } | |
33747 | ||
33748 | ||
33749 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33750 | PyObject *resultobj; | |
33751 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33752 | wxSize result; | |
33753 | PyObject * obj0 = 0 ; | |
33754 | char *kwnames[] = { | |
33755 | (char *) "self", NULL | |
33756 | }; | |
33757 | ||
33758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33761 | { |
33762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33763 | result = (arg1)->GetSize(); | |
33764 | ||
33765 | wxPyEndAllowThreads(__tstate); | |
33766 | if (PyErr_Occurred()) SWIG_fail; | |
33767 | } | |
33768 | { | |
33769 | wxSize * resultptr; | |
33770 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33771 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33772 | } |
33773 | return resultobj; | |
33774 | fail: | |
33775 | return NULL; | |
33776 | } | |
33777 | ||
33778 | ||
33779 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33780 | PyObject *resultobj; | |
33781 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33782 | wxSize result; | |
33783 | PyObject * obj0 = 0 ; | |
33784 | char *kwnames[] = { | |
33785 | (char *) "self", NULL | |
33786 | }; | |
33787 | ||
33788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33791 | { |
33792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33793 | result = (arg1)->CalcMin(); | |
33794 | ||
33795 | wxPyEndAllowThreads(__tstate); | |
33796 | if (PyErr_Occurred()) SWIG_fail; | |
33797 | } | |
33798 | { | |
33799 | wxSize * resultptr; | |
33800 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33801 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33802 | } |
33803 | return resultobj; | |
33804 | fail: | |
33805 | return NULL; | |
33806 | } | |
33807 | ||
33808 | ||
33809 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33810 | PyObject *resultobj; | |
33811 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33812 | wxPoint arg2 ; | |
33813 | wxSize arg3 ; | |
33814 | wxPoint *argp2 ; | |
33815 | wxSize *argp3 ; | |
33816 | PyObject * obj0 = 0 ; | |
33817 | PyObject * obj1 = 0 ; | |
33818 | PyObject * obj2 = 0 ; | |
33819 | char *kwnames[] = { | |
33820 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33821 | }; | |
33822 | ||
33823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
33824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33826 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33827 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33828 | arg2 = *argp2; | |
33829 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33830 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33831 | arg3 = *argp3; | |
d14a1e28 RD |
33832 | { |
33833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33834 | (arg1)->SetDimension(arg2,arg3); | |
33835 | ||
33836 | wxPyEndAllowThreads(__tstate); | |
33837 | if (PyErr_Occurred()) SWIG_fail; | |
33838 | } | |
33839 | Py_INCREF(Py_None); resultobj = Py_None; | |
33840 | return resultobj; | |
33841 | fail: | |
33842 | return NULL; | |
33843 | } | |
33844 | ||
33845 | ||
33846 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33847 | PyObject *resultobj; | |
33848 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33849 | wxSize result; | |
33850 | PyObject * obj0 = 0 ; | |
33851 | char *kwnames[] = { | |
33852 | (char *) "self", NULL | |
33853 | }; | |
33854 | ||
33855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33858 | { |
33859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33860 | result = (arg1)->GetMinSize(); | |
33861 | ||
33862 | wxPyEndAllowThreads(__tstate); | |
33863 | if (PyErr_Occurred()) SWIG_fail; | |
33864 | } | |
33865 | { | |
33866 | wxSize * resultptr; | |
33867 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33868 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33869 | } |
33870 | return resultobj; | |
33871 | fail: | |
33872 | return NULL; | |
33873 | } | |
33874 | ||
33875 | ||
33876 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33877 | PyObject *resultobj; | |
33878 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33879 | int arg2 ; | |
33880 | int arg3 ; | |
33881 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33882 | PyObject * obj1 = 0 ; |
33883 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33884 | char *kwnames[] = { |
33885 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33886 | }; | |
33887 | ||
994141e6 | 33888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33891 | arg2 = (int) SWIG_AsInt(obj1); | |
33892 | if (PyErr_Occurred()) SWIG_fail; | |
33893 | arg3 = (int) SWIG_AsInt(obj2); | |
33894 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33895 | { |
33896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33897 | (arg1)->SetInitSize(arg2,arg3); | |
33898 | ||
33899 | wxPyEndAllowThreads(__tstate); | |
33900 | if (PyErr_Occurred()) SWIG_fail; | |
33901 | } | |
33902 | Py_INCREF(Py_None); resultobj = Py_None; | |
33903 | return resultobj; | |
33904 | fail: | |
33905 | return NULL; | |
33906 | } | |
33907 | ||
33908 | ||
33909 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33910 | PyObject *resultobj; | |
33911 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33912 | int arg2 ; | |
33913 | int arg3 ; | |
33914 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33915 | PyObject * obj1 = 0 ; |
33916 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33917 | char *kwnames[] = { |
33918 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33919 | }; | |
33920 | ||
994141e6 | 33921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33924 | arg2 = (int) SWIG_AsInt(obj1); | |
33925 | if (PyErr_Occurred()) SWIG_fail; | |
33926 | arg3 = (int) SWIG_AsInt(obj2); | |
33927 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33928 | { |
33929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33930 | (arg1)->SetRatio(arg2,arg3); | |
33931 | ||
33932 | wxPyEndAllowThreads(__tstate); | |
33933 | if (PyErr_Occurred()) SWIG_fail; | |
33934 | } | |
33935 | Py_INCREF(Py_None); resultobj = Py_None; | |
33936 | return resultobj; | |
33937 | fail: | |
33938 | return NULL; | |
33939 | } | |
33940 | ||
33941 | ||
33942 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33943 | PyObject *resultobj; | |
33944 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33945 | wxSize arg2 ; | |
33946 | wxSize *argp2 ; | |
33947 | PyObject * obj0 = 0 ; | |
33948 | PyObject * obj1 = 0 ; | |
33949 | char *kwnames[] = { | |
33950 | (char *) "self",(char *) "size", NULL | |
33951 | }; | |
33952 | ||
33953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33956 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33957 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33958 | arg2 = *argp2; | |
d14a1e28 RD |
33959 | { |
33960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33961 | (arg1)->SetRatio(arg2); | |
33962 | ||
33963 | wxPyEndAllowThreads(__tstate); | |
33964 | if (PyErr_Occurred()) SWIG_fail; | |
33965 | } | |
33966 | Py_INCREF(Py_None); resultobj = Py_None; | |
33967 | return resultobj; | |
33968 | fail: | |
33969 | return NULL; | |
33970 | } | |
33971 | ||
33972 | ||
33973 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33974 | PyObject *resultobj; | |
33975 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33976 | float arg2 ; | |
33977 | PyObject * obj0 = 0 ; | |
994141e6 | 33978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33979 | char *kwnames[] = { |
33980 | (char *) "self",(char *) "ratio", NULL | |
33981 | }; | |
33982 | ||
994141e6 | 33983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33986 | arg2 = (float) SWIG_AsFloat(obj1); | |
33987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33988 | { |
33989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33990 | (arg1)->SetRatio(arg2); | |
33991 | ||
33992 | wxPyEndAllowThreads(__tstate); | |
33993 | if (PyErr_Occurred()) SWIG_fail; | |
33994 | } | |
33995 | Py_INCREF(Py_None); resultobj = Py_None; | |
33996 | return resultobj; | |
33997 | fail: | |
33998 | return NULL; | |
33999 | } | |
34000 | ||
34001 | ||
34002 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34003 | PyObject *resultobj; | |
34004 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34005 | float result; | |
34006 | PyObject * obj0 = 0 ; | |
34007 | char *kwnames[] = { | |
34008 | (char *) "self", NULL | |
34009 | }; | |
34010 | ||
34011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34014 | { |
34015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34016 | result = (float)(arg1)->GetRatio(); | |
34017 | ||
34018 | wxPyEndAllowThreads(__tstate); | |
34019 | if (PyErr_Occurred()) SWIG_fail; | |
34020 | } | |
15afbcd0 | 34021 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
34022 | return resultobj; |
34023 | fail: | |
34024 | return NULL; | |
34025 | } | |
34026 | ||
34027 | ||
34028 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34029 | PyObject *resultobj; | |
34030 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34031 | bool result; | |
34032 | PyObject * obj0 = 0 ; | |
34033 | char *kwnames[] = { | |
34034 | (char *) "self", NULL | |
34035 | }; | |
34036 | ||
34037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34040 | { |
34041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34042 | result = (bool)(arg1)->IsWindow(); | |
34043 | ||
34044 | wxPyEndAllowThreads(__tstate); | |
34045 | if (PyErr_Occurred()) SWIG_fail; | |
34046 | } | |
4f89f6a3 RD |
34047 | { |
34048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34049 | } | |
d14a1e28 RD |
34050 | return resultobj; |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
34056 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34057 | PyObject *resultobj; | |
34058 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34059 | bool result; | |
34060 | PyObject * obj0 = 0 ; | |
34061 | char *kwnames[] = { | |
34062 | (char *) "self", NULL | |
34063 | }; | |
34064 | ||
34065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34068 | { |
34069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34070 | result = (bool)(arg1)->IsSizer(); | |
34071 | ||
34072 | wxPyEndAllowThreads(__tstate); | |
34073 | if (PyErr_Occurred()) SWIG_fail; | |
34074 | } | |
4f89f6a3 RD |
34075 | { |
34076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34077 | } | |
d14a1e28 RD |
34078 | return resultobj; |
34079 | fail: | |
34080 | return NULL; | |
34081 | } | |
34082 | ||
34083 | ||
34084 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34085 | PyObject *resultobj; | |
34086 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34087 | bool result; | |
34088 | PyObject * obj0 = 0 ; | |
34089 | char *kwnames[] = { | |
34090 | (char *) "self", NULL | |
34091 | }; | |
34092 | ||
34093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34096 | { |
34097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34098 | result = (bool)(arg1)->IsSpacer(); | |
34099 | ||
34100 | wxPyEndAllowThreads(__tstate); | |
34101 | if (PyErr_Occurred()) SWIG_fail; | |
34102 | } | |
4f89f6a3 RD |
34103 | { |
34104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34105 | } | |
d14a1e28 RD |
34106 | return resultobj; |
34107 | fail: | |
34108 | return NULL; | |
34109 | } | |
34110 | ||
34111 | ||
34112 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34113 | PyObject *resultobj; | |
34114 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34115 | int arg2 ; | |
34116 | PyObject * obj0 = 0 ; | |
994141e6 | 34117 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34118 | char *kwnames[] = { |
34119 | (char *) "self",(char *) "proportion", NULL | |
34120 | }; | |
34121 | ||
994141e6 | 34122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34125 | arg2 = (int) SWIG_AsInt(obj1); | |
34126 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34127 | { |
34128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34129 | (arg1)->SetProportion(arg2); | |
34130 | ||
34131 | wxPyEndAllowThreads(__tstate); | |
34132 | if (PyErr_Occurred()) SWIG_fail; | |
34133 | } | |
34134 | Py_INCREF(Py_None); resultobj = Py_None; | |
34135 | return resultobj; | |
34136 | fail: | |
34137 | return NULL; | |
34138 | } | |
34139 | ||
34140 | ||
34141 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34142 | PyObject *resultobj; | |
34143 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34144 | int result; | |
34145 | PyObject * obj0 = 0 ; | |
34146 | char *kwnames[] = { | |
34147 | (char *) "self", NULL | |
34148 | }; | |
34149 | ||
34150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34153 | { |
34154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34155 | result = (int)(arg1)->GetProportion(); | |
34156 | ||
34157 | wxPyEndAllowThreads(__tstate); | |
34158 | if (PyErr_Occurred()) SWIG_fail; | |
34159 | } | |
15afbcd0 | 34160 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34161 | return resultobj; |
34162 | fail: | |
34163 | return NULL; | |
34164 | } | |
34165 | ||
34166 | ||
34167 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34168 | PyObject *resultobj; | |
34169 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34170 | int arg2 ; | |
34171 | PyObject * obj0 = 0 ; | |
994141e6 | 34172 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34173 | char *kwnames[] = { |
34174 | (char *) "self",(char *) "flag", NULL | |
34175 | }; | |
34176 | ||
994141e6 | 34177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34180 | arg2 = (int) SWIG_AsInt(obj1); | |
34181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34182 | { |
34183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34184 | (arg1)->SetFlag(arg2); | |
34185 | ||
34186 | wxPyEndAllowThreads(__tstate); | |
34187 | if (PyErr_Occurred()) SWIG_fail; | |
34188 | } | |
34189 | Py_INCREF(Py_None); resultobj = Py_None; | |
34190 | return resultobj; | |
34191 | fail: | |
34192 | return NULL; | |
34193 | } | |
34194 | ||
34195 | ||
34196 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34197 | PyObject *resultobj; | |
34198 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34199 | int result; | |
34200 | PyObject * obj0 = 0 ; | |
34201 | char *kwnames[] = { | |
34202 | (char *) "self", NULL | |
34203 | }; | |
34204 | ||
34205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34208 | { |
34209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34210 | result = (int)(arg1)->GetFlag(); | |
34211 | ||
34212 | wxPyEndAllowThreads(__tstate); | |
34213 | if (PyErr_Occurred()) SWIG_fail; | |
34214 | } | |
15afbcd0 | 34215 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34216 | return resultobj; |
34217 | fail: | |
34218 | return NULL; | |
34219 | } | |
34220 | ||
34221 | ||
34222 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34223 | PyObject *resultobj; | |
34224 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34225 | int arg2 ; | |
34226 | PyObject * obj0 = 0 ; | |
994141e6 | 34227 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34228 | char *kwnames[] = { |
34229 | (char *) "self",(char *) "border", NULL | |
34230 | }; | |
34231 | ||
994141e6 | 34232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34235 | arg2 = (int) SWIG_AsInt(obj1); | |
34236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34237 | { |
34238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34239 | (arg1)->SetBorder(arg2); | |
34240 | ||
34241 | wxPyEndAllowThreads(__tstate); | |
34242 | if (PyErr_Occurred()) SWIG_fail; | |
34243 | } | |
34244 | Py_INCREF(Py_None); resultobj = Py_None; | |
34245 | return resultobj; | |
34246 | fail: | |
34247 | return NULL; | |
34248 | } | |
34249 | ||
34250 | ||
34251 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34252 | PyObject *resultobj; | |
34253 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34254 | int result; | |
34255 | PyObject * obj0 = 0 ; | |
34256 | char *kwnames[] = { | |
34257 | (char *) "self", NULL | |
34258 | }; | |
34259 | ||
34260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34263 | { |
34264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34265 | result = (int)(arg1)->GetBorder(); | |
34266 | ||
34267 | wxPyEndAllowThreads(__tstate); | |
34268 | if (PyErr_Occurred()) SWIG_fail; | |
34269 | } | |
15afbcd0 | 34270 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34271 | return resultobj; |
34272 | fail: | |
34273 | return NULL; | |
34274 | } | |
34275 | ||
34276 | ||
34277 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34278 | PyObject *resultobj; | |
34279 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34280 | wxWindow *result; | |
34281 | PyObject * obj0 = 0 ; | |
34282 | char *kwnames[] = { | |
34283 | (char *) "self", NULL | |
34284 | }; | |
34285 | ||
34286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34289 | { |
34290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34291 | result = (wxWindow *)(arg1)->GetWindow(); | |
34292 | ||
34293 | wxPyEndAllowThreads(__tstate); | |
34294 | if (PyErr_Occurred()) SWIG_fail; | |
34295 | } | |
34296 | { | |
34297 | resultobj = wxPyMake_wxObject(result); | |
34298 | } | |
34299 | return resultobj; | |
34300 | fail: | |
34301 | return NULL; | |
34302 | } | |
34303 | ||
34304 | ||
34305 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34306 | PyObject *resultobj; | |
34307 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34308 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34309 | PyObject * obj0 = 0 ; | |
34310 | PyObject * obj1 = 0 ; | |
34311 | char *kwnames[] = { | |
34312 | (char *) "self",(char *) "window", NULL | |
34313 | }; | |
34314 | ||
34315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34320 | { |
34321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34322 | (arg1)->SetWindow(arg2); | |
34323 | ||
34324 | wxPyEndAllowThreads(__tstate); | |
34325 | if (PyErr_Occurred()) SWIG_fail; | |
34326 | } | |
34327 | Py_INCREF(Py_None); resultobj = Py_None; | |
34328 | return resultobj; | |
34329 | fail: | |
34330 | return NULL; | |
34331 | } | |
34332 | ||
34333 | ||
34334 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34335 | PyObject *resultobj; | |
34336 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34337 | wxSizer *result; | |
34338 | PyObject * obj0 = 0 ; | |
34339 | char *kwnames[] = { | |
34340 | (char *) "self", NULL | |
34341 | }; | |
34342 | ||
34343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34346 | { |
34347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34348 | result = (wxSizer *)(arg1)->GetSizer(); | |
34349 | ||
34350 | wxPyEndAllowThreads(__tstate); | |
34351 | if (PyErr_Occurred()) SWIG_fail; | |
34352 | } | |
34353 | { | |
34354 | resultobj = wxPyMake_wxSizer(result); | |
34355 | } | |
34356 | return resultobj; | |
34357 | fail: | |
34358 | return NULL; | |
34359 | } | |
34360 | ||
34361 | ||
34362 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34363 | PyObject *resultobj; | |
34364 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34365 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34366 | PyObject * obj0 = 0 ; | |
34367 | PyObject * obj1 = 0 ; | |
34368 | char *kwnames[] = { | |
34369 | (char *) "self",(char *) "sizer", NULL | |
34370 | }; | |
34371 | ||
34372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34375 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34377 | { |
34378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34379 | (arg1)->SetSizer(arg2); | |
34380 | ||
34381 | wxPyEndAllowThreads(__tstate); | |
34382 | if (PyErr_Occurred()) SWIG_fail; | |
34383 | } | |
34384 | Py_INCREF(Py_None); resultobj = Py_None; | |
34385 | return resultobj; | |
34386 | fail: | |
34387 | return NULL; | |
34388 | } | |
34389 | ||
34390 | ||
34391 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34392 | PyObject *resultobj; | |
34393 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34394 | wxSize *result; | |
34395 | PyObject * obj0 = 0 ; | |
34396 | char *kwnames[] = { | |
34397 | (char *) "self", NULL | |
34398 | }; | |
34399 | ||
34400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34403 | { |
34404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34405 | { | |
34406 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34407 | result = (wxSize *) &_result_ref; | |
34408 | } | |
34409 | ||
34410 | wxPyEndAllowThreads(__tstate); | |
34411 | if (PyErr_Occurred()) SWIG_fail; | |
34412 | } | |
15afbcd0 | 34413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
34414 | return resultobj; |
34415 | fail: | |
34416 | return NULL; | |
34417 | } | |
34418 | ||
34419 | ||
34420 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34421 | PyObject *resultobj; | |
34422 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34423 | wxSize *arg2 = 0 ; | |
34424 | wxSize temp2 ; | |
34425 | PyObject * obj0 = 0 ; | |
34426 | PyObject * obj1 = 0 ; | |
34427 | char *kwnames[] = { | |
34428 | (char *) "self",(char *) "size", NULL | |
34429 | }; | |
34430 | ||
34431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34434 | { |
34435 | arg2 = &temp2; | |
34436 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34437 | } | |
34438 | { | |
34439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34440 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34441 | ||
34442 | wxPyEndAllowThreads(__tstate); | |
34443 | if (PyErr_Occurred()) SWIG_fail; | |
34444 | } | |
34445 | Py_INCREF(Py_None); resultobj = Py_None; | |
34446 | return resultobj; | |
34447 | fail: | |
34448 | return NULL; | |
34449 | } | |
34450 | ||
34451 | ||
34452 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34453 | PyObject *resultobj; | |
34454 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34455 | bool arg2 ; | |
34456 | PyObject * obj0 = 0 ; | |
34457 | PyObject * obj1 = 0 ; | |
34458 | char *kwnames[] = { | |
34459 | (char *) "self",(char *) "show", NULL | |
34460 | }; | |
34461 | ||
34462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34465 | arg2 = (bool) SWIG_AsBool(obj1); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34467 | { |
34468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34469 | (arg1)->Show(arg2); | |
34470 | ||
34471 | wxPyEndAllowThreads(__tstate); | |
34472 | if (PyErr_Occurred()) SWIG_fail; | |
34473 | } | |
34474 | Py_INCREF(Py_None); resultobj = Py_None; | |
34475 | return resultobj; | |
34476 | fail: | |
34477 | return NULL; | |
34478 | } | |
34479 | ||
34480 | ||
34481 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34482 | PyObject *resultobj; | |
34483 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34484 | bool result; | |
34485 | PyObject * obj0 = 0 ; | |
34486 | char *kwnames[] = { | |
34487 | (char *) "self", NULL | |
34488 | }; | |
34489 | ||
34490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34493 | { |
34494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34495 | result = (bool)(arg1)->IsShown(); | |
34496 | ||
34497 | wxPyEndAllowThreads(__tstate); | |
34498 | if (PyErr_Occurred()) SWIG_fail; | |
34499 | } | |
4f89f6a3 RD |
34500 | { |
34501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34502 | } | |
d14a1e28 RD |
34503 | return resultobj; |
34504 | fail: | |
34505 | return NULL; | |
34506 | } | |
34507 | ||
34508 | ||
34509 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34510 | PyObject *resultobj; | |
34511 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34512 | wxPoint result; | |
34513 | PyObject * obj0 = 0 ; | |
34514 | char *kwnames[] = { | |
34515 | (char *) "self", NULL | |
34516 | }; | |
34517 | ||
34518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34521 | { |
34522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34523 | result = (arg1)->GetPosition(); | |
34524 | ||
34525 | wxPyEndAllowThreads(__tstate); | |
34526 | if (PyErr_Occurred()) SWIG_fail; | |
34527 | } | |
34528 | { | |
34529 | wxPoint * resultptr; | |
34530 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 34531 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34532 | } |
34533 | return resultobj; | |
34534 | fail: | |
34535 | return NULL; | |
34536 | } | |
34537 | ||
34538 | ||
34539 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34540 | PyObject *resultobj; | |
34541 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34542 | PyObject *result; | |
34543 | PyObject * obj0 = 0 ; | |
34544 | char *kwnames[] = { | |
34545 | (char *) "self", NULL | |
34546 | }; | |
34547 | ||
34548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34551 | { |
34552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34553 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34554 | ||
34555 | wxPyEndAllowThreads(__tstate); | |
34556 | if (PyErr_Occurred()) SWIG_fail; | |
34557 | } | |
34558 | resultobj = result; | |
34559 | return resultobj; | |
34560 | fail: | |
34561 | return NULL; | |
34562 | } | |
34563 | ||
34564 | ||
34565 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34566 | PyObject *obj; | |
34567 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34568 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34569 | Py_INCREF(obj); | |
34570 | return Py_BuildValue((char *)""); | |
34571 | } | |
34572 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34573 | PyObject *resultobj; | |
34574 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34575 | PyObject *arg2 = (PyObject *) 0 ; | |
34576 | PyObject * obj0 = 0 ; | |
34577 | PyObject * obj1 = 0 ; | |
34578 | char *kwnames[] = { | |
34579 | (char *) "self",(char *) "_self", NULL | |
34580 | }; | |
34581 | ||
34582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34585 | arg2 = obj1; |
34586 | { | |
34587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34588 | wxSizer__setOORInfo(arg1,arg2); | |
34589 | ||
34590 | wxPyEndAllowThreads(__tstate); | |
34591 | if (PyErr_Occurred()) SWIG_fail; | |
34592 | } | |
34593 | Py_INCREF(Py_None); resultobj = Py_None; | |
34594 | return resultobj; | |
34595 | fail: | |
34596 | return NULL; | |
34597 | } | |
34598 | ||
34599 | ||
34600 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34601 | PyObject *resultobj; | |
34602 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34603 | PyObject *arg2 = (PyObject *) 0 ; | |
34604 | int arg3 = (int) 0 ; | |
34605 | int arg4 = (int) 0 ; | |
34606 | int arg5 = (int) 0 ; | |
34607 | PyObject *arg6 = (PyObject *) NULL ; | |
34608 | PyObject * obj0 = 0 ; | |
34609 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34610 | PyObject * obj2 = 0 ; |
34611 | PyObject * obj3 = 0 ; | |
34612 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34613 | PyObject * obj5 = 0 ; |
34614 | char *kwnames[] = { | |
34615 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34616 | }; | |
34617 | ||
994141e6 | 34618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34621 | arg2 = obj1; |
994141e6 | 34622 | if (obj2) { |
15afbcd0 RD |
34623 | arg3 = (int) SWIG_AsInt(obj2); |
34624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34625 | } |
34626 | if (obj3) { | |
15afbcd0 RD |
34627 | arg4 = (int) SWIG_AsInt(obj3); |
34628 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34629 | } |
34630 | if (obj4) { | |
15afbcd0 RD |
34631 | arg5 = (int) SWIG_AsInt(obj4); |
34632 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34633 | } |
d14a1e28 RD |
34634 | if (obj5) { |
34635 | arg6 = obj5; | |
34636 | } | |
34637 | { | |
34638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34639 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34640 | ||
34641 | wxPyEndAllowThreads(__tstate); | |
34642 | if (PyErr_Occurred()) SWIG_fail; | |
34643 | } | |
34644 | Py_INCREF(Py_None); resultobj = Py_None; | |
34645 | return resultobj; | |
34646 | fail: | |
34647 | return NULL; | |
34648 | } | |
34649 | ||
34650 | ||
34651 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34652 | PyObject *resultobj; | |
34653 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34654 | int arg2 ; | |
34655 | PyObject *arg3 = (PyObject *) 0 ; | |
34656 | int arg4 = (int) 0 ; | |
34657 | int arg5 = (int) 0 ; | |
34658 | int arg6 = (int) 0 ; | |
34659 | PyObject *arg7 = (PyObject *) NULL ; | |
34660 | PyObject * obj0 = 0 ; | |
994141e6 | 34661 | PyObject * obj1 = 0 ; |
d14a1e28 | 34662 | PyObject * obj2 = 0 ; |
994141e6 RD |
34663 | PyObject * obj3 = 0 ; |
34664 | PyObject * obj4 = 0 ; | |
34665 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
34666 | PyObject * obj6 = 0 ; |
34667 | char *kwnames[] = { | |
34668 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34669 | }; | |
34670 | ||
994141e6 | 34671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
34672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34674 | arg2 = (int) SWIG_AsInt(obj1); | |
34675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 34676 | arg3 = obj2; |
994141e6 | 34677 | if (obj3) { |
15afbcd0 RD |
34678 | arg4 = (int) SWIG_AsInt(obj3); |
34679 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34680 | } |
34681 | if (obj4) { | |
15afbcd0 RD |
34682 | arg5 = (int) SWIG_AsInt(obj4); |
34683 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34684 | } |
34685 | if (obj5) { | |
15afbcd0 RD |
34686 | arg6 = (int) SWIG_AsInt(obj5); |
34687 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34688 | } |
d14a1e28 RD |
34689 | if (obj6) { |
34690 | arg7 = obj6; | |
34691 | } | |
34692 | { | |
34693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34694 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34695 | ||
34696 | wxPyEndAllowThreads(__tstate); | |
34697 | if (PyErr_Occurred()) SWIG_fail; | |
34698 | } | |
34699 | Py_INCREF(Py_None); resultobj = Py_None; | |
34700 | return resultobj; | |
34701 | fail: | |
34702 | return NULL; | |
34703 | } | |
34704 | ||
34705 | ||
34706 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34707 | PyObject *resultobj; | |
34708 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34709 | PyObject *arg2 = (PyObject *) 0 ; | |
34710 | int arg3 = (int) 0 ; | |
34711 | int arg4 = (int) 0 ; | |
34712 | int arg5 = (int) 0 ; | |
34713 | PyObject *arg6 = (PyObject *) NULL ; | |
34714 | PyObject * obj0 = 0 ; | |
34715 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34716 | PyObject * obj2 = 0 ; |
34717 | PyObject * obj3 = 0 ; | |
34718 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34719 | PyObject * obj5 = 0 ; |
34720 | char *kwnames[] = { | |
34721 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34722 | }; | |
34723 | ||
994141e6 | 34724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34727 | arg2 = obj1; |
994141e6 | 34728 | if (obj2) { |
15afbcd0 RD |
34729 | arg3 = (int) SWIG_AsInt(obj2); |
34730 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34731 | } |
34732 | if (obj3) { | |
15afbcd0 RD |
34733 | arg4 = (int) SWIG_AsInt(obj3); |
34734 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34735 | } |
34736 | if (obj4) { | |
15afbcd0 RD |
34737 | arg5 = (int) SWIG_AsInt(obj4); |
34738 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34739 | } |
d14a1e28 RD |
34740 | if (obj5) { |
34741 | arg6 = obj5; | |
34742 | } | |
34743 | { | |
34744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34745 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34746 | ||
34747 | wxPyEndAllowThreads(__tstate); | |
34748 | if (PyErr_Occurred()) SWIG_fail; | |
34749 | } | |
34750 | Py_INCREF(Py_None); resultobj = Py_None; | |
34751 | return resultobj; | |
34752 | fail: | |
34753 | return NULL; | |
34754 | } | |
34755 | ||
34756 | ||
34757 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34758 | PyObject *resultobj; | |
34759 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34760 | PyObject *arg2 = (PyObject *) 0 ; | |
34761 | bool result; | |
34762 | PyObject * obj0 = 0 ; | |
34763 | PyObject * obj1 = 0 ; | |
34764 | char *kwnames[] = { | |
34765 | (char *) "self",(char *) "item", NULL | |
34766 | }; | |
34767 | ||
34768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34771 | arg2 = obj1; |
34772 | { | |
34773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34774 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34775 | ||
34776 | wxPyEndAllowThreads(__tstate); | |
34777 | if (PyErr_Occurred()) SWIG_fail; | |
34778 | } | |
4f89f6a3 RD |
34779 | { |
34780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34781 | } | |
d14a1e28 RD |
34782 | return resultobj; |
34783 | fail: | |
34784 | return NULL; | |
34785 | } | |
34786 | ||
34787 | ||
1c0f361b RD |
34788 | static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { |
34789 | PyObject *resultobj; | |
34790 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34791 | PyObject *arg2 = (PyObject *) 0 ; | |
34792 | bool result; | |
34793 | PyObject * obj0 = 0 ; | |
34794 | PyObject * obj1 = 0 ; | |
34795 | char *kwnames[] = { | |
34796 | (char *) "self",(char *) "item", NULL | |
34797 | }; | |
34798 | ||
34799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
34800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34802 | arg2 = obj1; | |
34803 | { | |
34804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34805 | result = (bool)wxSizer_Detach(arg1,arg2); | |
34806 | ||
34807 | wxPyEndAllowThreads(__tstate); | |
34808 | if (PyErr_Occurred()) SWIG_fail; | |
34809 | } | |
34810 | { | |
34811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34812 | } | |
34813 | return resultobj; | |
34814 | fail: | |
34815 | return NULL; | |
34816 | } | |
34817 | ||
34818 | ||
d14a1e28 RD |
34819 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
34820 | PyObject *resultobj; | |
34821 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34822 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
34823 | wxSize *arg3 = 0 ; |
34824 | wxSize temp3 ; | |
d14a1e28 RD |
34825 | PyObject * obj0 = 0 ; |
34826 | PyObject * obj1 = 0 ; | |
34827 | PyObject * obj2 = 0 ; | |
34828 | char *kwnames[] = { | |
34829 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34830 | }; | |
34831 | ||
34832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34835 | arg2 = obj1; |
e811c8ce RD |
34836 | { |
34837 | arg3 = &temp3; | |
34838 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34839 | } | |
d14a1e28 RD |
34840 | { |
34841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 34842 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
34843 | |
34844 | wxPyEndAllowThreads(__tstate); | |
34845 | if (PyErr_Occurred()) SWIG_fail; | |
34846 | } | |
34847 | Py_INCREF(Py_None); resultobj = Py_None; | |
34848 | return resultobj; | |
34849 | fail: | |
34850 | return NULL; | |
34851 | } | |
34852 | ||
34853 | ||
34854 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34855 | PyObject *resultobj; | |
34856 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34857 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34858 | PyObject * obj0 = 0 ; | |
34859 | PyObject * obj1 = 0 ; | |
34860 | char *kwnames[] = { | |
34861 | (char *) "self",(char *) "item", NULL | |
34862 | }; | |
34863 | ||
34864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34869 | { |
34870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34871 | (arg1)->Add(arg2); | |
34872 | ||
34873 | wxPyEndAllowThreads(__tstate); | |
34874 | if (PyErr_Occurred()) SWIG_fail; | |
34875 | } | |
34876 | Py_INCREF(Py_None); resultobj = Py_None; | |
34877 | return resultobj; | |
34878 | fail: | |
34879 | return NULL; | |
34880 | } | |
34881 | ||
34882 | ||
34883 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34884 | PyObject *resultobj; | |
34885 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34886 | size_t arg2 ; | |
34887 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34888 | PyObject * obj0 = 0 ; | |
34889 | PyObject * obj1 = 0 ; | |
34890 | PyObject * obj2 = 0 ; | |
34891 | char *kwnames[] = { | |
34892 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34893 | }; | |
34894 | ||
34895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34898 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34899 | if (PyErr_Occurred()) SWIG_fail; | |
34900 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34902 | { |
34903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34904 | (arg1)->Insert(arg2,arg3); | |
34905 | ||
34906 | wxPyEndAllowThreads(__tstate); | |
34907 | if (PyErr_Occurred()) SWIG_fail; | |
34908 | } | |
34909 | Py_INCREF(Py_None); resultobj = Py_None; | |
34910 | return resultobj; | |
34911 | fail: | |
34912 | return NULL; | |
34913 | } | |
34914 | ||
34915 | ||
34916 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34917 | PyObject *resultobj; | |
34918 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34919 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34920 | PyObject * obj0 = 0 ; | |
34921 | PyObject * obj1 = 0 ; | |
34922 | char *kwnames[] = { | |
34923 | (char *) "self",(char *) "item", NULL | |
34924 | }; | |
34925 | ||
34926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34931 | { |
34932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34933 | (arg1)->Prepend(arg2); | |
34934 | ||
34935 | wxPyEndAllowThreads(__tstate); | |
34936 | if (PyErr_Occurred()) SWIG_fail; | |
34937 | } | |
34938 | Py_INCREF(Py_None); resultobj = Py_None; | |
34939 | return resultobj; | |
34940 | fail: | |
34941 | return NULL; | |
34942 | } | |
34943 | ||
34944 | ||
34945 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34946 | PyObject *resultobj; | |
34947 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34948 | int arg2 ; | |
34949 | int arg3 ; | |
34950 | int arg4 ; | |
34951 | int arg5 ; | |
34952 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34953 | PyObject * obj1 = 0 ; |
34954 | PyObject * obj2 = 0 ; | |
34955 | PyObject * obj3 = 0 ; | |
34956 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34957 | char *kwnames[] = { |
34958 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34959 | }; | |
34960 | ||
994141e6 | 34961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
34962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34964 | arg2 = (int) SWIG_AsInt(obj1); | |
34965 | if (PyErr_Occurred()) SWIG_fail; | |
34966 | arg3 = (int) SWIG_AsInt(obj2); | |
34967 | if (PyErr_Occurred()) SWIG_fail; | |
34968 | arg4 = (int) SWIG_AsInt(obj3); | |
34969 | if (PyErr_Occurred()) SWIG_fail; | |
34970 | arg5 = (int) SWIG_AsInt(obj4); | |
34971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34972 | { |
34973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34974 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
34975 | ||
34976 | wxPyEndAllowThreads(__tstate); | |
34977 | if (PyErr_Occurred()) SWIG_fail; | |
34978 | } | |
34979 | Py_INCREF(Py_None); resultobj = Py_None; | |
34980 | return resultobj; | |
34981 | fail: | |
34982 | return NULL; | |
34983 | } | |
34984 | ||
34985 | ||
34986 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34987 | PyObject *resultobj; | |
34988 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
34989 | wxSize *arg2 = 0 ; |
34990 | wxSize temp2 ; | |
d14a1e28 RD |
34991 | PyObject * obj0 = 0 ; |
34992 | PyObject * obj1 = 0 ; | |
34993 | char *kwnames[] = { | |
34994 | (char *) "self",(char *) "size", NULL | |
34995 | }; | |
34996 | ||
34997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fc9204a RD |
35000 | { |
35001 | arg2 = &temp2; | |
35002 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35003 | } | |
d14a1e28 RD |
35004 | { |
35005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 35006 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
35007 | |
35008 | wxPyEndAllowThreads(__tstate); | |
35009 | if (PyErr_Occurred()) SWIG_fail; | |
35010 | } | |
35011 | Py_INCREF(Py_None); resultobj = Py_None; | |
35012 | return resultobj; | |
35013 | fail: | |
35014 | return NULL; | |
35015 | } | |
35016 | ||
35017 | ||
35018 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35019 | PyObject *resultobj; | |
35020 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35021 | wxSize result; | |
35022 | PyObject * obj0 = 0 ; | |
35023 | char *kwnames[] = { | |
35024 | (char *) "self", NULL | |
35025 | }; | |
35026 | ||
35027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35030 | { |
35031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35032 | result = (arg1)->GetSize(); | |
35033 | ||
35034 | wxPyEndAllowThreads(__tstate); | |
35035 | if (PyErr_Occurred()) SWIG_fail; | |
35036 | } | |
35037 | { | |
35038 | wxSize * resultptr; | |
35039 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35041 | } |
35042 | return resultobj; | |
35043 | fail: | |
35044 | return NULL; | |
35045 | } | |
35046 | ||
35047 | ||
35048 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35049 | PyObject *resultobj; | |
35050 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35051 | wxPoint result; | |
35052 | PyObject * obj0 = 0 ; | |
35053 | char *kwnames[] = { | |
35054 | (char *) "self", NULL | |
35055 | }; | |
35056 | ||
35057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35060 | { |
35061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35062 | result = (arg1)->GetPosition(); | |
35063 | ||
35064 | wxPyEndAllowThreads(__tstate); | |
35065 | if (PyErr_Occurred()) SWIG_fail; | |
35066 | } | |
35067 | { | |
35068 | wxPoint * resultptr; | |
35069 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 35070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
35071 | } |
35072 | return resultobj; | |
35073 | fail: | |
35074 | return NULL; | |
35075 | } | |
35076 | ||
35077 | ||
35078 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35079 | PyObject *resultobj; | |
35080 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35081 | wxSize result; | |
35082 | PyObject * obj0 = 0 ; | |
35083 | char *kwnames[] = { | |
35084 | (char *) "self", NULL | |
35085 | }; | |
35086 | ||
35087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35090 | { |
35091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35092 | result = (arg1)->GetMinSize(); | |
35093 | ||
35094 | wxPyEndAllowThreads(__tstate); | |
35095 | if (PyErr_Occurred()) SWIG_fail; | |
35096 | } | |
35097 | { | |
35098 | wxSize * resultptr; | |
35099 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35101 | } |
35102 | return resultobj; | |
35103 | fail: | |
35104 | return NULL; | |
35105 | } | |
35106 | ||
35107 | ||
35108 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35109 | PyObject *resultobj; | |
35110 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35111 | PyObject * obj0 = 0 ; | |
35112 | char *kwnames[] = { | |
35113 | (char *) "self", NULL | |
35114 | }; | |
35115 | ||
35116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35119 | { |
35120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35121 | (arg1)->RecalcSizes(); | |
35122 | ||
35123 | wxPyEndAllowThreads(__tstate); | |
35124 | if (PyErr_Occurred()) SWIG_fail; | |
35125 | } | |
35126 | Py_INCREF(Py_None); resultobj = Py_None; | |
35127 | return resultobj; | |
35128 | fail: | |
35129 | return NULL; | |
35130 | } | |
35131 | ||
35132 | ||
35133 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35134 | PyObject *resultobj; | |
35135 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35136 | wxSize result; | |
35137 | PyObject * obj0 = 0 ; | |
35138 | char *kwnames[] = { | |
35139 | (char *) "self", NULL | |
35140 | }; | |
35141 | ||
35142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35145 | { |
35146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35147 | result = (arg1)->CalcMin(); | |
35148 | ||
35149 | wxPyEndAllowThreads(__tstate); | |
35150 | if (PyErr_Occurred()) SWIG_fail; | |
35151 | } | |
35152 | { | |
35153 | wxSize * resultptr; | |
35154 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35155 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35156 | } |
35157 | return resultobj; | |
35158 | fail: | |
35159 | return NULL; | |
35160 | } | |
35161 | ||
35162 | ||
35163 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35164 | PyObject *resultobj; | |
35165 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35166 | PyObject * obj0 = 0 ; | |
35167 | char *kwnames[] = { | |
35168 | (char *) "self", NULL | |
35169 | }; | |
35170 | ||
35171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35174 | { |
35175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35176 | (arg1)->Layout(); | |
35177 | ||
35178 | wxPyEndAllowThreads(__tstate); | |
35179 | if (PyErr_Occurred()) SWIG_fail; | |
35180 | } | |
35181 | Py_INCREF(Py_None); resultobj = Py_None; | |
35182 | return resultobj; | |
35183 | fail: | |
35184 | return NULL; | |
35185 | } | |
35186 | ||
35187 | ||
35188 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35189 | PyObject *resultobj; | |
35190 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35191 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35192 | wxSize result; | |
35193 | PyObject * obj0 = 0 ; | |
35194 | PyObject * obj1 = 0 ; | |
35195 | char *kwnames[] = { | |
35196 | (char *) "self",(char *) "window", NULL | |
35197 | }; | |
35198 | ||
35199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35204 | { |
35205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35206 | result = (arg1)->Fit(arg2); | |
35207 | ||
35208 | wxPyEndAllowThreads(__tstate); | |
35209 | if (PyErr_Occurred()) SWIG_fail; | |
35210 | } | |
35211 | { | |
35212 | wxSize * resultptr; | |
35213 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35214 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35215 | } |
35216 | return resultobj; | |
35217 | fail: | |
35218 | return NULL; | |
35219 | } | |
35220 | ||
35221 | ||
35222 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35223 | PyObject *resultobj; | |
35224 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35225 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35226 | PyObject * obj0 = 0 ; | |
35227 | PyObject * obj1 = 0 ; | |
35228 | char *kwnames[] = { | |
35229 | (char *) "self",(char *) "window", NULL | |
35230 | }; | |
35231 | ||
35232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35235 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35237 | { |
35238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35239 | (arg1)->FitInside(arg2); | |
35240 | ||
35241 | wxPyEndAllowThreads(__tstate); | |
35242 | if (PyErr_Occurred()) SWIG_fail; | |
35243 | } | |
35244 | Py_INCREF(Py_None); resultobj = Py_None; | |
35245 | return resultobj; | |
35246 | fail: | |
35247 | return NULL; | |
35248 | } | |
35249 | ||
35250 | ||
35251 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35252 | PyObject *resultobj; | |
35253 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35255 | PyObject * obj0 = 0 ; | |
35256 | PyObject * obj1 = 0 ; | |
35257 | char *kwnames[] = { | |
35258 | (char *) "self",(char *) "window", NULL | |
35259 | }; | |
35260 | ||
35261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35266 | { |
35267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35268 | (arg1)->SetSizeHints(arg2); | |
35269 | ||
35270 | wxPyEndAllowThreads(__tstate); | |
35271 | if (PyErr_Occurred()) SWIG_fail; | |
35272 | } | |
35273 | Py_INCREF(Py_None); resultobj = Py_None; | |
35274 | return resultobj; | |
35275 | fail: | |
35276 | return NULL; | |
35277 | } | |
35278 | ||
35279 | ||
35280 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35281 | PyObject *resultobj; | |
35282 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35283 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35284 | PyObject * obj0 = 0 ; | |
35285 | PyObject * obj1 = 0 ; | |
35286 | char *kwnames[] = { | |
35287 | (char *) "self",(char *) "window", NULL | |
35288 | }; | |
35289 | ||
35290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35295 | { |
35296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35297 | (arg1)->SetVirtualSizeHints(arg2); | |
35298 | ||
35299 | wxPyEndAllowThreads(__tstate); | |
35300 | if (PyErr_Occurred()) SWIG_fail; | |
35301 | } | |
35302 | Py_INCREF(Py_None); resultobj = Py_None; | |
35303 | return resultobj; | |
35304 | fail: | |
35305 | return NULL; | |
35306 | } | |
35307 | ||
35308 | ||
35309 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35310 | PyObject *resultobj; | |
35311 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 35312 | bool arg2 = (bool) False ; |
d14a1e28 RD |
35313 | PyObject * obj0 = 0 ; |
35314 | PyObject * obj1 = 0 ; | |
35315 | char *kwnames[] = { | |
248ed943 | 35316 | (char *) "self",(char *) "deleteWindows", NULL |
d14a1e28 RD |
35317 | }; |
35318 | ||
35319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35322 | if (obj1) { |
15afbcd0 RD |
35323 | arg2 = (bool) SWIG_AsBool(obj1); |
35324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35325 | } |
35326 | { | |
35327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35328 | (arg1)->Clear(arg2); | |
35329 | ||
35330 | wxPyEndAllowThreads(__tstate); | |
35331 | if (PyErr_Occurred()) SWIG_fail; | |
35332 | } | |
35333 | Py_INCREF(Py_None); resultobj = Py_None; | |
35334 | return resultobj; | |
35335 | fail: | |
35336 | return NULL; | |
35337 | } | |
35338 | ||
35339 | ||
35340 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35341 | PyObject *resultobj; | |
35342 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35343 | PyObject * obj0 = 0 ; | |
35344 | char *kwnames[] = { | |
35345 | (char *) "self", NULL | |
35346 | }; | |
35347 | ||
35348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35351 | { |
35352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35353 | (arg1)->DeleteWindows(); | |
35354 | ||
35355 | wxPyEndAllowThreads(__tstate); | |
35356 | if (PyErr_Occurred()) SWIG_fail; | |
35357 | } | |
35358 | Py_INCREF(Py_None); resultobj = Py_None; | |
35359 | return resultobj; | |
35360 | fail: | |
35361 | return NULL; | |
35362 | } | |
35363 | ||
35364 | ||
35365 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35366 | PyObject *resultobj; | |
35367 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35368 | PyObject *result; | |
35369 | PyObject * obj0 = 0 ; | |
35370 | char *kwnames[] = { | |
35371 | (char *) "self", NULL | |
35372 | }; | |
35373 | ||
35374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35377 | { |
35378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35379 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35380 | ||
35381 | wxPyEndAllowThreads(__tstate); | |
35382 | if (PyErr_Occurred()) SWIG_fail; | |
35383 | } | |
35384 | resultobj = result; | |
35385 | return resultobj; | |
35386 | fail: | |
35387 | return NULL; | |
35388 | } | |
35389 | ||
35390 | ||
35391 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35392 | PyObject *resultobj; | |
35393 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35394 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 35395 | bool arg3 = (bool) True ; |
d14a1e28 RD |
35396 | PyObject * obj0 = 0 ; |
35397 | PyObject * obj1 = 0 ; | |
35398 | PyObject * obj2 = 0 ; | |
35399 | char *kwnames[] = { | |
35400 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35401 | }; | |
35402 | ||
35403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35406 | arg2 = obj1; |
35407 | if (obj2) { | |
15afbcd0 RD |
35408 | arg3 = (bool) SWIG_AsBool(obj2); |
35409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35410 | } |
35411 | { | |
35412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35413 | wxSizer_Show(arg1,arg2,arg3); | |
35414 | ||
35415 | wxPyEndAllowThreads(__tstate); | |
35416 | if (PyErr_Occurred()) SWIG_fail; | |
35417 | } | |
35418 | Py_INCREF(Py_None); resultobj = Py_None; | |
35419 | return resultobj; | |
35420 | fail: | |
35421 | return NULL; | |
35422 | } | |
35423 | ||
35424 | ||
d14a1e28 RD |
35425 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
35426 | PyObject *resultobj; | |
35427 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35428 | PyObject *arg2 = (PyObject *) 0 ; | |
35429 | bool result; | |
35430 | PyObject * obj0 = 0 ; | |
35431 | PyObject * obj1 = 0 ; | |
35432 | char *kwnames[] = { | |
35433 | (char *) "self",(char *) "item", NULL | |
35434 | }; | |
35435 | ||
35436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35439 | arg2 = obj1; |
35440 | { | |
35441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35442 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35443 | ||
35444 | wxPyEndAllowThreads(__tstate); | |
35445 | if (PyErr_Occurred()) SWIG_fail; | |
35446 | } | |
4f89f6a3 RD |
35447 | { |
35448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35449 | } | |
d14a1e28 RD |
35450 | return resultobj; |
35451 | fail: | |
35452 | return NULL; | |
35453 | } | |
35454 | ||
35455 | ||
35456 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35457 | PyObject *resultobj; | |
35458 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35459 | bool arg2 ; | |
35460 | PyObject * obj0 = 0 ; | |
35461 | PyObject * obj1 = 0 ; | |
35462 | char *kwnames[] = { | |
35463 | (char *) "self",(char *) "show", NULL | |
35464 | }; | |
35465 | ||
35466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35469 | arg2 = (bool) SWIG_AsBool(obj1); | |
35470 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35471 | { |
35472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35473 | (arg1)->ShowItems(arg2); | |
35474 | ||
35475 | wxPyEndAllowThreads(__tstate); | |
35476 | if (PyErr_Occurred()) SWIG_fail; | |
35477 | } | |
35478 | Py_INCREF(Py_None); resultobj = Py_None; | |
35479 | return resultobj; | |
35480 | fail: | |
35481 | return NULL; | |
35482 | } | |
35483 | ||
35484 | ||
35485 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35486 | PyObject *obj; | |
35487 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35488 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35489 | Py_INCREF(obj); | |
35490 | return Py_BuildValue((char *)""); | |
35491 | } | |
35492 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35493 | PyObject *resultobj; | |
35494 | wxPySizer *result; | |
35495 | char *kwnames[] = { | |
35496 | NULL | |
35497 | }; | |
35498 | ||
35499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35500 | { | |
35501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35502 | result = (wxPySizer *)new wxPySizer(); | |
35503 | ||
35504 | wxPyEndAllowThreads(__tstate); | |
35505 | if (PyErr_Occurred()) SWIG_fail; | |
35506 | } | |
15afbcd0 | 35507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35508 | return resultobj; |
35509 | fail: | |
35510 | return NULL; | |
35511 | } | |
35512 | ||
35513 | ||
35514 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35515 | PyObject *resultobj; | |
35516 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35517 | PyObject *arg2 = (PyObject *) 0 ; | |
35518 | PyObject *arg3 = (PyObject *) 0 ; | |
35519 | PyObject * obj0 = 0 ; | |
35520 | PyObject * obj1 = 0 ; | |
35521 | PyObject * obj2 = 0 ; | |
35522 | char *kwnames[] = { | |
35523 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35524 | }; | |
35525 | ||
35526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35529 | arg2 = obj1; |
35530 | arg3 = obj2; | |
35531 | { | |
35532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35533 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35534 | ||
35535 | wxPyEndAllowThreads(__tstate); | |
35536 | if (PyErr_Occurred()) SWIG_fail; | |
35537 | } | |
35538 | Py_INCREF(Py_None); resultobj = Py_None; | |
35539 | return resultobj; | |
35540 | fail: | |
35541 | return NULL; | |
35542 | } | |
35543 | ||
35544 | ||
35545 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35546 | PyObject *obj; | |
35547 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35548 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35549 | Py_INCREF(obj); | |
35550 | return Py_BuildValue((char *)""); | |
35551 | } | |
35552 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35553 | PyObject *resultobj; | |
35554 | int arg1 = (int) wxHORIZONTAL ; | |
35555 | wxBoxSizer *result; | |
994141e6 | 35556 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35557 | char *kwnames[] = { |
35558 | (char *) "orient", NULL | |
35559 | }; | |
35560 | ||
994141e6 RD |
35561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35562 | if (obj0) { | |
15afbcd0 RD |
35563 | arg1 = (int) SWIG_AsInt(obj0); |
35564 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35565 | } |
d14a1e28 RD |
35566 | { |
35567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35568 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35569 | ||
35570 | wxPyEndAllowThreads(__tstate); | |
35571 | if (PyErr_Occurred()) SWIG_fail; | |
35572 | } | |
15afbcd0 | 35573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35574 | return resultobj; |
35575 | fail: | |
35576 | return NULL; | |
35577 | } | |
35578 | ||
35579 | ||
35580 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35581 | PyObject *resultobj; | |
35582 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35583 | int result; | |
35584 | PyObject * obj0 = 0 ; | |
35585 | char *kwnames[] = { | |
35586 | (char *) "self", NULL | |
35587 | }; | |
35588 | ||
35589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35592 | { |
35593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35594 | result = (int)(arg1)->GetOrientation(); | |
35595 | ||
35596 | wxPyEndAllowThreads(__tstate); | |
35597 | if (PyErr_Occurred()) SWIG_fail; | |
35598 | } | |
15afbcd0 | 35599 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35600 | return resultobj; |
35601 | fail: | |
35602 | return NULL; | |
35603 | } | |
35604 | ||
35605 | ||
35606 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35607 | PyObject *resultobj; | |
35608 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35609 | int arg2 ; | |
35610 | PyObject * obj0 = 0 ; | |
994141e6 | 35611 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35612 | char *kwnames[] = { |
35613 | (char *) "self",(char *) "orient", NULL | |
35614 | }; | |
35615 | ||
994141e6 | 35616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35619 | arg2 = (int) SWIG_AsInt(obj1); | |
35620 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35621 | { |
35622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35623 | (arg1)->SetOrientation(arg2); | |
35624 | ||
35625 | wxPyEndAllowThreads(__tstate); | |
35626 | if (PyErr_Occurred()) SWIG_fail; | |
35627 | } | |
35628 | Py_INCREF(Py_None); resultobj = Py_None; | |
35629 | return resultobj; | |
35630 | fail: | |
35631 | return NULL; | |
35632 | } | |
35633 | ||
35634 | ||
d14a1e28 RD |
35635 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { |
35636 | PyObject *obj; | |
35637 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35638 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35639 | Py_INCREF(obj); | |
35640 | return Py_BuildValue((char *)""); | |
35641 | } | |
35642 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35643 | PyObject *resultobj; | |
35644 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35645 | int arg2 = (int) wxHORIZONTAL ; | |
35646 | wxStaticBoxSizer *result; | |
35647 | PyObject * obj0 = 0 ; | |
994141e6 | 35648 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35649 | char *kwnames[] = { |
35650 | (char *) "box",(char *) "orient", NULL | |
35651 | }; | |
35652 | ||
994141e6 | 35653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
35655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 35656 | if (obj1) { |
15afbcd0 RD |
35657 | arg2 = (int) SWIG_AsInt(obj1); |
35658 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35659 | } |
d14a1e28 RD |
35660 | { |
35661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35662 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35663 | ||
35664 | wxPyEndAllowThreads(__tstate); | |
35665 | if (PyErr_Occurred()) SWIG_fail; | |
35666 | } | |
15afbcd0 | 35667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
35668 | return resultobj; |
35669 | fail: | |
35670 | return NULL; | |
35671 | } | |
35672 | ||
35673 | ||
35674 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35675 | PyObject *resultobj; | |
35676 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35677 | wxStaticBox *result; | |
35678 | PyObject * obj0 = 0 ; | |
35679 | char *kwnames[] = { | |
35680 | (char *) "self", NULL | |
35681 | }; | |
35682 | ||
35683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35686 | { |
35687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35688 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35689 | ||
35690 | wxPyEndAllowThreads(__tstate); | |
35691 | if (PyErr_Occurred()) SWIG_fail; | |
35692 | } | |
35693 | { | |
35694 | resultobj = wxPyMake_wxObject(result); | |
35695 | } | |
35696 | return resultobj; | |
35697 | fail: | |
35698 | return NULL; | |
35699 | } | |
35700 | ||
35701 | ||
d14a1e28 RD |
35702 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { |
35703 | PyObject *obj; | |
35704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35705 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35706 | Py_INCREF(obj); | |
35707 | return Py_BuildValue((char *)""); | |
35708 | } | |
35709 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35710 | PyObject *resultobj; | |
35711 | int arg1 = (int) 1 ; | |
35712 | int arg2 = (int) 0 ; | |
35713 | int arg3 = (int) 0 ; | |
35714 | int arg4 = (int) 0 ; | |
35715 | wxGridSizer *result; | |
994141e6 RD |
35716 | PyObject * obj0 = 0 ; |
35717 | PyObject * obj1 = 0 ; | |
35718 | PyObject * obj2 = 0 ; | |
35719 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35720 | char *kwnames[] = { |
35721 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35722 | }; | |
35723 | ||
994141e6 RD |
35724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35725 | if (obj0) { | |
15afbcd0 RD |
35726 | arg1 = (int) SWIG_AsInt(obj0); |
35727 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35728 | } |
35729 | if (obj1) { | |
15afbcd0 RD |
35730 | arg2 = (int) SWIG_AsInt(obj1); |
35731 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35732 | } |
35733 | if (obj2) { | |
15afbcd0 RD |
35734 | arg3 = (int) SWIG_AsInt(obj2); |
35735 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35736 | } |
35737 | if (obj3) { | |
15afbcd0 RD |
35738 | arg4 = (int) SWIG_AsInt(obj3); |
35739 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35740 | } |
d14a1e28 RD |
35741 | { |
35742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35743 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35744 | ||
35745 | wxPyEndAllowThreads(__tstate); | |
35746 | if (PyErr_Occurred()) SWIG_fail; | |
35747 | } | |
15afbcd0 | 35748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
35749 | return resultobj; |
35750 | fail: | |
35751 | return NULL; | |
35752 | } | |
35753 | ||
35754 | ||
d14a1e28 RD |
35755 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { |
35756 | PyObject *resultobj; | |
35757 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35758 | int arg2 ; | |
35759 | PyObject * obj0 = 0 ; | |
994141e6 | 35760 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35761 | char *kwnames[] = { |
35762 | (char *) "self",(char *) "cols", NULL | |
35763 | }; | |
35764 | ||
994141e6 | 35765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35768 | arg2 = (int) SWIG_AsInt(obj1); | |
35769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35770 | { |
35771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35772 | (arg1)->SetCols(arg2); | |
35773 | ||
35774 | wxPyEndAllowThreads(__tstate); | |
35775 | if (PyErr_Occurred()) SWIG_fail; | |
35776 | } | |
35777 | Py_INCREF(Py_None); resultobj = Py_None; | |
35778 | return resultobj; | |
35779 | fail: | |
35780 | return NULL; | |
35781 | } | |
35782 | ||
35783 | ||
35784 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35785 | PyObject *resultobj; | |
35786 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35787 | int arg2 ; | |
35788 | PyObject * obj0 = 0 ; | |
994141e6 | 35789 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35790 | char *kwnames[] = { |
35791 | (char *) "self",(char *) "rows", NULL | |
35792 | }; | |
35793 | ||
994141e6 | 35794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35797 | arg2 = (int) SWIG_AsInt(obj1); | |
35798 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35799 | { |
35800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35801 | (arg1)->SetRows(arg2); | |
35802 | ||
35803 | wxPyEndAllowThreads(__tstate); | |
35804 | if (PyErr_Occurred()) SWIG_fail; | |
35805 | } | |
35806 | Py_INCREF(Py_None); resultobj = Py_None; | |
35807 | return resultobj; | |
35808 | fail: | |
35809 | return NULL; | |
35810 | } | |
35811 | ||
35812 | ||
35813 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35814 | PyObject *resultobj; | |
35815 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35816 | int arg2 ; | |
35817 | PyObject * obj0 = 0 ; | |
994141e6 | 35818 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35819 | char *kwnames[] = { |
35820 | (char *) "self",(char *) "gap", NULL | |
35821 | }; | |
35822 | ||
994141e6 | 35823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35826 | arg2 = (int) SWIG_AsInt(obj1); | |
35827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35828 | { |
35829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35830 | (arg1)->SetVGap(arg2); | |
35831 | ||
35832 | wxPyEndAllowThreads(__tstate); | |
35833 | if (PyErr_Occurred()) SWIG_fail; | |
35834 | } | |
35835 | Py_INCREF(Py_None); resultobj = Py_None; | |
35836 | return resultobj; | |
35837 | fail: | |
35838 | return NULL; | |
35839 | } | |
35840 | ||
35841 | ||
35842 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35843 | PyObject *resultobj; | |
35844 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35845 | int arg2 ; | |
35846 | PyObject * obj0 = 0 ; | |
994141e6 | 35847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35848 | char *kwnames[] = { |
35849 | (char *) "self",(char *) "gap", NULL | |
35850 | }; | |
35851 | ||
994141e6 | 35852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35855 | arg2 = (int) SWIG_AsInt(obj1); | |
35856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35857 | { |
35858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35859 | (arg1)->SetHGap(arg2); | |
35860 | ||
35861 | wxPyEndAllowThreads(__tstate); | |
35862 | if (PyErr_Occurred()) SWIG_fail; | |
35863 | } | |
35864 | Py_INCREF(Py_None); resultobj = Py_None; | |
35865 | return resultobj; | |
35866 | fail: | |
35867 | return NULL; | |
35868 | } | |
35869 | ||
35870 | ||
35871 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35872 | PyObject *resultobj; | |
35873 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35874 | int result; | |
35875 | PyObject * obj0 = 0 ; | |
35876 | char *kwnames[] = { | |
35877 | (char *) "self", NULL | |
35878 | }; | |
35879 | ||
35880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35883 | { |
35884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35885 | result = (int)(arg1)->GetCols(); | |
35886 | ||
35887 | wxPyEndAllowThreads(__tstate); | |
35888 | if (PyErr_Occurred()) SWIG_fail; | |
35889 | } | |
15afbcd0 | 35890 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35891 | return resultobj; |
35892 | fail: | |
35893 | return NULL; | |
35894 | } | |
35895 | ||
35896 | ||
35897 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35898 | PyObject *resultobj; | |
35899 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35900 | int result; | |
35901 | PyObject * obj0 = 0 ; | |
35902 | char *kwnames[] = { | |
35903 | (char *) "self", NULL | |
35904 | }; | |
35905 | ||
35906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35909 | { |
35910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35911 | result = (int)(arg1)->GetRows(); | |
35912 | ||
35913 | wxPyEndAllowThreads(__tstate); | |
35914 | if (PyErr_Occurred()) SWIG_fail; | |
35915 | } | |
15afbcd0 | 35916 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35917 | return resultobj; |
35918 | fail: | |
35919 | return NULL; | |
35920 | } | |
35921 | ||
35922 | ||
35923 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35924 | PyObject *resultobj; | |
35925 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35926 | int result; | |
35927 | PyObject * obj0 = 0 ; | |
35928 | char *kwnames[] = { | |
35929 | (char *) "self", NULL | |
35930 | }; | |
35931 | ||
35932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35935 | { |
35936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35937 | result = (int)(arg1)->GetVGap(); | |
35938 | ||
35939 | wxPyEndAllowThreads(__tstate); | |
35940 | if (PyErr_Occurred()) SWIG_fail; | |
35941 | } | |
15afbcd0 | 35942 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35943 | return resultobj; |
35944 | fail: | |
35945 | return NULL; | |
35946 | } | |
35947 | ||
35948 | ||
35949 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35950 | PyObject *resultobj; | |
35951 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35952 | int result; | |
35953 | PyObject * obj0 = 0 ; | |
35954 | char *kwnames[] = { | |
35955 | (char *) "self", NULL | |
35956 | }; | |
35957 | ||
35958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35961 | { |
35962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35963 | result = (int)(arg1)->GetHGap(); | |
35964 | ||
35965 | wxPyEndAllowThreads(__tstate); | |
35966 | if (PyErr_Occurred()) SWIG_fail; | |
35967 | } | |
15afbcd0 | 35968 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35969 | return resultobj; |
35970 | fail: | |
35971 | return NULL; | |
35972 | } | |
35973 | ||
35974 | ||
35975 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
35976 | PyObject *obj; | |
35977 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35978 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
35979 | Py_INCREF(obj); | |
35980 | return Py_BuildValue((char *)""); | |
35981 | } | |
35982 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35983 | PyObject *resultobj; | |
35984 | int arg1 = (int) 1 ; | |
35985 | int arg2 = (int) 0 ; | |
35986 | int arg3 = (int) 0 ; | |
35987 | int arg4 = (int) 0 ; | |
35988 | wxFlexGridSizer *result; | |
994141e6 RD |
35989 | PyObject * obj0 = 0 ; |
35990 | PyObject * obj1 = 0 ; | |
35991 | PyObject * obj2 = 0 ; | |
35992 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35993 | char *kwnames[] = { |
35994 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35995 | }; | |
35996 | ||
994141e6 RD |
35997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35998 | if (obj0) { | |
15afbcd0 RD |
35999 | arg1 = (int) SWIG_AsInt(obj0); |
36000 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36001 | } |
36002 | if (obj1) { | |
15afbcd0 RD |
36003 | arg2 = (int) SWIG_AsInt(obj1); |
36004 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36005 | } |
36006 | if (obj2) { | |
15afbcd0 RD |
36007 | arg3 = (int) SWIG_AsInt(obj2); |
36008 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36009 | } |
36010 | if (obj3) { | |
15afbcd0 RD |
36011 | arg4 = (int) SWIG_AsInt(obj3); |
36012 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36013 | } |
d14a1e28 RD |
36014 | { |
36015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36016 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36017 | ||
36018 | wxPyEndAllowThreads(__tstate); | |
36019 | if (PyErr_Occurred()) SWIG_fail; | |
36020 | } | |
15afbcd0 | 36021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
36022 | return resultobj; |
36023 | fail: | |
36024 | return NULL; | |
36025 | } | |
36026 | ||
36027 | ||
d14a1e28 RD |
36028 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { |
36029 | PyObject *resultobj; | |
36030 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36031 | size_t arg2 ; | |
36032 | int arg3 = (int) 0 ; | |
36033 | PyObject * obj0 = 0 ; | |
36034 | PyObject * obj1 = 0 ; | |
994141e6 | 36035 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36036 | char *kwnames[] = { |
36037 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36038 | }; | |
36039 | ||
994141e6 | 36040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36043 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36045 | if (obj2) { |
15afbcd0 RD |
36046 | arg3 = (int) SWIG_AsInt(obj2); |
36047 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36048 | } |
d14a1e28 RD |
36049 | { |
36050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36051 | (arg1)->AddGrowableRow(arg2,arg3); | |
36052 | ||
36053 | wxPyEndAllowThreads(__tstate); | |
36054 | if (PyErr_Occurred()) SWIG_fail; | |
36055 | } | |
36056 | Py_INCREF(Py_None); resultobj = Py_None; | |
36057 | return resultobj; | |
36058 | fail: | |
36059 | return NULL; | |
36060 | } | |
36061 | ||
36062 | ||
36063 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36064 | PyObject *resultobj; | |
36065 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36066 | size_t arg2 ; | |
36067 | PyObject * obj0 = 0 ; | |
36068 | PyObject * obj1 = 0 ; | |
36069 | char *kwnames[] = { | |
36070 | (char *) "self",(char *) "idx", NULL | |
36071 | }; | |
36072 | ||
36073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36076 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36078 | { |
36079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36080 | (arg1)->RemoveGrowableRow(arg2); | |
36081 | ||
36082 | wxPyEndAllowThreads(__tstate); | |
36083 | if (PyErr_Occurred()) SWIG_fail; | |
36084 | } | |
36085 | Py_INCREF(Py_None); resultobj = Py_None; | |
36086 | return resultobj; | |
36087 | fail: | |
36088 | return NULL; | |
36089 | } | |
36090 | ||
36091 | ||
36092 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36093 | PyObject *resultobj; | |
36094 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36095 | size_t arg2 ; | |
36096 | int arg3 = (int) 0 ; | |
36097 | PyObject * obj0 = 0 ; | |
36098 | PyObject * obj1 = 0 ; | |
994141e6 | 36099 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36100 | char *kwnames[] = { |
36101 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36102 | }; | |
36103 | ||
994141e6 | 36104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36107 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36108 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36109 | if (obj2) { |
15afbcd0 RD |
36110 | arg3 = (int) SWIG_AsInt(obj2); |
36111 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36112 | } |
d14a1e28 RD |
36113 | { |
36114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36115 | (arg1)->AddGrowableCol(arg2,arg3); | |
36116 | ||
36117 | wxPyEndAllowThreads(__tstate); | |
36118 | if (PyErr_Occurred()) SWIG_fail; | |
36119 | } | |
36120 | Py_INCREF(Py_None); resultobj = Py_None; | |
36121 | return resultobj; | |
36122 | fail: | |
36123 | return NULL; | |
36124 | } | |
36125 | ||
36126 | ||
36127 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36128 | PyObject *resultobj; | |
36129 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36130 | size_t arg2 ; | |
36131 | PyObject * obj0 = 0 ; | |
36132 | PyObject * obj1 = 0 ; | |
36133 | char *kwnames[] = { | |
36134 | (char *) "self",(char *) "idx", NULL | |
36135 | }; | |
36136 | ||
36137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36140 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36141 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36142 | { |
36143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36144 | (arg1)->RemoveGrowableCol(arg2); | |
36145 | ||
36146 | wxPyEndAllowThreads(__tstate); | |
36147 | if (PyErr_Occurred()) SWIG_fail; | |
36148 | } | |
36149 | Py_INCREF(Py_None); resultobj = Py_None; | |
36150 | return resultobj; | |
36151 | fail: | |
36152 | return NULL; | |
36153 | } | |
36154 | ||
36155 | ||
36156 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36157 | PyObject *resultobj; | |
36158 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36159 | int arg2 ; | |
36160 | PyObject * obj0 = 0 ; | |
994141e6 | 36161 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36162 | char *kwnames[] = { |
36163 | (char *) "self",(char *) "direction", NULL | |
36164 | }; | |
36165 | ||
994141e6 | 36166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36169 | arg2 = (int) SWIG_AsInt(obj1); | |
36170 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36171 | { |
36172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36173 | (arg1)->SetFlexibleDirection(arg2); | |
36174 | ||
36175 | wxPyEndAllowThreads(__tstate); | |
36176 | if (PyErr_Occurred()) SWIG_fail; | |
36177 | } | |
36178 | Py_INCREF(Py_None); resultobj = Py_None; | |
36179 | return resultobj; | |
36180 | fail: | |
36181 | return NULL; | |
36182 | } | |
36183 | ||
36184 | ||
36185 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36186 | PyObject *resultobj; | |
36187 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36188 | int result; | |
36189 | PyObject * obj0 = 0 ; | |
36190 | char *kwnames[] = { | |
36191 | (char *) "self", NULL | |
36192 | }; | |
36193 | ||
36194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36197 | { |
36198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36199 | result = (int)(arg1)->GetFlexibleDirection(); | |
36200 | ||
36201 | wxPyEndAllowThreads(__tstate); | |
36202 | if (PyErr_Occurred()) SWIG_fail; | |
36203 | } | |
15afbcd0 | 36204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36205 | return resultobj; |
36206 | fail: | |
36207 | return NULL; | |
36208 | } | |
36209 | ||
36210 | ||
36211 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36212 | PyObject *resultobj; | |
36213 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36214 | int arg2 ; | |
36215 | PyObject * obj0 = 0 ; | |
994141e6 | 36216 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36217 | char *kwnames[] = { |
36218 | (char *) "self",(char *) "mode", NULL | |
36219 | }; | |
36220 | ||
994141e6 | 36221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36224 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36225 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36226 | { |
36227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36228 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36229 | ||
36230 | wxPyEndAllowThreads(__tstate); | |
36231 | if (PyErr_Occurred()) SWIG_fail; | |
36232 | } | |
36233 | Py_INCREF(Py_None); resultobj = Py_None; | |
36234 | return resultobj; | |
36235 | fail: | |
36236 | return NULL; | |
36237 | } | |
36238 | ||
36239 | ||
36240 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36241 | PyObject *resultobj; | |
36242 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36243 | int result; | |
36244 | PyObject * obj0 = 0 ; | |
36245 | char *kwnames[] = { | |
36246 | (char *) "self", NULL | |
36247 | }; | |
36248 | ||
36249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36252 | { |
36253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36254 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36255 | ||
36256 | wxPyEndAllowThreads(__tstate); | |
36257 | if (PyErr_Occurred()) SWIG_fail; | |
36258 | } | |
15afbcd0 | 36259 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36260 | return resultobj; |
36261 | fail: | |
36262 | return NULL; | |
36263 | } | |
36264 | ||
36265 | ||
e811c8ce RD |
36266 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36267 | PyObject *resultobj; | |
36268 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36269 | wxArrayInt *result; | |
36270 | PyObject * obj0 = 0 ; | |
36271 | char *kwnames[] = { | |
36272 | (char *) "self", NULL | |
36273 | }; | |
36274 | ||
36275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36278 | { |
36279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36280 | { | |
36281 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36282 | result = (wxArrayInt *) &_result_ref; | |
36283 | } | |
36284 | ||
36285 | wxPyEndAllowThreads(__tstate); | |
36286 | if (PyErr_Occurred()) SWIG_fail; | |
36287 | } | |
36288 | { | |
36289 | resultobj = PyList_New(0); | |
36290 | size_t idx; | |
36291 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36292 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36293 | PyList_Append(resultobj, val); | |
36294 | Py_DECREF(val); | |
36295 | } | |
36296 | } | |
36297 | return resultobj; | |
36298 | fail: | |
36299 | return NULL; | |
36300 | } | |
36301 | ||
36302 | ||
36303 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36304 | PyObject *resultobj; | |
36305 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36306 | wxArrayInt *result; | |
36307 | PyObject * obj0 = 0 ; | |
36308 | char *kwnames[] = { | |
36309 | (char *) "self", NULL | |
36310 | }; | |
36311 | ||
36312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36315 | { |
36316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36317 | { | |
36318 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36319 | result = (wxArrayInt *) &_result_ref; | |
36320 | } | |
36321 | ||
36322 | wxPyEndAllowThreads(__tstate); | |
36323 | if (PyErr_Occurred()) SWIG_fail; | |
36324 | } | |
36325 | { | |
36326 | resultobj = PyList_New(0); | |
36327 | size_t idx; | |
36328 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36329 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36330 | PyList_Append(resultobj, val); | |
36331 | Py_DECREF(val); | |
36332 | } | |
36333 | } | |
36334 | return resultobj; | |
36335 | fail: | |
36336 | return NULL; | |
36337 | } | |
36338 | ||
36339 | ||
d14a1e28 RD |
36340 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36341 | PyObject *obj; | |
36342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36343 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36344 | Py_INCREF(obj); | |
36345 | return Py_BuildValue((char *)""); | |
36346 | } | |
36347 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36348 | PyObject *resultobj; | |
36349 | int arg1 = (int) 0 ; | |
36350 | int arg2 = (int) 0 ; | |
36351 | wxGBPosition *result; | |
994141e6 RD |
36352 | PyObject * obj0 = 0 ; |
36353 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36354 | char *kwnames[] = { |
36355 | (char *) "row",(char *) "col", NULL | |
36356 | }; | |
36357 | ||
994141e6 RD |
36358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36359 | if (obj0) { | |
15afbcd0 RD |
36360 | arg1 = (int) SWIG_AsInt(obj0); |
36361 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36362 | } |
36363 | if (obj1) { | |
15afbcd0 RD |
36364 | arg2 = (int) SWIG_AsInt(obj1); |
36365 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36366 | } |
d14a1e28 RD |
36367 | { |
36368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36369 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36370 | ||
36371 | wxPyEndAllowThreads(__tstate); | |
36372 | if (PyErr_Occurred()) SWIG_fail; | |
36373 | } | |
15afbcd0 | 36374 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36375 | return resultobj; |
36376 | fail: | |
36377 | return NULL; | |
36378 | } | |
36379 | ||
36380 | ||
36381 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36382 | PyObject *resultobj; | |
36383 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36384 | int result; | |
36385 | PyObject * obj0 = 0 ; | |
36386 | char *kwnames[] = { | |
36387 | (char *) "self", NULL | |
36388 | }; | |
36389 | ||
36390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36393 | { |
36394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36395 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36396 | ||
36397 | wxPyEndAllowThreads(__tstate); | |
36398 | if (PyErr_Occurred()) SWIG_fail; | |
36399 | } | |
15afbcd0 | 36400 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36401 | return resultobj; |
36402 | fail: | |
36403 | return NULL; | |
36404 | } | |
36405 | ||
36406 | ||
36407 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36408 | PyObject *resultobj; | |
36409 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36410 | int result; | |
36411 | PyObject * obj0 = 0 ; | |
36412 | char *kwnames[] = { | |
36413 | (char *) "self", NULL | |
36414 | }; | |
36415 | ||
36416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36419 | { |
36420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36421 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36422 | ||
36423 | wxPyEndAllowThreads(__tstate); | |
36424 | if (PyErr_Occurred()) SWIG_fail; | |
36425 | } | |
15afbcd0 | 36426 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36427 | return resultobj; |
36428 | fail: | |
36429 | return NULL; | |
36430 | } | |
36431 | ||
36432 | ||
36433 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36434 | PyObject *resultobj; | |
36435 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36436 | int arg2 ; | |
36437 | PyObject * obj0 = 0 ; | |
994141e6 | 36438 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36439 | char *kwnames[] = { |
36440 | (char *) "self",(char *) "row", NULL | |
36441 | }; | |
36442 | ||
994141e6 | 36443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36446 | arg2 = (int) SWIG_AsInt(obj1); | |
36447 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36448 | { |
36449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36450 | (arg1)->SetRow(arg2); | |
36451 | ||
36452 | wxPyEndAllowThreads(__tstate); | |
36453 | if (PyErr_Occurred()) SWIG_fail; | |
36454 | } | |
36455 | Py_INCREF(Py_None); resultobj = Py_None; | |
36456 | return resultobj; | |
36457 | fail: | |
36458 | return NULL; | |
36459 | } | |
36460 | ||
36461 | ||
36462 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36463 | PyObject *resultobj; | |
36464 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36465 | int arg2 ; | |
36466 | PyObject * obj0 = 0 ; | |
994141e6 | 36467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36468 | char *kwnames[] = { |
36469 | (char *) "self",(char *) "col", NULL | |
36470 | }; | |
36471 | ||
994141e6 | 36472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36475 | arg2 = (int) SWIG_AsInt(obj1); | |
36476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36477 | { |
36478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36479 | (arg1)->SetCol(arg2); | |
36480 | ||
36481 | wxPyEndAllowThreads(__tstate); | |
36482 | if (PyErr_Occurred()) SWIG_fail; | |
36483 | } | |
36484 | Py_INCREF(Py_None); resultobj = Py_None; | |
36485 | return resultobj; | |
36486 | fail: | |
36487 | return NULL; | |
36488 | } | |
36489 | ||
36490 | ||
36491 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36492 | PyObject *resultobj; | |
36493 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36494 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36495 | bool result; |
4f89f6a3 | 36496 | wxGBPosition temp2 ; |
d14a1e28 RD |
36497 | PyObject * obj0 = 0 ; |
36498 | PyObject * obj1 = 0 ; | |
36499 | char *kwnames[] = { | |
22faec7d | 36500 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36501 | }; |
36502 | ||
36503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36506 | { |
36507 | arg2 = &temp2; | |
36508 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36509 | } | |
d14a1e28 RD |
36510 | { |
36511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36512 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36513 | |
36514 | wxPyEndAllowThreads(__tstate); | |
36515 | if (PyErr_Occurred()) SWIG_fail; | |
36516 | } | |
4f89f6a3 RD |
36517 | { |
36518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36519 | } | |
d14a1e28 RD |
36520 | return resultobj; |
36521 | fail: | |
36522 | return NULL; | |
36523 | } | |
36524 | ||
36525 | ||
36526 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36527 | PyObject *resultobj; | |
36528 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36529 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36530 | bool result; |
4f89f6a3 | 36531 | wxGBPosition temp2 ; |
d14a1e28 RD |
36532 | PyObject * obj0 = 0 ; |
36533 | PyObject * obj1 = 0 ; | |
36534 | char *kwnames[] = { | |
22faec7d | 36535 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36536 | }; |
36537 | ||
36538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36541 | { |
36542 | arg2 = &temp2; | |
36543 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36544 | } | |
d14a1e28 RD |
36545 | { |
36546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36547 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36548 | |
36549 | wxPyEndAllowThreads(__tstate); | |
36550 | if (PyErr_Occurred()) SWIG_fail; | |
36551 | } | |
4f89f6a3 RD |
36552 | { |
36553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36554 | } | |
d14a1e28 RD |
36555 | return resultobj; |
36556 | fail: | |
36557 | return NULL; | |
36558 | } | |
36559 | ||
36560 | ||
e811c8ce RD |
36561 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36562 | PyObject *resultobj; | |
36563 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36564 | int arg2 = (int) 0 ; | |
36565 | int arg3 = (int) 0 ; | |
36566 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36567 | PyObject * obj1 = 0 ; |
36568 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36569 | char *kwnames[] = { |
36570 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36571 | }; | |
36572 | ||
994141e6 | 36573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36576 | if (obj1) { |
15afbcd0 RD |
36577 | arg2 = (int) SWIG_AsInt(obj1); |
36578 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36579 | } |
36580 | if (obj2) { | |
15afbcd0 RD |
36581 | arg3 = (int) SWIG_AsInt(obj2); |
36582 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36583 | } |
e811c8ce RD |
36584 | { |
36585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36586 | wxGBPosition_Set(arg1,arg2,arg3); | |
36587 | ||
36588 | wxPyEndAllowThreads(__tstate); | |
36589 | if (PyErr_Occurred()) SWIG_fail; | |
36590 | } | |
36591 | Py_INCREF(Py_None); resultobj = Py_None; | |
36592 | return resultobj; | |
36593 | fail: | |
36594 | return NULL; | |
36595 | } | |
36596 | ||
36597 | ||
36598 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36599 | PyObject *resultobj; |
36600 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36601 | PyObject *result; | |
36602 | PyObject * obj0 = 0 ; | |
36603 | char *kwnames[] = { | |
36604 | (char *) "self", NULL | |
36605 | }; | |
36606 | ||
e811c8ce | 36607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36610 | { |
36611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36612 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36613 | |
36614 | wxPyEndAllowThreads(__tstate); | |
36615 | if (PyErr_Occurred()) SWIG_fail; | |
36616 | } | |
36617 | resultobj = result; | |
36618 | return resultobj; | |
36619 | fail: | |
36620 | return NULL; | |
36621 | } | |
36622 | ||
36623 | ||
36624 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36625 | PyObject *obj; | |
36626 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36627 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36628 | Py_INCREF(obj); | |
36629 | return Py_BuildValue((char *)""); | |
36630 | } | |
36631 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36632 | PyObject *resultobj; | |
36633 | int arg1 = (int) 1 ; | |
36634 | int arg2 = (int) 1 ; | |
36635 | wxGBSpan *result; | |
994141e6 RD |
36636 | PyObject * obj0 = 0 ; |
36637 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36638 | char *kwnames[] = { |
36639 | (char *) "rowspan",(char *) "colspan", NULL | |
36640 | }; | |
36641 | ||
994141e6 RD |
36642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36643 | if (obj0) { | |
15afbcd0 RD |
36644 | arg1 = (int) SWIG_AsInt(obj0); |
36645 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36646 | } |
36647 | if (obj1) { | |
15afbcd0 RD |
36648 | arg2 = (int) SWIG_AsInt(obj1); |
36649 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36650 | } |
d14a1e28 RD |
36651 | { |
36652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36653 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36654 | ||
36655 | wxPyEndAllowThreads(__tstate); | |
36656 | if (PyErr_Occurred()) SWIG_fail; | |
36657 | } | |
15afbcd0 | 36658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36659 | return resultobj; |
36660 | fail: | |
36661 | return NULL; | |
36662 | } | |
36663 | ||
36664 | ||
36665 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36666 | PyObject *resultobj; | |
36667 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36668 | int result; | |
36669 | PyObject * obj0 = 0 ; | |
36670 | char *kwnames[] = { | |
36671 | (char *) "self", NULL | |
36672 | }; | |
36673 | ||
36674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36677 | { |
36678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36679 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36680 | ||
36681 | wxPyEndAllowThreads(__tstate); | |
36682 | if (PyErr_Occurred()) SWIG_fail; | |
36683 | } | |
15afbcd0 | 36684 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36685 | return resultobj; |
36686 | fail: | |
36687 | return NULL; | |
36688 | } | |
36689 | ||
36690 | ||
36691 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36692 | PyObject *resultobj; | |
36693 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36694 | int result; | |
36695 | PyObject * obj0 = 0 ; | |
36696 | char *kwnames[] = { | |
36697 | (char *) "self", NULL | |
36698 | }; | |
36699 | ||
36700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36703 | { |
36704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36705 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
36706 | ||
36707 | wxPyEndAllowThreads(__tstate); | |
36708 | if (PyErr_Occurred()) SWIG_fail; | |
36709 | } | |
15afbcd0 | 36710 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36711 | return resultobj; |
36712 | fail: | |
36713 | return NULL; | |
36714 | } | |
36715 | ||
36716 | ||
36717 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36718 | PyObject *resultobj; | |
36719 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36720 | int arg2 ; | |
36721 | PyObject * obj0 = 0 ; | |
994141e6 | 36722 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36723 | char *kwnames[] = { |
36724 | (char *) "self",(char *) "rowspan", NULL | |
36725 | }; | |
36726 | ||
994141e6 | 36727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36730 | arg2 = (int) SWIG_AsInt(obj1); | |
36731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36732 | { |
36733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36734 | (arg1)->SetRowspan(arg2); | |
36735 | ||
36736 | wxPyEndAllowThreads(__tstate); | |
36737 | if (PyErr_Occurred()) SWIG_fail; | |
36738 | } | |
36739 | Py_INCREF(Py_None); resultobj = Py_None; | |
36740 | return resultobj; | |
36741 | fail: | |
36742 | return NULL; | |
36743 | } | |
36744 | ||
36745 | ||
36746 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36747 | PyObject *resultobj; | |
36748 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36749 | int arg2 ; | |
36750 | PyObject * obj0 = 0 ; | |
994141e6 | 36751 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36752 | char *kwnames[] = { |
36753 | (char *) "self",(char *) "colspan", NULL | |
36754 | }; | |
36755 | ||
994141e6 | 36756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36759 | arg2 = (int) SWIG_AsInt(obj1); | |
36760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36761 | { |
36762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36763 | (arg1)->SetColspan(arg2); | |
36764 | ||
36765 | wxPyEndAllowThreads(__tstate); | |
36766 | if (PyErr_Occurred()) SWIG_fail; | |
36767 | } | |
36768 | Py_INCREF(Py_None); resultobj = Py_None; | |
36769 | return resultobj; | |
36770 | fail: | |
36771 | return NULL; | |
36772 | } | |
36773 | ||
36774 | ||
36775 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36776 | PyObject *resultobj; | |
36777 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36778 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36779 | bool result; |
4f89f6a3 | 36780 | wxGBSpan temp2 ; |
d14a1e28 RD |
36781 | PyObject * obj0 = 0 ; |
36782 | PyObject * obj1 = 0 ; | |
36783 | char *kwnames[] = { | |
22faec7d | 36784 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36785 | }; |
36786 | ||
36787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36790 | { |
36791 | arg2 = &temp2; | |
36792 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36793 | } | |
d14a1e28 RD |
36794 | { |
36795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36796 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36797 | |
36798 | wxPyEndAllowThreads(__tstate); | |
36799 | if (PyErr_Occurred()) SWIG_fail; | |
36800 | } | |
4f89f6a3 RD |
36801 | { |
36802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36803 | } | |
d14a1e28 RD |
36804 | return resultobj; |
36805 | fail: | |
36806 | return NULL; | |
36807 | } | |
36808 | ||
36809 | ||
36810 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36811 | PyObject *resultobj; | |
36812 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36813 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36814 | bool result; |
4f89f6a3 | 36815 | wxGBSpan temp2 ; |
d14a1e28 RD |
36816 | PyObject * obj0 = 0 ; |
36817 | PyObject * obj1 = 0 ; | |
36818 | char *kwnames[] = { | |
22faec7d | 36819 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36820 | }; |
36821 | ||
36822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36825 | { |
36826 | arg2 = &temp2; | |
36827 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36828 | } | |
d14a1e28 RD |
36829 | { |
36830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36831 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36832 | |
36833 | wxPyEndAllowThreads(__tstate); | |
36834 | if (PyErr_Occurred()) SWIG_fail; | |
36835 | } | |
4f89f6a3 RD |
36836 | { |
36837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36838 | } | |
d14a1e28 RD |
36839 | return resultobj; |
36840 | fail: | |
36841 | return NULL; | |
36842 | } | |
36843 | ||
36844 | ||
e811c8ce RD |
36845 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36846 | PyObject *resultobj; | |
36847 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36848 | int arg2 = (int) 1 ; | |
36849 | int arg3 = (int) 1 ; | |
36850 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36851 | PyObject * obj1 = 0 ; |
36852 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36853 | char *kwnames[] = { |
36854 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
36855 | }; | |
36856 | ||
994141e6 | 36857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36860 | if (obj1) { |
15afbcd0 RD |
36861 | arg2 = (int) SWIG_AsInt(obj1); |
36862 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36863 | } |
36864 | if (obj2) { | |
15afbcd0 RD |
36865 | arg3 = (int) SWIG_AsInt(obj2); |
36866 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36867 | } |
e811c8ce RD |
36868 | { |
36869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36870 | wxGBSpan_Set(arg1,arg2,arg3); | |
36871 | ||
36872 | wxPyEndAllowThreads(__tstate); | |
36873 | if (PyErr_Occurred()) SWIG_fail; | |
36874 | } | |
36875 | Py_INCREF(Py_None); resultobj = Py_None; | |
36876 | return resultobj; | |
36877 | fail: | |
36878 | return NULL; | |
36879 | } | |
36880 | ||
36881 | ||
36882 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36883 | PyObject *resultobj; |
36884 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36885 | PyObject *result; | |
36886 | PyObject * obj0 = 0 ; | |
36887 | char *kwnames[] = { | |
36888 | (char *) "self", NULL | |
36889 | }; | |
36890 | ||
e811c8ce | 36891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36894 | { |
36895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36896 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
36897 | |
36898 | wxPyEndAllowThreads(__tstate); | |
36899 | if (PyErr_Occurred()) SWIG_fail; | |
36900 | } | |
36901 | resultobj = result; | |
36902 | return resultobj; | |
36903 | fail: | |
36904 | return NULL; | |
36905 | } | |
36906 | ||
36907 | ||
36908 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
36909 | PyObject *obj; | |
36910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36911 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
36912 | Py_INCREF(obj); | |
36913 | return Py_BuildValue((char *)""); | |
36914 | } | |
36915 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
36916 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
36917 | return 1; | |
36918 | } | |
36919 | ||
36920 | ||
36921 | static PyObject *_wrap_DefaultSpan_get() { | |
36922 | PyObject *pyobj; | |
36923 | ||
15afbcd0 | 36924 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
36925 | return pyobj; |
36926 | } | |
36927 | ||
36928 | ||
36929 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36930 | PyObject *resultobj; | |
36931 | wxGBSizerItem *result; | |
36932 | char *kwnames[] = { | |
36933 | NULL | |
36934 | }; | |
36935 | ||
36936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
36937 | { | |
36938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36939 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
36940 | ||
36941 | wxPyEndAllowThreads(__tstate); | |
36942 | if (PyErr_Occurred()) SWIG_fail; | |
36943 | } | |
15afbcd0 | 36944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36945 | return resultobj; |
36946 | fail: | |
36947 | return NULL; | |
36948 | } | |
36949 | ||
36950 | ||
36951 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36952 | PyObject *resultobj; | |
36953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36954 | wxGBPosition *arg2 = 0 ; | |
36955 | wxGBSpan *arg3 = 0 ; | |
36956 | int arg4 ; | |
36957 | int arg5 ; | |
248ed943 | 36958 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
36959 | wxGBSizerItem *result; |
36960 | wxGBPosition temp2 ; | |
36961 | wxGBSpan temp3 ; | |
36962 | PyObject * obj0 = 0 ; | |
36963 | PyObject * obj1 = 0 ; | |
36964 | PyObject * obj2 = 0 ; | |
994141e6 RD |
36965 | PyObject * obj3 = 0 ; |
36966 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36967 | PyObject * obj5 = 0 ; |
36968 | char *kwnames[] = { | |
36969 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36970 | }; | |
36971 | ||
248ed943 | 36972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
36973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
36974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36975 | { |
36976 | arg2 = &temp2; | |
36977 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36978 | } | |
36979 | { | |
36980 | arg3 = &temp3; | |
36981 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36982 | } | |
15afbcd0 RD |
36983 | arg4 = (int) SWIG_AsInt(obj3); |
36984 | if (PyErr_Occurred()) SWIG_fail; | |
36985 | arg5 = (int) SWIG_AsInt(obj4); | |
36986 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
36987 | if (obj5) { |
36988 | arg6 = obj5; | |
36989 | } | |
d14a1e28 RD |
36990 | { |
36991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 36992 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
36993 | |
36994 | wxPyEndAllowThreads(__tstate); | |
36995 | if (PyErr_Occurred()) SWIG_fail; | |
36996 | } | |
15afbcd0 | 36997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36998 | return resultobj; |
36999 | fail: | |
37000 | return NULL; | |
37001 | } | |
37002 | ||
37003 | ||
37004 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37005 | PyObject *resultobj; | |
37006 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37007 | wxGBPosition *arg2 = 0 ; | |
37008 | wxGBSpan *arg3 = 0 ; | |
37009 | int arg4 ; | |
37010 | int arg5 ; | |
248ed943 | 37011 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
37012 | wxGBSizerItem *result; |
37013 | wxGBPosition temp2 ; | |
37014 | wxGBSpan temp3 ; | |
37015 | PyObject * obj0 = 0 ; | |
37016 | PyObject * obj1 = 0 ; | |
37017 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37018 | PyObject * obj3 = 0 ; |
37019 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37020 | PyObject * obj5 = 0 ; |
37021 | char *kwnames[] = { | |
37022 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37023 | }; | |
37024 | ||
248ed943 | 37025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37028 | { |
37029 | arg2 = &temp2; | |
37030 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37031 | } | |
37032 | { | |
37033 | arg3 = &temp3; | |
37034 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37035 | } | |
15afbcd0 RD |
37036 | arg4 = (int) SWIG_AsInt(obj3); |
37037 | if (PyErr_Occurred()) SWIG_fail; | |
37038 | arg5 = (int) SWIG_AsInt(obj4); | |
37039 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37040 | if (obj5) { |
37041 | arg6 = obj5; | |
37042 | } | |
d14a1e28 RD |
37043 | { |
37044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37045 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
37046 | |
37047 | wxPyEndAllowThreads(__tstate); | |
37048 | if (PyErr_Occurred()) SWIG_fail; | |
37049 | } | |
15afbcd0 | 37050 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37051 | return resultobj; |
37052 | fail: | |
37053 | return NULL; | |
37054 | } | |
37055 | ||
37056 | ||
37057 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37058 | PyObject *resultobj; | |
37059 | int arg1 ; | |
37060 | int arg2 ; | |
37061 | wxGBPosition *arg3 = 0 ; | |
37062 | wxGBSpan *arg4 = 0 ; | |
37063 | int arg5 ; | |
37064 | int arg6 ; | |
248ed943 | 37065 | PyObject *arg7 = (PyObject *) NULL ; |
d14a1e28 RD |
37066 | wxGBSizerItem *result; |
37067 | wxGBPosition temp3 ; | |
37068 | wxGBSpan temp4 ; | |
994141e6 RD |
37069 | PyObject * obj0 = 0 ; |
37070 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37071 | PyObject * obj2 = 0 ; |
37072 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37073 | PyObject * obj4 = 0 ; |
37074 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37075 | PyObject * obj6 = 0 ; |
37076 | char *kwnames[] = { | |
37077 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37078 | }; | |
37079 | ||
248ed943 | 37080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37081 | arg1 = (int) SWIG_AsInt(obj0); |
37082 | if (PyErr_Occurred()) SWIG_fail; | |
37083 | arg2 = (int) SWIG_AsInt(obj1); | |
37084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37085 | { |
37086 | arg3 = &temp3; | |
37087 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37088 | } | |
37089 | { | |
37090 | arg4 = &temp4; | |
37091 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37092 | } | |
15afbcd0 RD |
37093 | arg5 = (int) SWIG_AsInt(obj4); |
37094 | if (PyErr_Occurred()) SWIG_fail; | |
37095 | arg6 = (int) SWIG_AsInt(obj5); | |
37096 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37097 | if (obj6) { |
37098 | arg7 = obj6; | |
37099 | } | |
d14a1e28 RD |
37100 | { |
37101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37102 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
37103 | |
37104 | wxPyEndAllowThreads(__tstate); | |
37105 | if (PyErr_Occurred()) SWIG_fail; | |
37106 | } | |
15afbcd0 | 37107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37108 | return resultobj; |
37109 | fail: | |
37110 | return NULL; | |
37111 | } | |
37112 | ||
37113 | ||
37114 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37115 | PyObject *resultobj; | |
37116 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37117 | wxGBPosition result; | |
37118 | PyObject * obj0 = 0 ; | |
37119 | char *kwnames[] = { | |
37120 | (char *) "self", NULL | |
37121 | }; | |
37122 | ||
37123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37126 | { |
37127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37128 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37129 | ||
37130 | wxPyEndAllowThreads(__tstate); | |
37131 | if (PyErr_Occurred()) SWIG_fail; | |
37132 | } | |
37133 | { | |
37134 | wxGBPosition * resultptr; | |
37135 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37137 | } |
37138 | return resultobj; | |
37139 | fail: | |
37140 | return NULL; | |
37141 | } | |
37142 | ||
37143 | ||
37144 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37145 | PyObject *resultobj; | |
37146 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37147 | wxGBSpan result; | |
37148 | PyObject * obj0 = 0 ; | |
37149 | char *kwnames[] = { | |
37150 | (char *) "self", NULL | |
37151 | }; | |
37152 | ||
37153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37156 | { |
37157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37158 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37159 | ||
37160 | wxPyEndAllowThreads(__tstate); | |
37161 | if (PyErr_Occurred()) SWIG_fail; | |
37162 | } | |
37163 | { | |
37164 | wxGBSpan * resultptr; | |
37165 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 37166 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37167 | } |
37168 | return resultobj; | |
37169 | fail: | |
37170 | return NULL; | |
37171 | } | |
37172 | ||
37173 | ||
37174 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37175 | PyObject *resultobj; | |
37176 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37177 | wxGBPosition *arg2 = 0 ; | |
37178 | bool result; | |
37179 | wxGBPosition temp2 ; | |
37180 | PyObject * obj0 = 0 ; | |
37181 | PyObject * obj1 = 0 ; | |
37182 | char *kwnames[] = { | |
37183 | (char *) "self",(char *) "pos", NULL | |
37184 | }; | |
37185 | ||
37186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37189 | { |
37190 | arg2 = &temp2; | |
37191 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37192 | } | |
37193 | { | |
37194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37195 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37196 | ||
37197 | wxPyEndAllowThreads(__tstate); | |
37198 | if (PyErr_Occurred()) SWIG_fail; | |
37199 | } | |
4f89f6a3 RD |
37200 | { |
37201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37202 | } | |
d14a1e28 RD |
37203 | return resultobj; |
37204 | fail: | |
37205 | return NULL; | |
37206 | } | |
37207 | ||
37208 | ||
37209 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37210 | PyObject *resultobj; | |
37211 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37212 | wxGBSpan *arg2 = 0 ; | |
37213 | bool result; | |
37214 | wxGBSpan temp2 ; | |
37215 | PyObject * obj0 = 0 ; | |
37216 | PyObject * obj1 = 0 ; | |
37217 | char *kwnames[] = { | |
37218 | (char *) "self",(char *) "span", NULL | |
37219 | }; | |
37220 | ||
37221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37224 | { |
37225 | arg2 = &temp2; | |
37226 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37227 | } | |
37228 | { | |
37229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37230 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37231 | ||
37232 | wxPyEndAllowThreads(__tstate); | |
37233 | if (PyErr_Occurred()) SWIG_fail; | |
37234 | } | |
4f89f6a3 RD |
37235 | { |
37236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37237 | } | |
d14a1e28 RD |
37238 | return resultobj; |
37239 | fail: | |
37240 | return NULL; | |
37241 | } | |
37242 | ||
37243 | ||
248ed943 | 37244 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37245 | PyObject *resultobj; |
37246 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37247 | wxGBSizerItem *arg2 = 0 ; | |
37248 | bool result; | |
37249 | PyObject * obj0 = 0 ; | |
37250 | PyObject * obj1 = 0 ; | |
248ed943 RD |
37251 | char *kwnames[] = { |
37252 | (char *) "self",(char *) "other", NULL | |
37253 | }; | |
d14a1e28 | 37254 | |
248ed943 | 37255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37260 | SWIG_fail; | |
d14a1e28 | 37261 | if (arg2 == NULL) { |
15afbcd0 RD |
37262 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37263 | SWIG_fail; | |
d14a1e28 RD |
37264 | } |
37265 | { | |
37266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37267 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37268 | ||
37269 | wxPyEndAllowThreads(__tstate); | |
37270 | if (PyErr_Occurred()) SWIG_fail; | |
37271 | } | |
4f89f6a3 RD |
37272 | { |
37273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37274 | } | |
d14a1e28 RD |
37275 | return resultobj; |
37276 | fail: | |
37277 | return NULL; | |
37278 | } | |
37279 | ||
37280 | ||
248ed943 | 37281 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37282 | PyObject *resultobj; |
37283 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37284 | wxGBPosition *arg2 = 0 ; | |
37285 | wxGBSpan *arg3 = 0 ; | |
37286 | bool result; | |
37287 | wxGBPosition temp2 ; | |
37288 | wxGBSpan temp3 ; | |
37289 | PyObject * obj0 = 0 ; | |
37290 | PyObject * obj1 = 0 ; | |
37291 | PyObject * obj2 = 0 ; | |
248ed943 RD |
37292 | char *kwnames[] = { |
37293 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
37294 | }; | |
d14a1e28 | 37295 | |
248ed943 | 37296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37299 | { |
37300 | arg2 = &temp2; | |
37301 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37302 | } | |
37303 | { | |
37304 | arg3 = &temp3; | |
37305 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37306 | } | |
37307 | { | |
37308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37309 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37310 | ||
37311 | wxPyEndAllowThreads(__tstate); | |
37312 | if (PyErr_Occurred()) SWIG_fail; | |
37313 | } | |
4f89f6a3 RD |
37314 | { |
37315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37316 | } | |
d14a1e28 RD |
37317 | return resultobj; |
37318 | fail: | |
37319 | return NULL; | |
37320 | } | |
37321 | ||
37322 | ||
d14a1e28 RD |
37323 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
37324 | PyObject *resultobj; | |
37325 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 37326 | wxGBPosition result; |
d14a1e28 | 37327 | PyObject * obj0 = 0 ; |
d14a1e28 | 37328 | char *kwnames[] = { |
248ed943 | 37329 | (char *) "self", NULL |
d14a1e28 RD |
37330 | }; |
37331 | ||
248ed943 | 37332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
37333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37335 | { |
37336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37337 | result = wxGBSizerItem_GetEndPos(arg1); |
d14a1e28 RD |
37338 | |
37339 | wxPyEndAllowThreads(__tstate); | |
37340 | if (PyErr_Occurred()) SWIG_fail; | |
37341 | } | |
248ed943 RD |
37342 | { |
37343 | wxGBPosition * resultptr; | |
37344 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37345 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37346 | } | |
d14a1e28 RD |
37347 | return resultobj; |
37348 | fail: | |
37349 | return NULL; | |
37350 | } | |
37351 | ||
37352 | ||
37353 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37354 | PyObject *resultobj; | |
37355 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37356 | wxGridBagSizer *result; | |
37357 | PyObject * obj0 = 0 ; | |
37358 | char *kwnames[] = { | |
37359 | (char *) "self", NULL | |
37360 | }; | |
37361 | ||
37362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37365 | { |
37366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37367 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37368 | ||
37369 | wxPyEndAllowThreads(__tstate); | |
37370 | if (PyErr_Occurred()) SWIG_fail; | |
37371 | } | |
15afbcd0 | 37372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37373 | return resultobj; |
37374 | fail: | |
37375 | return NULL; | |
37376 | } | |
37377 | ||
37378 | ||
37379 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37380 | PyObject *resultobj; | |
37381 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37382 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37383 | PyObject * obj0 = 0 ; | |
37384 | PyObject * obj1 = 0 ; | |
37385 | char *kwnames[] = { | |
37386 | (char *) "self",(char *) "sizer", NULL | |
37387 | }; | |
37388 | ||
37389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37394 | { |
37395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37396 | (arg1)->SetGBSizer(arg2); | |
37397 | ||
37398 | wxPyEndAllowThreads(__tstate); | |
37399 | if (PyErr_Occurred()) SWIG_fail; | |
37400 | } | |
37401 | Py_INCREF(Py_None); resultobj = Py_None; | |
37402 | return resultobj; | |
37403 | fail: | |
37404 | return NULL; | |
37405 | } | |
37406 | ||
37407 | ||
37408 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37409 | PyObject *obj; | |
37410 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37411 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37412 | Py_INCREF(obj); | |
37413 | return Py_BuildValue((char *)""); | |
37414 | } | |
37415 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37416 | PyObject *resultobj; | |
37417 | int arg1 = (int) 0 ; | |
37418 | int arg2 = (int) 0 ; | |
37419 | wxGridBagSizer *result; | |
994141e6 RD |
37420 | PyObject * obj0 = 0 ; |
37421 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37422 | char *kwnames[] = { |
37423 | (char *) "vgap",(char *) "hgap", NULL | |
37424 | }; | |
37425 | ||
994141e6 RD |
37426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37427 | if (obj0) { | |
15afbcd0 RD |
37428 | arg1 = (int) SWIG_AsInt(obj0); |
37429 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37430 | } |
37431 | if (obj1) { | |
15afbcd0 RD |
37432 | arg2 = (int) SWIG_AsInt(obj1); |
37433 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37434 | } |
d14a1e28 RD |
37435 | { |
37436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37437 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37438 | ||
37439 | wxPyEndAllowThreads(__tstate); | |
37440 | if (PyErr_Occurred()) SWIG_fail; | |
37441 | } | |
15afbcd0 | 37442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37443 | return resultobj; |
37444 | fail: | |
37445 | return NULL; | |
37446 | } | |
37447 | ||
37448 | ||
37449 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37450 | PyObject *resultobj; | |
37451 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37452 | PyObject *arg2 = (PyObject *) 0 ; | |
37453 | wxGBPosition *arg3 = 0 ; | |
37454 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37455 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37456 | int arg5 = (int) 0 ; | |
37457 | int arg6 = (int) 0 ; | |
37458 | PyObject *arg7 = (PyObject *) NULL ; | |
37459 | bool result; | |
37460 | wxGBPosition temp3 ; | |
37461 | wxGBSpan temp4 ; | |
37462 | PyObject * obj0 = 0 ; | |
37463 | PyObject * obj1 = 0 ; | |
37464 | PyObject * obj2 = 0 ; | |
37465 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37466 | PyObject * obj4 = 0 ; |
37467 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37468 | PyObject * obj6 = 0 ; |
37469 | char *kwnames[] = { | |
37470 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37471 | }; | |
37472 | ||
994141e6 | 37473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37476 | arg2 = obj1; |
37477 | { | |
37478 | arg3 = &temp3; | |
37479 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37480 | } | |
37481 | if (obj3) { | |
37482 | { | |
37483 | arg4 = &temp4; | |
37484 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37485 | } | |
37486 | } | |
994141e6 | 37487 | if (obj4) { |
15afbcd0 RD |
37488 | arg5 = (int) SWIG_AsInt(obj4); |
37489 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37490 | } |
37491 | if (obj5) { | |
15afbcd0 RD |
37492 | arg6 = (int) SWIG_AsInt(obj5); |
37493 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37494 | } |
d14a1e28 RD |
37495 | if (obj6) { |
37496 | arg7 = obj6; | |
37497 | } | |
37498 | { | |
37499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37500 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37501 | ||
37502 | wxPyEndAllowThreads(__tstate); | |
37503 | if (PyErr_Occurred()) SWIG_fail; | |
37504 | } | |
4f89f6a3 RD |
37505 | { |
37506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37507 | } | |
d14a1e28 RD |
37508 | return resultobj; |
37509 | fail: | |
37510 | return NULL; | |
37511 | } | |
37512 | ||
37513 | ||
37514 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37515 | PyObject *resultobj; | |
37516 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37517 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37518 | bool result; | |
37519 | PyObject * obj0 = 0 ; | |
37520 | PyObject * obj1 = 0 ; | |
37521 | char *kwnames[] = { | |
37522 | (char *) "self",(char *) "item", NULL | |
37523 | }; | |
37524 | ||
37525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37528 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37530 | { |
37531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37532 | result = (bool)(arg1)->Add(arg2); | |
37533 | ||
37534 | wxPyEndAllowThreads(__tstate); | |
37535 | if (PyErr_Occurred()) SWIG_fail; | |
37536 | } | |
4f89f6a3 RD |
37537 | { |
37538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37539 | } | |
d14a1e28 RD |
37540 | return resultobj; |
37541 | fail: | |
37542 | return NULL; | |
37543 | } | |
37544 | ||
37545 | ||
37546 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37547 | PyObject *resultobj; | |
37548 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37549 | wxSize result; | |
37550 | PyObject * obj0 = 0 ; | |
37551 | char *kwnames[] = { | |
37552 | (char *) "self", NULL | |
37553 | }; | |
37554 | ||
37555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37558 | { |
37559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37560 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37561 | ||
37562 | wxPyEndAllowThreads(__tstate); | |
37563 | if (PyErr_Occurred()) SWIG_fail; | |
37564 | } | |
37565 | { | |
37566 | wxSize * resultptr; | |
37567 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 37568 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37569 | } |
37570 | return resultobj; | |
37571 | fail: | |
37572 | return NULL; | |
37573 | } | |
37574 | ||
37575 | ||
37576 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37577 | PyObject *resultobj; | |
37578 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37579 | wxSize *arg2 = 0 ; | |
37580 | wxSize temp2 ; | |
37581 | PyObject * obj0 = 0 ; | |
37582 | PyObject * obj1 = 0 ; | |
37583 | char *kwnames[] = { | |
37584 | (char *) "self",(char *) "sz", NULL | |
37585 | }; | |
37586 | ||
37587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37590 | { |
37591 | arg2 = &temp2; | |
37592 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37593 | } | |
37594 | { | |
37595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37596 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37597 | ||
37598 | wxPyEndAllowThreads(__tstate); | |
37599 | if (PyErr_Occurred()) SWIG_fail; | |
37600 | } | |
37601 | Py_INCREF(Py_None); resultobj = Py_None; | |
37602 | return resultobj; | |
37603 | fail: | |
37604 | return NULL; | |
37605 | } | |
37606 | ||
37607 | ||
37608 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37609 | PyObject *resultobj; | |
37610 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37611 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37612 | wxGBPosition result; | |
37613 | PyObject * obj0 = 0 ; | |
37614 | PyObject * obj1 = 0 ; | |
37615 | ||
37616 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37621 | { |
37622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37623 | result = (arg1)->GetItemPosition(arg2); | |
37624 | ||
37625 | wxPyEndAllowThreads(__tstate); | |
37626 | if (PyErr_Occurred()) SWIG_fail; | |
37627 | } | |
37628 | { | |
37629 | wxGBPosition * resultptr; | |
37630 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37632 | } |
37633 | return resultobj; | |
37634 | fail: | |
37635 | return NULL; | |
37636 | } | |
37637 | ||
37638 | ||
37639 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37640 | PyObject *resultobj; | |
37641 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37642 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37643 | wxGBPosition result; | |
37644 | PyObject * obj0 = 0 ; | |
37645 | PyObject * obj1 = 0 ; | |
37646 | ||
37647 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37650 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37652 | { |
37653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37654 | result = (arg1)->GetItemPosition(arg2); | |
37655 | ||
37656 | wxPyEndAllowThreads(__tstate); | |
37657 | if (PyErr_Occurred()) SWIG_fail; | |
37658 | } | |
37659 | { | |
37660 | wxGBPosition * resultptr; | |
37661 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37663 | } |
37664 | return resultobj; | |
37665 | fail: | |
37666 | return NULL; | |
37667 | } | |
37668 | ||
37669 | ||
37670 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37671 | PyObject *resultobj; | |
37672 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37673 | size_t arg2 ; | |
37674 | wxGBPosition result; | |
37675 | PyObject * obj0 = 0 ; | |
37676 | PyObject * obj1 = 0 ; | |
37677 | ||
37678 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37681 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37683 | { |
37684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37685 | result = (arg1)->GetItemPosition(arg2); | |
37686 | ||
37687 | wxPyEndAllowThreads(__tstate); | |
37688 | if (PyErr_Occurred()) SWIG_fail; | |
37689 | } | |
37690 | { | |
37691 | wxGBPosition * resultptr; | |
37692 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37694 | } |
37695 | return resultobj; | |
37696 | fail: | |
37697 | return NULL; | |
37698 | } | |
37699 | ||
37700 | ||
37701 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37702 | int argc; | |
37703 | PyObject *argv[3]; | |
37704 | int ii; | |
37705 | ||
37706 | argc = PyObject_Length(args); | |
37707 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37708 | argv[ii] = PyTuple_GetItem(args,ii); | |
37709 | } | |
37710 | if (argc == 2) { | |
37711 | int _v; | |
37712 | { | |
37713 | void *ptr; | |
15afbcd0 | 37714 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37715 | _v = 0; |
37716 | PyErr_Clear(); | |
37717 | } else { | |
37718 | _v = 1; | |
37719 | } | |
37720 | } | |
37721 | if (_v) { | |
37722 | { | |
37723 | void *ptr; | |
15afbcd0 | 37724 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37725 | _v = 0; |
37726 | PyErr_Clear(); | |
37727 | } else { | |
37728 | _v = 1; | |
37729 | } | |
37730 | } | |
37731 | if (_v) { | |
37732 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37733 | } | |
37734 | } | |
37735 | } | |
37736 | if (argc == 2) { | |
37737 | int _v; | |
37738 | { | |
37739 | void *ptr; | |
15afbcd0 | 37740 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37741 | _v = 0; |
37742 | PyErr_Clear(); | |
37743 | } else { | |
37744 | _v = 1; | |
37745 | } | |
37746 | } | |
37747 | if (_v) { | |
37748 | { | |
37749 | void *ptr; | |
15afbcd0 | 37750 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37751 | _v = 0; |
37752 | PyErr_Clear(); | |
37753 | } else { | |
37754 | _v = 1; | |
37755 | } | |
37756 | } | |
37757 | if (_v) { | |
37758 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
37759 | } | |
37760 | } | |
37761 | } | |
37762 | if (argc == 2) { | |
37763 | int _v; | |
37764 | { | |
37765 | void *ptr; | |
15afbcd0 | 37766 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37767 | _v = 0; |
37768 | PyErr_Clear(); | |
37769 | } else { | |
37770 | _v = 1; | |
37771 | } | |
37772 | } | |
37773 | if (_v) { | |
15afbcd0 | 37774 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37775 | if (_v) { |
37776 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
37777 | } | |
37778 | } | |
37779 | } | |
37780 | ||
37781 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
37782 | return NULL; | |
37783 | } | |
37784 | ||
37785 | ||
37786 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37787 | PyObject *resultobj; | |
37788 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37789 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37790 | wxGBPosition *arg3 = 0 ; | |
37791 | bool result; | |
37792 | wxGBPosition temp3 ; | |
37793 | PyObject * obj0 = 0 ; | |
37794 | PyObject * obj1 = 0 ; | |
37795 | PyObject * obj2 = 0 ; | |
37796 | ||
37797 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37802 | { |
37803 | arg3 = &temp3; | |
37804 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37805 | } | |
37806 | { | |
37807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37808 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37809 | ||
37810 | wxPyEndAllowThreads(__tstate); | |
37811 | if (PyErr_Occurred()) SWIG_fail; | |
37812 | } | |
4f89f6a3 RD |
37813 | { |
37814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37815 | } | |
d14a1e28 RD |
37816 | return resultobj; |
37817 | fail: | |
37818 | return NULL; | |
37819 | } | |
37820 | ||
37821 | ||
37822 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37823 | PyObject *resultobj; | |
37824 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37825 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37826 | wxGBPosition *arg3 = 0 ; | |
37827 | bool result; | |
37828 | wxGBPosition temp3 ; | |
37829 | PyObject * obj0 = 0 ; | |
37830 | PyObject * obj1 = 0 ; | |
37831 | PyObject * obj2 = 0 ; | |
37832 | ||
37833 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37838 | { |
37839 | arg3 = &temp3; | |
37840 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37841 | } | |
37842 | { | |
37843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37844 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37845 | ||
37846 | wxPyEndAllowThreads(__tstate); | |
37847 | if (PyErr_Occurred()) SWIG_fail; | |
37848 | } | |
4f89f6a3 RD |
37849 | { |
37850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37851 | } | |
d14a1e28 RD |
37852 | return resultobj; |
37853 | fail: | |
37854 | return NULL; | |
37855 | } | |
37856 | ||
37857 | ||
37858 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37859 | PyObject *resultobj; | |
37860 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37861 | size_t arg2 ; | |
37862 | wxGBPosition *arg3 = 0 ; | |
37863 | bool result; | |
37864 | wxGBPosition temp3 ; | |
37865 | PyObject * obj0 = 0 ; | |
37866 | PyObject * obj1 = 0 ; | |
37867 | PyObject * obj2 = 0 ; | |
37868 | ||
37869 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37872 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37874 | { |
37875 | arg3 = &temp3; | |
37876 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37877 | } | |
37878 | { | |
37879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37880 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37881 | ||
37882 | wxPyEndAllowThreads(__tstate); | |
37883 | if (PyErr_Occurred()) SWIG_fail; | |
37884 | } | |
4f89f6a3 RD |
37885 | { |
37886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37887 | } | |
d14a1e28 RD |
37888 | return resultobj; |
37889 | fail: | |
37890 | return NULL; | |
37891 | } | |
37892 | ||
37893 | ||
37894 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
37895 | int argc; | |
37896 | PyObject *argv[4]; | |
37897 | int ii; | |
37898 | ||
37899 | argc = PyObject_Length(args); | |
37900 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37901 | argv[ii] = PyTuple_GetItem(args,ii); | |
37902 | } | |
37903 | if (argc == 3) { | |
37904 | int _v; | |
37905 | { | |
37906 | void *ptr; | |
15afbcd0 | 37907 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37908 | _v = 0; |
37909 | PyErr_Clear(); | |
37910 | } else { | |
37911 | _v = 1; | |
37912 | } | |
37913 | } | |
37914 | if (_v) { | |
37915 | { | |
37916 | void *ptr; | |
15afbcd0 | 37917 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37918 | _v = 0; |
37919 | PyErr_Clear(); | |
37920 | } else { | |
37921 | _v = 1; | |
37922 | } | |
37923 | } | |
37924 | if (_v) { | |
37925 | { | |
37926 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37927 | } | |
37928 | if (_v) { | |
37929 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
37930 | } | |
37931 | } | |
37932 | } | |
37933 | } | |
37934 | if (argc == 3) { | |
37935 | int _v; | |
37936 | { | |
37937 | void *ptr; | |
15afbcd0 | 37938 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37939 | _v = 0; |
37940 | PyErr_Clear(); | |
37941 | } else { | |
37942 | _v = 1; | |
37943 | } | |
37944 | } | |
37945 | if (_v) { | |
37946 | { | |
37947 | void *ptr; | |
15afbcd0 | 37948 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37949 | _v = 0; |
37950 | PyErr_Clear(); | |
37951 | } else { | |
37952 | _v = 1; | |
37953 | } | |
37954 | } | |
37955 | if (_v) { | |
37956 | { | |
37957 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37958 | } | |
37959 | if (_v) { | |
37960 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
37961 | } | |
37962 | } | |
37963 | } | |
37964 | } | |
37965 | if (argc == 3) { | |
37966 | int _v; | |
37967 | { | |
37968 | void *ptr; | |
15afbcd0 | 37969 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37970 | _v = 0; |
37971 | PyErr_Clear(); | |
37972 | } else { | |
37973 | _v = 1; | |
37974 | } | |
37975 | } | |
37976 | if (_v) { | |
15afbcd0 | 37977 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37978 | if (_v) { |
37979 | { | |
37980 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37981 | } | |
37982 | if (_v) { | |
37983 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
37984 | } | |
37985 | } | |
37986 | } | |
37987 | } | |
37988 | ||
37989 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
37990 | return NULL; | |
37991 | } | |
37992 | ||
37993 | ||
37994 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
37995 | PyObject *resultobj; | |
37996 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37997 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37998 | wxGBSpan result; | |
37999 | PyObject * obj0 = 0 ; | |
38000 | PyObject * obj1 = 0 ; | |
38001 | ||
38002 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38005 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38007 | { |
38008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38009 | result = (arg1)->GetItemSpan(arg2); | |
38010 | ||
38011 | wxPyEndAllowThreads(__tstate); | |
38012 | if (PyErr_Occurred()) SWIG_fail; | |
38013 | } | |
38014 | { | |
38015 | wxGBSpan * resultptr; | |
38016 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38018 | } |
38019 | return resultobj; | |
38020 | fail: | |
38021 | return NULL; | |
38022 | } | |
38023 | ||
38024 | ||
38025 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38026 | PyObject *resultobj; | |
38027 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38028 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38029 | wxGBSpan result; | |
38030 | PyObject * obj0 = 0 ; | |
38031 | PyObject * obj1 = 0 ; | |
38032 | ||
38033 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38036 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38038 | { |
38039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38040 | result = (arg1)->GetItemSpan(arg2); | |
38041 | ||
38042 | wxPyEndAllowThreads(__tstate); | |
38043 | if (PyErr_Occurred()) SWIG_fail; | |
38044 | } | |
38045 | { | |
38046 | wxGBSpan * resultptr; | |
38047 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38049 | } |
38050 | return resultobj; | |
38051 | fail: | |
38052 | return NULL; | |
38053 | } | |
38054 | ||
38055 | ||
38056 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38057 | PyObject *resultobj; | |
38058 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38059 | size_t arg2 ; | |
38060 | wxGBSpan result; | |
38061 | PyObject * obj0 = 0 ; | |
38062 | PyObject * obj1 = 0 ; | |
38063 | ||
38064 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38067 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38069 | { |
38070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38071 | result = (arg1)->GetItemSpan(arg2); | |
38072 | ||
38073 | wxPyEndAllowThreads(__tstate); | |
38074 | if (PyErr_Occurred()) SWIG_fail; | |
38075 | } | |
38076 | { | |
38077 | wxGBSpan * resultptr; | |
38078 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38080 | } |
38081 | return resultobj; | |
38082 | fail: | |
38083 | return NULL; | |
38084 | } | |
38085 | ||
38086 | ||
38087 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38088 | int argc; | |
38089 | PyObject *argv[3]; | |
38090 | int ii; | |
38091 | ||
38092 | argc = PyObject_Length(args); | |
38093 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38094 | argv[ii] = PyTuple_GetItem(args,ii); | |
38095 | } | |
38096 | if (argc == 2) { | |
38097 | int _v; | |
38098 | { | |
38099 | void *ptr; | |
15afbcd0 | 38100 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38101 | _v = 0; |
38102 | PyErr_Clear(); | |
38103 | } else { | |
38104 | _v = 1; | |
38105 | } | |
38106 | } | |
38107 | if (_v) { | |
38108 | { | |
38109 | void *ptr; | |
15afbcd0 | 38110 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38111 | _v = 0; |
38112 | PyErr_Clear(); | |
38113 | } else { | |
38114 | _v = 1; | |
38115 | } | |
38116 | } | |
38117 | if (_v) { | |
38118 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38119 | } | |
38120 | } | |
38121 | } | |
38122 | if (argc == 2) { | |
38123 | int _v; | |
38124 | { | |
38125 | void *ptr; | |
15afbcd0 | 38126 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38127 | _v = 0; |
38128 | PyErr_Clear(); | |
38129 | } else { | |
38130 | _v = 1; | |
38131 | } | |
38132 | } | |
38133 | if (_v) { | |
38134 | { | |
38135 | void *ptr; | |
15afbcd0 | 38136 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38137 | _v = 0; |
38138 | PyErr_Clear(); | |
38139 | } else { | |
38140 | _v = 1; | |
38141 | } | |
38142 | } | |
38143 | if (_v) { | |
38144 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38145 | } | |
38146 | } | |
38147 | } | |
38148 | if (argc == 2) { | |
38149 | int _v; | |
38150 | { | |
38151 | void *ptr; | |
15afbcd0 | 38152 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38153 | _v = 0; |
38154 | PyErr_Clear(); | |
38155 | } else { | |
38156 | _v = 1; | |
38157 | } | |
38158 | } | |
38159 | if (_v) { | |
15afbcd0 | 38160 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38161 | if (_v) { |
38162 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38163 | } | |
38164 | } | |
38165 | } | |
38166 | ||
38167 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38168 | return NULL; | |
38169 | } | |
38170 | ||
38171 | ||
38172 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38173 | PyObject *resultobj; | |
38174 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38176 | wxGBSpan *arg3 = 0 ; | |
38177 | bool result; | |
38178 | wxGBSpan temp3 ; | |
38179 | PyObject * obj0 = 0 ; | |
38180 | PyObject * obj1 = 0 ; | |
38181 | PyObject * obj2 = 0 ; | |
38182 | ||
38183 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38188 | { |
38189 | arg3 = &temp3; | |
38190 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38191 | } | |
38192 | { | |
38193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38194 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38195 | ||
38196 | wxPyEndAllowThreads(__tstate); | |
38197 | if (PyErr_Occurred()) SWIG_fail; | |
38198 | } | |
4f89f6a3 RD |
38199 | { |
38200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38201 | } | |
d14a1e28 RD |
38202 | return resultobj; |
38203 | fail: | |
38204 | return NULL; | |
38205 | } | |
38206 | ||
38207 | ||
38208 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38209 | PyObject *resultobj; | |
38210 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38211 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38212 | wxGBSpan *arg3 = 0 ; | |
38213 | bool result; | |
38214 | wxGBSpan temp3 ; | |
38215 | PyObject * obj0 = 0 ; | |
38216 | PyObject * obj1 = 0 ; | |
38217 | PyObject * obj2 = 0 ; | |
38218 | ||
38219 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38224 | { |
38225 | arg3 = &temp3; | |
38226 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38227 | } | |
38228 | { | |
38229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38230 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38231 | ||
38232 | wxPyEndAllowThreads(__tstate); | |
38233 | if (PyErr_Occurred()) SWIG_fail; | |
38234 | } | |
4f89f6a3 RD |
38235 | { |
38236 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38237 | } | |
d14a1e28 RD |
38238 | return resultobj; |
38239 | fail: | |
38240 | return NULL; | |
38241 | } | |
38242 | ||
38243 | ||
38244 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38245 | PyObject *resultobj; | |
38246 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38247 | size_t arg2 ; | |
38248 | wxGBSpan *arg3 = 0 ; | |
38249 | bool result; | |
38250 | wxGBSpan temp3 ; | |
38251 | PyObject * obj0 = 0 ; | |
38252 | PyObject * obj1 = 0 ; | |
38253 | PyObject * obj2 = 0 ; | |
38254 | ||
38255 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38258 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38259 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38260 | { |
38261 | arg3 = &temp3; | |
38262 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38263 | } | |
38264 | { | |
38265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38266 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38267 | ||
38268 | wxPyEndAllowThreads(__tstate); | |
38269 | if (PyErr_Occurred()) SWIG_fail; | |
38270 | } | |
4f89f6a3 RD |
38271 | { |
38272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38273 | } | |
d14a1e28 RD |
38274 | return resultobj; |
38275 | fail: | |
38276 | return NULL; | |
38277 | } | |
38278 | ||
38279 | ||
38280 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38281 | int argc; | |
38282 | PyObject *argv[4]; | |
38283 | int ii; | |
38284 | ||
38285 | argc = PyObject_Length(args); | |
38286 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38287 | argv[ii] = PyTuple_GetItem(args,ii); | |
38288 | } | |
38289 | if (argc == 3) { | |
38290 | int _v; | |
38291 | { | |
38292 | void *ptr; | |
15afbcd0 | 38293 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38294 | _v = 0; |
38295 | PyErr_Clear(); | |
38296 | } else { | |
38297 | _v = 1; | |
38298 | } | |
38299 | } | |
38300 | if (_v) { | |
38301 | { | |
38302 | void *ptr; | |
15afbcd0 | 38303 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38304 | _v = 0; |
38305 | PyErr_Clear(); | |
38306 | } else { | |
38307 | _v = 1; | |
38308 | } | |
38309 | } | |
38310 | if (_v) { | |
38311 | { | |
38312 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38313 | } | |
38314 | if (_v) { | |
38315 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38316 | } | |
38317 | } | |
38318 | } | |
38319 | } | |
38320 | if (argc == 3) { | |
38321 | int _v; | |
38322 | { | |
38323 | void *ptr; | |
15afbcd0 | 38324 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38325 | _v = 0; |
38326 | PyErr_Clear(); | |
38327 | } else { | |
38328 | _v = 1; | |
38329 | } | |
38330 | } | |
38331 | if (_v) { | |
38332 | { | |
38333 | void *ptr; | |
15afbcd0 | 38334 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38335 | _v = 0; |
38336 | PyErr_Clear(); | |
38337 | } else { | |
38338 | _v = 1; | |
38339 | } | |
38340 | } | |
38341 | if (_v) { | |
38342 | { | |
38343 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38344 | } | |
38345 | if (_v) { | |
38346 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38347 | } | |
38348 | } | |
38349 | } | |
38350 | } | |
38351 | if (argc == 3) { | |
38352 | int _v; | |
38353 | { | |
38354 | void *ptr; | |
15afbcd0 | 38355 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38356 | _v = 0; |
38357 | PyErr_Clear(); | |
38358 | } else { | |
38359 | _v = 1; | |
38360 | } | |
38361 | } | |
38362 | if (_v) { | |
15afbcd0 | 38363 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38364 | if (_v) { |
38365 | { | |
38366 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38367 | } | |
38368 | if (_v) { | |
38369 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38370 | } | |
38371 | } | |
38372 | } | |
38373 | } | |
38374 | ||
38375 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38376 | return NULL; | |
38377 | } | |
38378 | ||
38379 | ||
38380 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38381 | PyObject *resultobj; | |
38382 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38383 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38384 | wxGBSizerItem *result; | |
38385 | PyObject * obj0 = 0 ; | |
38386 | PyObject * obj1 = 0 ; | |
38387 | ||
38388 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38393 | { |
38394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38395 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38396 | ||
38397 | wxPyEndAllowThreads(__tstate); | |
38398 | if (PyErr_Occurred()) SWIG_fail; | |
38399 | } | |
15afbcd0 | 38400 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38401 | return resultobj; |
38402 | fail: | |
38403 | return NULL; | |
38404 | } | |
38405 | ||
38406 | ||
38407 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38408 | PyObject *resultobj; | |
38409 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38410 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38411 | wxGBSizerItem *result; | |
38412 | PyObject * obj0 = 0 ; | |
38413 | PyObject * obj1 = 0 ; | |
38414 | ||
38415 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38420 | { |
38421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38422 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38423 | ||
38424 | wxPyEndAllowThreads(__tstate); | |
38425 | if (PyErr_Occurred()) SWIG_fail; | |
38426 | } | |
15afbcd0 | 38427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38428 | return resultobj; |
38429 | fail: | |
38430 | return NULL; | |
38431 | } | |
38432 | ||
38433 | ||
38434 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38435 | int argc; | |
38436 | PyObject *argv[3]; | |
38437 | int ii; | |
38438 | ||
38439 | argc = PyObject_Length(args); | |
38440 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38441 | argv[ii] = PyTuple_GetItem(args,ii); | |
38442 | } | |
38443 | if (argc == 2) { | |
38444 | int _v; | |
38445 | { | |
38446 | void *ptr; | |
15afbcd0 | 38447 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38448 | _v = 0; |
38449 | PyErr_Clear(); | |
38450 | } else { | |
38451 | _v = 1; | |
38452 | } | |
38453 | } | |
38454 | if (_v) { | |
38455 | { | |
38456 | void *ptr; | |
15afbcd0 | 38457 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38458 | _v = 0; |
38459 | PyErr_Clear(); | |
38460 | } else { | |
38461 | _v = 1; | |
38462 | } | |
38463 | } | |
38464 | if (_v) { | |
38465 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38466 | } | |
38467 | } | |
38468 | } | |
38469 | if (argc == 2) { | |
38470 | int _v; | |
38471 | { | |
38472 | void *ptr; | |
15afbcd0 | 38473 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38474 | _v = 0; |
38475 | PyErr_Clear(); | |
38476 | } else { | |
38477 | _v = 1; | |
38478 | } | |
38479 | } | |
38480 | if (_v) { | |
38481 | { | |
38482 | void *ptr; | |
15afbcd0 | 38483 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38484 | _v = 0; |
38485 | PyErr_Clear(); | |
38486 | } else { | |
38487 | _v = 1; | |
38488 | } | |
38489 | } | |
38490 | if (_v) { | |
38491 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38492 | } | |
38493 | } | |
38494 | } | |
38495 | ||
38496 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38497 | return NULL; | |
38498 | } | |
38499 | ||
38500 | ||
38501 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38502 | PyObject *resultobj; | |
38503 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38504 | wxGBPosition *arg2 = 0 ; | |
38505 | wxGBSizerItem *result; | |
38506 | wxGBPosition temp2 ; | |
38507 | PyObject * obj0 = 0 ; | |
38508 | PyObject * obj1 = 0 ; | |
38509 | char *kwnames[] = { | |
38510 | (char *) "self",(char *) "pos", NULL | |
38511 | }; | |
38512 | ||
38513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38516 | { |
38517 | arg2 = &temp2; | |
38518 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38519 | } | |
38520 | { | |
38521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38522 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38523 | ||
38524 | wxPyEndAllowThreads(__tstate); | |
38525 | if (PyErr_Occurred()) SWIG_fail; | |
38526 | } | |
15afbcd0 | 38527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38528 | return resultobj; |
38529 | fail: | |
38530 | return NULL; | |
38531 | } | |
38532 | ||
38533 | ||
e811c8ce RD |
38534 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38535 | PyObject *resultobj; | |
38536 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38537 | wxPoint *arg2 = 0 ; | |
38538 | wxGBSizerItem *result; | |
38539 | wxPoint temp2 ; | |
38540 | PyObject * obj0 = 0 ; | |
38541 | PyObject * obj1 = 0 ; | |
38542 | char *kwnames[] = { | |
38543 | (char *) "self",(char *) "pt", NULL | |
38544 | }; | |
38545 | ||
38546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
38549 | { |
38550 | arg2 = &temp2; | |
38551 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38552 | } | |
38553 | { | |
38554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38555 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38556 | ||
38557 | wxPyEndAllowThreads(__tstate); | |
38558 | if (PyErr_Occurred()) SWIG_fail; | |
38559 | } | |
15afbcd0 | 38560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
38561 | return resultobj; |
38562 | fail: | |
38563 | return NULL; | |
38564 | } | |
38565 | ||
38566 | ||
248ed943 | 38567 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38568 | PyObject *resultobj; |
38569 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38570 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38571 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38572 | bool result; | |
38573 | PyObject * obj0 = 0 ; | |
38574 | PyObject * obj1 = 0 ; | |
38575 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38576 | char *kwnames[] = { |
38577 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
38578 | }; | |
d14a1e28 | 38579 | |
248ed943 | 38580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 38585 | if (obj2) { |
15afbcd0 RD |
38586 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
38587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38588 | } |
38589 | { | |
38590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38591 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38592 | ||
38593 | wxPyEndAllowThreads(__tstate); | |
38594 | if (PyErr_Occurred()) SWIG_fail; | |
38595 | } | |
4f89f6a3 RD |
38596 | { |
38597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38598 | } | |
d14a1e28 RD |
38599 | return resultobj; |
38600 | fail: | |
38601 | return NULL; | |
38602 | } | |
38603 | ||
38604 | ||
248ed943 | 38605 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38606 | PyObject *resultobj; |
38607 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38608 | wxGBPosition *arg2 = 0 ; | |
38609 | wxGBSpan *arg3 = 0 ; | |
38610 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38611 | bool result; | |
38612 | wxGBPosition temp2 ; | |
38613 | wxGBSpan temp3 ; | |
38614 | PyObject * obj0 = 0 ; | |
38615 | PyObject * obj1 = 0 ; | |
38616 | PyObject * obj2 = 0 ; | |
38617 | PyObject * obj3 = 0 ; | |
248ed943 RD |
38618 | char *kwnames[] = { |
38619 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
38620 | }; | |
d14a1e28 | 38621 | |
248ed943 | 38622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
38623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38625 | { |
38626 | arg2 = &temp2; | |
38627 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38628 | } | |
38629 | { | |
38630 | arg3 = &temp3; | |
38631 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38632 | } | |
38633 | if (obj3) { | |
15afbcd0 RD |
38634 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38636 | } |
38637 | { | |
38638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38639 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38640 | ||
38641 | wxPyEndAllowThreads(__tstate); | |
38642 | if (PyErr_Occurred()) SWIG_fail; | |
38643 | } | |
4f89f6a3 RD |
38644 | { |
38645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38646 | } | |
d14a1e28 RD |
38647 | return resultobj; |
38648 | fail: | |
38649 | return NULL; | |
38650 | } | |
38651 | ||
38652 | ||
d14a1e28 RD |
38653 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { |
38654 | PyObject *obj; | |
38655 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38656 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
38657 | Py_INCREF(obj); | |
38658 | return Py_BuildValue((char *)""); | |
38659 | } | |
38660 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38661 | PyObject *resultobj; | |
38662 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38663 | int arg2 ; | |
38664 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38665 | int arg4 ; | |
38666 | int arg5 = (int) 0 ; | |
38667 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
38668 | PyObject * obj0 = 0 ; | |
994141e6 | 38669 | PyObject * obj1 = 0 ; |
d14a1e28 | 38670 | PyObject * obj2 = 0 ; |
994141e6 RD |
38671 | PyObject * obj3 = 0 ; |
38672 | PyObject * obj4 = 0 ; | |
38673 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38674 | char *kwnames[] = { |
38675 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
38676 | }; | |
38677 | ||
994141e6 | 38678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
38679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38681 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38682 | if (PyErr_Occurred()) SWIG_fail; | |
38683 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38685 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
38686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38687 | if (obj4) { |
15afbcd0 RD |
38688 | arg5 = (int) SWIG_AsInt(obj4); |
38689 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
38690 | } |
38691 | if (obj5) { | |
15afbcd0 RD |
38692 | arg6 = (int) SWIG_AsInt(obj5); |
38693 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38694 | } |
d14a1e28 RD |
38695 | { |
38696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38697 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
38698 | ||
38699 | wxPyEndAllowThreads(__tstate); | |
38700 | if (PyErr_Occurred()) SWIG_fail; | |
38701 | } | |
38702 | Py_INCREF(Py_None); resultobj = Py_None; | |
38703 | return resultobj; | |
38704 | fail: | |
38705 | return NULL; | |
38706 | } | |
38707 | ||
38708 | ||
38709 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38710 | PyObject *resultobj; | |
38711 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38712 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38713 | int arg3 = (int) 0 ; | |
38714 | PyObject * obj0 = 0 ; | |
38715 | PyObject * obj1 = 0 ; | |
994141e6 | 38716 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38717 | char *kwnames[] = { |
38718 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38719 | }; | |
38720 | ||
994141e6 | 38721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38726 | if (obj2) { |
15afbcd0 RD |
38727 | arg3 = (int) SWIG_AsInt(obj2); |
38728 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38729 | } |
d14a1e28 RD |
38730 | { |
38731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38732 | (arg1)->LeftOf(arg2,arg3); | |
38733 | ||
38734 | wxPyEndAllowThreads(__tstate); | |
38735 | if (PyErr_Occurred()) SWIG_fail; | |
38736 | } | |
38737 | Py_INCREF(Py_None); resultobj = Py_None; | |
38738 | return resultobj; | |
38739 | fail: | |
38740 | return NULL; | |
38741 | } | |
38742 | ||
38743 | ||
38744 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38745 | PyObject *resultobj; | |
38746 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38747 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38748 | int arg3 = (int) 0 ; | |
38749 | PyObject * obj0 = 0 ; | |
38750 | PyObject * obj1 = 0 ; | |
994141e6 | 38751 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38752 | char *kwnames[] = { |
38753 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38754 | }; | |
38755 | ||
994141e6 | 38756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38761 | if (obj2) { |
15afbcd0 RD |
38762 | arg3 = (int) SWIG_AsInt(obj2); |
38763 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38764 | } |
d14a1e28 RD |
38765 | { |
38766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38767 | (arg1)->RightOf(arg2,arg3); | |
38768 | ||
38769 | wxPyEndAllowThreads(__tstate); | |
38770 | if (PyErr_Occurred()) SWIG_fail; | |
38771 | } | |
38772 | Py_INCREF(Py_None); resultobj = Py_None; | |
38773 | return resultobj; | |
38774 | fail: | |
38775 | return NULL; | |
38776 | } | |
38777 | ||
38778 | ||
38779 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38780 | PyObject *resultobj; | |
38781 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38782 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38783 | int arg3 = (int) 0 ; | |
38784 | PyObject * obj0 = 0 ; | |
38785 | PyObject * obj1 = 0 ; | |
994141e6 | 38786 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38787 | char *kwnames[] = { |
38788 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38789 | }; | |
38790 | ||
994141e6 | 38791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38794 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38796 | if (obj2) { |
15afbcd0 RD |
38797 | arg3 = (int) SWIG_AsInt(obj2); |
38798 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38799 | } |
d14a1e28 RD |
38800 | { |
38801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38802 | (arg1)->Above(arg2,arg3); | |
38803 | ||
38804 | wxPyEndAllowThreads(__tstate); | |
38805 | if (PyErr_Occurred()) SWIG_fail; | |
38806 | } | |
38807 | Py_INCREF(Py_None); resultobj = Py_None; | |
38808 | return resultobj; | |
38809 | fail: | |
38810 | return NULL; | |
38811 | } | |
38812 | ||
38813 | ||
38814 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38815 | PyObject *resultobj; | |
38816 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38817 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38818 | int arg3 = (int) 0 ; | |
38819 | PyObject * obj0 = 0 ; | |
38820 | PyObject * obj1 = 0 ; | |
994141e6 | 38821 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38822 | char *kwnames[] = { |
38823 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38824 | }; | |
38825 | ||
994141e6 | 38826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38831 | if (obj2) { |
15afbcd0 RD |
38832 | arg3 = (int) SWIG_AsInt(obj2); |
38833 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38834 | } |
d14a1e28 RD |
38835 | { |
38836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38837 | (arg1)->Below(arg2,arg3); | |
38838 | ||
38839 | wxPyEndAllowThreads(__tstate); | |
38840 | if (PyErr_Occurred()) SWIG_fail; | |
38841 | } | |
38842 | Py_INCREF(Py_None); resultobj = Py_None; | |
38843 | return resultobj; | |
38844 | fail: | |
38845 | return NULL; | |
38846 | } | |
38847 | ||
38848 | ||
38849 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38850 | PyObject *resultobj; | |
38851 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38852 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38853 | int arg3 ; | |
38854 | int arg4 = (int) 0 ; | |
38855 | PyObject * obj0 = 0 ; | |
38856 | PyObject * obj1 = 0 ; | |
994141e6 RD |
38857 | PyObject * obj2 = 0 ; |
38858 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38859 | char *kwnames[] = { |
38860 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
38861 | }; | |
38862 | ||
994141e6 | 38863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
38864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38868 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38869 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38870 | if (obj3) { |
15afbcd0 RD |
38871 | arg4 = (int) SWIG_AsInt(obj3); |
38872 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38873 | } |
d14a1e28 RD |
38874 | { |
38875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38876 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
38877 | ||
38878 | wxPyEndAllowThreads(__tstate); | |
38879 | if (PyErr_Occurred()) SWIG_fail; | |
38880 | } | |
38881 | Py_INCREF(Py_None); resultobj = Py_None; | |
38882 | return resultobj; | |
38883 | fail: | |
38884 | return NULL; | |
38885 | } | |
38886 | ||
38887 | ||
38888 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38889 | PyObject *resultobj; | |
38890 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38891 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38892 | int arg3 ; | |
38893 | int arg4 ; | |
38894 | PyObject * obj0 = 0 ; | |
38895 | PyObject * obj1 = 0 ; | |
994141e6 RD |
38896 | PyObject * obj2 = 0 ; |
38897 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
38898 | char *kwnames[] = { |
38899 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
38900 | }; | |
38901 | ||
994141e6 | 38902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
38903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38907 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
38908 | if (PyErr_Occurred()) SWIG_fail; | |
38909 | arg4 = (int) SWIG_AsInt(obj3); | |
38910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38911 | { |
38912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38913 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
38914 | ||
38915 | wxPyEndAllowThreads(__tstate); | |
38916 | if (PyErr_Occurred()) SWIG_fail; | |
38917 | } | |
38918 | Py_INCREF(Py_None); resultobj = Py_None; | |
38919 | return resultobj; | |
38920 | fail: | |
38921 | return NULL; | |
38922 | } | |
38923 | ||
38924 | ||
38925 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38926 | PyObject *resultobj; | |
38927 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38928 | int arg2 ; | |
38929 | PyObject * obj0 = 0 ; | |
994141e6 | 38930 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
38931 | char *kwnames[] = { |
38932 | (char *) "self",(char *) "val", NULL | |
38933 | }; | |
38934 | ||
994141e6 | 38935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
38936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38938 | arg2 = (int) SWIG_AsInt(obj1); | |
38939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38940 | { |
38941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38942 | (arg1)->Absolute(arg2); | |
38943 | ||
38944 | wxPyEndAllowThreads(__tstate); | |
38945 | if (PyErr_Occurred()) SWIG_fail; | |
38946 | } | |
38947 | Py_INCREF(Py_None); resultobj = Py_None; | |
38948 | return resultobj; | |
38949 | fail: | |
38950 | return NULL; | |
38951 | } | |
38952 | ||
38953 | ||
38954 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38955 | PyObject *resultobj; | |
38956 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38957 | PyObject * obj0 = 0 ; | |
38958 | char *kwnames[] = { | |
38959 | (char *) "self", NULL | |
38960 | }; | |
38961 | ||
38962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38965 | { |
38966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38967 | (arg1)->Unconstrained(); | |
38968 | ||
38969 | wxPyEndAllowThreads(__tstate); | |
38970 | if (PyErr_Occurred()) SWIG_fail; | |
38971 | } | |
38972 | Py_INCREF(Py_None); resultobj = Py_None; | |
38973 | return resultobj; | |
38974 | fail: | |
38975 | return NULL; | |
38976 | } | |
38977 | ||
38978 | ||
38979 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38980 | PyObject *resultobj; | |
38981 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38982 | PyObject * obj0 = 0 ; | |
38983 | char *kwnames[] = { | |
38984 | (char *) "self", NULL | |
38985 | }; | |
38986 | ||
38987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38990 | { |
38991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38992 | (arg1)->AsIs(); | |
38993 | ||
38994 | wxPyEndAllowThreads(__tstate); | |
38995 | if (PyErr_Occurred()) SWIG_fail; | |
38996 | } | |
38997 | Py_INCREF(Py_None); resultobj = Py_None; | |
38998 | return resultobj; | |
38999 | fail: | |
39000 | return NULL; | |
39001 | } | |
39002 | ||
39003 | ||
39004 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39005 | PyObject *resultobj; | |
39006 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39007 | wxWindow *result; | |
39008 | PyObject * obj0 = 0 ; | |
39009 | char *kwnames[] = { | |
39010 | (char *) "self", NULL | |
39011 | }; | |
39012 | ||
39013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39016 | { |
39017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39018 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39019 | ||
39020 | wxPyEndAllowThreads(__tstate); | |
39021 | if (PyErr_Occurred()) SWIG_fail; | |
39022 | } | |
39023 | { | |
39024 | resultobj = wxPyMake_wxObject(result); | |
39025 | } | |
39026 | return resultobj; | |
39027 | fail: | |
39028 | return NULL; | |
39029 | } | |
39030 | ||
39031 | ||
39032 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39033 | PyObject *resultobj; | |
39034 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39035 | int result; | |
39036 | PyObject * obj0 = 0 ; | |
39037 | char *kwnames[] = { | |
39038 | (char *) "self", NULL | |
39039 | }; | |
39040 | ||
39041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39044 | { |
39045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39046 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39047 | ||
39048 | wxPyEndAllowThreads(__tstate); | |
39049 | if (PyErr_Occurred()) SWIG_fail; | |
39050 | } | |
15afbcd0 | 39051 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39052 | return resultobj; |
39053 | fail: | |
39054 | return NULL; | |
39055 | } | |
39056 | ||
39057 | ||
39058 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39059 | PyObject *resultobj; | |
39060 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39061 | int arg2 ; | |
39062 | PyObject * obj0 = 0 ; | |
994141e6 | 39063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39064 | char *kwnames[] = { |
39065 | (char *) "self",(char *) "which", NULL | |
39066 | }; | |
39067 | ||
994141e6 | 39068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39071 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39073 | { |
39074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39075 | (arg1)->SetEdge((wxEdge )arg2); | |
39076 | ||
39077 | wxPyEndAllowThreads(__tstate); | |
39078 | if (PyErr_Occurred()) SWIG_fail; | |
39079 | } | |
39080 | Py_INCREF(Py_None); resultobj = Py_None; | |
39081 | return resultobj; | |
39082 | fail: | |
39083 | return NULL; | |
39084 | } | |
39085 | ||
39086 | ||
39087 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39088 | PyObject *resultobj; | |
39089 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39090 | int arg2 ; | |
39091 | PyObject * obj0 = 0 ; | |
994141e6 | 39092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39093 | char *kwnames[] = { |
39094 | (char *) "self",(char *) "v", NULL | |
39095 | }; | |
39096 | ||
994141e6 | 39097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39100 | arg2 = (int) SWIG_AsInt(obj1); | |
39101 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39102 | { |
39103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39104 | (arg1)->SetValue(arg2); | |
39105 | ||
39106 | wxPyEndAllowThreads(__tstate); | |
39107 | if (PyErr_Occurred()) SWIG_fail; | |
39108 | } | |
39109 | Py_INCREF(Py_None); resultobj = Py_None; | |
39110 | return resultobj; | |
39111 | fail: | |
39112 | return NULL; | |
39113 | } | |
39114 | ||
39115 | ||
39116 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39117 | PyObject *resultobj; | |
39118 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39119 | int result; | |
39120 | PyObject * obj0 = 0 ; | |
39121 | char *kwnames[] = { | |
39122 | (char *) "self", NULL | |
39123 | }; | |
39124 | ||
39125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39128 | { |
39129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39130 | result = (int)(arg1)->GetMargin(); | |
39131 | ||
39132 | wxPyEndAllowThreads(__tstate); | |
39133 | if (PyErr_Occurred()) SWIG_fail; | |
39134 | } | |
15afbcd0 | 39135 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39136 | return resultobj; |
39137 | fail: | |
39138 | return NULL; | |
39139 | } | |
39140 | ||
39141 | ||
39142 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39143 | PyObject *resultobj; | |
39144 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39145 | int arg2 ; | |
39146 | PyObject * obj0 = 0 ; | |
994141e6 | 39147 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39148 | char *kwnames[] = { |
39149 | (char *) "self",(char *) "m", NULL | |
39150 | }; | |
39151 | ||
994141e6 | 39152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39155 | arg2 = (int) SWIG_AsInt(obj1); | |
39156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39157 | { |
39158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39159 | (arg1)->SetMargin(arg2); | |
39160 | ||
39161 | wxPyEndAllowThreads(__tstate); | |
39162 | if (PyErr_Occurred()) SWIG_fail; | |
39163 | } | |
39164 | Py_INCREF(Py_None); resultobj = Py_None; | |
39165 | return resultobj; | |
39166 | fail: | |
39167 | return NULL; | |
39168 | } | |
39169 | ||
39170 | ||
39171 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39172 | PyObject *resultobj; | |
39173 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39174 | int result; | |
39175 | PyObject * obj0 = 0 ; | |
39176 | char *kwnames[] = { | |
39177 | (char *) "self", NULL | |
39178 | }; | |
39179 | ||
39180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39183 | { |
39184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39185 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39186 | ||
39187 | wxPyEndAllowThreads(__tstate); | |
39188 | if (PyErr_Occurred()) SWIG_fail; | |
39189 | } | |
15afbcd0 | 39190 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39191 | return resultobj; |
39192 | fail: | |
39193 | return NULL; | |
39194 | } | |
39195 | ||
39196 | ||
39197 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39198 | PyObject *resultobj; | |
39199 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39200 | int result; | |
39201 | PyObject * obj0 = 0 ; | |
39202 | char *kwnames[] = { | |
39203 | (char *) "self", NULL | |
39204 | }; | |
39205 | ||
39206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39209 | { |
39210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39211 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39212 | ||
39213 | wxPyEndAllowThreads(__tstate); | |
39214 | if (PyErr_Occurred()) SWIG_fail; | |
39215 | } | |
15afbcd0 | 39216 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39217 | return resultobj; |
39218 | fail: | |
39219 | return NULL; | |
39220 | } | |
39221 | ||
39222 | ||
39223 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39224 | PyObject *resultobj; | |
39225 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39226 | int result; | |
39227 | PyObject * obj0 = 0 ; | |
39228 | char *kwnames[] = { | |
39229 | (char *) "self", NULL | |
39230 | }; | |
39231 | ||
39232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39235 | { |
39236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39237 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39238 | ||
39239 | wxPyEndAllowThreads(__tstate); | |
39240 | if (PyErr_Occurred()) SWIG_fail; | |
39241 | } | |
15afbcd0 | 39242 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39243 | return resultobj; |
39244 | fail: | |
39245 | return NULL; | |
39246 | } | |
39247 | ||
39248 | ||
39249 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39250 | PyObject *resultobj; | |
39251 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39252 | bool result; | |
39253 | PyObject * obj0 = 0 ; | |
39254 | char *kwnames[] = { | |
39255 | (char *) "self", NULL | |
39256 | }; | |
39257 | ||
39258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39261 | { |
39262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39263 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39264 | ||
39265 | wxPyEndAllowThreads(__tstate); | |
39266 | if (PyErr_Occurred()) SWIG_fail; | |
39267 | } | |
4f89f6a3 RD |
39268 | { |
39269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39270 | } | |
d14a1e28 RD |
39271 | return resultobj; |
39272 | fail: | |
39273 | return NULL; | |
39274 | } | |
39275 | ||
39276 | ||
39277 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39278 | PyObject *resultobj; | |
39279 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39280 | bool arg2 ; | |
39281 | PyObject * obj0 = 0 ; | |
39282 | PyObject * obj1 = 0 ; | |
39283 | char *kwnames[] = { | |
39284 | (char *) "self",(char *) "d", NULL | |
39285 | }; | |
39286 | ||
39287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39290 | arg2 = (bool) SWIG_AsBool(obj1); | |
39291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39292 | { |
39293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39294 | (arg1)->SetDone(arg2); | |
39295 | ||
39296 | wxPyEndAllowThreads(__tstate); | |
39297 | if (PyErr_Occurred()) SWIG_fail; | |
39298 | } | |
39299 | Py_INCREF(Py_None); resultobj = Py_None; | |
39300 | return resultobj; | |
39301 | fail: | |
39302 | return NULL; | |
39303 | } | |
39304 | ||
39305 | ||
39306 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39307 | PyObject *resultobj; | |
39308 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39309 | int result; | |
39310 | PyObject * obj0 = 0 ; | |
39311 | char *kwnames[] = { | |
39312 | (char *) "self", NULL | |
39313 | }; | |
39314 | ||
39315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39318 | { |
39319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39320 | result = (int)(arg1)->GetRelationship(); | |
39321 | ||
39322 | wxPyEndAllowThreads(__tstate); | |
39323 | if (PyErr_Occurred()) SWIG_fail; | |
39324 | } | |
15afbcd0 | 39325 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39326 | return resultobj; |
39327 | fail: | |
39328 | return NULL; | |
39329 | } | |
39330 | ||
39331 | ||
39332 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39333 | PyObject *resultobj; | |
39334 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39335 | int arg2 ; | |
39336 | PyObject * obj0 = 0 ; | |
994141e6 | 39337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39338 | char *kwnames[] = { |
39339 | (char *) "self",(char *) "r", NULL | |
39340 | }; | |
39341 | ||
994141e6 | 39342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39345 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39347 | { |
39348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39349 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39350 | ||
39351 | wxPyEndAllowThreads(__tstate); | |
39352 | if (PyErr_Occurred()) SWIG_fail; | |
39353 | } | |
39354 | Py_INCREF(Py_None); resultobj = Py_None; | |
39355 | return resultobj; | |
39356 | fail: | |
39357 | return NULL; | |
39358 | } | |
39359 | ||
39360 | ||
39361 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39362 | PyObject *resultobj; | |
39363 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39364 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39365 | bool result; | |
39366 | PyObject * obj0 = 0 ; | |
39367 | PyObject * obj1 = 0 ; | |
39368 | char *kwnames[] = { | |
39369 | (char *) "self",(char *) "otherW", NULL | |
39370 | }; | |
39371 | ||
39372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39375 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39377 | { |
39378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39379 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39380 | ||
39381 | wxPyEndAllowThreads(__tstate); | |
39382 | if (PyErr_Occurred()) SWIG_fail; | |
39383 | } | |
4f89f6a3 RD |
39384 | { |
39385 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39386 | } | |
d14a1e28 RD |
39387 | return resultobj; |
39388 | fail: | |
39389 | return NULL; | |
39390 | } | |
39391 | ||
39392 | ||
39393 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39394 | PyObject *resultobj; | |
39395 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39396 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39397 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39398 | bool result; | |
39399 | PyObject * obj0 = 0 ; | |
39400 | PyObject * obj1 = 0 ; | |
39401 | PyObject * obj2 = 0 ; | |
39402 | char *kwnames[] = { | |
39403 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39404 | }; | |
39405 | ||
39406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39411 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39413 | { |
39414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39415 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39416 | ||
39417 | wxPyEndAllowThreads(__tstate); | |
39418 | if (PyErr_Occurred()) SWIG_fail; | |
39419 | } | |
4f89f6a3 RD |
39420 | { |
39421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39422 | } | |
d14a1e28 RD |
39423 | return resultobj; |
39424 | fail: | |
39425 | return NULL; | |
39426 | } | |
39427 | ||
39428 | ||
39429 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39430 | PyObject *resultobj; | |
39431 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39432 | int arg2 ; | |
39433 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39434 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39435 | int result; | |
39436 | PyObject * obj0 = 0 ; | |
994141e6 | 39437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39438 | PyObject * obj2 = 0 ; |
39439 | PyObject * obj3 = 0 ; | |
39440 | char *kwnames[] = { | |
39441 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39442 | }; | |
39443 | ||
994141e6 | 39444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39447 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39448 | if (PyErr_Occurred()) SWIG_fail; | |
39449 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39451 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39453 | { |
39454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39455 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39456 | ||
39457 | wxPyEndAllowThreads(__tstate); | |
39458 | if (PyErr_Occurred()) SWIG_fail; | |
39459 | } | |
15afbcd0 | 39460 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39461 | return resultobj; |
39462 | fail: | |
39463 | return NULL; | |
39464 | } | |
39465 | ||
39466 | ||
39467 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39468 | PyObject *obj; | |
39469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39470 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39471 | Py_INCREF(obj); | |
39472 | return Py_BuildValue((char *)""); | |
39473 | } | |
39474 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39475 | PyObject *resultobj; | |
39476 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39477 | wxIndividualLayoutConstraint *result; | |
39478 | PyObject * obj0 = 0 ; | |
39479 | char *kwnames[] = { | |
39480 | (char *) "self", NULL | |
39481 | }; | |
39482 | ||
39483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39486 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
39487 | ||
15afbcd0 | 39488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39489 | return resultobj; |
39490 | fail: | |
39491 | return NULL; | |
39492 | } | |
39493 | ||
39494 | ||
39495 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39496 | PyObject *resultobj; | |
39497 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39498 | wxIndividualLayoutConstraint *result; | |
39499 | PyObject * obj0 = 0 ; | |
39500 | char *kwnames[] = { | |
39501 | (char *) "self", NULL | |
39502 | }; | |
39503 | ||
39504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39507 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
39508 | ||
15afbcd0 | 39509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39510 | return resultobj; |
39511 | fail: | |
39512 | return NULL; | |
39513 | } | |
39514 | ||
39515 | ||
39516 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39517 | PyObject *resultobj; | |
39518 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39519 | wxIndividualLayoutConstraint *result; | |
39520 | PyObject * obj0 = 0 ; | |
39521 | char *kwnames[] = { | |
39522 | (char *) "self", NULL | |
39523 | }; | |
39524 | ||
39525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39528 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
39529 | ||
15afbcd0 | 39530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39531 | return resultobj; |
39532 | fail: | |
39533 | return NULL; | |
39534 | } | |
39535 | ||
39536 | ||
39537 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39538 | PyObject *resultobj; | |
39539 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39540 | wxIndividualLayoutConstraint *result; | |
39541 | PyObject * obj0 = 0 ; | |
39542 | char *kwnames[] = { | |
39543 | (char *) "self", NULL | |
39544 | }; | |
39545 | ||
39546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39549 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39550 | ||
15afbcd0 | 39551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39552 | return resultobj; |
39553 | fail: | |
39554 | return NULL; | |
39555 | } | |
39556 | ||
39557 | ||
39558 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39559 | PyObject *resultobj; | |
39560 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39561 | wxIndividualLayoutConstraint *result; | |
39562 | PyObject * obj0 = 0 ; | |
39563 | char *kwnames[] = { | |
39564 | (char *) "self", NULL | |
39565 | }; | |
39566 | ||
39567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39570 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39571 | ||
15afbcd0 | 39572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39573 | return resultobj; |
39574 | fail: | |
39575 | return NULL; | |
39576 | } | |
39577 | ||
39578 | ||
39579 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39580 | PyObject *resultobj; | |
39581 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39582 | wxIndividualLayoutConstraint *result; | |
39583 | PyObject * obj0 = 0 ; | |
39584 | char *kwnames[] = { | |
39585 | (char *) "self", NULL | |
39586 | }; | |
39587 | ||
39588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39591 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39592 | ||
15afbcd0 | 39593 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39594 | return resultobj; |
39595 | fail: | |
39596 | return NULL; | |
39597 | } | |
39598 | ||
39599 | ||
39600 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39601 | PyObject *resultobj; | |
39602 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39603 | wxIndividualLayoutConstraint *result; | |
39604 | PyObject * obj0 = 0 ; | |
39605 | char *kwnames[] = { | |
39606 | (char *) "self", NULL | |
39607 | }; | |
39608 | ||
39609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39612 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39613 | ||
15afbcd0 | 39614 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39615 | return resultobj; |
39616 | fail: | |
39617 | return NULL; | |
39618 | } | |
39619 | ||
39620 | ||
39621 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39622 | PyObject *resultobj; | |
39623 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39624 | wxIndividualLayoutConstraint *result; | |
39625 | PyObject * obj0 = 0 ; | |
39626 | char *kwnames[] = { | |
39627 | (char *) "self", NULL | |
39628 | }; | |
39629 | ||
39630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39633 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39634 | ||
15afbcd0 | 39635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39636 | return resultobj; |
39637 | fail: | |
39638 | return NULL; | |
39639 | } | |
39640 | ||
39641 | ||
39642 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39643 | PyObject *resultobj; | |
39644 | wxLayoutConstraints *result; | |
39645 | char *kwnames[] = { | |
39646 | NULL | |
39647 | }; | |
39648 | ||
39649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39650 | { | |
39651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39652 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
39653 | ||
39654 | wxPyEndAllowThreads(__tstate); | |
39655 | if (PyErr_Occurred()) SWIG_fail; | |
39656 | } | |
15afbcd0 | 39657 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
39658 | return resultobj; |
39659 | fail: | |
39660 | return NULL; | |
39661 | } | |
39662 | ||
39663 | ||
39664 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39665 | PyObject *resultobj; | |
39666 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39668 | int *arg3 = (int *) 0 ; | |
39669 | bool result; | |
39670 | int temp3 ; | |
39671 | PyObject * obj0 = 0 ; | |
39672 | PyObject * obj1 = 0 ; | |
39673 | char *kwnames[] = { | |
39674 | (char *) "self",(char *) "win", NULL | |
39675 | }; | |
39676 | ||
39677 | arg3 = &temp3; | |
39678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39683 | { |
39684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39685 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
39686 | ||
39687 | wxPyEndAllowThreads(__tstate); | |
39688 | if (PyErr_Occurred()) SWIG_fail; | |
39689 | } | |
4f89f6a3 RD |
39690 | { |
39691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39692 | } | |
d14a1e28 RD |
39693 | { |
39694 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
39695 | resultobj = t_output_helper(resultobj,o); | |
39696 | } | |
39697 | return resultobj; | |
39698 | fail: | |
39699 | return NULL; | |
39700 | } | |
39701 | ||
39702 | ||
39703 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39704 | PyObject *resultobj; | |
39705 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39706 | bool result; | |
39707 | PyObject * obj0 = 0 ; | |
39708 | char *kwnames[] = { | |
39709 | (char *) "self", NULL | |
39710 | }; | |
39711 | ||
39712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39715 | { |
39716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39717 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
39718 | ||
39719 | wxPyEndAllowThreads(__tstate); | |
39720 | if (PyErr_Occurred()) SWIG_fail; | |
39721 | } | |
4f89f6a3 RD |
39722 | { |
39723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39724 | } | |
d14a1e28 RD |
39725 | return resultobj; |
39726 | fail: | |
39727 | return NULL; | |
39728 | } | |
39729 | ||
39730 | ||
39731 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
39732 | PyObject *obj; | |
39733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39734 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
39735 | Py_INCREF(obj); | |
39736 | return Py_BuildValue((char *)""); | |
39737 | } | |
39738 | static PyMethodDef SwigMethods[] = { | |
39739 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 39740 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
39741 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
39742 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39743 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
39744 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39745 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39746 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39747 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39748 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
39749 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
39750 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39751 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39752 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
39753 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39754 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
39755 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
39756 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
39757 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39758 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39759 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39760 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
39761 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, |
39762 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 39763 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39764 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
39765 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39766 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39767 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39768 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39769 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
39770 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39771 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
39772 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
39773 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
39774 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 39775 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 39776 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39777 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
39778 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39779 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39780 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39781 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39782 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
39783 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
39784 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39785 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39786 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
39787 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39788 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39789 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39790 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 39791 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39792 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
39793 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39794 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
39795 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
39796 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
39797 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
39798 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
39799 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
39800 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
39801 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39802 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39803 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39804 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39805 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39806 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
39807 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
39808 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
39809 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
39810 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
39811 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
39812 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39813 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
39814 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
39815 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39816 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
39817 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
39818 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
39819 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
39820 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
39821 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
39822 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
39823 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
39824 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
39825 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
39826 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
39827 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39828 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39829 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39830 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
39831 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
39832 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
39833 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
39834 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39835 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39836 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39837 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39838 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39839 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39840 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39841 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 39842 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39843 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
39844 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
39845 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
39846 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
39847 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
39848 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
39849 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
39850 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39851 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39852 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
39853 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
39854 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
39855 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
39856 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
39857 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
39858 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
39859 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
39860 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
39861 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
39862 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
39863 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39864 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
39865 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
39866 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
39867 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
39868 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
39869 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 39870 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39871 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
39872 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
39873 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
39874 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
39875 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
39876 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
39877 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
39878 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
39879 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
39880 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
39881 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
39882 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
39883 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
39884 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39885 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
39886 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
39887 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
39888 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
39889 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
39890 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
39891 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
39892 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39893 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
39894 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
39895 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39896 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
39897 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39898 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
39899 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
39900 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
39901 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
39902 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
39903 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39904 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39905 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39906 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39907 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
39908 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
39909 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
39910 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
39911 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
39912 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
39913 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39914 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
39915 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
39916 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
39917 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39918 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39919 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39920 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
39921 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
39922 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
39923 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
39924 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
39925 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39926 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39927 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39928 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
39929 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39930 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39931 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39932 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39933 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39934 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
39935 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
39936 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
39937 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
39938 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
39939 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
39940 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
39941 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
39942 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
39943 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
39944 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
39945 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
39946 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39947 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
39948 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39949 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39950 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
39951 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
39952 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
39953 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
39954 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
39955 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
39956 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
39957 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39958 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
39959 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
39960 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
39961 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
39962 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
39963 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
66c033b4 | 39964 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39965 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
39966 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
39967 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
39968 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39969 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
39970 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
39971 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
39972 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
39973 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
39974 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
39975 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
39976 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39977 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39978 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
39979 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
39980 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
39982 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 39993 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
39994 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, |
39995 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
39999 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40000 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40001 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40002 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40003 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40009 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40010 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40011 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40012 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40013 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40014 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40015 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40016 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40017 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40024 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40025 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40026 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40027 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40028 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40029 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40030 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, |
40031 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40032 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40034 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40036 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40038 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40040 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40042 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40044 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40046 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40047 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40048 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40050 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40051 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40052 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40056 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40066 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40068 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40070 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40071 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40073 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40076 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40080 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40081 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40082 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40084 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40087 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40090 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40099 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40102 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40104 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40105 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40107 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40108 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40109 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40110 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40111 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40113 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40118 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40119 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40120 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40121 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40122 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40123 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40124 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40125 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40126 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40128 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40130 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40138 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40139 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40140 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40151 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40153 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40156 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40157 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40160 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40161 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40162 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40167 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40173 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40174 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40181 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40188 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40219 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40223 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40233 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40237 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40239 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40243 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40245 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40246 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40247 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40248 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40250 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40254 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40257 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40260 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40262 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40267 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40270 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40271 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40274 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40275 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40276 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40279 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40282 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40284 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40288 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40299 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40302 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40305 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40307 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40310 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40311 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40312 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40316 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40320 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40322 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40328 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40330 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40331 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40334 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40338 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40342 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40345 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40350 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40355 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40375 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40376 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40379 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40384 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 40385 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40386 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40387 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40399 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40402 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40407 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40408 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40410 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
40411 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40414 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40418 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40419 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, |
40420 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
40426 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
40427 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40428 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40429 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40437 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 RD |
40441 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40442 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40443 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40444 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40460 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40461 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40466 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40472 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40476 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, |
40477 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
d14a1e28 RD |
40478 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, |
40479 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40480 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40481 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
40482 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 40483 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40484 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
40485 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40488 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40492 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40496 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40497 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
40498 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40504 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
40505 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40517 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40520 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40528 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, |
40529 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40532 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
40533 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40543 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 40558 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
74a57fcd RD |
40559 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
40560 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40561 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
b2df227b | 40562 | { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 40563 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
b2df227b | 40564 | { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40565 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
40566 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 40570 | { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40571 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, |
40572 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 40584 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40585 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40586 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 RD |
40620 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, |
40621 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40622 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, |
40623 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40637 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40640 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
40695 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
40722 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 | 40733 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40734 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
40735 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
40752 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 40758 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40759 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, |
40760 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
40777 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
40778 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40779 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, |
248ed943 | 40780 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40781 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, |
40782 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
40813 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
1c0f361b | 40818 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40819 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, |
40820 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40822 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40832 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40839 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, |
40840 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
40842 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
40845 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40848 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, |
40849 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40851 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, |
40852 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40853 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, |
40854 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
40862 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40863 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, |
40864 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40871 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
40872 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40873 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
40874 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40881 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
40882 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40883 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
40884 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40891 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
40892 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40893 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
40894 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
248ed943 RD |
40902 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS }, |
40903 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40904 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, |
40905 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
40908 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
40914 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
40915 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
40916 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
40917 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
40918 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40919 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
248ed943 RD |
40920 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS }, |
40921 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40922 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, |
40923 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
40950 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
40962 | { NULL, NULL } | |
40963 | }; | |
40964 | ||
40965 | ||
40966 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40967 | ||
40968 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
40969 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
40970 | } | |
40971 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
40972 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
40973 | } | |
40974 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
40975 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40976 | } | |
40977 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
40978 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40979 | } | |
40980 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
40981 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
40982 | } | |
40983 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
40984 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40985 | } | |
40986 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
40987 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
40988 | } | |
40989 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
40990 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40991 | } | |
40992 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
40993 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40994 | } | |
40995 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
40996 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
40997 | } | |
40998 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
40999 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41000 | } | |
41001 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41002 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41003 | } | |
41004 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41005 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41006 | } | |
41007 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41008 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41009 | } | |
41010 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41011 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41012 | } | |
41013 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41014 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41015 | } | |
41016 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41017 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41018 | } | |
41019 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41020 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41021 | } | |
41022 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41023 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41024 | } | |
41025 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41026 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41027 | } | |
41028 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41029 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41030 | } | |
41031 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41032 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41033 | } | |
41034 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41035 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41036 | } | |
41037 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41038 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41039 | } | |
41040 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41041 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41042 | } | |
41043 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41044 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41045 | } | |
41046 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41047 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41048 | } | |
41049 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41050 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41051 | } | |
41052 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41053 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41054 | } | |
41055 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41056 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41057 | } | |
41058 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41059 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41060 | } | |
41061 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41062 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41063 | } | |
41064 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41065 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41066 | } | |
41067 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41068 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41069 | } | |
41070 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41071 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41072 | } | |
41073 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41074 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41075 | } | |
41076 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41077 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41078 | } | |
41079 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41080 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41081 | } | |
41082 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41083 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41084 | } | |
41085 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41086 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41087 | } | |
41088 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41089 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41090 | } | |
41091 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41092 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41093 | } | |
41094 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41095 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41096 | } | |
41097 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41098 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41099 | } | |
41100 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41101 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41102 | } | |
41103 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41104 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41105 | } | |
41106 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41107 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41108 | } | |
41109 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41110 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41111 | } | |
41112 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41113 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41114 | } | |
41115 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41116 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41117 | } | |
41118 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41119 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41120 | } | |
41121 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41122 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41123 | } | |
41124 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41125 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41126 | } | |
41127 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41128 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41129 | } | |
41130 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41131 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41132 | } | |
41133 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41134 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41135 | } | |
41136 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41137 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41138 | } | |
41139 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41140 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41141 | } | |
41142 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41143 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41144 | } | |
41145 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41146 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41147 | } | |
41148 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41149 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41150 | } | |
41151 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41152 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41153 | } | |
41154 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41155 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41156 | } | |
41157 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41158 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41159 | } | |
41160 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41161 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41162 | } | |
41163 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41164 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41165 | } | |
41166 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41167 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41168 | } | |
41169 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41170 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41171 | } | |
41172 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41173 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41174 | } | |
41175 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41176 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41177 | } | |
41178 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41179 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41180 | } | |
41181 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41182 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41183 | } | |
41184 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41185 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41186 | } | |
41187 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41188 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41189 | } | |
41190 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41191 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41192 | } | |
41193 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41194 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41195 | } | |
41196 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41197 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41198 | } | |
41199 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41200 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41201 | } | |
41202 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41203 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41204 | } | |
41205 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41206 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41207 | } | |
41208 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41209 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41210 | } | |
41211 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41212 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41213 | } | |
41214 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41215 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41216 | } | |
41217 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41218 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41219 | } | |
41220 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41221 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41222 | } | |
41223 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41224 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41225 | } | |
41226 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41227 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41228 | } | |
41229 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41230 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41231 | } | |
41232 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41233 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41234 | } | |
41235 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41236 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41237 | } | |
41238 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41239 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41240 | } | |
41241 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41242 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41243 | } | |
41244 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41245 | return (void *)((wxObject *) ((wxImage *) x)); | |
41246 | } | |
41247 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41248 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41249 | } | |
41250 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41251 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41252 | } | |
41253 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41254 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41255 | } | |
41256 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41257 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41258 | } | |
41259 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41260 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41261 | } | |
1e0c8722 RD |
41262 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41263 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41264 | } | |
d14a1e28 RD |
41265 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41266 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41267 | } | |
41268 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41269 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41270 | } | |
41271 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41272 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41273 | } | |
41274 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41275 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41276 | } | |
41277 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41278 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41279 | } | |
41280 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41281 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41282 | } | |
41283 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41284 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41285 | } | |
41286 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41287 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41288 | } | |
41289 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41290 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41291 | } | |
41292 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41293 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41294 | } | |
41295 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41296 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41297 | } | |
41298 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41299 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41300 | } | |
41301 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41302 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41303 | } | |
41304 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41305 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41306 | } | |
41307 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41308 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41309 | } | |
41310 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41311 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41312 | } | |
41313 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41314 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41315 | } | |
41316 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41317 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41318 | } | |
41319 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41320 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41321 | } | |
41322 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41323 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41324 | } | |
41325 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41326 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41327 | } | |
41328 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41329 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41330 | } | |
41331 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41332 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41333 | } | |
41334 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41335 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41336 | } | |
41337 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41338 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41339 | } | |
41340 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41341 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41342 | } | |
41343 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41344 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41345 | } | |
41346 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41347 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41348 | } | |
41349 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41350 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41351 | } | |
41352 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41353 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41354 | } | |
41355 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41356 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41357 | } | |
41358 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41359 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41360 | } | |
41361 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41362 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41363 | } | |
41364 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41365 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41366 | } | |
41367 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41368 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41369 | } | |
41370 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41371 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41372 | } | |
41373 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41374 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41375 | } | |
41376 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41377 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41378 | } | |
41379 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41380 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41381 | } | |
41382 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41383 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41384 | } | |
41385 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41386 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41387 | } | |
41388 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41389 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41390 | } | |
41391 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41392 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41393 | } | |
41394 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41395 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41396 | } | |
41397 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41398 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41399 | } | |
41400 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41401 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41402 | } | |
41403 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41404 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41405 | } | |
41406 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41407 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41408 | } | |
41409 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41410 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41411 | } | |
41412 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41413 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41414 | } | |
41415 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41416 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41417 | } | |
41418 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41419 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41420 | } | |
41421 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41422 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41423 | } | |
41424 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41425 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41426 | } | |
41427 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41428 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41429 | } | |
41430 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41431 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41432 | } | |
41433 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41434 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41435 | } | |
41436 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41437 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41438 | } | |
41439 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41440 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41441 | } | |
41442 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41443 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41444 | } | |
41445 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41446 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41447 | } | |
41448 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41449 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41450 | } | |
41451 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41452 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41453 | } | |
15afbcd0 RD |
41454 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
41455 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41456 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41457 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41458 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41459 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41460 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41461 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41462 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41463 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41464 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41465 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41466 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41467 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41468 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41469 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41470 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41471 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41472 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41473 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41474 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41475 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41476 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41477 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41478 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41479 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41480 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41481 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41482 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41483 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41484 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41485 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41486 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41487 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41488 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41489 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
74a57fcd | 41490 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
41491 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
41492 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41493 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41494 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41495 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41496 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41497 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41498 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41499 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41500 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41501 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41502 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41503 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41504 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41505 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41506 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41507 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41508 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41509 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41510 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41511 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41512 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41513 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41514 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41515 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41516 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41517 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41518 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41519 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41520 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41521 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41522 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41523 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41524 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41525 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41526 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41527 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41528 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41529 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41530 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41531 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41532 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41533 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41534 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41535 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41536 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41537 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41538 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41539 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41540 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41541 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41542 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41543 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41544 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41545 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41546 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41547 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41548 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41549 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41550 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41551 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41552 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41553 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41554 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41555 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41556 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41557 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41558 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41559 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41560 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41561 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41562 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41563 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41564 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41565 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41566 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41567 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
41568 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d14a1e28 RD |
41569 | |
41570 | static swig_type_info *swig_types_initial[] = { | |
41571 | _swigt__p_wxLayoutConstraints, | |
41572 | _swigt__p_wxRealPoint, | |
41573 | _swigt__p_wxSizerItem, | |
41574 | _swigt__p_wxGBSizerItem, | |
41575 | _swigt__p_wxScrollEvent, | |
41576 | _swigt__p_wxIndividualLayoutConstraint, | |
41577 | _swigt__p_wxSizer, | |
41578 | _swigt__p_wxBoxSizer, | |
41579 | _swigt__p_wxStaticBoxSizer, | |
41580 | _swigt__p_wxGridBagSizer, | |
41581 | _swigt__p_wxAcceleratorEntry, | |
41582 | _swigt__p_wxUpdateUIEvent, | |
41583 | _swigt__p_wxMenu, | |
41584 | _swigt__p_wxEvent, | |
41585 | _swigt__p_wxGridSizer, | |
41586 | _swigt__p_wxFlexGridSizer, | |
41587 | _swigt__p_wxInitDialogEvent, | |
41588 | _swigt__p_wxItemContainer, | |
41589 | _swigt__p_wxNcPaintEvent, | |
41590 | _swigt__p_wxPaintEvent, | |
41591 | _swigt__p_wxSysColourChangedEvent, | |
41592 | _swigt__p_wxMouseCaptureChangedEvent, | |
41593 | _swigt__p_wxDisplayChangedEvent, | |
41594 | _swigt__p_wxPaletteChangedEvent, | |
41595 | _swigt__p_wxControl, | |
41596 | _swigt__p_wxFont, | |
41597 | _swigt__p_wxMenuBarBase, | |
41598 | _swigt__p_wxSetCursorEvent, | |
41599 | _swigt__p_wxFSFile, | |
41600 | _swigt__p_wxCaret, | |
41601 | _swigt__p_wxRegion, | |
41602 | _swigt__p_wxPoint2D, | |
41603 | _swigt__p_int, | |
41604 | _swigt__p_wxSize, | |
41605 | _swigt__p_wxDC, | |
41606 | _swigt__p_wxPySizer, | |
74a57fcd | 41607 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
41608 | _swigt__p_wxNotifyEvent, |
41609 | _swigt__p_wxPyEvent, | |
41610 | _swigt__p_wxPropagationDisabler, | |
41611 | _swigt__p_wxAppTraits, | |
41612 | _swigt__p_wxArrayString, | |
41613 | _swigt__p_wxShowEvent, | |
41614 | _swigt__p_wxToolTip, | |
4d5c3d91 | 41615 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41616 | _swigt__p_wxIconizeEvent, |
41617 | _swigt__p_wxActivateEvent, | |
41618 | _swigt__p_wxMoveEvent, | |
41619 | _swigt__p_wxSizeEvent, | |
41620 | _swigt__p_wxQueryNewPaletteEvent, | |
41621 | _swigt__p_wxWindowCreateEvent, | |
41622 | _swigt__p_wxIdleEvent, | |
41623 | _swigt__p_wxMenuItem, | |
41624 | _swigt__p_wxStaticBox, | |
41625 | _swigt__p_long, | |
41626 | _swigt__p_wxTIFFHandler, | |
41627 | _swigt__p_wxXPMHandler, | |
41628 | _swigt__p_wxPNMHandler, | |
41629 | _swigt__p_wxJPEGHandler, | |
41630 | _swigt__p_wxPCXHandler, | |
41631 | _swigt__p_wxGIFHandler, | |
41632 | _swigt__p_wxPNGHandler, | |
41633 | _swigt__p_wxANIHandler, | |
41634 | _swigt__p_wxMemoryFSHandler, | |
41635 | _swigt__p_wxEvtHandler, | |
41636 | _swigt__p_wxCURHandler, | |
41637 | _swigt__p_wxICOHandler, | |
41638 | _swigt__p_wxBMPHandler, | |
41639 | _swigt__p_wxImageHandler, | |
41640 | _swigt__p_wxFileSystemHandler, | |
41641 | _swigt__p_wxPyFileSystemHandler, | |
41642 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 41643 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
41644 | _swigt__p_wxRect, |
41645 | _swigt__p_wxGBSpan, | |
41646 | _swigt__p_wxPropagateOnce, | |
41647 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 41648 | _swigt__p_char, |
d14a1e28 RD |
41649 | _swigt__p_wxGBPosition, |
41650 | _swigt__p_wxImage, | |
41651 | _swigt__p_wxFrame, | |
41652 | _swigt__p_wxScrollWinEvent, | |
41653 | _swigt__p_wxImageHistogram, | |
41654 | _swigt__p_byte, | |
41655 | _swigt__p_wxPoint, | |
41656 | _swigt__p_wxCursor, | |
41657 | _swigt__p_wxObject, | |
41658 | _swigt__p_wxPyInputStream, | |
41659 | _swigt__p_wxOutputStream, | |
41660 | _swigt__p_wxInputStream, | |
41661 | _swigt__p_wxDateTime, | |
41662 | _swigt__p_wxKeyEvent, | |
41663 | _swigt__p_wxNavigationKeyEvent, | |
41664 | _swigt__p_wxWindowDestroyEvent, | |
41665 | _swigt__p_wxWindow, | |
41666 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
41667 | _swigt__p_wxFileSystem, |
41668 | _swigt__p_wxBitmap, | |
41669 | _swigt__p_wxMenuEvent, | |
41670 | _swigt__p_wxContextMenuEvent, | |
41671 | _swigt__p_unsigned_char, | |
41672 | _swigt__p_wxCloseEvent, | |
41673 | _swigt__p_wxEraseEvent, | |
41674 | _swigt__p_wxMouseEvent, | |
41675 | _swigt__p_wxPyApp, | |
41676 | _swigt__p_wxCommandEvent, | |
41677 | _swigt__p_wxPyCommandEvent, | |
7722248d | 41678 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
41679 | _swigt__p_wxChildFocusEvent, |
41680 | _swigt__p_wxFocusEvent, | |
41681 | _swigt__p_wxDropFilesEvent, | |
41682 | _swigt__p_wxControlWithItems, | |
41683 | _swigt__p_wxColour, | |
41684 | _swigt__p_wxValidator, | |
41685 | _swigt__p_wxPyValidator, | |
41686 | 0 | |
41687 | }; | |
41688 | ||
41689 | ||
41690 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41691 | ||
41692 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
41693 | {0}}; |
41694 | ||
41695 | #ifdef __cplusplus | |
41696 | } | |
41697 | #endif | |
41698 | ||
41699 | #ifdef __cplusplus | |
41700 | extern "C" | |
41701 | #endif | |
41702 | SWIGEXPORT(void) SWIG_init(void) { | |
41703 | static PyObject *SWIG_globals = 0; | |
41704 | static int typeinit = 0; | |
41705 | PyObject *m, *d; | |
41706 | int i; | |
41707 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
41708 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41709 | d = PyModule_GetDict(m); | |
41710 | ||
41711 | if (!typeinit) { | |
41712 | for (i = 0; swig_types_initial[i]; i++) { | |
41713 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
41714 | } | |
41715 | typeinit = 1; | |
41716 | } | |
41717 | SWIG_InstallConstants(d,swig_const_table); | |
41718 | ||
41719 | ||
41720 | #ifndef wxPyUSE_EXPORT | |
41721 | // Make our API structure a CObject so other modules can import it | |
41722 | // from this module. | |
41723 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
41724 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
41725 | Py_XDECREF(cobj); | |
41726 | #endif | |
41727 | ||
15afbcd0 RD |
41728 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
41729 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
41730 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
41731 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
41732 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
41733 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
41734 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
41735 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
41736 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
41737 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
41738 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
41739 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
15afbcd0 RD |
41740 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); |
41741 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
41742 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
41743 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
41744 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
41745 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
15afbcd0 RD |
41746 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); |
41747 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
41748 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
41749 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
41750 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
41751 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
41752 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
a95a7133 | 41753 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); |
15afbcd0 RD |
41754 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); |
41755 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
41756 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
41757 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
41758 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
41759 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
41760 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
41761 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
41762 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
41763 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
41764 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
41765 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
41766 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
41767 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
41768 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
41769 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
41770 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
41771 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
41772 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
41773 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
41774 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
41775 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
41776 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
41777 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
41778 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
41779 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
41780 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
41781 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
41782 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
41783 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
41784 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
41785 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
41786 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
41787 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
41788 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
41789 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
41790 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
41791 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
41792 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
41793 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
41794 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
41795 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
41796 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
41797 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
41798 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
41799 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
41800 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
41801 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
41802 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
41803 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
41804 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
41805 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
41806 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
41807 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
41808 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
41809 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
41810 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
41811 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
41812 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
41813 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
41814 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
41815 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
41816 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
41817 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
41818 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
41819 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
41820 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
41821 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
41822 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
41823 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
41824 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
41825 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
41826 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
41827 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
41828 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
41829 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
41830 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
41831 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
41832 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
41833 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
41834 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
41835 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
41836 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
41837 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
41838 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
41839 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
41840 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
41841 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
41842 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
41843 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
41844 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
41845 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
41846 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
41847 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
41848 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
41849 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
41850 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
41851 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
41852 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
41853 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
41854 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
41855 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
41856 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
41857 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
41858 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
41859 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
41860 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
41861 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
41862 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
41863 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
41864 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
41865 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
41866 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
41867 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
41868 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
41869 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
41870 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
41871 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
41872 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
41873 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
41874 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
41875 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
41876 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
41877 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
41878 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
41879 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
41880 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
41881 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
41882 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
41883 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
41884 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
41885 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
41886 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
41887 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
41888 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
41889 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
41890 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
41891 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
41892 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
41893 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
41894 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
41895 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
41896 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
41897 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
41898 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
41899 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
41900 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
41901 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
41902 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
41903 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
41904 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
41905 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
41906 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
41907 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
41908 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
41909 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
41910 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
41911 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
41912 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
41913 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
41914 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
41915 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
41916 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
41917 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
41918 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
41919 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
41920 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
41921 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
41922 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
41923 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
41924 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
41925 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
41926 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
41927 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
41928 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
41929 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
41930 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
41931 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
41932 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
41933 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
41934 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
41935 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
41936 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
41937 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
41938 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
41939 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
41940 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
41941 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
41942 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
41943 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
41944 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
41945 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
41946 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
41947 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
41948 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
41949 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
41950 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
41951 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
41952 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
41953 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
41954 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
41955 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
41956 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
41957 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
41958 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
41959 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
41960 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
41961 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
41962 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
41963 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
41964 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
41965 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
41966 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
41967 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
41968 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
41969 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
41970 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
41971 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
41972 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
41973 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
41974 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
41975 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
41976 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
f52e0cf4 | 41977 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); |
15afbcd0 | 41978 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); |
74a57fcd | 41979 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); |
15afbcd0 RD |
41980 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); |
41981 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
41982 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
41983 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
41984 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
41985 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
41986 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
41987 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
41988 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
41989 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
41990 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
41991 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
41992 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
41993 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
41994 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
41995 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
41996 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
41997 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
41998 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
41999 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42000 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42001 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42002 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42003 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42004 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42005 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42006 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42007 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42008 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42009 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42010 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42011 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42012 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42013 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42014 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42015 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42016 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42017 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42018 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42019 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42020 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42021 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42022 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42023 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42024 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42025 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42026 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42027 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42028 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42029 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42030 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42031 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42032 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42033 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42034 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42035 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42036 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42037 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42038 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42039 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42040 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42041 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42042 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42043 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42044 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42045 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42046 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42047 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42048 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42049 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42050 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42051 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42052 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42053 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42054 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42055 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42056 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42057 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42058 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42059 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42060 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42061 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42062 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42063 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42064 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42065 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42066 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42067 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42068 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42069 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42070 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42071 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42072 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42073 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42074 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42075 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42076 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42077 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42078 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42079 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42080 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42081 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42082 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42083 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42084 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42085 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42086 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42087 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42088 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42089 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42090 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42091 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42092 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42093 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42094 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42095 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42096 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42097 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42098 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42099 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42100 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42101 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42102 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42103 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42104 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42105 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42106 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42107 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42108 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42109 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42110 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42111 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42112 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42113 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42114 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42115 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42116 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42117 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42118 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42119 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42120 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42121 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42122 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42123 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42124 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42125 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42126 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42127 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42128 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42129 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42130 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42131 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42132 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42133 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42134 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42135 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42136 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42137 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42138 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42139 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42140 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42141 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42142 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42143 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42144 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42145 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42146 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42147 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42148 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42149 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42150 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42151 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42152 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42153 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42154 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42155 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42156 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42157 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42158 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42159 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42160 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42161 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42162 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42163 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42164 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42165 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42166 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42167 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42168 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42169 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42170 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42171 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42172 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42173 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42174 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42175 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42176 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42177 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42178 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42179 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42180 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42181 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42182 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42183 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42184 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42185 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42186 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42187 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42188 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42189 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42190 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42191 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42192 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42193 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42194 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42195 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42196 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42197 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42198 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42199 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42200 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42201 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42202 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42203 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42204 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42205 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42206 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42207 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42208 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42209 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42210 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42211 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42212 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42213 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42214 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42215 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42216 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42217 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42218 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42219 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42220 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42221 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42222 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42223 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42224 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42225 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42226 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42227 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42228 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42229 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42230 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42231 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42232 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42233 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42234 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42235 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42236 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42237 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42238 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42239 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42240 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42241 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42242 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42243 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 42244 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
15afbcd0 RD |
42245 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42246 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42247 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42248 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42249 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42250 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42251 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42252 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42253 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42254 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42255 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42256 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42257 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42258 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42259 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42260 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42261 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42262 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42263 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42264 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42265 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42266 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42267 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42268 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42269 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42270 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42271 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42272 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42273 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42274 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42275 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42276 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42277 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42278 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42279 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42280 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42281 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42282 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42283 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42284 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42285 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42286 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42287 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42288 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42289 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42290 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42291 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42292 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42293 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42294 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42295 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42296 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42297 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
15afbcd0 RD |
42298 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42299 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42300 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42301 | |
42302 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42303 | ||
42304 | ||
42305 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42306 | ||
42307 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42308 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42309 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42310 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42311 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42312 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
15afbcd0 RD |
42313 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42314 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42315 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42316 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42317 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42318 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42319 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42320 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42321 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42322 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42323 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42324 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42325 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42326 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42327 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42328 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42329 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42330 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42331 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42332 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42333 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42334 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42335 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42336 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42337 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42338 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42339 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42340 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42341 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42342 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42343 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42344 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42345 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42346 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42347 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42348 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42349 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42350 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42351 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42352 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42353 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42354 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42355 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42356 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42357 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42358 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42359 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42360 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42361 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42362 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42363 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42364 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42365 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42366 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42367 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42368 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42369 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42370 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42371 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42372 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42373 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42374 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42375 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42376 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42377 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42378 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42379 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42380 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42381 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42382 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42383 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42384 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42385 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42386 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42387 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42388 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42389 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42390 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42391 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42392 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42393 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42394 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42395 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42396 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42397 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42398 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42399 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42400 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42401 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42402 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42403 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42404 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42405 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42406 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42407 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42408 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42409 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42410 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42411 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42412 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42413 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42414 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42415 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42416 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42417 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42418 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42419 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42420 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42421 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42422 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42423 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42424 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42425 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42426 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42427 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42428 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42429 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42430 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42431 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42432 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42433 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42434 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42435 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42436 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42437 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42438 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42439 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
15afbcd0 RD |
42440 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42441 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42442 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42443 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42444 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42445 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42446 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42447 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42448 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42449 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42450 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42451 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42452 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42453 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42454 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 42455 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 42456 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
4276dc52 RD |
42457 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); |
42458 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42459 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42460 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
74a57fcd | 42461 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); |
d14a1e28 | 42462 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 42463 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
15afbcd0 RD |
42464 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
42465 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42466 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 42467 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
15afbcd0 RD |
42468 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
42469 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42470 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42471 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42472 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42473 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42474 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42475 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42476 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42477 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42478 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42479 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42480 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42481 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42482 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42483 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42484 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42485 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42486 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
42487 | |
42488 | // Initialize threading, some globals and such | |
42489 | __wxPyPreStart(d); | |
42490 | ||
42491 | ||
42492 | // Although these are defined in __version__ they need to be here too so | |
42493 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42494 | // versions match. | |
42495 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42496 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42497 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42498 | ||
42499 | } | |
42500 |