]>
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 | /*----------------------------------------------- | |
330 | @(target):= _core.so | |
331 | ------------------------------------------------*/ | |
332 | #define SWIG_init init_core | |
333 | ||
334 | #define SWIG_name "_core" | |
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 | |
496 | // the wx.core module and will then have safe access to these functions, even if | |
497 | // they are located in another shared library. | |
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, | |
574 | wxPySwigInstance_Check | |
575 | ||
576 | }; | |
577 | ||
578 | #endif | |
579 | ||
580 | ||
d14a1e28 RD |
581 | #if ! wxUSE_HOTKEY |
582 | enum wxHotkeyModifier | |
583 | { | |
584 | wxMOD_NONE = 0, | |
585 | wxMOD_ALT = 1, | |
586 | wxMOD_CONTROL = 2, | |
587 | wxMOD_SHIFT = 4, | |
588 | wxMOD_WIN = 8 | |
589 | }; | |
590 | #define wxEVT_HOTKEY 9999 | |
591 | #endif | |
592 | ||
196addbf | 593 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
594 | wxString wxObject_GetClassName(wxObject *self){ |
595 | return self->GetClassInfo()->GetClassName(); | |
596 | } | |
597 | void wxObject_Destroy(wxObject *self){ | |
598 | delete self; | |
599 | } | |
600 | ||
601 | #ifndef __WXMAC__ | |
602 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
603 | #endif | |
604 | ||
994141e6 | 605 | |
15afbcd0 RD |
606 | #include <limits.h> |
607 | ||
608 | ||
609 | SWIGSTATICINLINE(long) | |
610 | SWIG_CheckLongInRange(long value, const char* type, | |
611 | long min_value, long max_value) | |
612 | { | |
613 | if (!PyErr_Occurred()) { | |
614 | if (value < min_value) { | |
615 | PyObject *err = | |
616 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
617 | value, type, min_value); | |
618 | ||
619 | PyErr_SetObject(PyExc_OverflowError, err); | |
620 | Py_DECREF(err); | |
621 | } else if (value > max_value) { | |
622 | PyObject *err = | |
623 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
624 | value, type, max_value); | |
625 | PyErr_SetObject(PyExc_OverflowError, err); | |
626 | Py_DECREF(err); | |
627 | } | |
628 | } | |
629 | return value; | |
630 | } | |
631 | ||
632 | ||
633 | SWIGSTATICINLINE(long) | |
634 | SWIG_AsLong(PyObject * obj) | |
635 | { | |
69223c70 RD |
636 | if (PyNumber_Check(obj)) |
637 | return PyInt_AsLong(obj); | |
638 | else { | |
639 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
640 | obj->ob_type->tp_name); | |
641 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
642 | Py_DECREF(errmsg); | |
643 | return 0; | |
644 | } | |
15afbcd0 RD |
645 | } |
646 | ||
647 | ||
648 | #if INT_MAX != LONG_MAX | |
649 | SWIGSTATICINLINE(int) | |
650 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 651 | { |
15afbcd0 RD |
652 | return swig_numeric_cast(int, |
653 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
654 | "int", INT_MIN, INT_MAX)); | |
655 | } | |
656 | #else | |
657 | #define SWIG_AsInt SWIG_AsLong | |
658 | #endif | |
659 | ||
660 | ||
661 | SWIGSTATICINLINE(int) | |
662 | SWIG_CheckInt(PyObject* obj) | |
663 | { | |
664 | SWIG_AsInt(obj); | |
665 | if (PyErr_Occurred()) { | |
666 | PyErr_Clear(); | |
667 | return 0; | |
668 | } else { | |
669 | return 1; | |
670 | } | |
994141e6 RD |
671 | } |
672 | ||
e811c8ce | 673 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 674 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
675 | PyObject* tup = PyTuple_New(2); |
676 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
677 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 678 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
679 | return tup; |
680 | } | |
994141e6 | 681 | |
15afbcd0 RD |
682 | SWIGSTATICINLINE(double) |
683 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 684 | { |
69223c70 RD |
685 | if (PyNumber_Check(obj)) |
686 | return PyFloat_AsDouble(obj); | |
687 | else { | |
688 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
689 | obj->ob_type->tp_name); | |
690 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
691 | Py_DECREF(errmsg); | |
692 | return 0; | |
693 | } | |
15afbcd0 RD |
694 | } |
695 | ||
696 | ||
697 | SWIGSTATICINLINE(int) | |
698 | SWIG_CheckDouble(PyObject* obj) | |
699 | { | |
700 | SWIG_AsDouble(obj); | |
701 | if (PyErr_Occurred()) { | |
702 | PyErr_Clear(); | |
703 | return 0; | |
704 | } else { | |
705 | return 1; | |
706 | } | |
994141e6 RD |
707 | } |
708 | ||
d14a1e28 RD |
709 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
710 | self->x = x; | |
711 | self->y = y; | |
712 | } | |
e811c8ce | 713 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 714 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
715 | PyObject* tup = PyTuple_New(2); |
716 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
717 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 718 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
719 | return tup; |
720 | } | |
994141e6 | 721 | |
15afbcd0 RD |
722 | SWIGSTATICINLINE(int) |
723 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 724 | { |
15afbcd0 RD |
725 | SWIG_AsLong(obj); |
726 | if (PyErr_Occurred()) { | |
727 | PyErr_Clear(); | |
728 | return 0; | |
729 | } else { | |
730 | return 1; | |
731 | } | |
994141e6 RD |
732 | } |
733 | ||
d14a1e28 RD |
734 | void wxPoint_Set(wxPoint *self,long x,long y){ |
735 | self->x = x; | |
736 | self->y = y; | |
737 | } | |
e811c8ce | 738 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 739 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
740 | PyObject* tup = PyTuple_New(2); |
741 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
742 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 743 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
744 | return tup; |
745 | } | |
746 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
747 | self->x = x; | |
748 | self->y = y; | |
749 | self->width = width; | |
750 | self->height = height; | |
751 | } | |
e811c8ce | 752 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 753 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
754 | PyObject* tup = PyTuple_New(4); |
755 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
756 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
757 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
758 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 759 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
760 | return tup; |
761 | } | |
762 | ||
763 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
764 | wxRegion reg1(*r1); | |
765 | wxRegion reg2(*r2); | |
766 | wxRect dest(0,0,0,0); | |
767 | PyObject* obj; | |
768 | ||
769 | reg1.Intersect(reg2); | |
770 | dest = reg1.GetBox(); | |
771 | ||
772 | if (dest != wxRect(0,0,0,0)) { | |
4f89f6a3 | 773 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 774 | wxRect* newRect = new wxRect(dest); |
e811c8ce | 775 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 776 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
777 | return obj; |
778 | } | |
779 | Py_INCREF(Py_None); | |
780 | return Py_None; | |
781 | } | |
782 | ||
783 | ||
784 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
785 | PyObject* o2; | |
786 | PyObject* o3; | |
787 | ||
788 | if (!target) { | |
789 | target = o; | |
790 | } else if (target == Py_None) { | |
791 | Py_DECREF(Py_None); | |
792 | target = o; | |
793 | } else { | |
794 | if (!PyTuple_Check(target)) { | |
795 | o2 = target; | |
796 | target = PyTuple_New(1); | |
797 | PyTuple_SetItem(target, 0, o2); | |
798 | } | |
799 | o3 = PyTuple_New(1); | |
800 | PyTuple_SetItem(o3, 0, o); | |
801 | ||
802 | o2 = target; | |
803 | target = PySequence_Concat(o2, o3); | |
804 | Py_DECREF(o2); | |
805 | Py_DECREF(o3); | |
806 | } | |
807 | return target; | |
808 | } | |
809 | ||
810 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
811 | self->m_x = x; | |
812 | self->m_y = y; | |
813 | } | |
e811c8ce | 814 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 815 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
816 | PyObject* tup = PyTuple_New(2); |
817 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
818 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 819 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
820 | return tup; |
821 | } | |
822 | ||
823 | #include "wx/wxPython/pyistream.h" | |
824 | ||
825 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
826 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
827 | if (wxis) | |
828 | return new wxPyInputStream(wxis); | |
829 | else | |
830 | return NULL; | |
831 | } | |
994141e6 | 832 | |
15afbcd0 RD |
833 | SWIGSTATICINLINE(PyObject*) |
834 | SWIG_FromChar(char c) | |
994141e6 RD |
835 | { |
836 | return PyString_FromStringAndSize(&c,1); | |
837 | } | |
838 | ||
839 | ||
15afbcd0 RD |
840 | SWIGSTATICINLINE(PyObject* ) |
841 | SWIG_FromUnsignedLong(unsigned long value) | |
842 | { | |
843 | return (value > LONG_MAX) ? | |
844 | PyLong_FromUnsignedLong(value) | |
845 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
846 | } | |
847 | ||
848 | ||
849 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
850 | SWIGSTATIC(int) | |
851 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
994141e6 | 852 | { |
15afbcd0 RD |
853 | static swig_type_info* pchar_info = 0; |
854 | int psize = 0; | |
855 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
856 | ||
857 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
858 | PyErr_Clear(); | |
859 | PyString_AsStringAndSize(obj, cptr, &psize); | |
860 | if (PyErr_Occurred()) { | |
861 | PyErr_Clear(); | |
862 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
863 | } | |
864 | if (size) *size = psize; | |
865 | return 0; | |
866 | } else { | |
867 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
868 | return 1; | |
869 | } | |
994141e6 RD |
870 | } |
871 | ||
872 | ||
15afbcd0 RD |
873 | SWIGSTATIC(void) |
874 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
875 | { | |
876 | char* cptr; size_t csize; | |
877 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
878 | if (PyErr_Occurred()) { | |
879 | PyErr_Clear(); | |
880 | PyObject *err = | |
881 | PyString_FromFormat("a char array of size %d is expected", size); | |
882 | PyErr_SetObject(PyExc_TypeError, err); | |
883 | Py_DECREF(err); | |
884 | } else { | |
885 | /* in C (but not in C++) you can do: | |
886 | ||
887 | char x[5] = "hello"; | |
888 | ||
889 | ie, assing the array using an extra '0' char. | |
890 | */ | |
891 | #ifndef __cplusplus | |
892 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
893 | #endif | |
894 | if (csize > size) { | |
895 | PyObject *err = | |
896 | PyString_FromFormat("a char array of maximum size %d is expected", | |
897 | size); | |
898 | PyErr_SetObject(PyExc_TypeError, err); | |
899 | Py_DECREF(err); | |
900 | } else { | |
901 | if (csize) memcpy(carray, cptr, csize); | |
902 | if (csize < size) memset(carray + csize, 0, size - csize); | |
903 | } | |
904 | } | |
905 | } | |
906 | ||
907 | ||
908 | SWIGSTATICINLINE(char) | |
909 | SWIG_AsChar(PyObject *obj) | |
994141e6 RD |
910 | { |
911 | char c = 0; | |
912 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
15afbcd0 RD |
913 | c = swig_numeric_cast(char, |
914 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
915 | "char", CHAR_MIN, CHAR_MAX)); | |
994141e6 | 916 | } else { |
15afbcd0 RD |
917 | SWIG_AsCharArray(obj, &c, 1); |
918 | if (PyErr_Occurred()) { | |
919 | PyErr_Clear(); | |
994141e6 RD |
920 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
921 | } | |
922 | } | |
923 | return c; | |
924 | } | |
925 | ||
15afbcd0 RD |
926 | |
927 | SWIGSTATICINLINE(int) | |
928 | SWIG_CheckChar(PyObject* obj) | |
929 | { | |
930 | SWIG_AsChar(obj); | |
931 | if (PyErr_Occurred()) { | |
932 | PyErr_Clear(); | |
933 | return 0; | |
934 | } else { | |
935 | return 1; | |
936 | } | |
937 | } | |
938 | ||
d14a1e28 RD |
939 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
940 | // We use only strings for the streams, not unicode | |
941 | PyObject* str = PyObject_Str(obj); | |
942 | if (! str) { | |
943 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
944 | return; | |
945 | } | |
946 | self->Write(PyString_AS_STRING(str), | |
947 | PyString_GET_SIZE(str)); | |
948 | Py_DECREF(str); | |
949 | } | |
950 | ||
951 | #include "wx/wxPython/pyistream.h" | |
952 | ||
953 | ||
954 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
955 | { | |
956 | public: | |
957 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
958 | ||
959 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
960 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
961 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
962 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
963 | ||
964 | wxString GetProtocol(const wxString& location) { | |
965 | return wxFileSystemHandler::GetProtocol(location); | |
966 | } | |
967 | ||
968 | wxString GetLeftLocation(const wxString& location) { | |
969 | return wxFileSystemHandler::GetLeftLocation(location); | |
970 | } | |
971 | ||
972 | wxString GetAnchor(const wxString& location) { | |
973 | return wxFileSystemHandler::GetAnchor(location); | |
974 | } | |
975 | ||
976 | wxString GetRightLocation(const wxString& location) { | |
977 | return wxFileSystemHandler::GetRightLocation(location); | |
978 | } | |
979 | ||
980 | wxString GetMimeTypeFromExt(const wxString& location) { | |
981 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
982 | } | |
983 | ||
984 | PYPRIVATE; | |
985 | }; | |
986 | ||
987 | ||
988 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
989 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
990 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
991 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
992 | ||
993 | ||
15afbcd0 RD |
994 | SWIGSTATICINLINE(bool) |
995 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
996 | { |
997 | return PyObject_IsTrue(obj) ? true : false; | |
998 | } | |
999 | ||
1000 | ||
15afbcd0 RD |
1001 | SWIGSTATICINLINE(int) |
1002 | SWIG_CheckBool(PyObject* obj) | |
1003 | { | |
1004 | SWIG_AsBool(obj); | |
1005 | if (PyErr_Occurred()) { | |
1006 | PyErr_Clear(); | |
1007 | return 0; | |
1008 | } else { | |
1009 | return 1; | |
1010 | } | |
1011 | } | |
1012 | ||
1013 | ||
d14a1e28 RD |
1014 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1015 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1016 | return fname.GetFullPath(); | |
1017 | } | |
1018 | ||
1019 | ||
1020 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1021 | wxImage& image, | |
1022 | long type) { | |
1023 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1024 | } | |
1025 | ||
1026 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1027 | const wxBitmap& bitmap, | |
1028 | long type) { | |
1029 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1030 | } | |
1031 | ||
1032 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1033 | PyObject* data) { | |
1034 | wxMemoryFSHandler::AddFile(filename, | |
1035 | // TODO: Verify data type | |
1036 | (void*)PyString_AsString(data), | |
1037 | (size_t)PyString_Size(data)); | |
1038 | } | |
1039 | ||
1040 | ||
1041 | #include "wx/wxPython/pyistream.h" | |
1042 | ||
994141e6 | 1043 | |
15afbcd0 RD |
1044 | SWIGSTATICINLINE(unsigned long) |
1045 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1046 | unsigned long max_value) | |
1047 | { | |
1048 | if (!PyErr_Occurred()) { | |
1049 | if (value > max_value) { | |
1050 | PyObject *err = | |
1051 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1052 | value, type, max_value); | |
1053 | PyErr_SetObject(PyExc_OverflowError, err); | |
1054 | Py_DECREF(err); | |
1055 | } | |
1056 | } | |
1057 | return value; | |
1058 | } | |
1059 | ||
1060 | ||
1061 | SWIGSTATICINLINE(unsigned long) | |
1062 | SWIG_AsUnsignedLong(PyObject * obj) | |
1063 | { | |
1064 | if (PyLong_Check(obj)) { | |
1065 | return PyLong_AsUnsignedLong(obj); | |
1066 | } else { | |
69223c70 | 1067 | long i = SWIG_AsLong(obj); |
15afbcd0 | 1068 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1069 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
1070 | } |
1071 | return i; | |
1072 | } | |
1073 | } | |
1074 | ||
1075 | ||
1076 | SWIGSTATICINLINE(unsigned char) | |
1077 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 1078 | { |
15afbcd0 RD |
1079 | return swig_numeric_cast(unsigned char, |
1080 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1081 | "unsigned char", UCHAR_MAX)); | |
1082 | } | |
1083 | ||
1084 | ||
1085 | SWIGSTATICINLINE(int) | |
1086 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1087 | { | |
1088 | SWIG_AsUnsignedChar(obj); | |
1089 | if (PyErr_Occurred()) { | |
1090 | PyErr_Clear(); | |
1091 | return 0; | |
1092 | } else { | |
1093 | return 1; | |
1094 | } | |
994141e6 RD |
1095 | } |
1096 | ||
d14a1e28 RD |
1097 | wxImage *new_wxImage(int width,int height,bool clear){ |
1098 | if (width > 0 && height > 0) | |
1099 | return new wxImage(width, height, clear); | |
1100 | else | |
1101 | return new wxImage; | |
1102 | } | |
1103 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
1104 | return new wxImage(bitmap.ConvertToImage()); | |
1105 | } | |
1106 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1107 | // Copy the source data so the wxImage can clean it up later | |
1108 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1109 | if (copy == NULL) { | |
1110 | PyErr_NoMemory(); | |
1111 | return NULL; | |
1112 | } | |
1113 | memcpy(copy, data, width*height*3); | |
e811c8ce | 1114 | return new wxImage(width, height, copy, False); |
d14a1e28 RD |
1115 | } |
1116 | PyObject *wxImage_GetData(wxImage *self){ | |
1117 | unsigned char* data = self->GetData(); | |
1118 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1119 | PyObject* rv; | |
1120 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1121 | return rv; | |
1122 | } | |
1123 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1124 | unsigned char* dataPtr; | |
1125 | ||
1126 | if (! PyString_Check(data)) { | |
1127 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1128 | return /* NULL */ ; | |
1129 | } | |
1130 | ||
1131 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1132 | dataPtr = (unsigned char*) malloc(len); | |
1133 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1134 | self->SetData(dataPtr); | |
1135 | // wxImage takes ownership of dataPtr... | |
1136 | } | |
1137 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1138 | unsigned char* data = self->GetData(); | |
1139 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1140 | PyObject* rv; | |
1141 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1142 | return rv; | |
1143 | } | |
1144 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1145 | unsigned char* buffer; | |
1146 | int size; | |
1147 | ||
4f89f6a3 | 1148 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1149 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1150 | goto done; | |
1151 | ||
1152 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1153 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1154 | goto done; | |
1155 | } | |
1156 | self->SetData(buffer); | |
1157 | done: | |
4f89f6a3 | 1158 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1159 | } |
1160 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1161 | unsigned char* data = self->GetAlpha(); | |
1162 | if (! data) { | |
1163 | RETURN_NONE(); | |
1164 | } else { | |
1165 | int len = self->GetWidth() * self->GetHeight(); | |
1166 | PyObject* rv; | |
1167 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1168 | return rv; | |
1169 | } | |
1170 | } | |
1171 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1172 | unsigned char* dataPtr; | |
1173 | ||
1174 | if (! PyString_Check(data)) { | |
1175 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1176 | return /* NULL */ ; | |
1177 | } | |
1178 | ||
1179 | size_t len = self->GetWidth() * self->GetHeight(); | |
1180 | dataPtr = (unsigned char*) malloc(len); | |
1181 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1182 | self->SetAlpha(dataPtr); | |
1183 | // wxImage takes ownership of dataPtr... | |
1184 | } | |
1185 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1186 | unsigned char* data = self->GetAlpha(); | |
1187 | int len = self->GetWidth() * self->GetHeight(); | |
1188 | PyObject* rv; | |
1189 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1190 | return rv; | |
1191 | } | |
1192 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1193 | unsigned char* buffer; | |
1194 | int size; | |
1195 | ||
4f89f6a3 | 1196 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1197 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1198 | goto done; | |
1199 | ||
1200 | if (size != self->GetWidth() * self->GetHeight()) { | |
1201 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1202 | goto done; | |
1203 | } | |
1204 | self->SetAlpha(buffer); | |
1205 | done: | |
4f89f6a3 | 1206 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1207 | } |
15afbcd0 RD |
1208 | |
1209 | SWIGSTATICINLINE(int) | |
1210 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1211 | { | |
1212 | SWIG_AsUnsignedLong(obj); | |
1213 | if (PyErr_Occurred()) { | |
1214 | PyErr_Clear(); | |
1215 | return 0; | |
1216 | } else { | |
1217 | return 1; | |
1218 | } | |
1219 | } | |
1220 | ||
d14a1e28 RD |
1221 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1222 | wxBitmap bitmap(*self); | |
1223 | return bitmap; | |
1224 | } | |
1225 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1226 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1227 | wxBitmap bitmap( mono, 1 ); | |
1228 | return bitmap; | |
1229 | } | |
1230 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1231 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1232 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1233 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1234 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1235 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1236 | if (PyCallable_Check(func)) { | |
1237 | self->Connect(id, lastId, eventType, | |
1238 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1239 | new wxPyCallback(func)); | |
1240 | } | |
1241 | else if (func == Py_None) { | |
1242 | self->Disconnect(id, lastId, eventType, | |
1243 | (wxObjectEventFunction) | |
1244 | &wxPyCallback::EventThunker); | |
1245 | } | |
1246 | else { | |
1247 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
1248 | } | |
1249 | } | |
1250 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1251 | return self->Disconnect(id, lastId, eventType, | |
1252 | (wxObjectEventFunction) | |
1253 | &wxPyCallback::EventThunker); | |
1254 | } | |
1255 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1256 | if (_self && _self != Py_None) { | |
1257 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1258 | } | |
1259 | else { | |
1260 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1261 | if (data) { | |
1262 | self->SetClientObject(NULL); // This will delete it too | |
1263 | } | |
1264 | } | |
1265 | } | |
1266 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
3b7224dc RD |
1267 | #if wxUSE_UNICODE |
1268 | return self->m_uniChar; | |
1269 | #else | |
d14a1e28 | 1270 | return 0; |
3b7224dc | 1271 | #endif |
d14a1e28 | 1272 | } |
994141e6 | 1273 | |
15afbcd0 RD |
1274 | #if UINT_MAX < LONG_MAX |
1275 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1276 | #else | |
1277 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1278 | #endif | |
994141e6 RD |
1279 | |
1280 | ||
15afbcd0 RD |
1281 | #if UINT_MAX != ULONG_MAX |
1282 | SWIGSTATICINLINE(unsigned int) | |
1283 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 1284 | { |
15afbcd0 RD |
1285 | return swig_numeric_cast(unsigned int, |
1286 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1287 | "unsigned int", UINT_MAX)); | |
1288 | } | |
1289 | #else | |
1290 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1291 | #endif | |
1292 | ||
1293 | ||
1294 | SWIGSTATICINLINE(int) | |
1295 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1296 | { | |
1297 | SWIG_AsUnsignedInt(obj); | |
1298 | if (PyErr_Occurred()) { | |
1299 | PyErr_Clear(); | |
1300 | return 0; | |
1301 | } else { | |
1302 | return 1; | |
1303 | } | |
994141e6 RD |
1304 | } |
1305 | ||
d14a1e28 RD |
1306 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1307 | self->m_size = size; | |
1308 | } | |
1309 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1310 | self->m_pos = pos; | |
1311 | } | |
1312 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1313 | int count = self->GetNumberOfFiles(); | |
1314 | wxString* files = self->GetFiles(); | |
1315 | PyObject* list = PyList_New(count); | |
1316 | ||
1317 | if (!list) { | |
1318 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1319 | return NULL; | |
1320 | } | |
1321 | ||
1322 | for (int i=0; i<count; i++) { | |
1fc9204a | 1323 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1324 | } |
1325 | return list; | |
1326 | } | |
1327 | ||
1328 | ||
1329 | wxPyApp *new_wxPyApp(){ | |
1330 | wxPythonApp = new wxPyApp(); | |
1331 | return wxPythonApp; | |
1332 | } | |
39f61e25 | 1333 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1334 | |
1335 | void wxApp_CleanUp() { | |
1336 | __wxPyCleanup(); | |
1337 | } | |
1338 | ||
1339 | ||
1340 | wxPyApp* wxGetApp() { | |
1341 | return (wxPyApp*)wxTheApp; | |
1342 | } | |
1343 | ||
1344 | ||
1345 | ||
e811c8ce | 1346 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
74a57fcd RD |
1347 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
1348 | void delete_wxVisualAttributes(wxVisualAttributes *self){} | |
d14a1e28 RD |
1349 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1350 | wxWindowList& list = self->GetChildren(); | |
1351 | return wxPy_ConvertList(&list); | |
1352 | } | |
1353 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
74a57fcd RD |
1354 | #if wxUSE_HOTKEY |
1355 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1356 | #else | |
e811c8ce | 1357 | return False; |
74a57fcd | 1358 | #endif |
d14a1e28 RD |
1359 | } |
1360 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1361 | ||
1362 | ||
1363 | ||
e811c8ce | 1364 | return False; |
d14a1e28 RD |
1365 | |
1366 | } | |
1367 | long wxWindow_GetHandle(wxWindow *self){ | |
1368 | return wxPyGetWinHandle(self); | |
1369 | } | |
1370 | ||
1371 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1372 | return wxWindow::FindWindowById(id, parent); | |
1373 | } | |
1374 | ||
1375 | wxWindow* wxFindWindowByName( const wxString& name, | |
1376 | const wxWindow *parent = NULL ) { | |
1377 | return wxWindow::FindWindowByName(name, parent); | |
1378 | } | |
1379 | ||
1380 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1381 | const wxWindow *parent = NULL ) { | |
1382 | return wxWindow::FindWindowByLabel(label, parent); | |
1383 | } | |
1384 | ||
1385 | ||
d14a1e28 | 1386 | #ifdef __WXMSW__ |
4276dc52 RD |
1387 | #include <wx/msw/private.h> // to get wxGetWindowId |
1388 | #endif | |
1389 | ||
1390 | ||
1391 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1392 | #ifdef __WXMSW__ | |
1393 | WXHWND hWnd = (WXHWND)_hWnd; | |
1394 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1395 | wxWindow* win = new wxWindow; |
4276dc52 RD |
1396 | parent->AddChild(win); |
1397 | win->SetEventHandler(win); | |
1398 | win->SetHWND(hWnd); | |
1399 | win->SetId(id); | |
1400 | win->SubclassWin(hWnd); | |
1401 | win->AdoptAttributesFromHWND(); | |
1402 | win->SetupColours(); | |
d14a1e28 RD |
1403 | return win; |
1404 | #else | |
39f61e25 | 1405 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1406 | return NULL; |
1407 | #endif | |
1408 | } | |
1409 | ||
1410 | ||
1411 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1412 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1413 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1414 | ||
1415 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1416 | ||
1417 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1418 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1419 | wxMenuItemList& list = self->GetMenuItems(); | |
1420 | return wxPy_ConvertList(&list); | |
1421 | } | |
1422 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1423 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1424 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1425 | if (clientData) { | |
1426 | wxPyClientData* data = new wxPyClientData(clientData); | |
1427 | return self->Append(item, data); | |
1428 | } else | |
1429 | return self->Append(item); | |
1430 | } | |
1431 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1432 | if (clientData) { | |
1433 | wxPyClientData* data = new wxPyClientData(clientData); | |
1434 | return self->Insert(item, pos, data); | |
1435 | } else | |
1436 | return self->Insert(item, pos); | |
1437 | } | |
1438 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1439 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1440 | if (data) { | |
1441 | Py_INCREF(data->m_obj); | |
1442 | return data->m_obj; | |
1443 | } else { | |
1444 | Py_INCREF(Py_None); | |
1445 | return Py_None; | |
1446 | } | |
1447 | } | |
1448 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1449 | wxPyClientData* data = new wxPyClientData(clientData); | |
1450 | self->SetClientObject(n, data); | |
1451 | } | |
1452 | ||
1453 | ||
994141e6 | 1454 | |
15afbcd0 RD |
1455 | #include <float.h> |
1456 | ||
994141e6 | 1457 | SWIGSTATIC(float) |
15afbcd0 RD |
1458 | SWIG_FloatCast(double value) |
1459 | { | |
1460 | float f = 0; | |
1461 | if (!PyErr_Occurred()) { | |
1462 | if (value < FLT_MIN) { | |
1463 | PyObject *err = | |
1464 | PyString_FromFormat("value %g is less than float minimum %g", | |
1465 | value, FLT_MIN); | |
1466 | PyErr_SetObject(PyExc_OverflowError, err); | |
1467 | Py_DECREF(err); | |
1468 | } else if (value > FLT_MAX) { | |
1469 | PyObject *err = | |
1470 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1471 | value, FLT_MAX); | |
1472 | PyErr_SetObject(PyExc_OverflowError, err); | |
1473 | Py_DECREF(err); | |
1474 | } else { | |
1475 | f = swig_numeric_cast(float, value); | |
1476 | } | |
1477 | } | |
1478 | return f; | |
1479 | } | |
1480 | ||
1481 | ||
1482 | SWIGSTATICINLINE(float) | |
1483 | SWIG_AsFloat(PyObject *obj) | |
994141e6 | 1484 | { |
15afbcd0 RD |
1485 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1486 | } | |
1487 | ||
1488 | ||
1489 | SWIGSTATICINLINE(int) | |
1490 | SWIG_CheckFloat(PyObject* obj) | |
1491 | { | |
1492 | SWIG_AsFloat(obj); | |
1493 | if (PyErr_Occurred()) { | |
1494 | PyErr_Clear(); | |
1495 | return 0; | |
1496 | } else { | |
1497 | return 1; | |
1498 | } | |
994141e6 RD |
1499 | } |
1500 | ||
d14a1e28 RD |
1501 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1502 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1503 | if (data) { | |
1504 | Py_INCREF(data->m_obj); | |
1505 | return data->m_obj; | |
1506 | } else { | |
1507 | Py_INCREF(Py_None); | |
1508 | return Py_None; | |
1509 | } | |
1510 | } | |
1511 | ||
1512 | // Figure out the type of the sizer item | |
1513 | ||
1514 | struct wxPySizerItemInfo { | |
1515 | wxPySizerItemInfo() | |
e811c8ce RD |
1516 | : window(NULL), sizer(NULL), gotSize(False), |
1517 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1518 | {} |
1519 | ||
1520 | wxWindow* window; | |
1521 | wxSizer* sizer; | |
1522 | bool gotSize; | |
1523 | wxSize size; | |
1524 | bool gotPos; | |
1525 | int pos; | |
1526 | }; | |
1527 | ||
1528 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1529 | ||
1530 | wxPySizerItemInfo info; | |
1531 | wxSize size; | |
1532 | wxSize* sizePtr = &size; | |
1533 | ||
1534 | // Find out what the type of the item is | |
1535 | // try wxWindow | |
1536 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1537 | PyErr_Clear(); | |
1538 | info.window = NULL; | |
1539 | ||
1540 | // try wxSizer | |
1541 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1542 | PyErr_Clear(); | |
1543 | info.sizer = NULL; | |
1544 | ||
1545 | // try wxSize or (w,h) | |
1546 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1547 | info.size = *sizePtr; | |
e811c8ce | 1548 | info.gotSize = True; |
d14a1e28 RD |
1549 | } |
1550 | ||
1551 | // or a single int | |
1552 | if (checkIdx && PyInt_Check(item)) { | |
1553 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1554 | info.gotPos = True; |
d14a1e28 RD |
1555 | } |
1556 | } | |
1557 | } | |
1558 | ||
1559 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1560 | // no expected type, figure out what kind of error message to generate | |
1561 | if ( !checkSize && !checkIdx ) | |
1562 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1563 | else if ( checkSize && !checkIdx ) | |
1564 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1565 | else if ( !checkSize && checkIdx) | |
1566 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1567 | else | |
1568 | // can this one happen? | |
1569 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1570 | } | |
1571 | ||
1572 | return info; | |
1573 | } | |
1574 | ||
1575 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1576 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1577 | } | |
1578 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1579 | ||
1580 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1581 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1582 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1583 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1584 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1585 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1586 | |
1587 | // Now call the real Add method if a valid item type was found | |
1588 | if ( info.window ) | |
1589 | self->Add(info.window, proportion, flag, border, data); | |
1590 | else if ( info.sizer ) | |
1591 | self->Add(info.sizer, proportion, flag, border, data); | |
1592 | else if (info.gotSize) | |
1593 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1594 | proportion, flag, border, data); | |
1595 | } | |
1596 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1597 | ||
1598 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1599 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1600 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1601 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1602 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1603 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1604 | |
1605 | // Now call the real Insert method if a valid item type was found | |
1606 | if ( info.window ) | |
1607 | self->Insert(before, info.window, proportion, flag, border, data); | |
1608 | else if ( info.sizer ) | |
1609 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1610 | else if (info.gotSize) | |
1611 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1612 | proportion, flag, border, data); | |
1613 | } | |
1614 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1615 | ||
1616 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1617 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1618 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1619 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1620 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1621 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1622 | |
1623 | // Now call the real Prepend method if a valid item type was found | |
1624 | if ( info.window ) | |
1625 | self->Prepend(info.window, proportion, flag, border, data); | |
1626 | else if ( info.sizer ) | |
1627 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1628 | else if (info.gotSize) | |
1629 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1630 | proportion, flag, border, data); | |
1631 | } | |
1632 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1633 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1634 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1635 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1636 | if ( info.window ) |
1637 | return self->Remove(info.window); | |
1638 | else if ( info.sizer ) | |
1639 | return self->Remove(info.sizer); | |
1640 | else if ( info.gotPos ) | |
1641 | return self->Remove(info.pos); | |
1642 | else | |
e811c8ce | 1643 | return False; |
d14a1e28 | 1644 | } |
e811c8ce | 1645 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1646 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1647 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1648 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1649 | if ( info.window ) |
1650 | self->SetItemMinSize(info.window, size); | |
1651 | else if ( info.sizer ) | |
1652 | self->SetItemMinSize(info.sizer, size); | |
1653 | else if ( info.gotPos ) | |
1654 | self->SetItemMinSize(info.pos, size); | |
1655 | } | |
1656 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1657 | wxSizerItemList& list = self->GetChildren(); | |
1658 | return wxPy_ConvertList(&list); | |
1659 | } | |
1660 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
e811c8ce | 1661 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1662 | if ( info.window ) |
1663 | self->Show(info.window, show); | |
1664 | else if ( info.sizer ) | |
1665 | self->Show(info.sizer, show); | |
1666 | } | |
1667 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
e811c8ce | 1668 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1669 | if ( info.window ) |
1670 | self->Hide(info.window); | |
1671 | else if ( info.sizer ) | |
1672 | self->Hide(info.sizer); | |
1673 | } | |
1674 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
e811c8ce | 1675 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1676 | if ( info.window ) |
1677 | return self->IsShown(info.window); | |
1678 | else if ( info.sizer ) | |
1679 | return self->IsShown(info.sizer); | |
1680 | else | |
e811c8ce | 1681 | return False; |
d14a1e28 RD |
1682 | } |
1683 | ||
1684 | // See pyclasses.h | |
1685 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1686 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1687 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1688 | ||
1689 | ||
1690 | ||
1691 | ||
1692 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1693 | { | |
4f89f6a3 RD |
1694 | if (source == Py_None) { |
1695 | **obj = wxGBPosition(-1,-1); | |
1696 | return True; | |
1697 | } | |
d14a1e28 RD |
1698 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1699 | } | |
1700 | ||
1701 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1702 | { | |
4f89f6a3 RD |
1703 | if (source == Py_None) { |
1704 | **obj = wxGBSpan(-1,-1); | |
1705 | return True; | |
1706 | } | |
d14a1e28 RD |
1707 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1708 | } | |
1709 | ||
1710 | ||
e811c8ce RD |
1711 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1712 | self->SetRow(row); | |
1713 | self->SetCol(col); | |
1714 | } | |
1715 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1716 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1717 | PyObject* tup = PyTuple_New(2); |
1718 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1719 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1720 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1721 | return tup; |
1722 | } | |
e811c8ce RD |
1723 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1724 | self->SetRowspan(rowspan); | |
1725 | self->SetColspan(colspan); | |
1726 | } | |
1727 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1728 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1729 | PyObject* tup = PyTuple_New(2); |
1730 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1731 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1732 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1733 | return tup; |
1734 | } | |
1735 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1736 | ||
1737 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1738 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1739 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1740 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1741 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1742 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1743 | |
1744 | // Now call the real Add method if a valid item type was found | |
1745 | if ( info.window ) | |
1746 | return self->Add(info.window, pos, span, flag, border, data); | |
1747 | else if ( info.sizer ) | |
1748 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1749 | else if (info.gotSize) | |
1750 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1751 | pos, span, flag, border, data); | |
e811c8ce | 1752 | return False; |
d14a1e28 RD |
1753 | } |
1754 | ||
1755 | ||
1756 | #ifdef __cplusplus | |
1757 | extern "C" { | |
1758 | #endif | |
196addbf RD |
1759 | static int _wrap_EmptyString_set(PyObject *_val) { |
1760 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1761 | return 1; | |
1762 | } | |
1763 | ||
1764 | ||
1765 | static PyObject *_wrap_EmptyString_get() { | |
1766 | PyObject *pyobj; | |
1767 | ||
1768 | { | |
1769 | #if wxUSE_UNICODE | |
1770 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1771 | #else | |
1772 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1773 | #endif | |
1774 | } | |
1775 | return pyobj; | |
1776 | } | |
1777 | ||
1778 | ||
d14a1e28 RD |
1779 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1780 | PyObject *resultobj; | |
1781 | wxObject *arg1 = (wxObject *) 0 ; | |
1782 | wxString result; | |
1783 | PyObject * obj0 = 0 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "self", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1791 | { |
1792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1793 | result = wxObject_GetClassName(arg1); | |
1794 | ||
1795 | wxPyEndAllowThreads(__tstate); | |
1796 | if (PyErr_Occurred()) SWIG_fail; | |
1797 | } | |
1798 | { | |
1799 | #if wxUSE_UNICODE | |
1800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1801 | #else | |
1802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1803 | #endif | |
1804 | } | |
1805 | return resultobj; | |
1806 | fail: | |
1807 | return NULL; | |
1808 | } | |
1809 | ||
1810 | ||
1811 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject *resultobj; | |
1813 | wxObject *arg1 = (wxObject *) 0 ; | |
1814 | PyObject * obj0 = 0 ; | |
1815 | char *kwnames[] = { | |
1816 | (char *) "self", NULL | |
1817 | }; | |
1818 | ||
1819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1822 | { |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | wxObject_Destroy(arg1); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | Py_INCREF(Py_None); resultobj = Py_None; | |
1830 | return resultobj; | |
1831 | fail: | |
1832 | return NULL; | |
1833 | } | |
1834 | ||
1835 | ||
1836 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1837 | PyObject *obj; | |
1838 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1839 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1840 | Py_INCREF(obj); | |
1841 | return Py_BuildValue((char *)""); | |
1842 | } | |
1843 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject *resultobj; | |
1845 | wxSize *arg1 = (wxSize *) 0 ; | |
1846 | int arg2 ; | |
1847 | PyObject * obj0 = 0 ; | |
994141e6 | 1848 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1849 | char *kwnames[] = { |
1850 | (char *) "self",(char *) "x", NULL | |
1851 | }; | |
1852 | ||
994141e6 | 1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1856 | arg2 = (int) SWIG_AsInt(obj1); | |
1857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1858 | if (arg1) (arg1)->x = arg2; |
1859 | ||
1860 | Py_INCREF(Py_None); resultobj = Py_None; | |
1861 | return resultobj; | |
1862 | fail: | |
1863 | return NULL; | |
1864 | } | |
1865 | ||
1866 | ||
1867 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1868 | PyObject *resultobj; | |
1869 | wxSize *arg1 = (wxSize *) 0 ; | |
1870 | int result; | |
1871 | PyObject * obj0 = 0 ; | |
1872 | char *kwnames[] = { | |
1873 | (char *) "self", NULL | |
1874 | }; | |
1875 | ||
1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1879 | result = (int) ((arg1)->x); |
1880 | ||
15afbcd0 | 1881 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1882 | return resultobj; |
1883 | fail: | |
1884 | return NULL; | |
1885 | } | |
1886 | ||
1887 | ||
1888 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1889 | PyObject *resultobj; | |
1890 | wxSize *arg1 = (wxSize *) 0 ; | |
1891 | int arg2 ; | |
1892 | PyObject * obj0 = 0 ; | |
994141e6 | 1893 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1894 | char *kwnames[] = { |
1895 | (char *) "self",(char *) "y", NULL | |
1896 | }; | |
1897 | ||
994141e6 | 1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1901 | arg2 = (int) SWIG_AsInt(obj1); | |
1902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1903 | if (arg1) (arg1)->y = arg2; |
1904 | ||
1905 | Py_INCREF(Py_None); resultobj = Py_None; | |
1906 | return resultobj; | |
1907 | fail: | |
1908 | return NULL; | |
1909 | } | |
1910 | ||
1911 | ||
1912 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1913 | PyObject *resultobj; | |
1914 | wxSize *arg1 = (wxSize *) 0 ; | |
1915 | int result; | |
1916 | PyObject * obj0 = 0 ; | |
1917 | char *kwnames[] = { | |
1918 | (char *) "self", NULL | |
1919 | }; | |
1920 | ||
1921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1924 | result = (int) ((arg1)->y); |
1925 | ||
15afbcd0 | 1926 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1927 | return resultobj; |
1928 | fail: | |
1929 | return NULL; | |
1930 | } | |
1931 | ||
1932 | ||
1933 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1934 | PyObject *resultobj; | |
1935 | int arg1 = (int) 0 ; | |
1936 | int arg2 = (int) 0 ; | |
1937 | wxSize *result; | |
994141e6 RD |
1938 | PyObject * obj0 = 0 ; |
1939 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1940 | char *kwnames[] = { |
1941 | (char *) "w",(char *) "h", NULL | |
1942 | }; | |
1943 | ||
994141e6 RD |
1944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1945 | if (obj0) { | |
15afbcd0 RD |
1946 | arg1 = (int) SWIG_AsInt(obj0); |
1947 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
1948 | } |
1949 | if (obj1) { | |
15afbcd0 RD |
1950 | arg2 = (int) SWIG_AsInt(obj1); |
1951 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1952 | } |
d14a1e28 RD |
1953 | { |
1954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1955 | result = (wxSize *)new wxSize(arg1,arg2); | |
1956 | ||
1957 | wxPyEndAllowThreads(__tstate); | |
1958 | if (PyErr_Occurred()) SWIG_fail; | |
1959 | } | |
15afbcd0 | 1960 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1961 | return resultobj; |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | wxSize *arg1 = (wxSize *) 0 ; | |
1970 | PyObject * obj0 = 0 ; | |
1971 | char *kwnames[] = { | |
1972 | (char *) "self", NULL | |
1973 | }; | |
1974 | ||
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1978 | { |
1979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1980 | delete arg1; | |
1981 | ||
1982 | wxPyEndAllowThreads(__tstate); | |
1983 | if (PyErr_Occurred()) SWIG_fail; | |
1984 | } | |
1985 | Py_INCREF(Py_None); resultobj = Py_None; | |
1986 | return resultobj; | |
1987 | fail: | |
1988 | return NULL; | |
1989 | } | |
1990 | ||
1991 | ||
1992 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1993 | PyObject *resultobj; | |
1994 | wxSize *arg1 = (wxSize *) 0 ; | |
1995 | wxSize *arg2 = 0 ; | |
1996 | bool result; | |
1997 | wxSize temp2 ; | |
1998 | PyObject * obj0 = 0 ; | |
1999 | PyObject * obj1 = 0 ; | |
2000 | char *kwnames[] = { | |
2001 | (char *) "self",(char *) "sz", NULL | |
2002 | }; | |
2003 | ||
2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2007 | { |
2008 | arg2 = &temp2; | |
2009 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2010 | } | |
2011 | { | |
2012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2013 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2014 | |
2015 | wxPyEndAllowThreads(__tstate); | |
2016 | if (PyErr_Occurred()) SWIG_fail; | |
2017 | } | |
4f89f6a3 RD |
2018 | { |
2019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2020 | } | |
d14a1e28 RD |
2021 | return resultobj; |
2022 | fail: | |
2023 | return NULL; | |
2024 | } | |
2025 | ||
2026 | ||
2027 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2028 | PyObject *resultobj; | |
2029 | wxSize *arg1 = (wxSize *) 0 ; | |
2030 | wxSize *arg2 = 0 ; | |
2031 | bool result; | |
2032 | wxSize temp2 ; | |
2033 | PyObject * obj0 = 0 ; | |
2034 | PyObject * obj1 = 0 ; | |
2035 | char *kwnames[] = { | |
2036 | (char *) "self",(char *) "sz", NULL | |
2037 | }; | |
2038 | ||
2039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2042 | { |
2043 | arg2 = &temp2; | |
2044 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2045 | } | |
2046 | { | |
2047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2048 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2049 | |
2050 | wxPyEndAllowThreads(__tstate); | |
2051 | if (PyErr_Occurred()) SWIG_fail; | |
2052 | } | |
4f89f6a3 RD |
2053 | { |
2054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2055 | } | |
d14a1e28 RD |
2056 | return resultobj; |
2057 | fail: | |
2058 | return NULL; | |
2059 | } | |
2060 | ||
2061 | ||
2062 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2063 | PyObject *resultobj; | |
2064 | wxSize *arg1 = (wxSize *) 0 ; | |
2065 | wxSize *arg2 = 0 ; | |
2066 | wxSize result; | |
2067 | wxSize temp2 ; | |
2068 | PyObject * obj0 = 0 ; | |
2069 | PyObject * obj1 = 0 ; | |
2070 | char *kwnames[] = { | |
2071 | (char *) "self",(char *) "sz", NULL | |
2072 | }; | |
2073 | ||
2074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2077 | { |
2078 | arg2 = &temp2; | |
2079 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2080 | } | |
2081 | { | |
2082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2083 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2084 | ||
2085 | wxPyEndAllowThreads(__tstate); | |
2086 | if (PyErr_Occurred()) SWIG_fail; | |
2087 | } | |
2088 | { | |
2089 | wxSize * resultptr; | |
2090 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2092 | } |
2093 | return resultobj; | |
2094 | fail: | |
2095 | return NULL; | |
2096 | } | |
2097 | ||
2098 | ||
2099 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2100 | PyObject *resultobj; | |
2101 | wxSize *arg1 = (wxSize *) 0 ; | |
2102 | wxSize *arg2 = 0 ; | |
2103 | wxSize result; | |
2104 | wxSize temp2 ; | |
2105 | PyObject * obj0 = 0 ; | |
2106 | PyObject * obj1 = 0 ; | |
2107 | char *kwnames[] = { | |
2108 | (char *) "self",(char *) "sz", NULL | |
2109 | }; | |
2110 | ||
2111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2114 | { |
2115 | arg2 = &temp2; | |
2116 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2117 | } | |
2118 | { | |
2119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2120 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2121 | ||
2122 | wxPyEndAllowThreads(__tstate); | |
2123 | if (PyErr_Occurred()) SWIG_fail; | |
2124 | } | |
2125 | { | |
2126 | wxSize * resultptr; | |
2127 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2129 | } |
2130 | return resultobj; | |
2131 | fail: | |
2132 | return NULL; | |
2133 | } | |
2134 | ||
2135 | ||
2136 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2137 | PyObject *resultobj; | |
2138 | wxSize *arg1 = (wxSize *) 0 ; | |
2139 | wxSize *arg2 = 0 ; | |
2140 | wxSize temp2 ; | |
2141 | PyObject * obj0 = 0 ; | |
2142 | PyObject * obj1 = 0 ; | |
2143 | char *kwnames[] = { | |
2144 | (char *) "self",(char *) "sz", NULL | |
2145 | }; | |
2146 | ||
2147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2150 | { |
2151 | arg2 = &temp2; | |
2152 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2153 | } | |
2154 | { | |
2155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2156 | (arg1)->IncTo((wxSize const &)*arg2); | |
2157 | ||
2158 | wxPyEndAllowThreads(__tstate); | |
2159 | if (PyErr_Occurred()) SWIG_fail; | |
2160 | } | |
2161 | Py_INCREF(Py_None); resultobj = Py_None; | |
2162 | return resultobj; | |
2163 | fail: | |
2164 | return NULL; | |
2165 | } | |
2166 | ||
2167 | ||
2168 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2169 | PyObject *resultobj; | |
2170 | wxSize *arg1 = (wxSize *) 0 ; | |
2171 | wxSize *arg2 = 0 ; | |
2172 | wxSize temp2 ; | |
2173 | PyObject * obj0 = 0 ; | |
2174 | PyObject * obj1 = 0 ; | |
2175 | char *kwnames[] = { | |
2176 | (char *) "self",(char *) "sz", NULL | |
2177 | }; | |
2178 | ||
2179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2182 | { |
2183 | arg2 = &temp2; | |
2184 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2185 | } | |
2186 | { | |
2187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2188 | (arg1)->DecTo((wxSize const &)*arg2); | |
2189 | ||
2190 | wxPyEndAllowThreads(__tstate); | |
2191 | if (PyErr_Occurred()) SWIG_fail; | |
2192 | } | |
2193 | Py_INCREF(Py_None); resultobj = Py_None; | |
2194 | return resultobj; | |
2195 | fail: | |
2196 | return NULL; | |
2197 | } | |
2198 | ||
2199 | ||
2200 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2201 | PyObject *resultobj; | |
2202 | wxSize *arg1 = (wxSize *) 0 ; | |
2203 | int arg2 ; | |
2204 | int arg3 ; | |
2205 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2206 | PyObject * obj1 = 0 ; |
2207 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2208 | char *kwnames[] = { |
e811c8ce | 2209 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2210 | }; |
2211 | ||
994141e6 | 2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2215 | arg2 = (int) SWIG_AsInt(obj1); | |
2216 | if (PyErr_Occurred()) SWIG_fail; | |
2217 | arg3 = (int) SWIG_AsInt(obj2); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2219 | { |
2220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2221 | (arg1)->Set(arg2,arg3); | |
2222 | ||
2223 | wxPyEndAllowThreads(__tstate); | |
2224 | if (PyErr_Occurred()) SWIG_fail; | |
2225 | } | |
2226 | Py_INCREF(Py_None); resultobj = Py_None; | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
2233 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2234 | PyObject *resultobj; | |
2235 | wxSize *arg1 = (wxSize *) 0 ; | |
2236 | int arg2 ; | |
2237 | PyObject * obj0 = 0 ; | |
994141e6 | 2238 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2239 | char *kwnames[] = { |
2240 | (char *) "self",(char *) "w", NULL | |
2241 | }; | |
2242 | ||
994141e6 | 2243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2246 | arg2 = (int) SWIG_AsInt(obj1); | |
2247 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2248 | { |
2249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2250 | (arg1)->SetWidth(arg2); | |
2251 | ||
2252 | wxPyEndAllowThreads(__tstate); | |
2253 | if (PyErr_Occurred()) SWIG_fail; | |
2254 | } | |
2255 | Py_INCREF(Py_None); resultobj = Py_None; | |
2256 | return resultobj; | |
2257 | fail: | |
2258 | return NULL; | |
2259 | } | |
2260 | ||
2261 | ||
2262 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2263 | PyObject *resultobj; | |
2264 | wxSize *arg1 = (wxSize *) 0 ; | |
2265 | int arg2 ; | |
2266 | PyObject * obj0 = 0 ; | |
994141e6 | 2267 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2268 | char *kwnames[] = { |
2269 | (char *) "self",(char *) "h", NULL | |
2270 | }; | |
2271 | ||
994141e6 | 2272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2275 | arg2 = (int) SWIG_AsInt(obj1); | |
2276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2277 | { |
2278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2279 | (arg1)->SetHeight(arg2); | |
2280 | ||
2281 | wxPyEndAllowThreads(__tstate); | |
2282 | if (PyErr_Occurred()) SWIG_fail; | |
2283 | } | |
2284 | Py_INCREF(Py_None); resultobj = Py_None; | |
2285 | return resultobj; | |
2286 | fail: | |
2287 | return NULL; | |
2288 | } | |
2289 | ||
2290 | ||
2291 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2292 | PyObject *resultobj; | |
2293 | wxSize *arg1 = (wxSize *) 0 ; | |
2294 | int result; | |
2295 | PyObject * obj0 = 0 ; | |
2296 | char *kwnames[] = { | |
2297 | (char *) "self", NULL | |
2298 | }; | |
2299 | ||
2300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2303 | { |
2304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2305 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2306 | ||
2307 | wxPyEndAllowThreads(__tstate); | |
2308 | if (PyErr_Occurred()) SWIG_fail; | |
2309 | } | |
15afbcd0 | 2310 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2311 | return resultobj; |
2312 | fail: | |
2313 | return NULL; | |
2314 | } | |
2315 | ||
2316 | ||
2317 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2318 | PyObject *resultobj; | |
2319 | wxSize *arg1 = (wxSize *) 0 ; | |
2320 | int result; | |
2321 | PyObject * obj0 = 0 ; | |
2322 | char *kwnames[] = { | |
2323 | (char *) "self", NULL | |
2324 | }; | |
2325 | ||
2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2329 | { |
2330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2331 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2332 | ||
2333 | wxPyEndAllowThreads(__tstate); | |
2334 | if (PyErr_Occurred()) SWIG_fail; | |
2335 | } | |
15afbcd0 | 2336 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2337 | return resultobj; |
2338 | fail: | |
2339 | return NULL; | |
2340 | } | |
2341 | ||
2342 | ||
74a57fcd RD |
2343 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { |
2344 | PyObject *resultobj; | |
2345 | wxSize *arg1 = (wxSize *) 0 ; | |
2346 | bool result; | |
2347 | PyObject * obj0 = 0 ; | |
2348 | char *kwnames[] = { | |
2349 | (char *) "self", NULL | |
2350 | }; | |
2351 | ||
2352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) SWIG_fail; | |
2361 | } | |
2362 | { | |
2363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2364 | } | |
2365 | return resultobj; | |
2366 | fail: | |
2367 | return NULL; | |
2368 | } | |
2369 | ||
2370 | ||
2371 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2372 | PyObject *resultobj; | |
2373 | wxSize *arg1 = (wxSize *) 0 ; | |
2374 | wxSize *arg2 = 0 ; | |
2375 | wxSize temp2 ; | |
2376 | PyObject * obj0 = 0 ; | |
2377 | PyObject * obj1 = 0 ; | |
2378 | char *kwnames[] = { | |
2379 | (char *) "self",(char *) "size", NULL | |
2380 | }; | |
2381 | ||
2382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2385 | { | |
2386 | arg2 = &temp2; | |
2387 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2388 | } | |
2389 | { | |
2390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2391 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2392 | ||
2393 | wxPyEndAllowThreads(__tstate); | |
2394 | if (PyErr_Occurred()) SWIG_fail; | |
2395 | } | |
2396 | Py_INCREF(Py_None); resultobj = Py_None; | |
2397 | return resultobj; | |
2398 | fail: | |
2399 | return NULL; | |
2400 | } | |
2401 | ||
2402 | ||
e811c8ce | 2403 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2404 | PyObject *resultobj; |
2405 | wxSize *arg1 = (wxSize *) 0 ; | |
2406 | PyObject *result; | |
2407 | PyObject * obj0 = 0 ; | |
2408 | char *kwnames[] = { | |
2409 | (char *) "self", NULL | |
2410 | }; | |
2411 | ||
e811c8ce | 2412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2415 | { |
2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2417 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2418 | |
2419 | wxPyEndAllowThreads(__tstate); | |
2420 | if (PyErr_Occurred()) SWIG_fail; | |
2421 | } | |
2422 | resultobj = result; | |
2423 | return resultobj; | |
2424 | fail: | |
2425 | return NULL; | |
2426 | } | |
2427 | ||
2428 | ||
2429 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2430 | PyObject *obj; | |
2431 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2432 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2433 | Py_INCREF(obj); | |
2434 | return Py_BuildValue((char *)""); | |
2435 | } | |
2436 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2437 | PyObject *resultobj; | |
2438 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2439 | double arg2 ; | |
2440 | PyObject * obj0 = 0 ; | |
994141e6 | 2441 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2442 | char *kwnames[] = { |
2443 | (char *) "self",(char *) "x", NULL | |
2444 | }; | |
2445 | ||
994141e6 | 2446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2449 | arg2 = (double) SWIG_AsDouble(obj1); | |
2450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2451 | if (arg1) (arg1)->x = arg2; |
2452 | ||
2453 | Py_INCREF(Py_None); resultobj = Py_None; | |
2454 | return resultobj; | |
2455 | fail: | |
2456 | return NULL; | |
2457 | } | |
2458 | ||
2459 | ||
2460 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2461 | PyObject *resultobj; | |
2462 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2463 | double result; | |
2464 | PyObject * obj0 = 0 ; | |
2465 | char *kwnames[] = { | |
2466 | (char *) "self", NULL | |
2467 | }; | |
2468 | ||
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2472 | result = (double) ((arg1)->x); |
2473 | ||
15afbcd0 | 2474 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2475 | return resultobj; |
2476 | fail: | |
2477 | return NULL; | |
2478 | } | |
2479 | ||
2480 | ||
2481 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2482 | PyObject *resultobj; | |
2483 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2484 | double arg2 ; | |
2485 | PyObject * obj0 = 0 ; | |
994141e6 | 2486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2487 | char *kwnames[] = { |
2488 | (char *) "self",(char *) "y", NULL | |
2489 | }; | |
2490 | ||
994141e6 | 2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2494 | arg2 = (double) SWIG_AsDouble(obj1); | |
2495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2496 | if (arg1) (arg1)->y = arg2; |
2497 | ||
2498 | Py_INCREF(Py_None); resultobj = Py_None; | |
2499 | return resultobj; | |
2500 | fail: | |
2501 | return NULL; | |
2502 | } | |
2503 | ||
2504 | ||
2505 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2506 | PyObject *resultobj; | |
2507 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2508 | double result; | |
2509 | PyObject * obj0 = 0 ; | |
2510 | char *kwnames[] = { | |
2511 | (char *) "self", NULL | |
2512 | }; | |
2513 | ||
2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2517 | result = (double) ((arg1)->y); |
2518 | ||
15afbcd0 | 2519 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2520 | return resultobj; |
2521 | fail: | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | double arg1 = (double) 0.0 ; | |
2529 | double arg2 = (double) 0.0 ; | |
2530 | wxRealPoint *result; | |
994141e6 RD |
2531 | PyObject * obj0 = 0 ; |
2532 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2533 | char *kwnames[] = { |
2534 | (char *) "x",(char *) "y", NULL | |
2535 | }; | |
2536 | ||
994141e6 RD |
2537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2538 | if (obj0) { | |
15afbcd0 RD |
2539 | arg1 = (double) SWIG_AsDouble(obj0); |
2540 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2541 | } |
2542 | if (obj1) { | |
15afbcd0 RD |
2543 | arg2 = (double) SWIG_AsDouble(obj1); |
2544 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2545 | } |
d14a1e28 RD |
2546 | { |
2547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2548 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2549 | ||
2550 | wxPyEndAllowThreads(__tstate); | |
2551 | if (PyErr_Occurred()) SWIG_fail; | |
2552 | } | |
15afbcd0 | 2553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2554 | return resultobj; |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
2560 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject *resultobj; | |
2562 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2563 | PyObject * obj0 = 0 ; | |
2564 | char *kwnames[] = { | |
2565 | (char *) "self", NULL | |
2566 | }; | |
2567 | ||
2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2571 | { |
2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2573 | delete arg1; | |
2574 | ||
2575 | wxPyEndAllowThreads(__tstate); | |
2576 | if (PyErr_Occurred()) SWIG_fail; | |
2577 | } | |
2578 | Py_INCREF(Py_None); resultobj = Py_None; | |
2579 | return resultobj; | |
2580 | fail: | |
2581 | return NULL; | |
2582 | } | |
2583 | ||
2584 | ||
e811c8ce | 2585 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2586 | PyObject *resultobj; |
2587 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2588 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2589 | bool result; |
d14a1e28 RD |
2590 | wxRealPoint temp2 ; |
2591 | PyObject * obj0 = 0 ; | |
2592 | PyObject * obj1 = 0 ; | |
2593 | char *kwnames[] = { | |
2594 | (char *) "self",(char *) "pt", NULL | |
2595 | }; | |
2596 | ||
e811c8ce | 2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2600 | { |
2601 | arg2 = &temp2; | |
2602 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2603 | } | |
2604 | { | |
2605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2606 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2607 | |
2608 | wxPyEndAllowThreads(__tstate); | |
2609 | if (PyErr_Occurred()) SWIG_fail; | |
2610 | } | |
4f89f6a3 RD |
2611 | { |
2612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2613 | } | |
d14a1e28 RD |
2614 | return resultobj; |
2615 | fail: | |
2616 | return NULL; | |
2617 | } | |
2618 | ||
2619 | ||
e811c8ce | 2620 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2621 | PyObject *resultobj; |
2622 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2623 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2624 | bool result; |
d14a1e28 RD |
2625 | wxRealPoint temp2 ; |
2626 | PyObject * obj0 = 0 ; | |
2627 | PyObject * obj1 = 0 ; | |
2628 | char *kwnames[] = { | |
2629 | (char *) "self",(char *) "pt", NULL | |
2630 | }; | |
2631 | ||
e811c8ce | 2632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2635 | { |
2636 | arg2 = &temp2; | |
2637 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2638 | } | |
2639 | { | |
2640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2641 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2642 | |
2643 | wxPyEndAllowThreads(__tstate); | |
2644 | if (PyErr_Occurred()) SWIG_fail; | |
2645 | } | |
4f89f6a3 RD |
2646 | { |
2647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2648 | } | |
d14a1e28 RD |
2649 | return resultobj; |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
e811c8ce | 2655 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2656 | PyObject *resultobj; |
2657 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2658 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2659 | wxRealPoint result; |
d14a1e28 RD |
2660 | wxRealPoint temp2 ; |
2661 | PyObject * obj0 = 0 ; | |
2662 | PyObject * obj1 = 0 ; | |
2663 | char *kwnames[] = { | |
2664 | (char *) "self",(char *) "pt", NULL | |
2665 | }; | |
2666 | ||
e811c8ce | 2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2670 | { |
2671 | arg2 = &temp2; | |
2672 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2673 | } | |
2674 | { | |
2675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2676 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2677 | |
2678 | wxPyEndAllowThreads(__tstate); | |
2679 | if (PyErr_Occurred()) SWIG_fail; | |
2680 | } | |
e811c8ce RD |
2681 | { |
2682 | wxRealPoint * resultptr; | |
2683 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2685 | } |
d14a1e28 RD |
2686 | return resultobj; |
2687 | fail: | |
2688 | return NULL; | |
2689 | } | |
2690 | ||
2691 | ||
e811c8ce | 2692 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2693 | PyObject *resultobj; |
2694 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2695 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2696 | wxRealPoint result; |
d14a1e28 RD |
2697 | wxRealPoint temp2 ; |
2698 | PyObject * obj0 = 0 ; | |
2699 | PyObject * obj1 = 0 ; | |
2700 | char *kwnames[] = { | |
2701 | (char *) "self",(char *) "pt", NULL | |
2702 | }; | |
2703 | ||
e811c8ce | 2704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2707 | { |
2708 | arg2 = &temp2; | |
2709 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2710 | } | |
2711 | { | |
2712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2713 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2714 | |
2715 | wxPyEndAllowThreads(__tstate); | |
2716 | if (PyErr_Occurred()) SWIG_fail; | |
2717 | } | |
e811c8ce RD |
2718 | { |
2719 | wxRealPoint * resultptr; | |
2720 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2722 | } |
d14a1e28 RD |
2723 | return resultobj; |
2724 | fail: | |
2725 | return NULL; | |
2726 | } | |
2727 | ||
2728 | ||
2729 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2730 | PyObject *resultobj; | |
2731 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2732 | double arg2 ; | |
2733 | double arg3 ; | |
2734 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2735 | PyObject * obj1 = 0 ; |
2736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2737 | char *kwnames[] = { |
2738 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2739 | }; | |
2740 | ||
994141e6 | 2741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2744 | arg2 = (double) SWIG_AsDouble(obj1); | |
2745 | if (PyErr_Occurred()) SWIG_fail; | |
2746 | arg3 = (double) SWIG_AsDouble(obj2); | |
2747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2748 | { |
2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2750 | wxRealPoint_Set(arg1,arg2,arg3); | |
2751 | ||
2752 | wxPyEndAllowThreads(__tstate); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | } | |
2755 | Py_INCREF(Py_None); resultobj = Py_None; | |
2756 | return resultobj; | |
2757 | fail: | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
e811c8ce | 2762 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2763 | PyObject *resultobj; |
2764 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2765 | PyObject *result; | |
2766 | PyObject * obj0 = 0 ; | |
2767 | char *kwnames[] = { | |
2768 | (char *) "self", NULL | |
2769 | }; | |
2770 | ||
e811c8ce | 2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2774 | { |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2776 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2777 | |
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | resultobj = result; | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2789 | PyObject *obj; | |
2790 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2791 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2792 | Py_INCREF(obj); | |
2793 | return Py_BuildValue((char *)""); | |
2794 | } | |
2795 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2796 | PyObject *resultobj; | |
2797 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2798 | int arg2 ; | |
2799 | PyObject * obj0 = 0 ; | |
994141e6 | 2800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2801 | char *kwnames[] = { |
2802 | (char *) "self",(char *) "x", NULL | |
2803 | }; | |
2804 | ||
994141e6 | 2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2808 | arg2 = (int) SWIG_AsInt(obj1); | |
2809 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2810 | if (arg1) (arg1)->x = arg2; |
2811 | ||
2812 | Py_INCREF(Py_None); resultobj = Py_None; | |
2813 | return resultobj; | |
2814 | fail: | |
2815 | return NULL; | |
2816 | } | |
2817 | ||
2818 | ||
2819 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2820 | PyObject *resultobj; | |
2821 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2822 | int result; | |
2823 | PyObject * obj0 = 0 ; | |
2824 | char *kwnames[] = { | |
2825 | (char *) "self", NULL | |
2826 | }; | |
2827 | ||
2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2831 | result = (int) ((arg1)->x); |
2832 | ||
15afbcd0 | 2833 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2834 | return resultobj; |
2835 | fail: | |
2836 | return NULL; | |
2837 | } | |
2838 | ||
2839 | ||
2840 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2841 | PyObject *resultobj; | |
2842 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2843 | int arg2 ; | |
2844 | PyObject * obj0 = 0 ; | |
994141e6 | 2845 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2846 | char *kwnames[] = { |
2847 | (char *) "self",(char *) "y", NULL | |
2848 | }; | |
2849 | ||
994141e6 | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2853 | arg2 = (int) SWIG_AsInt(obj1); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2855 | if (arg1) (arg1)->y = arg2; |
2856 | ||
2857 | Py_INCREF(Py_None); resultobj = Py_None; | |
2858 | return resultobj; | |
2859 | fail: | |
2860 | return NULL; | |
2861 | } | |
2862 | ||
2863 | ||
2864 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2865 | PyObject *resultobj; | |
2866 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2867 | int result; | |
2868 | PyObject * obj0 = 0 ; | |
2869 | char *kwnames[] = { | |
2870 | (char *) "self", NULL | |
2871 | }; | |
2872 | ||
2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2876 | result = (int) ((arg1)->y); |
2877 | ||
15afbcd0 | 2878 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2879 | return resultobj; |
2880 | fail: | |
2881 | return NULL; | |
2882 | } | |
2883 | ||
2884 | ||
2885 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2886 | PyObject *resultobj; | |
2887 | int arg1 = (int) 0 ; | |
2888 | int arg2 = (int) 0 ; | |
2889 | wxPoint *result; | |
994141e6 RD |
2890 | PyObject * obj0 = 0 ; |
2891 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2892 | char *kwnames[] = { |
2893 | (char *) "x",(char *) "y", NULL | |
2894 | }; | |
2895 | ||
994141e6 RD |
2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2897 | if (obj0) { | |
15afbcd0 RD |
2898 | arg1 = (int) SWIG_AsInt(obj0); |
2899 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2900 | } |
2901 | if (obj1) { | |
15afbcd0 RD |
2902 | arg2 = (int) SWIG_AsInt(obj1); |
2903 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2904 | } |
d14a1e28 RD |
2905 | { |
2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2907 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2908 | ||
2909 | wxPyEndAllowThreads(__tstate); | |
2910 | if (PyErr_Occurred()) SWIG_fail; | |
2911 | } | |
15afbcd0 | 2912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2913 | return resultobj; |
2914 | fail: | |
2915 | return NULL; | |
2916 | } | |
2917 | ||
2918 | ||
2919 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2920 | PyObject *resultobj; | |
2921 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2922 | PyObject * obj0 = 0 ; | |
2923 | char *kwnames[] = { | |
2924 | (char *) "self", NULL | |
2925 | }; | |
2926 | ||
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2930 | { |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2932 | delete arg1; | |
2933 | ||
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) SWIG_fail; | |
2936 | } | |
2937 | Py_INCREF(Py_None); resultobj = Py_None; | |
2938 | return resultobj; | |
2939 | fail: | |
2940 | return NULL; | |
2941 | } | |
2942 | ||
2943 | ||
2944 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject *resultobj; | |
2946 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2947 | wxPoint *arg2 = 0 ; | |
2948 | bool result; | |
2949 | wxPoint temp2 ; | |
2950 | PyObject * obj0 = 0 ; | |
2951 | PyObject * obj1 = 0 ; | |
2952 | char *kwnames[] = { | |
e811c8ce | 2953 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2954 | }; |
2955 | ||
2956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2959 | { |
2960 | arg2 = &temp2; | |
2961 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2962 | } | |
2963 | { | |
2964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2965 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2966 | |
2967 | wxPyEndAllowThreads(__tstate); | |
2968 | if (PyErr_Occurred()) SWIG_fail; | |
2969 | } | |
4f89f6a3 RD |
2970 | { |
2971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2972 | } | |
d14a1e28 RD |
2973 | return resultobj; |
2974 | fail: | |
2975 | return NULL; | |
2976 | } | |
2977 | ||
2978 | ||
2979 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2980 | PyObject *resultobj; | |
2981 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2982 | wxPoint *arg2 = 0 ; | |
2983 | bool result; | |
2984 | wxPoint temp2 ; | |
2985 | PyObject * obj0 = 0 ; | |
2986 | PyObject * obj1 = 0 ; | |
2987 | char *kwnames[] = { | |
e811c8ce | 2988 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2989 | }; |
2990 | ||
2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2994 | { |
2995 | arg2 = &temp2; | |
2996 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2997 | } | |
2998 | { | |
2999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3000 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
3001 | |
3002 | wxPyEndAllowThreads(__tstate); | |
3003 | if (PyErr_Occurred()) SWIG_fail; | |
3004 | } | |
4f89f6a3 RD |
3005 | { |
3006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3007 | } | |
d14a1e28 RD |
3008 | return resultobj; |
3009 | fail: | |
3010 | return NULL; | |
3011 | } | |
3012 | ||
3013 | ||
3014 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3015 | PyObject *resultobj; | |
3016 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3017 | wxPoint *arg2 = 0 ; | |
3018 | wxPoint result; | |
3019 | wxPoint temp2 ; | |
3020 | PyObject * obj0 = 0 ; | |
3021 | PyObject * obj1 = 0 ; | |
3022 | char *kwnames[] = { | |
e811c8ce | 3023 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3024 | }; |
3025 | ||
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3029 | { |
3030 | arg2 = &temp2; | |
3031 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3032 | } | |
3033 | { | |
3034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3035 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
3036 | |
3037 | wxPyEndAllowThreads(__tstate); | |
3038 | if (PyErr_Occurred()) SWIG_fail; | |
3039 | } | |
3040 | { | |
3041 | wxPoint * resultptr; | |
3042 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3043 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3044 | } |
3045 | return resultobj; | |
3046 | fail: | |
3047 | return NULL; | |
3048 | } | |
3049 | ||
3050 | ||
3051 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3052 | PyObject *resultobj; | |
3053 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3054 | wxPoint *arg2 = 0 ; | |
3055 | wxPoint result; | |
3056 | wxPoint temp2 ; | |
3057 | PyObject * obj0 = 0 ; | |
3058 | PyObject * obj1 = 0 ; | |
3059 | char *kwnames[] = { | |
e811c8ce | 3060 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3061 | }; |
3062 | ||
3063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3066 | { |
3067 | arg2 = &temp2; | |
3068 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3069 | } | |
3070 | { | |
3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3072 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3073 | |
3074 | wxPyEndAllowThreads(__tstate); | |
3075 | if (PyErr_Occurred()) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | wxPoint * resultptr; | |
3079 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3080 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3081 | } |
3082 | return resultobj; | |
3083 | fail: | |
3084 | return NULL; | |
3085 | } | |
3086 | ||
3087 | ||
3088 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3089 | PyObject *resultobj; | |
3090 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3091 | wxPoint *arg2 = 0 ; | |
3092 | wxPoint *result; | |
3093 | wxPoint temp2 ; | |
3094 | PyObject * obj0 = 0 ; | |
3095 | PyObject * obj1 = 0 ; | |
3096 | char *kwnames[] = { | |
e811c8ce | 3097 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3098 | }; |
3099 | ||
3100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3103 | { |
3104 | arg2 = &temp2; | |
3105 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3106 | } | |
3107 | { | |
3108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3109 | { | |
3110 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3111 | result = (wxPoint *) &_result_ref; | |
3112 | } | |
3113 | ||
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) SWIG_fail; | |
3116 | } | |
15afbcd0 | 3117 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3118 | return resultobj; |
3119 | fail: | |
3120 | return NULL; | |
3121 | } | |
3122 | ||
3123 | ||
3124 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3125 | PyObject *resultobj; | |
3126 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3127 | wxPoint *arg2 = 0 ; | |
3128 | wxPoint *result; | |
3129 | wxPoint temp2 ; | |
3130 | PyObject * obj0 = 0 ; | |
3131 | PyObject * obj1 = 0 ; | |
3132 | char *kwnames[] = { | |
e811c8ce | 3133 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3134 | }; |
3135 | ||
3136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3139 | { |
3140 | arg2 = &temp2; | |
3141 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3142 | } | |
3143 | { | |
3144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3145 | { | |
3146 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3147 | result = (wxPoint *) &_result_ref; | |
3148 | } | |
3149 | ||
3150 | wxPyEndAllowThreads(__tstate); | |
3151 | if (PyErr_Occurred()) SWIG_fail; | |
3152 | } | |
15afbcd0 | 3153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3154 | return resultobj; |
3155 | fail: | |
3156 | return NULL; | |
3157 | } | |
3158 | ||
3159 | ||
3160 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3161 | PyObject *resultobj; | |
3162 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3163 | long arg2 ; | |
3164 | long arg3 ; | |
3165 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3166 | PyObject * obj1 = 0 ; |
3167 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3168 | char *kwnames[] = { |
3169 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3170 | }; | |
3171 | ||
994141e6 | 3172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3175 | arg2 = (long) SWIG_AsLong(obj1); | |
3176 | if (PyErr_Occurred()) SWIG_fail; | |
3177 | arg3 = (long) SWIG_AsLong(obj2); | |
3178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3179 | { |
3180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3181 | wxPoint_Set(arg1,arg2,arg3); | |
3182 | ||
3183 | wxPyEndAllowThreads(__tstate); | |
3184 | if (PyErr_Occurred()) SWIG_fail; | |
3185 | } | |
3186 | Py_INCREF(Py_None); resultobj = Py_None; | |
3187 | return resultobj; | |
3188 | fail: | |
3189 | return NULL; | |
3190 | } | |
3191 | ||
3192 | ||
e811c8ce | 3193 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3194 | PyObject *resultobj; |
3195 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3196 | PyObject *result; | |
3197 | PyObject * obj0 = 0 ; | |
3198 | char *kwnames[] = { | |
3199 | (char *) "self", NULL | |
3200 | }; | |
3201 | ||
e811c8ce | 3202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3205 | { |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3207 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3208 | |
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | resultobj = result; | |
3213 | return resultobj; | |
3214 | fail: | |
3215 | return NULL; | |
3216 | } | |
3217 | ||
3218 | ||
3219 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3220 | PyObject *obj; | |
3221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3222 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3223 | Py_INCREF(obj); | |
3224 | return Py_BuildValue((char *)""); | |
3225 | } | |
3226 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3227 | PyObject *resultobj; | |
3228 | int arg1 = (int) 0 ; | |
3229 | int arg2 = (int) 0 ; | |
3230 | int arg3 = (int) 0 ; | |
3231 | int arg4 = (int) 0 ; | |
3232 | wxRect *result; | |
994141e6 RD |
3233 | PyObject * obj0 = 0 ; |
3234 | PyObject * obj1 = 0 ; | |
3235 | PyObject * obj2 = 0 ; | |
3236 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3237 | char *kwnames[] = { |
3238 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3239 | }; | |
3240 | ||
994141e6 RD |
3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3242 | if (obj0) { | |
15afbcd0 RD |
3243 | arg1 = (int) SWIG_AsInt(obj0); |
3244 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3245 | } |
3246 | if (obj1) { | |
15afbcd0 RD |
3247 | arg2 = (int) SWIG_AsInt(obj1); |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3249 | } |
3250 | if (obj2) { | |
15afbcd0 RD |
3251 | arg3 = (int) SWIG_AsInt(obj2); |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3253 | } |
3254 | if (obj3) { | |
15afbcd0 RD |
3255 | arg4 = (int) SWIG_AsInt(obj3); |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3257 | } |
d14a1e28 RD |
3258 | { |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
15afbcd0 | 3265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3266 | return resultobj; |
3267 | fail: | |
3268 | return NULL; | |
3269 | } | |
3270 | ||
3271 | ||
3272 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3273 | PyObject *resultobj; | |
3274 | wxPoint *arg1 = 0 ; | |
3275 | wxPoint *arg2 = 0 ; | |
3276 | wxRect *result; | |
3277 | wxPoint temp1 ; | |
3278 | wxPoint temp2 ; | |
3279 | PyObject * obj0 = 0 ; | |
3280 | PyObject * obj1 = 0 ; | |
3281 | char *kwnames[] = { | |
3282 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3283 | }; | |
3284 | ||
3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3286 | { | |
3287 | arg1 = &temp1; | |
3288 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3289 | } | |
3290 | { | |
3291 | arg2 = &temp2; | |
3292 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3293 | } | |
3294 | { | |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
15afbcd0 | 3301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3302 | return resultobj; |
3303 | fail: | |
3304 | return NULL; | |
3305 | } | |
3306 | ||
3307 | ||
3308 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3309 | PyObject *resultobj; | |
3310 | wxPoint *arg1 = 0 ; | |
3311 | wxSize *arg2 = 0 ; | |
3312 | wxRect *result; | |
3313 | wxPoint temp1 ; | |
3314 | wxSize temp2 ; | |
3315 | PyObject * obj0 = 0 ; | |
3316 | PyObject * obj1 = 0 ; | |
3317 | char *kwnames[] = { | |
3318 | (char *) "pos",(char *) "size", NULL | |
3319 | }; | |
3320 | ||
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3322 | { | |
3323 | arg1 = &temp1; | |
3324 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3325 | } | |
3326 | { | |
3327 | arg2 = &temp2; | |
3328 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3329 | } | |
3330 | { | |
3331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3332 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3333 | ||
3334 | wxPyEndAllowThreads(__tstate); | |
3335 | if (PyErr_Occurred()) SWIG_fail; | |
3336 | } | |
15afbcd0 | 3337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3338 | return resultobj; |
3339 | fail: | |
3340 | return NULL; | |
3341 | } | |
3342 | ||
3343 | ||
3344 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3345 | PyObject *resultobj; | |
3346 | wxRect *arg1 = (wxRect *) 0 ; | |
3347 | PyObject * obj0 = 0 ; | |
3348 | char *kwnames[] = { | |
3349 | (char *) "self", NULL | |
3350 | }; | |
3351 | ||
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3355 | { |
3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3357 | delete arg1; | |
3358 | ||
3359 | wxPyEndAllowThreads(__tstate); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
3362 | Py_INCREF(Py_None); resultobj = Py_None; | |
3363 | return resultobj; | |
3364 | fail: | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
3369 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject *resultobj; | |
3371 | wxRect *arg1 = (wxRect *) 0 ; | |
3372 | int result; | |
3373 | PyObject * obj0 = 0 ; | |
3374 | char *kwnames[] = { | |
3375 | (char *) "self", NULL | |
3376 | }; | |
3377 | ||
3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3381 | { |
3382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3383 | result = (int)((wxRect const *)arg1)->GetX(); | |
3384 | ||
3385 | wxPyEndAllowThreads(__tstate); | |
3386 | if (PyErr_Occurred()) SWIG_fail; | |
3387 | } | |
15afbcd0 | 3388 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3389 | return resultobj; |
3390 | fail: | |
3391 | return NULL; | |
3392 | } | |
3393 | ||
3394 | ||
3395 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject *resultobj; | |
3397 | wxRect *arg1 = (wxRect *) 0 ; | |
3398 | int arg2 ; | |
3399 | PyObject * obj0 = 0 ; | |
994141e6 | 3400 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3401 | char *kwnames[] = { |
3402 | (char *) "self",(char *) "x", NULL | |
3403 | }; | |
3404 | ||
994141e6 | 3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3408 | arg2 = (int) SWIG_AsInt(obj1); | |
3409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3410 | { |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3412 | (arg1)->SetX(arg2); | |
3413 | ||
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) SWIG_fail; | |
3416 | } | |
3417 | Py_INCREF(Py_None); resultobj = Py_None; | |
3418 | return resultobj; | |
3419 | fail: | |
3420 | return NULL; | |
3421 | } | |
3422 | ||
3423 | ||
3424 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject *resultobj; | |
3426 | wxRect *arg1 = (wxRect *) 0 ; | |
3427 | int result; | |
3428 | PyObject * obj0 = 0 ; | |
3429 | char *kwnames[] = { | |
3430 | (char *) "self", NULL | |
3431 | }; | |
3432 | ||
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3436 | { |
3437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3438 | result = (int)(arg1)->GetY(); | |
3439 | ||
3440 | wxPyEndAllowThreads(__tstate); | |
3441 | if (PyErr_Occurred()) SWIG_fail; | |
3442 | } | |
15afbcd0 | 3443 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3444 | return resultobj; |
3445 | fail: | |
3446 | return NULL; | |
3447 | } | |
3448 | ||
3449 | ||
3450 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3451 | PyObject *resultobj; | |
3452 | wxRect *arg1 = (wxRect *) 0 ; | |
3453 | int arg2 ; | |
3454 | PyObject * obj0 = 0 ; | |
994141e6 | 3455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3456 | char *kwnames[] = { |
3457 | (char *) "self",(char *) "y", NULL | |
3458 | }; | |
3459 | ||
994141e6 | 3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3463 | arg2 = (int) SWIG_AsInt(obj1); | |
3464 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3465 | { |
3466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3467 | (arg1)->SetY(arg2); | |
3468 | ||
3469 | wxPyEndAllowThreads(__tstate); | |
3470 | if (PyErr_Occurred()) SWIG_fail; | |
3471 | } | |
3472 | Py_INCREF(Py_None); resultobj = Py_None; | |
3473 | return resultobj; | |
3474 | fail: | |
3475 | return NULL; | |
3476 | } | |
3477 | ||
3478 | ||
3479 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3480 | PyObject *resultobj; | |
3481 | wxRect *arg1 = (wxRect *) 0 ; | |
3482 | int result; | |
3483 | PyObject * obj0 = 0 ; | |
3484 | char *kwnames[] = { | |
3485 | (char *) "self", NULL | |
3486 | }; | |
3487 | ||
3488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3491 | { |
3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3493 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3494 | ||
3495 | wxPyEndAllowThreads(__tstate); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | } | |
15afbcd0 | 3498 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3499 | return resultobj; |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject *resultobj; | |
3507 | wxRect *arg1 = (wxRect *) 0 ; | |
3508 | int arg2 ; | |
3509 | PyObject * obj0 = 0 ; | |
994141e6 | 3510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3511 | char *kwnames[] = { |
3512 | (char *) "self",(char *) "w", NULL | |
3513 | }; | |
3514 | ||
994141e6 | 3515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3518 | arg2 = (int) SWIG_AsInt(obj1); | |
3519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3520 | { |
3521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3522 | (arg1)->SetWidth(arg2); | |
3523 | ||
3524 | wxPyEndAllowThreads(__tstate); | |
3525 | if (PyErr_Occurred()) SWIG_fail; | |
3526 | } | |
3527 | Py_INCREF(Py_None); resultobj = Py_None; | |
3528 | return resultobj; | |
3529 | fail: | |
3530 | return NULL; | |
3531 | } | |
3532 | ||
3533 | ||
3534 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3535 | PyObject *resultobj; | |
3536 | wxRect *arg1 = (wxRect *) 0 ; | |
3537 | int result; | |
3538 | PyObject * obj0 = 0 ; | |
3539 | char *kwnames[] = { | |
3540 | (char *) "self", NULL | |
3541 | }; | |
3542 | ||
3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3546 | { |
3547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3548 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3549 | ||
3550 | wxPyEndAllowThreads(__tstate); | |
3551 | if (PyErr_Occurred()) SWIG_fail; | |
3552 | } | |
15afbcd0 | 3553 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3554 | return resultobj; |
3555 | fail: | |
3556 | return NULL; | |
3557 | } | |
3558 | ||
3559 | ||
3560 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3561 | PyObject *resultobj; | |
3562 | wxRect *arg1 = (wxRect *) 0 ; | |
3563 | int arg2 ; | |
3564 | PyObject * obj0 = 0 ; | |
994141e6 | 3565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3566 | char *kwnames[] = { |
3567 | (char *) "self",(char *) "h", NULL | |
3568 | }; | |
3569 | ||
994141e6 | 3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3573 | arg2 = (int) SWIG_AsInt(obj1); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3575 | { |
3576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3577 | (arg1)->SetHeight(arg2); | |
3578 | ||
3579 | wxPyEndAllowThreads(__tstate); | |
3580 | if (PyErr_Occurred()) SWIG_fail; | |
3581 | } | |
3582 | Py_INCREF(Py_None); resultobj = Py_None; | |
3583 | return resultobj; | |
3584 | fail: | |
3585 | return NULL; | |
3586 | } | |
3587 | ||
3588 | ||
3589 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3590 | PyObject *resultobj; | |
3591 | wxRect *arg1 = (wxRect *) 0 ; | |
3592 | wxPoint result; | |
3593 | PyObject * obj0 = 0 ; | |
3594 | char *kwnames[] = { | |
3595 | (char *) "self", NULL | |
3596 | }; | |
3597 | ||
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3601 | { |
3602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3603 | result = ((wxRect const *)arg1)->GetPosition(); | |
3604 | ||
3605 | wxPyEndAllowThreads(__tstate); | |
3606 | if (PyErr_Occurred()) SWIG_fail; | |
3607 | } | |
3608 | { | |
3609 | wxPoint * resultptr; | |
3610 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3612 | } |
3613 | return resultobj; | |
3614 | fail: | |
3615 | return NULL; | |
3616 | } | |
3617 | ||
3618 | ||
3619 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3620 | PyObject *resultobj; | |
3621 | wxRect *arg1 = (wxRect *) 0 ; | |
3622 | wxPoint *arg2 = 0 ; | |
3623 | wxPoint temp2 ; | |
3624 | PyObject * obj0 = 0 ; | |
3625 | PyObject * obj1 = 0 ; | |
3626 | char *kwnames[] = { | |
3627 | (char *) "self",(char *) "p", NULL | |
3628 | }; | |
3629 | ||
3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3633 | { |
3634 | arg2 = &temp2; | |
3635 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3636 | } | |
3637 | { | |
3638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3639 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3640 | ||
3641 | wxPyEndAllowThreads(__tstate); | |
3642 | if (PyErr_Occurred()) SWIG_fail; | |
3643 | } | |
3644 | Py_INCREF(Py_None); resultobj = Py_None; | |
3645 | return resultobj; | |
3646 | fail: | |
3647 | return NULL; | |
3648 | } | |
3649 | ||
3650 | ||
3651 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3652 | PyObject *resultobj; | |
3653 | wxRect *arg1 = (wxRect *) 0 ; | |
3654 | wxSize result; | |
3655 | PyObject * obj0 = 0 ; | |
3656 | char *kwnames[] = { | |
3657 | (char *) "self", NULL | |
3658 | }; | |
3659 | ||
3660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3663 | { |
3664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3665 | result = ((wxRect const *)arg1)->GetSize(); | |
3666 | ||
3667 | wxPyEndAllowThreads(__tstate); | |
3668 | if (PyErr_Occurred()) SWIG_fail; | |
3669 | } | |
3670 | { | |
3671 | wxSize * resultptr; | |
3672 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3673 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3674 | } |
3675 | return resultobj; | |
3676 | fail: | |
3677 | return NULL; | |
3678 | } | |
3679 | ||
3680 | ||
3681 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3682 | PyObject *resultobj; | |
3683 | wxRect *arg1 = (wxRect *) 0 ; | |
3684 | wxSize *arg2 = 0 ; | |
3685 | wxSize temp2 ; | |
3686 | PyObject * obj0 = 0 ; | |
3687 | PyObject * obj1 = 0 ; | |
3688 | char *kwnames[] = { | |
3689 | (char *) "self",(char *) "s", NULL | |
3690 | }; | |
3691 | ||
3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3695 | { |
3696 | arg2 = &temp2; | |
3697 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3698 | } | |
3699 | { | |
3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3701 | (arg1)->SetSize((wxSize const &)*arg2); | |
3702 | ||
3703 | wxPyEndAllowThreads(__tstate); | |
3704 | if (PyErr_Occurred()) SWIG_fail; | |
3705 | } | |
3706 | Py_INCREF(Py_None); resultobj = Py_None; | |
3707 | return resultobj; | |
3708 | fail: | |
3709 | return NULL; | |
3710 | } | |
3711 | ||
3712 | ||
c9c7117a RD |
3713 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3714 | PyObject *resultobj; | |
3715 | wxRect *arg1 = (wxRect *) 0 ; | |
3716 | wxPoint result; | |
3717 | PyObject * obj0 = 0 ; | |
3718 | char *kwnames[] = { | |
3719 | (char *) "self", NULL | |
3720 | }; | |
3721 | ||
3722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3725 | { |
3726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3727 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3728 | ||
3729 | wxPyEndAllowThreads(__tstate); | |
3730 | if (PyErr_Occurred()) SWIG_fail; | |
3731 | } | |
3732 | { | |
3733 | wxPoint * resultptr; | |
3734 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3736 | } |
3737 | return resultobj; | |
3738 | fail: | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | wxRect *arg1 = (wxRect *) 0 ; | |
3746 | wxPoint *arg2 = 0 ; | |
3747 | wxPoint temp2 ; | |
3748 | PyObject * obj0 = 0 ; | |
3749 | PyObject * obj1 = 0 ; | |
3750 | char *kwnames[] = { | |
3751 | (char *) "self",(char *) "p", NULL | |
3752 | }; | |
3753 | ||
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3757 | { |
3758 | arg2 = &temp2; | |
3759 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3760 | } | |
3761 | { | |
3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3763 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3764 | ||
3765 | wxPyEndAllowThreads(__tstate); | |
3766 | if (PyErr_Occurred()) SWIG_fail; | |
3767 | } | |
3768 | Py_INCREF(Py_None); resultobj = Py_None; | |
3769 | return resultobj; | |
3770 | fail: | |
3771 | return NULL; | |
3772 | } | |
3773 | ||
3774 | ||
3775 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3776 | PyObject *resultobj; | |
3777 | wxRect *arg1 = (wxRect *) 0 ; | |
3778 | wxPoint result; | |
3779 | PyObject * obj0 = 0 ; | |
3780 | char *kwnames[] = { | |
3781 | (char *) "self", NULL | |
3782 | }; | |
3783 | ||
3784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3787 | { |
3788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3789 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3790 | ||
3791 | wxPyEndAllowThreads(__tstate); | |
3792 | if (PyErr_Occurred()) SWIG_fail; | |
3793 | } | |
3794 | { | |
3795 | wxPoint * resultptr; | |
3796 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3798 | } |
3799 | return resultobj; | |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxRect *arg1 = (wxRect *) 0 ; | |
3808 | wxPoint *arg2 = 0 ; | |
3809 | wxPoint temp2 ; | |
3810 | PyObject * obj0 = 0 ; | |
3811 | PyObject * obj1 = 0 ; | |
3812 | char *kwnames[] = { | |
3813 | (char *) "self",(char *) "p", NULL | |
3814 | }; | |
3815 | ||
3816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3819 | { |
3820 | arg2 = &temp2; | |
3821 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3822 | } | |
3823 | { | |
3824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3825 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3826 | ||
3827 | wxPyEndAllowThreads(__tstate); | |
3828 | if (PyErr_Occurred()) SWIG_fail; | |
3829 | } | |
3830 | Py_INCREF(Py_None); resultobj = Py_None; | |
3831 | return resultobj; | |
3832 | fail: | |
3833 | return NULL; | |
3834 | } | |
3835 | ||
3836 | ||
d14a1e28 RD |
3837 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3838 | PyObject *resultobj; | |
3839 | wxRect *arg1 = (wxRect *) 0 ; | |
3840 | int result; | |
3841 | PyObject * obj0 = 0 ; | |
3842 | char *kwnames[] = { | |
3843 | (char *) "self", NULL | |
3844 | }; | |
3845 | ||
3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3849 | { |
3850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3851 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3852 | ||
3853 | wxPyEndAllowThreads(__tstate); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
15afbcd0 | 3856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3857 | return resultobj; |
3858 | fail: | |
3859 | return NULL; | |
3860 | } | |
3861 | ||
3862 | ||
3863 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject *resultobj; | |
3865 | wxRect *arg1 = (wxRect *) 0 ; | |
3866 | int result; | |
3867 | PyObject * obj0 = 0 ; | |
3868 | char *kwnames[] = { | |
3869 | (char *) "self", NULL | |
3870 | }; | |
3871 | ||
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3875 | { |
3876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3877 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3878 | ||
3879 | wxPyEndAllowThreads(__tstate); | |
3880 | if (PyErr_Occurred()) SWIG_fail; | |
3881 | } | |
15afbcd0 | 3882 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3883 | return resultobj; |
3884 | fail: | |
3885 | return NULL; | |
3886 | } | |
3887 | ||
3888 | ||
3889 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3890 | PyObject *resultobj; | |
3891 | wxRect *arg1 = (wxRect *) 0 ; | |
3892 | int result; | |
3893 | PyObject * obj0 = 0 ; | |
3894 | char *kwnames[] = { | |
3895 | (char *) "self", NULL | |
3896 | }; | |
3897 | ||
3898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3901 | { |
3902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3903 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3904 | ||
3905 | wxPyEndAllowThreads(__tstate); | |
3906 | if (PyErr_Occurred()) SWIG_fail; | |
3907 | } | |
15afbcd0 | 3908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3909 | return resultobj; |
3910 | fail: | |
3911 | return NULL; | |
3912 | } | |
3913 | ||
3914 | ||
3915 | static PyObject *_wrap_Rect_GetRight(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_GetRight",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)->GetRight(); | |
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_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | wxRect *arg1 = (wxRect *) 0 ; | |
3944 | int arg2 ; | |
3945 | PyObject * obj0 = 0 ; | |
994141e6 | 3946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3947 | char *kwnames[] = { |
3948 | (char *) "self",(char *) "left", NULL | |
3949 | }; | |
3950 | ||
994141e6 | 3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3954 | arg2 = (int) SWIG_AsInt(obj1); | |
3955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3956 | { |
3957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3958 | (arg1)->SetLeft(arg2); | |
3959 | ||
3960 | wxPyEndAllowThreads(__tstate); | |
3961 | if (PyErr_Occurred()) SWIG_fail; | |
3962 | } | |
3963 | Py_INCREF(Py_None); resultobj = Py_None; | |
3964 | return resultobj; | |
3965 | fail: | |
3966 | return NULL; | |
3967 | } | |
3968 | ||
3969 | ||
3970 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject *resultobj; | |
3972 | wxRect *arg1 = (wxRect *) 0 ; | |
3973 | int arg2 ; | |
3974 | PyObject * obj0 = 0 ; | |
994141e6 | 3975 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3976 | char *kwnames[] = { |
3977 | (char *) "self",(char *) "right", NULL | |
3978 | }; | |
3979 | ||
994141e6 | 3980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3983 | arg2 = (int) SWIG_AsInt(obj1); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3985 | { |
3986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3987 | (arg1)->SetRight(arg2); | |
3988 | ||
3989 | wxPyEndAllowThreads(__tstate); | |
3990 | if (PyErr_Occurred()) SWIG_fail; | |
3991 | } | |
3992 | Py_INCREF(Py_None); resultobj = Py_None; | |
3993 | return resultobj; | |
3994 | fail: | |
3995 | return NULL; | |
3996 | } | |
3997 | ||
3998 | ||
3999 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4000 | PyObject *resultobj; | |
4001 | wxRect *arg1 = (wxRect *) 0 ; | |
4002 | int arg2 ; | |
4003 | PyObject * obj0 = 0 ; | |
994141e6 | 4004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4005 | char *kwnames[] = { |
4006 | (char *) "self",(char *) "top", NULL | |
4007 | }; | |
4008 | ||
994141e6 | 4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4012 | arg2 = (int) SWIG_AsInt(obj1); | |
4013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4014 | { |
4015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4016 | (arg1)->SetTop(arg2); | |
4017 | ||
4018 | wxPyEndAllowThreads(__tstate); | |
4019 | if (PyErr_Occurred()) SWIG_fail; | |
4020 | } | |
4021 | Py_INCREF(Py_None); resultobj = Py_None; | |
4022 | return resultobj; | |
4023 | fail: | |
4024 | return NULL; | |
4025 | } | |
4026 | ||
4027 | ||
4028 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4029 | PyObject *resultobj; | |
4030 | wxRect *arg1 = (wxRect *) 0 ; | |
4031 | int arg2 ; | |
4032 | PyObject * obj0 = 0 ; | |
994141e6 | 4033 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4034 | char *kwnames[] = { |
4035 | (char *) "self",(char *) "bottom", NULL | |
4036 | }; | |
4037 | ||
994141e6 | 4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4041 | arg2 = (int) SWIG_AsInt(obj1); | |
4042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4043 | { |
4044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4045 | (arg1)->SetBottom(arg2); | |
4046 | ||
4047 | wxPyEndAllowThreads(__tstate); | |
4048 | if (PyErr_Occurred()) SWIG_fail; | |
4049 | } | |
4050 | Py_INCREF(Py_None); resultobj = Py_None; | |
4051 | return resultobj; | |
4052 | fail: | |
4053 | return NULL; | |
4054 | } | |
4055 | ||
4056 | ||
4057 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4058 | PyObject *resultobj; | |
4059 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4060 | int arg2 ; |
4061 | int arg3 ; | |
d14a1e28 RD |
4062 | wxRect *result; |
4063 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4064 | PyObject * obj1 = 0 ; |
4065 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4066 | char *kwnames[] = { |
4067 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4068 | }; | |
4069 | ||
994141e6 | 4070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4073 | arg2 = (int) SWIG_AsInt(obj1); | |
4074 | if (PyErr_Occurred()) SWIG_fail; | |
4075 | arg3 = (int) SWIG_AsInt(obj2); | |
4076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4077 | { |
4078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4079 | { | |
4080 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4081 | result = (wxRect *) &_result_ref; | |
4082 | } | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
15afbcd0 | 4087 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4088 | return resultobj; |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4095 | PyObject *resultobj; | |
4096 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4097 | int arg2 ; |
4098 | int arg3 ; | |
d14a1e28 RD |
4099 | wxRect *result; |
4100 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4101 | PyObject * obj1 = 0 ; |
4102 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4103 | char *kwnames[] = { |
4104 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4105 | }; | |
4106 | ||
994141e6 | 4107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4110 | arg2 = (int) SWIG_AsInt(obj1); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
4112 | arg3 = (int) SWIG_AsInt(obj2); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4114 | { |
4115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4116 | { | |
4117 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4118 | result = (wxRect *) &_result_ref; | |
4119 | } | |
4120 | ||
4121 | wxPyEndAllowThreads(__tstate); | |
4122 | if (PyErr_Occurred()) SWIG_fail; | |
4123 | } | |
15afbcd0 | 4124 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4125 | return resultobj; |
4126 | fail: | |
4127 | return NULL; | |
4128 | } | |
4129 | ||
4130 | ||
4131 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4132 | PyObject *resultobj; | |
4133 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4134 | int arg2 ; |
4135 | int arg3 ; | |
d14a1e28 | 4136 | PyObject * obj0 = 0 ; |
994141e6 RD |
4137 | PyObject * obj1 = 0 ; |
4138 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4139 | char *kwnames[] = { |
4140 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4141 | }; | |
4142 | ||
994141e6 | 4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4146 | arg2 = (int) SWIG_AsInt(obj1); | |
4147 | if (PyErr_Occurred()) SWIG_fail; | |
4148 | arg3 = (int) SWIG_AsInt(obj2); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4150 | { |
4151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4152 | (arg1)->Offset(arg2,arg3); | |
4153 | ||
4154 | wxPyEndAllowThreads(__tstate); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | } | |
4157 | Py_INCREF(Py_None); resultobj = Py_None; | |
4158 | return resultobj; | |
4159 | fail: | |
4160 | return NULL; | |
4161 | } | |
4162 | ||
4163 | ||
4164 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4165 | PyObject *resultobj; | |
4166 | wxRect *arg1 = (wxRect *) 0 ; | |
4167 | wxPoint *arg2 = 0 ; | |
4168 | wxPoint temp2 ; | |
4169 | PyObject * obj0 = 0 ; | |
4170 | PyObject * obj1 = 0 ; | |
4171 | char *kwnames[] = { | |
4172 | (char *) "self",(char *) "pt", NULL | |
4173 | }; | |
4174 | ||
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4178 | { |
4179 | arg2 = &temp2; | |
4180 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4181 | } | |
4182 | { | |
4183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4184 | (arg1)->Offset((wxPoint const &)*arg2); | |
4185 | ||
4186 | wxPyEndAllowThreads(__tstate); | |
4187 | if (PyErr_Occurred()) SWIG_fail; | |
4188 | } | |
4189 | Py_INCREF(Py_None); resultobj = Py_None; | |
4190 | return resultobj; | |
4191 | fail: | |
4192 | return NULL; | |
4193 | } | |
4194 | ||
4195 | ||
4196 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4197 | PyObject *resultobj; | |
4198 | wxRect *arg1 = (wxRect *) 0 ; | |
4199 | wxRect *arg2 = 0 ; | |
4200 | wxRect *result; | |
4201 | wxRect temp2 ; | |
4202 | PyObject * obj0 = 0 ; | |
4203 | PyObject * obj1 = 0 ; | |
4204 | char *kwnames[] = { | |
4205 | (char *) "self",(char *) "rect", NULL | |
4206 | }; | |
4207 | ||
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4211 | { |
4212 | arg2 = &temp2; | |
4213 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4214 | } | |
4215 | { | |
4216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4217 | { | |
4218 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4219 | result = (wxRect *) &_result_ref; | |
4220 | } | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
15afbcd0 | 4225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4226 | return resultobj; |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj; | |
4234 | wxRect *arg1 = (wxRect *) 0 ; | |
4235 | wxRect *arg2 = 0 ; | |
4236 | wxRect result; | |
4237 | wxRect temp2 ; | |
4238 | PyObject * obj0 = 0 ; | |
4239 | PyObject * obj1 = 0 ; | |
4240 | char *kwnames[] = { | |
4241 | (char *) "self",(char *) "rect", NULL | |
4242 | }; | |
4243 | ||
4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4247 | { |
4248 | arg2 = &temp2; | |
4249 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4250 | } | |
4251 | { | |
4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4253 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4254 | ||
4255 | wxPyEndAllowThreads(__tstate); | |
4256 | if (PyErr_Occurred()) SWIG_fail; | |
4257 | } | |
4258 | { | |
4259 | wxRect * resultptr; | |
4260 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4262 | } |
4263 | return resultobj; | |
4264 | fail: | |
4265 | return NULL; | |
4266 | } | |
4267 | ||
4268 | ||
4269 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject *resultobj; | |
4271 | wxRect *arg1 = (wxRect *) 0 ; | |
4272 | wxRect *arg2 = 0 ; | |
4273 | wxRect *result; | |
4274 | wxRect temp2 ; | |
4275 | PyObject * obj0 = 0 ; | |
4276 | PyObject * obj1 = 0 ; | |
4277 | char *kwnames[] = { | |
4278 | (char *) "self",(char *) "rect", NULL | |
4279 | }; | |
4280 | ||
4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4284 | { |
4285 | arg2 = &temp2; | |
4286 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4287 | } | |
4288 | { | |
4289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4290 | { | |
4291 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4292 | result = (wxRect *) &_result_ref; | |
4293 | } | |
4294 | ||
4295 | wxPyEndAllowThreads(__tstate); | |
4296 | if (PyErr_Occurred()) SWIG_fail; | |
4297 | } | |
15afbcd0 | 4298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4299 | return resultobj; |
4300 | fail: | |
4301 | return NULL; | |
4302 | } | |
4303 | ||
4304 | ||
4305 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4306 | PyObject *resultobj; | |
4307 | wxRect *arg1 = (wxRect *) 0 ; | |
4308 | wxRect *arg2 = 0 ; | |
4309 | bool result; | |
4310 | wxRect temp2 ; | |
4311 | PyObject * obj0 = 0 ; | |
4312 | PyObject * obj1 = 0 ; | |
4313 | char *kwnames[] = { | |
4314 | (char *) "self",(char *) "rect", NULL | |
4315 | }; | |
4316 | ||
4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4320 | { |
4321 | arg2 = &temp2; | |
4322 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4323 | } | |
4324 | { | |
4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4326 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4327 | ||
4328 | wxPyEndAllowThreads(__tstate); | |
4329 | if (PyErr_Occurred()) SWIG_fail; | |
4330 | } | |
4f89f6a3 RD |
4331 | { |
4332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4333 | } | |
d14a1e28 RD |
4334 | return resultobj; |
4335 | fail: | |
4336 | return NULL; | |
4337 | } | |
4338 | ||
4339 | ||
4340 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4341 | PyObject *resultobj; | |
4342 | wxRect *arg1 = (wxRect *) 0 ; | |
4343 | wxRect *arg2 = 0 ; | |
4344 | bool result; | |
4345 | wxRect temp2 ; | |
4346 | PyObject * obj0 = 0 ; | |
4347 | PyObject * obj1 = 0 ; | |
4348 | char *kwnames[] = { | |
4349 | (char *) "self",(char *) "rect", NULL | |
4350 | }; | |
4351 | ||
4352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4355 | { |
4356 | arg2 = &temp2; | |
4357 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4358 | } | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4f89f6a3 RD |
4366 | { |
4367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4368 | } | |
d14a1e28 RD |
4369 | return resultobj; |
4370 | fail: | |
4371 | return NULL; | |
4372 | } | |
4373 | ||
4374 | ||
4375 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4376 | PyObject *resultobj; | |
4377 | wxRect *arg1 = (wxRect *) 0 ; | |
4378 | int arg2 ; | |
4379 | int arg3 ; | |
4380 | bool result; | |
4381 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4382 | PyObject * obj1 = 0 ; |
4383 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4384 | char *kwnames[] = { |
4385 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4386 | }; | |
4387 | ||
994141e6 | 4388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4391 | arg2 = (int) SWIG_AsInt(obj1); | |
4392 | if (PyErr_Occurred()) SWIG_fail; | |
4393 | arg3 = (int) SWIG_AsInt(obj2); | |
4394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4395 | { |
4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4397 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4398 | ||
4399 | wxPyEndAllowThreads(__tstate); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | } | |
4f89f6a3 RD |
4402 | { |
4403 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4404 | } | |
d14a1e28 RD |
4405 | return resultobj; |
4406 | fail: | |
4407 | return NULL; | |
4408 | } | |
4409 | ||
4410 | ||
4411 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4412 | PyObject *resultobj; | |
4413 | wxRect *arg1 = (wxRect *) 0 ; | |
4414 | wxPoint *arg2 = 0 ; | |
4415 | bool result; | |
4416 | wxPoint temp2 ; | |
4417 | PyObject * obj0 = 0 ; | |
4418 | PyObject * obj1 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "self",(char *) "pt", NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4426 | { |
4427 | arg2 = &temp2; | |
4428 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4429 | } | |
4430 | { | |
4431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4432 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4433 | ||
4434 | wxPyEndAllowThreads(__tstate); | |
4435 | if (PyErr_Occurred()) SWIG_fail; | |
4436 | } | |
4f89f6a3 RD |
4437 | { |
4438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4439 | } | |
d14a1e28 RD |
4440 | return resultobj; |
4441 | fail: | |
4442 | return NULL; | |
4443 | } | |
4444 | ||
4445 | ||
4446 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4447 | PyObject *resultobj; | |
4448 | wxRect *arg1 = (wxRect *) 0 ; | |
4449 | wxRect *arg2 = 0 ; | |
4450 | bool result; | |
4451 | wxRect temp2 ; | |
4452 | PyObject * obj0 = 0 ; | |
4453 | PyObject * obj1 = 0 ; | |
4454 | char *kwnames[] = { | |
4455 | (char *) "self",(char *) "rect", NULL | |
4456 | }; | |
4457 | ||
4458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4461 | { |
4462 | arg2 = &temp2; | |
4463 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4464 | } | |
4465 | { | |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4f89f6a3 RD |
4472 | { |
4473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4474 | } | |
d14a1e28 RD |
4475 | return resultobj; |
4476 | fail: | |
4477 | return NULL; | |
4478 | } | |
4479 | ||
4480 | ||
4481 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4482 | PyObject *resultobj; | |
4483 | wxRect *arg1 = (wxRect *) 0 ; | |
4484 | int arg2 ; | |
4485 | PyObject * obj0 = 0 ; | |
994141e6 | 4486 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4487 | char *kwnames[] = { |
4488 | (char *) "self",(char *) "x", NULL | |
4489 | }; | |
4490 | ||
994141e6 | 4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4494 | arg2 = (int) SWIG_AsInt(obj1); | |
4495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4496 | if (arg1) (arg1)->x = arg2; |
4497 | ||
4498 | Py_INCREF(Py_None); resultobj = Py_None; | |
4499 | return resultobj; | |
4500 | fail: | |
4501 | return NULL; | |
4502 | } | |
4503 | ||
4504 | ||
4505 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject *resultobj; | |
4507 | wxRect *arg1 = (wxRect *) 0 ; | |
4508 | int result; | |
4509 | PyObject * obj0 = 0 ; | |
4510 | char *kwnames[] = { | |
4511 | (char *) "self", NULL | |
4512 | }; | |
4513 | ||
4514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4517 | result = (int) ((arg1)->x); |
4518 | ||
15afbcd0 | 4519 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4520 | return resultobj; |
4521 | fail: | |
4522 | return NULL; | |
4523 | } | |
4524 | ||
4525 | ||
4526 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4527 | PyObject *resultobj; | |
4528 | wxRect *arg1 = (wxRect *) 0 ; | |
4529 | int arg2 ; | |
4530 | PyObject * obj0 = 0 ; | |
994141e6 | 4531 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4532 | char *kwnames[] = { |
4533 | (char *) "self",(char *) "y", NULL | |
4534 | }; | |
4535 | ||
994141e6 | 4536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",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; | |
4539 | arg2 = (int) SWIG_AsInt(obj1); | |
4540 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4541 | if (arg1) (arg1)->y = arg2; |
4542 | ||
4543 | Py_INCREF(Py_None); resultobj = Py_None; | |
4544 | return resultobj; | |
4545 | fail: | |
4546 | return NULL; | |
4547 | } | |
4548 | ||
4549 | ||
4550 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4551 | PyObject *resultobj; | |
4552 | wxRect *arg1 = (wxRect *) 0 ; | |
4553 | int result; | |
4554 | PyObject * obj0 = 0 ; | |
4555 | char *kwnames[] = { | |
4556 | (char *) "self", NULL | |
4557 | }; | |
4558 | ||
4559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4562 | result = (int) ((arg1)->y); |
4563 | ||
15afbcd0 | 4564 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4565 | return resultobj; |
4566 | fail: | |
4567 | return NULL; | |
4568 | } | |
4569 | ||
4570 | ||
4571 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4572 | PyObject *resultobj; | |
4573 | wxRect *arg1 = (wxRect *) 0 ; | |
4574 | int arg2 ; | |
4575 | PyObject * obj0 = 0 ; | |
994141e6 | 4576 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4577 | char *kwnames[] = { |
4578 | (char *) "self",(char *) "width", NULL | |
4579 | }; | |
4580 | ||
994141e6 | 4581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4584 | arg2 = (int) SWIG_AsInt(obj1); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4586 | if (arg1) (arg1)->width = arg2; |
4587 | ||
4588 | Py_INCREF(Py_None); resultobj = Py_None; | |
4589 | return resultobj; | |
4590 | fail: | |
4591 | return NULL; | |
4592 | } | |
4593 | ||
4594 | ||
4595 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject *resultobj; | |
4597 | wxRect *arg1 = (wxRect *) 0 ; | |
4598 | int result; | |
4599 | PyObject * obj0 = 0 ; | |
4600 | char *kwnames[] = { | |
4601 | (char *) "self", NULL | |
4602 | }; | |
4603 | ||
4604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4607 | result = (int) ((arg1)->width); |
4608 | ||
15afbcd0 | 4609 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4610 | return resultobj; |
4611 | fail: | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
4616 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4617 | PyObject *resultobj; | |
4618 | wxRect *arg1 = (wxRect *) 0 ; | |
4619 | int arg2 ; | |
4620 | PyObject * obj0 = 0 ; | |
994141e6 | 4621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4622 | char *kwnames[] = { |
4623 | (char *) "self",(char *) "height", NULL | |
4624 | }; | |
4625 | ||
994141e6 | 4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4629 | arg2 = (int) SWIG_AsInt(obj1); | |
4630 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4631 | if (arg1) (arg1)->height = arg2; |
4632 | ||
4633 | Py_INCREF(Py_None); resultobj = Py_None; | |
4634 | return resultobj; | |
4635 | fail: | |
4636 | return NULL; | |
4637 | } | |
4638 | ||
4639 | ||
4640 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4641 | PyObject *resultobj; | |
4642 | wxRect *arg1 = (wxRect *) 0 ; | |
4643 | int result; | |
4644 | PyObject * obj0 = 0 ; | |
4645 | char *kwnames[] = { | |
4646 | (char *) "self", NULL | |
4647 | }; | |
4648 | ||
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4652 | result = (int) ((arg1)->height); |
4653 | ||
15afbcd0 | 4654 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4655 | return resultobj; |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
4661 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4662 | PyObject *resultobj; | |
4663 | wxRect *arg1 = (wxRect *) 0 ; | |
4664 | int arg2 = (int) 0 ; | |
4665 | int arg3 = (int) 0 ; | |
4666 | int arg4 = (int) 0 ; | |
4667 | int arg5 = (int) 0 ; | |
4668 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4669 | PyObject * obj1 = 0 ; |
4670 | PyObject * obj2 = 0 ; | |
4671 | PyObject * obj3 = 0 ; | |
4672 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4673 | char *kwnames[] = { |
4674 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4675 | }; | |
4676 | ||
994141e6 | 4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4680 | if (obj1) { |
15afbcd0 RD |
4681 | arg2 = (int) SWIG_AsInt(obj1); |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4683 | } |
4684 | if (obj2) { | |
15afbcd0 RD |
4685 | arg3 = (int) SWIG_AsInt(obj2); |
4686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4687 | } |
4688 | if (obj3) { | |
15afbcd0 RD |
4689 | arg4 = (int) SWIG_AsInt(obj3); |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4691 | } |
4692 | if (obj4) { | |
15afbcd0 RD |
4693 | arg5 = (int) SWIG_AsInt(obj4); |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4695 | } |
d14a1e28 RD |
4696 | { |
4697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4698 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4699 | ||
4700 | wxPyEndAllowThreads(__tstate); | |
4701 | if (PyErr_Occurred()) SWIG_fail; | |
4702 | } | |
4703 | Py_INCREF(Py_None); resultobj = Py_None; | |
4704 | return resultobj; | |
4705 | fail: | |
4706 | return NULL; | |
4707 | } | |
4708 | ||
4709 | ||
e811c8ce | 4710 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4711 | PyObject *resultobj; |
4712 | wxRect *arg1 = (wxRect *) 0 ; | |
4713 | PyObject *result; | |
4714 | PyObject * obj0 = 0 ; | |
4715 | char *kwnames[] = { | |
4716 | (char *) "self", NULL | |
4717 | }; | |
4718 | ||
e811c8ce | 4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4722 | { |
4723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4724 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4725 | |
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | resultobj = result; | |
4730 | return resultobj; | |
4731 | fail: | |
4732 | return NULL; | |
4733 | } | |
4734 | ||
4735 | ||
4736 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4737 | PyObject *obj; | |
4738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4739 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4740 | Py_INCREF(obj); | |
4741 | return Py_BuildValue((char *)""); | |
4742 | } | |
4743 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4744 | PyObject *resultobj; | |
4745 | wxRect *arg1 = (wxRect *) 0 ; | |
4746 | wxRect *arg2 = (wxRect *) 0 ; | |
4747 | PyObject *result; | |
4748 | PyObject * obj0 = 0 ; | |
4749 | PyObject * obj1 = 0 ; | |
4750 | char *kwnames[] = { | |
4751 | (char *) "r1",(char *) "r2", NULL | |
4752 | }; | |
4753 | ||
4754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4759 | { |
4760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4761 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4762 | ||
4763 | wxPyEndAllowThreads(__tstate); | |
4764 | if (PyErr_Occurred()) SWIG_fail; | |
4765 | } | |
4766 | resultobj = result; | |
4767 | return resultobj; | |
4768 | fail: | |
4769 | return NULL; | |
4770 | } | |
4771 | ||
4772 | ||
4773 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4774 | PyObject *resultobj; | |
4775 | double arg1 = (double) 0.0 ; | |
4776 | double arg2 = (double) 0.0 ; | |
4777 | wxPoint2D *result; | |
994141e6 RD |
4778 | PyObject * obj0 = 0 ; |
4779 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4780 | char *kwnames[] = { |
4781 | (char *) "x",(char *) "y", NULL | |
4782 | }; | |
4783 | ||
994141e6 RD |
4784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4785 | if (obj0) { | |
15afbcd0 RD |
4786 | arg1 = (double) SWIG_AsDouble(obj0); |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4788 | } |
4789 | if (obj1) { | |
15afbcd0 RD |
4790 | arg2 = (double) SWIG_AsDouble(obj1); |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4792 | } |
d14a1e28 RD |
4793 | { |
4794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4795 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4796 | ||
4797 | wxPyEndAllowThreads(__tstate); | |
4798 | if (PyErr_Occurred()) SWIG_fail; | |
4799 | } | |
15afbcd0 | 4800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4801 | return resultobj; |
4802 | fail: | |
4803 | return NULL; | |
4804 | } | |
4805 | ||
4806 | ||
4807 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4808 | PyObject *resultobj; | |
4809 | wxPoint2D *arg1 = 0 ; | |
4810 | wxPoint2D *result; | |
4811 | wxPoint2D temp1 ; | |
4812 | PyObject * obj0 = 0 ; | |
4813 | char *kwnames[] = { | |
4814 | (char *) "pt", NULL | |
4815 | }; | |
4816 | ||
4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4818 | { | |
4819 | arg1 = &temp1; | |
4820 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4824 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4825 | ||
4826 | wxPyEndAllowThreads(__tstate); | |
4827 | if (PyErr_Occurred()) SWIG_fail; | |
4828 | } | |
15afbcd0 | 4829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4830 | return resultobj; |
4831 | fail: | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject *resultobj; | |
4838 | wxPoint *arg1 = 0 ; | |
4839 | wxPoint2D *result; | |
4840 | wxPoint temp1 ; | |
4841 | PyObject * obj0 = 0 ; | |
4842 | char *kwnames[] = { | |
4843 | (char *) "pt", NULL | |
4844 | }; | |
4845 | ||
4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4847 | { | |
4848 | arg1 = &temp1; | |
4849 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4850 | } | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4854 | ||
4855 | wxPyEndAllowThreads(__tstate); | |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
4857 | } | |
15afbcd0 | 4858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4859 | return resultobj; |
4860 | fail: | |
4861 | return NULL; | |
4862 | } | |
4863 | ||
4864 | ||
4865 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4866 | PyObject *resultobj; | |
4867 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4868 | int *arg2 = (int *) 0 ; | |
4869 | int *arg3 = (int *) 0 ; | |
4870 | int temp2 ; | |
4871 | int temp3 ; | |
4872 | PyObject * obj0 = 0 ; | |
4873 | char *kwnames[] = { | |
4874 | (char *) "self", NULL | |
4875 | }; | |
4876 | ||
4877 | arg2 = &temp2; | |
4878 | arg3 = &temp3; | |
4879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4882 | { |
4883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4884 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4885 | ||
4886 | wxPyEndAllowThreads(__tstate); | |
4887 | if (PyErr_Occurred()) SWIG_fail; | |
4888 | } | |
4889 | Py_INCREF(Py_None); resultobj = Py_None; | |
4890 | { | |
4891 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4892 | resultobj = t_output_helper(resultobj,o); | |
4893 | } | |
4894 | { | |
4895 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4896 | resultobj = t_output_helper(resultobj,o); | |
4897 | } | |
4898 | return resultobj; | |
4899 | fail: | |
4900 | return NULL; | |
4901 | } | |
4902 | ||
4903 | ||
4904 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4905 | PyObject *resultobj; | |
4906 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4907 | int *arg2 = (int *) 0 ; | |
4908 | int *arg3 = (int *) 0 ; | |
4909 | int temp2 ; | |
4910 | int temp3 ; | |
4911 | PyObject * obj0 = 0 ; | |
4912 | char *kwnames[] = { | |
4913 | (char *) "self", NULL | |
4914 | }; | |
4915 | ||
4916 | arg2 = &temp2; | |
4917 | arg3 = &temp3; | |
4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4921 | { |
4922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4923 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4924 | ||
4925 | wxPyEndAllowThreads(__tstate); | |
4926 | if (PyErr_Occurred()) SWIG_fail; | |
4927 | } | |
4928 | Py_INCREF(Py_None); resultobj = Py_None; | |
4929 | { | |
4930 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4931 | resultobj = t_output_helper(resultobj,o); | |
4932 | } | |
4933 | { | |
4934 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4935 | resultobj = t_output_helper(resultobj,o); | |
4936 | } | |
4937 | return resultobj; | |
4938 | fail: | |
4939 | return NULL; | |
4940 | } | |
4941 | ||
4942 | ||
4943 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4944 | PyObject *resultobj; | |
4945 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4946 | double result; | |
4947 | PyObject * obj0 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "self", NULL | |
4950 | }; | |
4951 | ||
4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4955 | { |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4958 | ||
4959 | wxPyEndAllowThreads(__tstate); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
15afbcd0 | 4962 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4963 | return resultobj; |
4964 | fail: | |
4965 | return NULL; | |
4966 | } | |
4967 | ||
4968 | ||
4969 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4970 | PyObject *resultobj; | |
4971 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4972 | double result; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | char *kwnames[] = { | |
4975 | (char *) "self", NULL | |
4976 | }; | |
4977 | ||
4978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4981 | { |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
15afbcd0 | 4988 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4989 | return resultobj; |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject *resultobj; | |
4997 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4998 | double arg2 ; | |
4999 | PyObject * obj0 = 0 ; | |
994141e6 | 5000 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5001 | char *kwnames[] = { |
5002 | (char *) "self",(char *) "length", NULL | |
5003 | }; | |
5004 | ||
994141e6 | 5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5008 | arg2 = (double) SWIG_AsDouble(obj1); | |
5009 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5010 | { |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | (arg1)->SetVectorLength(arg2); | |
5013 | ||
5014 | wxPyEndAllowThreads(__tstate); | |
5015 | if (PyErr_Occurred()) SWIG_fail; | |
5016 | } | |
5017 | Py_INCREF(Py_None); resultobj = Py_None; | |
5018 | return resultobj; | |
5019 | fail: | |
5020 | return NULL; | |
5021 | } | |
5022 | ||
5023 | ||
5024 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5025 | PyObject *resultobj; | |
5026 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5027 | double arg2 ; | |
5028 | PyObject * obj0 = 0 ; | |
994141e6 | 5029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5030 | char *kwnames[] = { |
5031 | (char *) "self",(char *) "degrees", NULL | |
5032 | }; | |
5033 | ||
994141e6 | 5034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5037 | arg2 = (double) SWIG_AsDouble(obj1); | |
5038 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5039 | { |
5040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5041 | (arg1)->SetVectorAngle(arg2); | |
5042 | ||
5043 | wxPyEndAllowThreads(__tstate); | |
5044 | if (PyErr_Occurred()) SWIG_fail; | |
5045 | } | |
5046 | Py_INCREF(Py_None); resultobj = Py_None; | |
5047 | return resultobj; | |
5048 | fail: | |
5049 | return NULL; | |
5050 | } | |
5051 | ||
5052 | ||
5053 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5054 | PyObject *resultobj; | |
5055 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5056 | wxPoint2D *arg2 = 0 ; | |
5057 | double result; | |
5058 | wxPoint2D temp2 ; | |
5059 | PyObject * obj0 = 0 ; | |
5060 | PyObject * obj1 = 0 ; | |
5061 | char *kwnames[] = { | |
5062 | (char *) "self",(char *) "pt", NULL | |
5063 | }; | |
5064 | ||
5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5068 | { |
5069 | arg2 = &temp2; | |
5070 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5071 | } | |
5072 | { | |
5073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5074 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5075 | ||
5076 | wxPyEndAllowThreads(__tstate); | |
5077 | if (PyErr_Occurred()) SWIG_fail; | |
5078 | } | |
15afbcd0 | 5079 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5080 | return resultobj; |
5081 | fail: | |
5082 | return NULL; | |
5083 | } | |
5084 | ||
5085 | ||
5086 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5087 | PyObject *resultobj; | |
5088 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5089 | wxPoint2D *arg2 = 0 ; | |
5090 | double result; | |
5091 | wxPoint2D temp2 ; | |
5092 | PyObject * obj0 = 0 ; | |
5093 | PyObject * obj1 = 0 ; | |
5094 | char *kwnames[] = { | |
5095 | (char *) "self",(char *) "pt", NULL | |
5096 | }; | |
5097 | ||
5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5101 | { |
5102 | arg2 = &temp2; | |
5103 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5104 | } | |
5105 | { | |
5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5107 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5108 | ||
5109 | wxPyEndAllowThreads(__tstate); | |
5110 | if (PyErr_Occurred()) SWIG_fail; | |
5111 | } | |
15afbcd0 | 5112 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5113 | return resultobj; |
5114 | fail: | |
5115 | return NULL; | |
5116 | } | |
5117 | ||
5118 | ||
5119 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5120 | PyObject *resultobj; | |
5121 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5122 | wxPoint2D *arg2 = 0 ; | |
5123 | double result; | |
5124 | wxPoint2D temp2 ; | |
5125 | PyObject * obj0 = 0 ; | |
5126 | PyObject * obj1 = 0 ; | |
5127 | char *kwnames[] = { | |
5128 | (char *) "self",(char *) "vec", NULL | |
5129 | }; | |
5130 | ||
5131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5134 | { |
5135 | arg2 = &temp2; | |
5136 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5137 | } | |
5138 | { | |
5139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5140 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5141 | ||
5142 | wxPyEndAllowThreads(__tstate); | |
5143 | if (PyErr_Occurred()) SWIG_fail; | |
5144 | } | |
15afbcd0 | 5145 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5146 | return resultobj; |
5147 | fail: | |
5148 | return NULL; | |
5149 | } | |
5150 | ||
5151 | ||
5152 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5153 | PyObject *resultobj; | |
5154 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5155 | wxPoint2D *arg2 = 0 ; | |
5156 | double result; | |
5157 | wxPoint2D temp2 ; | |
5158 | PyObject * obj0 = 0 ; | |
5159 | PyObject * obj1 = 0 ; | |
5160 | char *kwnames[] = { | |
5161 | (char *) "self",(char *) "vec", NULL | |
5162 | }; | |
5163 | ||
5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5167 | { |
5168 | arg2 = &temp2; | |
5169 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5170 | } | |
5171 | { | |
5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5173 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5174 | ||
5175 | wxPyEndAllowThreads(__tstate); | |
5176 | if (PyErr_Occurred()) SWIG_fail; | |
5177 | } | |
15afbcd0 | 5178 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5179 | return resultobj; |
5180 | fail: | |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
5185 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject *resultobj; | |
5187 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5188 | wxPoint2D result; | |
5189 | PyObject * obj0 = 0 ; | |
5190 | char *kwnames[] = { | |
5191 | (char *) "self", NULL | |
5192 | }; | |
5193 | ||
5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5197 | { |
5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5199 | result = (arg1)->operator -(); | |
5200 | ||
5201 | wxPyEndAllowThreads(__tstate); | |
5202 | if (PyErr_Occurred()) SWIG_fail; | |
5203 | } | |
5204 | { | |
5205 | wxPoint2D * resultptr; | |
5206 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
15afbcd0 | 5207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5208 | } |
5209 | return resultobj; | |
5210 | fail: | |
5211 | return NULL; | |
5212 | } | |
5213 | ||
5214 | ||
5215 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5216 | PyObject *resultobj; | |
5217 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5218 | wxPoint2D *arg2 = 0 ; | |
5219 | wxPoint2D *result; | |
5220 | wxPoint2D temp2 ; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | PyObject * obj1 = 0 ; | |
5223 | char *kwnames[] = { | |
5224 | (char *) "self",(char *) "pt", NULL | |
5225 | }; | |
5226 | ||
5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5230 | { |
5231 | arg2 = &temp2; | |
5232 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5233 | } | |
5234 | { | |
5235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5236 | { | |
5237 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5238 | result = (wxPoint2D *) &_result_ref; | |
5239 | } | |
5240 | ||
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
15afbcd0 | 5244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5245 | return resultobj; |
5246 | fail: | |
5247 | return NULL; | |
5248 | } | |
5249 | ||
5250 | ||
5251 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5252 | PyObject *resultobj; | |
5253 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5254 | wxPoint2D *arg2 = 0 ; | |
5255 | wxPoint2D *result; | |
5256 | wxPoint2D temp2 ; | |
5257 | PyObject * obj0 = 0 ; | |
5258 | PyObject * obj1 = 0 ; | |
5259 | char *kwnames[] = { | |
5260 | (char *) "self",(char *) "pt", NULL | |
5261 | }; | |
5262 | ||
5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5266 | { |
5267 | arg2 = &temp2; | |
5268 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5269 | } | |
5270 | { | |
5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5272 | { | |
5273 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5274 | result = (wxPoint2D *) &_result_ref; | |
5275 | } | |
5276 | ||
5277 | wxPyEndAllowThreads(__tstate); | |
5278 | if (PyErr_Occurred()) SWIG_fail; | |
5279 | } | |
15afbcd0 | 5280 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5281 | return resultobj; |
5282 | fail: | |
5283 | return NULL; | |
5284 | } | |
5285 | ||
5286 | ||
5287 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5288 | PyObject *resultobj; | |
5289 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5290 | wxPoint2D *arg2 = 0 ; | |
5291 | wxPoint2D *result; | |
5292 | wxPoint2D temp2 ; | |
5293 | PyObject * obj0 = 0 ; | |
5294 | PyObject * obj1 = 0 ; | |
5295 | char *kwnames[] = { | |
5296 | (char *) "self",(char *) "pt", NULL | |
5297 | }; | |
5298 | ||
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5302 | { |
5303 | arg2 = &temp2; | |
5304 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5305 | } | |
5306 | { | |
5307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5308 | { | |
5309 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5310 | result = (wxPoint2D *) &_result_ref; | |
5311 | } | |
5312 | ||
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
15afbcd0 | 5316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5317 | return resultobj; |
5318 | fail: | |
5319 | return NULL; | |
5320 | } | |
5321 | ||
5322 | ||
5323 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5324 | PyObject *resultobj; | |
5325 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5326 | wxPoint2D *arg2 = 0 ; | |
5327 | wxPoint2D *result; | |
5328 | wxPoint2D temp2 ; | |
5329 | PyObject * obj0 = 0 ; | |
5330 | PyObject * obj1 = 0 ; | |
5331 | char *kwnames[] = { | |
5332 | (char *) "self",(char *) "pt", NULL | |
5333 | }; | |
5334 | ||
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5338 | { |
5339 | arg2 = &temp2; | |
5340 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5341 | } | |
5342 | { | |
5343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5344 | { | |
5345 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5346 | result = (wxPoint2D *) &_result_ref; | |
5347 | } | |
5348 | ||
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
15afbcd0 | 5352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5353 | return resultobj; |
5354 | fail: | |
5355 | return NULL; | |
5356 | } | |
5357 | ||
5358 | ||
5359 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5360 | PyObject *resultobj; | |
5361 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5362 | wxPoint2D *arg2 = 0 ; | |
5363 | bool result; | |
5364 | wxPoint2D temp2 ; | |
5365 | PyObject * obj0 = 0 ; | |
5366 | PyObject * obj1 = 0 ; | |
5367 | char *kwnames[] = { | |
5368 | (char *) "self",(char *) "pt", NULL | |
5369 | }; | |
5370 | ||
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5374 | { |
5375 | arg2 = &temp2; | |
5376 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5377 | } | |
5378 | { | |
5379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5380 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5381 | ||
5382 | wxPyEndAllowThreads(__tstate); | |
5383 | if (PyErr_Occurred()) SWIG_fail; | |
5384 | } | |
4f89f6a3 RD |
5385 | { |
5386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5387 | } | |
d14a1e28 RD |
5388 | return resultobj; |
5389 | fail: | |
5390 | return NULL; | |
5391 | } | |
5392 | ||
5393 | ||
5394 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5395 | PyObject *resultobj; | |
5396 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5397 | wxPoint2D *arg2 = 0 ; | |
5398 | bool result; | |
5399 | wxPoint2D temp2 ; | |
5400 | PyObject * obj0 = 0 ; | |
5401 | PyObject * obj1 = 0 ; | |
5402 | char *kwnames[] = { | |
5403 | (char *) "self",(char *) "pt", NULL | |
5404 | }; | |
5405 | ||
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5409 | { |
5410 | arg2 = &temp2; | |
5411 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5412 | } | |
5413 | { | |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5416 | ||
5417 | wxPyEndAllowThreads(__tstate); | |
5418 | if (PyErr_Occurred()) SWIG_fail; | |
5419 | } | |
4f89f6a3 RD |
5420 | { |
5421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5422 | } | |
d14a1e28 RD |
5423 | return resultobj; |
5424 | fail: | |
5425 | return NULL; | |
5426 | } | |
5427 | ||
5428 | ||
d14a1e28 RD |
5429 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5430 | PyObject *resultobj; | |
5431 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5432 | double arg2 ; | |
5433 | PyObject * obj0 = 0 ; | |
994141e6 | 5434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5435 | char *kwnames[] = { |
5436 | (char *) "self",(char *) "m_x", NULL | |
5437 | }; | |
5438 | ||
994141e6 | 5439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5442 | arg2 = (double) SWIG_AsDouble(obj1); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5444 | if (arg1) (arg1)->m_x = arg2; |
5445 | ||
5446 | Py_INCREF(Py_None); resultobj = Py_None; | |
5447 | return resultobj; | |
5448 | fail: | |
5449 | return NULL; | |
5450 | } | |
5451 | ||
5452 | ||
5453 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject *resultobj; | |
5455 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5456 | double result; | |
5457 | PyObject * obj0 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "self", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5465 | result = (double) ((arg1)->m_x); |
5466 | ||
15afbcd0 | 5467 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5468 | return resultobj; |
5469 | fail: | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj; | |
5476 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5477 | double arg2 ; | |
5478 | PyObject * obj0 = 0 ; | |
994141e6 | 5479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5480 | char *kwnames[] = { |
5481 | (char *) "self",(char *) "m_y", NULL | |
5482 | }; | |
5483 | ||
994141e6 | 5484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5487 | arg2 = (double) SWIG_AsDouble(obj1); | |
5488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5489 | if (arg1) (arg1)->m_y = arg2; |
5490 | ||
5491 | Py_INCREF(Py_None); resultobj = Py_None; | |
5492 | return resultobj; | |
5493 | fail: | |
5494 | return NULL; | |
5495 | } | |
5496 | ||
5497 | ||
5498 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5499 | PyObject *resultobj; | |
5500 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5501 | double result; | |
5502 | PyObject * obj0 = 0 ; | |
5503 | char *kwnames[] = { | |
5504 | (char *) "self", NULL | |
5505 | }; | |
5506 | ||
5507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5510 | result = (double) ((arg1)->m_y); |
5511 | ||
15afbcd0 | 5512 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5513 | return resultobj; |
5514 | fail: | |
5515 | return NULL; | |
5516 | } | |
5517 | ||
5518 | ||
5519 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5520 | PyObject *resultobj; | |
5521 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5522 | double arg2 = (double) 0 ; | |
5523 | double arg3 = (double) 0 ; | |
5524 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5525 | PyObject * obj1 = 0 ; |
5526 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5527 | char *kwnames[] = { |
5528 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5529 | }; | |
5530 | ||
994141e6 | 5531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5534 | if (obj1) { |
15afbcd0 RD |
5535 | arg2 = (double) SWIG_AsDouble(obj1); |
5536 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
5537 | } |
5538 | if (obj2) { | |
15afbcd0 RD |
5539 | arg3 = (double) SWIG_AsDouble(obj2); |
5540 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5541 | } |
d14a1e28 RD |
5542 | { |
5543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5544 | wxPoint2D_Set(arg1,arg2,arg3); | |
5545 | ||
5546 | wxPyEndAllowThreads(__tstate); | |
5547 | if (PyErr_Occurred()) SWIG_fail; | |
5548 | } | |
5549 | Py_INCREF(Py_None); resultobj = Py_None; | |
5550 | return resultobj; | |
5551 | fail: | |
5552 | return NULL; | |
5553 | } | |
5554 | ||
5555 | ||
e811c8ce | 5556 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5557 | PyObject *resultobj; |
5558 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5559 | PyObject *result; | |
5560 | PyObject * obj0 = 0 ; | |
5561 | char *kwnames[] = { | |
5562 | (char *) "self", NULL | |
5563 | }; | |
5564 | ||
e811c8ce | 5565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5568 | { |
5569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5570 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5571 | |
5572 | wxPyEndAllowThreads(__tstate); | |
5573 | if (PyErr_Occurred()) SWIG_fail; | |
5574 | } | |
5575 | resultobj = result; | |
5576 | return resultobj; | |
5577 | fail: | |
5578 | return NULL; | |
5579 | } | |
5580 | ||
5581 | ||
5582 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5583 | PyObject *obj; | |
5584 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5585 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5586 | Py_INCREF(obj); | |
5587 | return Py_BuildValue((char *)""); | |
5588 | } | |
5589 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5590 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5591 | return 1; | |
5592 | } | |
5593 | ||
5594 | ||
5595 | static PyObject *_wrap_DefaultPosition_get() { | |
5596 | PyObject *pyobj; | |
5597 | ||
15afbcd0 | 5598 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5599 | return pyobj; |
5600 | } | |
5601 | ||
5602 | ||
5603 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5604 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5605 | return 1; | |
5606 | } | |
5607 | ||
5608 | ||
5609 | static PyObject *_wrap_DefaultSize_get() { | |
5610 | PyObject *pyobj; | |
5611 | ||
15afbcd0 | 5612 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5613 | return pyobj; |
5614 | } | |
5615 | ||
5616 | ||
5617 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5618 | PyObject *resultobj; | |
5619 | PyObject *arg1 = (PyObject *) 0 ; | |
5620 | wxPyInputStream *result; | |
5621 | PyObject * obj0 = 0 ; | |
5622 | char *kwnames[] = { | |
5623 | (char *) "p", NULL | |
5624 | }; | |
5625 | ||
5626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5627 | arg1 = obj0; | |
5628 | { | |
5629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5630 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5631 | ||
5632 | wxPyEndAllowThreads(__tstate); | |
5633 | if (PyErr_Occurred()) SWIG_fail; | |
5634 | } | |
15afbcd0 | 5635 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5636 | return resultobj; |
5637 | fail: | |
5638 | return NULL; | |
5639 | } | |
5640 | ||
5641 | ||
5642 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5643 | PyObject *resultobj; | |
5644 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5645 | PyObject * obj0 = 0 ; | |
5646 | char *kwnames[] = { | |
5647 | (char *) "self", NULL | |
5648 | }; | |
5649 | ||
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5653 | { |
5654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5655 | (arg1)->close(); | |
5656 | ||
5657 | wxPyEndAllowThreads(__tstate); | |
5658 | if (PyErr_Occurred()) SWIG_fail; | |
5659 | } | |
5660 | Py_INCREF(Py_None); resultobj = Py_None; | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | return NULL; | |
5664 | } | |
5665 | ||
5666 | ||
5667 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5668 | PyObject *resultobj; | |
5669 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5670 | PyObject * obj0 = 0 ; | |
5671 | char *kwnames[] = { | |
5672 | (char *) "self", NULL | |
5673 | }; | |
5674 | ||
5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5678 | { |
5679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5680 | (arg1)->flush(); | |
5681 | ||
5682 | wxPyEndAllowThreads(__tstate); | |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
5684 | } | |
5685 | Py_INCREF(Py_None); resultobj = Py_None; | |
5686 | return resultobj; | |
5687 | fail: | |
5688 | return NULL; | |
5689 | } | |
5690 | ||
5691 | ||
5692 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5693 | PyObject *resultobj; | |
5694 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5695 | bool result; | |
5696 | PyObject * obj0 = 0 ; | |
5697 | char *kwnames[] = { | |
5698 | (char *) "self", NULL | |
5699 | }; | |
5700 | ||
5701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5704 | { |
5705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5706 | result = (bool)(arg1)->eof(); | |
5707 | ||
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
5710 | } | |
4f89f6a3 RD |
5711 | { |
5712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5713 | } | |
d14a1e28 RD |
5714 | return resultobj; |
5715 | fail: | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
5720 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj; | |
5722 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5723 | int arg2 = (int) -1 ; | |
5724 | PyObject *result; | |
5725 | PyObject * obj0 = 0 ; | |
994141e6 | 5726 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5727 | char *kwnames[] = { |
5728 | (char *) "self",(char *) "size", NULL | |
5729 | }; | |
5730 | ||
994141e6 | 5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5734 | if (obj1) { |
15afbcd0 RD |
5735 | arg2 = (int) SWIG_AsInt(obj1); |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5737 | } |
d14a1e28 RD |
5738 | { |
5739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5740 | result = (PyObject *)(arg1)->read(arg2); | |
5741 | ||
5742 | wxPyEndAllowThreads(__tstate); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | resultobj = result; | |
5746 | return resultobj; | |
5747 | fail: | |
5748 | return NULL; | |
5749 | } | |
5750 | ||
5751 | ||
5752 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5753 | PyObject *resultobj; | |
5754 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5755 | int arg2 = (int) -1 ; | |
5756 | PyObject *result; | |
5757 | PyObject * obj0 = 0 ; | |
994141e6 | 5758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5759 | char *kwnames[] = { |
5760 | (char *) "self",(char *) "size", NULL | |
5761 | }; | |
5762 | ||
994141e6 | 5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5766 | if (obj1) { |
15afbcd0 RD |
5767 | arg2 = (int) SWIG_AsInt(obj1); |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5769 | } |
d14a1e28 RD |
5770 | { |
5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5772 | result = (PyObject *)(arg1)->readline(arg2); | |
5773 | ||
5774 | wxPyEndAllowThreads(__tstate); | |
5775 | if (PyErr_Occurred()) SWIG_fail; | |
5776 | } | |
5777 | resultobj = result; | |
5778 | return resultobj; | |
5779 | fail: | |
5780 | return NULL; | |
5781 | } | |
5782 | ||
5783 | ||
5784 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5785 | PyObject *resultobj; | |
5786 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5787 | int arg2 = (int) -1 ; | |
5788 | PyObject *result; | |
5789 | PyObject * obj0 = 0 ; | |
994141e6 | 5790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5791 | char *kwnames[] = { |
5792 | (char *) "self",(char *) "sizehint", NULL | |
5793 | }; | |
5794 | ||
994141e6 | 5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5798 | if (obj1) { |
15afbcd0 RD |
5799 | arg2 = (int) SWIG_AsInt(obj1); |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5801 | } |
d14a1e28 RD |
5802 | { |
5803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5804 | result = (PyObject *)(arg1)->readlines(arg2); | |
5805 | ||
5806 | wxPyEndAllowThreads(__tstate); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
5809 | resultobj = result; | |
5810 | return resultobj; | |
5811 | fail: | |
5812 | return NULL; | |
5813 | } | |
5814 | ||
5815 | ||
5816 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5817 | PyObject *resultobj; | |
5818 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5819 | int arg2 ; | |
5820 | int arg3 = (int) 0 ; | |
5821 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5822 | PyObject * obj1 = 0 ; |
5823 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5824 | char *kwnames[] = { |
5825 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5826 | }; | |
5827 | ||
994141e6 | 5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5831 | arg2 = (int) SWIG_AsInt(obj1); | |
5832 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5833 | if (obj2) { |
15afbcd0 RD |
5834 | arg3 = (int) SWIG_AsInt(obj2); |
5835 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5836 | } |
d14a1e28 RD |
5837 | { |
5838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5839 | (arg1)->seek(arg2,arg3); | |
5840 | ||
5841 | wxPyEndAllowThreads(__tstate); | |
5842 | if (PyErr_Occurred()) SWIG_fail; | |
5843 | } | |
5844 | Py_INCREF(Py_None); resultobj = Py_None; | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
5851 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5852 | PyObject *resultobj; | |
5853 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5854 | int result; | |
5855 | PyObject * obj0 = 0 ; | |
5856 | char *kwnames[] = { | |
5857 | (char *) "self", NULL | |
5858 | }; | |
5859 | ||
5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5863 | { |
5864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5865 | result = (int)(arg1)->tell(); | |
5866 | ||
5867 | wxPyEndAllowThreads(__tstate); | |
5868 | if (PyErr_Occurred()) SWIG_fail; | |
5869 | } | |
15afbcd0 | 5870 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5871 | return resultobj; |
5872 | fail: | |
5873 | return NULL; | |
5874 | } | |
5875 | ||
5876 | ||
5877 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5878 | PyObject *resultobj; | |
5879 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5880 | char result; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | char *kwnames[] = { | |
5883 | (char *) "self", NULL | |
5884 | }; | |
5885 | ||
5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5889 | { |
5890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5891 | result = (char)(arg1)->Peek(); | |
5892 | ||
5893 | wxPyEndAllowThreads(__tstate); | |
5894 | if (PyErr_Occurred()) SWIG_fail; | |
5895 | } | |
15afbcd0 | 5896 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5897 | return resultobj; |
5898 | fail: | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
5903 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5904 | PyObject *resultobj; | |
5905 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5906 | char result; | |
5907 | PyObject * obj0 = 0 ; | |
5908 | char *kwnames[] = { | |
5909 | (char *) "self", NULL | |
5910 | }; | |
5911 | ||
5912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5915 | { |
5916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5917 | result = (char)(arg1)->GetC(); | |
5918 | ||
5919 | wxPyEndAllowThreads(__tstate); | |
5920 | if (PyErr_Occurred()) SWIG_fail; | |
5921 | } | |
15afbcd0 | 5922 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5923 | return resultobj; |
5924 | fail: | |
5925 | return NULL; | |
5926 | } | |
5927 | ||
5928 | ||
5929 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject *resultobj; | |
5931 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5932 | size_t result; | |
5933 | PyObject * obj0 = 0 ; | |
5934 | char *kwnames[] = { | |
5935 | (char *) "self", NULL | |
5936 | }; | |
5937 | ||
5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5941 | { |
5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5943 | result = (size_t)(arg1)->LastRead(); | |
5944 | ||
5945 | wxPyEndAllowThreads(__tstate); | |
5946 | if (PyErr_Occurred()) SWIG_fail; | |
5947 | } | |
15afbcd0 | 5948 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5949 | return resultobj; |
5950 | fail: | |
5951 | return NULL; | |
5952 | } | |
5953 | ||
5954 | ||
5955 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5956 | PyObject *resultobj; | |
5957 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5958 | bool result; | |
5959 | PyObject * obj0 = 0 ; | |
5960 | char *kwnames[] = { | |
5961 | (char *) "self", NULL | |
5962 | }; | |
5963 | ||
5964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5967 | { |
5968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5969 | result = (bool)(arg1)->CanRead(); | |
5970 | ||
5971 | wxPyEndAllowThreads(__tstate); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | } | |
4f89f6a3 RD |
5974 | { |
5975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5976 | } | |
d14a1e28 RD |
5977 | return resultobj; |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
5983 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject *resultobj; | |
5985 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5986 | bool result; | |
5987 | PyObject * obj0 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "self", NULL | |
5990 | }; | |
5991 | ||
5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5995 | { |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | result = (bool)(arg1)->Eof(); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
4f89f6a3 RD |
6002 | { |
6003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6004 | } | |
d14a1e28 RD |
6005 | return resultobj; |
6006 | fail: | |
6007 | return NULL; | |
6008 | } | |
6009 | ||
6010 | ||
6011 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6014 | char arg2 ; | |
6015 | bool result; | |
6016 | PyObject * obj0 = 0 ; | |
994141e6 | 6017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6018 | char *kwnames[] = { |
6019 | (char *) "self",(char *) "c", NULL | |
6020 | }; | |
6021 | ||
994141e6 | 6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6025 | arg2 = (char) SWIG_AsChar(obj1); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6027 | { |
6028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6029 | result = (bool)(arg1)->Ungetch(arg2); | |
6030 | ||
6031 | wxPyEndAllowThreads(__tstate); | |
6032 | if (PyErr_Occurred()) SWIG_fail; | |
6033 | } | |
4f89f6a3 RD |
6034 | { |
6035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6036 | } | |
d14a1e28 RD |
6037 | return resultobj; |
6038 | fail: | |
6039 | return NULL; | |
6040 | } | |
6041 | ||
6042 | ||
6043 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6044 | PyObject *resultobj; | |
6045 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6046 | long arg2 ; | |
6047 | int arg3 = (int) wxFromStart ; | |
6048 | long result; | |
6049 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6050 | PyObject * obj1 = 0 ; |
6051 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6052 | char *kwnames[] = { |
6053 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6054 | }; | |
6055 | ||
994141e6 | 6056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6059 | arg2 = (long) SWIG_AsLong(obj1); | |
6060 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6061 | if (obj2) { |
15afbcd0 RD |
6062 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
6063 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6064 | } |
d14a1e28 RD |
6065 | { |
6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6067 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6068 | ||
6069 | wxPyEndAllowThreads(__tstate); | |
6070 | if (PyErr_Occurred()) SWIG_fail; | |
6071 | } | |
15afbcd0 | 6072 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6073 | return resultobj; |
6074 | fail: | |
6075 | return NULL; | |
6076 | } | |
6077 | ||
6078 | ||
6079 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6080 | PyObject *resultobj; | |
6081 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6082 | long result; | |
6083 | PyObject * obj0 = 0 ; | |
6084 | char *kwnames[] = { | |
6085 | (char *) "self", NULL | |
6086 | }; | |
6087 | ||
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6091 | { |
6092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6093 | result = (long)(arg1)->TellI(); | |
6094 | ||
6095 | wxPyEndAllowThreads(__tstate); | |
6096 | if (PyErr_Occurred()) SWIG_fail; | |
6097 | } | |
15afbcd0 | 6098 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6099 | return resultobj; |
6100 | fail: | |
6101 | return NULL; | |
6102 | } | |
6103 | ||
6104 | ||
6105 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6106 | PyObject *obj; | |
6107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6108 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6109 | Py_INCREF(obj); | |
6110 | return Py_BuildValue((char *)""); | |
6111 | } | |
6112 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6113 | PyObject *resultobj; | |
6114 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6115 | PyObject *arg2 = (PyObject *) 0 ; | |
6116 | PyObject * obj0 = 0 ; | |
6117 | PyObject * obj1 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "self",(char *) "obj", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6125 | arg2 = obj1; |
6126 | { | |
6127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6128 | wxOutputStream_write(arg1,arg2); | |
6129 | ||
6130 | wxPyEndAllowThreads(__tstate); | |
6131 | if (PyErr_Occurred()) SWIG_fail; | |
6132 | } | |
6133 | Py_INCREF(Py_None); resultobj = Py_None; | |
6134 | return resultobj; | |
6135 | fail: | |
6136 | return NULL; | |
6137 | } | |
6138 | ||
6139 | ||
6140 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6141 | PyObject *obj; | |
6142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6143 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6144 | Py_INCREF(obj); | |
6145 | return Py_BuildValue((char *)""); | |
6146 | } | |
6147 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6148 | PyObject *resultobj; | |
6149 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6150 | wxString *arg2 = 0 ; | |
6151 | wxString *arg3 = 0 ; | |
6152 | wxString *arg4 = 0 ; | |
6153 | wxDateTime arg5 ; | |
6154 | wxFSFile *result; | |
6155 | wxPyInputStream *temp1 ; | |
6156 | bool created1 ; | |
e811c8ce RD |
6157 | bool temp2 = False ; |
6158 | bool temp3 = False ; | |
6159 | bool temp4 = False ; | |
d14a1e28 RD |
6160 | wxDateTime *argp5 ; |
6161 | PyObject * obj0 = 0 ; | |
6162 | PyObject * obj1 = 0 ; | |
6163 | PyObject * obj2 = 0 ; | |
6164 | PyObject * obj3 = 0 ; | |
6165 | PyObject * obj4 = 0 ; | |
6166 | char *kwnames[] = { | |
6167 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6168 | }; | |
6169 | ||
6170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6171 | { | |
6172 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6173 | arg1 = temp1->m_wxis; | |
e811c8ce | 6174 | created1 = False; |
d14a1e28 RD |
6175 | } else { |
6176 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 6177 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6178 | if (arg1 == NULL) { |
6179 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6180 | SWIG_fail; | |
6181 | } | |
e811c8ce | 6182 | created1 = True; |
d14a1e28 RD |
6183 | } |
6184 | } | |
6185 | { | |
6186 | arg2 = wxString_in_helper(obj1); | |
6187 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6188 | temp2 = True; |
d14a1e28 RD |
6189 | } |
6190 | { | |
6191 | arg3 = wxString_in_helper(obj2); | |
6192 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6193 | temp3 = True; |
d14a1e28 RD |
6194 | } |
6195 | { | |
6196 | arg4 = wxString_in_helper(obj3); | |
6197 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6198 | temp4 = True; |
d14a1e28 | 6199 | } |
15afbcd0 RD |
6200 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6201 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6202 | arg5 = *argp5; | |
d14a1e28 RD |
6203 | { |
6204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6205 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6206 | ||
6207 | wxPyEndAllowThreads(__tstate); | |
6208 | if (PyErr_Occurred()) SWIG_fail; | |
6209 | } | |
6210 | { | |
6211 | resultobj = wxPyMake_wxObject(result); | |
6212 | } | |
6213 | { | |
6214 | if (created1) | |
6215 | delete arg1; | |
6216 | } | |
6217 | { | |
6218 | if (temp2) | |
6219 | delete arg2; | |
6220 | } | |
6221 | { | |
6222 | if (temp3) | |
6223 | delete arg3; | |
6224 | } | |
6225 | { | |
6226 | if (temp4) | |
6227 | delete arg4; | |
6228 | } | |
6229 | return resultobj; | |
6230 | fail: | |
6231 | { | |
6232 | if (created1) | |
6233 | delete arg1; | |
6234 | } | |
6235 | { | |
6236 | if (temp2) | |
6237 | delete arg2; | |
6238 | } | |
6239 | { | |
6240 | if (temp3) | |
6241 | delete arg3; | |
6242 | } | |
6243 | { | |
6244 | if (temp4) | |
6245 | delete arg4; | |
6246 | } | |
6247 | return NULL; | |
6248 | } | |
6249 | ||
6250 | ||
6251 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6252 | PyObject *resultobj; | |
6253 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6254 | PyObject * obj0 = 0 ; | |
6255 | char *kwnames[] = { | |
6256 | (char *) "self", NULL | |
6257 | }; | |
6258 | ||
6259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6262 | { |
6263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6264 | delete arg1; | |
6265 | ||
6266 | wxPyEndAllowThreads(__tstate); | |
6267 | if (PyErr_Occurred()) SWIG_fail; | |
6268 | } | |
6269 | Py_INCREF(Py_None); resultobj = Py_None; | |
6270 | return resultobj; | |
6271 | fail: | |
6272 | return NULL; | |
6273 | } | |
6274 | ||
6275 | ||
6276 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6277 | PyObject *resultobj; | |
6278 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6279 | wxInputStream *result; | |
6280 | PyObject * obj0 = 0 ; | |
6281 | char *kwnames[] = { | |
6282 | (char *) "self", NULL | |
6283 | }; | |
6284 | ||
6285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6288 | { |
6289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6290 | result = (wxInputStream *)(arg1)->GetStream(); | |
6291 | ||
6292 | wxPyEndAllowThreads(__tstate); | |
6293 | if (PyErr_Occurred()) SWIG_fail; | |
6294 | } | |
6295 | { | |
6296 | wxPyInputStream * _ptr = NULL; | |
6297 | ||
6298 | if (result) { | |
6299 | _ptr = new wxPyInputStream(result); | |
6300 | } | |
e811c8ce | 6301 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6302 | } |
6303 | return resultobj; | |
6304 | fail: | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
6309 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6310 | PyObject *resultobj; | |
6311 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6312 | wxString *result; | |
6313 | PyObject * obj0 = 0 ; | |
6314 | char *kwnames[] = { | |
6315 | (char *) "self", NULL | |
6316 | }; | |
6317 | ||
6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6321 | { |
6322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6323 | { | |
6324 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6325 | result = (wxString *) &_result_ref; | |
6326 | } | |
6327 | ||
6328 | wxPyEndAllowThreads(__tstate); | |
6329 | if (PyErr_Occurred()) SWIG_fail; | |
6330 | } | |
cc6dd355 RD |
6331 | { |
6332 | #if wxUSE_UNICODE | |
6333 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6334 | #else | |
6335 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6336 | #endif | |
6337 | } | |
d14a1e28 RD |
6338 | return resultobj; |
6339 | fail: | |
6340 | return NULL; | |
6341 | } | |
6342 | ||
6343 | ||
6344 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6345 | PyObject *resultobj; | |
6346 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6347 | wxString *result; | |
6348 | PyObject * obj0 = 0 ; | |
6349 | char *kwnames[] = { | |
6350 | (char *) "self", NULL | |
6351 | }; | |
6352 | ||
6353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6356 | { |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | { | |
6359 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6360 | result = (wxString *) &_result_ref; | |
6361 | } | |
6362 | ||
6363 | wxPyEndAllowThreads(__tstate); | |
6364 | if (PyErr_Occurred()) SWIG_fail; | |
6365 | } | |
cc6dd355 RD |
6366 | { |
6367 | #if wxUSE_UNICODE | |
6368 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6369 | #else | |
6370 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6371 | #endif | |
6372 | } | |
d14a1e28 RD |
6373 | return resultobj; |
6374 | fail: | |
6375 | return NULL; | |
6376 | } | |
6377 | ||
6378 | ||
6379 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6380 | PyObject *resultobj; | |
6381 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6382 | wxString *result; | |
6383 | PyObject * obj0 = 0 ; | |
6384 | char *kwnames[] = { | |
6385 | (char *) "self", NULL | |
6386 | }; | |
6387 | ||
6388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6391 | { |
6392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6393 | { | |
6394 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6395 | result = (wxString *) &_result_ref; | |
6396 | } | |
6397 | ||
6398 | wxPyEndAllowThreads(__tstate); | |
6399 | if (PyErr_Occurred()) SWIG_fail; | |
6400 | } | |
cc6dd355 RD |
6401 | { |
6402 | #if wxUSE_UNICODE | |
6403 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6404 | #else | |
6405 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6406 | #endif | |
6407 | } | |
d14a1e28 RD |
6408 | return resultobj; |
6409 | fail: | |
6410 | return NULL; | |
6411 | } | |
6412 | ||
6413 | ||
6414 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6415 | PyObject *resultobj; | |
6416 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6417 | wxDateTime result; | |
6418 | PyObject * obj0 = 0 ; | |
6419 | char *kwnames[] = { | |
6420 | (char *) "self", NULL | |
6421 | }; | |
6422 | ||
6423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6426 | { |
6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6428 | result = (arg1)->GetModificationTime(); | |
6429 | ||
6430 | wxPyEndAllowThreads(__tstate); | |
6431 | if (PyErr_Occurred()) SWIG_fail; | |
6432 | } | |
6433 | { | |
6434 | wxDateTime * resultptr; | |
6435 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 6436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6437 | } |
6438 | return resultobj; | |
6439 | fail: | |
6440 | return NULL; | |
6441 | } | |
6442 | ||
6443 | ||
6444 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6445 | PyObject *obj; | |
6446 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6447 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6448 | Py_INCREF(obj); | |
6449 | return Py_BuildValue((char *)""); | |
6450 | } | |
6451 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6452 | PyObject *obj; | |
6453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6454 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6455 | Py_INCREF(obj); | |
6456 | return Py_BuildValue((char *)""); | |
6457 | } | |
6458 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6459 | PyObject *resultobj; | |
6460 | wxPyFileSystemHandler *result; | |
6461 | char *kwnames[] = { | |
6462 | NULL | |
6463 | }; | |
6464 | ||
6465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6466 | { | |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
15afbcd0 | 6473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6474 | return resultobj; |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6481 | PyObject *resultobj; | |
6482 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6483 | PyObject *arg2 = (PyObject *) 0 ; | |
6484 | PyObject *arg3 = (PyObject *) 0 ; | |
6485 | PyObject * obj0 = 0 ; | |
6486 | PyObject * obj1 = 0 ; | |
6487 | PyObject * obj2 = 0 ; | |
6488 | char *kwnames[] = { | |
6489 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6490 | }; | |
6491 | ||
6492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6495 | arg2 = obj1; |
6496 | arg3 = obj2; | |
6497 | { | |
6498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6499 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6500 | ||
6501 | wxPyEndAllowThreads(__tstate); | |
6502 | if (PyErr_Occurred()) SWIG_fail; | |
6503 | } | |
6504 | Py_INCREF(Py_None); resultobj = Py_None; | |
6505 | return resultobj; | |
6506 | fail: | |
6507 | return NULL; | |
6508 | } | |
6509 | ||
6510 | ||
6511 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6512 | PyObject *resultobj; | |
6513 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6514 | wxString *arg2 = 0 ; | |
6515 | bool result; | |
e811c8ce | 6516 | bool temp2 = False ; |
d14a1e28 RD |
6517 | PyObject * obj0 = 0 ; |
6518 | PyObject * obj1 = 0 ; | |
6519 | char *kwnames[] = { | |
6520 | (char *) "self",(char *) "location", NULL | |
6521 | }; | |
6522 | ||
6523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6526 | { |
6527 | arg2 = wxString_in_helper(obj1); | |
6528 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6529 | temp2 = True; |
d14a1e28 RD |
6530 | } |
6531 | { | |
6532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6533 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6534 | ||
6535 | wxPyEndAllowThreads(__tstate); | |
6536 | if (PyErr_Occurred()) SWIG_fail; | |
6537 | } | |
4f89f6a3 RD |
6538 | { |
6539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6540 | } | |
d14a1e28 RD |
6541 | { |
6542 | if (temp2) | |
6543 | delete arg2; | |
6544 | } | |
6545 | return resultobj; | |
6546 | fail: | |
6547 | { | |
6548 | if (temp2) | |
6549 | delete arg2; | |
6550 | } | |
6551 | return NULL; | |
6552 | } | |
6553 | ||
6554 | ||
6555 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6556 | PyObject *resultobj; | |
6557 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6558 | wxFileSystem *arg2 = 0 ; | |
6559 | wxString *arg3 = 0 ; | |
6560 | wxFSFile *result; | |
e811c8ce | 6561 | bool temp3 = False ; |
d14a1e28 RD |
6562 | PyObject * obj0 = 0 ; |
6563 | PyObject * obj1 = 0 ; | |
6564 | PyObject * obj2 = 0 ; | |
6565 | char *kwnames[] = { | |
6566 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6567 | }; | |
6568 | ||
6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6574 | SWIG_fail; | |
d14a1e28 | 6575 | if (arg2 == NULL) { |
15afbcd0 RD |
6576 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6577 | SWIG_fail; | |
d14a1e28 RD |
6578 | } |
6579 | { | |
6580 | arg3 = wxString_in_helper(obj2); | |
6581 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6582 | temp3 = True; |
d14a1e28 RD |
6583 | } |
6584 | { | |
6585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6586 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6587 | ||
6588 | wxPyEndAllowThreads(__tstate); | |
6589 | if (PyErr_Occurred()) SWIG_fail; | |
6590 | } | |
6591 | { | |
6592 | resultobj = wxPyMake_wxObject(result); | |
6593 | } | |
6594 | { | |
6595 | if (temp3) | |
6596 | delete arg3; | |
6597 | } | |
6598 | return resultobj; | |
6599 | fail: | |
6600 | { | |
6601 | if (temp3) | |
6602 | delete arg3; | |
6603 | } | |
6604 | return NULL; | |
6605 | } | |
6606 | ||
6607 | ||
6608 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6609 | PyObject *resultobj; | |
6610 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6611 | wxString *arg2 = 0 ; | |
6612 | int arg3 = (int) 0 ; | |
6613 | wxString result; | |
e811c8ce | 6614 | bool temp2 = False ; |
d14a1e28 RD |
6615 | PyObject * obj0 = 0 ; |
6616 | PyObject * obj1 = 0 ; | |
994141e6 | 6617 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6618 | char *kwnames[] = { |
6619 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6620 | }; | |
6621 | ||
994141e6 | 6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6625 | { |
6626 | arg2 = wxString_in_helper(obj1); | |
6627 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6628 | temp2 = True; |
d14a1e28 | 6629 | } |
994141e6 | 6630 | if (obj2) { |
15afbcd0 RD |
6631 | arg3 = (int) SWIG_AsInt(obj2); |
6632 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6633 | } |
d14a1e28 RD |
6634 | { |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6636 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
6639 | if (PyErr_Occurred()) SWIG_fail; | |
6640 | } | |
6641 | { | |
6642 | #if wxUSE_UNICODE | |
6643 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6644 | #else | |
6645 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6646 | #endif | |
6647 | } | |
6648 | { | |
6649 | if (temp2) | |
6650 | delete arg2; | |
6651 | } | |
6652 | return resultobj; | |
6653 | fail: | |
6654 | { | |
6655 | if (temp2) | |
6656 | delete arg2; | |
6657 | } | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6665 | wxString result; | |
6666 | PyObject * obj0 = 0 ; | |
6667 | char *kwnames[] = { | |
6668 | (char *) "self", NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6674 | { |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | result = (arg1)->FindNext(); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
6679 | if (PyErr_Occurred()) SWIG_fail; | |
6680 | } | |
6681 | { | |
6682 | #if wxUSE_UNICODE | |
6683 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6684 | #else | |
6685 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6686 | #endif | |
6687 | } | |
6688 | return resultobj; | |
6689 | fail: | |
6690 | return NULL; | |
6691 | } | |
6692 | ||
6693 | ||
6694 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6695 | PyObject *resultobj; | |
6696 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6697 | wxString *arg2 = 0 ; | |
6698 | wxString result; | |
e811c8ce | 6699 | bool temp2 = False ; |
d14a1e28 RD |
6700 | PyObject * obj0 = 0 ; |
6701 | PyObject * obj1 = 0 ; | |
6702 | char *kwnames[] = { | |
6703 | (char *) "self",(char *) "location", NULL | |
6704 | }; | |
6705 | ||
6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6709 | { |
6710 | arg2 = wxString_in_helper(obj1); | |
6711 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6712 | temp2 = True; |
d14a1e28 RD |
6713 | } |
6714 | { | |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6717 | ||
6718 | wxPyEndAllowThreads(__tstate); | |
6719 | if (PyErr_Occurred()) SWIG_fail; | |
6720 | } | |
6721 | { | |
6722 | #if wxUSE_UNICODE | |
6723 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6724 | #else | |
6725 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6726 | #endif | |
6727 | } | |
6728 | { | |
6729 | if (temp2) | |
6730 | delete arg2; | |
6731 | } | |
6732 | return resultobj; | |
6733 | fail: | |
6734 | { | |
6735 | if (temp2) | |
6736 | delete arg2; | |
6737 | } | |
6738 | return NULL; | |
6739 | } | |
6740 | ||
6741 | ||
6742 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6743 | PyObject *resultobj; | |
6744 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6745 | wxString *arg2 = 0 ; | |
6746 | wxString result; | |
e811c8ce | 6747 | bool temp2 = False ; |
d14a1e28 RD |
6748 | PyObject * obj0 = 0 ; |
6749 | PyObject * obj1 = 0 ; | |
6750 | char *kwnames[] = { | |
6751 | (char *) "self",(char *) "location", NULL | |
6752 | }; | |
6753 | ||
6754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6757 | { |
6758 | arg2 = wxString_in_helper(obj1); | |
6759 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6760 | temp2 = True; |
d14a1e28 RD |
6761 | } |
6762 | { | |
6763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6764 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6765 | ||
6766 | wxPyEndAllowThreads(__tstate); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
6769 | { | |
6770 | #if wxUSE_UNICODE | |
6771 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6772 | #else | |
6773 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6774 | #endif | |
6775 | } | |
6776 | { | |
6777 | if (temp2) | |
6778 | delete arg2; | |
6779 | } | |
6780 | return resultobj; | |
6781 | fail: | |
6782 | { | |
6783 | if (temp2) | |
6784 | delete arg2; | |
6785 | } | |
6786 | return NULL; | |
6787 | } | |
6788 | ||
6789 | ||
6790 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6791 | PyObject *resultobj; | |
6792 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6793 | wxString *arg2 = 0 ; | |
6794 | wxString result; | |
e811c8ce | 6795 | bool temp2 = False ; |
d14a1e28 RD |
6796 | PyObject * obj0 = 0 ; |
6797 | PyObject * obj1 = 0 ; | |
6798 | char *kwnames[] = { | |
6799 | (char *) "self",(char *) "location", NULL | |
6800 | }; | |
6801 | ||
6802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6805 | { |
6806 | arg2 = wxString_in_helper(obj1); | |
6807 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6808 | temp2 = True; |
d14a1e28 RD |
6809 | } |
6810 | { | |
6811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6812 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6813 | ||
6814 | wxPyEndAllowThreads(__tstate); | |
6815 | if (PyErr_Occurred()) SWIG_fail; | |
6816 | } | |
6817 | { | |
6818 | #if wxUSE_UNICODE | |
6819 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6820 | #else | |
6821 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6822 | #endif | |
6823 | } | |
6824 | { | |
6825 | if (temp2) | |
6826 | delete arg2; | |
6827 | } | |
6828 | return resultobj; | |
6829 | fail: | |
6830 | { | |
6831 | if (temp2) | |
6832 | delete arg2; | |
6833 | } | |
6834 | return NULL; | |
6835 | } | |
6836 | ||
6837 | ||
6838 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6839 | PyObject *resultobj; | |
6840 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6841 | wxString *arg2 = 0 ; | |
6842 | wxString result; | |
e811c8ce | 6843 | bool temp2 = False ; |
d14a1e28 RD |
6844 | PyObject * obj0 = 0 ; |
6845 | PyObject * obj1 = 0 ; | |
6846 | char *kwnames[] = { | |
6847 | (char *) "self",(char *) "location", NULL | |
6848 | }; | |
6849 | ||
6850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6853 | { |
6854 | arg2 = wxString_in_helper(obj1); | |
6855 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6856 | temp2 = True; |
d14a1e28 RD |
6857 | } |
6858 | { | |
6859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6860 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6861 | ||
6862 | wxPyEndAllowThreads(__tstate); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | } | |
6865 | { | |
6866 | #if wxUSE_UNICODE | |
6867 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6868 | #else | |
6869 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6870 | #endif | |
6871 | } | |
6872 | { | |
6873 | if (temp2) | |
6874 | delete arg2; | |
6875 | } | |
6876 | return resultobj; | |
6877 | fail: | |
6878 | { | |
6879 | if (temp2) | |
6880 | delete arg2; | |
6881 | } | |
6882 | return NULL; | |
6883 | } | |
6884 | ||
6885 | ||
6886 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6887 | PyObject *resultobj; | |
6888 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6889 | wxString *arg2 = 0 ; | |
6890 | wxString result; | |
e811c8ce | 6891 | bool temp2 = False ; |
d14a1e28 RD |
6892 | PyObject * obj0 = 0 ; |
6893 | PyObject * obj1 = 0 ; | |
6894 | char *kwnames[] = { | |
6895 | (char *) "self",(char *) "location", NULL | |
6896 | }; | |
6897 | ||
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6901 | { |
6902 | arg2 = wxString_in_helper(obj1); | |
6903 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6904 | temp2 = True; |
d14a1e28 RD |
6905 | } |
6906 | { | |
6907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6908 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6909 | ||
6910 | wxPyEndAllowThreads(__tstate); | |
6911 | if (PyErr_Occurred()) SWIG_fail; | |
6912 | } | |
6913 | { | |
6914 | #if wxUSE_UNICODE | |
6915 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6916 | #else | |
6917 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6918 | #endif | |
6919 | } | |
6920 | { | |
6921 | if (temp2) | |
6922 | delete arg2; | |
6923 | } | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | { | |
6927 | if (temp2) | |
6928 | delete arg2; | |
6929 | } | |
6930 | return NULL; | |
6931 | } | |
6932 | ||
6933 | ||
6934 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6935 | PyObject *obj; | |
6936 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6937 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6938 | Py_INCREF(obj); | |
6939 | return Py_BuildValue((char *)""); | |
6940 | } | |
6941 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject *resultobj; | |
6943 | wxFileSystem *result; | |
6944 | char *kwnames[] = { | |
6945 | NULL | |
6946 | }; | |
6947 | ||
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6949 | { | |
6950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6951 | result = (wxFileSystem *)new wxFileSystem(); | |
6952 | ||
6953 | wxPyEndAllowThreads(__tstate); | |
6954 | if (PyErr_Occurred()) SWIG_fail; | |
6955 | } | |
6956 | { | |
6957 | resultobj = wxPyMake_wxObject(result); | |
6958 | } | |
6959 | return resultobj; | |
6960 | fail: | |
6961 | return NULL; | |
6962 | } | |
6963 | ||
6964 | ||
6965 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6966 | PyObject *resultobj; | |
6967 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | char *kwnames[] = { | |
6970 | (char *) "self", NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6976 | { |
6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6978 | delete arg1; | |
6979 | ||
6980 | wxPyEndAllowThreads(__tstate); | |
6981 | if (PyErr_Occurred()) SWIG_fail; | |
6982 | } | |
6983 | Py_INCREF(Py_None); resultobj = Py_None; | |
6984 | return resultobj; | |
6985 | fail: | |
6986 | return NULL; | |
6987 | } | |
6988 | ||
6989 | ||
6990 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6991 | PyObject *resultobj; | |
6992 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6993 | wxString *arg2 = 0 ; | |
e811c8ce RD |
6994 | bool arg3 = (bool) False ; |
6995 | bool temp2 = False ; | |
d14a1e28 RD |
6996 | PyObject * obj0 = 0 ; |
6997 | PyObject * obj1 = 0 ; | |
6998 | PyObject * obj2 = 0 ; | |
6999 | char *kwnames[] = { | |
7000 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7001 | }; | |
7002 | ||
7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7006 | { |
7007 | arg2 = wxString_in_helper(obj1); | |
7008 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7009 | temp2 = True; |
d14a1e28 RD |
7010 | } |
7011 | if (obj2) { | |
15afbcd0 RD |
7012 | arg3 = (bool) SWIG_AsBool(obj2); |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7014 | } |
7015 | { | |
7016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7017 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7018 | ||
7019 | wxPyEndAllowThreads(__tstate); | |
7020 | if (PyErr_Occurred()) SWIG_fail; | |
7021 | } | |
7022 | Py_INCREF(Py_None); resultobj = Py_None; | |
7023 | { | |
7024 | if (temp2) | |
7025 | delete arg2; | |
7026 | } | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | { | |
7030 | if (temp2) | |
7031 | delete arg2; | |
7032 | } | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
7037 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7038 | PyObject *resultobj; | |
7039 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7040 | wxString result; | |
7041 | PyObject * obj0 = 0 ; | |
7042 | char *kwnames[] = { | |
7043 | (char *) "self", NULL | |
7044 | }; | |
7045 | ||
7046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7049 | { |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | result = (arg1)->GetPath(); | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
7056 | { | |
7057 | #if wxUSE_UNICODE | |
7058 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7059 | #else | |
7060 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7061 | #endif | |
7062 | } | |
7063 | return resultobj; | |
7064 | fail: | |
7065 | return NULL; | |
7066 | } | |
7067 | ||
7068 | ||
7069 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7070 | PyObject *resultobj; | |
7071 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7072 | wxString *arg2 = 0 ; | |
7073 | wxFSFile *result; | |
e811c8ce | 7074 | bool temp2 = False ; |
d14a1e28 RD |
7075 | PyObject * obj0 = 0 ; |
7076 | PyObject * obj1 = 0 ; | |
7077 | char *kwnames[] = { | |
7078 | (char *) "self",(char *) "location", NULL | |
7079 | }; | |
7080 | ||
7081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7084 | { |
7085 | arg2 = wxString_in_helper(obj1); | |
7086 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7087 | temp2 = True; |
d14a1e28 RD |
7088 | } |
7089 | { | |
7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7091 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7092 | ||
7093 | wxPyEndAllowThreads(__tstate); | |
7094 | if (PyErr_Occurred()) SWIG_fail; | |
7095 | } | |
7096 | { | |
7097 | resultobj = wxPyMake_wxObject(result); | |
7098 | } | |
7099 | { | |
7100 | if (temp2) | |
7101 | delete arg2; | |
7102 | } | |
7103 | return resultobj; | |
7104 | fail: | |
7105 | { | |
7106 | if (temp2) | |
7107 | delete arg2; | |
7108 | } | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj; | |
7115 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7116 | wxString *arg2 = 0 ; | |
7117 | int arg3 = (int) 0 ; | |
7118 | wxString result; | |
e811c8ce | 7119 | bool temp2 = False ; |
d14a1e28 RD |
7120 | PyObject * obj0 = 0 ; |
7121 | PyObject * obj1 = 0 ; | |
994141e6 | 7122 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7123 | char *kwnames[] = { |
7124 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7125 | }; | |
7126 | ||
994141e6 | 7127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7130 | { |
7131 | arg2 = wxString_in_helper(obj1); | |
7132 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7133 | temp2 = True; |
d14a1e28 | 7134 | } |
994141e6 | 7135 | if (obj2) { |
15afbcd0 RD |
7136 | arg3 = (int) SWIG_AsInt(obj2); |
7137 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7138 | } |
d14a1e28 RD |
7139 | { |
7140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7141 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7142 | ||
7143 | wxPyEndAllowThreads(__tstate); | |
7144 | if (PyErr_Occurred()) SWIG_fail; | |
7145 | } | |
7146 | { | |
7147 | #if wxUSE_UNICODE | |
7148 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7149 | #else | |
7150 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7151 | #endif | |
7152 | } | |
7153 | { | |
7154 | if (temp2) | |
7155 | delete arg2; | |
7156 | } | |
7157 | return resultobj; | |
7158 | fail: | |
7159 | { | |
7160 | if (temp2) | |
7161 | delete arg2; | |
7162 | } | |
7163 | return NULL; | |
7164 | } | |
7165 | ||
7166 | ||
7167 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7168 | PyObject *resultobj; | |
7169 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7170 | wxString result; | |
7171 | PyObject * obj0 = 0 ; | |
7172 | char *kwnames[] = { | |
7173 | (char *) "self", NULL | |
7174 | }; | |
7175 | ||
7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7179 | { |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (arg1)->FindNext(); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | { | |
7187 | #if wxUSE_UNICODE | |
7188 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7189 | #else | |
7190 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7191 | #endif | |
7192 | } | |
7193 | return resultobj; | |
7194 | fail: | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "handler", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7210 | { |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | wxFileSystem::AddHandler(arg1); | |
7213 | ||
7214 | wxPyEndAllowThreads(__tstate); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | Py_INCREF(Py_None); resultobj = Py_None; | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj; | |
7226 | char *kwnames[] = { | |
7227 | NULL | |
7228 | }; | |
7229 | ||
7230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7231 | { | |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7233 | wxFileSystem::CleanUpHandlers(); | |
7234 | ||
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
7238 | Py_INCREF(Py_None); resultobj = Py_None; | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | return NULL; | |
7242 | } | |
7243 | ||
7244 | ||
7245 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxString *arg1 = 0 ; | |
7248 | wxString result; | |
e811c8ce | 7249 | bool temp1 = False ; |
d14a1e28 RD |
7250 | PyObject * obj0 = 0 ; |
7251 | char *kwnames[] = { | |
7252 | (char *) "filename", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7256 | { | |
7257 | arg1 = wxString_in_helper(obj0); | |
7258 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7259 | temp1 = True; |
d14a1e28 RD |
7260 | } |
7261 | { | |
7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7263 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7264 | ||
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
7268 | { | |
7269 | #if wxUSE_UNICODE | |
7270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7271 | #else | |
7272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7273 | #endif | |
7274 | } | |
7275 | { | |
7276 | if (temp1) | |
7277 | delete arg1; | |
7278 | } | |
7279 | return resultobj; | |
7280 | fail: | |
7281 | { | |
7282 | if (temp1) | |
7283 | delete arg1; | |
7284 | } | |
7285 | return NULL; | |
7286 | } | |
7287 | ||
7288 | ||
7289 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7290 | PyObject *obj; | |
7291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7292 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7293 | Py_INCREF(obj); | |
7294 | return Py_BuildValue((char *)""); | |
7295 | } | |
7296 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | wxString *arg1 = 0 ; | |
7299 | wxString result; | |
e811c8ce | 7300 | bool temp1 = False ; |
d14a1e28 RD |
7301 | PyObject * obj0 = 0 ; |
7302 | char *kwnames[] = { | |
7303 | (char *) "url", NULL | |
7304 | }; | |
7305 | ||
7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7307 | { | |
7308 | arg1 = wxString_in_helper(obj0); | |
7309 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7310 | temp1 = True; |
d14a1e28 RD |
7311 | } |
7312 | { | |
7313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7314 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7315 | ||
7316 | wxPyEndAllowThreads(__tstate); | |
7317 | if (PyErr_Occurred()) SWIG_fail; | |
7318 | } | |
7319 | { | |
7320 | #if wxUSE_UNICODE | |
7321 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7322 | #else | |
7323 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7324 | #endif | |
7325 | } | |
7326 | { | |
7327 | if (temp1) | |
7328 | delete arg1; | |
7329 | } | |
7330 | return resultobj; | |
7331 | fail: | |
7332 | { | |
7333 | if (temp1) | |
7334 | delete arg1; | |
7335 | } | |
7336 | return NULL; | |
7337 | } | |
7338 | ||
7339 | ||
7340 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject *resultobj; | |
7342 | wxInternetFSHandler *result; | |
7343 | char *kwnames[] = { | |
7344 | NULL | |
7345 | }; | |
7346 | ||
7347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7348 | { | |
7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7350 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7351 | ||
7352 | wxPyEndAllowThreads(__tstate); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
15afbcd0 | 7355 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7356 | return resultobj; |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7365 | wxString *arg2 = 0 ; | |
7366 | bool result; | |
e811c8ce | 7367 | bool temp2 = False ; |
d14a1e28 RD |
7368 | PyObject * obj0 = 0 ; |
7369 | PyObject * obj1 = 0 ; | |
7370 | char *kwnames[] = { | |
7371 | (char *) "self",(char *) "location", NULL | |
7372 | }; | |
7373 | ||
7374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7377 | { |
7378 | arg2 = wxString_in_helper(obj1); | |
7379 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7380 | temp2 = True; |
d14a1e28 RD |
7381 | } |
7382 | { | |
7383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7384 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7385 | ||
7386 | wxPyEndAllowThreads(__tstate); | |
7387 | if (PyErr_Occurred()) SWIG_fail; | |
7388 | } | |
4f89f6a3 RD |
7389 | { |
7390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7391 | } | |
d14a1e28 RD |
7392 | { |
7393 | if (temp2) | |
7394 | delete arg2; | |
7395 | } | |
7396 | return resultobj; | |
7397 | fail: | |
7398 | { | |
7399 | if (temp2) | |
7400 | delete arg2; | |
7401 | } | |
7402 | return NULL; | |
7403 | } | |
7404 | ||
7405 | ||
7406 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7407 | PyObject *resultobj; | |
7408 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7409 | wxFileSystem *arg2 = 0 ; | |
7410 | wxString *arg3 = 0 ; | |
7411 | wxFSFile *result; | |
e811c8ce | 7412 | bool temp3 = False ; |
d14a1e28 RD |
7413 | PyObject * obj0 = 0 ; |
7414 | PyObject * obj1 = 0 ; | |
7415 | PyObject * obj2 = 0 ; | |
7416 | char *kwnames[] = { | |
7417 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7418 | }; | |
7419 | ||
7420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7424 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7425 | SWIG_fail; | |
d14a1e28 | 7426 | if (arg2 == NULL) { |
15afbcd0 RD |
7427 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7428 | SWIG_fail; | |
d14a1e28 RD |
7429 | } |
7430 | { | |
7431 | arg3 = wxString_in_helper(obj2); | |
7432 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7433 | temp3 = True; |
d14a1e28 RD |
7434 | } |
7435 | { | |
7436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7437 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7438 | ||
7439 | wxPyEndAllowThreads(__tstate); | |
7440 | if (PyErr_Occurred()) SWIG_fail; | |
7441 | } | |
7442 | { | |
7443 | resultobj = wxPyMake_wxObject(result); | |
7444 | } | |
7445 | { | |
7446 | if (temp3) | |
7447 | delete arg3; | |
7448 | } | |
7449 | return resultobj; | |
7450 | fail: | |
7451 | { | |
7452 | if (temp3) | |
7453 | delete arg3; | |
7454 | } | |
7455 | return NULL; | |
7456 | } | |
7457 | ||
7458 | ||
7459 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7460 | PyObject *obj; | |
7461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7462 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7463 | Py_INCREF(obj); | |
7464 | return Py_BuildValue((char *)""); | |
7465 | } | |
7466 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7467 | PyObject *resultobj; | |
7468 | wxZipFSHandler *result; | |
7469 | char *kwnames[] = { | |
7470 | NULL | |
7471 | }; | |
7472 | ||
7473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
15afbcd0 | 7481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7482 | return resultobj; |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject *resultobj; | |
7490 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7491 | wxString *arg2 = 0 ; | |
7492 | bool result; | |
e811c8ce | 7493 | bool temp2 = False ; |
d14a1e28 RD |
7494 | PyObject * obj0 = 0 ; |
7495 | PyObject * obj1 = 0 ; | |
7496 | char *kwnames[] = { | |
7497 | (char *) "self",(char *) "location", NULL | |
7498 | }; | |
7499 | ||
7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7503 | { |
7504 | arg2 = wxString_in_helper(obj1); | |
7505 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7506 | temp2 = True; |
d14a1e28 RD |
7507 | } |
7508 | { | |
7509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7510 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7511 | ||
7512 | wxPyEndAllowThreads(__tstate); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | } | |
4f89f6a3 RD |
7515 | { |
7516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7517 | } | |
d14a1e28 RD |
7518 | { |
7519 | if (temp2) | |
7520 | delete arg2; | |
7521 | } | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | { | |
7525 | if (temp2) | |
7526 | delete arg2; | |
7527 | } | |
7528 | return NULL; | |
7529 | } | |
7530 | ||
7531 | ||
7532 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7533 | PyObject *resultobj; | |
7534 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7535 | wxFileSystem *arg2 = 0 ; | |
7536 | wxString *arg3 = 0 ; | |
7537 | wxFSFile *result; | |
e811c8ce | 7538 | bool temp3 = False ; |
d14a1e28 RD |
7539 | PyObject * obj0 = 0 ; |
7540 | PyObject * obj1 = 0 ; | |
7541 | PyObject * obj2 = 0 ; | |
7542 | char *kwnames[] = { | |
7543 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7544 | }; | |
7545 | ||
7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7550 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7551 | SWIG_fail; | |
d14a1e28 | 7552 | if (arg2 == NULL) { |
15afbcd0 RD |
7553 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7554 | SWIG_fail; | |
d14a1e28 RD |
7555 | } |
7556 | { | |
7557 | arg3 = wxString_in_helper(obj2); | |
7558 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7559 | temp3 = True; |
d14a1e28 RD |
7560 | } |
7561 | { | |
7562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7563 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7564 | ||
7565 | wxPyEndAllowThreads(__tstate); | |
7566 | if (PyErr_Occurred()) SWIG_fail; | |
7567 | } | |
7568 | { | |
7569 | resultobj = wxPyMake_wxObject(result); | |
7570 | } | |
7571 | { | |
7572 | if (temp3) | |
7573 | delete arg3; | |
7574 | } | |
7575 | return resultobj; | |
7576 | fail: | |
7577 | { | |
7578 | if (temp3) | |
7579 | delete arg3; | |
7580 | } | |
7581 | return NULL; | |
7582 | } | |
7583 | ||
7584 | ||
7585 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7586 | PyObject *resultobj; | |
7587 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7588 | wxString *arg2 = 0 ; | |
7589 | int arg3 = (int) 0 ; | |
7590 | wxString result; | |
e811c8ce | 7591 | bool temp2 = False ; |
d14a1e28 RD |
7592 | PyObject * obj0 = 0 ; |
7593 | PyObject * obj1 = 0 ; | |
994141e6 | 7594 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7595 | char *kwnames[] = { |
7596 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7597 | }; | |
7598 | ||
994141e6 | 7599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7602 | { |
7603 | arg2 = wxString_in_helper(obj1); | |
7604 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7605 | temp2 = True; |
d14a1e28 | 7606 | } |
994141e6 | 7607 | if (obj2) { |
15afbcd0 RD |
7608 | arg3 = (int) SWIG_AsInt(obj2); |
7609 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7610 | } |
d14a1e28 RD |
7611 | { |
7612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7613 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7614 | ||
7615 | wxPyEndAllowThreads(__tstate); | |
7616 | if (PyErr_Occurred()) SWIG_fail; | |
7617 | } | |
7618 | { | |
7619 | #if wxUSE_UNICODE | |
7620 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7621 | #else | |
7622 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7623 | #endif | |
7624 | } | |
7625 | { | |
7626 | if (temp2) | |
7627 | delete arg2; | |
7628 | } | |
7629 | return resultobj; | |
7630 | fail: | |
7631 | { | |
7632 | if (temp2) | |
7633 | delete arg2; | |
7634 | } | |
7635 | return NULL; | |
7636 | } | |
7637 | ||
7638 | ||
7639 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7640 | PyObject *resultobj; | |
7641 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7642 | wxString result; | |
7643 | PyObject * obj0 = 0 ; | |
7644 | char *kwnames[] = { | |
7645 | (char *) "self", NULL | |
7646 | }; | |
7647 | ||
7648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7651 | { |
7652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7653 | result = (arg1)->FindNext(); | |
7654 | ||
7655 | wxPyEndAllowThreads(__tstate); | |
7656 | if (PyErr_Occurred()) SWIG_fail; | |
7657 | } | |
7658 | { | |
7659 | #if wxUSE_UNICODE | |
7660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7661 | #else | |
7662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7663 | #endif | |
7664 | } | |
7665 | return resultobj; | |
7666 | fail: | |
7667 | return NULL; | |
7668 | } | |
7669 | ||
7670 | ||
7671 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7672 | PyObject *obj; | |
7673 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7674 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7675 | Py_INCREF(obj); | |
7676 | return Py_BuildValue((char *)""); | |
7677 | } | |
7678 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7679 | PyObject *resultobj; | |
7680 | wxString *arg1 = 0 ; | |
7681 | wxImage *arg2 = 0 ; | |
7682 | long arg3 ; | |
e811c8ce | 7683 | bool temp1 = False ; |
d14a1e28 RD |
7684 | PyObject * obj0 = 0 ; |
7685 | PyObject * obj1 = 0 ; | |
994141e6 | 7686 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7687 | char *kwnames[] = { |
7688 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7689 | }; | |
7690 | ||
994141e6 | 7691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7692 | { |
7693 | arg1 = wxString_in_helper(obj0); | |
7694 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7695 | temp1 = True; |
d14a1e28 | 7696 | } |
15afbcd0 RD |
7697 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7698 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7699 | SWIG_fail; | |
d14a1e28 | 7700 | if (arg2 == NULL) { |
15afbcd0 RD |
7701 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7702 | SWIG_fail; | |
994141e6 | 7703 | } |
15afbcd0 RD |
7704 | arg3 = (long) SWIG_AsLong(obj2); |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7706 | { |
7707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7708 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7709 | ||
7710 | wxPyEndAllowThreads(__tstate); | |
7711 | if (PyErr_Occurred()) SWIG_fail; | |
7712 | } | |
7713 | Py_INCREF(Py_None); resultobj = Py_None; | |
7714 | { | |
7715 | if (temp1) | |
7716 | delete arg1; | |
7717 | } | |
7718 | return resultobj; | |
7719 | fail: | |
7720 | { | |
7721 | if (temp1) | |
7722 | delete arg1; | |
7723 | } | |
7724 | return NULL; | |
7725 | } | |
7726 | ||
7727 | ||
7728 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7729 | PyObject *resultobj; | |
7730 | wxString *arg1 = 0 ; | |
7731 | wxBitmap *arg2 = 0 ; | |
7732 | long arg3 ; | |
e811c8ce | 7733 | bool temp1 = False ; |
d14a1e28 RD |
7734 | PyObject * obj0 = 0 ; |
7735 | PyObject * obj1 = 0 ; | |
994141e6 | 7736 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7737 | char *kwnames[] = { |
7738 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7739 | }; | |
7740 | ||
994141e6 | 7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7742 | { |
7743 | arg1 = wxString_in_helper(obj0); | |
7744 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7745 | temp1 = True; |
d14a1e28 | 7746 | } |
15afbcd0 RD |
7747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7749 | SWIG_fail; | |
d14a1e28 | 7750 | if (arg2 == NULL) { |
15afbcd0 RD |
7751 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7752 | SWIG_fail; | |
994141e6 | 7753 | } |
15afbcd0 RD |
7754 | arg3 = (long) SWIG_AsLong(obj2); |
7755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7756 | { |
7757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7758 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7759 | ||
7760 | wxPyEndAllowThreads(__tstate); | |
7761 | if (PyErr_Occurred()) SWIG_fail; | |
7762 | } | |
7763 | Py_INCREF(Py_None); resultobj = Py_None; | |
7764 | { | |
7765 | if (temp1) | |
7766 | delete arg1; | |
7767 | } | |
7768 | return resultobj; | |
7769 | fail: | |
7770 | { | |
7771 | if (temp1) | |
7772 | delete arg1; | |
7773 | } | |
7774 | return NULL; | |
7775 | } | |
7776 | ||
7777 | ||
7778 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7779 | PyObject *resultobj; | |
7780 | wxString *arg1 = 0 ; | |
7781 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 7782 | bool temp1 = False ; |
d14a1e28 RD |
7783 | PyObject * obj0 = 0 ; |
7784 | PyObject * obj1 = 0 ; | |
7785 | char *kwnames[] = { | |
7786 | (char *) "filename",(char *) "data", NULL | |
7787 | }; | |
7788 | ||
7789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7790 | { | |
7791 | arg1 = wxString_in_helper(obj0); | |
7792 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7793 | temp1 = True; |
d14a1e28 RD |
7794 | } |
7795 | arg2 = obj1; | |
7796 | { | |
7797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7798 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7799 | ||
7800 | wxPyEndAllowThreads(__tstate); | |
7801 | if (PyErr_Occurred()) SWIG_fail; | |
7802 | } | |
7803 | Py_INCREF(Py_None); resultobj = Py_None; | |
7804 | { | |
7805 | if (temp1) | |
7806 | delete arg1; | |
7807 | } | |
7808 | return resultobj; | |
7809 | fail: | |
7810 | { | |
7811 | if (temp1) | |
7812 | delete arg1; | |
7813 | } | |
7814 | return NULL; | |
7815 | } | |
7816 | ||
7817 | ||
7818 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7819 | PyObject *resultobj; | |
7820 | wxMemoryFSHandler *result; | |
7821 | char *kwnames[] = { | |
7822 | NULL | |
7823 | }; | |
7824 | ||
7825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7826 | { | |
7827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7828 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7829 | ||
7830 | wxPyEndAllowThreads(__tstate); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | } | |
15afbcd0 | 7833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7834 | return resultobj; |
7835 | fail: | |
7836 | return NULL; | |
7837 | } | |
7838 | ||
7839 | ||
7840 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7841 | PyObject *resultobj; | |
7842 | wxString *arg1 = 0 ; | |
e811c8ce | 7843 | bool temp1 = False ; |
d14a1e28 RD |
7844 | PyObject * obj0 = 0 ; |
7845 | char *kwnames[] = { | |
7846 | (char *) "filename", NULL | |
7847 | }; | |
7848 | ||
7849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7850 | { | |
7851 | arg1 = wxString_in_helper(obj0); | |
7852 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7853 | temp1 = True; |
d14a1e28 RD |
7854 | } |
7855 | { | |
7856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7857 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7858 | ||
7859 | wxPyEndAllowThreads(__tstate); | |
7860 | if (PyErr_Occurred()) SWIG_fail; | |
7861 | } | |
7862 | Py_INCREF(Py_None); resultobj = Py_None; | |
7863 | { | |
7864 | if (temp1) | |
7865 | delete arg1; | |
7866 | } | |
7867 | return resultobj; | |
7868 | fail: | |
7869 | { | |
7870 | if (temp1) | |
7871 | delete arg1; | |
7872 | } | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj; | |
7879 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7880 | wxString *arg2 = 0 ; | |
7881 | bool result; | |
e811c8ce | 7882 | bool temp2 = False ; |
d14a1e28 RD |
7883 | PyObject * obj0 = 0 ; |
7884 | PyObject * obj1 = 0 ; | |
7885 | char *kwnames[] = { | |
7886 | (char *) "self",(char *) "location", NULL | |
7887 | }; | |
7888 | ||
7889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7892 | { |
7893 | arg2 = wxString_in_helper(obj1); | |
7894 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7895 | temp2 = True; |
d14a1e28 RD |
7896 | } |
7897 | { | |
7898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7899 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7900 | ||
7901 | wxPyEndAllowThreads(__tstate); | |
7902 | if (PyErr_Occurred()) SWIG_fail; | |
7903 | } | |
4f89f6a3 RD |
7904 | { |
7905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7906 | } | |
d14a1e28 RD |
7907 | { |
7908 | if (temp2) | |
7909 | delete arg2; | |
7910 | } | |
7911 | return resultobj; | |
7912 | fail: | |
7913 | { | |
7914 | if (temp2) | |
7915 | delete arg2; | |
7916 | } | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
7921 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject *resultobj; | |
7923 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7924 | wxFileSystem *arg2 = 0 ; | |
7925 | wxString *arg3 = 0 ; | |
7926 | wxFSFile *result; | |
e811c8ce | 7927 | bool temp3 = False ; |
d14a1e28 RD |
7928 | PyObject * obj0 = 0 ; |
7929 | PyObject * obj1 = 0 ; | |
7930 | PyObject * obj2 = 0 ; | |
7931 | char *kwnames[] = { | |
7932 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7933 | }; | |
7934 | ||
7935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7939 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7940 | SWIG_fail; | |
d14a1e28 | 7941 | if (arg2 == NULL) { |
15afbcd0 RD |
7942 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7943 | SWIG_fail; | |
d14a1e28 RD |
7944 | } |
7945 | { | |
7946 | arg3 = wxString_in_helper(obj2); | |
7947 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7948 | temp3 = True; |
d14a1e28 RD |
7949 | } |
7950 | { | |
7951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7952 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7953 | ||
7954 | wxPyEndAllowThreads(__tstate); | |
7955 | if (PyErr_Occurred()) SWIG_fail; | |
7956 | } | |
7957 | { | |
7958 | resultobj = wxPyMake_wxObject(result); | |
7959 | } | |
7960 | { | |
7961 | if (temp3) | |
7962 | delete arg3; | |
7963 | } | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | { | |
7967 | if (temp3) | |
7968 | delete arg3; | |
7969 | } | |
7970 | return NULL; | |
7971 | } | |
7972 | ||
7973 | ||
7974 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject *resultobj; | |
7976 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7977 | wxString *arg2 = 0 ; | |
7978 | int arg3 = (int) 0 ; | |
7979 | wxString result; | |
e811c8ce | 7980 | bool temp2 = False ; |
d14a1e28 RD |
7981 | PyObject * obj0 = 0 ; |
7982 | PyObject * obj1 = 0 ; | |
994141e6 | 7983 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7984 | char *kwnames[] = { |
7985 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7986 | }; | |
7987 | ||
994141e6 | 7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7991 | { |
7992 | arg2 = wxString_in_helper(obj1); | |
7993 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7994 | temp2 = True; |
d14a1e28 | 7995 | } |
994141e6 | 7996 | if (obj2) { |
15afbcd0 RD |
7997 | arg3 = (int) SWIG_AsInt(obj2); |
7998 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7999 | } |
d14a1e28 RD |
8000 | { |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | { | |
8008 | #if wxUSE_UNICODE | |
8009 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8010 | #else | |
8011 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8012 | #endif | |
8013 | } | |
8014 | { | |
8015 | if (temp2) | |
8016 | delete arg2; | |
8017 | } | |
8018 | return resultobj; | |
8019 | fail: | |
8020 | { | |
8021 | if (temp2) | |
8022 | delete arg2; | |
8023 | } | |
8024 | return NULL; | |
8025 | } | |
8026 | ||
8027 | ||
8028 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8029 | PyObject *resultobj; | |
8030 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8031 | wxString result; | |
8032 | PyObject * obj0 = 0 ; | |
8033 | char *kwnames[] = { | |
8034 | (char *) "self", NULL | |
8035 | }; | |
8036 | ||
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8040 | { |
8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8042 | result = (arg1)->FindNext(); | |
8043 | ||
8044 | wxPyEndAllowThreads(__tstate); | |
8045 | if (PyErr_Occurred()) SWIG_fail; | |
8046 | } | |
8047 | { | |
8048 | #if wxUSE_UNICODE | |
8049 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8050 | #else | |
8051 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8052 | #endif | |
8053 | } | |
8054 | return resultobj; | |
8055 | fail: | |
8056 | return NULL; | |
8057 | } | |
8058 | ||
8059 | ||
8060 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8061 | PyObject *obj; | |
8062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8063 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8064 | Py_INCREF(obj); | |
8065 | return Py_BuildValue((char *)""); | |
8066 | } | |
8067 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject *resultobj; | |
8069 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8070 | wxString result; | |
8071 | PyObject * obj0 = 0 ; | |
8072 | char *kwnames[] = { | |
8073 | (char *) "self", NULL | |
8074 | }; | |
8075 | ||
8076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8079 | { |
8080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8081 | result = (arg1)->GetName(); | |
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 | return resultobj; | |
8094 | fail: | |
8095 | return NULL; | |
8096 | } | |
8097 | ||
8098 | ||
8099 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8100 | PyObject *resultobj; | |
8101 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8102 | wxString result; | |
8103 | PyObject * obj0 = 0 ; | |
8104 | char *kwnames[] = { | |
8105 | (char *) "self", NULL | |
8106 | }; | |
8107 | ||
8108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8111 | { |
8112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8113 | result = (arg1)->GetExtension(); | |
8114 | ||
8115 | wxPyEndAllowThreads(__tstate); | |
8116 | if (PyErr_Occurred()) SWIG_fail; | |
8117 | } | |
8118 | { | |
8119 | #if wxUSE_UNICODE | |
8120 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8121 | #else | |
8122 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8123 | #endif | |
8124 | } | |
8125 | return resultobj; | |
8126 | fail: | |
8127 | return NULL; | |
8128 | } | |
8129 | ||
8130 | ||
8131 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8132 | PyObject *resultobj; | |
8133 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8134 | long result; | |
8135 | PyObject * obj0 = 0 ; | |
8136 | char *kwnames[] = { | |
8137 | (char *) "self", NULL | |
8138 | }; | |
8139 | ||
8140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8143 | { |
8144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8145 | result = (long)(arg1)->GetType(); | |
8146 | ||
8147 | wxPyEndAllowThreads(__tstate); | |
8148 | if (PyErr_Occurred()) SWIG_fail; | |
8149 | } | |
15afbcd0 | 8150 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8151 | return resultobj; |
8152 | fail: | |
8153 | return NULL; | |
8154 | } | |
8155 | ||
8156 | ||
8157 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8158 | PyObject *resultobj; | |
8159 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8160 | wxString result; | |
8161 | PyObject * obj0 = 0 ; | |
8162 | char *kwnames[] = { | |
8163 | (char *) "self", NULL | |
8164 | }; | |
8165 | ||
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8169 | { |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | result = (arg1)->GetMimeType(); | |
8172 | ||
8173 | wxPyEndAllowThreads(__tstate); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | { | |
8177 | #if wxUSE_UNICODE | |
8178 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8179 | #else | |
8180 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8181 | #endif | |
8182 | } | |
8183 | return resultobj; | |
8184 | fail: | |
8185 | return NULL; | |
8186 | } | |
8187 | ||
8188 | ||
8189 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8190 | PyObject *resultobj; | |
8191 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8192 | wxString *arg2 = 0 ; | |
8193 | bool result; | |
e811c8ce | 8194 | bool temp2 = False ; |
d14a1e28 RD |
8195 | PyObject * obj0 = 0 ; |
8196 | PyObject * obj1 = 0 ; | |
8197 | char *kwnames[] = { | |
8198 | (char *) "self",(char *) "name", NULL | |
8199 | }; | |
8200 | ||
8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8204 | { |
8205 | arg2 = wxString_in_helper(obj1); | |
8206 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8207 | temp2 = True; |
d14a1e28 RD |
8208 | } |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
4f89f6a3 RD |
8216 | { |
8217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8218 | } | |
d14a1e28 RD |
8219 | { |
8220 | if (temp2) | |
8221 | delete arg2; | |
8222 | } | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | { | |
8226 | if (temp2) | |
8227 | delete arg2; | |
8228 | } | |
8229 | return NULL; | |
8230 | } | |
8231 | ||
8232 | ||
8233 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8234 | PyObject *resultobj; | |
8235 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8236 | wxString *arg2 = 0 ; | |
e811c8ce | 8237 | bool temp2 = False ; |
d14a1e28 RD |
8238 | PyObject * obj0 = 0 ; |
8239 | PyObject * obj1 = 0 ; | |
8240 | char *kwnames[] = { | |
8241 | (char *) "self",(char *) "name", NULL | |
8242 | }; | |
8243 | ||
8244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8247 | { |
8248 | arg2 = wxString_in_helper(obj1); | |
8249 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8250 | temp2 = True; |
d14a1e28 RD |
8251 | } |
8252 | { | |
8253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8254 | (arg1)->SetName((wxString const &)*arg2); | |
8255 | ||
8256 | wxPyEndAllowThreads(__tstate); | |
8257 | if (PyErr_Occurred()) SWIG_fail; | |
8258 | } | |
8259 | Py_INCREF(Py_None); resultobj = Py_None; | |
8260 | { | |
8261 | if (temp2) | |
8262 | delete arg2; | |
8263 | } | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | { | |
8267 | if (temp2) | |
8268 | delete arg2; | |
8269 | } | |
8270 | return NULL; | |
8271 | } | |
8272 | ||
8273 | ||
8274 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8275 | PyObject *resultobj; | |
8276 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8277 | wxString *arg2 = 0 ; | |
e811c8ce | 8278 | bool temp2 = False ; |
d14a1e28 RD |
8279 | PyObject * obj0 = 0 ; |
8280 | PyObject * obj1 = 0 ; | |
8281 | char *kwnames[] = { | |
8282 | (char *) "self",(char *) "extension", NULL | |
8283 | }; | |
8284 | ||
8285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8288 | { |
8289 | arg2 = wxString_in_helper(obj1); | |
8290 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8291 | temp2 = True; |
d14a1e28 RD |
8292 | } |
8293 | { | |
8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8295 | (arg1)->SetExtension((wxString const &)*arg2); | |
8296 | ||
8297 | wxPyEndAllowThreads(__tstate); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
8300 | Py_INCREF(Py_None); resultobj = Py_None; | |
8301 | { | |
8302 | if (temp2) | |
8303 | delete arg2; | |
8304 | } | |
8305 | return resultobj; | |
8306 | fail: | |
8307 | { | |
8308 | if (temp2) | |
8309 | delete arg2; | |
8310 | } | |
8311 | return NULL; | |
8312 | } | |
8313 | ||
8314 | ||
8315 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8316 | PyObject *resultobj; | |
8317 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8318 | long arg2 ; | |
8319 | PyObject * obj0 = 0 ; | |
994141e6 | 8320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8321 | char *kwnames[] = { |
8322 | (char *) "self",(char *) "type", NULL | |
8323 | }; | |
8324 | ||
994141e6 | 8325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8328 | arg2 = (long) SWIG_AsLong(obj1); | |
8329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8330 | { |
8331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8332 | (arg1)->SetType(arg2); | |
8333 | ||
8334 | wxPyEndAllowThreads(__tstate); | |
8335 | if (PyErr_Occurred()) SWIG_fail; | |
8336 | } | |
8337 | Py_INCREF(Py_None); resultobj = Py_None; | |
8338 | return resultobj; | |
8339 | fail: | |
8340 | return NULL; | |
8341 | } | |
8342 | ||
8343 | ||
8344 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8345 | PyObject *resultobj; | |
8346 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8347 | wxString *arg2 = 0 ; | |
e811c8ce | 8348 | bool temp2 = False ; |
d14a1e28 RD |
8349 | PyObject * obj0 = 0 ; |
8350 | PyObject * obj1 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self",(char *) "mimetype", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8358 | { |
8359 | arg2 = wxString_in_helper(obj1); | |
8360 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8361 | temp2 = True; |
d14a1e28 RD |
8362 | } |
8363 | { | |
8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8365 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8366 | ||
8367 | wxPyEndAllowThreads(__tstate); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
8369 | } | |
8370 | Py_INCREF(Py_None); resultobj = Py_None; | |
8371 | { | |
8372 | if (temp2) | |
8373 | delete arg2; | |
8374 | } | |
8375 | return resultobj; | |
8376 | fail: | |
8377 | { | |
8378 | if (temp2) | |
8379 | delete arg2; | |
8380 | } | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8386 | PyObject *obj; | |
8387 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8388 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8389 | Py_INCREF(obj); | |
8390 | return Py_BuildValue((char *)""); | |
8391 | } | |
8392 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8393 | PyObject *resultobj; | |
8394 | wxImageHistogram *result; | |
8395 | char *kwnames[] = { | |
8396 | NULL | |
8397 | }; | |
8398 | ||
8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8400 | { | |
8401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8402 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8403 | ||
8404 | wxPyEndAllowThreads(__tstate); | |
8405 | if (PyErr_Occurred()) SWIG_fail; | |
8406 | } | |
15afbcd0 | 8407 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8408 | return resultobj; |
8409 | fail: | |
8410 | return NULL; | |
8411 | } | |
8412 | ||
8413 | ||
8414 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8415 | PyObject *resultobj; | |
8416 | unsigned char arg1 ; | |
8417 | unsigned char arg2 ; | |
8418 | unsigned char arg3 ; | |
8419 | unsigned long result; | |
8420 | PyObject * obj0 = 0 ; | |
8421 | PyObject * obj1 = 0 ; | |
8422 | PyObject * obj2 = 0 ; | |
8423 | char *kwnames[] = { | |
8424 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8425 | }; | |
8426 | ||
8427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8428 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8429 | if (PyErr_Occurred()) SWIG_fail; | |
8430 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8431 | if (PyErr_Occurred()) SWIG_fail; | |
8432 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8433 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8434 | { |
8435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8436 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8437 | ||
8438 | wxPyEndAllowThreads(__tstate); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | } | |
15afbcd0 | 8441 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8442 | return resultobj; |
8443 | fail: | |
8444 | return NULL; | |
8445 | } | |
8446 | ||
8447 | ||
8448 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8449 | PyObject *resultobj; | |
8450 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8451 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8452 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8453 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8454 | unsigned char arg5 = (unsigned char) 1 ; | |
8455 | unsigned char arg6 = (unsigned char) 0 ; | |
8456 | unsigned char arg7 = (unsigned char) 0 ; | |
8457 | bool result; | |
8458 | unsigned char temp2 ; | |
8459 | unsigned char temp3 ; | |
8460 | unsigned char temp4 ; | |
8461 | PyObject * obj0 = 0 ; | |
8462 | PyObject * obj1 = 0 ; | |
8463 | PyObject * obj2 = 0 ; | |
8464 | PyObject * obj3 = 0 ; | |
8465 | char *kwnames[] = { | |
8466 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8467 | }; | |
8468 | ||
8469 | arg2 = &temp2; | |
8470 | arg3 = &temp3; | |
8471 | arg4 = &temp4; | |
8472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8475 | if (obj1) { |
15afbcd0 RD |
8476 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8478 | } |
8479 | if (obj2) { | |
15afbcd0 RD |
8480 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8482 | } |
8483 | if (obj3) { | |
15afbcd0 RD |
8484 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8486 | } |
8487 | { | |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8489 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8490 | ||
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
4f89f6a3 RD |
8494 | { |
8495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8496 | } | |
d14a1e28 RD |
8497 | { |
8498 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8499 | resultobj = t_output_helper(resultobj,o); | |
8500 | } | |
8501 | { | |
8502 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8503 | resultobj = t_output_helper(resultobj,o); | |
8504 | } | |
8505 | { | |
8506 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8507 | resultobj = t_output_helper(resultobj,o); | |
8508 | } | |
8509 | return resultobj; | |
8510 | fail: | |
8511 | return NULL; | |
8512 | } | |
8513 | ||
8514 | ||
8515 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8516 | PyObject *obj; | |
8517 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8518 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8519 | Py_INCREF(obj); | |
8520 | return Py_BuildValue((char *)""); | |
8521 | } | |
8522 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8523 | PyObject *resultobj; | |
8524 | wxString *arg1 = 0 ; | |
8525 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8526 | int arg3 = (int) -1 ; | |
8527 | wxImage *result; | |
e811c8ce | 8528 | bool temp1 = False ; |
d14a1e28 | 8529 | PyObject * obj0 = 0 ; |
994141e6 RD |
8530 | PyObject * obj1 = 0 ; |
8531 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8532 | char *kwnames[] = { |
8533 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8534 | }; | |
8535 | ||
994141e6 | 8536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8537 | { |
8538 | arg1 = wxString_in_helper(obj0); | |
8539 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8540 | temp1 = True; |
d14a1e28 | 8541 | } |
994141e6 | 8542 | if (obj1) { |
15afbcd0 RD |
8543 | arg2 = (long) SWIG_AsLong(obj1); |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8545 | } |
8546 | if (obj2) { | |
15afbcd0 RD |
8547 | arg3 = (int) SWIG_AsInt(obj2); |
8548 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8549 | } |
d14a1e28 RD |
8550 | { |
8551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8552 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8553 | ||
8554 | wxPyEndAllowThreads(__tstate); | |
8555 | if (PyErr_Occurred()) SWIG_fail; | |
8556 | } | |
15afbcd0 | 8557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8558 | { |
8559 | if (temp1) | |
8560 | delete arg1; | |
8561 | } | |
8562 | return resultobj; | |
8563 | fail: | |
8564 | { | |
8565 | if (temp1) | |
8566 | delete arg1; | |
8567 | } | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj; | |
8574 | wxImage *arg1 = (wxImage *) 0 ; | |
8575 | PyObject * obj0 = 0 ; | |
8576 | char *kwnames[] = { | |
8577 | (char *) "self", NULL | |
8578 | }; | |
8579 | ||
8580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8583 | { |
8584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8585 | delete arg1; | |
8586 | ||
8587 | wxPyEndAllowThreads(__tstate); | |
8588 | if (PyErr_Occurred()) SWIG_fail; | |
8589 | } | |
8590 | Py_INCREF(Py_None); resultobj = Py_None; | |
8591 | return resultobj; | |
8592 | fail: | |
8593 | return NULL; | |
8594 | } | |
8595 | ||
8596 | ||
8597 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8598 | PyObject *resultobj; | |
8599 | wxString *arg1 = 0 ; | |
8600 | wxString *arg2 = 0 ; | |
8601 | int arg3 = (int) -1 ; | |
8602 | wxImage *result; | |
e811c8ce RD |
8603 | bool temp1 = False ; |
8604 | bool temp2 = False ; | |
d14a1e28 RD |
8605 | PyObject * obj0 = 0 ; |
8606 | PyObject * obj1 = 0 ; | |
994141e6 | 8607 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8608 | char *kwnames[] = { |
8609 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8610 | }; | |
8611 | ||
994141e6 | 8612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8613 | { |
8614 | arg1 = wxString_in_helper(obj0); | |
8615 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8616 | temp1 = True; |
d14a1e28 RD |
8617 | } |
8618 | { | |
8619 | arg2 = wxString_in_helper(obj1); | |
8620 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8621 | temp2 = True; |
d14a1e28 | 8622 | } |
994141e6 | 8623 | if (obj2) { |
15afbcd0 RD |
8624 | arg3 = (int) SWIG_AsInt(obj2); |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8626 | } |
d14a1e28 RD |
8627 | { |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
15afbcd0 | 8634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8635 | { |
8636 | if (temp1) | |
8637 | delete arg1; | |
8638 | } | |
8639 | { | |
8640 | if (temp2) | |
8641 | delete arg2; | |
8642 | } | |
8643 | return resultobj; | |
8644 | fail: | |
8645 | { | |
8646 | if (temp1) | |
8647 | delete arg1; | |
8648 | } | |
8649 | { | |
8650 | if (temp2) | |
8651 | delete arg2; | |
8652 | } | |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
8657 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8658 | PyObject *resultobj; | |
8659 | wxInputStream *arg1 = 0 ; | |
8660 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8661 | int arg3 = (int) -1 ; | |
8662 | wxImage *result; | |
8663 | wxPyInputStream *temp1 ; | |
8664 | bool created1 ; | |
8665 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8666 | PyObject * obj1 = 0 ; |
8667 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8668 | char *kwnames[] = { |
8669 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8670 | }; | |
8671 | ||
994141e6 | 8672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8673 | { |
8674 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8675 | arg1 = temp1->m_wxis; | |
e811c8ce | 8676 | created1 = False; |
d14a1e28 RD |
8677 | } else { |
8678 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8679 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8680 | if (arg1 == NULL) { |
8681 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8682 | SWIG_fail; | |
8683 | } | |
e811c8ce | 8684 | created1 = True; |
d14a1e28 RD |
8685 | } |
8686 | } | |
994141e6 | 8687 | if (obj1) { |
15afbcd0 RD |
8688 | arg2 = (long) SWIG_AsLong(obj1); |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8690 | } |
8691 | if (obj2) { | |
15afbcd0 RD |
8692 | arg3 = (int) SWIG_AsInt(obj2); |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8694 | } |
d14a1e28 RD |
8695 | { |
8696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8697 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8698 | ||
8699 | wxPyEndAllowThreads(__tstate); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
15afbcd0 | 8702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8703 | { |
8704 | if (created1) | |
8705 | delete arg1; | |
8706 | } | |
8707 | return resultobj; | |
8708 | fail: | |
8709 | { | |
8710 | if (created1) | |
8711 | delete arg1; | |
8712 | } | |
8713 | return NULL; | |
8714 | } | |
8715 | ||
8716 | ||
8717 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8718 | PyObject *resultobj; | |
8719 | wxInputStream *arg1 = 0 ; | |
8720 | wxString *arg2 = 0 ; | |
8721 | int arg3 = (int) -1 ; | |
8722 | wxImage *result; | |
8723 | wxPyInputStream *temp1 ; | |
8724 | bool created1 ; | |
e811c8ce | 8725 | bool temp2 = False ; |
d14a1e28 RD |
8726 | PyObject * obj0 = 0 ; |
8727 | PyObject * obj1 = 0 ; | |
994141e6 | 8728 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8729 | char *kwnames[] = { |
8730 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8731 | }; | |
8732 | ||
994141e6 | 8733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8734 | { |
8735 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8736 | arg1 = temp1->m_wxis; | |
e811c8ce | 8737 | created1 = False; |
d14a1e28 RD |
8738 | } else { |
8739 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8740 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8741 | if (arg1 == NULL) { |
8742 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8743 | SWIG_fail; | |
8744 | } | |
e811c8ce | 8745 | created1 = True; |
d14a1e28 RD |
8746 | } |
8747 | } | |
8748 | { | |
8749 | arg2 = wxString_in_helper(obj1); | |
8750 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8751 | temp2 = True; |
d14a1e28 | 8752 | } |
994141e6 | 8753 | if (obj2) { |
15afbcd0 RD |
8754 | arg3 = (int) SWIG_AsInt(obj2); |
8755 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8756 | } |
d14a1e28 RD |
8757 | { |
8758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8759 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8760 | ||
8761 | wxPyEndAllowThreads(__tstate); | |
8762 | if (PyErr_Occurred()) SWIG_fail; | |
8763 | } | |
15afbcd0 | 8764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8765 | { |
8766 | if (created1) | |
8767 | delete arg1; | |
8768 | } | |
8769 | { | |
8770 | if (temp2) | |
8771 | delete arg2; | |
8772 | } | |
8773 | return resultobj; | |
8774 | fail: | |
8775 | { | |
8776 | if (created1) | |
8777 | delete arg1; | |
8778 | } | |
8779 | { | |
8780 | if (temp2) | |
8781 | delete arg2; | |
8782 | } | |
8783 | return NULL; | |
8784 | } | |
8785 | ||
8786 | ||
8787 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8788 | PyObject *resultobj; | |
8789 | int arg1 = (int) 0 ; | |
8790 | int arg2 = (int) 0 ; | |
e811c8ce | 8791 | bool arg3 = (bool) True ; |
d14a1e28 | 8792 | wxImage *result; |
994141e6 RD |
8793 | PyObject * obj0 = 0 ; |
8794 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8795 | PyObject * obj2 = 0 ; |
8796 | char *kwnames[] = { | |
8797 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8798 | }; | |
8799 | ||
994141e6 RD |
8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
8801 | if (obj0) { | |
15afbcd0 RD |
8802 | arg1 = (int) SWIG_AsInt(obj0); |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8804 | } |
8805 | if (obj1) { | |
15afbcd0 RD |
8806 | arg2 = (int) SWIG_AsInt(obj1); |
8807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8808 | } |
d14a1e28 | 8809 | if (obj2) { |
15afbcd0 RD |
8810 | arg3 = (bool) SWIG_AsBool(obj2); |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8812 | } |
8813 | { | |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
15afbcd0 | 8820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8821 | return resultobj; |
8822 | fail: | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
8827 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8828 | PyObject *resultobj; | |
8829 | wxBitmap *arg1 = 0 ; | |
8830 | wxImage *result; | |
8831 | PyObject * obj0 = 0 ; | |
8832 | char *kwnames[] = { | |
8833 | (char *) "bitmap", NULL | |
8834 | }; | |
8835 | ||
8836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8838 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8839 | SWIG_fail; | |
d14a1e28 | 8840 | if (arg1 == NULL) { |
15afbcd0 RD |
8841 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8842 | SWIG_fail; | |
d14a1e28 RD |
8843 | } |
8844 | { | |
8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8846 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8847 | ||
8848 | wxPyEndAllowThreads(__tstate); | |
8849 | if (PyErr_Occurred()) SWIG_fail; | |
8850 | } | |
15afbcd0 | 8851 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8852 | return resultobj; |
8853 | fail: | |
8854 | return NULL; | |
8855 | } | |
8856 | ||
8857 | ||
8858 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8859 | PyObject *resultobj; | |
8860 | int arg1 ; | |
8861 | int arg2 ; | |
8862 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8863 | wxImage *result; | |
994141e6 RD |
8864 | PyObject * obj0 = 0 ; |
8865 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8866 | PyObject * obj2 = 0 ; |
8867 | char *kwnames[] = { | |
8868 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8869 | }; | |
8870 | ||
994141e6 | 8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8872 | arg1 = (int) SWIG_AsInt(obj0); |
8873 | if (PyErr_Occurred()) SWIG_fail; | |
8874 | arg2 = (int) SWIG_AsInt(obj1); | |
8875 | if (PyErr_Occurred()) SWIG_fail; | |
8876 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8878 | { |
8879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8880 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8881 | ||
8882 | wxPyEndAllowThreads(__tstate); | |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
8884 | } | |
15afbcd0 | 8885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8886 | return resultobj; |
8887 | fail: | |
8888 | return NULL; | |
8889 | } | |
8890 | ||
8891 | ||
8892 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8893 | PyObject *resultobj; | |
8894 | wxImage *arg1 = (wxImage *) 0 ; | |
8895 | int arg2 ; | |
8896 | int arg3 ; | |
8897 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8898 | PyObject * obj1 = 0 ; |
8899 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8900 | char *kwnames[] = { |
8901 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8902 | }; | |
8903 | ||
994141e6 | 8904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8907 | arg2 = (int) SWIG_AsInt(obj1); | |
8908 | if (PyErr_Occurred()) SWIG_fail; | |
8909 | arg3 = (int) SWIG_AsInt(obj2); | |
8910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8911 | { |
8912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8913 | (arg1)->Create(arg2,arg3); | |
8914 | ||
8915 | wxPyEndAllowThreads(__tstate); | |
8916 | if (PyErr_Occurred()) SWIG_fail; | |
8917 | } | |
8918 | Py_INCREF(Py_None); resultobj = Py_None; | |
8919 | return resultobj; | |
8920 | fail: | |
8921 | return NULL; | |
8922 | } | |
8923 | ||
8924 | ||
8925 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8926 | PyObject *resultobj; | |
8927 | wxImage *arg1 = (wxImage *) 0 ; | |
8928 | PyObject * obj0 = 0 ; | |
8929 | char *kwnames[] = { | |
8930 | (char *) "self", NULL | |
8931 | }; | |
8932 | ||
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8936 | { |
8937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8938 | (arg1)->Destroy(); | |
8939 | ||
8940 | wxPyEndAllowThreads(__tstate); | |
8941 | if (PyErr_Occurred()) SWIG_fail; | |
8942 | } | |
8943 | Py_INCREF(Py_None); resultobj = Py_None; | |
8944 | return resultobj; | |
8945 | fail: | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj; | |
8952 | wxImage *arg1 = (wxImage *) 0 ; | |
8953 | int arg2 ; | |
8954 | int arg3 ; | |
8955 | SwigValueWrapper< wxImage > result; | |
8956 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8957 | PyObject * obj1 = 0 ; |
8958 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8959 | char *kwnames[] = { |
8960 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8961 | }; | |
8962 | ||
994141e6 | 8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8966 | arg2 = (int) SWIG_AsInt(obj1); | |
8967 | if (PyErr_Occurred()) SWIG_fail; | |
8968 | arg3 = (int) SWIG_AsInt(obj2); | |
8969 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8970 | { |
8971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8972 | result = (arg1)->Scale(arg2,arg3); | |
8973 | ||
8974 | wxPyEndAllowThreads(__tstate); | |
8975 | if (PyErr_Occurred()) SWIG_fail; | |
8976 | } | |
8977 | { | |
8978 | wxImage * resultptr; | |
8979 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 8980 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8981 | } |
8982 | return resultobj; | |
8983 | fail: | |
8984 | return NULL; | |
8985 | } | |
8986 | ||
8987 | ||
8988 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8989 | PyObject *resultobj; | |
8990 | wxImage *arg1 = (wxImage *) 0 ; | |
8991 | int arg2 ; | |
8992 | int arg3 ; | |
8993 | SwigValueWrapper< wxImage > result; | |
8994 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8995 | PyObject * obj1 = 0 ; |
8996 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8997 | char *kwnames[] = { |
8998 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
8999 | }; | |
9000 | ||
994141e6 | 9001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9004 | arg2 = (int) SWIG_AsInt(obj1); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | arg3 = (int) SWIG_AsInt(obj2); | |
9007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9008 | { |
9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9010 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9011 | ||
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
9015 | { | |
9016 | wxImage * resultptr; | |
9017 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9018 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9019 | } |
9020 | return resultobj; | |
9021 | fail: | |
9022 | return NULL; | |
9023 | } | |
9024 | ||
9025 | ||
9026 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9027 | PyObject *resultobj; | |
9028 | wxImage *arg1 = (wxImage *) 0 ; | |
9029 | int arg2 ; | |
9030 | int arg3 ; | |
9031 | wxImage *result; | |
9032 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9033 | PyObject * obj1 = 0 ; |
9034 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9035 | char *kwnames[] = { |
9036 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9037 | }; | |
9038 | ||
994141e6 | 9039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9042 | arg2 = (int) SWIG_AsInt(obj1); | |
9043 | if (PyErr_Occurred()) SWIG_fail; | |
9044 | arg3 = (int) SWIG_AsInt(obj2); | |
9045 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9046 | { |
9047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9048 | { | |
9049 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9050 | result = (wxImage *) &_result_ref; | |
9051 | } | |
9052 | ||
9053 | wxPyEndAllowThreads(__tstate); | |
9054 | if (PyErr_Occurred()) SWIG_fail; | |
9055 | } | |
15afbcd0 | 9056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
9057 | return resultobj; |
9058 | fail: | |
9059 | return NULL; | |
9060 | } | |
9061 | ||
9062 | ||
9063 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9064 | PyObject *resultobj; | |
9065 | wxImage *arg1 = (wxImage *) 0 ; | |
9066 | int arg2 ; | |
9067 | int arg3 ; | |
9068 | unsigned char arg4 ; | |
9069 | unsigned char arg5 ; | |
9070 | unsigned char arg6 ; | |
9071 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9072 | PyObject * obj1 = 0 ; |
9073 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9074 | PyObject * obj3 = 0 ; |
9075 | PyObject * obj4 = 0 ; | |
9076 | PyObject * obj5 = 0 ; | |
9077 | char *kwnames[] = { | |
9078 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9079 | }; | |
9080 | ||
994141e6 | 9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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; | |
9088 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9089 | if (PyErr_Occurred()) SWIG_fail; | |
9090 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9091 | if (PyErr_Occurred()) SWIG_fail; | |
9092 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9093 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9094 | { |
9095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9096 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9097 | ||
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
9101 | Py_INCREF(Py_None); resultobj = Py_None; | |
9102 | return resultobj; | |
9103 | fail: | |
9104 | return NULL; | |
9105 | } | |
9106 | ||
9107 | ||
9108 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9109 | PyObject *resultobj; | |
9110 | wxImage *arg1 = (wxImage *) 0 ; | |
9111 | int arg2 ; | |
9112 | int arg3 ; | |
9113 | unsigned char result; | |
9114 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9115 | PyObject * obj1 = 0 ; |
9116 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9117 | char *kwnames[] = { |
9118 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9119 | }; | |
9120 | ||
994141e6 | 9121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9124 | arg2 = (int) SWIG_AsInt(obj1); | |
9125 | if (PyErr_Occurred()) SWIG_fail; | |
9126 | arg3 = (int) SWIG_AsInt(obj2); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9128 | { |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9130 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
15afbcd0 | 9135 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9136 | return resultobj; |
9137 | fail: | |
9138 | return NULL; | |
9139 | } | |
9140 | ||
9141 | ||
9142 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject *resultobj; | |
9144 | wxImage *arg1 = (wxImage *) 0 ; | |
9145 | int arg2 ; | |
9146 | int arg3 ; | |
9147 | unsigned char result; | |
9148 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9149 | PyObject * obj1 = 0 ; |
9150 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9151 | char *kwnames[] = { |
9152 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9153 | }; | |
9154 | ||
994141e6 | 9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9158 | arg2 = (int) SWIG_AsInt(obj1); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | arg3 = (int) SWIG_AsInt(obj2); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9162 | { |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
15afbcd0 | 9169 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9170 | return resultobj; |
9171 | fail: | |
9172 | return NULL; | |
9173 | } | |
9174 | ||
9175 | ||
9176 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9177 | PyObject *resultobj; | |
9178 | wxImage *arg1 = (wxImage *) 0 ; | |
9179 | int arg2 ; | |
9180 | int arg3 ; | |
9181 | unsigned char result; | |
9182 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9183 | PyObject * obj1 = 0 ; |
9184 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9185 | char *kwnames[] = { |
9186 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9187 | }; | |
9188 | ||
994141e6 | 9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | arg2 = (int) SWIG_AsInt(obj1); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
9194 | arg3 = (int) SWIG_AsInt(obj2); | |
9195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9196 | { |
9197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9198 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9199 | ||
9200 | wxPyEndAllowThreads(__tstate); | |
9201 | if (PyErr_Occurred()) SWIG_fail; | |
9202 | } | |
15afbcd0 | 9203 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9204 | return resultobj; |
9205 | fail: | |
9206 | return NULL; | |
9207 | } | |
9208 | ||
9209 | ||
9210 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9211 | PyObject *resultobj; | |
9212 | wxImage *arg1 = (wxImage *) 0 ; | |
9213 | int arg2 ; | |
9214 | int arg3 ; | |
9215 | unsigned char arg4 ; | |
9216 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9217 | PyObject * obj1 = 0 ; |
9218 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9219 | PyObject * obj3 = 0 ; |
9220 | char *kwnames[] = { | |
9221 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9222 | }; | |
9223 | ||
994141e6 | 9224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9227 | arg2 = (int) SWIG_AsInt(obj1); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | arg3 = (int) SWIG_AsInt(obj2); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
9231 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9233 | { |
9234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9235 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9236 | ||
9237 | wxPyEndAllowThreads(__tstate); | |
9238 | if (PyErr_Occurred()) SWIG_fail; | |
9239 | } | |
9240 | Py_INCREF(Py_None); resultobj = Py_None; | |
9241 | return resultobj; | |
9242 | fail: | |
9243 | return NULL; | |
9244 | } | |
9245 | ||
9246 | ||
9247 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9248 | PyObject *resultobj; | |
9249 | wxImage *arg1 = (wxImage *) 0 ; | |
9250 | int arg2 ; | |
9251 | int arg3 ; | |
9252 | unsigned char result; | |
9253 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9254 | PyObject * obj1 = 0 ; |
9255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9256 | char *kwnames[] = { |
9257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9258 | }; | |
9259 | ||
994141e6 | 9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9263 | arg2 = (int) SWIG_AsInt(obj1); | |
9264 | if (PyErr_Occurred()) SWIG_fail; | |
9265 | arg3 = (int) SWIG_AsInt(obj2); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9267 | { |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
15afbcd0 | 9274 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9275 | return resultobj; |
9276 | fail: | |
9277 | return NULL; | |
9278 | } | |
9279 | ||
9280 | ||
9281 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9282 | PyObject *resultobj; | |
9283 | wxImage *arg1 = (wxImage *) 0 ; | |
9284 | bool result; | |
9285 | PyObject * obj0 = 0 ; | |
9286 | char *kwnames[] = { | |
9287 | (char *) "self", NULL | |
9288 | }; | |
9289 | ||
9290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9293 | { |
9294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9295 | result = (bool)(arg1)->HasAlpha(); | |
9296 | ||
9297 | wxPyEndAllowThreads(__tstate); | |
9298 | if (PyErr_Occurred()) SWIG_fail; | |
9299 | } | |
4f89f6a3 RD |
9300 | { |
9301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9302 | } | |
d14a1e28 RD |
9303 | return resultobj; |
9304 | fail: | |
9305 | return NULL; | |
9306 | } | |
9307 | ||
9308 | ||
9309 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9310 | PyObject *resultobj; | |
9311 | wxImage *arg1 = (wxImage *) 0 ; | |
9312 | byte *arg2 = (byte *) 0 ; | |
9313 | byte *arg3 = (byte *) 0 ; | |
9314 | byte *arg4 = (byte *) 0 ; | |
9315 | byte arg5 = (byte) 0 ; | |
9316 | byte arg6 = (byte) 0 ; | |
9317 | byte arg7 = (byte) 0 ; | |
9318 | bool result; | |
9319 | byte temp2 ; | |
9320 | byte temp3 ; | |
9321 | byte temp4 ; | |
9322 | PyObject * obj0 = 0 ; | |
9323 | PyObject * obj1 = 0 ; | |
9324 | PyObject * obj2 = 0 ; | |
9325 | PyObject * obj3 = 0 ; | |
9326 | char *kwnames[] = { | |
9327 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9328 | }; | |
9329 | ||
9330 | arg2 = &temp2; | |
9331 | arg3 = &temp3; | |
9332 | arg4 = &temp4; | |
9333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9336 | if (obj1) { |
15afbcd0 RD |
9337 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9339 | } |
9340 | if (obj2) { | |
15afbcd0 RD |
9341 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9342 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9343 | } |
9344 | if (obj3) { | |
15afbcd0 RD |
9345 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9347 | } |
9348 | { | |
9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9350 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9351 | ||
9352 | wxPyEndAllowThreads(__tstate); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | } | |
4f89f6a3 RD |
9355 | { |
9356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9357 | } | |
d14a1e28 RD |
9358 | { |
9359 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9360 | resultobj = t_output_helper(resultobj,o); | |
9361 | } | |
9362 | { | |
9363 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9364 | resultobj = t_output_helper(resultobj,o); | |
9365 | } | |
9366 | { | |
9367 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9368 | resultobj = t_output_helper(resultobj,o); | |
9369 | } | |
9370 | return resultobj; | |
9371 | fail: | |
9372 | return NULL; | |
9373 | } | |
9374 | ||
9375 | ||
9376 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9377 | PyObject *resultobj; | |
9378 | wxImage *arg1 = (wxImage *) 0 ; | |
9379 | wxImage *arg2 = 0 ; | |
9380 | byte arg3 ; | |
9381 | byte arg4 ; | |
9382 | byte arg5 ; | |
9383 | bool result; | |
9384 | PyObject * obj0 = 0 ; | |
9385 | PyObject * obj1 = 0 ; | |
9386 | PyObject * obj2 = 0 ; | |
9387 | PyObject * obj3 = 0 ; | |
9388 | PyObject * obj4 = 0 ; | |
9389 | char *kwnames[] = { | |
9390 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9391 | }; | |
9392 | ||
9393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
9394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9396 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9398 | SWIG_fail; | |
d14a1e28 | 9399 | if (arg2 == NULL) { |
15afbcd0 RD |
9400 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9401 | SWIG_fail; | |
a41e16b6 | 9402 | } |
15afbcd0 RD |
9403 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9406 | if (PyErr_Occurred()) SWIG_fail; | |
9407 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9409 | { |
9410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9411 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9412 | ||
9413 | wxPyEndAllowThreads(__tstate); | |
9414 | if (PyErr_Occurred()) SWIG_fail; | |
9415 | } | |
4f89f6a3 RD |
9416 | { |
9417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9418 | } | |
d14a1e28 RD |
9419 | return resultobj; |
9420 | fail: | |
9421 | return NULL; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9426 | PyObject *resultobj; | |
9427 | wxString *arg1 = 0 ; | |
9428 | bool result; | |
e811c8ce | 9429 | bool temp1 = False ; |
d14a1e28 RD |
9430 | PyObject * obj0 = 0 ; |
9431 | char *kwnames[] = { | |
9432 | (char *) "name", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9436 | { | |
9437 | arg1 = wxString_in_helper(obj0); | |
9438 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9439 | temp1 = True; |
d14a1e28 RD |
9440 | } |
9441 | { | |
9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9443 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9444 | ||
9445 | wxPyEndAllowThreads(__tstate); | |
9446 | if (PyErr_Occurred()) SWIG_fail; | |
9447 | } | |
4f89f6a3 RD |
9448 | { |
9449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9450 | } | |
d14a1e28 RD |
9451 | { |
9452 | if (temp1) | |
9453 | delete arg1; | |
9454 | } | |
9455 | return resultobj; | |
9456 | fail: | |
9457 | { | |
9458 | if (temp1) | |
9459 | delete arg1; | |
9460 | } | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxString *arg1 = 0 ; | |
9468 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9469 | int result; | |
e811c8ce | 9470 | bool temp1 = False ; |
d14a1e28 | 9471 | PyObject * obj0 = 0 ; |
994141e6 | 9472 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9473 | char *kwnames[] = { |
9474 | (char *) "name",(char *) "type", NULL | |
9475 | }; | |
9476 | ||
994141e6 | 9477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9478 | { |
9479 | arg1 = wxString_in_helper(obj0); | |
9480 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9481 | temp1 = True; |
d14a1e28 | 9482 | } |
994141e6 | 9483 | if (obj1) { |
15afbcd0 RD |
9484 | arg2 = (long) SWIG_AsLong(obj1); |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9486 | } |
d14a1e28 RD |
9487 | { |
9488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9489 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9490 | ||
9491 | wxPyEndAllowThreads(__tstate); | |
9492 | if (PyErr_Occurred()) SWIG_fail; | |
9493 | } | |
15afbcd0 | 9494 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9495 | { |
9496 | if (temp1) | |
9497 | delete arg1; | |
9498 | } | |
9499 | return resultobj; | |
9500 | fail: | |
9501 | { | |
9502 | if (temp1) | |
9503 | delete arg1; | |
9504 | } | |
9505 | return NULL; | |
9506 | } | |
9507 | ||
9508 | ||
9509 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9510 | PyObject *resultobj; | |
9511 | wxImage *arg1 = (wxImage *) 0 ; | |
9512 | wxString *arg2 = 0 ; | |
9513 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9514 | int arg4 = (int) -1 ; | |
9515 | bool result; | |
e811c8ce | 9516 | bool temp2 = False ; |
d14a1e28 RD |
9517 | PyObject * obj0 = 0 ; |
9518 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9519 | PyObject * obj2 = 0 ; |
9520 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9521 | char *kwnames[] = { |
9522 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9523 | }; | |
9524 | ||
994141e6 | 9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9528 | { |
9529 | arg2 = wxString_in_helper(obj1); | |
9530 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9531 | temp2 = True; |
d14a1e28 | 9532 | } |
994141e6 | 9533 | if (obj2) { |
15afbcd0 RD |
9534 | arg3 = (long) SWIG_AsLong(obj2); |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9536 | } |
9537 | if (obj3) { | |
15afbcd0 RD |
9538 | arg4 = (int) SWIG_AsInt(obj3); |
9539 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9540 | } |
d14a1e28 RD |
9541 | { |
9542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9543 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9544 | ||
9545 | wxPyEndAllowThreads(__tstate); | |
9546 | if (PyErr_Occurred()) SWIG_fail; | |
9547 | } | |
4f89f6a3 RD |
9548 | { |
9549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9550 | } | |
d14a1e28 RD |
9551 | { |
9552 | if (temp2) | |
9553 | delete arg2; | |
9554 | } | |
9555 | return resultobj; | |
9556 | fail: | |
9557 | { | |
9558 | if (temp2) | |
9559 | delete arg2; | |
9560 | } | |
9561 | return NULL; | |
9562 | } | |
9563 | ||
9564 | ||
9565 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9566 | PyObject *resultobj; | |
9567 | wxImage *arg1 = (wxImage *) 0 ; | |
9568 | wxString *arg2 = 0 ; | |
9569 | wxString *arg3 = 0 ; | |
9570 | int arg4 = (int) -1 ; | |
9571 | bool result; | |
e811c8ce RD |
9572 | bool temp2 = False ; |
9573 | bool temp3 = False ; | |
d14a1e28 RD |
9574 | PyObject * obj0 = 0 ; |
9575 | PyObject * obj1 = 0 ; | |
9576 | PyObject * obj2 = 0 ; | |
994141e6 | 9577 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9578 | char *kwnames[] = { |
9579 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9580 | }; | |
9581 | ||
994141e6 | 9582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9585 | { |
9586 | arg2 = wxString_in_helper(obj1); | |
9587 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9588 | temp2 = True; |
d14a1e28 RD |
9589 | } |
9590 | { | |
9591 | arg3 = wxString_in_helper(obj2); | |
9592 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9593 | temp3 = True; |
d14a1e28 | 9594 | } |
994141e6 | 9595 | if (obj3) { |
15afbcd0 RD |
9596 | arg4 = (int) SWIG_AsInt(obj3); |
9597 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9598 | } |
d14a1e28 RD |
9599 | { |
9600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9601 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9602 | ||
9603 | wxPyEndAllowThreads(__tstate); | |
9604 | if (PyErr_Occurred()) SWIG_fail; | |
9605 | } | |
4f89f6a3 RD |
9606 | { |
9607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9608 | } | |
d14a1e28 RD |
9609 | { |
9610 | if (temp2) | |
9611 | delete arg2; | |
9612 | } | |
9613 | { | |
9614 | if (temp3) | |
9615 | delete arg3; | |
9616 | } | |
9617 | return resultobj; | |
9618 | fail: | |
9619 | { | |
9620 | if (temp2) | |
9621 | delete arg2; | |
9622 | } | |
9623 | { | |
9624 | if (temp3) | |
9625 | delete arg3; | |
9626 | } | |
9627 | return NULL; | |
9628 | } | |
9629 | ||
9630 | ||
9631 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9632 | PyObject *resultobj; | |
9633 | wxImage *arg1 = (wxImage *) 0 ; | |
9634 | wxString *arg2 = 0 ; | |
9635 | int arg3 ; | |
9636 | bool result; | |
e811c8ce | 9637 | bool temp2 = False ; |
d14a1e28 RD |
9638 | PyObject * obj0 = 0 ; |
9639 | PyObject * obj1 = 0 ; | |
994141e6 | 9640 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9641 | char *kwnames[] = { |
9642 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9643 | }; | |
9644 | ||
994141e6 | 9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9648 | { |
9649 | arg2 = wxString_in_helper(obj1); | |
9650 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9651 | temp2 = True; |
d14a1e28 | 9652 | } |
15afbcd0 RD |
9653 | arg3 = (int) SWIG_AsInt(obj2); |
9654 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9655 | { |
9656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9657 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9658 | ||
9659 | wxPyEndAllowThreads(__tstate); | |
9660 | if (PyErr_Occurred()) SWIG_fail; | |
9661 | } | |
4f89f6a3 RD |
9662 | { |
9663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9664 | } | |
d14a1e28 RD |
9665 | { |
9666 | if (temp2) | |
9667 | delete arg2; | |
9668 | } | |
9669 | return resultobj; | |
9670 | fail: | |
9671 | { | |
9672 | if (temp2) | |
9673 | delete arg2; | |
9674 | } | |
9675 | return NULL; | |
9676 | } | |
9677 | ||
9678 | ||
9679 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9680 | PyObject *resultobj; | |
9681 | wxImage *arg1 = (wxImage *) 0 ; | |
9682 | wxString *arg2 = 0 ; | |
9683 | wxString *arg3 = 0 ; | |
9684 | bool result; | |
e811c8ce RD |
9685 | bool temp2 = False ; |
9686 | bool temp3 = False ; | |
d14a1e28 RD |
9687 | PyObject * obj0 = 0 ; |
9688 | PyObject * obj1 = 0 ; | |
9689 | PyObject * obj2 = 0 ; | |
9690 | char *kwnames[] = { | |
9691 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9692 | }; | |
9693 | ||
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9697 | { |
9698 | arg2 = wxString_in_helper(obj1); | |
9699 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9700 | temp2 = True; |
d14a1e28 RD |
9701 | } |
9702 | { | |
9703 | arg3 = wxString_in_helper(obj2); | |
9704 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9705 | temp3 = True; |
d14a1e28 RD |
9706 | } |
9707 | { | |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9709 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
9712 | if (PyErr_Occurred()) SWIG_fail; | |
9713 | } | |
4f89f6a3 RD |
9714 | { |
9715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9716 | } | |
d14a1e28 RD |
9717 | { |
9718 | if (temp2) | |
9719 | delete arg2; | |
9720 | } | |
9721 | { | |
9722 | if (temp3) | |
9723 | delete arg3; | |
9724 | } | |
9725 | return resultobj; | |
9726 | fail: | |
9727 | { | |
9728 | if (temp2) | |
9729 | delete arg2; | |
9730 | } | |
9731 | { | |
9732 | if (temp3) | |
9733 | delete arg3; | |
9734 | } | |
9735 | return NULL; | |
9736 | } | |
9737 | ||
9738 | ||
9739 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9740 | PyObject *resultobj; | |
9741 | wxInputStream *arg1 = 0 ; | |
9742 | bool result; | |
9743 | wxPyInputStream *temp1 ; | |
9744 | bool created1 ; | |
9745 | PyObject * obj0 = 0 ; | |
9746 | char *kwnames[] = { | |
9747 | (char *) "stream", NULL | |
9748 | }; | |
9749 | ||
9750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9751 | { | |
9752 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9753 | arg1 = temp1->m_wxis; | |
e811c8ce | 9754 | created1 = False; |
d14a1e28 RD |
9755 | } else { |
9756 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9757 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9758 | if (arg1 == NULL) { |
9759 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9760 | SWIG_fail; | |
9761 | } | |
e811c8ce | 9762 | created1 = True; |
d14a1e28 RD |
9763 | } |
9764 | } | |
9765 | { | |
9766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9767 | result = (bool)wxImage::CanRead(*arg1); | |
9768 | ||
9769 | wxPyEndAllowThreads(__tstate); | |
9770 | if (PyErr_Occurred()) SWIG_fail; | |
9771 | } | |
4f89f6a3 RD |
9772 | { |
9773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9774 | } | |
d14a1e28 RD |
9775 | { |
9776 | if (created1) | |
9777 | delete arg1; | |
9778 | } | |
9779 | return resultobj; | |
9780 | fail: | |
9781 | { | |
9782 | if (created1) | |
9783 | delete arg1; | |
9784 | } | |
9785 | return NULL; | |
9786 | } | |
9787 | ||
9788 | ||
9789 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9790 | PyObject *resultobj; | |
9791 | wxImage *arg1 = (wxImage *) 0 ; | |
9792 | wxInputStream *arg2 = 0 ; | |
9793 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9794 | int arg4 = (int) -1 ; | |
9795 | bool result; | |
9796 | wxPyInputStream *temp2 ; | |
9797 | bool created2 ; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9800 | PyObject * obj2 = 0 ; |
9801 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9802 | char *kwnames[] = { |
9803 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9804 | }; | |
9805 | ||
994141e6 | 9806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9809 | { |
9810 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9811 | arg2 = temp2->m_wxis; | |
e811c8ce | 9812 | created2 = False; |
d14a1e28 RD |
9813 | } else { |
9814 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9815 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9816 | if (arg2 == NULL) { |
9817 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9818 | SWIG_fail; | |
9819 | } | |
e811c8ce | 9820 | created2 = True; |
d14a1e28 RD |
9821 | } |
9822 | } | |
994141e6 | 9823 | if (obj2) { |
15afbcd0 RD |
9824 | arg3 = (long) SWIG_AsLong(obj2); |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9826 | } |
9827 | if (obj3) { | |
15afbcd0 RD |
9828 | arg4 = (int) SWIG_AsInt(obj3); |
9829 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9830 | } |
d14a1e28 RD |
9831 | { |
9832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9833 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9834 | ||
9835 | wxPyEndAllowThreads(__tstate); | |
9836 | if (PyErr_Occurred()) SWIG_fail; | |
9837 | } | |
4f89f6a3 RD |
9838 | { |
9839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9840 | } | |
d14a1e28 RD |
9841 | { |
9842 | if (created2) | |
9843 | delete arg2; | |
9844 | } | |
9845 | return resultobj; | |
9846 | fail: | |
9847 | { | |
9848 | if (created2) | |
9849 | delete arg2; | |
9850 | } | |
9851 | return NULL; | |
9852 | } | |
9853 | ||
9854 | ||
9855 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9856 | PyObject *resultobj; | |
9857 | wxImage *arg1 = (wxImage *) 0 ; | |
9858 | wxInputStream *arg2 = 0 ; | |
9859 | wxString *arg3 = 0 ; | |
9860 | int arg4 = (int) -1 ; | |
9861 | bool result; | |
9862 | wxPyInputStream *temp2 ; | |
9863 | bool created2 ; | |
e811c8ce | 9864 | bool temp3 = False ; |
d14a1e28 RD |
9865 | PyObject * obj0 = 0 ; |
9866 | PyObject * obj1 = 0 ; | |
9867 | PyObject * obj2 = 0 ; | |
994141e6 | 9868 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9869 | char *kwnames[] = { |
9870 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9871 | }; | |
9872 | ||
994141e6 | 9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9876 | { |
9877 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9878 | arg2 = temp2->m_wxis; | |
e811c8ce | 9879 | created2 = False; |
d14a1e28 RD |
9880 | } else { |
9881 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9882 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9883 | if (arg2 == NULL) { |
9884 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9885 | SWIG_fail; | |
9886 | } | |
e811c8ce | 9887 | created2 = True; |
d14a1e28 RD |
9888 | } |
9889 | } | |
9890 | { | |
9891 | arg3 = wxString_in_helper(obj2); | |
9892 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9893 | temp3 = True; |
d14a1e28 | 9894 | } |
994141e6 | 9895 | if (obj3) { |
15afbcd0 RD |
9896 | arg4 = (int) SWIG_AsInt(obj3); |
9897 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9898 | } |
d14a1e28 RD |
9899 | { |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
4f89f6a3 RD |
9906 | { |
9907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9908 | } | |
d14a1e28 RD |
9909 | { |
9910 | if (created2) | |
9911 | delete arg2; | |
9912 | } | |
9913 | { | |
9914 | if (temp3) | |
9915 | delete arg3; | |
9916 | } | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | { | |
9920 | if (created2) | |
9921 | delete arg2; | |
9922 | } | |
9923 | { | |
9924 | if (temp3) | |
9925 | delete arg3; | |
9926 | } | |
9927 | return NULL; | |
9928 | } | |
9929 | ||
9930 | ||
9931 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9932 | PyObject *resultobj; | |
9933 | wxImage *arg1 = (wxImage *) 0 ; | |
9934 | bool result; | |
9935 | PyObject * obj0 = 0 ; | |
9936 | char *kwnames[] = { | |
9937 | (char *) "self", NULL | |
9938 | }; | |
9939 | ||
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9943 | { |
9944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9945 | result = (bool)(arg1)->Ok(); | |
9946 | ||
9947 | wxPyEndAllowThreads(__tstate); | |
9948 | if (PyErr_Occurred()) SWIG_fail; | |
9949 | } | |
4f89f6a3 RD |
9950 | { |
9951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9952 | } | |
d14a1e28 RD |
9953 | return resultobj; |
9954 | fail: | |
9955 | return NULL; | |
9956 | } | |
9957 | ||
9958 | ||
9959 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9960 | PyObject *resultobj; | |
9961 | wxImage *arg1 = (wxImage *) 0 ; | |
9962 | int result; | |
9963 | PyObject * obj0 = 0 ; | |
9964 | char *kwnames[] = { | |
9965 | (char *) "self", NULL | |
9966 | }; | |
9967 | ||
9968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9971 | { |
9972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9973 | result = (int)(arg1)->GetWidth(); | |
9974 | ||
9975 | wxPyEndAllowThreads(__tstate); | |
9976 | if (PyErr_Occurred()) SWIG_fail; | |
9977 | } | |
15afbcd0 | 9978 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9979 | return resultobj; |
9980 | fail: | |
9981 | return NULL; | |
9982 | } | |
9983 | ||
9984 | ||
9985 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9986 | PyObject *resultobj; | |
9987 | wxImage *arg1 = (wxImage *) 0 ; | |
9988 | int result; | |
9989 | PyObject * obj0 = 0 ; | |
9990 | char *kwnames[] = { | |
9991 | (char *) "self", NULL | |
9992 | }; | |
9993 | ||
9994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9997 | { |
9998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9999 | result = (int)(arg1)->GetHeight(); | |
10000 | ||
10001 | wxPyEndAllowThreads(__tstate); | |
10002 | if (PyErr_Occurred()) SWIG_fail; | |
10003 | } | |
15afbcd0 | 10004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10005 | return resultobj; |
10006 | fail: | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxImage *arg1 = (wxImage *) 0 ; | |
10014 | wxRect *arg2 = 0 ; | |
10015 | SwigValueWrapper< wxImage > result; | |
10016 | wxRect temp2 ; | |
10017 | PyObject * obj0 = 0 ; | |
10018 | PyObject * obj1 = 0 ; | |
10019 | char *kwnames[] = { | |
10020 | (char *) "self",(char *) "rect", NULL | |
10021 | }; | |
10022 | ||
10023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10026 | { |
10027 | arg2 = &temp2; | |
10028 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10029 | } | |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10033 | ||
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
10036 | } | |
10037 | { | |
10038 | wxImage * resultptr; | |
10039 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10041 | } |
10042 | return resultobj; | |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | wxImage *arg1 = (wxImage *) 0 ; | |
10051 | SwigValueWrapper< wxImage > result; | |
10052 | PyObject * obj0 = 0 ; | |
10053 | char *kwnames[] = { | |
10054 | (char *) "self", NULL | |
10055 | }; | |
10056 | ||
10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10060 | { |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10062 | result = (arg1)->Copy(); | |
10063 | ||
10064 | wxPyEndAllowThreads(__tstate); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
10067 | { | |
10068 | wxImage * resultptr; | |
10069 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10071 | } |
10072 | return resultobj; | |
10073 | fail: | |
10074 | return NULL; | |
10075 | } | |
10076 | ||
10077 | ||
10078 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10079 | PyObject *resultobj; | |
10080 | wxImage *arg1 = (wxImage *) 0 ; | |
10081 | wxImage *arg2 = 0 ; | |
10082 | int arg3 ; | |
10083 | int arg4 ; | |
10084 | PyObject * obj0 = 0 ; | |
10085 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10086 | PyObject * obj2 = 0 ; |
10087 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10088 | char *kwnames[] = { |
10089 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10090 | }; | |
10091 | ||
994141e6 | 10092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10097 | SWIG_fail; | |
d14a1e28 | 10098 | if (arg2 == NULL) { |
15afbcd0 RD |
10099 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10100 | SWIG_fail; | |
994141e6 | 10101 | } |
15afbcd0 RD |
10102 | arg3 = (int) SWIG_AsInt(obj2); |
10103 | if (PyErr_Occurred()) SWIG_fail; | |
10104 | arg4 = (int) SWIG_AsInt(obj3); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10106 | { |
10107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10108 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10109 | ||
10110 | wxPyEndAllowThreads(__tstate); | |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
10112 | } | |
10113 | Py_INCREF(Py_None); resultobj = Py_None; | |
10114 | return resultobj; | |
10115 | fail: | |
10116 | return NULL; | |
10117 | } | |
10118 | ||
10119 | ||
10120 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10121 | PyObject *resultobj; | |
10122 | wxImage *arg1 = (wxImage *) 0 ; | |
10123 | PyObject *result; | |
10124 | PyObject * obj0 = 0 ; | |
10125 | char *kwnames[] = { | |
10126 | (char *) "self", NULL | |
10127 | }; | |
10128 | ||
10129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10132 | { |
10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10134 | result = (PyObject *)wxImage_GetData(arg1); | |
10135 | ||
10136 | wxPyEndAllowThreads(__tstate); | |
10137 | if (PyErr_Occurred()) SWIG_fail; | |
10138 | } | |
10139 | resultobj = result; | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | return NULL; | |
10143 | } | |
10144 | ||
10145 | ||
10146 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10147 | PyObject *resultobj; | |
10148 | wxImage *arg1 = (wxImage *) 0 ; | |
10149 | PyObject *arg2 = (PyObject *) 0 ; | |
10150 | PyObject * obj0 = 0 ; | |
10151 | PyObject * obj1 = 0 ; | |
10152 | char *kwnames[] = { | |
10153 | (char *) "self",(char *) "data", NULL | |
10154 | }; | |
10155 | ||
10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10159 | arg2 = obj1; |
10160 | { | |
10161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10162 | wxImage_SetData(arg1,arg2); | |
10163 | ||
10164 | wxPyEndAllowThreads(__tstate); | |
10165 | if (PyErr_Occurred()) SWIG_fail; | |
10166 | } | |
10167 | Py_INCREF(Py_None); resultobj = Py_None; | |
10168 | return resultobj; | |
10169 | fail: | |
10170 | return NULL; | |
10171 | } | |
10172 | ||
10173 | ||
10174 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10175 | PyObject *resultobj; | |
10176 | wxImage *arg1 = (wxImage *) 0 ; | |
10177 | PyObject *result; | |
10178 | PyObject * obj0 = 0 ; | |
10179 | char *kwnames[] = { | |
10180 | (char *) "self", NULL | |
10181 | }; | |
10182 | ||
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10186 | { |
10187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10188 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10189 | ||
10190 | wxPyEndAllowThreads(__tstate); | |
10191 | if (PyErr_Occurred()) SWIG_fail; | |
10192 | } | |
10193 | resultobj = result; | |
10194 | return resultobj; | |
10195 | fail: | |
10196 | return NULL; | |
10197 | } | |
10198 | ||
10199 | ||
10200 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10201 | PyObject *resultobj; | |
10202 | wxImage *arg1 = (wxImage *) 0 ; | |
10203 | PyObject *arg2 = (PyObject *) 0 ; | |
10204 | PyObject * obj0 = 0 ; | |
10205 | PyObject * obj1 = 0 ; | |
10206 | char *kwnames[] = { | |
10207 | (char *) "self",(char *) "data", NULL | |
10208 | }; | |
10209 | ||
10210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10213 | arg2 = obj1; |
10214 | { | |
10215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10216 | wxImage_SetDataBuffer(arg1,arg2); | |
10217 | ||
10218 | wxPyEndAllowThreads(__tstate); | |
10219 | if (PyErr_Occurred()) SWIG_fail; | |
10220 | } | |
10221 | Py_INCREF(Py_None); resultobj = Py_None; | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | return NULL; | |
10225 | } | |
10226 | ||
10227 | ||
10228 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10229 | PyObject *resultobj; | |
10230 | wxImage *arg1 = (wxImage *) 0 ; | |
10231 | PyObject *result; | |
10232 | PyObject * obj0 = 0 ; | |
10233 | char *kwnames[] = { | |
10234 | (char *) "self", NULL | |
10235 | }; | |
10236 | ||
10237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10240 | { |
10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10242 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10243 | ||
10244 | wxPyEndAllowThreads(__tstate); | |
10245 | if (PyErr_Occurred()) SWIG_fail; | |
10246 | } | |
10247 | resultobj = result; | |
10248 | return resultobj; | |
10249 | fail: | |
10250 | return NULL; | |
10251 | } | |
10252 | ||
10253 | ||
10254 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10255 | PyObject *resultobj; | |
10256 | wxImage *arg1 = (wxImage *) 0 ; | |
10257 | PyObject *arg2 = (PyObject *) 0 ; | |
10258 | PyObject * obj0 = 0 ; | |
10259 | PyObject * obj1 = 0 ; | |
10260 | char *kwnames[] = { | |
10261 | (char *) "self",(char *) "data", NULL | |
10262 | }; | |
10263 | ||
10264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10267 | arg2 = obj1; |
10268 | { | |
10269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10270 | wxImage_SetAlphaData(arg1,arg2); | |
10271 | ||
10272 | wxPyEndAllowThreads(__tstate); | |
10273 | if (PyErr_Occurred()) SWIG_fail; | |
10274 | } | |
10275 | Py_INCREF(Py_None); resultobj = Py_None; | |
10276 | return resultobj; | |
10277 | fail: | |
10278 | return NULL; | |
10279 | } | |
10280 | ||
10281 | ||
10282 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10283 | PyObject *resultobj; | |
10284 | wxImage *arg1 = (wxImage *) 0 ; | |
10285 | PyObject *result; | |
10286 | PyObject * obj0 = 0 ; | |
10287 | char *kwnames[] = { | |
10288 | (char *) "self", NULL | |
10289 | }; | |
10290 | ||
10291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10294 | { |
10295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10296 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10297 | ||
10298 | wxPyEndAllowThreads(__tstate); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | resultobj = result; | |
10302 | return resultobj; | |
10303 | fail: | |
10304 | return NULL; | |
10305 | } | |
10306 | ||
10307 | ||
10308 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10309 | PyObject *resultobj; | |
10310 | wxImage *arg1 = (wxImage *) 0 ; | |
10311 | PyObject *arg2 = (PyObject *) 0 ; | |
10312 | PyObject * obj0 = 0 ; | |
10313 | PyObject * obj1 = 0 ; | |
10314 | char *kwnames[] = { | |
10315 | (char *) "self",(char *) "data", NULL | |
10316 | }; | |
10317 | ||
10318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10321 | arg2 = obj1; |
10322 | { | |
10323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10324 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10325 | ||
10326 | wxPyEndAllowThreads(__tstate); | |
10327 | if (PyErr_Occurred()) SWIG_fail; | |
10328 | } | |
10329 | Py_INCREF(Py_None); resultobj = Py_None; | |
10330 | return resultobj; | |
10331 | fail: | |
10332 | return NULL; | |
10333 | } | |
10334 | ||
10335 | ||
10336 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10337 | PyObject *resultobj; | |
10338 | wxImage *arg1 = (wxImage *) 0 ; | |
10339 | unsigned char arg2 ; | |
10340 | unsigned char arg3 ; | |
10341 | unsigned char arg4 ; | |
10342 | PyObject * obj0 = 0 ; | |
10343 | PyObject * obj1 = 0 ; | |
10344 | PyObject * obj2 = 0 ; | |
10345 | PyObject * obj3 = 0 ; | |
10346 | char *kwnames[] = { | |
10347 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10348 | }; | |
10349 | ||
10350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10353 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10354 | if (PyErr_Occurred()) SWIG_fail; | |
10355 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10359 | { |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) SWIG_fail; | |
10365 | } | |
10366 | Py_INCREF(Py_None); resultobj = Py_None; | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
10373 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10374 | PyObject *resultobj; | |
10375 | wxImage *arg1 = (wxImage *) 0 ; | |
10376 | unsigned char result; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | char *kwnames[] = { | |
10379 | (char *) "self", NULL | |
10380 | }; | |
10381 | ||
10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10385 | { |
10386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10387 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10388 | ||
10389 | wxPyEndAllowThreads(__tstate); | |
10390 | if (PyErr_Occurred()) SWIG_fail; | |
10391 | } | |
15afbcd0 | 10392 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10393 | return resultobj; |
10394 | fail: | |
10395 | return NULL; | |
10396 | } | |
10397 | ||
10398 | ||
10399 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10400 | PyObject *resultobj; | |
10401 | wxImage *arg1 = (wxImage *) 0 ; | |
10402 | unsigned char result; | |
10403 | PyObject * obj0 = 0 ; | |
10404 | char *kwnames[] = { | |
10405 | (char *) "self", NULL | |
10406 | }; | |
10407 | ||
10408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10411 | { |
10412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10413 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10414 | ||
10415 | wxPyEndAllowThreads(__tstate); | |
10416 | if (PyErr_Occurred()) SWIG_fail; | |
10417 | } | |
15afbcd0 | 10418 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10419 | return resultobj; |
10420 | fail: | |
10421 | return NULL; | |
10422 | } | |
10423 | ||
10424 | ||
10425 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10426 | PyObject *resultobj; | |
10427 | wxImage *arg1 = (wxImage *) 0 ; | |
10428 | unsigned char result; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | char *kwnames[] = { | |
10431 | (char *) "self", NULL | |
10432 | }; | |
10433 | ||
10434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10437 | { |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
15afbcd0 | 10444 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10445 | return resultobj; |
10446 | fail: | |
10447 | return NULL; | |
10448 | } | |
10449 | ||
10450 | ||
10451 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10452 | PyObject *resultobj; | |
10453 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10454 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10455 | PyObject * obj0 = 0 ; |
10456 | PyObject * obj1 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self",(char *) "mask", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10464 | if (obj1) { |
15afbcd0 RD |
10465 | arg2 = (bool) SWIG_AsBool(obj1); |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10467 | } |
10468 | { | |
10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10470 | (arg1)->SetMask(arg2); | |
10471 | ||
10472 | wxPyEndAllowThreads(__tstate); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | } | |
10475 | Py_INCREF(Py_None); resultobj = Py_None; | |
10476 | return resultobj; | |
10477 | fail: | |
10478 | return NULL; | |
10479 | } | |
10480 | ||
10481 | ||
10482 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10483 | PyObject *resultobj; | |
10484 | wxImage *arg1 = (wxImage *) 0 ; | |
10485 | bool result; | |
10486 | PyObject * obj0 = 0 ; | |
10487 | char *kwnames[] = { | |
10488 | (char *) "self", NULL | |
10489 | }; | |
10490 | ||
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10494 | { |
10495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10496 | result = (bool)(arg1)->HasMask(); | |
10497 | ||
10498 | wxPyEndAllowThreads(__tstate); | |
10499 | if (PyErr_Occurred()) SWIG_fail; | |
10500 | } | |
4f89f6a3 RD |
10501 | { |
10502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10503 | } | |
d14a1e28 RD |
10504 | return resultobj; |
10505 | fail: | |
10506 | return NULL; | |
10507 | } | |
10508 | ||
10509 | ||
10510 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10511 | PyObject *resultobj; | |
10512 | wxImage *arg1 = (wxImage *) 0 ; | |
10513 | double arg2 ; | |
10514 | wxPoint *arg3 = 0 ; | |
e811c8ce | 10515 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10516 | wxPoint *arg5 = (wxPoint *) NULL ; |
10517 | SwigValueWrapper< wxImage > result; | |
10518 | wxPoint temp3 ; | |
10519 | PyObject * obj0 = 0 ; | |
994141e6 | 10520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10521 | PyObject * obj2 = 0 ; |
10522 | PyObject * obj3 = 0 ; | |
10523 | PyObject * obj4 = 0 ; | |
10524 | char *kwnames[] = { | |
10525 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10526 | }; | |
10527 | ||
994141e6 | 10528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10531 | arg2 = (double) SWIG_AsDouble(obj1); | |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10533 | { |
10534 | arg3 = &temp3; | |
10535 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10536 | } | |
10537 | if (obj3) { | |
15afbcd0 RD |
10538 | arg4 = (bool) SWIG_AsBool(obj3); |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10540 | } |
10541 | if (obj4) { | |
15afbcd0 RD |
10542 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10544 | } |
10545 | { | |
10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10547 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10548 | ||
10549 | wxPyEndAllowThreads(__tstate); | |
10550 | if (PyErr_Occurred()) SWIG_fail; | |
10551 | } | |
10552 | { | |
10553 | wxImage * resultptr; | |
10554 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10556 | } |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10564 | PyObject *resultobj; | |
10565 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10566 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10567 | SwigValueWrapper< wxImage > result; |
10568 | PyObject * obj0 = 0 ; | |
10569 | PyObject * obj1 = 0 ; | |
10570 | char *kwnames[] = { | |
10571 | (char *) "self",(char *) "clockwise", NULL | |
10572 | }; | |
10573 | ||
10574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10577 | if (obj1) { |
15afbcd0 RD |
10578 | arg2 = (bool) SWIG_AsBool(obj1); |
10579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10580 | } |
10581 | { | |
10582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10583 | result = (arg1)->Rotate90(arg2); | |
10584 | ||
10585 | wxPyEndAllowThreads(__tstate); | |
10586 | if (PyErr_Occurred()) SWIG_fail; | |
10587 | } | |
10588 | { | |
10589 | wxImage * resultptr; | |
10590 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10591 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10592 | } |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj; | |
10601 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10602 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10603 | SwigValueWrapper< wxImage > result; |
10604 | PyObject * obj0 = 0 ; | |
10605 | PyObject * obj1 = 0 ; | |
10606 | char *kwnames[] = { | |
10607 | (char *) "self",(char *) "horizontally", NULL | |
10608 | }; | |
10609 | ||
10610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10613 | if (obj1) { |
15afbcd0 RD |
10614 | arg2 = (bool) SWIG_AsBool(obj1); |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10616 | } |
10617 | { | |
10618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10619 | result = (arg1)->Mirror(arg2); | |
10620 | ||
10621 | wxPyEndAllowThreads(__tstate); | |
10622 | if (PyErr_Occurred()) SWIG_fail; | |
10623 | } | |
10624 | { | |
10625 | wxImage * resultptr; | |
10626 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10628 | } |
10629 | return resultobj; | |
10630 | fail: | |
10631 | return NULL; | |
10632 | } | |
10633 | ||
10634 | ||
10635 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10636 | PyObject *resultobj; | |
10637 | wxImage *arg1 = (wxImage *) 0 ; | |
10638 | unsigned char arg2 ; | |
10639 | unsigned char arg3 ; | |
10640 | unsigned char arg4 ; | |
10641 | unsigned char arg5 ; | |
10642 | unsigned char arg6 ; | |
10643 | unsigned char arg7 ; | |
10644 | PyObject * obj0 = 0 ; | |
10645 | PyObject * obj1 = 0 ; | |
10646 | PyObject * obj2 = 0 ; | |
10647 | PyObject * obj3 = 0 ; | |
10648 | PyObject * obj4 = 0 ; | |
10649 | PyObject * obj5 = 0 ; | |
10650 | PyObject * obj6 = 0 ; | |
10651 | char *kwnames[] = { | |
10652 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10653 | }; | |
10654 | ||
10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15afbcd0 RD |
10656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10658 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10659 | if (PyErr_Occurred()) SWIG_fail; | |
10660 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10661 | if (PyErr_Occurred()) SWIG_fail; | |
10662 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10663 | if (PyErr_Occurred()) SWIG_fail; | |
10664 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10667 | if (PyErr_Occurred()) SWIG_fail; | |
10668 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10670 | { |
10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10672 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10673 | ||
10674 | wxPyEndAllowThreads(__tstate); | |
10675 | if (PyErr_Occurred()) SWIG_fail; | |
10676 | } | |
10677 | Py_INCREF(Py_None); resultobj = Py_None; | |
10678 | return resultobj; | |
10679 | fail: | |
10680 | return NULL; | |
10681 | } | |
10682 | ||
10683 | ||
10684 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10685 | PyObject *resultobj; | |
10686 | wxImage *arg1 = (wxImage *) 0 ; | |
10687 | unsigned char arg2 ; | |
10688 | unsigned char arg3 ; | |
10689 | unsigned char arg4 ; | |
10690 | SwigValueWrapper< wxImage > result; | |
10691 | PyObject * obj0 = 0 ; | |
10692 | PyObject * obj1 = 0 ; | |
10693 | PyObject * obj2 = 0 ; | |
10694 | PyObject * obj3 = 0 ; | |
10695 | char *kwnames[] = { | |
10696 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10697 | }; | |
10698 | ||
10699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10702 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10703 | if (PyErr_Occurred()) SWIG_fail; | |
10704 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10705 | if (PyErr_Occurred()) SWIG_fail; | |
10706 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10707 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10708 | { |
10709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10710 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10711 | ||
10712 | wxPyEndAllowThreads(__tstate); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | } | |
10715 | { | |
10716 | wxImage * resultptr; | |
10717 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10718 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10719 | } |
10720 | return resultobj; | |
10721 | fail: | |
10722 | return NULL; | |
10723 | } | |
10724 | ||
10725 | ||
10726 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10727 | PyObject *resultobj; | |
10728 | wxImage *arg1 = (wxImage *) 0 ; | |
10729 | wxString *arg2 = 0 ; | |
10730 | wxString *arg3 = 0 ; | |
e811c8ce RD |
10731 | bool temp2 = False ; |
10732 | bool temp3 = False ; | |
d14a1e28 RD |
10733 | PyObject * obj0 = 0 ; |
10734 | PyObject * obj1 = 0 ; | |
10735 | PyObject * obj2 = 0 ; | |
10736 | char *kwnames[] = { | |
10737 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10738 | }; | |
10739 | ||
10740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10743 | { |
10744 | arg2 = wxString_in_helper(obj1); | |
10745 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10746 | temp2 = True; |
d14a1e28 RD |
10747 | } |
10748 | { | |
10749 | arg3 = wxString_in_helper(obj2); | |
10750 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10751 | temp3 = True; |
d14a1e28 RD |
10752 | } |
10753 | { | |
10754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10755 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10756 | ||
10757 | wxPyEndAllowThreads(__tstate); | |
10758 | if (PyErr_Occurred()) SWIG_fail; | |
10759 | } | |
10760 | Py_INCREF(Py_None); resultobj = Py_None; | |
10761 | { | |
10762 | if (temp2) | |
10763 | delete arg2; | |
10764 | } | |
10765 | { | |
10766 | if (temp3) | |
10767 | delete arg3; | |
10768 | } | |
10769 | return resultobj; | |
10770 | fail: | |
10771 | { | |
10772 | if (temp2) | |
10773 | delete arg2; | |
10774 | } | |
10775 | { | |
10776 | if (temp3) | |
10777 | delete arg3; | |
10778 | } | |
10779 | return NULL; | |
10780 | } | |
10781 | ||
10782 | ||
10783 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10784 | PyObject *resultobj; | |
10785 | wxImage *arg1 = (wxImage *) 0 ; | |
10786 | wxString *arg2 = 0 ; | |
10787 | int arg3 ; | |
e811c8ce | 10788 | bool temp2 = False ; |
d14a1e28 RD |
10789 | PyObject * obj0 = 0 ; |
10790 | PyObject * obj1 = 0 ; | |
994141e6 | 10791 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10792 | char *kwnames[] = { |
10793 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10794 | }; | |
10795 | ||
994141e6 | 10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10799 | { |
10800 | arg2 = wxString_in_helper(obj1); | |
10801 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10802 | temp2 = True; |
d14a1e28 | 10803 | } |
15afbcd0 RD |
10804 | arg3 = (int) SWIG_AsInt(obj2); |
10805 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10806 | { |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10808 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10809 | ||
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
10813 | Py_INCREF(Py_None); resultobj = Py_None; | |
10814 | { | |
10815 | if (temp2) | |
10816 | delete arg2; | |
10817 | } | |
10818 | return resultobj; | |
10819 | fail: | |
10820 | { | |
10821 | if (temp2) | |
10822 | delete arg2; | |
10823 | } | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
10828 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10829 | PyObject *resultobj; | |
10830 | wxImage *arg1 = (wxImage *) 0 ; | |
10831 | wxString *arg2 = 0 ; | |
10832 | wxString result; | |
e811c8ce | 10833 | bool temp2 = False ; |
d14a1e28 RD |
10834 | PyObject * obj0 = 0 ; |
10835 | PyObject * obj1 = 0 ; | |
10836 | char *kwnames[] = { | |
10837 | (char *) "self",(char *) "name", NULL | |
10838 | }; | |
10839 | ||
10840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10843 | { |
10844 | arg2 = wxString_in_helper(obj1); | |
10845 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10846 | temp2 = True; |
d14a1e28 RD |
10847 | } |
10848 | { | |
10849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10850 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10851 | ||
10852 | wxPyEndAllowThreads(__tstate); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | } | |
10855 | { | |
10856 | #if wxUSE_UNICODE | |
10857 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10858 | #else | |
10859 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10860 | #endif | |
10861 | } | |
10862 | { | |
10863 | if (temp2) | |
10864 | delete arg2; | |
10865 | } | |
10866 | return resultobj; | |
10867 | fail: | |
10868 | { | |
10869 | if (temp2) | |
10870 | delete arg2; | |
10871 | } | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
10876 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10877 | PyObject *resultobj; | |
10878 | wxImage *arg1 = (wxImage *) 0 ; | |
10879 | wxString *arg2 = 0 ; | |
10880 | int result; | |
e811c8ce | 10881 | bool temp2 = False ; |
d14a1e28 RD |
10882 | PyObject * obj0 = 0 ; |
10883 | PyObject * obj1 = 0 ; | |
10884 | char *kwnames[] = { | |
10885 | (char *) "self",(char *) "name", NULL | |
10886 | }; | |
10887 | ||
10888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10891 | { |
10892 | arg2 = wxString_in_helper(obj1); | |
10893 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10894 | temp2 = True; |
d14a1e28 RD |
10895 | } |
10896 | { | |
10897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10898 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10899 | ||
10900 | wxPyEndAllowThreads(__tstate); | |
10901 | if (PyErr_Occurred()) SWIG_fail; | |
10902 | } | |
15afbcd0 | 10903 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10904 | { |
10905 | if (temp2) | |
10906 | delete arg2; | |
10907 | } | |
10908 | return resultobj; | |
10909 | fail: | |
10910 | { | |
10911 | if (temp2) | |
10912 | delete arg2; | |
10913 | } | |
10914 | return NULL; | |
10915 | } | |
10916 | ||
10917 | ||
10918 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10919 | PyObject *resultobj; | |
10920 | wxImage *arg1 = (wxImage *) 0 ; | |
10921 | wxString *arg2 = 0 ; | |
10922 | bool result; | |
e811c8ce | 10923 | bool temp2 = False ; |
d14a1e28 RD |
10924 | PyObject * obj0 = 0 ; |
10925 | PyObject * obj1 = 0 ; | |
10926 | char *kwnames[] = { | |
10927 | (char *) "self",(char *) "name", NULL | |
10928 | }; | |
10929 | ||
10930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10933 | { |
10934 | arg2 = wxString_in_helper(obj1); | |
10935 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10936 | temp2 = True; |
d14a1e28 RD |
10937 | } |
10938 | { | |
10939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10940 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10941 | ||
10942 | wxPyEndAllowThreads(__tstate); | |
10943 | if (PyErr_Occurred()) SWIG_fail; | |
10944 | } | |
4f89f6a3 RD |
10945 | { |
10946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10947 | } | |
d14a1e28 RD |
10948 | { |
10949 | if (temp2) | |
10950 | delete arg2; | |
10951 | } | |
10952 | return resultobj; | |
10953 | fail: | |
10954 | { | |
10955 | if (temp2) | |
10956 | delete arg2; | |
10957 | } | |
10958 | return NULL; | |
10959 | } | |
10960 | ||
10961 | ||
10962 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10963 | PyObject *resultobj; | |
10964 | wxImage *arg1 = (wxImage *) 0 ; | |
10965 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
10966 | unsigned long result; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | PyObject * obj1 = 0 ; | |
10969 | char *kwnames[] = { | |
10970 | (char *) "self",(char *) "stopafter", NULL | |
10971 | }; | |
10972 | ||
10973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10976 | if (obj1) { |
15afbcd0 RD |
10977 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
10978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10979 | } |
10980 | { | |
10981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10982 | result = (unsigned long)(arg1)->CountColours(arg2); | |
10983 | ||
10984 | wxPyEndAllowThreads(__tstate); | |
10985 | if (PyErr_Occurred()) SWIG_fail; | |
10986 | } | |
15afbcd0 | 10987 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
10988 | return resultobj; |
10989 | fail: | |
10990 | return NULL; | |
10991 | } | |
10992 | ||
10993 | ||
10994 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10995 | PyObject *resultobj; | |
10996 | wxImage *arg1 = (wxImage *) 0 ; | |
10997 | wxImageHistogram *arg2 = 0 ; | |
10998 | unsigned long result; | |
10999 | PyObject * obj0 = 0 ; | |
11000 | PyObject * obj1 = 0 ; | |
11001 | char *kwnames[] = { | |
11002 | (char *) "self",(char *) "h", NULL | |
11003 | }; | |
11004 | ||
11005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11010 | SWIG_fail; | |
d14a1e28 | 11011 | if (arg2 == NULL) { |
15afbcd0 RD |
11012 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11013 | SWIG_fail; | |
d14a1e28 RD |
11014 | } |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
15afbcd0 | 11022 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11023 | return resultobj; |
11024 | fail: | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11032 | PyObject * obj0 = 0 ; | |
11033 | char *kwnames[] = { | |
11034 | (char *) "handler", NULL | |
11035 | }; | |
11036 | ||
11037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11040 | { |
11041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11042 | wxImage::AddHandler(arg1); | |
11043 | ||
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | Py_INCREF(Py_None); resultobj = Py_None; | |
11048 | return resultobj; | |
11049 | fail: | |
11050 | return NULL; | |
11051 | } | |
11052 | ||
11053 | ||
11054 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11055 | PyObject *resultobj; | |
11056 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11057 | PyObject * obj0 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "handler", NULL | |
11060 | }; | |
11061 | ||
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11065 | { |
11066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11067 | wxImage::InsertHandler(arg1); | |
11068 | ||
11069 | wxPyEndAllowThreads(__tstate); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | Py_INCREF(Py_None); resultobj = Py_None; | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj; | |
11081 | wxString *arg1 = 0 ; | |
11082 | bool result; | |
e811c8ce | 11083 | bool temp1 = False ; |
d14a1e28 RD |
11084 | PyObject * obj0 = 0 ; |
11085 | char *kwnames[] = { | |
11086 | (char *) "name", NULL | |
11087 | }; | |
11088 | ||
11089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11090 | { | |
11091 | arg1 = wxString_in_helper(obj0); | |
11092 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11093 | temp1 = True; |
d14a1e28 RD |
11094 | } |
11095 | { | |
11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11097 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11098 | ||
11099 | wxPyEndAllowThreads(__tstate); | |
11100 | if (PyErr_Occurred()) SWIG_fail; | |
11101 | } | |
4f89f6a3 RD |
11102 | { |
11103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11104 | } | |
d14a1e28 RD |
11105 | { |
11106 | if (temp1) | |
11107 | delete arg1; | |
11108 | } | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | { | |
11112 | if (temp1) | |
11113 | delete arg1; | |
11114 | } | |
11115 | return NULL; | |
11116 | } | |
11117 | ||
11118 | ||
11119 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11120 | PyObject *resultobj; | |
11121 | wxString result; | |
11122 | char *kwnames[] = { | |
11123 | NULL | |
11124 | }; | |
11125 | ||
11126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11127 | { | |
11128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11129 | result = wxImage::GetImageExtWildcard(); | |
11130 | ||
11131 | wxPyEndAllowThreads(__tstate); | |
11132 | if (PyErr_Occurred()) SWIG_fail; | |
11133 | } | |
11134 | { | |
11135 | #if wxUSE_UNICODE | |
11136 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11137 | #else | |
11138 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11139 | #endif | |
11140 | } | |
11141 | return resultobj; | |
11142 | fail: | |
11143 | return NULL; | |
11144 | } | |
11145 | ||
11146 | ||
11147 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11148 | PyObject *resultobj; | |
11149 | wxImage *arg1 = (wxImage *) 0 ; | |
11150 | wxBitmap result; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11159 | { |
11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11161 | result = wxImage_ConvertToBitmap(arg1); | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
11166 | { | |
11167 | wxBitmap * resultptr; | |
11168 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11169 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11170 | } |
11171 | return resultobj; | |
11172 | fail: | |
11173 | return NULL; | |
11174 | } | |
11175 | ||
11176 | ||
11177 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11178 | PyObject *resultobj; | |
11179 | wxImage *arg1 = (wxImage *) 0 ; | |
11180 | unsigned char arg2 ; | |
11181 | unsigned char arg3 ; | |
11182 | unsigned char arg4 ; | |
11183 | wxBitmap result; | |
11184 | PyObject * obj0 = 0 ; | |
11185 | PyObject * obj1 = 0 ; | |
11186 | PyObject * obj2 = 0 ; | |
11187 | PyObject * obj3 = 0 ; | |
11188 | char *kwnames[] = { | |
11189 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11190 | }; | |
11191 | ||
11192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11195 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11196 | if (PyErr_Occurred()) SWIG_fail; | |
11197 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11198 | if (PyErr_Occurred()) SWIG_fail; | |
11199 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11200 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11201 | { |
11202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11203 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11204 | ||
11205 | wxPyEndAllowThreads(__tstate); | |
11206 | if (PyErr_Occurred()) SWIG_fail; | |
11207 | } | |
11208 | { | |
11209 | wxBitmap * resultptr; | |
11210 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11211 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11212 | } |
11213 | return resultobj; | |
11214 | fail: | |
11215 | return NULL; | |
11216 | } | |
11217 | ||
11218 | ||
11219 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11220 | PyObject *obj; | |
11221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11222 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11223 | Py_INCREF(obj); | |
11224 | return Py_BuildValue((char *)""); | |
11225 | } | |
11226 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11227 | PyObject *resultobj; | |
11228 | char *kwnames[] = { | |
11229 | NULL | |
11230 | }; | |
11231 | ||
11232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11233 | { | |
11234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11235 | wxInitAllImageHandlers(); | |
11236 | ||
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | Py_INCREF(Py_None); resultobj = Py_None; | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
11244 | } | |
11245 | ||
11246 | ||
11247 | static int _wrap_NullImage_set(PyObject *_val) { | |
11248 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11249 | return 1; | |
11250 | } | |
11251 | ||
11252 | ||
11253 | static PyObject *_wrap_NullImage_get() { | |
11254 | PyObject *pyobj; | |
11255 | ||
15afbcd0 | 11256 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11257 | return pyobj; |
11258 | } | |
11259 | ||
11260 | ||
11261 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11262 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11263 | return 1; | |
11264 | } | |
11265 | ||
11266 | ||
11267 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11268 | PyObject *pyobj; | |
11269 | ||
11270 | { | |
11271 | #if wxUSE_UNICODE | |
11272 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11273 | #else | |
11274 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11275 | #endif | |
11276 | } | |
11277 | return pyobj; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11282 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11283 | return 1; | |
11284 | } | |
11285 | ||
11286 | ||
11287 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11288 | PyObject *pyobj; | |
11289 | ||
11290 | { | |
11291 | #if wxUSE_UNICODE | |
11292 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11293 | #else | |
11294 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11295 | #endif | |
11296 | } | |
11297 | return pyobj; | |
11298 | } | |
11299 | ||
11300 | ||
11301 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11302 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11303 | return 1; | |
11304 | } | |
11305 | ||
11306 | ||
11307 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11308 | PyObject *pyobj; | |
11309 | ||
11310 | { | |
11311 | #if wxUSE_UNICODE | |
11312 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11313 | #else | |
11314 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11315 | #endif | |
11316 | } | |
11317 | return pyobj; | |
11318 | } | |
11319 | ||
11320 | ||
11321 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11322 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11323 | return 1; | |
11324 | } | |
11325 | ||
11326 | ||
11327 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11328 | PyObject *pyobj; | |
11329 | ||
11330 | { | |
11331 | #if wxUSE_UNICODE | |
11332 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11333 | #else | |
11334 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11335 | #endif | |
11336 | } | |
11337 | return pyobj; | |
11338 | } | |
11339 | ||
11340 | ||
11341 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11342 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11343 | return 1; | |
11344 | } | |
11345 | ||
11346 | ||
11347 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11348 | PyObject *pyobj; | |
11349 | ||
11350 | { | |
11351 | #if wxUSE_UNICODE | |
11352 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11353 | #else | |
11354 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11355 | #endif | |
11356 | } | |
11357 | return pyobj; | |
11358 | } | |
11359 | ||
11360 | ||
11361 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11362 | PyObject *resultobj; | |
11363 | wxBMPHandler *result; | |
11364 | char *kwnames[] = { | |
11365 | NULL | |
11366 | }; | |
11367 | ||
11368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11369 | { | |
11370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11371 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11372 | ||
11373 | wxPyEndAllowThreads(__tstate); | |
11374 | if (PyErr_Occurred()) SWIG_fail; | |
11375 | } | |
15afbcd0 | 11376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11377 | return resultobj; |
11378 | fail: | |
11379 | return NULL; | |
11380 | } | |
11381 | ||
11382 | ||
11383 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11384 | PyObject *obj; | |
11385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11386 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11387 | Py_INCREF(obj); | |
11388 | return Py_BuildValue((char *)""); | |
11389 | } | |
11390 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxICOHandler *result; | |
11393 | char *kwnames[] = { | |
11394 | NULL | |
11395 | }; | |
11396 | ||
11397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11398 | { | |
11399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11400 | result = (wxICOHandler *)new wxICOHandler(); | |
11401 | ||
11402 | wxPyEndAllowThreads(__tstate); | |
11403 | if (PyErr_Occurred()) SWIG_fail; | |
11404 | } | |
15afbcd0 | 11405 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11406 | return resultobj; |
11407 | fail: | |
11408 | return NULL; | |
11409 | } | |
11410 | ||
11411 | ||
11412 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11413 | PyObject *obj; | |
11414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11415 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11416 | Py_INCREF(obj); | |
11417 | return Py_BuildValue((char *)""); | |
11418 | } | |
11419 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11420 | PyObject *resultobj; | |
11421 | wxCURHandler *result; | |
11422 | char *kwnames[] = { | |
11423 | NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11427 | { | |
11428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11429 | result = (wxCURHandler *)new wxCURHandler(); | |
11430 | ||
11431 | wxPyEndAllowThreads(__tstate); | |
11432 | if (PyErr_Occurred()) SWIG_fail; | |
11433 | } | |
15afbcd0 | 11434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11435 | return resultobj; |
11436 | fail: | |
11437 | return NULL; | |
11438 | } | |
11439 | ||
11440 | ||
11441 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11442 | PyObject *obj; | |
11443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11444 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11445 | Py_INCREF(obj); | |
11446 | return Py_BuildValue((char *)""); | |
11447 | } | |
11448 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11449 | PyObject *resultobj; | |
11450 | wxANIHandler *result; | |
11451 | char *kwnames[] = { | |
11452 | NULL | |
11453 | }; | |
11454 | ||
11455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11456 | { | |
11457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11458 | result = (wxANIHandler *)new wxANIHandler(); | |
11459 | ||
11460 | wxPyEndAllowThreads(__tstate); | |
11461 | if (PyErr_Occurred()) SWIG_fail; | |
11462 | } | |
15afbcd0 | 11463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11464 | return resultobj; |
11465 | fail: | |
11466 | return NULL; | |
11467 | } | |
11468 | ||
11469 | ||
11470 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11471 | PyObject *obj; | |
11472 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11473 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11474 | Py_INCREF(obj); | |
11475 | return Py_BuildValue((char *)""); | |
11476 | } | |
11477 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11478 | PyObject *resultobj; | |
11479 | wxPNGHandler *result; | |
11480 | char *kwnames[] = { | |
11481 | NULL | |
11482 | }; | |
11483 | ||
11484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11485 | { | |
11486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11487 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11488 | ||
11489 | wxPyEndAllowThreads(__tstate); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | } | |
15afbcd0 | 11492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11493 | return resultobj; |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
11499 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11500 | PyObject *obj; | |
11501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11502 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11503 | Py_INCREF(obj); | |
11504 | return Py_BuildValue((char *)""); | |
11505 | } | |
11506 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11507 | PyObject *resultobj; | |
11508 | wxGIFHandler *result; | |
11509 | char *kwnames[] = { | |
11510 | NULL | |
11511 | }; | |
11512 | ||
11513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11514 | { | |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11516 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11517 | ||
11518 | wxPyEndAllowThreads(__tstate); | |
11519 | if (PyErr_Occurred()) SWIG_fail; | |
11520 | } | |
15afbcd0 | 11521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11522 | return resultobj; |
11523 | fail: | |
11524 | return NULL; | |
11525 | } | |
11526 | ||
11527 | ||
11528 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11529 | PyObject *obj; | |
11530 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11531 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11532 | Py_INCREF(obj); | |
11533 | return Py_BuildValue((char *)""); | |
11534 | } | |
11535 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11536 | PyObject *resultobj; | |
11537 | wxPCXHandler *result; | |
11538 | char *kwnames[] = { | |
11539 | NULL | |
11540 | }; | |
11541 | ||
11542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11543 | { | |
11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11545 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11546 | ||
11547 | wxPyEndAllowThreads(__tstate); | |
11548 | if (PyErr_Occurred()) SWIG_fail; | |
11549 | } | |
15afbcd0 | 11550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11551 | return resultobj; |
11552 | fail: | |
11553 | return NULL; | |
11554 | } | |
11555 | ||
11556 | ||
11557 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11558 | PyObject *obj; | |
11559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11560 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11561 | Py_INCREF(obj); | |
11562 | return Py_BuildValue((char *)""); | |
11563 | } | |
11564 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11565 | PyObject *resultobj; | |
11566 | wxJPEGHandler *result; | |
11567 | char *kwnames[] = { | |
11568 | NULL | |
11569 | }; | |
11570 | ||
11571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11572 | { | |
11573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11574 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11575 | ||
11576 | wxPyEndAllowThreads(__tstate); | |
11577 | if (PyErr_Occurred()) SWIG_fail; | |
11578 | } | |
15afbcd0 | 11579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11580 | return resultobj; |
11581 | fail: | |
11582 | return NULL; | |
11583 | } | |
11584 | ||
11585 | ||
11586 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11587 | PyObject *obj; | |
11588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11589 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11590 | Py_INCREF(obj); | |
11591 | return Py_BuildValue((char *)""); | |
11592 | } | |
11593 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11594 | PyObject *resultobj; | |
11595 | wxPNMHandler *result; | |
11596 | char *kwnames[] = { | |
11597 | NULL | |
11598 | }; | |
11599 | ||
11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11601 | { | |
11602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11603 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11604 | ||
11605 | wxPyEndAllowThreads(__tstate); | |
11606 | if (PyErr_Occurred()) SWIG_fail; | |
11607 | } | |
15afbcd0 | 11608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11609 | return resultobj; |
11610 | fail: | |
11611 | return NULL; | |
11612 | } | |
11613 | ||
11614 | ||
11615 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11616 | PyObject *obj; | |
11617 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11618 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11619 | Py_INCREF(obj); | |
11620 | return Py_BuildValue((char *)""); | |
11621 | } | |
11622 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11623 | PyObject *resultobj; | |
11624 | wxXPMHandler *result; | |
11625 | char *kwnames[] = { | |
11626 | NULL | |
11627 | }; | |
11628 | ||
11629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11630 | { | |
11631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11632 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11633 | ||
11634 | wxPyEndAllowThreads(__tstate); | |
11635 | if (PyErr_Occurred()) SWIG_fail; | |
11636 | } | |
15afbcd0 | 11637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11638 | return resultobj; |
11639 | fail: | |
11640 | return NULL; | |
11641 | } | |
11642 | ||
11643 | ||
11644 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11645 | PyObject *obj; | |
11646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11647 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11648 | Py_INCREF(obj); | |
11649 | return Py_BuildValue((char *)""); | |
11650 | } | |
11651 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11652 | PyObject *resultobj; | |
11653 | wxTIFFHandler *result; | |
11654 | char *kwnames[] = { | |
11655 | NULL | |
11656 | }; | |
11657 | ||
11658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11659 | { | |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11662 | ||
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
15afbcd0 | 11666 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11667 | return resultobj; |
11668 | fail: | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
11673 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11674 | PyObject *obj; | |
11675 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11676 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11677 | Py_INCREF(obj); | |
11678 | return Py_BuildValue((char *)""); | |
11679 | } | |
11680 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11681 | PyObject *resultobj; | |
11682 | wxEvtHandler *result; | |
11683 | char *kwnames[] = { | |
11684 | NULL | |
11685 | }; | |
11686 | ||
11687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11688 | { | |
11689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11690 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11691 | ||
11692 | wxPyEndAllowThreads(__tstate); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
11695 | { | |
11696 | resultobj = wxPyMake_wxObject(result); | |
11697 | } | |
11698 | return resultobj; | |
11699 | fail: | |
11700 | return NULL; | |
11701 | } | |
11702 | ||
11703 | ||
11704 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11705 | PyObject *resultobj; | |
11706 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11707 | wxEvtHandler *result; | |
11708 | PyObject * obj0 = 0 ; | |
11709 | char *kwnames[] = { | |
11710 | (char *) "self", NULL | |
11711 | }; | |
11712 | ||
11713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11716 | { |
11717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11718 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11719 | ||
11720 | wxPyEndAllowThreads(__tstate); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
11722 | } | |
11723 | { | |
11724 | resultobj = wxPyMake_wxObject(result); | |
11725 | } | |
11726 | return resultobj; | |
11727 | fail: | |
11728 | return NULL; | |
11729 | } | |
11730 | ||
11731 | ||
11732 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11733 | PyObject *resultobj; | |
11734 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11735 | wxEvtHandler *result; | |
11736 | PyObject * obj0 = 0 ; | |
11737 | char *kwnames[] = { | |
11738 | (char *) "self", NULL | |
11739 | }; | |
11740 | ||
11741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11744 | { |
11745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11746 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11747 | ||
11748 | wxPyEndAllowThreads(__tstate); | |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
11750 | } | |
11751 | { | |
11752 | resultobj = wxPyMake_wxObject(result); | |
11753 | } | |
11754 | return resultobj; | |
11755 | fail: | |
11756 | return NULL; | |
11757 | } | |
11758 | ||
11759 | ||
11760 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11761 | PyObject *resultobj; | |
11762 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11763 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11764 | PyObject * obj0 = 0 ; | |
11765 | PyObject * obj1 = 0 ; | |
11766 | char *kwnames[] = { | |
11767 | (char *) "self",(char *) "handler", NULL | |
11768 | }; | |
11769 | ||
11770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11775 | { |
11776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11777 | (arg1)->SetNextHandler(arg2); | |
11778 | ||
11779 | wxPyEndAllowThreads(__tstate); | |
11780 | if (PyErr_Occurred()) SWIG_fail; | |
11781 | } | |
11782 | Py_INCREF(Py_None); resultobj = Py_None; | |
11783 | return resultobj; | |
11784 | fail: | |
11785 | return NULL; | |
11786 | } | |
11787 | ||
11788 | ||
11789 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11790 | PyObject *resultobj; | |
11791 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11792 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11793 | PyObject * obj0 = 0 ; | |
11794 | PyObject * obj1 = 0 ; | |
11795 | char *kwnames[] = { | |
11796 | (char *) "self",(char *) "handler", NULL | |
11797 | }; | |
11798 | ||
11799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11804 | { |
11805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11806 | (arg1)->SetPreviousHandler(arg2); | |
11807 | ||
11808 | wxPyEndAllowThreads(__tstate); | |
11809 | if (PyErr_Occurred()) SWIG_fail; | |
11810 | } | |
11811 | Py_INCREF(Py_None); resultobj = Py_None; | |
11812 | return resultobj; | |
11813 | fail: | |
11814 | return NULL; | |
11815 | } | |
11816 | ||
11817 | ||
11818 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11819 | PyObject *resultobj; | |
11820 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11821 | bool result; | |
11822 | PyObject * obj0 = 0 ; | |
11823 | char *kwnames[] = { | |
11824 | (char *) "self", NULL | |
11825 | }; | |
11826 | ||
11827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11830 | { |
11831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11832 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11833 | ||
11834 | wxPyEndAllowThreads(__tstate); | |
11835 | if (PyErr_Occurred()) SWIG_fail; | |
11836 | } | |
4f89f6a3 RD |
11837 | { |
11838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11839 | } | |
d14a1e28 RD |
11840 | return resultobj; |
11841 | fail: | |
11842 | return NULL; | |
11843 | } | |
11844 | ||
11845 | ||
11846 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11847 | PyObject *resultobj; | |
11848 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11849 | bool arg2 ; | |
11850 | PyObject * obj0 = 0 ; | |
11851 | PyObject * obj1 = 0 ; | |
11852 | char *kwnames[] = { | |
11853 | (char *) "self",(char *) "enabled", NULL | |
11854 | }; | |
11855 | ||
11856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11859 | arg2 = (bool) SWIG_AsBool(obj1); | |
11860 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11861 | { |
11862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11863 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11864 | ||
11865 | wxPyEndAllowThreads(__tstate); | |
11866 | if (PyErr_Occurred()) SWIG_fail; | |
11867 | } | |
11868 | Py_INCREF(Py_None); resultobj = Py_None; | |
11869 | return resultobj; | |
11870 | fail: | |
11871 | return NULL; | |
11872 | } | |
11873 | ||
11874 | ||
11875 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11876 | PyObject *resultobj; | |
11877 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11878 | wxEvent *arg2 = 0 ; | |
11879 | bool result; | |
11880 | PyObject * obj0 = 0 ; | |
11881 | PyObject * obj1 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self",(char *) "event", NULL | |
11884 | }; | |
11885 | ||
11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11891 | SWIG_fail; | |
d14a1e28 | 11892 | if (arg2 == NULL) { |
15afbcd0 RD |
11893 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11894 | SWIG_fail; | |
d14a1e28 RD |
11895 | } |
11896 | { | |
11897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11898 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11899 | ||
11900 | wxPyEndAllowThreads(__tstate); | |
11901 | if (PyErr_Occurred()) SWIG_fail; | |
11902 | } | |
4f89f6a3 RD |
11903 | { |
11904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11905 | } | |
d14a1e28 RD |
11906 | return resultobj; |
11907 | fail: | |
11908 | return NULL; | |
11909 | } | |
11910 | ||
11911 | ||
11912 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11913 | PyObject *resultobj; | |
11914 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11915 | wxEvent *arg2 = 0 ; | |
11916 | PyObject * obj0 = 0 ; | |
11917 | PyObject * obj1 = 0 ; | |
11918 | char *kwnames[] = { | |
11919 | (char *) "self",(char *) "event", NULL | |
11920 | }; | |
11921 | ||
11922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11927 | SWIG_fail; | |
d14a1e28 | 11928 | if (arg2 == NULL) { |
15afbcd0 RD |
11929 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11930 | SWIG_fail; | |
d14a1e28 RD |
11931 | } |
11932 | { | |
11933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11934 | (arg1)->AddPendingEvent(*arg2); | |
11935 | ||
11936 | wxPyEndAllowThreads(__tstate); | |
11937 | if (PyErr_Occurred()) SWIG_fail; | |
11938 | } | |
11939 | Py_INCREF(Py_None); resultobj = Py_None; | |
11940 | return resultobj; | |
11941 | fail: | |
11942 | return NULL; | |
11943 | } | |
11944 | ||
11945 | ||
11946 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11947 | PyObject *resultobj; | |
11948 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11949 | PyObject * obj0 = 0 ; | |
11950 | char *kwnames[] = { | |
11951 | (char *) "self", NULL | |
11952 | }; | |
11953 | ||
11954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11957 | { |
11958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11959 | (arg1)->ProcessPendingEvents(); | |
11960 | ||
11961 | wxPyEndAllowThreads(__tstate); | |
11962 | if (PyErr_Occurred()) SWIG_fail; | |
11963 | } | |
11964 | Py_INCREF(Py_None); resultobj = Py_None; | |
11965 | return resultobj; | |
11966 | fail: | |
11967 | return NULL; | |
11968 | } | |
11969 | ||
11970 | ||
11971 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11972 | PyObject *resultobj; | |
11973 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11974 | int arg2 ; | |
11975 | int arg3 ; | |
11976 | int arg4 ; | |
11977 | PyObject *arg5 = (PyObject *) 0 ; | |
11978 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11979 | PyObject * obj1 = 0 ; |
11980 | PyObject * obj2 = 0 ; | |
11981 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11982 | PyObject * obj4 = 0 ; |
11983 | char *kwnames[] = { | |
11984 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
11985 | }; | |
11986 | ||
994141e6 | 11987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
11988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11990 | arg2 = (int) SWIG_AsInt(obj1); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | arg3 = (int) SWIG_AsInt(obj2); | |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | arg4 = (int) SWIG_AsInt(obj3); | |
11995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11996 | arg5 = obj4; |
11997 | { | |
11998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11999 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12000 | ||
12001 | wxPyEndAllowThreads(__tstate); | |
12002 | if (PyErr_Occurred()) SWIG_fail; | |
12003 | } | |
12004 | Py_INCREF(Py_None); resultobj = Py_None; | |
12005 | return resultobj; | |
12006 | fail: | |
12007 | return NULL; | |
12008 | } | |
12009 | ||
12010 | ||
12011 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12012 | PyObject *resultobj; | |
12013 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12014 | int arg2 ; | |
12015 | int arg3 = (int) -1 ; | |
12016 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12017 | bool result; | |
12018 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12019 | PyObject * obj1 = 0 ; |
12020 | PyObject * obj2 = 0 ; | |
12021 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12022 | char *kwnames[] = { |
12023 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12024 | }; | |
12025 | ||
994141e6 | 12026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12029 | arg2 = (int) SWIG_AsInt(obj1); | |
12030 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12031 | if (obj2) { |
15afbcd0 RD |
12032 | arg3 = (int) SWIG_AsInt(obj2); |
12033 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12034 | } |
12035 | if (obj3) { | |
15afbcd0 RD |
12036 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
12037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12038 | } |
d14a1e28 RD |
12039 | { |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
4f89f6a3 RD |
12046 | { |
12047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12048 | } | |
d14a1e28 RD |
12049 | return resultobj; |
12050 | fail: | |
12051 | return NULL; | |
12052 | } | |
12053 | ||
12054 | ||
12055 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12056 | PyObject *resultobj; | |
12057 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12058 | PyObject *arg2 = (PyObject *) 0 ; | |
12059 | PyObject * obj0 = 0 ; | |
12060 | PyObject * obj1 = 0 ; | |
12061 | char *kwnames[] = { | |
12062 | (char *) "self",(char *) "_self", NULL | |
12063 | }; | |
12064 | ||
12065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12068 | arg2 = obj1; |
12069 | { | |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | Py_INCREF(Py_None); resultobj = Py_None; | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12084 | PyObject *obj; | |
12085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12086 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12087 | Py_INCREF(obj); | |
12088 | return Py_BuildValue((char *)""); | |
12089 | } | |
12090 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12091 | PyObject *resultobj; | |
12092 | wxEventType result; | |
12093 | char *kwnames[] = { | |
12094 | NULL | |
12095 | }; | |
12096 | ||
12097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12098 | { | |
12099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12100 | result = (wxEventType)wxNewEventType(); | |
12101 | ||
12102 | wxPyEndAllowThreads(__tstate); | |
12103 | if (PyErr_Occurred()) SWIG_fail; | |
12104 | } | |
15afbcd0 | 12105 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12106 | return resultobj; |
12107 | fail: | |
12108 | return NULL; | |
12109 | } | |
12110 | ||
12111 | ||
12112 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12113 | PyObject *resultobj; | |
12114 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12115 | PyObject * obj0 = 0 ; | |
12116 | char *kwnames[] = { | |
12117 | (char *) "self", NULL | |
12118 | }; | |
12119 | ||
12120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12123 | { |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | delete arg1; | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
12130 | Py_INCREF(Py_None); resultobj = Py_None; | |
12131 | return resultobj; | |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12140 | wxEventType arg2 ; | |
12141 | PyObject * obj0 = 0 ; | |
994141e6 | 12142 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12143 | char *kwnames[] = { |
12144 | (char *) "self",(char *) "typ", NULL | |
12145 | }; | |
12146 | ||
994141e6 | 12147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12150 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12151 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12152 | { |
12153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12154 | (arg1)->SetEventType(arg2); | |
12155 | ||
12156 | wxPyEndAllowThreads(__tstate); | |
12157 | if (PyErr_Occurred()) SWIG_fail; | |
12158 | } | |
12159 | Py_INCREF(Py_None); resultobj = Py_None; | |
12160 | return resultobj; | |
12161 | fail: | |
12162 | return NULL; | |
12163 | } | |
12164 | ||
12165 | ||
12166 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12167 | PyObject *resultobj; | |
12168 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12169 | wxEventType result; | |
12170 | PyObject * obj0 = 0 ; | |
12171 | char *kwnames[] = { | |
12172 | (char *) "self", NULL | |
12173 | }; | |
12174 | ||
12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12178 | { |
12179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12180 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12181 | ||
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
15afbcd0 | 12185 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12186 | return resultobj; |
12187 | fail: | |
12188 | return NULL; | |
12189 | } | |
12190 | ||
12191 | ||
12192 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12193 | PyObject *resultobj; | |
12194 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12195 | wxObject *result; | |
12196 | PyObject * obj0 = 0 ; | |
12197 | char *kwnames[] = { | |
12198 | (char *) "self", NULL | |
12199 | }; | |
12200 | ||
12201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12204 | { |
12205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12206 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12207 | ||
12208 | wxPyEndAllowThreads(__tstate); | |
12209 | if (PyErr_Occurred()) SWIG_fail; | |
12210 | } | |
12211 | { | |
12212 | resultobj = wxPyMake_wxObject(result); | |
12213 | } | |
12214 | return resultobj; | |
12215 | fail: | |
12216 | return NULL; | |
12217 | } | |
12218 | ||
12219 | ||
12220 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12221 | PyObject *resultobj; | |
12222 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12223 | wxObject *arg2 = (wxObject *) 0 ; | |
12224 | PyObject * obj0 = 0 ; | |
12225 | PyObject * obj1 = 0 ; | |
12226 | char *kwnames[] = { | |
12227 | (char *) "self",(char *) "obj", NULL | |
12228 | }; | |
12229 | ||
12230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12235 | { |
12236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12237 | (arg1)->SetEventObject(arg2); | |
12238 | ||
12239 | wxPyEndAllowThreads(__tstate); | |
12240 | if (PyErr_Occurred()) SWIG_fail; | |
12241 | } | |
12242 | Py_INCREF(Py_None); resultobj = Py_None; | |
12243 | return resultobj; | |
12244 | fail: | |
12245 | return NULL; | |
12246 | } | |
12247 | ||
12248 | ||
12249 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12250 | PyObject *resultobj; | |
12251 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12252 | long result; | |
12253 | PyObject * obj0 = 0 ; | |
12254 | char *kwnames[] = { | |
12255 | (char *) "self", NULL | |
12256 | }; | |
12257 | ||
12258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12261 | { |
12262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12263 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12264 | ||
12265 | wxPyEndAllowThreads(__tstate); | |
12266 | if (PyErr_Occurred()) SWIG_fail; | |
12267 | } | |
15afbcd0 | 12268 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12269 | return resultobj; |
12270 | fail: | |
12271 | return NULL; | |
12272 | } | |
12273 | ||
12274 | ||
12275 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12276 | PyObject *resultobj; | |
12277 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12278 | long arg2 = (long) 0 ; | |
12279 | PyObject * obj0 = 0 ; | |
994141e6 | 12280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12281 | char *kwnames[] = { |
12282 | (char *) "self",(char *) "ts", NULL | |
12283 | }; | |
12284 | ||
994141e6 | 12285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 12288 | if (obj1) { |
15afbcd0 RD |
12289 | arg2 = (long) SWIG_AsLong(obj1); |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12291 | } |
d14a1e28 RD |
12292 | { |
12293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12294 | (arg1)->SetTimestamp(arg2); | |
12295 | ||
12296 | wxPyEndAllowThreads(__tstate); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | } | |
12299 | Py_INCREF(Py_None); resultobj = Py_None; | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | return NULL; | |
12303 | } | |
12304 | ||
12305 | ||
12306 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12307 | PyObject *resultobj; | |
12308 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12309 | int result; | |
12310 | PyObject * obj0 = 0 ; | |
12311 | char *kwnames[] = { | |
12312 | (char *) "self", NULL | |
12313 | }; | |
12314 | ||
12315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12318 | { |
12319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12320 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12321 | ||
12322 | wxPyEndAllowThreads(__tstate); | |
12323 | if (PyErr_Occurred()) SWIG_fail; | |
12324 | } | |
15afbcd0 | 12325 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12326 | return resultobj; |
12327 | fail: | |
12328 | return NULL; | |
12329 | } | |
12330 | ||
12331 | ||
12332 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12333 | PyObject *resultobj; | |
12334 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12335 | int arg2 ; | |
12336 | PyObject * obj0 = 0 ; | |
994141e6 | 12337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12338 | char *kwnames[] = { |
12339 | (char *) "self",(char *) "Id", NULL | |
12340 | }; | |
12341 | ||
994141e6 | 12342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12345 | arg2 = (int) SWIG_AsInt(obj1); | |
12346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12347 | { |
12348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12349 | (arg1)->SetId(arg2); | |
12350 | ||
12351 | wxPyEndAllowThreads(__tstate); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | Py_INCREF(Py_None); resultobj = Py_None; | |
12355 | return resultobj; | |
12356 | fail: | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
12361 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12362 | PyObject *resultobj; | |
12363 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12364 | bool result; | |
12365 | PyObject * obj0 = 0 ; | |
12366 | char *kwnames[] = { | |
12367 | (char *) "self", NULL | |
12368 | }; | |
12369 | ||
12370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12373 | { |
12374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12375 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12376 | ||
12377 | wxPyEndAllowThreads(__tstate); | |
12378 | if (PyErr_Occurred()) SWIG_fail; | |
12379 | } | |
4f89f6a3 RD |
12380 | { |
12381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12382 | } | |
d14a1e28 RD |
12383 | return resultobj; |
12384 | fail: | |
12385 | return NULL; | |
12386 | } | |
12387 | ||
12388 | ||
12389 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12390 | PyObject *resultobj; | |
12391 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 12392 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12393 | PyObject * obj0 = 0 ; |
12394 | PyObject * obj1 = 0 ; | |
12395 | char *kwnames[] = { | |
12396 | (char *) "self",(char *) "skip", NULL | |
12397 | }; | |
12398 | ||
12399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12402 | if (obj1) { |
15afbcd0 RD |
12403 | arg2 = (bool) SWIG_AsBool(obj1); |
12404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12405 | } |
12406 | { | |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | (arg1)->Skip(arg2); | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
12413 | Py_INCREF(Py_None); resultobj = Py_None; | |
12414 | return resultobj; | |
12415 | fail: | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
12420 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12421 | PyObject *resultobj; | |
12422 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12423 | bool result; | |
12424 | PyObject * obj0 = 0 ; | |
12425 | char *kwnames[] = { | |
12426 | (char *) "self", NULL | |
12427 | }; | |
12428 | ||
12429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12432 | { |
12433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12434 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12435 | ||
12436 | wxPyEndAllowThreads(__tstate); | |
12437 | if (PyErr_Occurred()) SWIG_fail; | |
12438 | } | |
4f89f6a3 RD |
12439 | { |
12440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12441 | } | |
d14a1e28 RD |
12442 | return resultobj; |
12443 | fail: | |
12444 | return NULL; | |
12445 | } | |
12446 | ||
12447 | ||
12448 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12449 | PyObject *resultobj; | |
12450 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12451 | bool result; | |
12452 | PyObject * obj0 = 0 ; | |
12453 | char *kwnames[] = { | |
12454 | (char *) "self", NULL | |
12455 | }; | |
12456 | ||
12457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12460 | { |
12461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12462 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12463 | ||
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
4f89f6a3 RD |
12467 | { |
12468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12469 | } | |
d14a1e28 RD |
12470 | return resultobj; |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
12476 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12477 | PyObject *resultobj; | |
12478 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12479 | int result; | |
12480 | PyObject * obj0 = 0 ; | |
12481 | char *kwnames[] = { | |
12482 | (char *) "self", NULL | |
12483 | }; | |
12484 | ||
12485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12488 | { |
12489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12490 | result = (int)(arg1)->StopPropagation(); | |
12491 | ||
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
15afbcd0 | 12495 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12496 | return resultobj; |
12497 | fail: | |
12498 | return NULL; | |
12499 | } | |
12500 | ||
12501 | ||
12502 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12503 | PyObject *resultobj; | |
12504 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12505 | int arg2 ; | |
12506 | PyObject * obj0 = 0 ; | |
994141e6 | 12507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12508 | char *kwnames[] = { |
12509 | (char *) "self",(char *) "propagationLevel", NULL | |
12510 | }; | |
12511 | ||
994141e6 | 12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12515 | arg2 = (int) SWIG_AsInt(obj1); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12517 | { |
12518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12519 | (arg1)->ResumePropagation(arg2); | |
12520 | ||
12521 | wxPyEndAllowThreads(__tstate); | |
12522 | if (PyErr_Occurred()) SWIG_fail; | |
12523 | } | |
12524 | Py_INCREF(Py_None); resultobj = Py_None; | |
12525 | return resultobj; | |
12526 | fail: | |
12527 | return NULL; | |
12528 | } | |
12529 | ||
12530 | ||
12531 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12532 | PyObject *resultobj; | |
12533 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12534 | wxEvent *result; | |
12535 | PyObject * obj0 = 0 ; | |
12536 | char *kwnames[] = { | |
12537 | (char *) "self", NULL | |
12538 | }; | |
12539 | ||
12540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12543 | { |
12544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12545 | result = (wxEvent *)(arg1)->Clone(); | |
12546 | ||
12547 | wxPyEndAllowThreads(__tstate); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
12549 | } | |
15afbcd0 | 12550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12551 | return resultobj; |
12552 | fail: | |
12553 | return NULL; | |
12554 | } | |
12555 | ||
12556 | ||
12557 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12558 | PyObject *obj; | |
12559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12560 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12561 | Py_INCREF(obj); | |
12562 | return Py_BuildValue((char *)""); | |
12563 | } | |
12564 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12565 | PyObject *resultobj; | |
12566 | wxEvent *arg1 = 0 ; | |
12567 | wxPropagationDisabler *result; | |
12568 | PyObject * obj0 = 0 ; | |
12569 | char *kwnames[] = { | |
12570 | (char *) "event", NULL | |
12571 | }; | |
12572 | ||
12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12576 | SWIG_fail; | |
d14a1e28 | 12577 | if (arg1 == NULL) { |
15afbcd0 RD |
12578 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12579 | SWIG_fail; | |
d14a1e28 RD |
12580 | } |
12581 | { | |
12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12583 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12584 | ||
12585 | wxPyEndAllowThreads(__tstate); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | } | |
15afbcd0 | 12588 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12589 | return resultobj; |
12590 | fail: | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
12595 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12596 | PyObject *resultobj; | |
12597 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12606 | { |
12607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12608 | delete arg1; | |
12609 | ||
12610 | wxPyEndAllowThreads(__tstate); | |
12611 | if (PyErr_Occurred()) SWIG_fail; | |
12612 | } | |
12613 | Py_INCREF(Py_None); resultobj = Py_None; | |
12614 | return resultobj; | |
12615 | fail: | |
12616 | return NULL; | |
12617 | } | |
12618 | ||
12619 | ||
12620 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12621 | PyObject *obj; | |
12622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12623 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12624 | Py_INCREF(obj); | |
12625 | return Py_BuildValue((char *)""); | |
12626 | } | |
12627 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12628 | PyObject *resultobj; | |
12629 | wxEvent *arg1 = 0 ; | |
12630 | wxPropagateOnce *result; | |
12631 | PyObject * obj0 = 0 ; | |
12632 | char *kwnames[] = { | |
12633 | (char *) "event", NULL | |
12634 | }; | |
12635 | ||
12636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12639 | SWIG_fail; | |
d14a1e28 | 12640 | if (arg1 == NULL) { |
15afbcd0 RD |
12641 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12642 | SWIG_fail; | |
d14a1e28 RD |
12643 | } |
12644 | { | |
12645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12646 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12647 | ||
12648 | wxPyEndAllowThreads(__tstate); | |
12649 | if (PyErr_Occurred()) SWIG_fail; | |
12650 | } | |
15afbcd0 | 12651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12652 | return resultobj; |
12653 | fail: | |
12654 | return NULL; | |
12655 | } | |
12656 | ||
12657 | ||
12658 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12659 | PyObject *resultobj; | |
12660 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12661 | PyObject * obj0 = 0 ; | |
12662 | char *kwnames[] = { | |
12663 | (char *) "self", NULL | |
12664 | }; | |
12665 | ||
12666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12669 | { |
12670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12671 | delete arg1; | |
12672 | ||
12673 | wxPyEndAllowThreads(__tstate); | |
12674 | if (PyErr_Occurred()) SWIG_fail; | |
12675 | } | |
12676 | Py_INCREF(Py_None); resultobj = Py_None; | |
12677 | return resultobj; | |
12678 | fail: | |
12679 | return NULL; | |
12680 | } | |
12681 | ||
12682 | ||
12683 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12684 | PyObject *obj; | |
12685 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12686 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12687 | Py_INCREF(obj); | |
12688 | return Py_BuildValue((char *)""); | |
12689 | } | |
12690 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12691 | PyObject *resultobj; | |
12692 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12693 | int arg2 = (int) 0 ; | |
12694 | wxCommandEvent *result; | |
994141e6 RD |
12695 | PyObject * obj0 = 0 ; |
12696 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12697 | char *kwnames[] = { |
12698 | (char *) "commandType",(char *) "winid", NULL | |
12699 | }; | |
12700 | ||
994141e6 RD |
12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12702 | if (obj0) { | |
15afbcd0 RD |
12703 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12704 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12705 | } |
12706 | if (obj1) { | |
15afbcd0 RD |
12707 | arg2 = (int) SWIG_AsInt(obj1); |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12709 | } |
d14a1e28 RD |
12710 | { |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12713 | ||
12714 | wxPyEndAllowThreads(__tstate); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
12716 | } | |
15afbcd0 | 12717 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12718 | return resultobj; |
12719 | fail: | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj; | |
12726 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12727 | int result; | |
12728 | PyObject * obj0 = 0 ; | |
12729 | char *kwnames[] = { | |
12730 | (char *) "self", NULL | |
12731 | }; | |
12732 | ||
12733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12736 | { |
12737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12738 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12739 | ||
12740 | wxPyEndAllowThreads(__tstate); | |
12741 | if (PyErr_Occurred()) SWIG_fail; | |
12742 | } | |
15afbcd0 | 12743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12744 | return resultobj; |
12745 | fail: | |
12746 | return NULL; | |
12747 | } | |
12748 | ||
12749 | ||
12750 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12751 | PyObject *resultobj; | |
12752 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12753 | wxString *arg2 = 0 ; | |
e811c8ce | 12754 | bool temp2 = False ; |
d14a1e28 RD |
12755 | PyObject * obj0 = 0 ; |
12756 | PyObject * obj1 = 0 ; | |
12757 | char *kwnames[] = { | |
12758 | (char *) "self",(char *) "s", NULL | |
12759 | }; | |
12760 | ||
12761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12764 | { |
12765 | arg2 = wxString_in_helper(obj1); | |
12766 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12767 | temp2 = True; |
d14a1e28 RD |
12768 | } |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | (arg1)->SetString((wxString const &)*arg2); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | Py_INCREF(Py_None); resultobj = Py_None; | |
12777 | { | |
12778 | if (temp2) | |
12779 | delete arg2; | |
12780 | } | |
12781 | return resultobj; | |
12782 | fail: | |
12783 | { | |
12784 | if (temp2) | |
12785 | delete arg2; | |
12786 | } | |
12787 | return NULL; | |
12788 | } | |
12789 | ||
12790 | ||
12791 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12792 | PyObject *resultobj; | |
12793 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12794 | wxString result; | |
12795 | PyObject * obj0 = 0 ; | |
12796 | char *kwnames[] = { | |
12797 | (char *) "self", NULL | |
12798 | }; | |
12799 | ||
12800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12803 | { |
12804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12805 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12806 | ||
12807 | wxPyEndAllowThreads(__tstate); | |
12808 | if (PyErr_Occurred()) SWIG_fail; | |
12809 | } | |
12810 | { | |
12811 | #if wxUSE_UNICODE | |
12812 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12813 | #else | |
12814 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12815 | #endif | |
12816 | } | |
12817 | return resultobj; | |
12818 | fail: | |
12819 | return NULL; | |
12820 | } | |
12821 | ||
12822 | ||
12823 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12824 | PyObject *resultobj; | |
12825 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12826 | bool result; | |
12827 | PyObject * obj0 = 0 ; | |
12828 | char *kwnames[] = { | |
12829 | (char *) "self", NULL | |
12830 | }; | |
12831 | ||
12832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12835 | { |
12836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12837 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12838 | ||
12839 | wxPyEndAllowThreads(__tstate); | |
12840 | if (PyErr_Occurred()) SWIG_fail; | |
12841 | } | |
4f89f6a3 RD |
12842 | { |
12843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12844 | } | |
d14a1e28 RD |
12845 | return resultobj; |
12846 | fail: | |
12847 | return NULL; | |
12848 | } | |
12849 | ||
12850 | ||
12851 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12852 | PyObject *resultobj; | |
12853 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12854 | bool result; | |
12855 | PyObject * obj0 = 0 ; | |
12856 | char *kwnames[] = { | |
12857 | (char *) "self", NULL | |
12858 | }; | |
12859 | ||
12860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12863 | { |
12864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12865 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12866 | ||
12867 | wxPyEndAllowThreads(__tstate); | |
12868 | if (PyErr_Occurred()) SWIG_fail; | |
12869 | } | |
4f89f6a3 RD |
12870 | { |
12871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12872 | } | |
d14a1e28 RD |
12873 | return resultobj; |
12874 | fail: | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
12879 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12880 | PyObject *resultobj; | |
12881 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12882 | long arg2 ; | |
12883 | PyObject * obj0 = 0 ; | |
994141e6 | 12884 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12885 | char *kwnames[] = { |
12886 | (char *) "self",(char *) "extraLong", NULL | |
12887 | }; | |
12888 | ||
994141e6 | 12889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12892 | arg2 = (long) SWIG_AsLong(obj1); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12894 | { |
12895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12896 | (arg1)->SetExtraLong(arg2); | |
12897 | ||
12898 | wxPyEndAllowThreads(__tstate); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
12900 | } | |
12901 | Py_INCREF(Py_None); resultobj = Py_None; | |
12902 | return resultobj; | |
12903 | fail: | |
12904 | return NULL; | |
12905 | } | |
12906 | ||
12907 | ||
12908 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12909 | PyObject *resultobj; | |
12910 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12911 | long result; | |
12912 | PyObject * obj0 = 0 ; | |
12913 | char *kwnames[] = { | |
12914 | (char *) "self", NULL | |
12915 | }; | |
12916 | ||
12917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12920 | { |
12921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12922 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12923 | ||
12924 | wxPyEndAllowThreads(__tstate); | |
12925 | if (PyErr_Occurred()) SWIG_fail; | |
12926 | } | |
15afbcd0 | 12927 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12928 | return resultobj; |
12929 | fail: | |
12930 | return NULL; | |
12931 | } | |
12932 | ||
12933 | ||
12934 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12935 | PyObject *resultobj; | |
12936 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12937 | int arg2 ; | |
12938 | PyObject * obj0 = 0 ; | |
994141e6 | 12939 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12940 | char *kwnames[] = { |
12941 | (char *) "self",(char *) "i", NULL | |
12942 | }; | |
12943 | ||
994141e6 | 12944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12947 | arg2 = (int) SWIG_AsInt(obj1); | |
12948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12949 | { |
12950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12951 | (arg1)->SetInt(arg2); | |
12952 | ||
12953 | wxPyEndAllowThreads(__tstate); | |
12954 | if (PyErr_Occurred()) SWIG_fail; | |
12955 | } | |
12956 | Py_INCREF(Py_None); resultobj = Py_None; | |
12957 | return resultobj; | |
12958 | fail: | |
12959 | return NULL; | |
12960 | } | |
12961 | ||
12962 | ||
12963 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12964 | PyObject *resultobj; | |
12965 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12966 | long result; | |
12967 | PyObject * obj0 = 0 ; | |
12968 | char *kwnames[] = { | |
12969 | (char *) "self", NULL | |
12970 | }; | |
12971 | ||
12972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12975 | { |
12976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12977 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
12978 | ||
12979 | wxPyEndAllowThreads(__tstate); | |
12980 | if (PyErr_Occurred()) SWIG_fail; | |
12981 | } | |
15afbcd0 | 12982 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12983 | return resultobj; |
12984 | fail: | |
12985 | return NULL; | |
12986 | } | |
12987 | ||
12988 | ||
12989 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12990 | PyObject *resultobj; | |
12991 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12992 | wxEvent *result; | |
12993 | PyObject * obj0 = 0 ; | |
12994 | char *kwnames[] = { | |
12995 | (char *) "self", NULL | |
12996 | }; | |
12997 | ||
12998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13001 | { |
13002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13003 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13004 | ||
13005 | wxPyEndAllowThreads(__tstate); | |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
13007 | } | |
15afbcd0 | 13008 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13009 | return resultobj; |
13010 | fail: | |
13011 | return NULL; | |
13012 | } | |
13013 | ||
13014 | ||
13015 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13016 | PyObject *obj; | |
13017 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13018 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13019 | Py_INCREF(obj); | |
13020 | return Py_BuildValue((char *)""); | |
13021 | } | |
13022 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13023 | PyObject *resultobj; | |
13024 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13025 | int arg2 = (int) 0 ; | |
13026 | wxNotifyEvent *result; | |
994141e6 RD |
13027 | PyObject * obj0 = 0 ; |
13028 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13029 | char *kwnames[] = { |
13030 | (char *) "commandType",(char *) "winid", NULL | |
13031 | }; | |
13032 | ||
994141e6 RD |
13033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
13034 | if (obj0) { | |
15afbcd0 RD |
13035 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13036 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13037 | } |
13038 | if (obj1) { | |
15afbcd0 RD |
13039 | arg2 = (int) SWIG_AsInt(obj1); |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13041 | } |
d14a1e28 RD |
13042 | { |
13043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13044 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13045 | ||
13046 | wxPyEndAllowThreads(__tstate); | |
13047 | if (PyErr_Occurred()) SWIG_fail; | |
13048 | } | |
15afbcd0 | 13049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
13050 | return resultobj; |
13051 | fail: | |
13052 | return NULL; | |
13053 | } | |
13054 | ||
13055 | ||
13056 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13057 | PyObject *resultobj; | |
13058 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13059 | PyObject * obj0 = 0 ; | |
13060 | char *kwnames[] = { | |
13061 | (char *) "self", NULL | |
13062 | }; | |
13063 | ||
13064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13067 | { |
13068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13069 | (arg1)->Veto(); | |
13070 | ||
13071 | wxPyEndAllowThreads(__tstate); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | } | |
13074 | Py_INCREF(Py_None); resultobj = Py_None; | |
13075 | return resultobj; | |
13076 | fail: | |
13077 | return NULL; | |
13078 | } | |
13079 | ||
13080 | ||
13081 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13082 | PyObject *resultobj; | |
13083 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13084 | PyObject * obj0 = 0 ; | |
13085 | char *kwnames[] = { | |
13086 | (char *) "self", NULL | |
13087 | }; | |
13088 | ||
13089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13092 | { |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | (arg1)->Allow(); | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | Py_INCREF(Py_None); resultobj = Py_None; | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13107 | PyObject *resultobj; | |
13108 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13109 | bool result; | |
13110 | PyObject * obj0 = 0 ; | |
13111 | char *kwnames[] = { | |
13112 | (char *) "self", NULL | |
13113 | }; | |
13114 | ||
13115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13118 | { |
13119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13120 | result = (bool)(arg1)->IsAllowed(); | |
13121 | ||
13122 | wxPyEndAllowThreads(__tstate); | |
13123 | if (PyErr_Occurred()) SWIG_fail; | |
13124 | } | |
4f89f6a3 RD |
13125 | { |
13126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13127 | } | |
d14a1e28 RD |
13128 | return resultobj; |
13129 | fail: | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
13134 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13135 | PyObject *obj; | |
13136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13137 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13138 | Py_INCREF(obj); | |
13139 | return Py_BuildValue((char *)""); | |
13140 | } | |
13141 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13144 | int arg2 = (int) 0 ; | |
13145 | int arg3 = (int) 0 ; | |
13146 | int arg4 = (int) 0 ; | |
13147 | wxScrollEvent *result; | |
994141e6 RD |
13148 | PyObject * obj0 = 0 ; |
13149 | PyObject * obj1 = 0 ; | |
13150 | PyObject * obj2 = 0 ; | |
13151 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13152 | char *kwnames[] = { |
13153 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13154 | }; | |
13155 | ||
994141e6 RD |
13156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13157 | if (obj0) { | |
15afbcd0 RD |
13158 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13160 | } |
13161 | if (obj1) { | |
15afbcd0 RD |
13162 | arg2 = (int) SWIG_AsInt(obj1); |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13164 | } |
13165 | if (obj2) { | |
15afbcd0 RD |
13166 | arg3 = (int) SWIG_AsInt(obj2); |
13167 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13168 | } |
13169 | if (obj3) { | |
15afbcd0 RD |
13170 | arg4 = (int) SWIG_AsInt(obj3); |
13171 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13172 | } |
d14a1e28 RD |
13173 | { |
13174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13175 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13176 | ||
13177 | wxPyEndAllowThreads(__tstate); | |
13178 | if (PyErr_Occurred()) SWIG_fail; | |
13179 | } | |
15afbcd0 | 13180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13181 | return resultobj; |
13182 | fail: | |
13183 | return NULL; | |
13184 | } | |
13185 | ||
13186 | ||
13187 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13188 | PyObject *resultobj; | |
13189 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13190 | int result; | |
13191 | PyObject * obj0 = 0 ; | |
13192 | char *kwnames[] = { | |
13193 | (char *) "self", NULL | |
13194 | }; | |
13195 | ||
13196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13199 | { |
13200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13201 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13202 | ||
13203 | wxPyEndAllowThreads(__tstate); | |
13204 | if (PyErr_Occurred()) SWIG_fail; | |
13205 | } | |
15afbcd0 | 13206 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13207 | return resultobj; |
13208 | fail: | |
13209 | return NULL; | |
13210 | } | |
13211 | ||
13212 | ||
13213 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13214 | PyObject *resultobj; | |
13215 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13216 | int result; | |
13217 | PyObject * obj0 = 0 ; | |
13218 | char *kwnames[] = { | |
13219 | (char *) "self", NULL | |
13220 | }; | |
13221 | ||
13222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13225 | { |
13226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13227 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13228 | ||
13229 | wxPyEndAllowThreads(__tstate); | |
13230 | if (PyErr_Occurred()) SWIG_fail; | |
13231 | } | |
15afbcd0 | 13232 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13233 | return resultobj; |
13234 | fail: | |
13235 | return NULL; | |
13236 | } | |
13237 | ||
13238 | ||
13239 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13240 | PyObject *resultobj; | |
13241 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13242 | int arg2 ; | |
13243 | PyObject * obj0 = 0 ; | |
994141e6 | 13244 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13245 | char *kwnames[] = { |
13246 | (char *) "self",(char *) "orient", NULL | |
13247 | }; | |
13248 | ||
994141e6 | 13249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13252 | arg2 = (int) SWIG_AsInt(obj1); | |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13254 | { |
13255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13256 | (arg1)->SetOrientation(arg2); | |
13257 | ||
13258 | wxPyEndAllowThreads(__tstate); | |
13259 | if (PyErr_Occurred()) SWIG_fail; | |
13260 | } | |
13261 | Py_INCREF(Py_None); resultobj = Py_None; | |
13262 | return resultobj; | |
13263 | fail: | |
13264 | return NULL; | |
13265 | } | |
13266 | ||
13267 | ||
13268 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13269 | PyObject *resultobj; | |
13270 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13271 | int arg2 ; | |
13272 | PyObject * obj0 = 0 ; | |
994141e6 | 13273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13274 | char *kwnames[] = { |
13275 | (char *) "self",(char *) "pos", NULL | |
13276 | }; | |
13277 | ||
994141e6 | 13278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13281 | arg2 = (int) SWIG_AsInt(obj1); | |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13283 | { |
13284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13285 | (arg1)->SetPosition(arg2); | |
13286 | ||
13287 | wxPyEndAllowThreads(__tstate); | |
13288 | if (PyErr_Occurred()) SWIG_fail; | |
13289 | } | |
13290 | Py_INCREF(Py_None); resultobj = Py_None; | |
13291 | return resultobj; | |
13292 | fail: | |
13293 | return NULL; | |
13294 | } | |
13295 | ||
13296 | ||
13297 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13298 | PyObject *obj; | |
13299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13300 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13301 | Py_INCREF(obj); | |
13302 | return Py_BuildValue((char *)""); | |
13303 | } | |
13304 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13305 | PyObject *resultobj; | |
13306 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13307 | int arg2 = (int) 0 ; | |
13308 | int arg3 = (int) 0 ; | |
13309 | wxScrollWinEvent *result; | |
994141e6 RD |
13310 | PyObject * obj0 = 0 ; |
13311 | PyObject * obj1 = 0 ; | |
13312 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13313 | char *kwnames[] = { |
13314 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13315 | }; | |
13316 | ||
994141e6 RD |
13317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13318 | if (obj0) { | |
15afbcd0 RD |
13319 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13321 | } |
13322 | if (obj1) { | |
15afbcd0 RD |
13323 | arg2 = (int) SWIG_AsInt(obj1); |
13324 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13325 | } |
13326 | if (obj2) { | |
15afbcd0 RD |
13327 | arg3 = (int) SWIG_AsInt(obj2); |
13328 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13329 | } |
d14a1e28 RD |
13330 | { |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
15afbcd0 | 13337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13338 | return resultobj; |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj; | |
13346 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13347 | int result; | |
13348 | PyObject * obj0 = 0 ; | |
13349 | char *kwnames[] = { | |
13350 | (char *) "self", NULL | |
13351 | }; | |
13352 | ||
13353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13356 | { |
13357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13358 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13359 | ||
13360 | wxPyEndAllowThreads(__tstate); | |
13361 | if (PyErr_Occurred()) SWIG_fail; | |
13362 | } | |
15afbcd0 | 13363 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13364 | return resultobj; |
13365 | fail: | |
13366 | return NULL; | |
13367 | } | |
13368 | ||
13369 | ||
13370 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13371 | PyObject *resultobj; | |
13372 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13373 | int result; | |
13374 | PyObject * obj0 = 0 ; | |
13375 | char *kwnames[] = { | |
13376 | (char *) "self", NULL | |
13377 | }; | |
13378 | ||
13379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13382 | { |
13383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13384 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13385 | ||
13386 | wxPyEndAllowThreads(__tstate); | |
13387 | if (PyErr_Occurred()) SWIG_fail; | |
13388 | } | |
15afbcd0 | 13389 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13390 | return resultobj; |
13391 | fail: | |
13392 | return NULL; | |
13393 | } | |
13394 | ||
13395 | ||
13396 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13397 | PyObject *resultobj; | |
13398 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13399 | int arg2 ; | |
13400 | PyObject * obj0 = 0 ; | |
994141e6 | 13401 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13402 | char *kwnames[] = { |
13403 | (char *) "self",(char *) "orient", NULL | |
13404 | }; | |
13405 | ||
994141e6 | 13406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13409 | arg2 = (int) SWIG_AsInt(obj1); | |
13410 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13411 | { |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | (arg1)->SetOrientation(arg2); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
13418 | Py_INCREF(Py_None); resultobj = Py_None; | |
13419 | return resultobj; | |
13420 | fail: | |
13421 | return NULL; | |
13422 | } | |
13423 | ||
13424 | ||
13425 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13426 | PyObject *resultobj; | |
13427 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13428 | int arg2 ; | |
13429 | PyObject * obj0 = 0 ; | |
994141e6 | 13430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13431 | char *kwnames[] = { |
13432 | (char *) "self",(char *) "pos", NULL | |
13433 | }; | |
13434 | ||
994141e6 | 13435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13438 | arg2 = (int) SWIG_AsInt(obj1); | |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13440 | { |
13441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13442 | (arg1)->SetPosition(arg2); | |
13443 | ||
13444 | wxPyEndAllowThreads(__tstate); | |
13445 | if (PyErr_Occurred()) SWIG_fail; | |
13446 | } | |
13447 | Py_INCREF(Py_None); resultobj = Py_None; | |
13448 | return resultobj; | |
13449 | fail: | |
13450 | return NULL; | |
13451 | } | |
13452 | ||
13453 | ||
13454 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13455 | PyObject *obj; | |
13456 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13457 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13458 | Py_INCREF(obj); | |
13459 | return Py_BuildValue((char *)""); | |
13460 | } | |
13461 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13462 | PyObject *resultobj; | |
13463 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13464 | wxMouseEvent *result; | |
994141e6 | 13465 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13466 | char *kwnames[] = { |
13467 | (char *) "mouseType", NULL | |
13468 | }; | |
13469 | ||
994141e6 RD |
13470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13471 | if (obj0) { | |
15afbcd0 RD |
13472 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13473 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13474 | } |
d14a1e28 RD |
13475 | { |
13476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13477 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13478 | ||
13479 | wxPyEndAllowThreads(__tstate); | |
13480 | if (PyErr_Occurred()) SWIG_fail; | |
13481 | } | |
13482 | { | |
13483 | resultobj = wxPyMake_wxObject(result); | |
13484 | } | |
13485 | return resultobj; | |
13486 | fail: | |
13487 | return NULL; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13492 | PyObject *resultobj; | |
13493 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13494 | bool result; | |
13495 | PyObject * obj0 = 0 ; | |
13496 | char *kwnames[] = { | |
13497 | (char *) "self", NULL | |
13498 | }; | |
13499 | ||
13500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13503 | { |
13504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13505 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13506 | ||
13507 | wxPyEndAllowThreads(__tstate); | |
13508 | if (PyErr_Occurred()) SWIG_fail; | |
13509 | } | |
4f89f6a3 RD |
13510 | { |
13511 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13512 | } | |
d14a1e28 RD |
13513 | return resultobj; |
13514 | fail: | |
13515 | return NULL; | |
13516 | } | |
13517 | ||
13518 | ||
13519 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13520 | PyObject *resultobj; | |
13521 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13522 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13523 | bool result; | |
13524 | PyObject * obj0 = 0 ; | |
994141e6 | 13525 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13526 | char *kwnames[] = { |
13527 | (char *) "self",(char *) "but", NULL | |
13528 | }; | |
13529 | ||
994141e6 | 13530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13533 | if (obj1) { |
15afbcd0 RD |
13534 | arg2 = (int) SWIG_AsInt(obj1); |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13536 | } |
d14a1e28 RD |
13537 | { |
13538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13539 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13540 | ||
13541 | wxPyEndAllowThreads(__tstate); | |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
4f89f6a3 RD |
13544 | { |
13545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13546 | } | |
d14a1e28 RD |
13547 | return resultobj; |
13548 | fail: | |
13549 | return NULL; | |
13550 | } | |
13551 | ||
13552 | ||
13553 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13554 | PyObject *resultobj; | |
13555 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13556 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13557 | bool result; | |
13558 | PyObject * obj0 = 0 ; | |
994141e6 | 13559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13560 | char *kwnames[] = { |
13561 | (char *) "self",(char *) "but", NULL | |
13562 | }; | |
13563 | ||
994141e6 | 13564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13567 | if (obj1) { |
15afbcd0 RD |
13568 | arg2 = (int) SWIG_AsInt(obj1); |
13569 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13570 | } |
d14a1e28 RD |
13571 | { |
13572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13573 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13574 | ||
13575 | wxPyEndAllowThreads(__tstate); | |
13576 | if (PyErr_Occurred()) SWIG_fail; | |
13577 | } | |
4f89f6a3 RD |
13578 | { |
13579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13580 | } | |
d14a1e28 RD |
13581 | return resultobj; |
13582 | fail: | |
13583 | return NULL; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13588 | PyObject *resultobj; | |
13589 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13590 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13591 | bool result; | |
13592 | PyObject * obj0 = 0 ; | |
994141e6 | 13593 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13594 | char *kwnames[] = { |
13595 | (char *) "self",(char *) "but", NULL | |
13596 | }; | |
13597 | ||
994141e6 | 13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13601 | if (obj1) { |
15afbcd0 RD |
13602 | arg2 = (int) SWIG_AsInt(obj1); |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13604 | } |
d14a1e28 RD |
13605 | { |
13606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13607 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13608 | ||
13609 | wxPyEndAllowThreads(__tstate); | |
13610 | if (PyErr_Occurred()) SWIG_fail; | |
13611 | } | |
4f89f6a3 RD |
13612 | { |
13613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13614 | } | |
d14a1e28 RD |
13615 | return resultobj; |
13616 | fail: | |
13617 | return NULL; | |
13618 | } | |
13619 | ||
13620 | ||
13621 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13622 | PyObject *resultobj; | |
13623 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13624 | int arg2 ; | |
13625 | bool result; | |
13626 | PyObject * obj0 = 0 ; | |
994141e6 | 13627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13628 | char *kwnames[] = { |
13629 | (char *) "self",(char *) "but", NULL | |
13630 | }; | |
13631 | ||
994141e6 | 13632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13635 | arg2 = (int) SWIG_AsInt(obj1); | |
13636 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13637 | { |
13638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13639 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13640 | ||
13641 | wxPyEndAllowThreads(__tstate); | |
13642 | if (PyErr_Occurred()) SWIG_fail; | |
13643 | } | |
4f89f6a3 RD |
13644 | { |
13645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13646 | } | |
d14a1e28 RD |
13647 | return resultobj; |
13648 | fail: | |
13649 | return NULL; | |
13650 | } | |
13651 | ||
13652 | ||
13653 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13654 | PyObject *resultobj; | |
13655 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13656 | int arg2 ; | |
13657 | bool result; | |
13658 | PyObject * obj0 = 0 ; | |
994141e6 | 13659 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13660 | char *kwnames[] = { |
13661 | (char *) "self",(char *) "but", NULL | |
13662 | }; | |
13663 | ||
994141e6 | 13664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13667 | arg2 = (int) SWIG_AsInt(obj1); | |
13668 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13669 | { |
13670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13671 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13672 | ||
13673 | wxPyEndAllowThreads(__tstate); | |
13674 | if (PyErr_Occurred()) SWIG_fail; | |
13675 | } | |
4f89f6a3 RD |
13676 | { |
13677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13678 | } | |
d14a1e28 RD |
13679 | return resultobj; |
13680 | fail: | |
13681 | return NULL; | |
13682 | } | |
13683 | ||
13684 | ||
13685 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13686 | PyObject *resultobj; | |
13687 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13688 | int result; | |
13689 | PyObject * obj0 = 0 ; | |
13690 | char *kwnames[] = { | |
13691 | (char *) "self", NULL | |
13692 | }; | |
13693 | ||
13694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13697 | { |
13698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13699 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13700 | ||
13701 | wxPyEndAllowThreads(__tstate); | |
13702 | if (PyErr_Occurred()) SWIG_fail; | |
13703 | } | |
15afbcd0 | 13704 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13705 | return resultobj; |
13706 | fail: | |
13707 | return NULL; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13712 | PyObject *resultobj; | |
13713 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13714 | bool result; | |
13715 | PyObject * obj0 = 0 ; | |
13716 | char *kwnames[] = { | |
13717 | (char *) "self", NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13723 | { |
13724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13725 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13726 | ||
13727 | wxPyEndAllowThreads(__tstate); | |
13728 | if (PyErr_Occurred()) SWIG_fail; | |
13729 | } | |
4f89f6a3 RD |
13730 | { |
13731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13732 | } | |
d14a1e28 RD |
13733 | return resultobj; |
13734 | fail: | |
13735 | return NULL; | |
13736 | } | |
13737 | ||
13738 | ||
13739 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13740 | PyObject *resultobj; | |
13741 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13742 | bool result; | |
13743 | PyObject * obj0 = 0 ; | |
13744 | char *kwnames[] = { | |
13745 | (char *) "self", NULL | |
13746 | }; | |
13747 | ||
13748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13751 | { |
13752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13753 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13754 | ||
13755 | wxPyEndAllowThreads(__tstate); | |
13756 | if (PyErr_Occurred()) SWIG_fail; | |
13757 | } | |
4f89f6a3 RD |
13758 | { |
13759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13760 | } | |
d14a1e28 RD |
13761 | return resultobj; |
13762 | fail: | |
13763 | return NULL; | |
13764 | } | |
13765 | ||
13766 | ||
13767 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13768 | PyObject *resultobj; | |
13769 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13770 | bool result; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | char *kwnames[] = { | |
13773 | (char *) "self", NULL | |
13774 | }; | |
13775 | ||
13776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13779 | { |
13780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13781 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13782 | ||
13783 | wxPyEndAllowThreads(__tstate); | |
13784 | if (PyErr_Occurred()) SWIG_fail; | |
13785 | } | |
4f89f6a3 RD |
13786 | { |
13787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13788 | } | |
d14a1e28 RD |
13789 | return resultobj; |
13790 | fail: | |
13791 | return NULL; | |
13792 | } | |
13793 | ||
13794 | ||
13795 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13796 | PyObject *resultobj; | |
13797 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13798 | bool result; | |
13799 | PyObject * obj0 = 0 ; | |
13800 | char *kwnames[] = { | |
13801 | (char *) "self", NULL | |
13802 | }; | |
13803 | ||
13804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13807 | { |
13808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13809 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13810 | ||
13811 | wxPyEndAllowThreads(__tstate); | |
13812 | if (PyErr_Occurred()) SWIG_fail; | |
13813 | } | |
4f89f6a3 RD |
13814 | { |
13815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13816 | } | |
d14a1e28 RD |
13817 | return resultobj; |
13818 | fail: | |
13819 | return NULL; | |
13820 | } | |
13821 | ||
13822 | ||
13823 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13824 | PyObject *resultobj; | |
13825 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13826 | bool result; | |
13827 | PyObject * obj0 = 0 ; | |
13828 | char *kwnames[] = { | |
13829 | (char *) "self", NULL | |
13830 | }; | |
13831 | ||
13832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13835 | { |
13836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13837 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13838 | ||
13839 | wxPyEndAllowThreads(__tstate); | |
13840 | if (PyErr_Occurred()) SWIG_fail; | |
13841 | } | |
4f89f6a3 RD |
13842 | { |
13843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13844 | } | |
d14a1e28 RD |
13845 | return resultobj; |
13846 | fail: | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13852 | PyObject *resultobj; | |
13853 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13854 | bool result; | |
13855 | PyObject * obj0 = 0 ; | |
13856 | char *kwnames[] = { | |
13857 | (char *) "self", NULL | |
13858 | }; | |
13859 | ||
13860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13863 | { |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
4f89f6a3 RD |
13870 | { |
13871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13872 | } | |
d14a1e28 RD |
13873 | return resultobj; |
13874 | fail: | |
13875 | return NULL; | |
13876 | } | |
13877 | ||
13878 | ||
13879 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13880 | PyObject *resultobj; | |
13881 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13882 | bool result; | |
13883 | PyObject * obj0 = 0 ; | |
13884 | char *kwnames[] = { | |
13885 | (char *) "self", NULL | |
13886 | }; | |
13887 | ||
13888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13891 | { |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13894 | ||
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
4f89f6a3 RD |
13898 | { |
13899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13900 | } | |
d14a1e28 RD |
13901 | return resultobj; |
13902 | fail: | |
13903 | return NULL; | |
13904 | } | |
13905 | ||
13906 | ||
13907 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13908 | PyObject *resultobj; | |
13909 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13910 | bool result; | |
13911 | PyObject * obj0 = 0 ; | |
13912 | char *kwnames[] = { | |
13913 | (char *) "self", NULL | |
13914 | }; | |
13915 | ||
13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13919 | { |
13920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13921 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13922 | ||
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
4f89f6a3 RD |
13926 | { |
13927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13928 | } | |
d14a1e28 RD |
13929 | return resultobj; |
13930 | fail: | |
13931 | return NULL; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13936 | PyObject *resultobj; | |
13937 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13938 | bool result; | |
13939 | PyObject * obj0 = 0 ; | |
13940 | char *kwnames[] = { | |
13941 | (char *) "self", NULL | |
13942 | }; | |
13943 | ||
13944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13947 | { |
13948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13949 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
13950 | ||
13951 | wxPyEndAllowThreads(__tstate); | |
13952 | if (PyErr_Occurred()) SWIG_fail; | |
13953 | } | |
4f89f6a3 RD |
13954 | { |
13955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13956 | } | |
d14a1e28 RD |
13957 | return resultobj; |
13958 | fail: | |
13959 | return NULL; | |
13960 | } | |
13961 | ||
13962 | ||
13963 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13964 | PyObject *resultobj; | |
13965 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13966 | bool result; | |
13967 | PyObject * obj0 = 0 ; | |
13968 | char *kwnames[] = { | |
13969 | (char *) "self", NULL | |
13970 | }; | |
13971 | ||
13972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13975 | { |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13977 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
4f89f6a3 RD |
13982 | { |
13983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13984 | } | |
d14a1e28 RD |
13985 | return resultobj; |
13986 | fail: | |
13987 | return NULL; | |
13988 | } | |
13989 | ||
13990 | ||
13991 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13992 | PyObject *resultobj; | |
13993 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13994 | bool result; | |
13995 | PyObject * obj0 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14003 | { |
14004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14005 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14006 | ||
14007 | wxPyEndAllowThreads(__tstate); | |
14008 | if (PyErr_Occurred()) SWIG_fail; | |
14009 | } | |
4f89f6a3 RD |
14010 | { |
14011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14012 | } | |
d14a1e28 RD |
14013 | return resultobj; |
14014 | fail: | |
14015 | return NULL; | |
14016 | } | |
14017 | ||
14018 | ||
14019 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14020 | PyObject *resultobj; | |
14021 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14022 | bool result; | |
14023 | PyObject * obj0 = 0 ; | |
14024 | char *kwnames[] = { | |
14025 | (char *) "self", NULL | |
14026 | }; | |
14027 | ||
14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14031 | { |
14032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14033 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14034 | ||
14035 | wxPyEndAllowThreads(__tstate); | |
14036 | if (PyErr_Occurred()) SWIG_fail; | |
14037 | } | |
4f89f6a3 RD |
14038 | { |
14039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14040 | } | |
d14a1e28 RD |
14041 | return resultobj; |
14042 | fail: | |
14043 | return NULL; | |
14044 | } | |
14045 | ||
14046 | ||
14047 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14048 | PyObject *resultobj; | |
14049 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14050 | bool result; | |
14051 | PyObject * obj0 = 0 ; | |
14052 | char *kwnames[] = { | |
14053 | (char *) "self", NULL | |
14054 | }; | |
14055 | ||
14056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14059 | { |
14060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14061 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14062 | ||
14063 | wxPyEndAllowThreads(__tstate); | |
14064 | if (PyErr_Occurred()) SWIG_fail; | |
14065 | } | |
4f89f6a3 RD |
14066 | { |
14067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14068 | } | |
d14a1e28 RD |
14069 | return resultobj; |
14070 | fail: | |
14071 | return NULL; | |
14072 | } | |
14073 | ||
14074 | ||
14075 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14076 | PyObject *resultobj; | |
14077 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14078 | bool result; | |
14079 | PyObject * obj0 = 0 ; | |
14080 | char *kwnames[] = { | |
14081 | (char *) "self", NULL | |
14082 | }; | |
14083 | ||
14084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14087 | { |
14088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14089 | result = (bool)(arg1)->LeftIsDown(); | |
14090 | ||
14091 | wxPyEndAllowThreads(__tstate); | |
14092 | if (PyErr_Occurred()) SWIG_fail; | |
14093 | } | |
4f89f6a3 RD |
14094 | { |
14095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14096 | } | |
d14a1e28 RD |
14097 | return resultobj; |
14098 | fail: | |
14099 | return NULL; | |
14100 | } | |
14101 | ||
14102 | ||
14103 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14104 | PyObject *resultobj; | |
14105 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14106 | bool result; | |
14107 | PyObject * obj0 = 0 ; | |
14108 | char *kwnames[] = { | |
14109 | (char *) "self", NULL | |
14110 | }; | |
14111 | ||
14112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14115 | { |
14116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14117 | result = (bool)(arg1)->MiddleIsDown(); | |
14118 | ||
14119 | wxPyEndAllowThreads(__tstate); | |
14120 | if (PyErr_Occurred()) SWIG_fail; | |
14121 | } | |
4f89f6a3 RD |
14122 | { |
14123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14124 | } | |
d14a1e28 RD |
14125 | return resultobj; |
14126 | fail: | |
14127 | return NULL; | |
14128 | } | |
14129 | ||
14130 | ||
14131 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14132 | PyObject *resultobj; | |
14133 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14134 | bool result; | |
14135 | PyObject * obj0 = 0 ; | |
14136 | char *kwnames[] = { | |
14137 | (char *) "self", NULL | |
14138 | }; | |
14139 | ||
14140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14143 | { |
14144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14145 | result = (bool)(arg1)->RightIsDown(); | |
14146 | ||
14147 | wxPyEndAllowThreads(__tstate); | |
14148 | if (PyErr_Occurred()) SWIG_fail; | |
14149 | } | |
4f89f6a3 RD |
14150 | { |
14151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14152 | } | |
d14a1e28 RD |
14153 | return resultobj; |
14154 | fail: | |
14155 | return NULL; | |
14156 | } | |
14157 | ||
14158 | ||
14159 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14160 | PyObject *resultobj; | |
14161 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14162 | bool result; | |
14163 | PyObject * obj0 = 0 ; | |
14164 | char *kwnames[] = { | |
14165 | (char *) "self", NULL | |
14166 | }; | |
14167 | ||
14168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14171 | { |
14172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14173 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14174 | ||
14175 | wxPyEndAllowThreads(__tstate); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
4f89f6a3 RD |
14178 | { |
14179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14180 | } | |
d14a1e28 RD |
14181 | return resultobj; |
14182 | fail: | |
14183 | return NULL; | |
14184 | } | |
14185 | ||
14186 | ||
14187 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14188 | PyObject *resultobj; | |
14189 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14190 | bool result; | |
14191 | PyObject * obj0 = 0 ; | |
14192 | char *kwnames[] = { | |
14193 | (char *) "self", NULL | |
14194 | }; | |
14195 | ||
14196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14199 | { |
14200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14201 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14202 | ||
14203 | wxPyEndAllowThreads(__tstate); | |
14204 | if (PyErr_Occurred()) SWIG_fail; | |
14205 | } | |
4f89f6a3 RD |
14206 | { |
14207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14208 | } | |
d14a1e28 RD |
14209 | return resultobj; |
14210 | fail: | |
14211 | return NULL; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14216 | PyObject *resultobj; | |
14217 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14218 | bool result; | |
14219 | PyObject * obj0 = 0 ; | |
14220 | char *kwnames[] = { | |
14221 | (char *) "self", NULL | |
14222 | }; | |
14223 | ||
14224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14227 | { |
14228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14229 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14230 | ||
14231 | wxPyEndAllowThreads(__tstate); | |
14232 | if (PyErr_Occurred()) SWIG_fail; | |
14233 | } | |
4f89f6a3 RD |
14234 | { |
14235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14236 | } | |
d14a1e28 RD |
14237 | return resultobj; |
14238 | fail: | |
14239 | return NULL; | |
14240 | } | |
14241 | ||
14242 | ||
14243 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14244 | PyObject *resultobj; | |
14245 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14246 | bool result; | |
14247 | PyObject * obj0 = 0 ; | |
14248 | char *kwnames[] = { | |
14249 | (char *) "self", NULL | |
14250 | }; | |
14251 | ||
14252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14255 | { |
14256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14257 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14258 | ||
14259 | wxPyEndAllowThreads(__tstate); | |
14260 | if (PyErr_Occurred()) SWIG_fail; | |
14261 | } | |
4f89f6a3 RD |
14262 | { |
14263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14264 | } | |
d14a1e28 RD |
14265 | return resultobj; |
14266 | fail: | |
14267 | return NULL; | |
14268 | } | |
14269 | ||
14270 | ||
14271 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14272 | PyObject *resultobj; | |
14273 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14274 | wxPoint result; | |
14275 | PyObject * obj0 = 0 ; | |
14276 | char *kwnames[] = { | |
14277 | (char *) "self", NULL | |
14278 | }; | |
14279 | ||
14280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14283 | { |
14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14285 | result = (arg1)->GetPosition(); | |
14286 | ||
14287 | wxPyEndAllowThreads(__tstate); | |
14288 | if (PyErr_Occurred()) SWIG_fail; | |
14289 | } | |
14290 | { | |
14291 | wxPoint * resultptr; | |
14292 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14294 | } |
14295 | return resultobj; | |
14296 | fail: | |
14297 | return NULL; | |
14298 | } | |
14299 | ||
14300 | ||
14301 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14302 | PyObject *resultobj; | |
14303 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14304 | long *arg2 = (long *) 0 ; | |
14305 | long *arg3 = (long *) 0 ; | |
14306 | long temp2 ; | |
14307 | long temp3 ; | |
14308 | PyObject * obj0 = 0 ; | |
14309 | char *kwnames[] = { | |
14310 | (char *) "self", NULL | |
14311 | }; | |
14312 | ||
14313 | arg2 = &temp2; | |
14314 | arg3 = &temp3; | |
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",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 | (arg1)->GetPosition(arg2,arg3); | |
14321 | ||
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
14325 | Py_INCREF(Py_None); resultobj = Py_None; | |
14326 | { | |
14327 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14328 | resultobj = t_output_helper(resultobj,o); | |
14329 | } | |
14330 | { | |
14331 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14332 | resultobj = t_output_helper(resultobj,o); | |
14333 | } | |
14334 | return resultobj; | |
14335 | fail: | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj; | |
14342 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14343 | wxDC *arg2 = 0 ; | |
14344 | wxPoint result; | |
14345 | PyObject * obj0 = 0 ; | |
14346 | PyObject * obj1 = 0 ; | |
14347 | char *kwnames[] = { | |
14348 | (char *) "self",(char *) "dc", NULL | |
14349 | }; | |
14350 | ||
14351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14354 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14355 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14356 | SWIG_fail; | |
d14a1e28 | 14357 | if (arg2 == NULL) { |
15afbcd0 RD |
14358 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14359 | SWIG_fail; | |
d14a1e28 RD |
14360 | } |
14361 | { | |
14362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14363 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14364 | ||
14365 | wxPyEndAllowThreads(__tstate); | |
14366 | if (PyErr_Occurred()) SWIG_fail; | |
14367 | } | |
14368 | { | |
14369 | wxPoint * resultptr; | |
14370 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14372 | } |
14373 | return resultobj; | |
14374 | fail: | |
14375 | return NULL; | |
14376 | } | |
14377 | ||
14378 | ||
14379 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14380 | PyObject *resultobj; | |
14381 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14382 | int result; |
d14a1e28 RD |
14383 | PyObject * obj0 = 0 ; |
14384 | char *kwnames[] = { | |
14385 | (char *) "self", NULL | |
14386 | }; | |
14387 | ||
14388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14391 | { |
14392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14393 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14394 | |
14395 | wxPyEndAllowThreads(__tstate); | |
14396 | if (PyErr_Occurred()) SWIG_fail; | |
14397 | } | |
15afbcd0 | 14398 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14399 | return resultobj; |
14400 | fail: | |
14401 | return NULL; | |
14402 | } | |
14403 | ||
14404 | ||
14405 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14406 | PyObject *resultobj; | |
14407 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14408 | int result; |
d14a1e28 RD |
14409 | PyObject * obj0 = 0 ; |
14410 | char *kwnames[] = { | |
14411 | (char *) "self", NULL | |
14412 | }; | |
14413 | ||
14414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14417 | { |
14418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14419 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14420 | |
14421 | wxPyEndAllowThreads(__tstate); | |
14422 | if (PyErr_Occurred()) SWIG_fail; | |
14423 | } | |
15afbcd0 | 14424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14425 | return resultobj; |
14426 | fail: | |
14427 | return NULL; | |
14428 | } | |
14429 | ||
14430 | ||
14431 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14432 | PyObject *resultobj; | |
14433 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14434 | int result; | |
14435 | PyObject * obj0 = 0 ; | |
14436 | char *kwnames[] = { | |
14437 | (char *) "self", NULL | |
14438 | }; | |
14439 | ||
14440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14443 | { |
14444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14445 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14446 | ||
14447 | wxPyEndAllowThreads(__tstate); | |
14448 | if (PyErr_Occurred()) SWIG_fail; | |
14449 | } | |
15afbcd0 | 14450 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14451 | return resultobj; |
14452 | fail: | |
14453 | return NULL; | |
14454 | } | |
14455 | ||
14456 | ||
14457 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14458 | PyObject *resultobj; | |
14459 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14460 | int result; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | char *kwnames[] = { | |
14463 | (char *) "self", NULL | |
14464 | }; | |
14465 | ||
14466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14469 | { |
14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14471 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14472 | ||
14473 | wxPyEndAllowThreads(__tstate); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | } | |
15afbcd0 | 14476 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14477 | return resultobj; |
14478 | fail: | |
14479 | return NULL; | |
14480 | } | |
14481 | ||
14482 | ||
14483 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14484 | PyObject *resultobj; | |
14485 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14486 | int result; | |
14487 | PyObject * obj0 = 0 ; | |
14488 | char *kwnames[] = { | |
14489 | (char *) "self", NULL | |
14490 | }; | |
14491 | ||
14492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14495 | { |
14496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14497 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14498 | ||
14499 | wxPyEndAllowThreads(__tstate); | |
14500 | if (PyErr_Occurred()) SWIG_fail; | |
14501 | } | |
15afbcd0 | 14502 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14503 | return resultobj; |
14504 | fail: | |
14505 | return NULL; | |
14506 | } | |
14507 | ||
14508 | ||
14509 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14510 | PyObject *resultobj; | |
14511 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14512 | bool result; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | char *kwnames[] = { | |
14515 | (char *) "self", NULL | |
14516 | }; | |
14517 | ||
14518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14521 | { |
14522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14523 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14524 | ||
14525 | wxPyEndAllowThreads(__tstate); | |
14526 | if (PyErr_Occurred()) SWIG_fail; | |
14527 | } | |
4f89f6a3 RD |
14528 | { |
14529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14530 | } | |
d14a1e28 RD |
14531 | return resultobj; |
14532 | fail: | |
14533 | return NULL; | |
14534 | } | |
14535 | ||
14536 | ||
14537 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14538 | PyObject *resultobj; | |
14539 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14540 | int arg2 ; |
d14a1e28 | 14541 | PyObject * obj0 = 0 ; |
994141e6 | 14542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14543 | char *kwnames[] = { |
14544 | (char *) "self",(char *) "m_x", NULL | |
14545 | }; | |
14546 | ||
994141e6 | 14547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14550 | arg2 = (int) SWIG_AsInt(obj1); | |
14551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14552 | if (arg1) (arg1)->m_x = arg2; |
14553 | ||
14554 | Py_INCREF(Py_None); resultobj = Py_None; | |
14555 | return resultobj; | |
14556 | fail: | |
14557 | return NULL; | |
14558 | } | |
14559 | ||
14560 | ||
14561 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14562 | PyObject *resultobj; | |
14563 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14564 | int result; |
d14a1e28 RD |
14565 | PyObject * obj0 = 0 ; |
14566 | char *kwnames[] = { | |
14567 | (char *) "self", NULL | |
14568 | }; | |
14569 | ||
14570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14573 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14574 | |
15afbcd0 | 14575 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14576 | return resultobj; |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
14582 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14583 | PyObject *resultobj; | |
14584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14585 | int arg2 ; |
d14a1e28 | 14586 | PyObject * obj0 = 0 ; |
994141e6 | 14587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14588 | char *kwnames[] = { |
14589 | (char *) "self",(char *) "m_y", NULL | |
14590 | }; | |
14591 | ||
994141e6 | 14592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14595 | arg2 = (int) SWIG_AsInt(obj1); | |
14596 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14597 | if (arg1) (arg1)->m_y = arg2; |
14598 | ||
14599 | Py_INCREF(Py_None); resultobj = Py_None; | |
14600 | return resultobj; | |
14601 | fail: | |
14602 | return NULL; | |
14603 | } | |
14604 | ||
14605 | ||
14606 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14607 | PyObject *resultobj; | |
14608 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14609 | int result; |
d14a1e28 RD |
14610 | PyObject * obj0 = 0 ; |
14611 | char *kwnames[] = { | |
14612 | (char *) "self", NULL | |
14613 | }; | |
14614 | ||
14615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14618 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14619 | |
15afbcd0 | 14620 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14621 | return resultobj; |
14622 | fail: | |
14623 | return NULL; | |
14624 | } | |
14625 | ||
14626 | ||
14627 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14628 | PyObject *resultobj; | |
14629 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14630 | bool arg2 ; | |
14631 | PyObject * obj0 = 0 ; | |
14632 | PyObject * obj1 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self",(char *) "m_leftDown", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14640 | arg2 = (bool) SWIG_AsBool(obj1); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14642 | if (arg1) (arg1)->m_leftDown = arg2; |
14643 | ||
14644 | Py_INCREF(Py_None); resultobj = Py_None; | |
14645 | return resultobj; | |
14646 | fail: | |
14647 | return NULL; | |
14648 | } | |
14649 | ||
14650 | ||
14651 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14652 | PyObject *resultobj; | |
14653 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14654 | bool result; | |
14655 | PyObject * obj0 = 0 ; | |
14656 | char *kwnames[] = { | |
14657 | (char *) "self", NULL | |
14658 | }; | |
14659 | ||
14660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14663 | result = (bool) ((arg1)->m_leftDown); |
14664 | ||
4f89f6a3 RD |
14665 | { |
14666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14667 | } | |
d14a1e28 RD |
14668 | return resultobj; |
14669 | fail: | |
14670 | return NULL; | |
14671 | } | |
14672 | ||
14673 | ||
14674 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14675 | PyObject *resultobj; | |
14676 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14677 | bool arg2 ; | |
14678 | PyObject * obj0 = 0 ; | |
14679 | PyObject * obj1 = 0 ; | |
14680 | char *kwnames[] = { | |
14681 | (char *) "self",(char *) "m_middleDown", NULL | |
14682 | }; | |
14683 | ||
14684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14687 | arg2 = (bool) SWIG_AsBool(obj1); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14689 | if (arg1) (arg1)->m_middleDown = arg2; |
14690 | ||
14691 | Py_INCREF(Py_None); resultobj = Py_None; | |
14692 | return resultobj; | |
14693 | fail: | |
14694 | return NULL; | |
14695 | } | |
14696 | ||
14697 | ||
14698 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14699 | PyObject *resultobj; | |
14700 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14701 | bool result; | |
14702 | PyObject * obj0 = 0 ; | |
14703 | char *kwnames[] = { | |
14704 | (char *) "self", NULL | |
14705 | }; | |
14706 | ||
14707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14710 | result = (bool) ((arg1)->m_middleDown); |
14711 | ||
4f89f6a3 RD |
14712 | { |
14713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14714 | } | |
d14a1e28 RD |
14715 | return resultobj; |
14716 | fail: | |
14717 | return NULL; | |
14718 | } | |
14719 | ||
14720 | ||
14721 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14722 | PyObject *resultobj; | |
14723 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14724 | bool arg2 ; | |
14725 | PyObject * obj0 = 0 ; | |
14726 | PyObject * obj1 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self",(char *) "m_rightDown", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14734 | arg2 = (bool) SWIG_AsBool(obj1); | |
14735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14736 | if (arg1) (arg1)->m_rightDown = arg2; |
14737 | ||
14738 | Py_INCREF(Py_None); resultobj = Py_None; | |
14739 | return resultobj; | |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14748 | bool result; | |
14749 | PyObject * obj0 = 0 ; | |
14750 | char *kwnames[] = { | |
14751 | (char *) "self", NULL | |
14752 | }; | |
14753 | ||
14754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14757 | result = (bool) ((arg1)->m_rightDown); |
14758 | ||
4f89f6a3 RD |
14759 | { |
14760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14761 | } | |
d14a1e28 RD |
14762 | return resultobj; |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
14768 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14769 | PyObject *resultobj; | |
14770 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14771 | bool arg2 ; | |
14772 | PyObject * obj0 = 0 ; | |
14773 | PyObject * obj1 = 0 ; | |
14774 | char *kwnames[] = { | |
14775 | (char *) "self",(char *) "m_controlDown", NULL | |
14776 | }; | |
14777 | ||
14778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14781 | arg2 = (bool) SWIG_AsBool(obj1); | |
14782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14783 | if (arg1) (arg1)->m_controlDown = arg2; |
14784 | ||
14785 | Py_INCREF(Py_None); resultobj = Py_None; | |
14786 | return resultobj; | |
14787 | fail: | |
14788 | return NULL; | |
14789 | } | |
14790 | ||
14791 | ||
14792 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14793 | PyObject *resultobj; | |
14794 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14795 | bool result; | |
14796 | PyObject * obj0 = 0 ; | |
14797 | char *kwnames[] = { | |
14798 | (char *) "self", NULL | |
14799 | }; | |
14800 | ||
14801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14804 | result = (bool) ((arg1)->m_controlDown); |
14805 | ||
4f89f6a3 RD |
14806 | { |
14807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14808 | } | |
d14a1e28 RD |
14809 | return resultobj; |
14810 | fail: | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
14815 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14816 | PyObject *resultobj; | |
14817 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14818 | bool arg2 ; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | PyObject * obj1 = 0 ; | |
14821 | char *kwnames[] = { | |
14822 | (char *) "self",(char *) "m_shiftDown", NULL | |
14823 | }; | |
14824 | ||
14825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14828 | arg2 = (bool) SWIG_AsBool(obj1); | |
14829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14830 | if (arg1) (arg1)->m_shiftDown = arg2; |
14831 | ||
14832 | Py_INCREF(Py_None); resultobj = Py_None; | |
14833 | return resultobj; | |
14834 | fail: | |
14835 | return NULL; | |
14836 | } | |
14837 | ||
14838 | ||
14839 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14840 | PyObject *resultobj; | |
14841 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14842 | bool result; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | char *kwnames[] = { | |
14845 | (char *) "self", NULL | |
14846 | }; | |
14847 | ||
14848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14851 | result = (bool) ((arg1)->m_shiftDown); |
14852 | ||
4f89f6a3 RD |
14853 | { |
14854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14855 | } | |
d14a1e28 RD |
14856 | return resultobj; |
14857 | fail: | |
14858 | return NULL; | |
14859 | } | |
14860 | ||
14861 | ||
14862 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14863 | PyObject *resultobj; | |
14864 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14865 | bool arg2 ; | |
14866 | PyObject * obj0 = 0 ; | |
14867 | PyObject * obj1 = 0 ; | |
14868 | char *kwnames[] = { | |
14869 | (char *) "self",(char *) "m_altDown", NULL | |
14870 | }; | |
14871 | ||
14872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14875 | arg2 = (bool) SWIG_AsBool(obj1); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14877 | if (arg1) (arg1)->m_altDown = arg2; |
14878 | ||
14879 | Py_INCREF(Py_None); resultobj = Py_None; | |
14880 | return resultobj; | |
14881 | fail: | |
14882 | return NULL; | |
14883 | } | |
14884 | ||
14885 | ||
14886 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14887 | PyObject *resultobj; | |
14888 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14889 | bool result; | |
14890 | PyObject * obj0 = 0 ; | |
14891 | char *kwnames[] = { | |
14892 | (char *) "self", NULL | |
14893 | }; | |
14894 | ||
14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14898 | result = (bool) ((arg1)->m_altDown); |
14899 | ||
4f89f6a3 RD |
14900 | { |
14901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14902 | } | |
d14a1e28 RD |
14903 | return resultobj; |
14904 | fail: | |
14905 | return NULL; | |
14906 | } | |
14907 | ||
14908 | ||
14909 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14910 | PyObject *resultobj; | |
14911 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14912 | bool arg2 ; | |
14913 | PyObject * obj0 = 0 ; | |
14914 | PyObject * obj1 = 0 ; | |
14915 | char *kwnames[] = { | |
14916 | (char *) "self",(char *) "m_metaDown", NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14922 | arg2 = (bool) SWIG_AsBool(obj1); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14924 | if (arg1) (arg1)->m_metaDown = arg2; |
14925 | ||
14926 | Py_INCREF(Py_None); resultobj = Py_None; | |
14927 | return resultobj; | |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14934 | PyObject *resultobj; | |
14935 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14936 | bool result; | |
14937 | PyObject * obj0 = 0 ; | |
14938 | char *kwnames[] = { | |
14939 | (char *) "self", NULL | |
14940 | }; | |
14941 | ||
14942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14945 | result = (bool) ((arg1)->m_metaDown); |
14946 | ||
4f89f6a3 RD |
14947 | { |
14948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14949 | } | |
d14a1e28 RD |
14950 | return resultobj; |
14951 | fail: | |
14952 | return NULL; | |
14953 | } | |
14954 | ||
14955 | ||
14956 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14957 | PyObject *resultobj; | |
14958 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14959 | int arg2 ; | |
14960 | PyObject * obj0 = 0 ; | |
994141e6 | 14961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14962 | char *kwnames[] = { |
14963 | (char *) "self",(char *) "m_wheelRotation", NULL | |
14964 | }; | |
14965 | ||
994141e6 | 14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14969 | arg2 = (int) SWIG_AsInt(obj1); | |
14970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14971 | if (arg1) (arg1)->m_wheelRotation = arg2; |
14972 | ||
14973 | Py_INCREF(Py_None); resultobj = Py_None; | |
14974 | return resultobj; | |
14975 | fail: | |
14976 | return NULL; | |
14977 | } | |
14978 | ||
14979 | ||
14980 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14981 | PyObject *resultobj; | |
14982 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14983 | int result; | |
14984 | PyObject * obj0 = 0 ; | |
14985 | char *kwnames[] = { | |
14986 | (char *) "self", NULL | |
14987 | }; | |
14988 | ||
14989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14992 | result = (int) ((arg1)->m_wheelRotation); |
14993 | ||
15afbcd0 | 14994 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14995 | return resultobj; |
14996 | fail: | |
14997 | return NULL; | |
14998 | } | |
14999 | ||
15000 | ||
15001 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15002 | PyObject *resultobj; | |
15003 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15004 | int arg2 ; | |
15005 | PyObject * obj0 = 0 ; | |
994141e6 | 15006 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15007 | char *kwnames[] = { |
15008 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15009 | }; | |
15010 | ||
994141e6 | 15011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15014 | arg2 = (int) SWIG_AsInt(obj1); | |
15015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15016 | if (arg1) (arg1)->m_wheelDelta = arg2; |
15017 | ||
15018 | Py_INCREF(Py_None); resultobj = Py_None; | |
15019 | return resultobj; | |
15020 | fail: | |
15021 | return NULL; | |
15022 | } | |
15023 | ||
15024 | ||
15025 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15026 | PyObject *resultobj; | |
15027 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15028 | int result; | |
15029 | PyObject * obj0 = 0 ; | |
15030 | char *kwnames[] = { | |
15031 | (char *) "self", NULL | |
15032 | }; | |
15033 | ||
15034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15037 | result = (int) ((arg1)->m_wheelDelta); |
15038 | ||
15afbcd0 | 15039 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15040 | return resultobj; |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15049 | int arg2 ; | |
15050 | PyObject * obj0 = 0 ; | |
994141e6 | 15051 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15052 | char *kwnames[] = { |
15053 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15054 | }; | |
15055 | ||
994141e6 | 15056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15059 | arg2 = (int) SWIG_AsInt(obj1); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15061 | if (arg1) (arg1)->m_linesPerAction = arg2; |
15062 | ||
15063 | Py_INCREF(Py_None); resultobj = Py_None; | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
15070 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15071 | PyObject *resultobj; | |
15072 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15073 | int result; | |
15074 | PyObject * obj0 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "self", NULL | |
15077 | }; | |
15078 | ||
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15082 | result = (int) ((arg1)->m_linesPerAction); |
15083 | ||
15afbcd0 | 15084 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15085 | return resultobj; |
15086 | fail: | |
15087 | return NULL; | |
15088 | } | |
15089 | ||
15090 | ||
15091 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15092 | PyObject *obj; | |
15093 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15094 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15095 | Py_INCREF(obj); | |
15096 | return Py_BuildValue((char *)""); | |
15097 | } | |
15098 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15099 | PyObject *resultobj; | |
e811c8ce RD |
15100 | int arg1 = (int) 0 ; |
15101 | int arg2 = (int) 0 ; | |
d14a1e28 | 15102 | wxSetCursorEvent *result; |
994141e6 RD |
15103 | PyObject * obj0 = 0 ; |
15104 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15105 | char *kwnames[] = { |
15106 | (char *) "x",(char *) "y", NULL | |
15107 | }; | |
15108 | ||
994141e6 RD |
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15110 | if (obj0) { | |
15afbcd0 RD |
15111 | arg1 = (int) SWIG_AsInt(obj0); |
15112 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15113 | } |
15114 | if (obj1) { | |
15afbcd0 RD |
15115 | arg2 = (int) SWIG_AsInt(obj1); |
15116 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15117 | } |
d14a1e28 RD |
15118 | { |
15119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15120 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15121 | ||
15122 | wxPyEndAllowThreads(__tstate); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
15afbcd0 | 15125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15126 | return resultobj; |
15127 | fail: | |
15128 | return NULL; | |
15129 | } | |
15130 | ||
15131 | ||
15132 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15133 | PyObject *resultobj; | |
15134 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15135 | int result; |
d14a1e28 RD |
15136 | PyObject * obj0 = 0 ; |
15137 | char *kwnames[] = { | |
15138 | (char *) "self", NULL | |
15139 | }; | |
15140 | ||
15141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15144 | { |
15145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15146 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15147 | |
15148 | wxPyEndAllowThreads(__tstate); | |
15149 | if (PyErr_Occurred()) SWIG_fail; | |
15150 | } | |
15afbcd0 | 15151 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15152 | return resultobj; |
15153 | fail: | |
15154 | return NULL; | |
15155 | } | |
15156 | ||
15157 | ||
15158 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15159 | PyObject *resultobj; | |
15160 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15161 | int result; |
d14a1e28 RD |
15162 | PyObject * obj0 = 0 ; |
15163 | char *kwnames[] = { | |
15164 | (char *) "self", NULL | |
15165 | }; | |
15166 | ||
15167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15170 | { |
15171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15172 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15173 | |
15174 | wxPyEndAllowThreads(__tstate); | |
15175 | if (PyErr_Occurred()) SWIG_fail; | |
15176 | } | |
15afbcd0 | 15177 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15178 | return resultobj; |
15179 | fail: | |
15180 | return NULL; | |
15181 | } | |
15182 | ||
15183 | ||
15184 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15185 | PyObject *resultobj; | |
15186 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15187 | wxCursor *arg2 = 0 ; | |
15188 | PyObject * obj0 = 0 ; | |
15189 | PyObject * obj1 = 0 ; | |
15190 | char *kwnames[] = { | |
15191 | (char *) "self",(char *) "cursor", NULL | |
15192 | }; | |
15193 | ||
15194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15197 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15198 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15199 | SWIG_fail; | |
d14a1e28 | 15200 | if (arg2 == NULL) { |
15afbcd0 RD |
15201 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15202 | SWIG_fail; | |
d14a1e28 RD |
15203 | } |
15204 | { | |
15205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15206 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15207 | ||
15208 | wxPyEndAllowThreads(__tstate); | |
15209 | if (PyErr_Occurred()) SWIG_fail; | |
15210 | } | |
15211 | Py_INCREF(Py_None); resultobj = Py_None; | |
15212 | return resultobj; | |
15213 | fail: | |
15214 | return NULL; | |
15215 | } | |
15216 | ||
15217 | ||
15218 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15221 | wxCursor *result; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15230 | { |
15231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15232 | { | |
15233 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15234 | result = (wxCursor *) &_result_ref; | |
15235 | } | |
15236 | ||
15237 | wxPyEndAllowThreads(__tstate); | |
15238 | if (PyErr_Occurred()) SWIG_fail; | |
15239 | } | |
4276dc52 RD |
15240 | { |
15241 | wxCursor* resultptr = new wxCursor(*result); | |
15242 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15243 | } | |
d14a1e28 RD |
15244 | return resultobj; |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15253 | bool result; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | char *kwnames[] = { | |
15256 | (char *) "self", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15262 | { |
15263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15264 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15265 | ||
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
4f89f6a3 RD |
15269 | { |
15270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15271 | } | |
d14a1e28 RD |
15272 | return resultobj; |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15279 | PyObject *obj; | |
15280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15281 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15282 | Py_INCREF(obj); | |
15283 | return Py_BuildValue((char *)""); | |
15284 | } | |
15285 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15286 | PyObject *resultobj; | |
15287 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15288 | wxKeyEvent *result; | |
994141e6 | 15289 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15290 | char *kwnames[] = { |
15291 | (char *) "keyType", NULL | |
15292 | }; | |
15293 | ||
994141e6 RD |
15294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15295 | if (obj0) { | |
15afbcd0 RD |
15296 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15297 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15298 | } |
d14a1e28 RD |
15299 | { |
15300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15301 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15302 | ||
15303 | wxPyEndAllowThreads(__tstate); | |
15304 | if (PyErr_Occurred()) SWIG_fail; | |
15305 | } | |
15afbcd0 | 15306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15307 | return resultobj; |
15308 | fail: | |
15309 | return NULL; | |
15310 | } | |
15311 | ||
15312 | ||
15313 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15314 | PyObject *resultobj; | |
15315 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15316 | bool result; | |
15317 | PyObject * obj0 = 0 ; | |
15318 | char *kwnames[] = { | |
15319 | (char *) "self", NULL | |
15320 | }; | |
15321 | ||
15322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15325 | { |
15326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15327 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15328 | ||
15329 | wxPyEndAllowThreads(__tstate); | |
15330 | if (PyErr_Occurred()) SWIG_fail; | |
15331 | } | |
4f89f6a3 RD |
15332 | { |
15333 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15334 | } | |
d14a1e28 RD |
15335 | return resultobj; |
15336 | fail: | |
15337 | return NULL; | |
15338 | } | |
15339 | ||
15340 | ||
15341 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15342 | PyObject *resultobj; | |
15343 | wxKeyEvent *arg1 = (wxKeyEvent *) 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:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15353 | { |
15354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15355 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
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 *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15370 | PyObject *resultobj; | |
15371 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15372 | bool result; | |
15373 | PyObject * obj0 = 0 ; | |
15374 | char *kwnames[] = { | |
15375 | (char *) "self", NULL | |
15376 | }; | |
15377 | ||
15378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15381 | { |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
4f89f6a3 RD |
15388 | { |
15389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15390 | } | |
d14a1e28 RD |
15391 | return resultobj; |
15392 | fail: | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15398 | PyObject *resultobj; | |
15399 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15400 | bool result; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | char *kwnames[] = { | |
15403 | (char *) "self", NULL | |
15404 | }; | |
15405 | ||
15406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15409 | { |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15411 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
15414 | if (PyErr_Occurred()) SWIG_fail; | |
15415 | } | |
4f89f6a3 RD |
15416 | { |
15417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15418 | } | |
d14a1e28 RD |
15419 | return resultobj; |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15426 | PyObject *resultobj; | |
15427 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15428 | bool result; | |
15429 | PyObject * obj0 = 0 ; | |
15430 | char *kwnames[] = { | |
15431 | (char *) "self", NULL | |
15432 | }; | |
15433 | ||
15434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15437 | { |
15438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15439 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15440 | ||
15441 | wxPyEndAllowThreads(__tstate); | |
15442 | if (PyErr_Occurred()) SWIG_fail; | |
15443 | } | |
4f89f6a3 RD |
15444 | { |
15445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15446 | } | |
d14a1e28 RD |
15447 | return resultobj; |
15448 | fail: | |
15449 | return NULL; | |
15450 | } | |
15451 | ||
15452 | ||
15453 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15454 | PyObject *resultobj; | |
15455 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15456 | int result; | |
15457 | PyObject * obj0 = 0 ; | |
15458 | char *kwnames[] = { | |
15459 | (char *) "self", NULL | |
15460 | }; | |
15461 | ||
15462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15465 | { |
15466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15467 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15468 | ||
15469 | wxPyEndAllowThreads(__tstate); | |
15470 | if (PyErr_Occurred()) SWIG_fail; | |
15471 | } | |
15afbcd0 | 15472 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15473 | return resultobj; |
15474 | fail: | |
15475 | return NULL; | |
15476 | } | |
15477 | ||
15478 | ||
15479 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15480 | PyObject *resultobj; | |
15481 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15482 | int result; | |
15483 | PyObject * obj0 = 0 ; | |
15484 | char *kwnames[] = { | |
15485 | (char *) "self", NULL | |
15486 | }; | |
15487 | ||
15488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15491 | { |
15492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15493 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15494 | ||
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15afbcd0 | 15498 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15499 | return resultobj; |
15500 | fail: | |
15501 | return NULL; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15506 | PyObject *resultobj; | |
15507 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15508 | unsigned int result; |
d14a1e28 RD |
15509 | PyObject * obj0 = 0 ; |
15510 | char *kwnames[] = { | |
15511 | (char *) "self", NULL | |
15512 | }; | |
15513 | ||
15514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15517 | { |
15518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15519 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15520 | |
15521 | wxPyEndAllowThreads(__tstate); | |
15522 | if (PyErr_Occurred()) SWIG_fail; | |
15523 | } | |
15afbcd0 | 15524 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15525 | return resultobj; |
15526 | fail: | |
15527 | return NULL; | |
15528 | } | |
15529 | ||
15530 | ||
15531 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15532 | PyObject *resultobj; | |
15533 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15534 | unsigned int result; |
d14a1e28 RD |
15535 | PyObject * obj0 = 0 ; |
15536 | char *kwnames[] = { | |
15537 | (char *) "self", NULL | |
15538 | }; | |
15539 | ||
15540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15543 | { |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15545 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15546 | |
15547 | wxPyEndAllowThreads(__tstate); | |
15548 | if (PyErr_Occurred()) SWIG_fail; | |
15549 | } | |
15afbcd0 | 15550 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15551 | return resultobj; |
15552 | fail: | |
15553 | return NULL; | |
15554 | } | |
15555 | ||
15556 | ||
15557 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15558 | PyObject *resultobj; | |
15559 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15560 | wxPoint result; | |
15561 | PyObject * obj0 = 0 ; | |
15562 | char *kwnames[] = { | |
15563 | (char *) "self", NULL | |
15564 | }; | |
15565 | ||
15566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15569 | { |
15570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15571 | result = (arg1)->GetPosition(); | |
15572 | ||
15573 | wxPyEndAllowThreads(__tstate); | |
15574 | if (PyErr_Occurred()) SWIG_fail; | |
15575 | } | |
15576 | { | |
15577 | wxPoint * resultptr; | |
15578 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 15579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15580 | } |
15581 | return resultobj; | |
15582 | fail: | |
15583 | return NULL; | |
15584 | } | |
15585 | ||
15586 | ||
15587 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15588 | PyObject *resultobj; | |
15589 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15590 | long *arg2 = (long *) 0 ; | |
15591 | long *arg3 = (long *) 0 ; | |
15592 | long temp2 ; | |
15593 | long temp3 ; | |
15594 | PyObject * obj0 = 0 ; | |
15595 | char *kwnames[] = { | |
15596 | (char *) "self", NULL | |
15597 | }; | |
15598 | ||
15599 | arg2 = &temp2; | |
15600 | arg3 = &temp3; | |
15601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15604 | { |
15605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15606 | (arg1)->GetPosition(arg2,arg3); | |
15607 | ||
15608 | wxPyEndAllowThreads(__tstate); | |
15609 | if (PyErr_Occurred()) SWIG_fail; | |
15610 | } | |
15611 | Py_INCREF(Py_None); resultobj = Py_None; | |
15612 | { | |
15613 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15614 | resultobj = t_output_helper(resultobj,o); | |
15615 | } | |
15616 | { | |
15617 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15618 | resultobj = t_output_helper(resultobj,o); | |
15619 | } | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15629 | int result; |
d14a1e28 RD |
15630 | PyObject * obj0 = 0 ; |
15631 | char *kwnames[] = { | |
15632 | (char *) "self", NULL | |
15633 | }; | |
15634 | ||
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15638 | { |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15640 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15641 | |
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15afbcd0 | 15645 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15646 | return resultobj; |
15647 | fail: | |
15648 | return NULL; | |
15649 | } | |
15650 | ||
15651 | ||
15652 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15653 | PyObject *resultobj; | |
15654 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15655 | int result; |
d14a1e28 RD |
15656 | PyObject * obj0 = 0 ; |
15657 | char *kwnames[] = { | |
15658 | (char *) "self", NULL | |
15659 | }; | |
15660 | ||
15661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15664 | { |
15665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15666 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15667 | |
15668 | wxPyEndAllowThreads(__tstate); | |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
15670 | } | |
15afbcd0 | 15671 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15672 | return resultobj; |
15673 | fail: | |
15674 | return NULL; | |
15675 | } | |
15676 | ||
15677 | ||
15678 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15679 | PyObject *resultobj; | |
15680 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15681 | int arg2 ; |
d14a1e28 | 15682 | PyObject * obj0 = 0 ; |
994141e6 | 15683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15684 | char *kwnames[] = { |
15685 | (char *) "self",(char *) "m_x", NULL | |
15686 | }; | |
15687 | ||
994141e6 | 15688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15691 | arg2 = (int) SWIG_AsInt(obj1); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15693 | if (arg1) (arg1)->m_x = arg2; |
15694 | ||
15695 | Py_INCREF(Py_None); resultobj = Py_None; | |
15696 | return resultobj; | |
15697 | fail: | |
15698 | return NULL; | |
15699 | } | |
15700 | ||
15701 | ||
15702 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15703 | PyObject *resultobj; | |
15704 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15705 | int result; |
d14a1e28 RD |
15706 | PyObject * obj0 = 0 ; |
15707 | char *kwnames[] = { | |
15708 | (char *) "self", NULL | |
15709 | }; | |
15710 | ||
15711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15714 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15715 | |
15afbcd0 | 15716 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15717 | return resultobj; |
15718 | fail: | |
15719 | return NULL; | |
15720 | } | |
15721 | ||
15722 | ||
15723 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15724 | PyObject *resultobj; | |
15725 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15726 | int arg2 ; |
d14a1e28 | 15727 | PyObject * obj0 = 0 ; |
994141e6 | 15728 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15729 | char *kwnames[] = { |
15730 | (char *) "self",(char *) "m_y", NULL | |
15731 | }; | |
15732 | ||
994141e6 | 15733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15736 | arg2 = (int) SWIG_AsInt(obj1); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15738 | if (arg1) (arg1)->m_y = arg2; |
15739 | ||
15740 | Py_INCREF(Py_None); resultobj = Py_None; | |
15741 | return resultobj; | |
15742 | fail: | |
15743 | return NULL; | |
15744 | } | |
15745 | ||
15746 | ||
15747 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15748 | PyObject *resultobj; | |
15749 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15750 | int result; |
d14a1e28 RD |
15751 | PyObject * obj0 = 0 ; |
15752 | char *kwnames[] = { | |
15753 | (char *) "self", NULL | |
15754 | }; | |
15755 | ||
15756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15759 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15760 | |
15afbcd0 | 15761 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15762 | return resultobj; |
15763 | fail: | |
15764 | return NULL; | |
15765 | } | |
15766 | ||
15767 | ||
15768 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15769 | PyObject *resultobj; | |
15770 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15771 | long arg2 ; | |
15772 | PyObject * obj0 = 0 ; | |
994141e6 | 15773 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15774 | char *kwnames[] = { |
15775 | (char *) "self",(char *) "m_keyCode", NULL | |
15776 | }; | |
15777 | ||
994141e6 | 15778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15781 | arg2 = (long) SWIG_AsLong(obj1); | |
15782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15783 | if (arg1) (arg1)->m_keyCode = arg2; |
15784 | ||
15785 | Py_INCREF(Py_None); resultobj = Py_None; | |
15786 | return resultobj; | |
15787 | fail: | |
15788 | return NULL; | |
15789 | } | |
15790 | ||
15791 | ||
15792 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15793 | PyObject *resultobj; | |
15794 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15795 | long result; | |
15796 | PyObject * obj0 = 0 ; | |
15797 | char *kwnames[] = { | |
15798 | (char *) "self", NULL | |
15799 | }; | |
15800 | ||
15801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15804 | result = (long) ((arg1)->m_keyCode); |
15805 | ||
15afbcd0 | 15806 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15807 | return resultobj; |
15808 | fail: | |
15809 | return NULL; | |
15810 | } | |
15811 | ||
15812 | ||
15813 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15814 | PyObject *resultobj; | |
15815 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15816 | bool arg2 ; | |
15817 | PyObject * obj0 = 0 ; | |
15818 | PyObject * obj1 = 0 ; | |
15819 | char *kwnames[] = { | |
15820 | (char *) "self",(char *) "m_controlDown", NULL | |
15821 | }; | |
15822 | ||
15823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15826 | arg2 = (bool) SWIG_AsBool(obj1); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15828 | if (arg1) (arg1)->m_controlDown = arg2; |
15829 | ||
15830 | Py_INCREF(Py_None); resultobj = Py_None; | |
15831 | return resultobj; | |
15832 | fail: | |
15833 | return NULL; | |
15834 | } | |
15835 | ||
15836 | ||
15837 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15838 | PyObject *resultobj; | |
15839 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15840 | bool result; | |
15841 | PyObject * obj0 = 0 ; | |
15842 | char *kwnames[] = { | |
15843 | (char *) "self", NULL | |
15844 | }; | |
15845 | ||
15846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15849 | result = (bool) ((arg1)->m_controlDown); |
15850 | ||
4f89f6a3 RD |
15851 | { |
15852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15853 | } | |
d14a1e28 RD |
15854 | return resultobj; |
15855 | fail: | |
15856 | return NULL; | |
15857 | } | |
15858 | ||
15859 | ||
15860 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15861 | PyObject *resultobj; | |
15862 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15863 | bool arg2 ; | |
15864 | PyObject * obj0 = 0 ; | |
15865 | PyObject * obj1 = 0 ; | |
15866 | char *kwnames[] = { | |
15867 | (char *) "self",(char *) "m_shiftDown", NULL | |
15868 | }; | |
15869 | ||
15870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15873 | arg2 = (bool) SWIG_AsBool(obj1); | |
15874 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15875 | if (arg1) (arg1)->m_shiftDown = arg2; |
15876 | ||
15877 | Py_INCREF(Py_None); resultobj = Py_None; | |
15878 | return resultobj; | |
15879 | fail: | |
15880 | return NULL; | |
15881 | } | |
15882 | ||
15883 | ||
15884 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15885 | PyObject *resultobj; | |
15886 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15887 | bool result; | |
15888 | PyObject * obj0 = 0 ; | |
15889 | char *kwnames[] = { | |
15890 | (char *) "self", NULL | |
15891 | }; | |
15892 | ||
15893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15896 | result = (bool) ((arg1)->m_shiftDown); |
15897 | ||
4f89f6a3 RD |
15898 | { |
15899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15900 | } | |
d14a1e28 RD |
15901 | return resultobj; |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15910 | bool arg2 ; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | PyObject * obj1 = 0 ; | |
15913 | char *kwnames[] = { | |
15914 | (char *) "self",(char *) "m_altDown", NULL | |
15915 | }; | |
15916 | ||
15917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15920 | arg2 = (bool) SWIG_AsBool(obj1); | |
15921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15922 | if (arg1) (arg1)->m_altDown = arg2; |
15923 | ||
15924 | Py_INCREF(Py_None); resultobj = Py_None; | |
15925 | return resultobj; | |
15926 | fail: | |
15927 | return NULL; | |
15928 | } | |
15929 | ||
15930 | ||
15931 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15932 | PyObject *resultobj; | |
15933 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15934 | bool result; | |
15935 | PyObject * obj0 = 0 ; | |
15936 | char *kwnames[] = { | |
15937 | (char *) "self", NULL | |
15938 | }; | |
15939 | ||
15940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15943 | result = (bool) ((arg1)->m_altDown); |
15944 | ||
4f89f6a3 RD |
15945 | { |
15946 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15947 | } | |
d14a1e28 RD |
15948 | return resultobj; |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15957 | bool arg2 ; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | PyObject * obj1 = 0 ; | |
15960 | char *kwnames[] = { | |
15961 | (char *) "self",(char *) "m_metaDown", NULL | |
15962 | }; | |
15963 | ||
15964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15967 | arg2 = (bool) SWIG_AsBool(obj1); | |
15968 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15969 | if (arg1) (arg1)->m_metaDown = arg2; |
15970 | ||
15971 | Py_INCREF(Py_None); resultobj = Py_None; | |
15972 | return resultobj; | |
15973 | fail: | |
15974 | return NULL; | |
15975 | } | |
15976 | ||
15977 | ||
15978 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15979 | PyObject *resultobj; | |
15980 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15981 | bool result; | |
15982 | PyObject * obj0 = 0 ; | |
15983 | char *kwnames[] = { | |
15984 | (char *) "self", NULL | |
15985 | }; | |
15986 | ||
15987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15990 | result = (bool) ((arg1)->m_metaDown); |
15991 | ||
4f89f6a3 RD |
15992 | { |
15993 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15994 | } | |
d14a1e28 RD |
15995 | return resultobj; |
15996 | fail: | |
15997 | return NULL; | |
15998 | } | |
15999 | ||
16000 | ||
16001 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16002 | PyObject *resultobj; | |
16003 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16004 | bool arg2 ; | |
16005 | PyObject * obj0 = 0 ; | |
16006 | PyObject * obj1 = 0 ; | |
16007 | char *kwnames[] = { | |
16008 | (char *) "self",(char *) "m_scanCode", NULL | |
16009 | }; | |
16010 | ||
16011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16014 | arg2 = (bool) SWIG_AsBool(obj1); | |
16015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16016 | if (arg1) (arg1)->m_scanCode = arg2; |
16017 | ||
16018 | Py_INCREF(Py_None); resultobj = Py_None; | |
16019 | return resultobj; | |
16020 | fail: | |
16021 | return NULL; | |
16022 | } | |
16023 | ||
16024 | ||
16025 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16026 | PyObject *resultobj; | |
16027 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16028 | bool result; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | char *kwnames[] = { | |
16031 | (char *) "self", NULL | |
16032 | }; | |
16033 | ||
16034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16037 | result = (bool) ((arg1)->m_scanCode); |
16038 | ||
4f89f6a3 RD |
16039 | { |
16040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16041 | } | |
d14a1e28 RD |
16042 | return resultobj; |
16043 | fail: | |
16044 | return NULL; | |
16045 | } | |
16046 | ||
16047 | ||
16048 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16049 | PyObject *resultobj; | |
16050 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16051 | unsigned int arg2 ; |
d14a1e28 RD |
16052 | PyObject * obj0 = 0 ; |
16053 | PyObject * obj1 = 0 ; | |
16054 | char *kwnames[] = { | |
16055 | (char *) "self",(char *) "m_rawCode", NULL | |
16056 | }; | |
16057 | ||
16058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16061 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16062 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16063 | if (arg1) (arg1)->m_rawCode = arg2; |
16064 | ||
16065 | Py_INCREF(Py_None); resultobj = Py_None; | |
16066 | return resultobj; | |
16067 | fail: | |
16068 | return NULL; | |
16069 | } | |
16070 | ||
16071 | ||
16072 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16073 | PyObject *resultobj; | |
16074 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16075 | unsigned int result; |
d14a1e28 RD |
16076 | PyObject * obj0 = 0 ; |
16077 | char *kwnames[] = { | |
16078 | (char *) "self", NULL | |
16079 | }; | |
16080 | ||
16081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16084 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16085 | |
15afbcd0 | 16086 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16087 | return resultobj; |
16088 | fail: | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
16093 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16094 | PyObject *resultobj; | |
16095 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16096 | unsigned int arg2 ; |
d14a1e28 RD |
16097 | PyObject * obj0 = 0 ; |
16098 | PyObject * obj1 = 0 ; | |
16099 | char *kwnames[] = { | |
16100 | (char *) "self",(char *) "m_rawFlags", NULL | |
16101 | }; | |
16102 | ||
16103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16106 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16108 | if (arg1) (arg1)->m_rawFlags = arg2; |
16109 | ||
16110 | Py_INCREF(Py_None); resultobj = Py_None; | |
16111 | return resultobj; | |
16112 | fail: | |
16113 | return NULL; | |
16114 | } | |
16115 | ||
16116 | ||
16117 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16118 | PyObject *resultobj; | |
16119 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16120 | unsigned int result; |
d14a1e28 RD |
16121 | PyObject * obj0 = 0 ; |
16122 | char *kwnames[] = { | |
16123 | (char *) "self", NULL | |
16124 | }; | |
16125 | ||
16126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16129 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16130 | |
15afbcd0 | 16131 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16132 | return resultobj; |
16133 | fail: | |
16134 | return NULL; | |
16135 | } | |
16136 | ||
16137 | ||
16138 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16139 | PyObject *obj; | |
16140 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16141 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16142 | Py_INCREF(obj); | |
16143 | return Py_BuildValue((char *)""); | |
16144 | } | |
16145 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16146 | PyObject *resultobj; | |
16147 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16148 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16149 | int arg2 = (int) 0 ; | |
16150 | wxSizeEvent *result; | |
16151 | wxSize temp1 ; | |
16152 | PyObject * obj0 = 0 ; | |
994141e6 | 16153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16154 | char *kwnames[] = { |
16155 | (char *) "sz",(char *) "winid", NULL | |
16156 | }; | |
16157 | ||
994141e6 | 16158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16159 | if (obj0) { |
16160 | { | |
16161 | arg1 = &temp1; | |
16162 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16163 | } | |
16164 | } | |
994141e6 | 16165 | if (obj1) { |
15afbcd0 RD |
16166 | arg2 = (int) SWIG_AsInt(obj1); |
16167 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16168 | } |
d14a1e28 RD |
16169 | { |
16170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16171 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16172 | ||
16173 | wxPyEndAllowThreads(__tstate); | |
16174 | if (PyErr_Occurred()) SWIG_fail; | |
16175 | } | |
15afbcd0 | 16176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16177 | return resultobj; |
16178 | fail: | |
16179 | return NULL; | |
16180 | } | |
16181 | ||
16182 | ||
16183 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16184 | PyObject *resultobj; | |
16185 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16186 | wxSize result; | |
16187 | PyObject * obj0 = 0 ; | |
16188 | char *kwnames[] = { | |
16189 | (char *) "self", NULL | |
16190 | }; | |
16191 | ||
16192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16195 | { |
16196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16197 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16198 | ||
16199 | wxPyEndAllowThreads(__tstate); | |
16200 | if (PyErr_Occurred()) SWIG_fail; | |
16201 | } | |
16202 | { | |
16203 | wxSize * resultptr; | |
16204 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16205 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16206 | } |
16207 | return resultobj; | |
16208 | fail: | |
16209 | return NULL; | |
16210 | } | |
16211 | ||
16212 | ||
16213 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16214 | PyObject *resultobj; | |
16215 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16216 | wxRect result; | |
16217 | PyObject * obj0 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16225 | { |
16226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16227 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16228 | ||
16229 | wxPyEndAllowThreads(__tstate); | |
16230 | if (PyErr_Occurred()) SWIG_fail; | |
16231 | } | |
16232 | { | |
16233 | wxRect * resultptr; | |
16234 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16235 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16236 | } |
16237 | return resultobj; | |
16238 | fail: | |
16239 | return NULL; | |
16240 | } | |
16241 | ||
16242 | ||
16243 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16244 | PyObject *resultobj; | |
16245 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16246 | wxRect arg2 ; | |
16247 | wxRect *argp2 ; | |
16248 | PyObject * obj0 = 0 ; | |
16249 | PyObject * obj1 = 0 ; | |
16250 | char *kwnames[] = { | |
16251 | (char *) "self",(char *) "rect", NULL | |
16252 | }; | |
16253 | ||
16254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16257 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16258 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16259 | arg2 = *argp2; | |
d14a1e28 RD |
16260 | { |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | (arg1)->SetRect(arg2); | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | Py_INCREF(Py_None); resultobj = Py_None; | |
16268 | return resultobj; | |
16269 | fail: | |
16270 | return NULL; | |
16271 | } | |
16272 | ||
16273 | ||
16274 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16275 | PyObject *resultobj; | |
16276 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16277 | wxSize arg2 ; | |
16278 | wxSize *argp2 ; | |
16279 | PyObject * obj0 = 0 ; | |
16280 | PyObject * obj1 = 0 ; | |
16281 | char *kwnames[] = { | |
16282 | (char *) "self",(char *) "size", NULL | |
16283 | }; | |
16284 | ||
16285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16288 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16289 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16290 | arg2 = *argp2; | |
d14a1e28 RD |
16291 | { |
16292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16293 | wxSizeEvent_SetSize(arg1,arg2); | |
16294 | ||
16295 | wxPyEndAllowThreads(__tstate); | |
16296 | if (PyErr_Occurred()) SWIG_fail; | |
16297 | } | |
16298 | Py_INCREF(Py_None); resultobj = Py_None; | |
16299 | return resultobj; | |
16300 | fail: | |
16301 | return NULL; | |
16302 | } | |
16303 | ||
16304 | ||
16305 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16306 | PyObject *resultobj; | |
16307 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16308 | wxSize *arg2 = (wxSize *) 0 ; | |
16309 | PyObject * obj0 = 0 ; | |
16310 | PyObject * obj1 = 0 ; | |
16311 | char *kwnames[] = { | |
16312 | (char *) "self",(char *) "m_size", NULL | |
16313 | }; | |
16314 | ||
16315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16320 | if (arg1) (arg1)->m_size = *arg2; |
16321 | ||
16322 | Py_INCREF(Py_None); resultobj = Py_None; | |
16323 | return resultobj; | |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
16329 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16330 | PyObject *resultobj; | |
16331 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16332 | wxSize *result; | |
16333 | PyObject * obj0 = 0 ; | |
16334 | char *kwnames[] = { | |
16335 | (char *) "self", NULL | |
16336 | }; | |
16337 | ||
16338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16341 | result = (wxSize *)& ((arg1)->m_size); |
16342 | ||
15afbcd0 | 16343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16344 | return resultobj; |
16345 | fail: | |
16346 | return NULL; | |
16347 | } | |
16348 | ||
16349 | ||
16350 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16351 | PyObject *resultobj; | |
16352 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16353 | wxRect *arg2 = (wxRect *) 0 ; | |
16354 | PyObject * obj0 = 0 ; | |
16355 | PyObject * obj1 = 0 ; | |
16356 | char *kwnames[] = { | |
16357 | (char *) "self",(char *) "m_rect", NULL | |
16358 | }; | |
16359 | ||
16360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16363 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16365 | if (arg1) (arg1)->m_rect = *arg2; |
16366 | ||
16367 | Py_INCREF(Py_None); resultobj = Py_None; | |
16368 | return resultobj; | |
16369 | fail: | |
16370 | return NULL; | |
16371 | } | |
16372 | ||
16373 | ||
16374 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16375 | PyObject *resultobj; | |
16376 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16377 | wxRect *result; | |
16378 | PyObject * obj0 = 0 ; | |
16379 | char *kwnames[] = { | |
16380 | (char *) "self", NULL | |
16381 | }; | |
16382 | ||
16383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16386 | result = (wxRect *)& ((arg1)->m_rect); |
16387 | ||
15afbcd0 | 16388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16389 | return resultobj; |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
16395 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16396 | PyObject *obj; | |
16397 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16398 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16399 | Py_INCREF(obj); | |
16400 | return Py_BuildValue((char *)""); | |
16401 | } | |
16402 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16403 | PyObject *resultobj; | |
16404 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16405 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16406 | int arg2 = (int) 0 ; | |
16407 | wxMoveEvent *result; | |
16408 | wxPoint temp1 ; | |
16409 | PyObject * obj0 = 0 ; | |
994141e6 | 16410 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16411 | char *kwnames[] = { |
16412 | (char *) "pos",(char *) "winid", NULL | |
16413 | }; | |
16414 | ||
994141e6 | 16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16416 | if (obj0) { |
16417 | { | |
16418 | arg1 = &temp1; | |
16419 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16420 | } | |
16421 | } | |
994141e6 | 16422 | if (obj1) { |
15afbcd0 RD |
16423 | arg2 = (int) SWIG_AsInt(obj1); |
16424 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16425 | } |
d14a1e28 RD |
16426 | { |
16427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16428 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16429 | ||
16430 | wxPyEndAllowThreads(__tstate); | |
16431 | if (PyErr_Occurred()) SWIG_fail; | |
16432 | } | |
15afbcd0 | 16433 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16434 | return resultobj; |
16435 | fail: | |
16436 | return NULL; | |
16437 | } | |
16438 | ||
16439 | ||
16440 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16441 | PyObject *resultobj; | |
16442 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16443 | wxPoint result; | |
16444 | PyObject * obj0 = 0 ; | |
16445 | char *kwnames[] = { | |
16446 | (char *) "self", NULL | |
16447 | }; | |
16448 | ||
16449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16452 | { |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16455 | ||
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | { | |
16460 | wxPoint * resultptr; | |
16461 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 16462 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16463 | } |
16464 | return resultobj; | |
16465 | fail: | |
16466 | return NULL; | |
16467 | } | |
16468 | ||
16469 | ||
16470 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16471 | PyObject *resultobj; | |
16472 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16473 | wxRect result; | |
16474 | PyObject * obj0 = 0 ; | |
16475 | char *kwnames[] = { | |
16476 | (char *) "self", NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16482 | { |
16483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16484 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16485 | ||
16486 | wxPyEndAllowThreads(__tstate); | |
16487 | if (PyErr_Occurred()) SWIG_fail; | |
16488 | } | |
16489 | { | |
16490 | wxRect * resultptr; | |
16491 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16492 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16493 | } |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj; | |
16502 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16503 | wxRect arg2 ; | |
16504 | wxRect *argp2 ; | |
16505 | PyObject * obj0 = 0 ; | |
16506 | PyObject * obj1 = 0 ; | |
16507 | char *kwnames[] = { | |
16508 | (char *) "self",(char *) "rect", NULL | |
16509 | }; | |
16510 | ||
16511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16514 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16515 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16516 | arg2 = *argp2; | |
d14a1e28 RD |
16517 | { |
16518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16519 | (arg1)->SetRect(arg2); | |
16520 | ||
16521 | wxPyEndAllowThreads(__tstate); | |
16522 | if (PyErr_Occurred()) SWIG_fail; | |
16523 | } | |
16524 | Py_INCREF(Py_None); resultobj = Py_None; | |
16525 | return resultobj; | |
16526 | fail: | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
16531 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16532 | PyObject *resultobj; | |
16533 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16534 | wxPoint arg2 ; | |
16535 | wxPoint *argp2 ; | |
16536 | PyObject * obj0 = 0 ; | |
16537 | PyObject * obj1 = 0 ; | |
16538 | char *kwnames[] = { | |
16539 | (char *) "self",(char *) "pos", NULL | |
16540 | }; | |
16541 | ||
16542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16545 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16546 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16547 | arg2 = *argp2; | |
d14a1e28 RD |
16548 | { |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | wxMoveEvent_SetPosition(arg1,arg2); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | Py_INCREF(Py_None); resultobj = Py_None; | |
16556 | return resultobj; | |
16557 | fail: | |
16558 | return NULL; | |
16559 | } | |
16560 | ||
16561 | ||
16562 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16563 | PyObject *resultobj; | |
16564 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16565 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16566 | PyObject * obj0 = 0 ; | |
16567 | PyObject * obj1 = 0 ; | |
16568 | char *kwnames[] = { | |
16569 | (char *) "self",(char *) "m_pos", NULL | |
16570 | }; | |
16571 | ||
16572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16575 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16577 | if (arg1) (arg1)->m_pos = *arg2; |
16578 | ||
16579 | Py_INCREF(Py_None); resultobj = Py_None; | |
16580 | return resultobj; | |
16581 | fail: | |
16582 | return NULL; | |
16583 | } | |
16584 | ||
16585 | ||
16586 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16587 | PyObject *resultobj; | |
16588 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16589 | wxPoint *result; | |
16590 | PyObject * obj0 = 0 ; | |
16591 | char *kwnames[] = { | |
16592 | (char *) "self", NULL | |
16593 | }; | |
16594 | ||
16595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16598 | result = (wxPoint *)& ((arg1)->m_pos); |
16599 | ||
15afbcd0 | 16600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16601 | return resultobj; |
16602 | fail: | |
16603 | return NULL; | |
16604 | } | |
16605 | ||
16606 | ||
16607 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16608 | PyObject *resultobj; | |
16609 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16610 | wxRect *arg2 = (wxRect *) 0 ; | |
16611 | PyObject * obj0 = 0 ; | |
16612 | PyObject * obj1 = 0 ; | |
16613 | char *kwnames[] = { | |
16614 | (char *) "self",(char *) "m_rect", NULL | |
16615 | }; | |
16616 | ||
16617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16622 | if (arg1) (arg1)->m_rect = *arg2; |
16623 | ||
16624 | Py_INCREF(Py_None); resultobj = Py_None; | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | return NULL; | |
16628 | } | |
16629 | ||
16630 | ||
16631 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16632 | PyObject *resultobj; | |
16633 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16634 | wxRect *result; | |
16635 | PyObject * obj0 = 0 ; | |
16636 | char *kwnames[] = { | |
16637 | (char *) "self", NULL | |
16638 | }; | |
16639 | ||
16640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16643 | result = (wxRect *)& ((arg1)->m_rect); |
16644 | ||
15afbcd0 | 16645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16646 | return resultobj; |
16647 | fail: | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16653 | PyObject *obj; | |
16654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16655 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16656 | Py_INCREF(obj); | |
16657 | return Py_BuildValue((char *)""); | |
16658 | } | |
16659 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16660 | PyObject *resultobj; | |
16661 | int arg1 = (int) 0 ; | |
16662 | wxPaintEvent *result; | |
994141e6 | 16663 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16664 | char *kwnames[] = { |
16665 | (char *) "Id", NULL | |
16666 | }; | |
16667 | ||
994141e6 RD |
16668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16669 | if (obj0) { | |
15afbcd0 RD |
16670 | arg1 = (int) SWIG_AsInt(obj0); |
16671 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16672 | } |
d14a1e28 RD |
16673 | { |
16674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16675 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16676 | ||
16677 | wxPyEndAllowThreads(__tstate); | |
16678 | if (PyErr_Occurred()) SWIG_fail; | |
16679 | } | |
15afbcd0 | 16680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16681 | return resultobj; |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16688 | PyObject *obj; | |
16689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16690 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16691 | Py_INCREF(obj); | |
16692 | return Py_BuildValue((char *)""); | |
16693 | } | |
16694 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | int arg1 = (int) 0 ; | |
16697 | wxNcPaintEvent *result; | |
994141e6 | 16698 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16699 | char *kwnames[] = { |
16700 | (char *) "winid", NULL | |
16701 | }; | |
16702 | ||
994141e6 RD |
16703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16704 | if (obj0) { | |
15afbcd0 RD |
16705 | arg1 = (int) SWIG_AsInt(obj0); |
16706 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16707 | } |
d14a1e28 RD |
16708 | { |
16709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16710 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16711 | ||
16712 | wxPyEndAllowThreads(__tstate); | |
16713 | if (PyErr_Occurred()) SWIG_fail; | |
16714 | } | |
15afbcd0 | 16715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16716 | return resultobj; |
16717 | fail: | |
16718 | return NULL; | |
16719 | } | |
16720 | ||
16721 | ||
16722 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16723 | PyObject *obj; | |
16724 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16725 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16726 | Py_INCREF(obj); | |
16727 | return Py_BuildValue((char *)""); | |
16728 | } | |
16729 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16730 | PyObject *resultobj; | |
16731 | int arg1 = (int) 0 ; | |
16732 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16733 | wxEraseEvent *result; | |
994141e6 | 16734 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16735 | PyObject * obj1 = 0 ; |
16736 | char *kwnames[] = { | |
16737 | (char *) "Id",(char *) "dc", NULL | |
16738 | }; | |
16739 | ||
994141e6 RD |
16740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16741 | if (obj0) { | |
15afbcd0 RD |
16742 | arg1 = (int) SWIG_AsInt(obj0); |
16743 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16744 | } |
d14a1e28 | 16745 | if (obj1) { |
15afbcd0 RD |
16746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16748 | } |
16749 | { | |
16750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16751 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16752 | ||
16753 | wxPyEndAllowThreads(__tstate); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
16755 | } | |
15afbcd0 | 16756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16757 | return resultobj; |
16758 | fail: | |
16759 | return NULL; | |
16760 | } | |
16761 | ||
16762 | ||
16763 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16764 | PyObject *resultobj; | |
16765 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16766 | wxDC *result; | |
16767 | PyObject * obj0 = 0 ; | |
16768 | char *kwnames[] = { | |
16769 | (char *) "self", NULL | |
16770 | }; | |
16771 | ||
16772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16775 | { |
16776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16777 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16778 | ||
16779 | wxPyEndAllowThreads(__tstate); | |
16780 | if (PyErr_Occurred()) SWIG_fail; | |
16781 | } | |
16782 | { | |
16783 | resultobj = wxPyMake_wxObject(result); | |
16784 | } | |
16785 | return resultobj; | |
16786 | fail: | |
16787 | return NULL; | |
16788 | } | |
16789 | ||
16790 | ||
16791 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16792 | PyObject *obj; | |
16793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16794 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16795 | Py_INCREF(obj); | |
16796 | return Py_BuildValue((char *)""); | |
16797 | } | |
16798 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16799 | PyObject *resultobj; | |
16800 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16801 | int arg2 = (int) 0 ; | |
16802 | wxFocusEvent *result; | |
994141e6 RD |
16803 | PyObject * obj0 = 0 ; |
16804 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16805 | char *kwnames[] = { |
16806 | (char *) "type",(char *) "winid", NULL | |
16807 | }; | |
16808 | ||
994141e6 RD |
16809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16810 | if (obj0) { | |
15afbcd0 RD |
16811 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16813 | } |
16814 | if (obj1) { | |
15afbcd0 RD |
16815 | arg2 = (int) SWIG_AsInt(obj1); |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16817 | } |
d14a1e28 RD |
16818 | { |
16819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16820 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16821 | ||
16822 | wxPyEndAllowThreads(__tstate); | |
16823 | if (PyErr_Occurred()) SWIG_fail; | |
16824 | } | |
15afbcd0 | 16825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16826 | return resultobj; |
16827 | fail: | |
16828 | return NULL; | |
16829 | } | |
16830 | ||
16831 | ||
16832 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16833 | PyObject *resultobj; | |
16834 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16835 | wxWindow *result; | |
16836 | PyObject * obj0 = 0 ; | |
16837 | char *kwnames[] = { | |
16838 | (char *) "self", NULL | |
16839 | }; | |
16840 | ||
16841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16844 | { |
16845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16846 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16847 | ||
16848 | wxPyEndAllowThreads(__tstate); | |
16849 | if (PyErr_Occurred()) SWIG_fail; | |
16850 | } | |
16851 | { | |
16852 | resultobj = wxPyMake_wxObject(result); | |
16853 | } | |
16854 | return resultobj; | |
16855 | fail: | |
16856 | return NULL; | |
16857 | } | |
16858 | ||
16859 | ||
16860 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16861 | PyObject *resultobj; | |
16862 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16863 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16864 | PyObject * obj0 = 0 ; | |
16865 | PyObject * obj1 = 0 ; | |
16866 | char *kwnames[] = { | |
16867 | (char *) "self",(char *) "win", NULL | |
16868 | }; | |
16869 | ||
16870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16875 | { |
16876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16877 | (arg1)->SetWindow(arg2); | |
16878 | ||
16879 | wxPyEndAllowThreads(__tstate); | |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
16881 | } | |
16882 | Py_INCREF(Py_None); resultobj = Py_None; | |
16883 | return resultobj; | |
16884 | fail: | |
16885 | return NULL; | |
16886 | } | |
16887 | ||
16888 | ||
16889 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16890 | PyObject *obj; | |
16891 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16892 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16893 | Py_INCREF(obj); | |
16894 | return Py_BuildValue((char *)""); | |
16895 | } | |
16896 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16897 | PyObject *resultobj; | |
16898 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16899 | wxChildFocusEvent *result; | |
16900 | PyObject * obj0 = 0 ; | |
16901 | char *kwnames[] = { | |
16902 | (char *) "win", NULL | |
16903 | }; | |
16904 | ||
16905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16906 | if (obj0) { | |
15afbcd0 RD |
16907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
16908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16909 | } |
16910 | { | |
16911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16912 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16913 | ||
16914 | wxPyEndAllowThreads(__tstate); | |
16915 | if (PyErr_Occurred()) SWIG_fail; | |
16916 | } | |
15afbcd0 | 16917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
16918 | return resultobj; |
16919 | fail: | |
16920 | return NULL; | |
16921 | } | |
16922 | ||
16923 | ||
16924 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16925 | PyObject *resultobj; | |
16926 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16927 | wxWindow *result; | |
16928 | PyObject * obj0 = 0 ; | |
16929 | char *kwnames[] = { | |
16930 | (char *) "self", NULL | |
16931 | }; | |
16932 | ||
16933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
16935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16936 | { |
16937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16938 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16939 | ||
16940 | wxPyEndAllowThreads(__tstate); | |
16941 | if (PyErr_Occurred()) SWIG_fail; | |
16942 | } | |
16943 | { | |
16944 | resultobj = wxPyMake_wxObject(result); | |
16945 | } | |
16946 | return resultobj; | |
16947 | fail: | |
16948 | return NULL; | |
16949 | } | |
16950 | ||
16951 | ||
16952 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16953 | PyObject *obj; | |
16954 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16955 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
16956 | Py_INCREF(obj); | |
16957 | return Py_BuildValue((char *)""); | |
16958 | } | |
16959 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16960 | PyObject *resultobj; | |
16961 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 16962 | bool arg2 = (bool) True ; |
d14a1e28 RD |
16963 | int arg3 = (int) 0 ; |
16964 | wxActivateEvent *result; | |
994141e6 | 16965 | PyObject * obj0 = 0 ; |
d14a1e28 | 16966 | PyObject * obj1 = 0 ; |
994141e6 | 16967 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16968 | char *kwnames[] = { |
16969 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
16970 | }; | |
16971 | ||
994141e6 RD |
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
16973 | if (obj0) { | |
15afbcd0 RD |
16974 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16975 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16976 | } |
d14a1e28 | 16977 | if (obj1) { |
15afbcd0 RD |
16978 | arg2 = (bool) SWIG_AsBool(obj1); |
16979 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16980 | } |
16981 | if (obj2) { | |
15afbcd0 RD |
16982 | arg3 = (int) SWIG_AsInt(obj2); |
16983 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16984 | } |
16985 | { | |
16986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16987 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
16988 | ||
16989 | wxPyEndAllowThreads(__tstate); | |
16990 | if (PyErr_Occurred()) SWIG_fail; | |
16991 | } | |
15afbcd0 | 16992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
16993 | return resultobj; |
16994 | fail: | |
16995 | return NULL; | |
16996 | } | |
16997 | ||
16998 | ||
16999 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17000 | PyObject *resultobj; | |
17001 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17002 | bool result; | |
17003 | PyObject * obj0 = 0 ; | |
17004 | char *kwnames[] = { | |
17005 | (char *) "self", NULL | |
17006 | }; | |
17007 | ||
17008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
17010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17011 | { |
17012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17013 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17014 | ||
17015 | wxPyEndAllowThreads(__tstate); | |
17016 | if (PyErr_Occurred()) SWIG_fail; | |
17017 | } | |
4f89f6a3 RD |
17018 | { |
17019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17020 | } | |
d14a1e28 RD |
17021 | return resultobj; |
17022 | fail: | |
17023 | return NULL; | |
17024 | } | |
17025 | ||
17026 | ||
17027 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17028 | PyObject *obj; | |
17029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17030 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17031 | Py_INCREF(obj); | |
17032 | return Py_BuildValue((char *)""); | |
17033 | } | |
17034 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17035 | PyObject *resultobj; | |
17036 | int arg1 = (int) 0 ; | |
17037 | wxInitDialogEvent *result; | |
994141e6 | 17038 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17039 | char *kwnames[] = { |
17040 | (char *) "Id", NULL | |
17041 | }; | |
17042 | ||
994141e6 RD |
17043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
17044 | if (obj0) { | |
15afbcd0 RD |
17045 | arg1 = (int) SWIG_AsInt(obj0); |
17046 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17047 | } |
d14a1e28 RD |
17048 | { |
17049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17050 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17051 | ||
17052 | wxPyEndAllowThreads(__tstate); | |
17053 | if (PyErr_Occurred()) SWIG_fail; | |
17054 | } | |
15afbcd0 | 17055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
17056 | return resultobj; |
17057 | fail: | |
17058 | return NULL; | |
17059 | } | |
17060 | ||
17061 | ||
17062 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17063 | PyObject *obj; | |
17064 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17065 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17066 | Py_INCREF(obj); | |
17067 | return Py_BuildValue((char *)""); | |
17068 | } | |
17069 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17070 | PyObject *resultobj; | |
17071 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17072 | int arg2 = (int) 0 ; | |
17073 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17074 | wxMenuEvent *result; | |
994141e6 RD |
17075 | PyObject * obj0 = 0 ; |
17076 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17077 | PyObject * obj2 = 0 ; |
17078 | char *kwnames[] = { | |
17079 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17080 | }; | |
17081 | ||
994141e6 RD |
17082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17083 | if (obj0) { | |
15afbcd0 RD |
17084 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17085 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17086 | } |
17087 | if (obj1) { | |
15afbcd0 RD |
17088 | arg2 = (int) SWIG_AsInt(obj1); |
17089 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17090 | } |
d14a1e28 | 17091 | if (obj2) { |
15afbcd0 RD |
17092 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17094 | } |
17095 | { | |
17096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17097 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17098 | ||
17099 | wxPyEndAllowThreads(__tstate); | |
17100 | if (PyErr_Occurred()) SWIG_fail; | |
17101 | } | |
15afbcd0 | 17102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17103 | return resultobj; |
17104 | fail: | |
17105 | return NULL; | |
17106 | } | |
17107 | ||
17108 | ||
17109 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17110 | PyObject *resultobj; | |
17111 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17112 | int result; | |
17113 | PyObject * obj0 = 0 ; | |
17114 | char *kwnames[] = { | |
17115 | (char *) "self", NULL | |
17116 | }; | |
17117 | ||
17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17121 | { |
17122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17123 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17124 | ||
17125 | wxPyEndAllowThreads(__tstate); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
15afbcd0 | 17128 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17129 | return resultobj; |
17130 | fail: | |
17131 | return NULL; | |
17132 | } | |
17133 | ||
17134 | ||
17135 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17136 | PyObject *resultobj; | |
17137 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17138 | bool result; | |
17139 | PyObject * obj0 = 0 ; | |
17140 | char *kwnames[] = { | |
17141 | (char *) "self", NULL | |
17142 | }; | |
17143 | ||
17144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17147 | { |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
4f89f6a3 RD |
17154 | { |
17155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17156 | } | |
d14a1e28 RD |
17157 | return resultobj; |
17158 | fail: | |
17159 | return NULL; | |
17160 | } | |
17161 | ||
17162 | ||
17163 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17164 | PyObject *resultobj; | |
17165 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17166 | wxMenu *result; | |
17167 | PyObject * obj0 = 0 ; | |
17168 | char *kwnames[] = { | |
17169 | (char *) "self", NULL | |
17170 | }; | |
17171 | ||
17172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17175 | { |
17176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17177 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17178 | ||
17179 | wxPyEndAllowThreads(__tstate); | |
17180 | if (PyErr_Occurred()) SWIG_fail; | |
17181 | } | |
17182 | { | |
17183 | resultobj = wxPyMake_wxObject(result); | |
17184 | } | |
17185 | return resultobj; | |
17186 | fail: | |
17187 | return NULL; | |
17188 | } | |
17189 | ||
17190 | ||
17191 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17192 | PyObject *obj; | |
17193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17194 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17195 | Py_INCREF(obj); | |
17196 | return Py_BuildValue((char *)""); | |
17197 | } | |
17198 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17199 | PyObject *resultobj; | |
17200 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17201 | int arg2 = (int) 0 ; | |
17202 | wxCloseEvent *result; | |
994141e6 RD |
17203 | PyObject * obj0 = 0 ; |
17204 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17205 | char *kwnames[] = { |
17206 | (char *) "type",(char *) "winid", NULL | |
17207 | }; | |
17208 | ||
994141e6 RD |
17209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17210 | if (obj0) { | |
15afbcd0 RD |
17211 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17213 | } |
17214 | if (obj1) { | |
15afbcd0 RD |
17215 | arg2 = (int) SWIG_AsInt(obj1); |
17216 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17217 | } |
d14a1e28 RD |
17218 | { |
17219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17220 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17221 | ||
17222 | wxPyEndAllowThreads(__tstate); | |
17223 | if (PyErr_Occurred()) SWIG_fail; | |
17224 | } | |
15afbcd0 | 17225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17226 | return resultobj; |
17227 | fail: | |
17228 | return NULL; | |
17229 | } | |
17230 | ||
17231 | ||
17232 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17233 | PyObject *resultobj; | |
17234 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17235 | bool arg2 ; | |
17236 | PyObject * obj0 = 0 ; | |
17237 | PyObject * obj1 = 0 ; | |
17238 | char *kwnames[] = { | |
17239 | (char *) "self",(char *) "logOff", NULL | |
17240 | }; | |
17241 | ||
17242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17245 | arg2 = (bool) SWIG_AsBool(obj1); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17247 | { |
17248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17249 | (arg1)->SetLoggingOff(arg2); | |
17250 | ||
17251 | wxPyEndAllowThreads(__tstate); | |
17252 | if (PyErr_Occurred()) SWIG_fail; | |
17253 | } | |
17254 | Py_INCREF(Py_None); resultobj = Py_None; | |
17255 | return resultobj; | |
17256 | fail: | |
17257 | return NULL; | |
17258 | } | |
17259 | ||
17260 | ||
17261 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17262 | PyObject *resultobj; | |
17263 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17264 | bool result; | |
17265 | PyObject * obj0 = 0 ; | |
17266 | char *kwnames[] = { | |
17267 | (char *) "self", NULL | |
17268 | }; | |
17269 | ||
17270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17273 | { |
17274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17275 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17276 | ||
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
4f89f6a3 RD |
17280 | { |
17281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17282 | } | |
d14a1e28 RD |
17283 | return resultobj; |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
17289 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj; | |
17291 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 17292 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17293 | PyObject * obj0 = 0 ; |
17294 | PyObject * obj1 = 0 ; | |
17295 | char *kwnames[] = { | |
17296 | (char *) "self",(char *) "veto", NULL | |
17297 | }; | |
17298 | ||
17299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17302 | if (obj1) { |
15afbcd0 RD |
17303 | arg2 = (bool) SWIG_AsBool(obj1); |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17305 | } |
17306 | { | |
17307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17308 | (arg1)->Veto(arg2); | |
17309 | ||
17310 | wxPyEndAllowThreads(__tstate); | |
17311 | if (PyErr_Occurred()) SWIG_fail; | |
17312 | } | |
17313 | Py_INCREF(Py_None); resultobj = Py_None; | |
17314 | return resultobj; | |
17315 | fail: | |
17316 | return NULL; | |
17317 | } | |
17318 | ||
17319 | ||
17320 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17321 | PyObject *resultobj; | |
17322 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17323 | bool arg2 ; | |
17324 | PyObject * obj0 = 0 ; | |
17325 | PyObject * obj1 = 0 ; | |
17326 | char *kwnames[] = { | |
17327 | (char *) "self",(char *) "canVeto", NULL | |
17328 | }; | |
17329 | ||
17330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17333 | arg2 = (bool) SWIG_AsBool(obj1); | |
17334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17335 | { |
17336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17337 | (arg1)->SetCanVeto(arg2); | |
17338 | ||
17339 | wxPyEndAllowThreads(__tstate); | |
17340 | if (PyErr_Occurred()) SWIG_fail; | |
17341 | } | |
17342 | Py_INCREF(Py_None); resultobj = Py_None; | |
17343 | return resultobj; | |
17344 | fail: | |
17345 | return NULL; | |
17346 | } | |
17347 | ||
17348 | ||
17349 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17350 | PyObject *resultobj; | |
17351 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17352 | bool result; | |
17353 | PyObject * obj0 = 0 ; | |
17354 | char *kwnames[] = { | |
17355 | (char *) "self", NULL | |
17356 | }; | |
17357 | ||
17358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17361 | { |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17364 | ||
17365 | wxPyEndAllowThreads(__tstate); | |
17366 | if (PyErr_Occurred()) SWIG_fail; | |
17367 | } | |
4f89f6a3 RD |
17368 | { |
17369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17370 | } | |
d14a1e28 RD |
17371 | return resultobj; |
17372 | fail: | |
17373 | return NULL; | |
17374 | } | |
17375 | ||
17376 | ||
17377 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17378 | PyObject *resultobj; | |
17379 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17380 | bool result; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | char *kwnames[] = { | |
17383 | (char *) "self", NULL | |
17384 | }; | |
17385 | ||
17386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17389 | { |
17390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17391 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17392 | ||
17393 | wxPyEndAllowThreads(__tstate); | |
17394 | if (PyErr_Occurred()) SWIG_fail; | |
17395 | } | |
4f89f6a3 RD |
17396 | { |
17397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17398 | } | |
d14a1e28 RD |
17399 | return resultobj; |
17400 | fail: | |
17401 | return NULL; | |
17402 | } | |
17403 | ||
17404 | ||
17405 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17406 | PyObject *obj; | |
17407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17408 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17409 | Py_INCREF(obj); | |
17410 | return Py_BuildValue((char *)""); | |
17411 | } | |
17412 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17413 | PyObject *resultobj; | |
17414 | int arg1 = (int) 0 ; | |
e811c8ce | 17415 | bool arg2 = (bool) False ; |
d14a1e28 | 17416 | wxShowEvent *result; |
994141e6 | 17417 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17418 | PyObject * obj1 = 0 ; |
17419 | char *kwnames[] = { | |
17420 | (char *) "winid",(char *) "show", NULL | |
17421 | }; | |
17422 | ||
994141e6 RD |
17423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17424 | if (obj0) { | |
15afbcd0 RD |
17425 | arg1 = (int) SWIG_AsInt(obj0); |
17426 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17427 | } |
d14a1e28 | 17428 | if (obj1) { |
15afbcd0 RD |
17429 | arg2 = (bool) SWIG_AsBool(obj1); |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17431 | } |
17432 | { | |
17433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17434 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17435 | ||
17436 | wxPyEndAllowThreads(__tstate); | |
17437 | if (PyErr_Occurred()) SWIG_fail; | |
17438 | } | |
15afbcd0 | 17439 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17440 | return resultobj; |
17441 | fail: | |
17442 | return NULL; | |
17443 | } | |
17444 | ||
17445 | ||
17446 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17447 | PyObject *resultobj; | |
17448 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17449 | bool arg2 ; | |
17450 | PyObject * obj0 = 0 ; | |
17451 | PyObject * obj1 = 0 ; | |
17452 | char *kwnames[] = { | |
17453 | (char *) "self",(char *) "show", NULL | |
17454 | }; | |
17455 | ||
17456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17459 | arg2 = (bool) SWIG_AsBool(obj1); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17461 | { |
17462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17463 | (arg1)->SetShow(arg2); | |
17464 | ||
17465 | wxPyEndAllowThreads(__tstate); | |
17466 | if (PyErr_Occurred()) SWIG_fail; | |
17467 | } | |
17468 | Py_INCREF(Py_None); resultobj = Py_None; | |
17469 | return resultobj; | |
17470 | fail: | |
17471 | return NULL; | |
17472 | } | |
17473 | ||
17474 | ||
17475 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17476 | PyObject *resultobj; | |
17477 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17478 | bool result; | |
17479 | PyObject * obj0 = 0 ; | |
17480 | char *kwnames[] = { | |
17481 | (char *) "self", NULL | |
17482 | }; | |
17483 | ||
17484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17487 | { |
17488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17489 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17490 | ||
17491 | wxPyEndAllowThreads(__tstate); | |
17492 | if (PyErr_Occurred()) SWIG_fail; | |
17493 | } | |
4f89f6a3 RD |
17494 | { |
17495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17496 | } | |
d14a1e28 RD |
17497 | return resultobj; |
17498 | fail: | |
17499 | return NULL; | |
17500 | } | |
17501 | ||
17502 | ||
17503 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17504 | PyObject *obj; | |
17505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17506 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17507 | Py_INCREF(obj); | |
17508 | return Py_BuildValue((char *)""); | |
17509 | } | |
17510 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17511 | PyObject *resultobj; | |
17512 | int arg1 = (int) 0 ; | |
e811c8ce | 17513 | bool arg2 = (bool) True ; |
d14a1e28 | 17514 | wxIconizeEvent *result; |
994141e6 | 17515 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17516 | PyObject * obj1 = 0 ; |
17517 | char *kwnames[] = { | |
17518 | (char *) "id",(char *) "iconized", NULL | |
17519 | }; | |
17520 | ||
994141e6 RD |
17521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17522 | if (obj0) { | |
15afbcd0 RD |
17523 | arg1 = (int) SWIG_AsInt(obj0); |
17524 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17525 | } |
d14a1e28 | 17526 | if (obj1) { |
15afbcd0 RD |
17527 | arg2 = (bool) SWIG_AsBool(obj1); |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17529 | } |
17530 | { | |
17531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17532 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17533 | ||
17534 | wxPyEndAllowThreads(__tstate); | |
17535 | if (PyErr_Occurred()) SWIG_fail; | |
17536 | } | |
15afbcd0 | 17537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17538 | return resultobj; |
17539 | fail: | |
17540 | return NULL; | |
17541 | } | |
17542 | ||
17543 | ||
17544 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17545 | PyObject *resultobj; | |
17546 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17547 | bool result; | |
17548 | PyObject * obj0 = 0 ; | |
17549 | char *kwnames[] = { | |
17550 | (char *) "self", NULL | |
17551 | }; | |
17552 | ||
17553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17556 | { |
17557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17558 | result = (bool)(arg1)->Iconized(); | |
17559 | ||
17560 | wxPyEndAllowThreads(__tstate); | |
17561 | if (PyErr_Occurred()) SWIG_fail; | |
17562 | } | |
4f89f6a3 RD |
17563 | { |
17564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17565 | } | |
d14a1e28 RD |
17566 | return resultobj; |
17567 | fail: | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
17572 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17573 | PyObject *obj; | |
17574 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17575 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17576 | Py_INCREF(obj); | |
17577 | return Py_BuildValue((char *)""); | |
17578 | } | |
17579 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17580 | PyObject *resultobj; | |
17581 | int arg1 = (int) 0 ; | |
17582 | wxMaximizeEvent *result; | |
994141e6 | 17583 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17584 | char *kwnames[] = { |
17585 | (char *) "id", NULL | |
17586 | }; | |
17587 | ||
994141e6 RD |
17588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17589 | if (obj0) { | |
15afbcd0 RD |
17590 | arg1 = (int) SWIG_AsInt(obj0); |
17591 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17592 | } |
d14a1e28 RD |
17593 | { |
17594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17595 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17596 | ||
17597 | wxPyEndAllowThreads(__tstate); | |
17598 | if (PyErr_Occurred()) SWIG_fail; | |
17599 | } | |
15afbcd0 | 17600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17601 | return resultobj; |
17602 | fail: | |
17603 | return NULL; | |
17604 | } | |
17605 | ||
17606 | ||
17607 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17608 | PyObject *obj; | |
17609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17610 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17611 | Py_INCREF(obj); | |
17612 | return Py_BuildValue((char *)""); | |
17613 | } | |
17614 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17615 | PyObject *resultobj; | |
17616 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17617 | wxPoint result; | |
17618 | PyObject * obj0 = 0 ; | |
17619 | char *kwnames[] = { | |
17620 | (char *) "self", NULL | |
17621 | }; | |
17622 | ||
17623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17626 | { |
17627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17628 | result = (arg1)->GetPosition(); | |
17629 | ||
17630 | wxPyEndAllowThreads(__tstate); | |
17631 | if (PyErr_Occurred()) SWIG_fail; | |
17632 | } | |
17633 | { | |
17634 | wxPoint * resultptr; | |
17635 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 17636 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17637 | } |
17638 | return resultobj; | |
17639 | fail: | |
17640 | return NULL; | |
17641 | } | |
17642 | ||
17643 | ||
17644 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17645 | PyObject *resultobj; | |
17646 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17647 | int result; | |
17648 | PyObject * obj0 = 0 ; | |
17649 | char *kwnames[] = { | |
17650 | (char *) "self", NULL | |
17651 | }; | |
17652 | ||
17653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17656 | { |
17657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17658 | result = (int)(arg1)->GetNumberOfFiles(); | |
17659 | ||
17660 | wxPyEndAllowThreads(__tstate); | |
17661 | if (PyErr_Occurred()) SWIG_fail; | |
17662 | } | |
15afbcd0 | 17663 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17664 | return resultobj; |
17665 | fail: | |
17666 | return NULL; | |
17667 | } | |
17668 | ||
17669 | ||
17670 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17671 | PyObject *resultobj; | |
17672 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17673 | PyObject *result; | |
17674 | PyObject * obj0 = 0 ; | |
17675 | char *kwnames[] = { | |
17676 | (char *) "self", NULL | |
17677 | }; | |
17678 | ||
17679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17682 | { |
17683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17684 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17685 | ||
17686 | wxPyEndAllowThreads(__tstate); | |
17687 | if (PyErr_Occurred()) SWIG_fail; | |
17688 | } | |
17689 | resultobj = result; | |
17690 | return resultobj; | |
17691 | fail: | |
17692 | return NULL; | |
17693 | } | |
17694 | ||
17695 | ||
17696 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17697 | PyObject *obj; | |
17698 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17699 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17700 | Py_INCREF(obj); | |
17701 | return Py_BuildValue((char *)""); | |
17702 | } | |
17703 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17704 | PyObject *resultobj; | |
e811c8ce | 17705 | int arg1 = (int) 0 ; |
d14a1e28 | 17706 | wxUpdateUIEvent *result; |
994141e6 | 17707 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17708 | char *kwnames[] = { |
17709 | (char *) "commandId", NULL | |
17710 | }; | |
17711 | ||
994141e6 RD |
17712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17713 | if (obj0) { | |
15afbcd0 RD |
17714 | arg1 = (int) SWIG_AsInt(obj0); |
17715 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17716 | } |
d14a1e28 RD |
17717 | { |
17718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17719 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17720 | ||
17721 | wxPyEndAllowThreads(__tstate); | |
17722 | if (PyErr_Occurred()) SWIG_fail; | |
17723 | } | |
15afbcd0 | 17724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17725 | return resultobj; |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17732 | PyObject *resultobj; | |
17733 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17734 | bool result; | |
17735 | PyObject * obj0 = 0 ; | |
17736 | char *kwnames[] = { | |
17737 | (char *) "self", NULL | |
17738 | }; | |
17739 | ||
17740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17743 | { |
17744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17745 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17746 | ||
17747 | wxPyEndAllowThreads(__tstate); | |
17748 | if (PyErr_Occurred()) SWIG_fail; | |
17749 | } | |
4f89f6a3 RD |
17750 | { |
17751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17752 | } | |
d14a1e28 RD |
17753 | return resultobj; |
17754 | fail: | |
17755 | return NULL; | |
17756 | } | |
17757 | ||
17758 | ||
17759 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17760 | PyObject *resultobj; | |
17761 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17762 | bool result; | |
17763 | PyObject * obj0 = 0 ; | |
17764 | char *kwnames[] = { | |
17765 | (char *) "self", NULL | |
17766 | }; | |
17767 | ||
17768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17771 | { |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17774 | ||
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
4f89f6a3 RD |
17778 | { |
17779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17780 | } | |
d14a1e28 RD |
17781 | return resultobj; |
17782 | fail: | |
17783 | return NULL; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17788 | PyObject *resultobj; | |
17789 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17790 | wxString result; | |
17791 | PyObject * obj0 = 0 ; | |
17792 | char *kwnames[] = { | |
17793 | (char *) "self", NULL | |
17794 | }; | |
17795 | ||
17796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17799 | { |
17800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17801 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17802 | ||
17803 | wxPyEndAllowThreads(__tstate); | |
17804 | if (PyErr_Occurred()) SWIG_fail; | |
17805 | } | |
17806 | { | |
17807 | #if wxUSE_UNICODE | |
17808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17809 | #else | |
17810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17811 | #endif | |
17812 | } | |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17820 | PyObject *resultobj; | |
17821 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17822 | bool result; | |
17823 | PyObject * obj0 = 0 ; | |
17824 | char *kwnames[] = { | |
17825 | (char *) "self", NULL | |
17826 | }; | |
17827 | ||
17828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17831 | { |
17832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17833 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17834 | ||
17835 | wxPyEndAllowThreads(__tstate); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
17837 | } | |
4f89f6a3 RD |
17838 | { |
17839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17840 | } | |
d14a1e28 RD |
17841 | return resultobj; |
17842 | fail: | |
17843 | return NULL; | |
17844 | } | |
17845 | ||
17846 | ||
17847 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17848 | PyObject *resultobj; | |
17849 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17850 | bool result; | |
17851 | PyObject * obj0 = 0 ; | |
17852 | char *kwnames[] = { | |
17853 | (char *) "self", NULL | |
17854 | }; | |
17855 | ||
17856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17859 | { |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17862 | ||
17863 | wxPyEndAllowThreads(__tstate); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
4f89f6a3 RD |
17866 | { |
17867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17868 | } | |
d14a1e28 RD |
17869 | return resultobj; |
17870 | fail: | |
17871 | return NULL; | |
17872 | } | |
17873 | ||
17874 | ||
17875 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17876 | PyObject *resultobj; | |
17877 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17878 | bool result; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | char *kwnames[] = { | |
17881 | (char *) "self", NULL | |
17882 | }; | |
17883 | ||
17884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17887 | { |
17888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17889 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17890 | ||
17891 | wxPyEndAllowThreads(__tstate); | |
17892 | if (PyErr_Occurred()) SWIG_fail; | |
17893 | } | |
4f89f6a3 RD |
17894 | { |
17895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17896 | } | |
d14a1e28 RD |
17897 | return resultobj; |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17906 | bool arg2 ; | |
17907 | PyObject * obj0 = 0 ; | |
17908 | PyObject * obj1 = 0 ; | |
17909 | char *kwnames[] = { | |
17910 | (char *) "self",(char *) "check", NULL | |
17911 | }; | |
17912 | ||
17913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17916 | arg2 = (bool) SWIG_AsBool(obj1); | |
17917 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17918 | { |
17919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17920 | (arg1)->Check(arg2); | |
17921 | ||
17922 | wxPyEndAllowThreads(__tstate); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
17925 | Py_INCREF(Py_None); resultobj = Py_None; | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17933 | PyObject *resultobj; | |
17934 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17935 | bool arg2 ; | |
17936 | PyObject * obj0 = 0 ; | |
17937 | PyObject * obj1 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self",(char *) "enable", NULL | |
17940 | }; | |
17941 | ||
17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17945 | arg2 = (bool) SWIG_AsBool(obj1); | |
17946 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17947 | { |
17948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17949 | (arg1)->Enable(arg2); | |
17950 | ||
17951 | wxPyEndAllowThreads(__tstate); | |
17952 | if (PyErr_Occurred()) SWIG_fail; | |
17953 | } | |
17954 | Py_INCREF(Py_None); resultobj = Py_None; | |
17955 | return resultobj; | |
17956 | fail: | |
17957 | return NULL; | |
17958 | } | |
17959 | ||
17960 | ||
17961 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17962 | PyObject *resultobj; | |
17963 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17964 | wxString *arg2 = 0 ; | |
e811c8ce | 17965 | bool temp2 = False ; |
d14a1e28 RD |
17966 | PyObject * obj0 = 0 ; |
17967 | PyObject * obj1 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self",(char *) "text", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17975 | { |
17976 | arg2 = wxString_in_helper(obj1); | |
17977 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 17978 | temp2 = True; |
d14a1e28 RD |
17979 | } |
17980 | { | |
17981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17982 | (arg1)->SetText((wxString const &)*arg2); | |
17983 | ||
17984 | wxPyEndAllowThreads(__tstate); | |
17985 | if (PyErr_Occurred()) SWIG_fail; | |
17986 | } | |
17987 | Py_INCREF(Py_None); resultobj = Py_None; | |
17988 | { | |
17989 | if (temp2) | |
17990 | delete arg2; | |
17991 | } | |
17992 | return resultobj; | |
17993 | fail: | |
17994 | { | |
17995 | if (temp2) | |
17996 | delete arg2; | |
17997 | } | |
17998 | return NULL; | |
17999 | } | |
18000 | ||
18001 | ||
18002 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18003 | PyObject *resultobj; | |
18004 | long arg1 ; | |
994141e6 | 18005 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18006 | char *kwnames[] = { |
18007 | (char *) "updateInterval", NULL | |
18008 | }; | |
18009 | ||
994141e6 | 18010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18011 | arg1 = (long) SWIG_AsLong(obj0); |
18012 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18013 | { |
18014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18015 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18016 | ||
18017 | wxPyEndAllowThreads(__tstate); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | } | |
18020 | Py_INCREF(Py_None); resultobj = Py_None; | |
18021 | return resultobj; | |
18022 | fail: | |
18023 | return NULL; | |
18024 | } | |
18025 | ||
18026 | ||
18027 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18028 | PyObject *resultobj; | |
18029 | long result; | |
18030 | char *kwnames[] = { | |
18031 | NULL | |
18032 | }; | |
18033 | ||
18034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18035 | { | |
18036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18037 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18038 | ||
18039 | wxPyEndAllowThreads(__tstate); | |
18040 | if (PyErr_Occurred()) SWIG_fail; | |
18041 | } | |
15afbcd0 | 18042 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18043 | return resultobj; |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
18049 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18050 | PyObject *resultobj; | |
18051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18052 | bool result; | |
18053 | PyObject * obj0 = 0 ; | |
18054 | char *kwnames[] = { | |
18055 | (char *) "win", NULL | |
18056 | }; | |
18057 | ||
18058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18061 | { |
18062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18063 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18064 | ||
18065 | wxPyEndAllowThreads(__tstate); | |
18066 | if (PyErr_Occurred()) SWIG_fail; | |
18067 | } | |
4f89f6a3 RD |
18068 | { |
18069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18070 | } | |
d14a1e28 RD |
18071 | return resultobj; |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj; | |
18079 | char *kwnames[] = { | |
18080 | NULL | |
18081 | }; | |
18082 | ||
18083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18084 | { | |
18085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18086 | wxUpdateUIEvent::ResetUpdateTime(); | |
18087 | ||
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
18091 | Py_INCREF(Py_None); resultobj = Py_None; | |
18092 | return resultobj; | |
18093 | fail: | |
18094 | return NULL; | |
18095 | } | |
18096 | ||
18097 | ||
18098 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18099 | PyObject *resultobj; | |
18100 | int arg1 ; | |
994141e6 | 18101 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18102 | char *kwnames[] = { |
18103 | (char *) "mode", NULL | |
18104 | }; | |
18105 | ||
994141e6 | 18106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18107 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18109 | { |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | Py_INCREF(Py_None); resultobj = Py_None; | |
18117 | return resultobj; | |
18118 | fail: | |
18119 | return NULL; | |
18120 | } | |
18121 | ||
18122 | ||
18123 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18124 | PyObject *resultobj; | |
18125 | int result; | |
18126 | char *kwnames[] = { | |
18127 | NULL | |
18128 | }; | |
18129 | ||
18130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | result = (int)wxUpdateUIEvent::GetMode(); | |
18134 | ||
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
15afbcd0 | 18138 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18139 | return resultobj; |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
18145 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18146 | PyObject *obj; | |
18147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18148 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18149 | Py_INCREF(obj); | |
18150 | return Py_BuildValue((char *)""); | |
18151 | } | |
18152 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18153 | PyObject *resultobj; | |
18154 | wxSysColourChangedEvent *result; | |
18155 | char *kwnames[] = { | |
18156 | NULL | |
18157 | }; | |
18158 | ||
18159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18160 | { | |
18161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18162 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18163 | ||
18164 | wxPyEndAllowThreads(__tstate); | |
18165 | if (PyErr_Occurred()) SWIG_fail; | |
18166 | } | |
15afbcd0 | 18167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18168 | return resultobj; |
18169 | fail: | |
18170 | return NULL; | |
18171 | } | |
18172 | ||
18173 | ||
18174 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18175 | PyObject *obj; | |
18176 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18177 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18178 | Py_INCREF(obj); | |
18179 | return Py_BuildValue((char *)""); | |
18180 | } | |
18181 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18182 | PyObject *resultobj; | |
e811c8ce | 18183 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18184 | wxWindow *arg2 = (wxWindow *) NULL ; |
18185 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 18186 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18187 | PyObject * obj1 = 0 ; |
18188 | char *kwnames[] = { | |
18189 | (char *) "winid",(char *) "gainedCapture", NULL | |
18190 | }; | |
18191 | ||
994141e6 RD |
18192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18193 | if (obj0) { | |
15afbcd0 RD |
18194 | arg1 = (int) SWIG_AsInt(obj0); |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18196 | } |
d14a1e28 | 18197 | if (obj1) { |
15afbcd0 RD |
18198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18200 | } |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
15afbcd0 | 18208 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18209 | return resultobj; |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj; | |
18217 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18218 | wxWindow *result; | |
18219 | PyObject * obj0 = 0 ; | |
18220 | char *kwnames[] = { | |
18221 | (char *) "self", NULL | |
18222 | }; | |
18223 | ||
18224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18227 | { |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | { | |
18235 | resultobj = wxPyMake_wxObject(result); | |
18236 | } | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18244 | PyObject *obj; | |
18245 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18246 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18247 | Py_INCREF(obj); | |
18248 | return Py_BuildValue((char *)""); | |
18249 | } | |
18250 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18251 | PyObject *resultobj; | |
18252 | wxDisplayChangedEvent *result; | |
18253 | char *kwnames[] = { | |
18254 | NULL | |
18255 | }; | |
18256 | ||
18257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18258 | { | |
18259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18260 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18261 | ||
18262 | wxPyEndAllowThreads(__tstate); | |
18263 | if (PyErr_Occurred()) SWIG_fail; | |
18264 | } | |
15afbcd0 | 18265 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18266 | return resultobj; |
18267 | fail: | |
18268 | return NULL; | |
18269 | } | |
18270 | ||
18271 | ||
18272 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18273 | PyObject *obj; | |
18274 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18275 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18276 | Py_INCREF(obj); | |
18277 | return Py_BuildValue((char *)""); | |
18278 | } | |
18279 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18280 | PyObject *resultobj; | |
e811c8ce | 18281 | int arg1 = (int) 0 ; |
d14a1e28 | 18282 | wxPaletteChangedEvent *result; |
994141e6 | 18283 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18284 | char *kwnames[] = { |
18285 | (char *) "id", NULL | |
18286 | }; | |
18287 | ||
994141e6 RD |
18288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18289 | if (obj0) { | |
15afbcd0 RD |
18290 | arg1 = (int) SWIG_AsInt(obj0); |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18292 | } |
d14a1e28 RD |
18293 | { |
18294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18295 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18296 | ||
18297 | wxPyEndAllowThreads(__tstate); | |
18298 | if (PyErr_Occurred()) SWIG_fail; | |
18299 | } | |
15afbcd0 | 18300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18301 | return resultobj; |
18302 | fail: | |
18303 | return NULL; | |
18304 | } | |
18305 | ||
18306 | ||
18307 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18308 | PyObject *resultobj; | |
18309 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18310 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18311 | PyObject * obj0 = 0 ; | |
18312 | PyObject * obj1 = 0 ; | |
18313 | char *kwnames[] = { | |
18314 | (char *) "self",(char *) "win", NULL | |
18315 | }; | |
18316 | ||
18317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18320 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18322 | { |
18323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18324 | (arg1)->SetChangedWindow(arg2); | |
18325 | ||
18326 | wxPyEndAllowThreads(__tstate); | |
18327 | if (PyErr_Occurred()) SWIG_fail; | |
18328 | } | |
18329 | Py_INCREF(Py_None); resultobj = Py_None; | |
18330 | return resultobj; | |
18331 | fail: | |
18332 | return NULL; | |
18333 | } | |
18334 | ||
18335 | ||
18336 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18337 | PyObject *resultobj; | |
18338 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18339 | wxWindow *result; | |
18340 | PyObject * obj0 = 0 ; | |
18341 | char *kwnames[] = { | |
18342 | (char *) "self", NULL | |
18343 | }; | |
18344 | ||
18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18348 | { |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18351 | ||
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | { | |
18356 | resultobj = wxPyMake_wxObject(result); | |
18357 | } | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18365 | PyObject *obj; | |
18366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18367 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18368 | Py_INCREF(obj); | |
18369 | return Py_BuildValue((char *)""); | |
18370 | } | |
18371 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18372 | PyObject *resultobj; | |
e811c8ce | 18373 | int arg1 = (int) 0 ; |
d14a1e28 | 18374 | wxQueryNewPaletteEvent *result; |
994141e6 | 18375 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18376 | char *kwnames[] = { |
18377 | (char *) "winid", NULL | |
18378 | }; | |
18379 | ||
994141e6 RD |
18380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18381 | if (obj0) { | |
15afbcd0 RD |
18382 | arg1 = (int) SWIG_AsInt(obj0); |
18383 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18384 | } |
d14a1e28 RD |
18385 | { |
18386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18387 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18388 | ||
18389 | wxPyEndAllowThreads(__tstate); | |
18390 | if (PyErr_Occurred()) SWIG_fail; | |
18391 | } | |
15afbcd0 | 18392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18393 | return resultobj; |
18394 | fail: | |
18395 | return NULL; | |
18396 | } | |
18397 | ||
18398 | ||
18399 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18400 | PyObject *resultobj; | |
18401 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18402 | bool arg2 ; | |
18403 | PyObject * obj0 = 0 ; | |
18404 | PyObject * obj1 = 0 ; | |
18405 | char *kwnames[] = { | |
18406 | (char *) "self",(char *) "realized", NULL | |
18407 | }; | |
18408 | ||
18409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18412 | arg2 = (bool) SWIG_AsBool(obj1); | |
18413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18414 | { |
18415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18416 | (arg1)->SetPaletteRealized(arg2); | |
18417 | ||
18418 | wxPyEndAllowThreads(__tstate); | |
18419 | if (PyErr_Occurred()) SWIG_fail; | |
18420 | } | |
18421 | Py_INCREF(Py_None); resultobj = Py_None; | |
18422 | return resultobj; | |
18423 | fail: | |
18424 | return NULL; | |
18425 | } | |
18426 | ||
18427 | ||
18428 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18429 | PyObject *resultobj; | |
18430 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18431 | bool result; | |
18432 | PyObject * obj0 = 0 ; | |
18433 | char *kwnames[] = { | |
18434 | (char *) "self", NULL | |
18435 | }; | |
18436 | ||
18437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18440 | { |
18441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18442 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18443 | ||
18444 | wxPyEndAllowThreads(__tstate); | |
18445 | if (PyErr_Occurred()) SWIG_fail; | |
18446 | } | |
4f89f6a3 RD |
18447 | { |
18448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18449 | } | |
d14a1e28 RD |
18450 | return resultobj; |
18451 | fail: | |
18452 | return NULL; | |
18453 | } | |
18454 | ||
18455 | ||
18456 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18457 | PyObject *obj; | |
18458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18459 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18460 | Py_INCREF(obj); | |
18461 | return Py_BuildValue((char *)""); | |
18462 | } | |
18463 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18464 | PyObject *resultobj; | |
18465 | wxNavigationKeyEvent *result; | |
18466 | char *kwnames[] = { | |
18467 | NULL | |
18468 | }; | |
18469 | ||
18470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18471 | { | |
18472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18473 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18474 | ||
18475 | wxPyEndAllowThreads(__tstate); | |
18476 | if (PyErr_Occurred()) SWIG_fail; | |
18477 | } | |
15afbcd0 | 18478 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18479 | return resultobj; |
18480 | fail: | |
18481 | return NULL; | |
18482 | } | |
18483 | ||
18484 | ||
18485 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18486 | PyObject *resultobj; | |
18487 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18488 | bool result; | |
18489 | PyObject * obj0 = 0 ; | |
18490 | char *kwnames[] = { | |
18491 | (char *) "self", NULL | |
18492 | }; | |
18493 | ||
18494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18497 | { |
18498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18499 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18500 | ||
18501 | wxPyEndAllowThreads(__tstate); | |
18502 | if (PyErr_Occurred()) SWIG_fail; | |
18503 | } | |
4f89f6a3 RD |
18504 | { |
18505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18506 | } | |
d14a1e28 RD |
18507 | return resultobj; |
18508 | fail: | |
18509 | return NULL; | |
18510 | } | |
18511 | ||
18512 | ||
18513 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18514 | PyObject *resultobj; | |
18515 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18516 | bool arg2 ; | |
18517 | PyObject * obj0 = 0 ; | |
18518 | PyObject * obj1 = 0 ; | |
18519 | char *kwnames[] = { | |
18520 | (char *) "self",(char *) "bForward", NULL | |
18521 | }; | |
18522 | ||
18523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18526 | arg2 = (bool) SWIG_AsBool(obj1); | |
18527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18528 | { |
18529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18530 | (arg1)->SetDirection(arg2); | |
18531 | ||
18532 | wxPyEndAllowThreads(__tstate); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | } | |
18535 | Py_INCREF(Py_None); resultobj = Py_None; | |
18536 | return resultobj; | |
18537 | fail: | |
18538 | return NULL; | |
18539 | } | |
18540 | ||
18541 | ||
18542 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18543 | PyObject *resultobj; | |
18544 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18545 | bool result; | |
18546 | PyObject * obj0 = 0 ; | |
18547 | char *kwnames[] = { | |
18548 | (char *) "self", NULL | |
18549 | }; | |
18550 | ||
18551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18554 | { |
18555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18556 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18557 | ||
18558 | wxPyEndAllowThreads(__tstate); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
18560 | } | |
4f89f6a3 RD |
18561 | { |
18562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18563 | } | |
d14a1e28 RD |
18564 | return resultobj; |
18565 | fail: | |
18566 | return NULL; | |
18567 | } | |
18568 | ||
18569 | ||
18570 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18571 | PyObject *resultobj; | |
18572 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18573 | bool arg2 ; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | PyObject * obj1 = 0 ; | |
18576 | char *kwnames[] = { | |
18577 | (char *) "self",(char *) "bIs", NULL | |
18578 | }; | |
18579 | ||
18580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18583 | arg2 = (bool) SWIG_AsBool(obj1); | |
18584 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18585 | { |
18586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18587 | (arg1)->SetWindowChange(arg2); | |
18588 | ||
18589 | wxPyEndAllowThreads(__tstate); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
18591 | } | |
18592 | Py_INCREF(Py_None); resultobj = Py_None; | |
18593 | return resultobj; | |
18594 | fail: | |
18595 | return NULL; | |
18596 | } | |
18597 | ||
18598 | ||
18599 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18600 | PyObject *resultobj; | |
18601 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18602 | wxWindow *result; | |
18603 | PyObject * obj0 = 0 ; | |
18604 | char *kwnames[] = { | |
18605 | (char *) "self", NULL | |
18606 | }; | |
18607 | ||
18608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18611 | { |
18612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18613 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18614 | ||
18615 | wxPyEndAllowThreads(__tstate); | |
18616 | if (PyErr_Occurred()) SWIG_fail; | |
18617 | } | |
18618 | { | |
18619 | resultobj = wxPyMake_wxObject(result); | |
18620 | } | |
18621 | return resultobj; | |
18622 | fail: | |
18623 | return NULL; | |
18624 | } | |
18625 | ||
18626 | ||
18627 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18628 | PyObject *resultobj; | |
18629 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18631 | PyObject * obj0 = 0 ; | |
18632 | PyObject * obj1 = 0 ; | |
18633 | char *kwnames[] = { | |
18634 | (char *) "self",(char *) "win", NULL | |
18635 | }; | |
18636 | ||
18637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18642 | { |
18643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18644 | (arg1)->SetCurrentFocus(arg2); | |
18645 | ||
18646 | wxPyEndAllowThreads(__tstate); | |
18647 | if (PyErr_Occurred()) SWIG_fail; | |
18648 | } | |
18649 | Py_INCREF(Py_None); resultobj = Py_None; | |
18650 | return resultobj; | |
18651 | fail: | |
18652 | return NULL; | |
18653 | } | |
18654 | ||
18655 | ||
18656 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18657 | PyObject *obj; | |
18658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18659 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18660 | Py_INCREF(obj); | |
18661 | return Py_BuildValue((char *)""); | |
18662 | } | |
18663 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18664 | PyObject *resultobj; | |
18665 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18666 | wxWindowCreateEvent *result; | |
18667 | PyObject * obj0 = 0 ; | |
18668 | char *kwnames[] = { | |
18669 | (char *) "win", NULL | |
18670 | }; | |
18671 | ||
18672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18673 | if (obj0) { | |
15afbcd0 RD |
18674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18676 | } |
18677 | { | |
18678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18679 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18680 | ||
18681 | wxPyEndAllowThreads(__tstate); | |
18682 | if (PyErr_Occurred()) SWIG_fail; | |
18683 | } | |
15afbcd0 | 18684 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18685 | return resultobj; |
18686 | fail: | |
18687 | return NULL; | |
18688 | } | |
18689 | ||
18690 | ||
18691 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18692 | PyObject *resultobj; | |
18693 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18694 | wxWindow *result; | |
18695 | PyObject * obj0 = 0 ; | |
18696 | char *kwnames[] = { | |
18697 | (char *) "self", NULL | |
18698 | }; | |
18699 | ||
18700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18703 | { |
18704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18705 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18706 | ||
18707 | wxPyEndAllowThreads(__tstate); | |
18708 | if (PyErr_Occurred()) SWIG_fail; | |
18709 | } | |
18710 | { | |
18711 | resultobj = wxPyMake_wxObject(result); | |
18712 | } | |
18713 | return resultobj; | |
18714 | fail: | |
18715 | return NULL; | |
18716 | } | |
18717 | ||
18718 | ||
18719 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18720 | PyObject *obj; | |
18721 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18722 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18723 | Py_INCREF(obj); | |
18724 | return Py_BuildValue((char *)""); | |
18725 | } | |
18726 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18727 | PyObject *resultobj; | |
18728 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18729 | wxWindowDestroyEvent *result; | |
18730 | PyObject * obj0 = 0 ; | |
18731 | char *kwnames[] = { | |
18732 | (char *) "win", NULL | |
18733 | }; | |
18734 | ||
18735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18736 | if (obj0) { | |
15afbcd0 RD |
18737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18739 | } |
18740 | { | |
18741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18742 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18743 | ||
18744 | wxPyEndAllowThreads(__tstate); | |
18745 | if (PyErr_Occurred()) SWIG_fail; | |
18746 | } | |
15afbcd0 | 18747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18748 | return resultobj; |
18749 | fail: | |
18750 | return NULL; | |
18751 | } | |
18752 | ||
18753 | ||
18754 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18755 | PyObject *resultobj; | |
18756 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18757 | wxWindow *result; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | char *kwnames[] = { | |
18760 | (char *) "self", NULL | |
18761 | }; | |
18762 | ||
18763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18766 | { |
18767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18768 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18769 | ||
18770 | wxPyEndAllowThreads(__tstate); | |
18771 | if (PyErr_Occurred()) SWIG_fail; | |
18772 | } | |
18773 | { | |
18774 | resultobj = wxPyMake_wxObject(result); | |
18775 | } | |
18776 | return resultobj; | |
18777 | fail: | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
18782 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18783 | PyObject *obj; | |
18784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18785 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18786 | Py_INCREF(obj); | |
18787 | return Py_BuildValue((char *)""); | |
18788 | } | |
18789 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18790 | PyObject *resultobj; | |
18791 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 18792 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18793 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18794 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18795 | wxContextMenuEvent *result; | |
18796 | wxPoint temp3 ; | |
994141e6 RD |
18797 | PyObject * obj0 = 0 ; |
18798 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18799 | PyObject * obj2 = 0 ; |
18800 | char *kwnames[] = { | |
18801 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18802 | }; | |
18803 | ||
994141e6 RD |
18804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18805 | if (obj0) { | |
15afbcd0 RD |
18806 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18808 | } |
18809 | if (obj1) { | |
15afbcd0 RD |
18810 | arg2 = (int) SWIG_AsInt(obj1); |
18811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18812 | } |
d14a1e28 RD |
18813 | if (obj2) { |
18814 | { | |
18815 | arg3 = &temp3; | |
18816 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18817 | } | |
18818 | } | |
18819 | { | |
18820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18821 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18822 | ||
18823 | wxPyEndAllowThreads(__tstate); | |
18824 | if (PyErr_Occurred()) SWIG_fail; | |
18825 | } | |
15afbcd0 | 18826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18827 | return resultobj; |
18828 | fail: | |
18829 | return NULL; | |
18830 | } | |
18831 | ||
18832 | ||
18833 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18834 | PyObject *resultobj; | |
18835 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18836 | wxPoint *result; | |
18837 | PyObject * obj0 = 0 ; | |
18838 | char *kwnames[] = { | |
18839 | (char *) "self", NULL | |
18840 | }; | |
18841 | ||
18842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18845 | { |
18846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18847 | { | |
18848 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18849 | result = (wxPoint *) &_result_ref; | |
18850 | } | |
18851 | ||
18852 | wxPyEndAllowThreads(__tstate); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | } | |
15afbcd0 | 18855 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18856 | return resultobj; |
18857 | fail: | |
18858 | return NULL; | |
18859 | } | |
18860 | ||
18861 | ||
18862 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18863 | PyObject *resultobj; | |
18864 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18865 | wxPoint *arg2 = 0 ; | |
18866 | wxPoint temp2 ; | |
18867 | PyObject * obj0 = 0 ; | |
18868 | PyObject * obj1 = 0 ; | |
18869 | char *kwnames[] = { | |
18870 | (char *) "self",(char *) "pos", NULL | |
18871 | }; | |
18872 | ||
18873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18876 | { |
18877 | arg2 = &temp2; | |
18878 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18879 | } | |
18880 | { | |
18881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18882 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18883 | ||
18884 | wxPyEndAllowThreads(__tstate); | |
18885 | if (PyErr_Occurred()) SWIG_fail; | |
18886 | } | |
18887 | Py_INCREF(Py_None); resultobj = Py_None; | |
18888 | return resultobj; | |
18889 | fail: | |
18890 | return NULL; | |
18891 | } | |
18892 | ||
18893 | ||
18894 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18895 | PyObject *obj; | |
18896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18897 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18898 | Py_INCREF(obj); | |
18899 | return Py_BuildValue((char *)""); | |
18900 | } | |
18901 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxIdleEvent *result; | |
18904 | char *kwnames[] = { | |
18905 | NULL | |
18906 | }; | |
18907 | ||
18908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18909 | { | |
18910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18911 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18912 | ||
18913 | wxPyEndAllowThreads(__tstate); | |
18914 | if (PyErr_Occurred()) SWIG_fail; | |
18915 | } | |
15afbcd0 | 18916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
18917 | return resultobj; |
18918 | fail: | |
18919 | return NULL; | |
18920 | } | |
18921 | ||
18922 | ||
18923 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18924 | PyObject *resultobj; | |
18925 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 18926 | bool arg2 = (bool) True ; |
d14a1e28 RD |
18927 | PyObject * obj0 = 0 ; |
18928 | PyObject * obj1 = 0 ; | |
18929 | char *kwnames[] = { | |
18930 | (char *) "self",(char *) "needMore", NULL | |
18931 | }; | |
18932 | ||
18933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 18936 | if (obj1) { |
15afbcd0 RD |
18937 | arg2 = (bool) SWIG_AsBool(obj1); |
18938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18939 | } |
18940 | { | |
18941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18942 | (arg1)->RequestMore(arg2); | |
18943 | ||
18944 | wxPyEndAllowThreads(__tstate); | |
18945 | if (PyErr_Occurred()) SWIG_fail; | |
18946 | } | |
18947 | Py_INCREF(Py_None); resultobj = Py_None; | |
18948 | return resultobj; | |
18949 | fail: | |
18950 | return NULL; | |
18951 | } | |
18952 | ||
18953 | ||
18954 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18955 | PyObject *resultobj; | |
18956 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18957 | bool result; | |
18958 | PyObject * obj0 = 0 ; | |
18959 | char *kwnames[] = { | |
18960 | (char *) "self", NULL | |
18961 | }; | |
18962 | ||
18963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
18965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18966 | { |
18967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18968 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
4f89f6a3 RD |
18973 | { |
18974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18975 | } | |
d14a1e28 RD |
18976 | return resultobj; |
18977 | fail: | |
18978 | return NULL; | |
18979 | } | |
18980 | ||
18981 | ||
18982 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18983 | PyObject *resultobj; | |
18984 | int arg1 ; | |
994141e6 | 18985 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18986 | char *kwnames[] = { |
18987 | (char *) "mode", NULL | |
18988 | }; | |
18989 | ||
994141e6 | 18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18991 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
18992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18993 | { |
18994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18995 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
18996 | ||
18997 | wxPyEndAllowThreads(__tstate); | |
18998 | if (PyErr_Occurred()) SWIG_fail; | |
18999 | } | |
19000 | Py_INCREF(Py_None); resultobj = Py_None; | |
19001 | return resultobj; | |
19002 | fail: | |
19003 | return NULL; | |
19004 | } | |
19005 | ||
19006 | ||
19007 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19008 | PyObject *resultobj; | |
19009 | int result; | |
19010 | char *kwnames[] = { | |
19011 | NULL | |
19012 | }; | |
19013 | ||
19014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19015 | { | |
19016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19017 | result = (int)wxIdleEvent::GetMode(); | |
19018 | ||
19019 | wxPyEndAllowThreads(__tstate); | |
19020 | if (PyErr_Occurred()) SWIG_fail; | |
19021 | } | |
15afbcd0 | 19022 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19023 | return resultobj; |
19024 | fail: | |
19025 | return NULL; | |
19026 | } | |
19027 | ||
19028 | ||
19029 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19030 | PyObject *resultobj; | |
19031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19032 | bool result; | |
19033 | PyObject * obj0 = 0 ; | |
19034 | char *kwnames[] = { | |
19035 | (char *) "win", NULL | |
19036 | }; | |
19037 | ||
19038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19041 | { |
19042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19043 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19044 | ||
19045 | wxPyEndAllowThreads(__tstate); | |
19046 | if (PyErr_Occurred()) SWIG_fail; | |
19047 | } | |
4f89f6a3 RD |
19048 | { |
19049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19050 | } | |
d14a1e28 RD |
19051 | return resultobj; |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
19057 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19058 | PyObject *obj; | |
19059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19060 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19061 | Py_INCREF(obj); | |
19062 | return Py_BuildValue((char *)""); | |
19063 | } | |
19064 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19065 | PyObject *resultobj; | |
19066 | int arg1 = (int) 0 ; | |
19067 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19068 | wxPyEvent *result; | |
994141e6 RD |
19069 | PyObject * obj0 = 0 ; |
19070 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19071 | char *kwnames[] = { |
19072 | (char *) "winid",(char *) "commandType", NULL | |
19073 | }; | |
19074 | ||
994141e6 RD |
19075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19076 | if (obj0) { | |
15afbcd0 RD |
19077 | arg1 = (int) SWIG_AsInt(obj0); |
19078 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19079 | } |
19080 | if (obj1) { | |
15afbcd0 RD |
19081 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19083 | } |
d14a1e28 RD |
19084 | { |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
15afbcd0 | 19091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19092 | return resultobj; |
19093 | fail: | |
19094 | return NULL; | |
19095 | } | |
19096 | ||
19097 | ||
19098 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19099 | PyObject *resultobj; | |
19100 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19101 | PyObject * obj0 = 0 ; | |
19102 | char *kwnames[] = { | |
19103 | (char *) "self", NULL | |
19104 | }; | |
19105 | ||
19106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19109 | { |
19110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19111 | delete arg1; | |
19112 | ||
19113 | wxPyEndAllowThreads(__tstate); | |
19114 | if (PyErr_Occurred()) SWIG_fail; | |
19115 | } | |
19116 | Py_INCREF(Py_None); resultobj = Py_None; | |
19117 | return resultobj; | |
19118 | fail: | |
19119 | return NULL; | |
19120 | } | |
19121 | ||
19122 | ||
19123 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19124 | PyObject *resultobj; | |
19125 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19126 | PyObject *arg2 = (PyObject *) 0 ; | |
19127 | PyObject * obj0 = 0 ; | |
19128 | PyObject * obj1 = 0 ; | |
19129 | char *kwnames[] = { | |
19130 | (char *) "self",(char *) "self", NULL | |
19131 | }; | |
19132 | ||
19133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19136 | arg2 = obj1; |
19137 | { | |
19138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19139 | (arg1)->SetSelf(arg2); | |
19140 | ||
19141 | wxPyEndAllowThreads(__tstate); | |
19142 | if (PyErr_Occurred()) SWIG_fail; | |
19143 | } | |
19144 | Py_INCREF(Py_None); resultobj = Py_None; | |
19145 | return resultobj; | |
19146 | fail: | |
19147 | return NULL; | |
19148 | } | |
19149 | ||
19150 | ||
19151 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19152 | PyObject *resultobj; | |
19153 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19154 | PyObject *result; | |
19155 | PyObject * obj0 = 0 ; | |
19156 | char *kwnames[] = { | |
19157 | (char *) "self", NULL | |
19158 | }; | |
19159 | ||
19160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19163 | { |
19164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19165 | result = (PyObject *)(arg1)->GetSelf(); | |
19166 | ||
19167 | wxPyEndAllowThreads(__tstate); | |
19168 | if (PyErr_Occurred()) SWIG_fail; | |
19169 | } | |
19170 | resultobj = result; | |
19171 | return resultobj; | |
19172 | fail: | |
19173 | return NULL; | |
19174 | } | |
19175 | ||
19176 | ||
19177 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19178 | PyObject *obj; | |
19179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19180 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19181 | Py_INCREF(obj); | |
19182 | return Py_BuildValue((char *)""); | |
19183 | } | |
19184 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19185 | PyObject *resultobj; | |
19186 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19187 | int arg2 = (int) 0 ; | |
19188 | wxPyCommandEvent *result; | |
994141e6 RD |
19189 | PyObject * obj0 = 0 ; |
19190 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19191 | char *kwnames[] = { |
19192 | (char *) "commandType",(char *) "id", NULL | |
19193 | }; | |
19194 | ||
994141e6 RD |
19195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19196 | if (obj0) { | |
15afbcd0 RD |
19197 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19199 | } |
19200 | if (obj1) { | |
15afbcd0 RD |
19201 | arg2 = (int) SWIG_AsInt(obj1); |
19202 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19203 | } |
d14a1e28 RD |
19204 | { |
19205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19206 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19207 | ||
19208 | wxPyEndAllowThreads(__tstate); | |
19209 | if (PyErr_Occurred()) SWIG_fail; | |
19210 | } | |
15afbcd0 | 19211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19212 | return resultobj; |
19213 | fail: | |
19214 | return NULL; | |
19215 | } | |
19216 | ||
19217 | ||
19218 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19219 | PyObject *resultobj; | |
19220 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19221 | PyObject * obj0 = 0 ; | |
19222 | char *kwnames[] = { | |
19223 | (char *) "self", NULL | |
19224 | }; | |
19225 | ||
19226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19229 | { |
19230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19231 | delete arg1; | |
19232 | ||
19233 | wxPyEndAllowThreads(__tstate); | |
19234 | if (PyErr_Occurred()) SWIG_fail; | |
19235 | } | |
19236 | Py_INCREF(Py_None); resultobj = Py_None; | |
19237 | return resultobj; | |
19238 | fail: | |
19239 | return NULL; | |
19240 | } | |
19241 | ||
19242 | ||
19243 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19244 | PyObject *resultobj; | |
19245 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19246 | PyObject *arg2 = (PyObject *) 0 ; | |
19247 | PyObject * obj0 = 0 ; | |
19248 | PyObject * obj1 = 0 ; | |
19249 | char *kwnames[] = { | |
19250 | (char *) "self",(char *) "self", NULL | |
19251 | }; | |
19252 | ||
19253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19256 | arg2 = obj1; |
19257 | { | |
19258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19259 | (arg1)->SetSelf(arg2); | |
19260 | ||
19261 | wxPyEndAllowThreads(__tstate); | |
19262 | if (PyErr_Occurred()) SWIG_fail; | |
19263 | } | |
19264 | Py_INCREF(Py_None); resultobj = Py_None; | |
19265 | return resultobj; | |
19266 | fail: | |
19267 | return NULL; | |
19268 | } | |
19269 | ||
19270 | ||
19271 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19272 | PyObject *resultobj; | |
19273 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19274 | PyObject *result; | |
19275 | PyObject * obj0 = 0 ; | |
19276 | char *kwnames[] = { | |
19277 | (char *) "self", NULL | |
19278 | }; | |
19279 | ||
19280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19283 | { |
19284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19285 | result = (PyObject *)(arg1)->GetSelf(); | |
19286 | ||
19287 | wxPyEndAllowThreads(__tstate); | |
19288 | if (PyErr_Occurred()) SWIG_fail; | |
19289 | } | |
19290 | resultobj = result; | |
19291 | return resultobj; | |
19292 | fail: | |
19293 | return NULL; | |
19294 | } | |
19295 | ||
19296 | ||
19297 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19298 | PyObject *obj; | |
19299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19300 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19301 | Py_INCREF(obj); | |
19302 | return Py_BuildValue((char *)""); | |
19303 | } | |
19304 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19305 | PyObject *resultobj; | |
19306 | wxPyApp *result; | |
19307 | char *kwnames[] = { | |
19308 | NULL | |
19309 | }; | |
19310 | ||
19311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19312 | { | |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | result = (wxPyApp *)new_wxPyApp(); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | { | |
19320 | resultobj = wxPyMake_wxObject(result); | |
19321 | } | |
19322 | return resultobj; | |
19323 | fail: | |
19324 | return NULL; | |
19325 | } | |
19326 | ||
19327 | ||
19328 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19329 | PyObject *resultobj; | |
19330 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19331 | PyObject * obj0 = 0 ; | |
19332 | char *kwnames[] = { | |
19333 | (char *) "self", NULL | |
19334 | }; | |
19335 | ||
19336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19339 | { |
19340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19341 | delete arg1; | |
19342 | ||
19343 | wxPyEndAllowThreads(__tstate); | |
19344 | if (PyErr_Occurred()) SWIG_fail; | |
19345 | } | |
19346 | Py_INCREF(Py_None); resultobj = Py_None; | |
19347 | return resultobj; | |
19348 | fail: | |
19349 | return NULL; | |
19350 | } | |
19351 | ||
19352 | ||
19353 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19354 | PyObject *resultobj; | |
19355 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19356 | PyObject *arg2 = (PyObject *) 0 ; | |
19357 | PyObject *arg3 = (PyObject *) 0 ; | |
19358 | PyObject * obj0 = 0 ; | |
19359 | PyObject * obj1 = 0 ; | |
19360 | PyObject * obj2 = 0 ; | |
19361 | char *kwnames[] = { | |
19362 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19363 | }; | |
19364 | ||
19365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19368 | arg2 = obj1; |
19369 | arg3 = obj2; | |
19370 | { | |
19371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19372 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19373 | ||
19374 | wxPyEndAllowThreads(__tstate); | |
19375 | if (PyErr_Occurred()) SWIG_fail; | |
19376 | } | |
19377 | Py_INCREF(Py_None); resultobj = Py_None; | |
19378 | return resultobj; | |
19379 | fail: | |
19380 | return NULL; | |
19381 | } | |
19382 | ||
19383 | ||
19384 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19385 | PyObject *resultobj; | |
19386 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19387 | wxString result; | |
19388 | PyObject * obj0 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19396 | { |
19397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19398 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19399 | ||
19400 | wxPyEndAllowThreads(__tstate); | |
19401 | if (PyErr_Occurred()) SWIG_fail; | |
19402 | } | |
19403 | { | |
19404 | #if wxUSE_UNICODE | |
19405 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19406 | #else | |
19407 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19408 | #endif | |
19409 | } | |
19410 | return resultobj; | |
19411 | fail: | |
19412 | return NULL; | |
19413 | } | |
19414 | ||
19415 | ||
19416 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19417 | PyObject *resultobj; | |
19418 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19419 | wxString *arg2 = 0 ; | |
e811c8ce | 19420 | bool temp2 = False ; |
d14a1e28 RD |
19421 | PyObject * obj0 = 0 ; |
19422 | PyObject * obj1 = 0 ; | |
19423 | char *kwnames[] = { | |
19424 | (char *) "self",(char *) "name", NULL | |
19425 | }; | |
19426 | ||
19427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) 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 | arg2 = wxString_in_helper(obj1); | |
19432 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19433 | temp2 = True; |
d14a1e28 RD |
19434 | } |
19435 | { | |
19436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19437 | (arg1)->SetAppName((wxString const &)*arg2); | |
19438 | ||
19439 | wxPyEndAllowThreads(__tstate); | |
19440 | if (PyErr_Occurred()) SWIG_fail; | |
19441 | } | |
19442 | Py_INCREF(Py_None); resultobj = Py_None; | |
19443 | { | |
19444 | if (temp2) | |
19445 | delete arg2; | |
19446 | } | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | { | |
19450 | if (temp2) | |
19451 | delete arg2; | |
19452 | } | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
19457 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19458 | PyObject *resultobj; | |
19459 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19460 | wxString result; | |
19461 | PyObject * obj0 = 0 ; | |
19462 | char *kwnames[] = { | |
19463 | (char *) "self", NULL | |
19464 | }; | |
19465 | ||
19466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19469 | { |
19470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19471 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19472 | ||
19473 | wxPyEndAllowThreads(__tstate); | |
19474 | if (PyErr_Occurred()) SWIG_fail; | |
19475 | } | |
19476 | { | |
19477 | #if wxUSE_UNICODE | |
19478 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19479 | #else | |
19480 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19481 | #endif | |
19482 | } | |
19483 | return resultobj; | |
19484 | fail: | |
19485 | return NULL; | |
19486 | } | |
19487 | ||
19488 | ||
19489 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19490 | PyObject *resultobj; | |
19491 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19492 | wxString *arg2 = 0 ; | |
e811c8ce | 19493 | bool temp2 = False ; |
d14a1e28 RD |
19494 | PyObject * obj0 = 0 ; |
19495 | PyObject * obj1 = 0 ; | |
19496 | char *kwnames[] = { | |
19497 | (char *) "self",(char *) "name", NULL | |
19498 | }; | |
19499 | ||
19500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19503 | { |
19504 | arg2 = wxString_in_helper(obj1); | |
19505 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19506 | temp2 = True; |
d14a1e28 RD |
19507 | } |
19508 | { | |
19509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19510 | (arg1)->SetClassName((wxString const &)*arg2); | |
19511 | ||
19512 | wxPyEndAllowThreads(__tstate); | |
19513 | if (PyErr_Occurred()) SWIG_fail; | |
19514 | } | |
19515 | Py_INCREF(Py_None); resultobj = Py_None; | |
19516 | { | |
19517 | if (temp2) | |
19518 | delete arg2; | |
19519 | } | |
19520 | return resultobj; | |
19521 | fail: | |
19522 | { | |
19523 | if (temp2) | |
19524 | delete arg2; | |
19525 | } | |
19526 | return NULL; | |
19527 | } | |
19528 | ||
19529 | ||
19530 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19531 | PyObject *resultobj; | |
19532 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19533 | wxString *result; | |
19534 | PyObject * obj0 = 0 ; | |
19535 | char *kwnames[] = { | |
19536 | (char *) "self", NULL | |
19537 | }; | |
19538 | ||
19539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19542 | { |
19543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19544 | { | |
19545 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19546 | result = (wxString *) &_result_ref; | |
19547 | } | |
19548 | ||
19549 | wxPyEndAllowThreads(__tstate); | |
19550 | if (PyErr_Occurred()) SWIG_fail; | |
19551 | } | |
cc6dd355 RD |
19552 | { |
19553 | #if wxUSE_UNICODE | |
19554 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19555 | #else | |
19556 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19557 | #endif | |
19558 | } | |
d14a1e28 RD |
19559 | return resultobj; |
19560 | fail: | |
19561 | return NULL; | |
19562 | } | |
19563 | ||
19564 | ||
19565 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19566 | PyObject *resultobj; | |
19567 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19568 | wxString *arg2 = 0 ; | |
e811c8ce | 19569 | bool temp2 = False ; |
d14a1e28 RD |
19570 | PyObject * obj0 = 0 ; |
19571 | PyObject * obj1 = 0 ; | |
19572 | char *kwnames[] = { | |
19573 | (char *) "self",(char *) "name", NULL | |
19574 | }; | |
19575 | ||
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19579 | { |
19580 | arg2 = wxString_in_helper(obj1); | |
19581 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19582 | temp2 = True; |
d14a1e28 RD |
19583 | } |
19584 | { | |
19585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19586 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19587 | ||
19588 | wxPyEndAllowThreads(__tstate); | |
19589 | if (PyErr_Occurred()) SWIG_fail; | |
19590 | } | |
19591 | Py_INCREF(Py_None); resultobj = Py_None; | |
19592 | { | |
19593 | if (temp2) | |
19594 | delete arg2; | |
19595 | } | |
19596 | return resultobj; | |
19597 | fail: | |
19598 | { | |
19599 | if (temp2) | |
19600 | delete arg2; | |
19601 | } | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj; | |
19608 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19609 | wxAppTraits *result; | |
19610 | PyObject * obj0 = 0 ; | |
19611 | char *kwnames[] = { | |
19612 | (char *) "self", NULL | |
19613 | }; | |
19614 | ||
19615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19618 | { |
19619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19620 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19621 | ||
19622 | wxPyEndAllowThreads(__tstate); | |
19623 | if (PyErr_Occurred()) SWIG_fail; | |
19624 | } | |
15afbcd0 | 19625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19626 | return resultobj; |
19627 | fail: | |
19628 | return NULL; | |
19629 | } | |
19630 | ||
19631 | ||
19632 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19633 | PyObject *resultobj; | |
19634 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19635 | PyObject * obj0 = 0 ; | |
19636 | char *kwnames[] = { | |
19637 | (char *) "self", NULL | |
19638 | }; | |
19639 | ||
19640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19643 | { |
19644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19645 | (arg1)->ProcessPendingEvents(); | |
19646 | ||
19647 | wxPyEndAllowThreads(__tstate); | |
19648 | if (PyErr_Occurred()) SWIG_fail; | |
19649 | } | |
19650 | Py_INCREF(Py_None); resultobj = Py_None; | |
19651 | return resultobj; | |
19652 | fail: | |
19653 | return NULL; | |
19654 | } | |
19655 | ||
19656 | ||
19657 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19658 | PyObject *resultobj; | |
19659 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 19660 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19661 | bool result; |
19662 | PyObject * obj0 = 0 ; | |
19663 | PyObject * obj1 = 0 ; | |
19664 | char *kwnames[] = { | |
19665 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19666 | }; | |
19667 | ||
19668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19671 | if (obj1) { |
15afbcd0 RD |
19672 | arg2 = (bool) SWIG_AsBool(obj1); |
19673 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19674 | } |
19675 | { | |
19676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19677 | result = (bool)(arg1)->Yield(arg2); | |
19678 | ||
19679 | wxPyEndAllowThreads(__tstate); | |
19680 | if (PyErr_Occurred()) SWIG_fail; | |
19681 | } | |
4f89f6a3 RD |
19682 | { |
19683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19684 | } | |
d14a1e28 RD |
19685 | return resultobj; |
19686 | fail: | |
19687 | return NULL; | |
19688 | } | |
19689 | ||
19690 | ||
19691 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19692 | PyObject *resultobj; | |
19693 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19694 | PyObject * obj0 = 0 ; | |
19695 | char *kwnames[] = { | |
19696 | (char *) "self", NULL | |
19697 | }; | |
19698 | ||
19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19702 | { |
19703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19704 | (arg1)->WakeUpIdle(); | |
19705 | ||
19706 | wxPyEndAllowThreads(__tstate); | |
19707 | if (PyErr_Occurred()) SWIG_fail; | |
19708 | } | |
19709 | Py_INCREF(Py_None); resultobj = Py_None; | |
19710 | return resultobj; | |
19711 | fail: | |
19712 | return NULL; | |
19713 | } | |
19714 | ||
19715 | ||
19716 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19717 | PyObject *resultobj; | |
19718 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19719 | int result; | |
19720 | PyObject * obj0 = 0 ; | |
19721 | char *kwnames[] = { | |
19722 | (char *) "self", NULL | |
19723 | }; | |
19724 | ||
19725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19728 | { |
19729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19730 | result = (int)(arg1)->MainLoop(); | |
19731 | ||
19732 | wxPyEndAllowThreads(__tstate); | |
19733 | if (PyErr_Occurred()) SWIG_fail; | |
19734 | } | |
15afbcd0 | 19735 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19736 | return resultobj; |
19737 | fail: | |
19738 | return NULL; | |
19739 | } | |
19740 | ||
19741 | ||
19742 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19743 | PyObject *resultobj; | |
19744 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19745 | PyObject * obj0 = 0 ; | |
19746 | char *kwnames[] = { | |
19747 | (char *) "self", NULL | |
19748 | }; | |
19749 | ||
19750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19753 | { |
19754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19755 | (arg1)->Exit(); | |
19756 | ||
19757 | wxPyEndAllowThreads(__tstate); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | } | |
19760 | Py_INCREF(Py_None); resultobj = Py_None; | |
19761 | return resultobj; | |
19762 | fail: | |
19763 | return NULL; | |
19764 | } | |
19765 | ||
19766 | ||
19767 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19768 | PyObject *resultobj; | |
19769 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | char *kwnames[] = { | |
19772 | (char *) "self", NULL | |
19773 | }; | |
19774 | ||
19775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19778 | { |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | (arg1)->ExitMainLoop(); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
19785 | Py_INCREF(Py_None); resultobj = Py_None; | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj; | |
19794 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19795 | bool result; | |
19796 | PyObject * obj0 = 0 ; | |
19797 | char *kwnames[] = { | |
19798 | (char *) "self", NULL | |
19799 | }; | |
19800 | ||
19801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19804 | { |
19805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19806 | result = (bool)(arg1)->Pending(); | |
19807 | ||
19808 | wxPyEndAllowThreads(__tstate); | |
19809 | if (PyErr_Occurred()) SWIG_fail; | |
19810 | } | |
4f89f6a3 RD |
19811 | { |
19812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19813 | } | |
d14a1e28 RD |
19814 | return resultobj; |
19815 | fail: | |
19816 | return NULL; | |
19817 | } | |
19818 | ||
19819 | ||
19820 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19821 | PyObject *resultobj; | |
19822 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19823 | bool result; | |
19824 | PyObject * obj0 = 0 ; | |
19825 | char *kwnames[] = { | |
19826 | (char *) "self", NULL | |
19827 | }; | |
19828 | ||
19829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19832 | { |
19833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19834 | result = (bool)(arg1)->Dispatch(); | |
19835 | ||
19836 | wxPyEndAllowThreads(__tstate); | |
19837 | if (PyErr_Occurred()) SWIG_fail; | |
19838 | } | |
4f89f6a3 RD |
19839 | { |
19840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19841 | } | |
d14a1e28 RD |
19842 | return resultobj; |
19843 | fail: | |
19844 | return NULL; | |
19845 | } | |
19846 | ||
19847 | ||
19848 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19849 | PyObject *resultobj; | |
19850 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19851 | bool result; | |
19852 | PyObject * obj0 = 0 ; | |
19853 | char *kwnames[] = { | |
19854 | (char *) "self", NULL | |
19855 | }; | |
19856 | ||
19857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19860 | { |
19861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19862 | result = (bool)(arg1)->ProcessIdle(); | |
19863 | ||
19864 | wxPyEndAllowThreads(__tstate); | |
19865 | if (PyErr_Occurred()) SWIG_fail; | |
19866 | } | |
4f89f6a3 RD |
19867 | { |
19868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19869 | } | |
d14a1e28 RD |
19870 | return resultobj; |
19871 | fail: | |
19872 | return NULL; | |
19873 | } | |
19874 | ||
19875 | ||
19876 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19877 | PyObject *resultobj; | |
19878 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19879 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19880 | wxIdleEvent *arg3 = 0 ; | |
19881 | bool result; | |
19882 | PyObject * obj0 = 0 ; | |
19883 | PyObject * obj1 = 0 ; | |
19884 | PyObject * obj2 = 0 ; | |
19885 | char *kwnames[] = { | |
19886 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19887 | }; | |
19888 | ||
19889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19894 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19896 | SWIG_fail; | |
d14a1e28 | 19897 | if (arg3 == NULL) { |
15afbcd0 RD |
19898 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19899 | SWIG_fail; | |
d14a1e28 RD |
19900 | } |
19901 | { | |
19902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19903 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19904 | ||
19905 | wxPyEndAllowThreads(__tstate); | |
19906 | if (PyErr_Occurred()) SWIG_fail; | |
19907 | } | |
4f89f6a3 RD |
19908 | { |
19909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19910 | } | |
d14a1e28 RD |
19911 | return resultobj; |
19912 | fail: | |
19913 | return NULL; | |
19914 | } | |
19915 | ||
19916 | ||
d14a1e28 RD |
19917 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
19918 | PyObject *resultobj; | |
19919 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19920 | bool result; | |
19921 | PyObject * obj0 = 0 ; | |
19922 | char *kwnames[] = { | |
19923 | (char *) "self", NULL | |
19924 | }; | |
19925 | ||
19926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19929 | { |
19930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19931 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19932 | ||
19933 | wxPyEndAllowThreads(__tstate); | |
19934 | if (PyErr_Occurred()) SWIG_fail; | |
19935 | } | |
4f89f6a3 RD |
19936 | { |
19937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19938 | } | |
d14a1e28 RD |
19939 | return resultobj; |
19940 | fail: | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
19945 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19946 | PyObject *resultobj; | |
19947 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19948 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19949 | PyObject * obj0 = 0 ; | |
19950 | PyObject * obj1 = 0 ; | |
19951 | char *kwnames[] = { | |
19952 | (char *) "self",(char *) "win", NULL | |
19953 | }; | |
19954 | ||
19955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19960 | { |
19961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19962 | (arg1)->SetTopWindow(arg2); | |
19963 | ||
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | Py_INCREF(Py_None); resultobj = Py_None; | |
19968 | return resultobj; | |
19969 | fail: | |
19970 | return NULL; | |
19971 | } | |
19972 | ||
19973 | ||
19974 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19975 | PyObject *resultobj; | |
19976 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19977 | wxWindow *result; | |
19978 | PyObject * obj0 = 0 ; | |
19979 | char *kwnames[] = { | |
19980 | (char *) "self", NULL | |
19981 | }; | |
19982 | ||
19983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19986 | { |
19987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19988 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
19989 | ||
19990 | wxPyEndAllowThreads(__tstate); | |
19991 | if (PyErr_Occurred()) SWIG_fail; | |
19992 | } | |
19993 | { | |
19994 | resultobj = wxPyMake_wxObject(result); | |
19995 | } | |
19996 | return resultobj; | |
19997 | fail: | |
19998 | return NULL; | |
19999 | } | |
20000 | ||
20001 | ||
20002 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20003 | PyObject *resultobj; | |
20004 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20005 | bool arg2 ; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | PyObject * obj1 = 0 ; | |
20008 | char *kwnames[] = { | |
20009 | (char *) "self",(char *) "flag", NULL | |
20010 | }; | |
20011 | ||
20012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20015 | arg2 = (bool) SWIG_AsBool(obj1); | |
20016 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20017 | { |
20018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20019 | (arg1)->SetExitOnFrameDelete(arg2); | |
20020 | ||
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
20024 | Py_INCREF(Py_None); resultobj = Py_None; | |
20025 | return resultobj; | |
20026 | fail: | |
20027 | return NULL; | |
20028 | } | |
20029 | ||
20030 | ||
20031 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20032 | PyObject *resultobj; | |
20033 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20034 | bool result; | |
20035 | PyObject * obj0 = 0 ; | |
20036 | char *kwnames[] = { | |
20037 | (char *) "self", NULL | |
20038 | }; | |
20039 | ||
20040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20043 | { |
20044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20045 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20046 | ||
20047 | wxPyEndAllowThreads(__tstate); | |
20048 | if (PyErr_Occurred()) SWIG_fail; | |
20049 | } | |
4f89f6a3 RD |
20050 | { |
20051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20052 | } | |
d14a1e28 RD |
20053 | return resultobj; |
20054 | fail: | |
20055 | return NULL; | |
20056 | } | |
20057 | ||
20058 | ||
20059 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20060 | PyObject *resultobj; | |
20061 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20062 | bool arg2 ; | |
20063 | PyObject * obj0 = 0 ; | |
20064 | PyObject * obj1 = 0 ; | |
20065 | char *kwnames[] = { | |
20066 | (char *) "self",(char *) "flag", NULL | |
20067 | }; | |
20068 | ||
20069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20072 | arg2 = (bool) SWIG_AsBool(obj1); | |
20073 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20074 | { |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | (arg1)->SetUseBestVisual(arg2); | |
20077 | ||
20078 | wxPyEndAllowThreads(__tstate); | |
20079 | if (PyErr_Occurred()) SWIG_fail; | |
20080 | } | |
20081 | Py_INCREF(Py_None); resultobj = Py_None; | |
20082 | return resultobj; | |
20083 | fail: | |
20084 | return NULL; | |
20085 | } | |
20086 | ||
20087 | ||
20088 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20089 | PyObject *resultobj; | |
20090 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20091 | bool result; | |
20092 | PyObject * obj0 = 0 ; | |
20093 | char *kwnames[] = { | |
20094 | (char *) "self", NULL | |
20095 | }; | |
20096 | ||
20097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20100 | { |
20101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20102 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20103 | ||
20104 | wxPyEndAllowThreads(__tstate); | |
20105 | if (PyErr_Occurred()) SWIG_fail; | |
20106 | } | |
4f89f6a3 RD |
20107 | { |
20108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20109 | } | |
d14a1e28 RD |
20110 | return resultobj; |
20111 | fail: | |
20112 | return NULL; | |
20113 | } | |
20114 | ||
20115 | ||
20116 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20119 | int arg2 ; | |
20120 | PyObject * obj0 = 0 ; | |
994141e6 | 20121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20122 | char *kwnames[] = { |
20123 | (char *) "self",(char *) "mode", NULL | |
20124 | }; | |
20125 | ||
994141e6 | 20126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20129 | arg2 = (int) SWIG_AsInt(obj1); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20131 | { |
20132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20133 | (arg1)->SetPrintMode(arg2); | |
20134 | ||
20135 | wxPyEndAllowThreads(__tstate); | |
20136 | if (PyErr_Occurred()) SWIG_fail; | |
20137 | } | |
20138 | Py_INCREF(Py_None); resultobj = Py_None; | |
20139 | return resultobj; | |
20140 | fail: | |
20141 | return NULL; | |
20142 | } | |
20143 | ||
20144 | ||
20145 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20146 | PyObject *resultobj; | |
20147 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20148 | int result; | |
20149 | PyObject * obj0 = 0 ; | |
20150 | char *kwnames[] = { | |
20151 | (char *) "self", NULL | |
20152 | }; | |
20153 | ||
20154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20157 | { |
20158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20159 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20160 | ||
20161 | wxPyEndAllowThreads(__tstate); | |
20162 | if (PyErr_Occurred()) SWIG_fail; | |
20163 | } | |
15afbcd0 | 20164 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20165 | return resultobj; |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
6c3b4aae | 20171 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20172 | PyObject *resultobj; |
20173 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20174 | int arg2 ; |
d14a1e28 | 20175 | PyObject * obj0 = 0 ; |
994141e6 | 20176 | PyObject * obj1 = 0 ; |
d14a1e28 | 20177 | char *kwnames[] = { |
6c3b4aae | 20178 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20179 | }; |
20180 | ||
994141e6 | 20181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20184 | arg2 = (int) SWIG_AsInt(obj1); | |
20185 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20186 | { |
20187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20188 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20189 | |
20190 | wxPyEndAllowThreads(__tstate); | |
20191 | if (PyErr_Occurred()) SWIG_fail; | |
20192 | } | |
6c3b4aae | 20193 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20194 | return resultobj; |
20195 | fail: | |
20196 | return NULL; | |
20197 | } | |
20198 | ||
20199 | ||
6c3b4aae | 20200 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20201 | PyObject *resultobj; |
20202 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20203 | int result; |
d14a1e28 RD |
20204 | PyObject * obj0 = 0 ; |
20205 | char *kwnames[] = { | |
6c3b4aae | 20206 | (char *) "self", NULL |
d14a1e28 RD |
20207 | }; |
20208 | ||
6c3b4aae | 20209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20212 | { |
20213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20214 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20215 | |
20216 | wxPyEndAllowThreads(__tstate); | |
20217 | if (PyErr_Occurred()) SWIG_fail; | |
20218 | } | |
15afbcd0 | 20219 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20220 | return resultobj; |
20221 | fail: | |
20222 | return NULL; | |
20223 | } | |
20224 | ||
20225 | ||
20226 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20227 | PyObject *resultobj; | |
20228 | bool result; | |
20229 | char *kwnames[] = { | |
20230 | NULL | |
20231 | }; | |
20232 | ||
20233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20234 | { | |
20235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20236 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20237 | ||
20238 | wxPyEndAllowThreads(__tstate); | |
20239 | if (PyErr_Occurred()) SWIG_fail; | |
20240 | } | |
4f89f6a3 RD |
20241 | { |
20242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20243 | } | |
d14a1e28 RD |
20244 | return resultobj; |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | long result; | |
20253 | char *kwnames[] = { | |
20254 | NULL | |
20255 | }; | |
20256 | ||
20257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20261 | ||
20262 | wxPyEndAllowThreads(__tstate); | |
20263 | if (PyErr_Occurred()) SWIG_fail; | |
20264 | } | |
15afbcd0 | 20265 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20266 | return resultobj; |
20267 | fail: | |
20268 | return NULL; | |
20269 | } | |
20270 | ||
20271 | ||
20272 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20273 | PyObject *resultobj; | |
20274 | long result; | |
20275 | char *kwnames[] = { | |
20276 | NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20280 | { | |
20281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20282 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20283 | ||
20284 | wxPyEndAllowThreads(__tstate); | |
20285 | if (PyErr_Occurred()) SWIG_fail; | |
20286 | } | |
15afbcd0 | 20287 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20288 | return resultobj; |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
20294 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20295 | PyObject *resultobj; | |
20296 | long result; | |
20297 | char *kwnames[] = { | |
20298 | NULL | |
20299 | }; | |
20300 | ||
20301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20302 | { | |
20303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20304 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20305 | ||
20306 | wxPyEndAllowThreads(__tstate); | |
20307 | if (PyErr_Occurred()) SWIG_fail; | |
20308 | } | |
15afbcd0 | 20309 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20310 | return resultobj; |
20311 | fail: | |
20312 | return NULL; | |
20313 | } | |
20314 | ||
20315 | ||
20316 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20317 | PyObject *resultobj; | |
20318 | wxString result; | |
20319 | char *kwnames[] = { | |
20320 | NULL | |
20321 | }; | |
20322 | ||
20323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20324 | { | |
20325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20326 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20327 | ||
20328 | wxPyEndAllowThreads(__tstate); | |
20329 | if (PyErr_Occurred()) SWIG_fail; | |
20330 | } | |
20331 | { | |
20332 | #if wxUSE_UNICODE | |
20333 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20334 | #else | |
20335 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20336 | #endif | |
20337 | } | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
20344 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20345 | PyObject *resultobj; | |
20346 | bool arg1 ; | |
20347 | PyObject * obj0 = 0 ; | |
20348 | char *kwnames[] = { | |
20349 | (char *) "val", NULL | |
20350 | }; | |
20351 | ||
20352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20353 | arg1 = (bool) SWIG_AsBool(obj0); |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20355 | { |
20356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20357 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20358 | ||
20359 | wxPyEndAllowThreads(__tstate); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
20361 | } | |
20362 | Py_INCREF(Py_None); resultobj = Py_None; | |
20363 | return resultobj; | |
20364 | fail: | |
20365 | return NULL; | |
20366 | } | |
20367 | ||
20368 | ||
20369 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20370 | PyObject *resultobj; | |
20371 | long arg1 ; | |
994141e6 | 20372 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20373 | char *kwnames[] = { |
20374 | (char *) "val", NULL | |
20375 | }; | |
20376 | ||
994141e6 | 20377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20378 | arg1 = (long) SWIG_AsLong(obj0); |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20380 | { |
20381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20382 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20383 | ||
20384 | wxPyEndAllowThreads(__tstate); | |
20385 | if (PyErr_Occurred()) SWIG_fail; | |
20386 | } | |
20387 | Py_INCREF(Py_None); resultobj = Py_None; | |
20388 | return resultobj; | |
20389 | fail: | |
20390 | return NULL; | |
20391 | } | |
20392 | ||
20393 | ||
20394 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20395 | PyObject *resultobj; | |
20396 | long arg1 ; | |
994141e6 | 20397 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20398 | char *kwnames[] = { |
20399 | (char *) "val", NULL | |
20400 | }; | |
20401 | ||
994141e6 | 20402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20403 | arg1 = (long) SWIG_AsLong(obj0); |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20405 | { |
20406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20407 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20408 | ||
20409 | wxPyEndAllowThreads(__tstate); | |
20410 | if (PyErr_Occurred()) SWIG_fail; | |
20411 | } | |
20412 | Py_INCREF(Py_None); resultobj = Py_None; | |
20413 | return resultobj; | |
20414 | fail: | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20420 | PyObject *resultobj; | |
20421 | long arg1 ; | |
994141e6 | 20422 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20423 | char *kwnames[] = { |
20424 | (char *) "val", NULL | |
20425 | }; | |
20426 | ||
994141e6 | 20427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20428 | arg1 = (long) SWIG_AsLong(obj0); |
20429 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20430 | { |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
20437 | Py_INCREF(Py_None); resultobj = Py_None; | |
20438 | return resultobj; | |
20439 | fail: | |
20440 | return NULL; | |
20441 | } | |
20442 | ||
20443 | ||
20444 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20445 | PyObject *resultobj; | |
20446 | wxString *arg1 = 0 ; | |
e811c8ce | 20447 | bool temp1 = False ; |
d14a1e28 RD |
20448 | PyObject * obj0 = 0 ; |
20449 | char *kwnames[] = { | |
20450 | (char *) "val", NULL | |
20451 | }; | |
20452 | ||
20453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20454 | { | |
20455 | arg1 = wxString_in_helper(obj0); | |
20456 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 20457 | temp1 = True; |
d14a1e28 RD |
20458 | } |
20459 | { | |
20460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20461 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20462 | ||
20463 | wxPyEndAllowThreads(__tstate); | |
20464 | if (PyErr_Occurred()) SWIG_fail; | |
20465 | } | |
20466 | Py_INCREF(Py_None); resultobj = Py_None; | |
20467 | { | |
20468 | if (temp1) | |
20469 | delete arg1; | |
20470 | } | |
20471 | return resultobj; | |
20472 | fail: | |
20473 | { | |
20474 | if (temp1) | |
20475 | delete arg1; | |
20476 | } | |
20477 | return NULL; | |
20478 | } | |
20479 | ||
20480 | ||
20481 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20482 | PyObject *resultobj; | |
20483 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20484 | PyObject * obj0 = 0 ; | |
20485 | char *kwnames[] = { | |
20486 | (char *) "self", NULL | |
20487 | }; | |
20488 | ||
20489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20492 | { |
20493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20494 | (arg1)->_BootstrapApp(); | |
20495 | ||
20496 | wxPyEndAllowThreads(__tstate); | |
20497 | if (PyErr_Occurred()) SWIG_fail; | |
20498 | } | |
20499 | Py_INCREF(Py_None); resultobj = Py_None; | |
20500 | return resultobj; | |
20501 | fail: | |
20502 | return NULL; | |
20503 | } | |
20504 | ||
20505 | ||
20506 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20507 | PyObject *resultobj; | |
20508 | int result; | |
20509 | char *kwnames[] = { | |
20510 | NULL | |
20511 | }; | |
20512 | ||
20513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20514 | { | |
20515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20516 | result = (int)PyApp_GetComCtl32Version(); | |
20517 | ||
20518 | wxPyEndAllowThreads(__tstate); | |
20519 | if (PyErr_Occurred()) SWIG_fail; | |
20520 | } | |
15afbcd0 | 20521 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20522 | return resultobj; |
20523 | fail: | |
20524 | return NULL; | |
20525 | } | |
20526 | ||
20527 | ||
20528 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20529 | PyObject *obj; | |
20530 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20531 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20532 | Py_INCREF(obj); | |
20533 | return Py_BuildValue((char *)""); | |
20534 | } | |
20535 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20536 | PyObject *resultobj; | |
20537 | char *kwnames[] = { | |
20538 | NULL | |
20539 | }; | |
20540 | ||
20541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20542 | { | |
20543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20544 | wxExit(); | |
20545 | ||
20546 | wxPyEndAllowThreads(__tstate); | |
20547 | if (PyErr_Occurred()) SWIG_fail; | |
20548 | } | |
20549 | Py_INCREF(Py_None); resultobj = Py_None; | |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20557 | PyObject *resultobj; | |
20558 | bool result; | |
20559 | char *kwnames[] = { | |
20560 | NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20564 | { | |
20565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20566 | result = (bool)wxYield(); | |
20567 | ||
20568 | wxPyEndAllowThreads(__tstate); | |
20569 | if (PyErr_Occurred()) SWIG_fail; | |
20570 | } | |
4f89f6a3 RD |
20571 | { |
20572 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20573 | } | |
d14a1e28 RD |
20574 | return resultobj; |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20581 | PyObject *resultobj; | |
20582 | bool result; | |
20583 | char *kwnames[] = { | |
20584 | NULL | |
20585 | }; | |
20586 | ||
20587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20588 | { | |
20589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20590 | result = (bool)wxYieldIfNeeded(); | |
20591 | ||
20592 | wxPyEndAllowThreads(__tstate); | |
20593 | if (PyErr_Occurred()) SWIG_fail; | |
20594 | } | |
4f89f6a3 RD |
20595 | { |
20596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20597 | } | |
d14a1e28 RD |
20598 | return resultobj; |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20605 | PyObject *resultobj; | |
20606 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 20607 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20608 | bool result; |
20609 | PyObject * obj0 = 0 ; | |
20610 | PyObject * obj1 = 0 ; | |
20611 | char *kwnames[] = { | |
20612 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20613 | }; | |
20614 | ||
20615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20616 | if (obj0) { | |
15afbcd0 RD |
20617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20619 | } |
20620 | if (obj1) { | |
15afbcd0 RD |
20621 | arg2 = (bool) SWIG_AsBool(obj1); |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20623 | } |
20624 | { | |
20625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20626 | result = (bool)wxSafeYield(arg1,arg2); | |
20627 | ||
20628 | wxPyEndAllowThreads(__tstate); | |
20629 | if (PyErr_Occurred()) SWIG_fail; | |
20630 | } | |
4f89f6a3 RD |
20631 | { |
20632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20633 | } | |
d14a1e28 RD |
20634 | return resultobj; |
20635 | fail: | |
20636 | return NULL; | |
20637 | } | |
20638 | ||
20639 | ||
20640 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20641 | PyObject *resultobj; | |
20642 | char *kwnames[] = { | |
20643 | NULL | |
20644 | }; | |
20645 | ||
20646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20647 | { | |
20648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20649 | wxWakeUpIdle(); | |
20650 | ||
20651 | wxPyEndAllowThreads(__tstate); | |
20652 | if (PyErr_Occurred()) SWIG_fail; | |
20653 | } | |
20654 | Py_INCREF(Py_None); resultobj = Py_None; | |
20655 | return resultobj; | |
20656 | fail: | |
20657 | return NULL; | |
20658 | } | |
20659 | ||
20660 | ||
20661 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20662 | PyObject *resultobj; | |
20663 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20664 | wxEvent *arg2 = 0 ; | |
20665 | PyObject * obj0 = 0 ; | |
20666 | PyObject * obj1 = 0 ; | |
20667 | char *kwnames[] = { | |
20668 | (char *) "dest",(char *) "event", NULL | |
20669 | }; | |
20670 | ||
20671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20676 | SWIG_fail; | |
d14a1e28 | 20677 | if (arg2 == NULL) { |
15afbcd0 RD |
20678 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20679 | SWIG_fail; | |
d14a1e28 RD |
20680 | } |
20681 | { | |
20682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20683 | wxPostEvent(arg1,*arg2); | |
20684 | ||
20685 | wxPyEndAllowThreads(__tstate); | |
20686 | if (PyErr_Occurred()) SWIG_fail; | |
20687 | } | |
20688 | Py_INCREF(Py_None); resultobj = Py_None; | |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | char *kwnames[] = { | |
20698 | NULL | |
20699 | }; | |
20700 | ||
20701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20702 | { | |
20703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20704 | wxApp_CleanUp(); | |
20705 | ||
20706 | wxPyEndAllowThreads(__tstate); | |
20707 | if (PyErr_Occurred()) SWIG_fail; | |
20708 | } | |
20709 | Py_INCREF(Py_None); resultobj = Py_None; | |
20710 | return resultobj; | |
20711 | fail: | |
20712 | return NULL; | |
20713 | } | |
20714 | ||
20715 | ||
20716 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20717 | PyObject *resultobj; | |
20718 | wxPyApp *result; | |
20719 | char *kwnames[] = { | |
20720 | NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20724 | { | |
20725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20726 | result = (wxPyApp *)wxGetApp(); | |
20727 | ||
20728 | wxPyEndAllowThreads(__tstate); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
20731 | { | |
20732 | resultobj = wxPyMake_wxObject(result); | |
20733 | } | |
20734 | return resultobj; | |
20735 | fail: | |
20736 | return NULL; | |
20737 | } | |
20738 | ||
20739 | ||
1e0c8722 RD |
20740 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20741 | PyObject *resultobj; | |
20742 | int arg1 = (int) 0 ; | |
20743 | int arg2 = (int) 0 ; | |
20744 | int arg3 = (int) 0 ; | |
20745 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20746 | wxAcceleratorEntry *result; | |
994141e6 RD |
20747 | PyObject * obj0 = 0 ; |
20748 | PyObject * obj1 = 0 ; | |
20749 | PyObject * obj2 = 0 ; | |
1e0c8722 RD |
20750 | PyObject * obj3 = 0 ; |
20751 | char *kwnames[] = { | |
20752 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20753 | }; | |
20754 | ||
994141e6 RD |
20755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20756 | if (obj0) { | |
15afbcd0 RD |
20757 | arg1 = (int) SWIG_AsInt(obj0); |
20758 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20759 | } |
20760 | if (obj1) { | |
15afbcd0 RD |
20761 | arg2 = (int) SWIG_AsInt(obj1); |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20763 | } |
20764 | if (obj2) { | |
15afbcd0 RD |
20765 | arg3 = (int) SWIG_AsInt(obj2); |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20767 | } |
1e0c8722 | 20768 | if (obj3) { |
15afbcd0 RD |
20769 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20771 | } |
20772 | { | |
20773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20774 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20775 | ||
20776 | wxPyEndAllowThreads(__tstate); | |
20777 | if (PyErr_Occurred()) SWIG_fail; | |
20778 | } | |
15afbcd0 | 20779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
20780 | return resultobj; |
20781 | fail: | |
20782 | return NULL; | |
20783 | } | |
20784 | ||
20785 | ||
20786 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20787 | PyObject *resultobj; | |
20788 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20789 | PyObject * obj0 = 0 ; | |
20790 | char *kwnames[] = { | |
20791 | (char *) "self", NULL | |
20792 | }; | |
20793 | ||
20794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20797 | { |
20798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20799 | delete arg1; | |
20800 | ||
20801 | wxPyEndAllowThreads(__tstate); | |
20802 | if (PyErr_Occurred()) SWIG_fail; | |
20803 | } | |
20804 | Py_INCREF(Py_None); resultobj = Py_None; | |
20805 | return resultobj; | |
20806 | fail: | |
20807 | return NULL; | |
20808 | } | |
20809 | ||
20810 | ||
20811 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20812 | PyObject *resultobj; | |
20813 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20814 | int arg2 ; | |
20815 | int arg3 ; | |
20816 | int arg4 ; | |
20817 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20818 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20819 | PyObject * obj1 = 0 ; |
20820 | PyObject * obj2 = 0 ; | |
20821 | PyObject * obj3 = 0 ; | |
1e0c8722 RD |
20822 | PyObject * obj4 = 0 ; |
20823 | char *kwnames[] = { | |
20824 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20825 | }; | |
20826 | ||
994141e6 | 20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
20828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20830 | arg2 = (int) SWIG_AsInt(obj1); | |
20831 | if (PyErr_Occurred()) SWIG_fail; | |
20832 | arg3 = (int) SWIG_AsInt(obj2); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | arg4 = (int) SWIG_AsInt(obj3); | |
20835 | if (PyErr_Occurred()) SWIG_fail; | |
1e0c8722 | 20836 | if (obj4) { |
15afbcd0 RD |
20837 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20839 | } |
20840 | { | |
20841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20842 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20843 | ||
20844 | wxPyEndAllowThreads(__tstate); | |
20845 | if (PyErr_Occurred()) SWIG_fail; | |
20846 | } | |
20847 | Py_INCREF(Py_None); resultobj = Py_None; | |
20848 | return resultobj; | |
20849 | fail: | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj; | |
20856 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20857 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20858 | PyObject * obj0 = 0 ; | |
20859 | PyObject * obj1 = 0 ; | |
20860 | char *kwnames[] = { | |
20861 | (char *) "self",(char *) "item", NULL | |
20862 | }; | |
20863 | ||
20864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20869 | { |
20870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20871 | (arg1)->SetMenuItem(arg2); | |
20872 | ||
20873 | wxPyEndAllowThreads(__tstate); | |
20874 | if (PyErr_Occurred()) SWIG_fail; | |
20875 | } | |
20876 | Py_INCREF(Py_None); resultobj = Py_None; | |
20877 | return resultobj; | |
20878 | fail: | |
20879 | return NULL; | |
20880 | } | |
20881 | ||
20882 | ||
20883 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20884 | PyObject *resultobj; | |
20885 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20886 | wxMenuItem *result; | |
20887 | PyObject * obj0 = 0 ; | |
20888 | char *kwnames[] = { | |
20889 | (char *) "self", NULL | |
20890 | }; | |
20891 | ||
20892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20895 | { |
20896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20897 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
20898 | ||
20899 | wxPyEndAllowThreads(__tstate); | |
20900 | if (PyErr_Occurred()) SWIG_fail; | |
20901 | } | |
20902 | { | |
20903 | resultobj = wxPyMake_wxObject(result); | |
20904 | } | |
20905 | return resultobj; | |
20906 | fail: | |
20907 | return NULL; | |
20908 | } | |
20909 | ||
20910 | ||
20911 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20912 | PyObject *resultobj; | |
20913 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20914 | int result; | |
20915 | PyObject * obj0 = 0 ; | |
20916 | char *kwnames[] = { | |
20917 | (char *) "self", NULL | |
20918 | }; | |
20919 | ||
20920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20923 | { |
20924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20925 | result = (int)(arg1)->GetFlags(); | |
20926 | ||
20927 | wxPyEndAllowThreads(__tstate); | |
20928 | if (PyErr_Occurred()) SWIG_fail; | |
20929 | } | |
15afbcd0 | 20930 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
20931 | return resultobj; |
20932 | fail: | |
20933 | return NULL; | |
20934 | } | |
20935 | ||
20936 | ||
20937 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20938 | PyObject *resultobj; | |
20939 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20940 | int result; | |
20941 | PyObject * obj0 = 0 ; | |
20942 | char *kwnames[] = { | |
20943 | (char *) "self", NULL | |
20944 | }; | |
20945 | ||
20946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20949 | { |
20950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20951 | result = (int)(arg1)->GetKeyCode(); | |
20952 | ||
20953 | wxPyEndAllowThreads(__tstate); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
20955 | } | |
15afbcd0 | 20956 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
20957 | return resultobj; |
20958 | fail: | |
20959 | return NULL; | |
20960 | } | |
20961 | ||
20962 | ||
20963 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20964 | PyObject *resultobj; | |
20965 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20966 | int result; | |
20967 | PyObject * obj0 = 0 ; | |
20968 | char *kwnames[] = { | |
20969 | (char *) "self", NULL | |
20970 | }; | |
20971 | ||
20972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20975 | { |
20976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20977 | result = (int)(arg1)->GetCommand(); | |
20978 | ||
20979 | wxPyEndAllowThreads(__tstate); | |
20980 | if (PyErr_Occurred()) SWIG_fail; | |
20981 | } | |
15afbcd0 | 20982 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
20983 | return resultobj; |
20984 | fail: | |
20985 | return NULL; | |
20986 | } | |
20987 | ||
20988 | ||
20989 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20990 | PyObject *obj; | |
20991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20992 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20993 | Py_INCREF(obj); | |
20994 | return Py_BuildValue((char *)""); | |
20995 | } | |
20996 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20997 | PyObject *resultobj; | |
20998 | int arg1 ; | |
20999 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21000 | wxAcceleratorTable *result; | |
21001 | PyObject * obj0 = 0 ; | |
21002 | char *kwnames[] = { | |
21003 | (char *) "n", NULL | |
21004 | }; | |
21005 | ||
21006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21007 | { | |
21008 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21009 | if (arg2) arg1 = PyList_Size(obj0); | |
21010 | else arg1 = 0; | |
21011 | } | |
21012 | { | |
21013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21014 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21015 | ||
21016 | wxPyEndAllowThreads(__tstate); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
15afbcd0 | 21019 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
21020 | { |
21021 | delete [] arg2; | |
21022 | } | |
21023 | return resultobj; | |
21024 | fail: | |
21025 | { | |
21026 | delete [] arg2; | |
21027 | } | |
21028 | return NULL; | |
21029 | } | |
21030 | ||
21031 | ||
21032 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21033 | PyObject *resultobj; | |
21034 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21035 | PyObject * obj0 = 0 ; | |
21036 | char *kwnames[] = { | |
21037 | (char *) "self", NULL | |
21038 | }; | |
21039 | ||
21040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21043 | { |
21044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21045 | delete arg1; | |
21046 | ||
21047 | wxPyEndAllowThreads(__tstate); | |
21048 | if (PyErr_Occurred()) SWIG_fail; | |
21049 | } | |
21050 | Py_INCREF(Py_None); resultobj = Py_None; | |
21051 | return resultobj; | |
21052 | fail: | |
21053 | return NULL; | |
21054 | } | |
21055 | ||
21056 | ||
21057 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21058 | PyObject *resultobj; | |
21059 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21060 | bool result; | |
21061 | PyObject * obj0 = 0 ; | |
21062 | char *kwnames[] = { | |
21063 | (char *) "self", NULL | |
21064 | }; | |
21065 | ||
21066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21069 | { |
21070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21071 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21072 | ||
21073 | wxPyEndAllowThreads(__tstate); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
21075 | } | |
4f89f6a3 RD |
21076 | { |
21077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21078 | } | |
1e0c8722 RD |
21079 | return resultobj; |
21080 | fail: | |
21081 | return NULL; | |
21082 | } | |
21083 | ||
21084 | ||
21085 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21086 | PyObject *obj; | |
21087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21088 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21089 | Py_INCREF(obj); | |
21090 | return Py_BuildValue((char *)""); | |
21091 | } | |
21092 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21093 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21094 | return 1; | |
21095 | } | |
21096 | ||
21097 | ||
21098 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21099 | PyObject *pyobj; | |
21100 | ||
15afbcd0 | 21101 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
21102 | return pyobj; |
21103 | } | |
21104 | ||
21105 | ||
21106 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21107 | PyObject *resultobj; | |
21108 | wxString *arg1 = 0 ; | |
21109 | wxAcceleratorEntry *result; | |
21110 | bool temp1 = False ; | |
21111 | PyObject * obj0 = 0 ; | |
21112 | char *kwnames[] = { | |
21113 | (char *) "label", NULL | |
21114 | }; | |
21115 | ||
21116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21117 | { | |
21118 | arg1 = wxString_in_helper(obj0); | |
21119 | if (arg1 == NULL) SWIG_fail; | |
21120 | temp1 = True; | |
21121 | } | |
21122 | { | |
21123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21124 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21125 | ||
21126 | wxPyEndAllowThreads(__tstate); | |
21127 | if (PyErr_Occurred()) SWIG_fail; | |
21128 | } | |
15afbcd0 | 21129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
21130 | { |
21131 | if (temp1) | |
21132 | delete arg1; | |
21133 | } | |
21134 | return resultobj; | |
21135 | fail: | |
21136 | { | |
21137 | if (temp1) | |
21138 | delete arg1; | |
21139 | } | |
21140 | return NULL; | |
21141 | } | |
21142 | ||
21143 | ||
e811c8ce RD |
21144 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
21145 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21146 | return 1; | |
21147 | } | |
21148 | ||
21149 | ||
21150 | static PyObject *_wrap_PanelNameStr_get() { | |
21151 | PyObject *pyobj; | |
21152 | ||
21153 | { | |
21154 | #if wxUSE_UNICODE | |
21155 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21156 | #else | |
21157 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21158 | #endif | |
21159 | } | |
21160 | return pyobj; | |
21161 | } | |
21162 | ||
21163 | ||
74a57fcd RD |
21164 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
21165 | PyObject *resultobj; | |
21166 | wxVisualAttributes *result; | |
21167 | char *kwnames[] = { | |
21168 | NULL | |
21169 | }; | |
21170 | ||
21171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21172 | { | |
21173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21174 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21175 | ||
21176 | wxPyEndAllowThreads(__tstate); | |
21177 | if (PyErr_Occurred()) SWIG_fail; | |
21178 | } | |
21179 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21180 | return resultobj; | |
21181 | fail: | |
21182 | return NULL; | |
21183 | } | |
21184 | ||
21185 | ||
21186 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21187 | PyObject *resultobj; | |
21188 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21189 | PyObject * obj0 = 0 ; | |
21190 | char *kwnames[] = { | |
21191 | (char *) "self", NULL | |
21192 | }; | |
21193 | ||
21194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21197 | { | |
21198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21199 | delete_wxVisualAttributes(arg1); | |
21200 | ||
21201 | wxPyEndAllowThreads(__tstate); | |
21202 | if (PyErr_Occurred()) SWIG_fail; | |
21203 | } | |
21204 | Py_INCREF(Py_None); resultobj = Py_None; | |
21205 | return resultobj; | |
21206 | fail: | |
21207 | return NULL; | |
21208 | } | |
21209 | ||
21210 | ||
21211 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21212 | PyObject *resultobj; | |
21213 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21214 | wxFont *arg2 = (wxFont *) 0 ; | |
21215 | PyObject * obj0 = 0 ; | |
21216 | PyObject * obj1 = 0 ; | |
21217 | char *kwnames[] = { | |
21218 | (char *) "self",(char *) "font", NULL | |
21219 | }; | |
21220 | ||
21221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21226 | if (arg1) (arg1)->font = *arg2; | |
21227 | ||
21228 | Py_INCREF(Py_None); resultobj = Py_None; | |
21229 | return resultobj; | |
21230 | fail: | |
21231 | return NULL; | |
21232 | } | |
21233 | ||
21234 | ||
21235 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21236 | PyObject *resultobj; | |
21237 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21238 | wxFont *result; | |
21239 | PyObject * obj0 = 0 ; | |
21240 | char *kwnames[] = { | |
21241 | (char *) "self", NULL | |
21242 | }; | |
21243 | ||
21244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21247 | result = (wxFont *)& ((arg1)->font); | |
21248 | ||
21249 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21250 | return resultobj; | |
21251 | fail: | |
21252 | return NULL; | |
21253 | } | |
21254 | ||
21255 | ||
21256 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21257 | PyObject *resultobj; | |
21258 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21259 | wxColour *arg2 = (wxColour *) 0 ; | |
21260 | PyObject * obj0 = 0 ; | |
21261 | PyObject * obj1 = 0 ; | |
21262 | char *kwnames[] = { | |
21263 | (char *) "self",(char *) "colFg", NULL | |
21264 | }; | |
21265 | ||
21266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21271 | if (arg1) (arg1)->colFg = *arg2; | |
21272 | ||
21273 | Py_INCREF(Py_None); resultobj = Py_None; | |
21274 | return resultobj; | |
21275 | fail: | |
21276 | return NULL; | |
21277 | } | |
21278 | ||
21279 | ||
21280 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21281 | PyObject *resultobj; | |
21282 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21283 | wxColour *result; | |
21284 | PyObject * obj0 = 0 ; | |
21285 | char *kwnames[] = { | |
21286 | (char *) "self", NULL | |
21287 | }; | |
21288 | ||
21289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21292 | result = (wxColour *)& ((arg1)->colFg); | |
21293 | ||
21294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21295 | return resultobj; | |
21296 | fail: | |
21297 | return NULL; | |
21298 | } | |
21299 | ||
21300 | ||
21301 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21302 | PyObject *resultobj; | |
21303 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21304 | wxColour *arg2 = (wxColour *) 0 ; | |
21305 | PyObject * obj0 = 0 ; | |
21306 | PyObject * obj1 = 0 ; | |
21307 | char *kwnames[] = { | |
21308 | (char *) "self",(char *) "colBg", NULL | |
21309 | }; | |
21310 | ||
21311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21314 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21316 | if (arg1) (arg1)->colBg = *arg2; | |
21317 | ||
21318 | Py_INCREF(Py_None); resultobj = Py_None; | |
21319 | return resultobj; | |
21320 | fail: | |
21321 | return NULL; | |
21322 | } | |
21323 | ||
21324 | ||
21325 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21326 | PyObject *resultobj; | |
21327 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21328 | wxColour *result; | |
21329 | PyObject * obj0 = 0 ; | |
21330 | char *kwnames[] = { | |
21331 | (char *) "self", NULL | |
21332 | }; | |
21333 | ||
21334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21337 | result = (wxColour *)& ((arg1)->colBg); | |
21338 | ||
21339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21347 | PyObject *obj; | |
21348 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21349 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21350 | Py_INCREF(obj); | |
21351 | return Py_BuildValue((char *)""); | |
21352 | } | |
d14a1e28 RD |
21353 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21354 | PyObject *resultobj; | |
21355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 21356 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
21357 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21358 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21359 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21360 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21361 | long arg5 = (long) 0 ; | |
21362 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21363 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21364 | wxWindow *result; | |
21365 | wxPoint temp3 ; | |
21366 | wxSize temp4 ; | |
e811c8ce | 21367 | bool temp6 = False ; |
d14a1e28 | 21368 | PyObject * obj0 = 0 ; |
994141e6 | 21369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21370 | PyObject * obj2 = 0 ; |
21371 | PyObject * obj3 = 0 ; | |
994141e6 | 21372 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21373 | PyObject * obj5 = 0 ; |
21374 | char *kwnames[] = { | |
21375 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21376 | }; | |
21377 | ||
74a57fcd | 21378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
21379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21381 | if (obj1) { |
21382 | arg2 = (int const) SWIG_AsInt(obj1); | |
21383 | if (PyErr_Occurred()) SWIG_fail; | |
21384 | } | |
d14a1e28 RD |
21385 | if (obj2) { |
21386 | { | |
21387 | arg3 = &temp3; | |
21388 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21389 | } | |
21390 | } | |
21391 | if (obj3) { | |
21392 | { | |
21393 | arg4 = &temp4; | |
21394 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21395 | } | |
21396 | } | |
994141e6 | 21397 | if (obj4) { |
15afbcd0 RD |
21398 | arg5 = (long) SWIG_AsLong(obj4); |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21400 | } |
d14a1e28 RD |
21401 | if (obj5) { |
21402 | { | |
21403 | arg6 = wxString_in_helper(obj5); | |
21404 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 21405 | temp6 = True; |
d14a1e28 RD |
21406 | } |
21407 | } | |
21408 | { | |
21409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21410 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21411 | ||
21412 | wxPyEndAllowThreads(__tstate); | |
21413 | if (PyErr_Occurred()) SWIG_fail; | |
21414 | } | |
21415 | { | |
21416 | resultobj = wxPyMake_wxObject(result); | |
21417 | } | |
21418 | { | |
21419 | if (temp6) | |
21420 | delete arg6; | |
21421 | } | |
21422 | return resultobj; | |
21423 | fail: | |
21424 | { | |
21425 | if (temp6) | |
21426 | delete arg6; | |
21427 | } | |
21428 | return NULL; | |
21429 | } | |
21430 | ||
21431 | ||
21432 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21433 | PyObject *resultobj; | |
21434 | wxWindow *result; | |
21435 | char *kwnames[] = { | |
21436 | NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21440 | { | |
21441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21442 | result = (wxWindow *)new wxWindow(); | |
21443 | ||
21444 | wxPyEndAllowThreads(__tstate); | |
21445 | if (PyErr_Occurred()) SWIG_fail; | |
21446 | } | |
21447 | { | |
21448 | resultobj = wxPyMake_wxObject(result); | |
21449 | } | |
21450 | return resultobj; | |
21451 | fail: | |
21452 | return NULL; | |
21453 | } | |
21454 | ||
21455 | ||
21456 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21457 | PyObject *resultobj; | |
21458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 21460 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
21461 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21462 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21463 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21464 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21465 | long arg6 = (long) 0 ; | |
21466 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21467 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21468 | bool result; | |
21469 | wxPoint temp4 ; | |
21470 | wxSize temp5 ; | |
e811c8ce | 21471 | bool temp7 = False ; |
d14a1e28 RD |
21472 | PyObject * obj0 = 0 ; |
21473 | PyObject * obj1 = 0 ; | |
994141e6 | 21474 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21475 | PyObject * obj3 = 0 ; |
21476 | PyObject * obj4 = 0 ; | |
994141e6 | 21477 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21478 | PyObject * obj6 = 0 ; |
21479 | char *kwnames[] = { | |
21480 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21481 | }; | |
21482 | ||
74a57fcd | 21483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21486 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21488 | if (obj2) { |
21489 | arg3 = (int const) SWIG_AsInt(obj2); | |
21490 | if (PyErr_Occurred()) SWIG_fail; | |
21491 | } | |
d14a1e28 RD |
21492 | if (obj3) { |
21493 | { | |
21494 | arg4 = &temp4; | |
21495 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21496 | } | |
21497 | } | |
21498 | if (obj4) { | |
21499 | { | |
21500 | arg5 = &temp5; | |
21501 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21502 | } | |
21503 | } | |
994141e6 | 21504 | if (obj5) { |
15afbcd0 RD |
21505 | arg6 = (long) SWIG_AsLong(obj5); |
21506 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21507 | } |
d14a1e28 RD |
21508 | if (obj6) { |
21509 | { | |
21510 | arg7 = wxString_in_helper(obj6); | |
21511 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21512 | temp7 = True; |
d14a1e28 RD |
21513 | } |
21514 | } | |
21515 | { | |
21516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21517 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21518 | ||
21519 | wxPyEndAllowThreads(__tstate); | |
21520 | if (PyErr_Occurred()) SWIG_fail; | |
21521 | } | |
4f89f6a3 RD |
21522 | { |
21523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21524 | } | |
d14a1e28 RD |
21525 | { |
21526 | if (temp7) | |
21527 | delete arg7; | |
21528 | } | |
21529 | return resultobj; | |
21530 | fail: | |
21531 | { | |
21532 | if (temp7) | |
21533 | delete arg7; | |
21534 | } | |
21535 | return NULL; | |
21536 | } | |
21537 | ||
21538 | ||
21539 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21540 | PyObject *resultobj; | |
21541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21542 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21543 | bool result; |
21544 | PyObject * obj0 = 0 ; | |
21545 | PyObject * obj1 = 0 ; | |
21546 | char *kwnames[] = { | |
21547 | (char *) "self",(char *) "force", NULL | |
21548 | }; | |
21549 | ||
21550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21553 | if (obj1) { |
15afbcd0 RD |
21554 | arg2 = (bool) SWIG_AsBool(obj1); |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21556 | } |
21557 | { | |
21558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21559 | result = (bool)(arg1)->Close(arg2); | |
21560 | ||
21561 | wxPyEndAllowThreads(__tstate); | |
21562 | if (PyErr_Occurred()) SWIG_fail; | |
21563 | } | |
4f89f6a3 RD |
21564 | { |
21565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21566 | } | |
d14a1e28 RD |
21567 | return resultobj; |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
21573 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21574 | PyObject *resultobj; | |
21575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21576 | bool result; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | char *kwnames[] = { | |
21579 | (char *) "self", NULL | |
21580 | }; | |
21581 | ||
21582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21585 | { |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = (bool)(arg1)->Destroy(); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
4f89f6a3 RD |
21592 | { |
21593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21594 | } | |
d14a1e28 RD |
21595 | return resultobj; |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21602 | PyObject *resultobj; | |
21603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21604 | bool result; | |
21605 | PyObject * obj0 = 0 ; | |
21606 | char *kwnames[] = { | |
21607 | (char *) "self", NULL | |
21608 | }; | |
21609 | ||
21610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21613 | { |
21614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21615 | result = (bool)(arg1)->DestroyChildren(); | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
4f89f6a3 RD |
21620 | { |
21621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21622 | } | |
d14a1e28 RD |
21623 | return resultobj; |
21624 | fail: | |
21625 | return NULL; | |
21626 | } | |
21627 | ||
21628 | ||
21629 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21630 | PyObject *resultobj; | |
21631 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21632 | bool result; | |
21633 | PyObject * obj0 = 0 ; | |
21634 | char *kwnames[] = { | |
21635 | (char *) "self", NULL | |
21636 | }; | |
21637 | ||
21638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21641 | { |
21642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21643 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21644 | ||
21645 | wxPyEndAllowThreads(__tstate); | |
21646 | if (PyErr_Occurred()) SWIG_fail; | |
21647 | } | |
4f89f6a3 RD |
21648 | { |
21649 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21650 | } | |
d14a1e28 RD |
21651 | return resultobj; |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj; | |
21659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21660 | wxString *arg2 = 0 ; | |
e811c8ce | 21661 | bool temp2 = False ; |
d14a1e28 RD |
21662 | PyObject * obj0 = 0 ; |
21663 | PyObject * obj1 = 0 ; | |
21664 | char *kwnames[] = { | |
21665 | (char *) "self",(char *) "title", NULL | |
21666 | }; | |
21667 | ||
21668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21671 | { |
21672 | arg2 = wxString_in_helper(obj1); | |
21673 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21674 | temp2 = True; |
d14a1e28 RD |
21675 | } |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | (arg1)->SetTitle((wxString const &)*arg2); | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
21683 | Py_INCREF(Py_None); resultobj = Py_None; | |
21684 | { | |
21685 | if (temp2) | |
21686 | delete arg2; | |
21687 | } | |
21688 | return resultobj; | |
21689 | fail: | |
21690 | { | |
21691 | if (temp2) | |
21692 | delete arg2; | |
21693 | } | |
21694 | return NULL; | |
21695 | } | |
21696 | ||
21697 | ||
21698 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21699 | PyObject *resultobj; | |
21700 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21701 | wxString result; | |
21702 | PyObject * obj0 = 0 ; | |
21703 | char *kwnames[] = { | |
21704 | (char *) "self", NULL | |
21705 | }; | |
21706 | ||
21707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21710 | { |
21711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21712 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21713 | ||
21714 | wxPyEndAllowThreads(__tstate); | |
21715 | if (PyErr_Occurred()) SWIG_fail; | |
21716 | } | |
21717 | { | |
21718 | #if wxUSE_UNICODE | |
21719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21720 | #else | |
21721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21722 | #endif | |
21723 | } | |
21724 | return resultobj; | |
21725 | fail: | |
21726 | return NULL; | |
21727 | } | |
21728 | ||
21729 | ||
21730 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21731 | PyObject *resultobj; | |
21732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21733 | wxString *arg2 = 0 ; | |
e811c8ce | 21734 | bool temp2 = False ; |
d14a1e28 RD |
21735 | PyObject * obj0 = 0 ; |
21736 | PyObject * obj1 = 0 ; | |
21737 | char *kwnames[] = { | |
21738 | (char *) "self",(char *) "label", NULL | |
21739 | }; | |
21740 | ||
21741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21744 | { |
21745 | arg2 = wxString_in_helper(obj1); | |
21746 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21747 | temp2 = True; |
d14a1e28 RD |
21748 | } |
21749 | { | |
21750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21751 | (arg1)->SetLabel((wxString const &)*arg2); | |
21752 | ||
21753 | wxPyEndAllowThreads(__tstate); | |
21754 | if (PyErr_Occurred()) SWIG_fail; | |
21755 | } | |
21756 | Py_INCREF(Py_None); resultobj = Py_None; | |
21757 | { | |
21758 | if (temp2) | |
21759 | delete arg2; | |
21760 | } | |
21761 | return resultobj; | |
21762 | fail: | |
21763 | { | |
21764 | if (temp2) | |
21765 | delete arg2; | |
21766 | } | |
21767 | return NULL; | |
21768 | } | |
21769 | ||
21770 | ||
21771 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21772 | PyObject *resultobj; | |
21773 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21774 | wxString result; | |
21775 | PyObject * obj0 = 0 ; | |
21776 | char *kwnames[] = { | |
21777 | (char *) "self", NULL | |
21778 | }; | |
21779 | ||
21780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21783 | { |
21784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21785 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21786 | ||
21787 | wxPyEndAllowThreads(__tstate); | |
21788 | if (PyErr_Occurred()) SWIG_fail; | |
21789 | } | |
21790 | { | |
21791 | #if wxUSE_UNICODE | |
21792 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21793 | #else | |
21794 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21795 | #endif | |
21796 | } | |
21797 | return resultobj; | |
21798 | fail: | |
21799 | return NULL; | |
21800 | } | |
21801 | ||
21802 | ||
21803 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21804 | PyObject *resultobj; | |
21805 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21806 | wxString *arg2 = 0 ; | |
e811c8ce | 21807 | bool temp2 = False ; |
d14a1e28 RD |
21808 | PyObject * obj0 = 0 ; |
21809 | PyObject * obj1 = 0 ; | |
21810 | char *kwnames[] = { | |
21811 | (char *) "self",(char *) "name", NULL | |
21812 | }; | |
21813 | ||
21814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21817 | { |
21818 | arg2 = wxString_in_helper(obj1); | |
21819 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21820 | temp2 = True; |
d14a1e28 RD |
21821 | } |
21822 | { | |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | (arg1)->SetName((wxString const &)*arg2); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | Py_INCREF(Py_None); resultobj = Py_None; | |
21830 | { | |
21831 | if (temp2) | |
21832 | delete arg2; | |
21833 | } | |
21834 | return resultobj; | |
21835 | fail: | |
21836 | { | |
21837 | if (temp2) | |
21838 | delete arg2; | |
21839 | } | |
21840 | return NULL; | |
21841 | } | |
21842 | ||
21843 | ||
21844 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21845 | PyObject *resultobj; | |
21846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21847 | wxString result; | |
21848 | PyObject * obj0 = 0 ; | |
21849 | char *kwnames[] = { | |
21850 | (char *) "self", NULL | |
21851 | }; | |
21852 | ||
21853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21856 | { |
21857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21858 | result = ((wxWindow const *)arg1)->GetName(); | |
21859 | ||
21860 | wxPyEndAllowThreads(__tstate); | |
21861 | if (PyErr_Occurred()) SWIG_fail; | |
21862 | } | |
21863 | { | |
21864 | #if wxUSE_UNICODE | |
21865 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21866 | #else | |
21867 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21868 | #endif | |
21869 | } | |
21870 | return resultobj; | |
21871 | fail: | |
21872 | return NULL; | |
21873 | } | |
21874 | ||
21875 | ||
4276dc52 RD |
21876 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21877 | PyObject *resultobj; | |
21878 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21879 | int arg2 ; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | PyObject * obj1 = 0 ; | |
21882 | char *kwnames[] = { | |
21883 | (char *) "self",(char *) "variant", NULL | |
21884 | }; | |
21885 | ||
21886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21889 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | { | |
21892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21893 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21894 | ||
21895 | wxPyEndAllowThreads(__tstate); | |
21896 | if (PyErr_Occurred()) SWIG_fail; | |
21897 | } | |
21898 | Py_INCREF(Py_None); resultobj = Py_None; | |
21899 | return resultobj; | |
21900 | fail: | |
21901 | return NULL; | |
21902 | } | |
21903 | ||
21904 | ||
21905 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21906 | PyObject *resultobj; | |
21907 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21908 | int result; | |
21909 | PyObject * obj0 = 0 ; | |
21910 | char *kwnames[] = { | |
21911 | (char *) "self", NULL | |
21912 | }; | |
21913 | ||
21914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21917 | { | |
21918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21919 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21920 | ||
21921 | wxPyEndAllowThreads(__tstate); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | resultobj = SWIG_FromInt((int)result); | |
21925 | return resultobj; | |
21926 | fail: | |
21927 | return NULL; | |
21928 | } | |
21929 | ||
21930 | ||
d14a1e28 RD |
21931 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
21932 | PyObject *resultobj; | |
21933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21934 | int arg2 ; |
d14a1e28 | 21935 | PyObject * obj0 = 0 ; |
994141e6 | 21936 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21937 | char *kwnames[] = { |
21938 | (char *) "self",(char *) "winid", NULL | |
21939 | }; | |
21940 | ||
994141e6 | 21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21944 | arg2 = (int) SWIG_AsInt(obj1); | |
21945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21946 | { |
21947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21948 | (arg1)->SetId(arg2); | |
21949 | ||
21950 | wxPyEndAllowThreads(__tstate); | |
21951 | if (PyErr_Occurred()) SWIG_fail; | |
21952 | } | |
21953 | Py_INCREF(Py_None); resultobj = Py_None; | |
21954 | return resultobj; | |
21955 | fail: | |
21956 | return NULL; | |
21957 | } | |
21958 | ||
21959 | ||
21960 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21961 | PyObject *resultobj; | |
21962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21963 | int result; |
d14a1e28 RD |
21964 | PyObject * obj0 = 0 ; |
21965 | char *kwnames[] = { | |
21966 | (char *) "self", NULL | |
21967 | }; | |
21968 | ||
21969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21972 | { |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 21974 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
21975 | |
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
15afbcd0 | 21979 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21980 | return resultobj; |
21981 | fail: | |
21982 | return NULL; | |
21983 | } | |
21984 | ||
21985 | ||
21986 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21987 | PyObject *resultobj; | |
21988 | int result; | |
21989 | char *kwnames[] = { | |
21990 | NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21994 | { | |
21995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21996 | result = (int)wxWindow::NewControlId(); | |
21997 | ||
21998 | wxPyEndAllowThreads(__tstate); | |
21999 | if (PyErr_Occurred()) SWIG_fail; | |
22000 | } | |
15afbcd0 | 22001 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22002 | return resultobj; |
22003 | fail: | |
22004 | return NULL; | |
22005 | } | |
22006 | ||
22007 | ||
22008 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22009 | PyObject *resultobj; | |
22010 | int arg1 ; | |
22011 | int result; | |
994141e6 | 22012 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22013 | char *kwnames[] = { |
22014 | (char *) "winid", NULL | |
22015 | }; | |
22016 | ||
994141e6 | 22017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22018 | arg1 = (int) SWIG_AsInt(obj0); |
22019 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22020 | { |
22021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22022 | result = (int)wxWindow::NextControlId(arg1); | |
22023 | ||
22024 | wxPyEndAllowThreads(__tstate); | |
22025 | if (PyErr_Occurred()) SWIG_fail; | |
22026 | } | |
15afbcd0 | 22027 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22028 | return resultobj; |
22029 | fail: | |
22030 | return NULL; | |
22031 | } | |
22032 | ||
22033 | ||
22034 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22035 | PyObject *resultobj; | |
22036 | int arg1 ; | |
22037 | int result; | |
994141e6 | 22038 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22039 | char *kwnames[] = { |
22040 | (char *) "winid", NULL | |
22041 | }; | |
22042 | ||
994141e6 | 22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22044 | arg1 = (int) SWIG_AsInt(obj0); |
22045 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22046 | { |
22047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22048 | result = (int)wxWindow::PrevControlId(arg1); | |
22049 | ||
22050 | wxPyEndAllowThreads(__tstate); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
22052 | } | |
15afbcd0 | 22053 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22054 | return resultobj; |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj; | |
22062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22063 | wxSize *arg2 = 0 ; | |
22064 | wxSize temp2 ; | |
22065 | PyObject * obj0 = 0 ; | |
22066 | PyObject * obj1 = 0 ; | |
22067 | char *kwnames[] = { | |
22068 | (char *) "self",(char *) "size", NULL | |
22069 | }; | |
22070 | ||
22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22074 | { |
22075 | arg2 = &temp2; | |
22076 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22077 | } | |
22078 | { | |
22079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22080 | (arg1)->SetSize((wxSize const &)*arg2); | |
22081 | ||
22082 | wxPyEndAllowThreads(__tstate); | |
22083 | if (PyErr_Occurred()) SWIG_fail; | |
22084 | } | |
22085 | Py_INCREF(Py_None); resultobj = Py_None; | |
22086 | return resultobj; | |
22087 | fail: | |
22088 | return NULL; | |
22089 | } | |
22090 | ||
22091 | ||
22092 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22093 | PyObject *resultobj; | |
22094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22095 | int arg2 ; | |
22096 | int arg3 ; | |
22097 | int arg4 ; | |
22098 | int arg5 ; | |
22099 | int arg6 = (int) wxSIZE_AUTO ; | |
22100 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22101 | PyObject * obj1 = 0 ; |
22102 | PyObject * obj2 = 0 ; | |
22103 | PyObject * obj3 = 0 ; | |
22104 | PyObject * obj4 = 0 ; | |
22105 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
22106 | char *kwnames[] = { |
22107 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22108 | }; | |
22109 | ||
994141e6 | 22110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22113 | arg2 = (int) SWIG_AsInt(obj1); | |
22114 | if (PyErr_Occurred()) SWIG_fail; | |
22115 | arg3 = (int) SWIG_AsInt(obj2); | |
22116 | if (PyErr_Occurred()) SWIG_fail; | |
22117 | arg4 = (int) SWIG_AsInt(obj3); | |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | arg5 = (int) SWIG_AsInt(obj4); | |
22120 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22121 | if (obj5) { |
15afbcd0 RD |
22122 | arg6 = (int) SWIG_AsInt(obj5); |
22123 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22124 | } |
d14a1e28 RD |
22125 | { |
22126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22127 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22128 | ||
22129 | wxPyEndAllowThreads(__tstate); | |
22130 | if (PyErr_Occurred()) SWIG_fail; | |
22131 | } | |
22132 | Py_INCREF(Py_None); resultobj = Py_None; | |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
22139 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22140 | PyObject *resultobj; | |
22141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22142 | wxRect *arg2 = 0 ; | |
22143 | int arg3 = (int) wxSIZE_AUTO ; | |
22144 | wxRect temp2 ; | |
22145 | PyObject * obj0 = 0 ; | |
22146 | PyObject * obj1 = 0 ; | |
994141e6 | 22147 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22148 | char *kwnames[] = { |
22149 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22150 | }; | |
22151 | ||
994141e6 | 22152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22155 | { |
22156 | arg2 = &temp2; | |
22157 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22158 | } | |
994141e6 | 22159 | if (obj2) { |
15afbcd0 RD |
22160 | arg3 = (int) SWIG_AsInt(obj2); |
22161 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22162 | } |
d14a1e28 RD |
22163 | { |
22164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22165 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22166 | ||
22167 | wxPyEndAllowThreads(__tstate); | |
22168 | if (PyErr_Occurred()) SWIG_fail; | |
22169 | } | |
22170 | Py_INCREF(Py_None); resultobj = Py_None; | |
22171 | return resultobj; | |
22172 | fail: | |
22173 | return NULL; | |
22174 | } | |
22175 | ||
22176 | ||
22177 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22178 | PyObject *resultobj; | |
22179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22180 | int arg2 ; | |
22181 | int arg3 ; | |
22182 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22183 | PyObject * obj1 = 0 ; |
22184 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22185 | char *kwnames[] = { |
22186 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22187 | }; | |
22188 | ||
994141e6 | 22189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22192 | arg2 = (int) SWIG_AsInt(obj1); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | arg3 = (int) SWIG_AsInt(obj2); | |
22195 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22196 | { |
22197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22198 | (arg1)->SetSize(arg2,arg3); | |
22199 | ||
22200 | wxPyEndAllowThreads(__tstate); | |
22201 | if (PyErr_Occurred()) SWIG_fail; | |
22202 | } | |
22203 | Py_INCREF(Py_None); resultobj = Py_None; | |
22204 | return resultobj; | |
22205 | fail: | |
22206 | return NULL; | |
22207 | } | |
22208 | ||
22209 | ||
22210 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22211 | PyObject *resultobj; | |
22212 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22213 | wxPoint *arg2 = 0 ; | |
22214 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22215 | wxPoint temp2 ; | |
22216 | PyObject * obj0 = 0 ; | |
22217 | PyObject * obj1 = 0 ; | |
994141e6 | 22218 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22219 | char *kwnames[] = { |
22220 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22221 | }; | |
22222 | ||
994141e6 | 22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22226 | { |
22227 | arg2 = &temp2; | |
22228 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22229 | } | |
994141e6 | 22230 | if (obj2) { |
15afbcd0 RD |
22231 | arg3 = (int) SWIG_AsInt(obj2); |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22233 | } |
d14a1e28 RD |
22234 | { |
22235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22236 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22237 | ||
22238 | wxPyEndAllowThreads(__tstate); | |
22239 | if (PyErr_Occurred()) SWIG_fail; | |
22240 | } | |
22241 | Py_INCREF(Py_None); resultobj = Py_None; | |
22242 | return resultobj; | |
22243 | fail: | |
22244 | return NULL; | |
22245 | } | |
22246 | ||
22247 | ||
22248 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22249 | PyObject *resultobj; | |
22250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22251 | int arg2 ; | |
22252 | int arg3 ; | |
22253 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22254 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22255 | PyObject * obj1 = 0 ; |
22256 | PyObject * obj2 = 0 ; | |
22257 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22258 | char *kwnames[] = { |
22259 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22260 | }; | |
22261 | ||
994141e6 | 22262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22265 | arg2 = (int) SWIG_AsInt(obj1); | |
22266 | if (PyErr_Occurred()) SWIG_fail; | |
22267 | arg3 = (int) SWIG_AsInt(obj2); | |
22268 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22269 | if (obj3) { |
15afbcd0 RD |
22270 | arg4 = (int) SWIG_AsInt(obj3); |
22271 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22272 | } |
d14a1e28 RD |
22273 | { |
22274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22275 | (arg1)->Move(arg2,arg3,arg4); | |
22276 | ||
22277 | wxPyEndAllowThreads(__tstate); | |
22278 | if (PyErr_Occurred()) SWIG_fail; | |
22279 | } | |
22280 | Py_INCREF(Py_None); resultobj = Py_None; | |
22281 | return resultobj; | |
22282 | fail: | |
22283 | return NULL; | |
22284 | } | |
22285 | ||
22286 | ||
22287 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22288 | PyObject *resultobj; | |
22289 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | char *kwnames[] = { | |
22292 | (char *) "self", NULL | |
22293 | }; | |
22294 | ||
22295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22298 | { |
22299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22300 | (arg1)->Raise(); | |
22301 | ||
22302 | wxPyEndAllowThreads(__tstate); | |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
22305 | Py_INCREF(Py_None); resultobj = Py_None; | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
22312 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj; | |
22314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22315 | PyObject * obj0 = 0 ; | |
22316 | char *kwnames[] = { | |
22317 | (char *) "self", NULL | |
22318 | }; | |
22319 | ||
22320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22323 | { |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | (arg1)->Lower(); | |
22326 | ||
22327 | wxPyEndAllowThreads(__tstate); | |
22328 | if (PyErr_Occurred()) SWIG_fail; | |
22329 | } | |
22330 | Py_INCREF(Py_None); resultobj = Py_None; | |
22331 | return resultobj; | |
22332 | fail: | |
22333 | return NULL; | |
22334 | } | |
22335 | ||
22336 | ||
22337 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22338 | PyObject *resultobj; | |
22339 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22340 | wxSize *arg2 = 0 ; | |
22341 | wxSize temp2 ; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | PyObject * obj1 = 0 ; | |
22344 | char *kwnames[] = { | |
22345 | (char *) "self",(char *) "size", NULL | |
22346 | }; | |
22347 | ||
22348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22351 | { |
22352 | arg2 = &temp2; | |
22353 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22354 | } | |
22355 | { | |
22356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22357 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22358 | ||
22359 | wxPyEndAllowThreads(__tstate); | |
22360 | if (PyErr_Occurred()) SWIG_fail; | |
22361 | } | |
22362 | Py_INCREF(Py_None); resultobj = Py_None; | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22372 | int arg2 ; | |
22373 | int arg3 ; | |
22374 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22375 | PyObject * obj1 = 0 ; |
22376 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22377 | char *kwnames[] = { |
22378 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22379 | }; | |
22380 | ||
994141e6 | 22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22384 | arg2 = (int) SWIG_AsInt(obj1); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | arg3 = (int) SWIG_AsInt(obj2); | |
22387 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22388 | { |
22389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22390 | (arg1)->SetClientSize(arg2,arg3); | |
22391 | ||
22392 | wxPyEndAllowThreads(__tstate); | |
22393 | if (PyErr_Occurred()) SWIG_fail; | |
22394 | } | |
22395 | Py_INCREF(Py_None); resultobj = Py_None; | |
22396 | return resultobj; | |
22397 | fail: | |
22398 | return NULL; | |
22399 | } | |
22400 | ||
22401 | ||
22402 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22403 | PyObject *resultobj; | |
22404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22405 | wxRect *arg2 = 0 ; | |
22406 | wxRect temp2 ; | |
22407 | PyObject * obj0 = 0 ; | |
22408 | PyObject * obj1 = 0 ; | |
22409 | char *kwnames[] = { | |
22410 | (char *) "self",(char *) "rect", NULL | |
22411 | }; | |
22412 | ||
22413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22416 | { |
22417 | arg2 = &temp2; | |
22418 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22419 | } | |
22420 | { | |
22421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22422 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22423 | ||
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | Py_INCREF(Py_None); resultobj = Py_None; | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22435 | PyObject *resultobj; | |
22436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22437 | wxPoint result; | |
22438 | PyObject * obj0 = 0 ; | |
22439 | char *kwnames[] = { | |
22440 | (char *) "self", NULL | |
22441 | }; | |
22442 | ||
22443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22446 | { |
22447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22448 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22449 | |
22450 | wxPyEndAllowThreads(__tstate); | |
22451 | if (PyErr_Occurred()) SWIG_fail; | |
22452 | } | |
22453 | { | |
22454 | wxPoint * resultptr; | |
22455 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22457 | } |
22458 | return resultobj; | |
22459 | fail: | |
22460 | return NULL; | |
22461 | } | |
22462 | ||
22463 | ||
22464 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22465 | PyObject *resultobj; | |
22466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22467 | int *arg2 = (int *) 0 ; | |
22468 | int *arg3 = (int *) 0 ; | |
22469 | int temp2 ; | |
22470 | int temp3 ; | |
22471 | PyObject * obj0 = 0 ; | |
22472 | char *kwnames[] = { | |
22473 | (char *) "self", NULL | |
22474 | }; | |
22475 | ||
22476 | arg2 = &temp2; | |
22477 | arg3 = &temp3; | |
22478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22481 | { |
22482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22483 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22484 | |
22485 | wxPyEndAllowThreads(__tstate); | |
22486 | if (PyErr_Occurred()) SWIG_fail; | |
22487 | } | |
22488 | Py_INCREF(Py_None); resultobj = Py_None; | |
22489 | { | |
22490 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22491 | resultobj = t_output_helper(resultobj,o); | |
22492 | } | |
22493 | { | |
22494 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22495 | resultobj = t_output_helper(resultobj,o); | |
22496 | } | |
22497 | return resultobj; | |
22498 | fail: | |
22499 | return NULL; | |
22500 | } | |
22501 | ||
22502 | ||
22503 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22504 | PyObject *resultobj; | |
22505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22506 | wxSize result; | |
22507 | PyObject * obj0 = 0 ; | |
22508 | char *kwnames[] = { | |
22509 | (char *) "self", NULL | |
22510 | }; | |
22511 | ||
22512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22515 | { |
22516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22517 | result = ((wxWindow const *)arg1)->GetSize(); | |
22518 | ||
22519 | wxPyEndAllowThreads(__tstate); | |
22520 | if (PyErr_Occurred()) SWIG_fail; | |
22521 | } | |
22522 | { | |
22523 | wxSize * resultptr; | |
22524 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22526 | } |
22527 | return resultobj; | |
22528 | fail: | |
22529 | return NULL; | |
22530 | } | |
22531 | ||
22532 | ||
22533 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22534 | PyObject *resultobj; | |
22535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22536 | int *arg2 = (int *) 0 ; | |
22537 | int *arg3 = (int *) 0 ; | |
22538 | int temp2 ; | |
22539 | int temp3 ; | |
22540 | PyObject * obj0 = 0 ; | |
22541 | char *kwnames[] = { | |
22542 | (char *) "self", NULL | |
22543 | }; | |
22544 | ||
22545 | arg2 = &temp2; | |
22546 | arg3 = &temp3; | |
22547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22550 | { |
22551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22552 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22553 | ||
22554 | wxPyEndAllowThreads(__tstate); | |
22555 | if (PyErr_Occurred()) SWIG_fail; | |
22556 | } | |
22557 | Py_INCREF(Py_None); resultobj = Py_None; | |
22558 | { | |
22559 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22560 | resultobj = t_output_helper(resultobj,o); | |
22561 | } | |
22562 | { | |
22563 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22564 | resultobj = t_output_helper(resultobj,o); | |
22565 | } | |
22566 | return resultobj; | |
22567 | fail: | |
22568 | return NULL; | |
22569 | } | |
22570 | ||
22571 | ||
22572 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22573 | PyObject *resultobj; | |
22574 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22575 | wxRect result; | |
22576 | PyObject * obj0 = 0 ; | |
22577 | char *kwnames[] = { | |
22578 | (char *) "self", NULL | |
22579 | }; | |
22580 | ||
22581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22584 | { |
22585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22586 | result = ((wxWindow const *)arg1)->GetRect(); | |
22587 | ||
22588 | wxPyEndAllowThreads(__tstate); | |
22589 | if (PyErr_Occurred()) SWIG_fail; | |
22590 | } | |
22591 | { | |
22592 | wxRect * resultptr; | |
22593 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22594 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22595 | } |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
22602 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22603 | PyObject *resultobj; | |
22604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22605 | wxSize result; | |
22606 | PyObject * obj0 = 0 ; | |
22607 | char *kwnames[] = { | |
22608 | (char *) "self", NULL | |
22609 | }; | |
22610 | ||
22611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22614 | { |
22615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22616 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22617 | ||
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
22621 | { | |
22622 | wxSize * resultptr; | |
22623 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22624 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22625 | } |
22626 | return resultobj; | |
22627 | fail: | |
22628 | return NULL; | |
22629 | } | |
22630 | ||
22631 | ||
22632 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22633 | PyObject *resultobj; | |
22634 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22635 | int *arg2 = (int *) 0 ; | |
22636 | int *arg3 = (int *) 0 ; | |
22637 | int temp2 ; | |
22638 | int temp3 ; | |
22639 | PyObject * obj0 = 0 ; | |
22640 | char *kwnames[] = { | |
22641 | (char *) "self", NULL | |
22642 | }; | |
22643 | ||
22644 | arg2 = &temp2; | |
22645 | arg3 = &temp3; | |
22646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22649 | { |
22650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22651 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22652 | ||
22653 | wxPyEndAllowThreads(__tstate); | |
22654 | if (PyErr_Occurred()) SWIG_fail; | |
22655 | } | |
22656 | Py_INCREF(Py_None); resultobj = Py_None; | |
22657 | { | |
22658 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22659 | resultobj = t_output_helper(resultobj,o); | |
22660 | } | |
22661 | { | |
22662 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22663 | resultobj = t_output_helper(resultobj,o); | |
22664 | } | |
22665 | return resultobj; | |
22666 | fail: | |
22667 | return NULL; | |
22668 | } | |
22669 | ||
22670 | ||
22671 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22672 | PyObject *resultobj; | |
22673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22674 | wxPoint result; | |
22675 | PyObject * obj0 = 0 ; | |
22676 | char *kwnames[] = { | |
22677 | (char *) "self", NULL | |
22678 | }; | |
22679 | ||
22680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22683 | { |
22684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22685 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22686 | ||
22687 | wxPyEndAllowThreads(__tstate); | |
22688 | if (PyErr_Occurred()) SWIG_fail; | |
22689 | } | |
22690 | { | |
22691 | wxPoint * resultptr; | |
22692 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22694 | } |
22695 | return resultobj; | |
22696 | fail: | |
22697 | return NULL; | |
22698 | } | |
22699 | ||
22700 | ||
22701 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22702 | PyObject *resultobj; | |
22703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22704 | wxRect result; | |
22705 | PyObject * obj0 = 0 ; | |
22706 | char *kwnames[] = { | |
22707 | (char *) "self", NULL | |
22708 | }; | |
22709 | ||
22710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22713 | { |
22714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22715 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22716 | ||
22717 | wxPyEndAllowThreads(__tstate); | |
22718 | if (PyErr_Occurred()) SWIG_fail; | |
22719 | } | |
22720 | { | |
22721 | wxRect * resultptr; | |
22722 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22723 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22724 | } |
22725 | return resultobj; | |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
22731 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22732 | PyObject *resultobj; | |
22733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22734 | wxSize result; | |
22735 | PyObject * obj0 = 0 ; | |
22736 | char *kwnames[] = { | |
22737 | (char *) "self", NULL | |
22738 | }; | |
22739 | ||
22740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22743 | { |
22744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22745 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22746 | ||
22747 | wxPyEndAllowThreads(__tstate); | |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
22749 | } | |
22750 | { | |
22751 | wxSize * resultptr; | |
22752 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22753 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22754 | } |
22755 | return resultobj; | |
22756 | fail: | |
22757 | return NULL; | |
22758 | } | |
22759 | ||
22760 | ||
22761 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22762 | PyObject *resultobj; | |
22763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22764 | int *arg2 = (int *) 0 ; | |
22765 | int *arg3 = (int *) 0 ; | |
22766 | int temp2 ; | |
22767 | int temp3 ; | |
22768 | PyObject * obj0 = 0 ; | |
22769 | char *kwnames[] = { | |
22770 | (char *) "self", NULL | |
22771 | }; | |
22772 | ||
22773 | arg2 = &temp2; | |
22774 | arg3 = &temp3; | |
22775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22778 | { |
22779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22780 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22781 | ||
22782 | wxPyEndAllowThreads(__tstate); | |
22783 | if (PyErr_Occurred()) SWIG_fail; | |
22784 | } | |
22785 | Py_INCREF(Py_None); resultobj = Py_None; | |
22786 | { | |
22787 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22788 | resultobj = t_output_helper(resultobj,o); | |
22789 | } | |
22790 | { | |
22791 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22792 | resultobj = t_output_helper(resultobj,o); | |
22793 | } | |
22794 | return resultobj; | |
22795 | fail: | |
22796 | return NULL; | |
22797 | } | |
22798 | ||
22799 | ||
22800 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22801 | PyObject *resultobj; | |
22802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22803 | wxSize result; | |
22804 | PyObject * obj0 = 0 ; | |
22805 | char *kwnames[] = { | |
22806 | (char *) "self", NULL | |
22807 | }; | |
22808 | ||
22809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22812 | { |
22813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22814 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22815 | ||
22816 | wxPyEndAllowThreads(__tstate); | |
22817 | if (PyErr_Occurred()) SWIG_fail; | |
22818 | } | |
22819 | { | |
22820 | wxSize * resultptr; | |
22821 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22823 | } |
22824 | return resultobj; | |
22825 | fail: | |
22826 | return NULL; | |
22827 | } | |
22828 | ||
22829 | ||
22830 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22831 | PyObject *resultobj; | |
22832 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22833 | int arg2 = (int) wxBOTH ; | |
22834 | PyObject * obj0 = 0 ; | |
994141e6 | 22835 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22836 | char *kwnames[] = { |
22837 | (char *) "self",(char *) "direction", NULL | |
22838 | }; | |
22839 | ||
994141e6 | 22840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22843 | if (obj1) { |
15afbcd0 RD |
22844 | arg2 = (int) SWIG_AsInt(obj1); |
22845 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22846 | } |
d14a1e28 RD |
22847 | { |
22848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22849 | (arg1)->Center(arg2); | |
22850 | ||
22851 | wxPyEndAllowThreads(__tstate); | |
22852 | if (PyErr_Occurred()) SWIG_fail; | |
22853 | } | |
22854 | Py_INCREF(Py_None); resultobj = Py_None; | |
22855 | return resultobj; | |
22856 | fail: | |
22857 | return NULL; | |
22858 | } | |
22859 | ||
22860 | ||
22861 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22862 | PyObject *resultobj; | |
22863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22864 | int arg2 = (int) wxBOTH ; | |
22865 | PyObject * obj0 = 0 ; | |
994141e6 | 22866 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22867 | char *kwnames[] = { |
22868 | (char *) "self",(char *) "dir", NULL | |
22869 | }; | |
22870 | ||
994141e6 | 22871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22874 | if (obj1) { |
15afbcd0 RD |
22875 | arg2 = (int) SWIG_AsInt(obj1); |
22876 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22877 | } |
d14a1e28 RD |
22878 | { |
22879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22880 | (arg1)->CenterOnScreen(arg2); | |
22881 | ||
22882 | wxPyEndAllowThreads(__tstate); | |
22883 | if (PyErr_Occurred()) SWIG_fail; | |
22884 | } | |
22885 | Py_INCREF(Py_None); resultobj = Py_None; | |
22886 | return resultobj; | |
22887 | fail: | |
22888 | return NULL; | |
22889 | } | |
22890 | ||
22891 | ||
22892 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22893 | PyObject *resultobj; | |
22894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22895 | int arg2 = (int) wxBOTH ; | |
22896 | PyObject * obj0 = 0 ; | |
994141e6 | 22897 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22898 | char *kwnames[] = { |
22899 | (char *) "self",(char *) "dir", NULL | |
22900 | }; | |
22901 | ||
994141e6 | 22902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22905 | if (obj1) { |
15afbcd0 RD |
22906 | arg2 = (int) SWIG_AsInt(obj1); |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22908 | } |
d14a1e28 RD |
22909 | { |
22910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22911 | (arg1)->CenterOnParent(arg2); | |
22912 | ||
22913 | wxPyEndAllowThreads(__tstate); | |
22914 | if (PyErr_Occurred()) SWIG_fail; | |
22915 | } | |
22916 | Py_INCREF(Py_None); resultobj = Py_None; | |
22917 | return resultobj; | |
22918 | fail: | |
22919 | return NULL; | |
22920 | } | |
22921 | ||
22922 | ||
22923 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22924 | PyObject *resultobj; | |
22925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22926 | PyObject * obj0 = 0 ; | |
22927 | char *kwnames[] = { | |
22928 | (char *) "self", NULL | |
22929 | }; | |
22930 | ||
22931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22934 | { |
22935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22936 | (arg1)->Fit(); | |
22937 | ||
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | Py_INCREF(Py_None); resultobj = Py_None; | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
22945 | } | |
22946 | ||
22947 | ||
22948 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22949 | PyObject *resultobj; | |
22950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22951 | PyObject * obj0 = 0 ; | |
22952 | char *kwnames[] = { | |
22953 | (char *) "self", NULL | |
22954 | }; | |
22955 | ||
22956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22959 | { |
22960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22961 | (arg1)->FitInside(); | |
22962 | ||
22963 | wxPyEndAllowThreads(__tstate); | |
22964 | if (PyErr_Occurred()) SWIG_fail; | |
22965 | } | |
22966 | Py_INCREF(Py_None); resultobj = Py_None; | |
22967 | return resultobj; | |
22968 | fail: | |
22969 | return NULL; | |
22970 | } | |
22971 | ||
22972 | ||
74a57fcd | 22973 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
22974 | PyObject *resultobj; |
22975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22976 | int arg2 ; | |
22977 | int arg3 ; | |
22978 | int arg4 = (int) -1 ; | |
22979 | int arg5 = (int) -1 ; | |
22980 | int arg6 = (int) -1 ; | |
22981 | int arg7 = (int) -1 ; | |
22982 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22983 | PyObject * obj1 = 0 ; |
22984 | PyObject * obj2 = 0 ; | |
22985 | PyObject * obj3 = 0 ; | |
22986 | PyObject * obj4 = 0 ; | |
22987 | PyObject * obj5 = 0 ; | |
22988 | PyObject * obj6 = 0 ; | |
d14a1e28 | 22989 | |
74a57fcd | 22990 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
22991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22993 | arg2 = (int) SWIG_AsInt(obj1); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | arg3 = (int) SWIG_AsInt(obj2); | |
22996 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22997 | if (obj3) { |
15afbcd0 RD |
22998 | arg4 = (int) SWIG_AsInt(obj3); |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23000 | } |
23001 | if (obj4) { | |
15afbcd0 RD |
23002 | arg5 = (int) SWIG_AsInt(obj4); |
23003 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23004 | } |
23005 | if (obj5) { | |
15afbcd0 RD |
23006 | arg6 = (int) SWIG_AsInt(obj5); |
23007 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23008 | } |
23009 | if (obj6) { | |
15afbcd0 RD |
23010 | arg7 = (int) SWIG_AsInt(obj6); |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23012 | } |
d14a1e28 RD |
23013 | { |
23014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23015 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23016 | ||
23017 | wxPyEndAllowThreads(__tstate); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | } | |
23020 | Py_INCREF(Py_None); resultobj = Py_None; | |
23021 | return resultobj; | |
23022 | fail: | |
23023 | return NULL; | |
23024 | } | |
23025 | ||
23026 | ||
74a57fcd RD |
23027 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23028 | PyObject *resultobj; | |
23029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23030 | wxSize *arg2 = 0 ; | |
23031 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23032 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23033 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23034 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23035 | wxSize temp2 ; | |
23036 | wxSize temp3 ; | |
23037 | wxSize temp4 ; | |
23038 | PyObject * obj0 = 0 ; | |
23039 | PyObject * obj1 = 0 ; | |
23040 | PyObject * obj2 = 0 ; | |
23041 | PyObject * obj3 = 0 ; | |
23042 | ||
23043 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23046 | { | |
23047 | arg2 = &temp2; | |
23048 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23049 | } | |
23050 | if (obj2) { | |
23051 | { | |
23052 | arg3 = &temp3; | |
23053 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23054 | } | |
23055 | } | |
23056 | if (obj3) { | |
23057 | { | |
23058 | arg4 = &temp4; | |
23059 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23060 | } | |
23061 | } | |
23062 | { | |
23063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23064 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
23065 | ||
23066 | wxPyEndAllowThreads(__tstate); | |
23067 | if (PyErr_Occurred()) SWIG_fail; | |
23068 | } | |
23069 | Py_INCREF(Py_None); resultobj = Py_None; | |
23070 | return resultobj; | |
23071 | fail: | |
23072 | return NULL; | |
23073 | } | |
23074 | ||
23075 | ||
23076 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { | |
23077 | int argc; | |
23078 | PyObject *argv[8]; | |
23079 | int ii; | |
23080 | ||
23081 | argc = PyObject_Length(args); | |
23082 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23083 | argv[ii] = PyTuple_GetItem(args,ii); | |
23084 | } | |
23085 | if ((argc >= 2) && (argc <= 4)) { | |
23086 | int _v; | |
23087 | { | |
23088 | void *ptr; | |
23089 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23090 | _v = 0; | |
23091 | PyErr_Clear(); | |
23092 | } else { | |
23093 | _v = 1; | |
23094 | } | |
23095 | } | |
23096 | if (_v) { | |
23097 | { | |
23098 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23099 | } | |
23100 | if (_v) { | |
23101 | if (argc <= 2) { | |
23102 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23103 | } | |
23104 | { | |
23105 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23106 | } | |
23107 | if (_v) { | |
23108 | if (argc <= 3) { | |
23109 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23110 | } | |
23111 | { | |
23112 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23113 | } | |
23114 | if (_v) { | |
23115 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23116 | } | |
23117 | } | |
23118 | } | |
23119 | } | |
23120 | } | |
23121 | if ((argc >= 3) && (argc <= 7)) { | |
23122 | int _v; | |
23123 | { | |
23124 | void *ptr; | |
23125 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23126 | _v = 0; | |
23127 | PyErr_Clear(); | |
23128 | } else { | |
23129 | _v = 1; | |
23130 | } | |
23131 | } | |
23132 | if (_v) { | |
23133 | _v = SWIG_CheckInt(argv[1]); | |
23134 | if (_v) { | |
23135 | _v = SWIG_CheckInt(argv[2]); | |
23136 | if (_v) { | |
23137 | if (argc <= 3) { | |
23138 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23139 | } | |
23140 | _v = SWIG_CheckInt(argv[3]); | |
23141 | if (_v) { | |
23142 | if (argc <= 4) { | |
23143 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23144 | } | |
23145 | _v = SWIG_CheckInt(argv[4]); | |
23146 | if (_v) { | |
23147 | if (argc <= 5) { | |
23148 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23149 | } | |
23150 | _v = SWIG_CheckInt(argv[5]); | |
23151 | if (_v) { | |
23152 | if (argc <= 6) { | |
23153 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23154 | } | |
23155 | _v = SWIG_CheckInt(argv[6]); | |
23156 | if (_v) { | |
23157 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23158 | } | |
23159 | } | |
23160 | } | |
23161 | } | |
23162 | } | |
23163 | } | |
23164 | } | |
23165 | } | |
23166 | ||
23167 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
23172 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
23173 | PyObject *resultobj; |
23174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23175 | int arg2 ; | |
23176 | int arg3 ; | |
23177 | int arg4 = (int) -1 ; | |
23178 | int arg5 = (int) -1 ; | |
23179 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23180 | PyObject * obj1 = 0 ; |
23181 | PyObject * obj2 = 0 ; | |
23182 | PyObject * obj3 = 0 ; | |
23183 | PyObject * obj4 = 0 ; | |
d14a1e28 | 23184 | |
74a57fcd | 23185 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23188 | arg2 = (int) SWIG_AsInt(obj1); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | arg3 = (int) SWIG_AsInt(obj2); | |
23191 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23192 | if (obj3) { |
15afbcd0 RD |
23193 | arg4 = (int) SWIG_AsInt(obj3); |
23194 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23195 | } |
23196 | if (obj4) { | |
15afbcd0 RD |
23197 | arg5 = (int) SWIG_AsInt(obj4); |
23198 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23199 | } |
d14a1e28 RD |
23200 | { |
23201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23202 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
23203 | ||
23204 | wxPyEndAllowThreads(__tstate); | |
23205 | if (PyErr_Occurred()) SWIG_fail; | |
23206 | } | |
23207 | Py_INCREF(Py_None); resultobj = Py_None; | |
23208 | return resultobj; | |
23209 | fail: | |
23210 | return NULL; | |
23211 | } | |
23212 | ||
23213 | ||
74a57fcd RD |
23214 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23215 | PyObject *resultobj; | |
23216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23217 | wxSize *arg2 = 0 ; | |
23218 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23219 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23220 | wxSize temp2 ; | |
23221 | wxSize temp3 ; | |
23222 | PyObject * obj0 = 0 ; | |
23223 | PyObject * obj1 = 0 ; | |
23224 | PyObject * obj2 = 0 ; | |
23225 | ||
23226 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; | |
23227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23229 | { | |
23230 | arg2 = &temp2; | |
23231 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23232 | } | |
23233 | if (obj2) { | |
23234 | { | |
23235 | arg3 = &temp3; | |
23236 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23237 | } | |
23238 | } | |
23239 | { | |
23240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23241 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23242 | ||
23243 | wxPyEndAllowThreads(__tstate); | |
23244 | if (PyErr_Occurred()) SWIG_fail; | |
23245 | } | |
23246 | Py_INCREF(Py_None); resultobj = Py_None; | |
23247 | return resultobj; | |
23248 | fail: | |
23249 | return NULL; | |
23250 | } | |
23251 | ||
23252 | ||
23253 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23254 | int argc; | |
23255 | PyObject *argv[6]; | |
23256 | int ii; | |
23257 | ||
23258 | argc = PyObject_Length(args); | |
23259 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23260 | argv[ii] = PyTuple_GetItem(args,ii); | |
23261 | } | |
23262 | if ((argc >= 2) && (argc <= 3)) { | |
23263 | int _v; | |
23264 | { | |
23265 | void *ptr; | |
23266 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23267 | _v = 0; | |
23268 | PyErr_Clear(); | |
23269 | } else { | |
23270 | _v = 1; | |
23271 | } | |
23272 | } | |
23273 | if (_v) { | |
23274 | { | |
23275 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23276 | } | |
23277 | if (_v) { | |
23278 | if (argc <= 2) { | |
23279 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23280 | } | |
23281 | { | |
23282 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23283 | } | |
23284 | if (_v) { | |
23285 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23286 | } | |
23287 | } | |
23288 | } | |
23289 | } | |
23290 | if ((argc >= 3) && (argc <= 5)) { | |
23291 | int _v; | |
23292 | { | |
23293 | void *ptr; | |
23294 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23295 | _v = 0; | |
23296 | PyErr_Clear(); | |
23297 | } else { | |
23298 | _v = 1; | |
23299 | } | |
23300 | } | |
23301 | if (_v) { | |
23302 | _v = SWIG_CheckInt(argv[1]); | |
23303 | if (_v) { | |
23304 | _v = SWIG_CheckInt(argv[2]); | |
23305 | if (_v) { | |
23306 | if (argc <= 3) { | |
23307 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23308 | } | |
23309 | _v = SWIG_CheckInt(argv[3]); | |
23310 | if (_v) { | |
23311 | if (argc <= 4) { | |
23312 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23313 | } | |
23314 | _v = SWIG_CheckInt(argv[4]); | |
23315 | if (_v) { | |
23316 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23317 | } | |
23318 | } | |
23319 | } | |
23320 | } | |
23321 | } | |
23322 | } | |
23323 | ||
23324 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23325 | return NULL; | |
23326 | } | |
23327 | ||
23328 | ||
d14a1e28 RD |
23329 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
23330 | PyObject *resultobj; | |
23331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23332 | int result; | |
23333 | PyObject * obj0 = 0 ; | |
23334 | char *kwnames[] = { | |
23335 | (char *) "self", NULL | |
23336 | }; | |
23337 | ||
23338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23341 | { |
23342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23343 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
23344 | ||
23345 | wxPyEndAllowThreads(__tstate); | |
23346 | if (PyErr_Occurred()) SWIG_fail; | |
23347 | } | |
15afbcd0 | 23348 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23349 | return resultobj; |
23350 | fail: | |
23351 | return NULL; | |
23352 | } | |
23353 | ||
23354 | ||
23355 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23356 | PyObject *resultobj; | |
23357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23358 | int result; | |
23359 | PyObject * obj0 = 0 ; | |
23360 | char *kwnames[] = { | |
23361 | (char *) "self", NULL | |
23362 | }; | |
23363 | ||
23364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23367 | { |
23368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23369 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
23370 | ||
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
15afbcd0 | 23374 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23375 | return resultobj; |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj; | |
23383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23384 | int result; | |
23385 | PyObject * obj0 = 0 ; | |
23386 | char *kwnames[] = { | |
23387 | (char *) "self", NULL | |
23388 | }; | |
23389 | ||
23390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23393 | { |
23394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23395 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
23396 | ||
23397 | wxPyEndAllowThreads(__tstate); | |
23398 | if (PyErr_Occurred()) SWIG_fail; | |
23399 | } | |
15afbcd0 | 23400 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23401 | return resultobj; |
23402 | fail: | |
23403 | return NULL; | |
23404 | } | |
23405 | ||
23406 | ||
23407 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23408 | PyObject *resultobj; | |
23409 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23410 | int result; | |
23411 | PyObject * obj0 = 0 ; | |
23412 | char *kwnames[] = { | |
23413 | (char *) "self", NULL | |
23414 | }; | |
23415 | ||
23416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23419 | { |
23420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23421 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
23422 | ||
23423 | wxPyEndAllowThreads(__tstate); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
23425 | } | |
15afbcd0 | 23426 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23427 | return resultobj; |
23428 | fail: | |
23429 | return NULL; | |
23430 | } | |
23431 | ||
23432 | ||
23433 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23434 | PyObject *resultobj; | |
23435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23436 | wxSize result; | |
23437 | PyObject * obj0 = 0 ; | |
23438 | char *kwnames[] = { | |
23439 | (char *) "self", NULL | |
23440 | }; | |
23441 | ||
23442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23445 | { |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | { | |
23453 | wxSize * resultptr; | |
23454 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23456 | } |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
74a57fcd RD |
23463 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23464 | PyObject *resultobj; | |
23465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23466 | wxSize result; | |
23467 | PyObject * obj0 = 0 ; | |
23468 | char *kwnames[] = { | |
23469 | (char *) "self", NULL | |
23470 | }; | |
23471 | ||
23472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; | |
23473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23475 | { | |
23476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23477 | result = ((wxWindow const *)arg1)->GetMinSize(); | |
23478 | ||
23479 | wxPyEndAllowThreads(__tstate); | |
23480 | if (PyErr_Occurred()) SWIG_fail; | |
23481 | } | |
23482 | { | |
23483 | wxSize * resultptr; | |
23484 | resultptr = new wxSize((wxSize &) result); | |
23485 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23486 | } | |
23487 | return resultobj; | |
23488 | fail: | |
23489 | return NULL; | |
23490 | } | |
23491 | ||
23492 | ||
d14a1e28 RD |
23493 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23494 | PyObject *resultobj; | |
23495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23496 | wxSize *arg2 = 0 ; | |
23497 | wxSize temp2 ; | |
23498 | PyObject * obj0 = 0 ; | |
23499 | PyObject * obj1 = 0 ; | |
23500 | char *kwnames[] = { | |
23501 | (char *) "self",(char *) "size", NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23507 | { |
23508 | arg2 = &temp2; | |
23509 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23510 | } | |
23511 | { | |
23512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23513 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23514 | ||
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
23518 | Py_INCREF(Py_None); resultobj = Py_None; | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
23525 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23526 | PyObject *resultobj; | |
23527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23528 | int arg2 ; | |
23529 | int arg3 ; | |
23530 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23531 | PyObject * obj1 = 0 ; |
23532 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23533 | char *kwnames[] = { |
23534 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23535 | }; | |
23536 | ||
994141e6 | 23537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23540 | arg2 = (int) SWIG_AsInt(obj1); | |
23541 | if (PyErr_Occurred()) SWIG_fail; | |
23542 | arg3 = (int) SWIG_AsInt(obj2); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23544 | { |
23545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23546 | (arg1)->SetVirtualSize(arg2,arg3); | |
23547 | ||
23548 | wxPyEndAllowThreads(__tstate); | |
23549 | if (PyErr_Occurred()) SWIG_fail; | |
23550 | } | |
23551 | Py_INCREF(Py_None); resultobj = Py_None; | |
23552 | return resultobj; | |
23553 | fail: | |
23554 | return NULL; | |
23555 | } | |
23556 | ||
23557 | ||
23558 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23559 | PyObject *resultobj; | |
23560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23561 | wxSize result; | |
23562 | PyObject * obj0 = 0 ; | |
23563 | char *kwnames[] = { | |
23564 | (char *) "self", NULL | |
23565 | }; | |
23566 | ||
23567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23570 | { |
23571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23572 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23573 | ||
23574 | wxPyEndAllowThreads(__tstate); | |
23575 | if (PyErr_Occurred()) SWIG_fail; | |
23576 | } | |
23577 | { | |
23578 | wxSize * resultptr; | |
23579 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23580 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23581 | } |
23582 | return resultobj; | |
23583 | fail: | |
23584 | return NULL; | |
23585 | } | |
23586 | ||
23587 | ||
23588 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23589 | PyObject *resultobj; | |
23590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23591 | int *arg2 = (int *) 0 ; | |
23592 | int *arg3 = (int *) 0 ; | |
23593 | int temp2 ; | |
23594 | int temp3 ; | |
23595 | PyObject * obj0 = 0 ; | |
23596 | char *kwnames[] = { | |
23597 | (char *) "self", NULL | |
23598 | }; | |
23599 | ||
23600 | arg2 = &temp2; | |
23601 | arg3 = &temp3; | |
23602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23605 | { |
23606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23607 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23608 | ||
23609 | wxPyEndAllowThreads(__tstate); | |
23610 | if (PyErr_Occurred()) SWIG_fail; | |
23611 | } | |
23612 | Py_INCREF(Py_None); resultobj = Py_None; | |
23613 | { | |
23614 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23615 | resultobj = t_output_helper(resultobj,o); | |
23616 | } | |
23617 | { | |
23618 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23619 | resultobj = t_output_helper(resultobj,o); | |
23620 | } | |
23621 | return resultobj; | |
23622 | fail: | |
23623 | return NULL; | |
23624 | } | |
23625 | ||
23626 | ||
23627 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23628 | PyObject *resultobj; | |
23629 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23630 | wxSize result; | |
23631 | PyObject * obj0 = 0 ; | |
23632 | char *kwnames[] = { | |
23633 | (char *) "self", NULL | |
23634 | }; | |
23635 | ||
23636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23639 | { |
23640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23641 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23642 | ||
23643 | wxPyEndAllowThreads(__tstate); | |
23644 | if (PyErr_Occurred()) SWIG_fail; | |
23645 | } | |
23646 | { | |
23647 | wxSize * resultptr; | |
23648 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23649 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23650 | } |
23651 | return resultobj; | |
23652 | fail: | |
23653 | return NULL; | |
23654 | } | |
23655 | ||
23656 | ||
23657 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23658 | PyObject *resultobj; | |
23659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23660 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23661 | bool result; |
23662 | PyObject * obj0 = 0 ; | |
23663 | PyObject * obj1 = 0 ; | |
23664 | char *kwnames[] = { | |
23665 | (char *) "self",(char *) "show", NULL | |
23666 | }; | |
23667 | ||
23668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23671 | if (obj1) { |
15afbcd0 RD |
23672 | arg2 = (bool) SWIG_AsBool(obj1); |
23673 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23674 | } |
23675 | { | |
23676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23677 | result = (bool)(arg1)->Show(arg2); | |
23678 | ||
23679 | wxPyEndAllowThreads(__tstate); | |
23680 | if (PyErr_Occurred()) SWIG_fail; | |
23681 | } | |
4f89f6a3 RD |
23682 | { |
23683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23684 | } | |
d14a1e28 RD |
23685 | return resultobj; |
23686 | fail: | |
23687 | return NULL; | |
23688 | } | |
23689 | ||
23690 | ||
23691 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23692 | PyObject *resultobj; | |
23693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23694 | bool result; | |
23695 | PyObject * obj0 = 0 ; | |
23696 | char *kwnames[] = { | |
23697 | (char *) "self", NULL | |
23698 | }; | |
23699 | ||
23700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23703 | { |
23704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23705 | result = (bool)(arg1)->Hide(); | |
23706 | ||
23707 | wxPyEndAllowThreads(__tstate); | |
23708 | if (PyErr_Occurred()) SWIG_fail; | |
23709 | } | |
4f89f6a3 RD |
23710 | { |
23711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23712 | } | |
d14a1e28 RD |
23713 | return resultobj; |
23714 | fail: | |
23715 | return NULL; | |
23716 | } | |
23717 | ||
23718 | ||
23719 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23720 | PyObject *resultobj; | |
23721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23722 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23723 | bool result; |
23724 | PyObject * obj0 = 0 ; | |
23725 | PyObject * obj1 = 0 ; | |
23726 | char *kwnames[] = { | |
23727 | (char *) "self",(char *) "enable", NULL | |
23728 | }; | |
23729 | ||
23730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23733 | if (obj1) { |
15afbcd0 RD |
23734 | arg2 = (bool) SWIG_AsBool(obj1); |
23735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23736 | } |
23737 | { | |
23738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23739 | result = (bool)(arg1)->Enable(arg2); | |
23740 | ||
23741 | wxPyEndAllowThreads(__tstate); | |
23742 | if (PyErr_Occurred()) SWIG_fail; | |
23743 | } | |
4f89f6a3 RD |
23744 | { |
23745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23746 | } | |
d14a1e28 RD |
23747 | return resultobj; |
23748 | fail: | |
23749 | return NULL; | |
23750 | } | |
23751 | ||
23752 | ||
23753 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23754 | PyObject *resultobj; | |
23755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23756 | bool result; | |
23757 | PyObject * obj0 = 0 ; | |
23758 | char *kwnames[] = { | |
23759 | (char *) "self", NULL | |
23760 | }; | |
23761 | ||
23762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23765 | { |
23766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23767 | result = (bool)(arg1)->Disable(); | |
23768 | ||
23769 | wxPyEndAllowThreads(__tstate); | |
23770 | if (PyErr_Occurred()) SWIG_fail; | |
23771 | } | |
4f89f6a3 RD |
23772 | { |
23773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23774 | } | |
d14a1e28 RD |
23775 | return resultobj; |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23784 | bool result; | |
23785 | PyObject * obj0 = 0 ; | |
23786 | char *kwnames[] = { | |
23787 | (char *) "self", NULL | |
23788 | }; | |
23789 | ||
23790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23793 | { |
23794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23795 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23796 | ||
23797 | wxPyEndAllowThreads(__tstate); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
4f89f6a3 RD |
23800 | { |
23801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23802 | } | |
d14a1e28 RD |
23803 | return resultobj; |
23804 | fail: | |
23805 | return NULL; | |
23806 | } | |
23807 | ||
23808 | ||
23809 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23810 | PyObject *resultobj; | |
23811 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23812 | bool result; | |
23813 | PyObject * obj0 = 0 ; | |
23814 | char *kwnames[] = { | |
23815 | (char *) "self", NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23821 | { |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
4f89f6a3 RD |
23828 | { |
23829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23830 | } | |
d14a1e28 RD |
23831 | return resultobj; |
23832 | fail: | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
23837 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23838 | PyObject *resultobj; | |
23839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23840 | long arg2 ; | |
23841 | PyObject * obj0 = 0 ; | |
994141e6 | 23842 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23843 | char *kwnames[] = { |
23844 | (char *) "self",(char *) "style", NULL | |
23845 | }; | |
23846 | ||
994141e6 | 23847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23850 | arg2 = (long) SWIG_AsLong(obj1); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23852 | { |
23853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23854 | (arg1)->SetWindowStyleFlag(arg2); | |
23855 | ||
23856 | wxPyEndAllowThreads(__tstate); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
23858 | } | |
23859 | Py_INCREF(Py_None); resultobj = Py_None; | |
23860 | return resultobj; | |
23861 | fail: | |
23862 | return NULL; | |
23863 | } | |
23864 | ||
23865 | ||
23866 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23867 | PyObject *resultobj; | |
23868 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23869 | long result; | |
23870 | PyObject * obj0 = 0 ; | |
23871 | char *kwnames[] = { | |
23872 | (char *) "self", NULL | |
23873 | }; | |
23874 | ||
23875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23878 | { |
23879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23880 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23881 | ||
23882 | wxPyEndAllowThreads(__tstate); | |
23883 | if (PyErr_Occurred()) SWIG_fail; | |
23884 | } | |
15afbcd0 | 23885 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23886 | return resultobj; |
23887 | fail: | |
23888 | return NULL; | |
23889 | } | |
23890 | ||
23891 | ||
23892 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23893 | PyObject *resultobj; | |
23894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23895 | int arg2 ; | |
23896 | bool result; | |
23897 | PyObject * obj0 = 0 ; | |
994141e6 | 23898 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23899 | char *kwnames[] = { |
23900 | (char *) "self",(char *) "flag", NULL | |
23901 | }; | |
23902 | ||
994141e6 | 23903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23906 | arg2 = (int) SWIG_AsInt(obj1); | |
23907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23908 | { |
23909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23910 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23911 | ||
23912 | wxPyEndAllowThreads(__tstate); | |
23913 | if (PyErr_Occurred()) SWIG_fail; | |
23914 | } | |
4f89f6a3 RD |
23915 | { |
23916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23917 | } | |
d14a1e28 RD |
23918 | return resultobj; |
23919 | fail: | |
23920 | return NULL; | |
23921 | } | |
23922 | ||
23923 | ||
23924 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23925 | PyObject *resultobj; | |
23926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23927 | bool result; | |
23928 | PyObject * obj0 = 0 ; | |
23929 | char *kwnames[] = { | |
23930 | (char *) "self", NULL | |
23931 | }; | |
23932 | ||
23933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23936 | { |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23938 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23939 | ||
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
4f89f6a3 RD |
23943 | { |
23944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23945 | } | |
d14a1e28 RD |
23946 | return resultobj; |
23947 | fail: | |
23948 | return NULL; | |
23949 | } | |
23950 | ||
23951 | ||
23952 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23953 | PyObject *resultobj; | |
23954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23955 | long arg2 ; | |
23956 | PyObject * obj0 = 0 ; | |
994141e6 | 23957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23958 | char *kwnames[] = { |
23959 | (char *) "self",(char *) "exStyle", NULL | |
23960 | }; | |
23961 | ||
994141e6 | 23962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23965 | arg2 = (long) SWIG_AsLong(obj1); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23967 | { |
23968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23969 | (arg1)->SetExtraStyle(arg2); | |
23970 | ||
23971 | wxPyEndAllowThreads(__tstate); | |
23972 | if (PyErr_Occurred()) SWIG_fail; | |
23973 | } | |
23974 | Py_INCREF(Py_None); resultobj = Py_None; | |
23975 | return resultobj; | |
23976 | fail: | |
23977 | return NULL; | |
23978 | } | |
23979 | ||
23980 | ||
23981 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23982 | PyObject *resultobj; | |
23983 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23984 | long result; | |
23985 | PyObject * obj0 = 0 ; | |
23986 | char *kwnames[] = { | |
23987 | (char *) "self", NULL | |
23988 | }; | |
23989 | ||
23990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23993 | { |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
15afbcd0 | 24000 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24001 | return resultobj; |
24002 | fail: | |
24003 | return NULL; | |
24004 | } | |
24005 | ||
24006 | ||
24007 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24008 | PyObject *resultobj; | |
24009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24010 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24011 | PyObject * obj0 = 0 ; |
24012 | PyObject * obj1 = 0 ; | |
24013 | char *kwnames[] = { | |
24014 | (char *) "self",(char *) "modal", NULL | |
24015 | }; | |
24016 | ||
24017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24020 | if (obj1) { |
15afbcd0 RD |
24021 | arg2 = (bool) SWIG_AsBool(obj1); |
24022 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24023 | } |
24024 | { | |
24025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24026 | (arg1)->MakeModal(arg2); | |
24027 | ||
24028 | wxPyEndAllowThreads(__tstate); | |
24029 | if (PyErr_Occurred()) SWIG_fail; | |
24030 | } | |
24031 | Py_INCREF(Py_None); resultobj = Py_None; | |
24032 | return resultobj; | |
24033 | fail: | |
24034 | return NULL; | |
24035 | } | |
24036 | ||
24037 | ||
24038 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24039 | PyObject *resultobj; | |
24040 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24041 | bool arg2 ; | |
24042 | PyObject * obj0 = 0 ; | |
24043 | PyObject * obj1 = 0 ; | |
24044 | char *kwnames[] = { | |
24045 | (char *) "self",(char *) "enableTheme", NULL | |
24046 | }; | |
24047 | ||
24048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24051 | arg2 = (bool) SWIG_AsBool(obj1); | |
24052 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24053 | { |
24054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24055 | (arg1)->SetThemeEnabled(arg2); | |
24056 | ||
24057 | wxPyEndAllowThreads(__tstate); | |
24058 | if (PyErr_Occurred()) SWIG_fail; | |
24059 | } | |
24060 | Py_INCREF(Py_None); resultobj = Py_None; | |
24061 | return resultobj; | |
24062 | fail: | |
24063 | return NULL; | |
24064 | } | |
24065 | ||
24066 | ||
24067 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24068 | PyObject *resultobj; | |
24069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24070 | bool result; | |
24071 | PyObject * obj0 = 0 ; | |
24072 | char *kwnames[] = { | |
24073 | (char *) "self", NULL | |
24074 | }; | |
24075 | ||
24076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24079 | { |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24082 | ||
24083 | wxPyEndAllowThreads(__tstate); | |
24084 | if (PyErr_Occurred()) SWIG_fail; | |
24085 | } | |
4f89f6a3 RD |
24086 | { |
24087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24088 | } | |
d14a1e28 RD |
24089 | return resultobj; |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
d14a1e28 RD |
24095 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
24096 | PyObject *resultobj; | |
24097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24098 | PyObject * obj0 = 0 ; | |
24099 | char *kwnames[] = { | |
24100 | (char *) "self", NULL | |
24101 | }; | |
24102 | ||
24103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24106 | { |
24107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24108 | (arg1)->SetFocus(); | |
24109 | ||
24110 | wxPyEndAllowThreads(__tstate); | |
24111 | if (PyErr_Occurred()) SWIG_fail; | |
24112 | } | |
24113 | Py_INCREF(Py_None); resultobj = Py_None; | |
24114 | return resultobj; | |
24115 | fail: | |
24116 | return NULL; | |
24117 | } | |
24118 | ||
24119 | ||
24120 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24121 | PyObject *resultobj; | |
24122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24123 | PyObject * obj0 = 0 ; | |
24124 | char *kwnames[] = { | |
24125 | (char *) "self", NULL | |
24126 | }; | |
24127 | ||
24128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24131 | { |
24132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24133 | (arg1)->SetFocusFromKbd(); | |
24134 | ||
24135 | wxPyEndAllowThreads(__tstate); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | } | |
24138 | Py_INCREF(Py_None); resultobj = Py_None; | |
24139 | return resultobj; | |
24140 | fail: | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
24145 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24146 | PyObject *resultobj; | |
24147 | wxWindow *result; | |
24148 | char *kwnames[] = { | |
24149 | NULL | |
24150 | }; | |
24151 | ||
24152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | result = (wxWindow *)wxWindow::FindFocus(); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
24160 | { | |
24161 | resultobj = wxPyMake_wxObject(result); | |
24162 | } | |
24163 | return resultobj; | |
24164 | fail: | |
24165 | return NULL; | |
24166 | } | |
24167 | ||
24168 | ||
24169 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24170 | PyObject *resultobj; | |
24171 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24172 | bool result; | |
24173 | PyObject * obj0 = 0 ; | |
24174 | char *kwnames[] = { | |
24175 | (char *) "self", NULL | |
24176 | }; | |
24177 | ||
24178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24181 | { |
24182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24183 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24184 | ||
24185 | wxPyEndAllowThreads(__tstate); | |
24186 | if (PyErr_Occurred()) SWIG_fail; | |
24187 | } | |
4f89f6a3 RD |
24188 | { |
24189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24190 | } | |
d14a1e28 RD |
24191 | return resultobj; |
24192 | fail: | |
24193 | return NULL; | |
24194 | } | |
24195 | ||
24196 | ||
24197 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24198 | PyObject *resultobj; | |
24199 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24200 | bool result; | |
24201 | PyObject * obj0 = 0 ; | |
24202 | char *kwnames[] = { | |
24203 | (char *) "self", NULL | |
24204 | }; | |
24205 | ||
24206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24209 | { |
24210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24211 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
4f89f6a3 RD |
24216 | { |
24217 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24218 | } | |
d14a1e28 RD |
24219 | return resultobj; |
24220 | fail: | |
24221 | return NULL; | |
24222 | } | |
24223 | ||
24224 | ||
24225 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24226 | PyObject *resultobj; | |
24227 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24228 | wxWindow *result; | |
24229 | PyObject * obj0 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24237 | { |
24238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24239 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24240 | ||
24241 | wxPyEndAllowThreads(__tstate); | |
24242 | if (PyErr_Occurred()) SWIG_fail; | |
24243 | } | |
24244 | { | |
24245 | resultobj = wxPyMake_wxObject(result); | |
24246 | } | |
24247 | return resultobj; | |
24248 | fail: | |
24249 | return NULL; | |
24250 | } | |
24251 | ||
24252 | ||
24253 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24254 | PyObject *resultobj; | |
24255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24256 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24257 | wxWindow *result; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | PyObject * obj1 = 0 ; | |
24260 | char *kwnames[] = { | |
24261 | (char *) "self",(char *) "child", NULL | |
24262 | }; | |
24263 | ||
24264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24269 | { |
24270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24271 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24272 | ||
24273 | wxPyEndAllowThreads(__tstate); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | { | |
24277 | resultobj = wxPyMake_wxObject(result); | |
24278 | } | |
24279 | return resultobj; | |
24280 | fail: | |
24281 | return NULL; | |
24282 | } | |
24283 | ||
24284 | ||
24285 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24286 | PyObject *resultobj; | |
24287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24288 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24289 | PyObject * obj0 = 0 ; | |
24290 | PyObject * obj1 = 0 ; | |
24291 | char *kwnames[] = { | |
24292 | (char *) "self",(char *) "win", NULL | |
24293 | }; | |
24294 | ||
24295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24298 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24300 | { |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | (arg1)->SetTmpDefaultItem(arg2); | |
24303 | ||
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
24307 | Py_INCREF(Py_None); resultobj = Py_None; | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
24314 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24315 | PyObject *resultobj; | |
24316 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24317 | PyObject *result; | |
24318 | PyObject * obj0 = 0 ; | |
24319 | char *kwnames[] = { | |
24320 | (char *) "self", NULL | |
24321 | }; | |
24322 | ||
24323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24326 | { |
24327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24328 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24329 | ||
24330 | wxPyEndAllowThreads(__tstate); | |
24331 | if (PyErr_Occurred()) SWIG_fail; | |
24332 | } | |
24333 | resultobj = result; | |
24334 | return resultobj; | |
24335 | fail: | |
24336 | return NULL; | |
24337 | } | |
24338 | ||
24339 | ||
24340 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24341 | PyObject *resultobj; | |
24342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24343 | wxWindow *result; | |
24344 | PyObject * obj0 = 0 ; | |
24345 | char *kwnames[] = { | |
24346 | (char *) "self", NULL | |
24347 | }; | |
24348 | ||
24349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24352 | { |
24353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24354 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24355 | ||
24356 | wxPyEndAllowThreads(__tstate); | |
24357 | if (PyErr_Occurred()) SWIG_fail; | |
24358 | } | |
24359 | { | |
24360 | resultobj = wxPyMake_wxObject(result); | |
24361 | } | |
24362 | return resultobj; | |
24363 | fail: | |
24364 | return NULL; | |
24365 | } | |
24366 | ||
24367 | ||
24368 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24369 | PyObject *resultobj; | |
24370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24371 | wxWindow *result; | |
24372 | PyObject * obj0 = 0 ; | |
24373 | char *kwnames[] = { | |
24374 | (char *) "self", NULL | |
24375 | }; | |
24376 | ||
24377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24380 | { |
24381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24382 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24383 | ||
24384 | wxPyEndAllowThreads(__tstate); | |
24385 | if (PyErr_Occurred()) SWIG_fail; | |
24386 | } | |
24387 | { | |
24388 | resultobj = wxPyMake_wxObject(result); | |
24389 | } | |
24390 | return resultobj; | |
24391 | fail: | |
24392 | return NULL; | |
24393 | } | |
24394 | ||
24395 | ||
24396 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24397 | PyObject *resultobj; | |
24398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24399 | bool result; | |
24400 | PyObject * obj0 = 0 ; | |
24401 | char *kwnames[] = { | |
24402 | (char *) "self", NULL | |
24403 | }; | |
24404 | ||
24405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24408 | { |
24409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24410 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24411 | ||
24412 | wxPyEndAllowThreads(__tstate); | |
24413 | if (PyErr_Occurred()) SWIG_fail; | |
24414 | } | |
4f89f6a3 RD |
24415 | { |
24416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24417 | } | |
d14a1e28 RD |
24418 | return resultobj; |
24419 | fail: | |
24420 | return NULL; | |
24421 | } | |
24422 | ||
24423 | ||
24424 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24425 | PyObject *resultobj; | |
24426 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24427 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24428 | bool result; | |
24429 | PyObject * obj0 = 0 ; | |
24430 | PyObject * obj1 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self",(char *) "newParent", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24440 | { |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24442 | result = (bool)(arg1)->Reparent(arg2); | |
24443 | ||
24444 | wxPyEndAllowThreads(__tstate); | |
24445 | if (PyErr_Occurred()) SWIG_fail; | |
24446 | } | |
4f89f6a3 RD |
24447 | { |
24448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24449 | } | |
d14a1e28 RD |
24450 | return resultobj; |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24457 | PyObject *resultobj; | |
24458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24460 | PyObject * obj0 = 0 ; | |
24461 | PyObject * obj1 = 0 ; | |
24462 | char *kwnames[] = { | |
24463 | (char *) "self",(char *) "child", NULL | |
24464 | }; | |
24465 | ||
24466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24469 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24471 | { |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | (arg1)->AddChild(arg2); | |
24474 | ||
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | Py_INCREF(Py_None); resultobj = Py_None; | |
24479 | return resultobj; | |
24480 | fail: | |
24481 | return NULL; | |
24482 | } | |
24483 | ||
24484 | ||
24485 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24486 | PyObject *resultobj; | |
24487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24488 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24489 | PyObject * obj0 = 0 ; | |
24490 | PyObject * obj1 = 0 ; | |
24491 | char *kwnames[] = { | |
24492 | (char *) "self",(char *) "child", NULL | |
24493 | }; | |
24494 | ||
24495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24500 | { |
24501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24502 | (arg1)->RemoveChild(arg2); | |
24503 | ||
24504 | wxPyEndAllowThreads(__tstate); | |
24505 | if (PyErr_Occurred()) SWIG_fail; | |
24506 | } | |
24507 | Py_INCREF(Py_None); resultobj = Py_None; | |
24508 | return resultobj; | |
24509 | fail: | |
24510 | return NULL; | |
24511 | } | |
24512 | ||
24513 | ||
24514 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24515 | PyObject *resultobj; | |
24516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24517 | long arg2 ; | |
24518 | wxWindow *result; | |
24519 | PyObject * obj0 = 0 ; | |
994141e6 | 24520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24521 | char *kwnames[] = { |
24522 | (char *) "self",(char *) "winid", NULL | |
24523 | }; | |
24524 | ||
994141e6 | 24525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24528 | arg2 = (long) SWIG_AsLong(obj1); | |
24529 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24530 | { |
24531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24532 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24533 | ||
24534 | wxPyEndAllowThreads(__tstate); | |
24535 | if (PyErr_Occurred()) SWIG_fail; | |
24536 | } | |
24537 | { | |
24538 | resultobj = wxPyMake_wxObject(result); | |
24539 | } | |
24540 | return resultobj; | |
24541 | fail: | |
24542 | return NULL; | |
24543 | } | |
24544 | ||
24545 | ||
24546 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24547 | PyObject *resultobj; | |
24548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24549 | wxString *arg2 = 0 ; | |
24550 | wxWindow *result; | |
e811c8ce | 24551 | bool temp2 = False ; |
d14a1e28 RD |
24552 | PyObject * obj0 = 0 ; |
24553 | PyObject * obj1 = 0 ; | |
24554 | char *kwnames[] = { | |
24555 | (char *) "self",(char *) "name", NULL | |
24556 | }; | |
24557 | ||
24558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24561 | { |
24562 | arg2 = wxString_in_helper(obj1); | |
24563 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24564 | temp2 = True; |
d14a1e28 RD |
24565 | } |
24566 | { | |
24567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24568 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24569 | ||
24570 | wxPyEndAllowThreads(__tstate); | |
24571 | if (PyErr_Occurred()) SWIG_fail; | |
24572 | } | |
24573 | { | |
24574 | resultobj = wxPyMake_wxObject(result); | |
24575 | } | |
24576 | { | |
24577 | if (temp2) | |
24578 | delete arg2; | |
24579 | } | |
24580 | return resultobj; | |
24581 | fail: | |
24582 | { | |
24583 | if (temp2) | |
24584 | delete arg2; | |
24585 | } | |
24586 | return NULL; | |
24587 | } | |
24588 | ||
24589 | ||
24590 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24591 | PyObject *resultobj; | |
24592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24593 | wxEvtHandler *result; | |
24594 | PyObject * obj0 = 0 ; | |
24595 | char *kwnames[] = { | |
24596 | (char *) "self", NULL | |
24597 | }; | |
24598 | ||
24599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24602 | { |
24603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24604 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24605 | ||
24606 | wxPyEndAllowThreads(__tstate); | |
24607 | if (PyErr_Occurred()) SWIG_fail; | |
24608 | } | |
24609 | { | |
24610 | resultobj = wxPyMake_wxObject(result); | |
24611 | } | |
24612 | return resultobj; | |
24613 | fail: | |
24614 | return NULL; | |
24615 | } | |
24616 | ||
24617 | ||
24618 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24619 | PyObject *resultobj; | |
24620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24621 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24622 | PyObject * obj0 = 0 ; | |
24623 | PyObject * obj1 = 0 ; | |
24624 | char *kwnames[] = { | |
24625 | (char *) "self",(char *) "handler", NULL | |
24626 | }; | |
24627 | ||
24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24633 | { |
24634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24635 | (arg1)->SetEventHandler(arg2); | |
24636 | ||
24637 | wxPyEndAllowThreads(__tstate); | |
24638 | if (PyErr_Occurred()) SWIG_fail; | |
24639 | } | |
24640 | Py_INCREF(Py_None); resultobj = Py_None; | |
24641 | return resultobj; | |
24642 | fail: | |
24643 | return NULL; | |
24644 | } | |
24645 | ||
24646 | ||
24647 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24648 | PyObject *resultobj; | |
24649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24650 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24651 | PyObject * obj0 = 0 ; | |
24652 | PyObject * obj1 = 0 ; | |
24653 | char *kwnames[] = { | |
24654 | (char *) "self",(char *) "handler", NULL | |
24655 | }; | |
24656 | ||
24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24662 | { |
24663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24664 | (arg1)->PushEventHandler(arg2); | |
24665 | ||
24666 | wxPyEndAllowThreads(__tstate); | |
24667 | if (PyErr_Occurred()) SWIG_fail; | |
24668 | } | |
24669 | Py_INCREF(Py_None); resultobj = Py_None; | |
24670 | return resultobj; | |
24671 | fail: | |
24672 | return NULL; | |
24673 | } | |
24674 | ||
24675 | ||
24676 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24677 | PyObject *resultobj; | |
24678 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24679 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24680 | wxEvtHandler *result; |
24681 | PyObject * obj0 = 0 ; | |
24682 | PyObject * obj1 = 0 ; | |
24683 | char *kwnames[] = { | |
24684 | (char *) "self",(char *) "deleteHandler", NULL | |
24685 | }; | |
24686 | ||
24687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24690 | if (obj1) { |
15afbcd0 RD |
24691 | arg2 = (bool) SWIG_AsBool(obj1); |
24692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24693 | } |
24694 | { | |
24695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24696 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24697 | ||
24698 | wxPyEndAllowThreads(__tstate); | |
24699 | if (PyErr_Occurred()) SWIG_fail; | |
24700 | } | |
24701 | { | |
24702 | resultobj = wxPyMake_wxObject(result); | |
24703 | } | |
24704 | return resultobj; | |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
24710 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24711 | PyObject *resultobj; | |
24712 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24713 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24714 | bool result; | |
24715 | PyObject * obj0 = 0 ; | |
24716 | PyObject * obj1 = 0 ; | |
24717 | char *kwnames[] = { | |
24718 | (char *) "self",(char *) "handler", NULL | |
24719 | }; | |
24720 | ||
24721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24726 | { |
24727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24728 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24729 | ||
24730 | wxPyEndAllowThreads(__tstate); | |
24731 | if (PyErr_Occurred()) SWIG_fail; | |
24732 | } | |
4f89f6a3 RD |
24733 | { |
24734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24735 | } | |
d14a1e28 RD |
24736 | return resultobj; |
24737 | fail: | |
24738 | return NULL; | |
24739 | } | |
24740 | ||
24741 | ||
24742 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24743 | PyObject *resultobj; | |
24744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24745 | wxValidator *arg2 = 0 ; | |
24746 | PyObject * obj0 = 0 ; | |
24747 | PyObject * obj1 = 0 ; | |
24748 | char *kwnames[] = { | |
24749 | (char *) "self",(char *) "validator", NULL | |
24750 | }; | |
24751 | ||
24752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24756 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24757 | SWIG_fail; | |
d14a1e28 | 24758 | if (arg2 == NULL) { |
15afbcd0 RD |
24759 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24760 | SWIG_fail; | |
d14a1e28 RD |
24761 | } |
24762 | { | |
24763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24764 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24765 | ||
24766 | wxPyEndAllowThreads(__tstate); | |
24767 | if (PyErr_Occurred()) SWIG_fail; | |
24768 | } | |
24769 | Py_INCREF(Py_None); resultobj = Py_None; | |
24770 | return resultobj; | |
24771 | fail: | |
24772 | return NULL; | |
24773 | } | |
24774 | ||
24775 | ||
24776 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24777 | PyObject *resultobj; | |
24778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24779 | wxValidator *result; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24788 | { |
24789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24790 | result = (wxValidator *)(arg1)->GetValidator(); | |
24791 | ||
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | { | |
24796 | resultobj = wxPyMake_wxObject(result); | |
24797 | } | |
24798 | return resultobj; | |
24799 | fail: | |
24800 | return NULL; | |
24801 | } | |
24802 | ||
24803 | ||
74a57fcd RD |
24804 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
24805 | PyObject *resultobj; | |
24806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24807 | bool result; | |
24808 | PyObject * obj0 = 0 ; | |
24809 | char *kwnames[] = { | |
24810 | (char *) "self", NULL | |
24811 | }; | |
24812 | ||
24813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24816 | { | |
24817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24818 | result = (bool)(arg1)->Validate(); | |
24819 | ||
24820 | wxPyEndAllowThreads(__tstate); | |
24821 | if (PyErr_Occurred()) SWIG_fail; | |
24822 | } | |
24823 | { | |
24824 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24825 | } | |
24826 | return resultobj; | |
24827 | fail: | |
24828 | return NULL; | |
24829 | } | |
24830 | ||
24831 | ||
24832 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24833 | PyObject *resultobj; | |
24834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24835 | bool result; | |
24836 | PyObject * obj0 = 0 ; | |
24837 | char *kwnames[] = { | |
24838 | (char *) "self", NULL | |
24839 | }; | |
24840 | ||
24841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24844 | { | |
24845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24846 | result = (bool)(arg1)->TransferDataToWindow(); | |
24847 | ||
24848 | wxPyEndAllowThreads(__tstate); | |
24849 | if (PyErr_Occurred()) SWIG_fail; | |
24850 | } | |
24851 | { | |
24852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24853 | } | |
24854 | return resultobj; | |
24855 | fail: | |
24856 | return NULL; | |
24857 | } | |
24858 | ||
24859 | ||
24860 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24861 | PyObject *resultobj; | |
24862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24863 | bool result; | |
24864 | PyObject * obj0 = 0 ; | |
24865 | char *kwnames[] = { | |
24866 | (char *) "self", NULL | |
24867 | }; | |
24868 | ||
24869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24872 | { | |
24873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24874 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24875 | ||
24876 | wxPyEndAllowThreads(__tstate); | |
24877 | if (PyErr_Occurred()) SWIG_fail; | |
24878 | } | |
24879 | { | |
24880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24881 | } | |
24882 | return resultobj; | |
24883 | fail: | |
24884 | return NULL; | |
24885 | } | |
24886 | ||
24887 | ||
24888 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24889 | PyObject *resultobj; | |
24890 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24891 | PyObject * obj0 = 0 ; | |
24892 | char *kwnames[] = { | |
24893 | (char *) "self", NULL | |
24894 | }; | |
24895 | ||
24896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
24897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24899 | { | |
24900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24901 | (arg1)->InitDialog(); | |
24902 | ||
24903 | wxPyEndAllowThreads(__tstate); | |
24904 | if (PyErr_Occurred()) SWIG_fail; | |
24905 | } | |
24906 | Py_INCREF(Py_None); resultobj = Py_None; | |
24907 | return resultobj; | |
24908 | fail: | |
24909 | return NULL; | |
24910 | } | |
24911 | ||
24912 | ||
d14a1e28 RD |
24913 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
24914 | PyObject *resultobj; | |
24915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24916 | wxAcceleratorTable *arg2 = 0 ; | |
24917 | PyObject * obj0 = 0 ; | |
24918 | PyObject * obj1 = 0 ; | |
24919 | char *kwnames[] = { | |
24920 | (char *) "self",(char *) "accel", NULL | |
24921 | }; | |
24922 | ||
24923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24926 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24928 | SWIG_fail; | |
d14a1e28 | 24929 | if (arg2 == NULL) { |
15afbcd0 RD |
24930 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24931 | SWIG_fail; | |
d14a1e28 RD |
24932 | } |
24933 | { | |
24934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24935 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24936 | ||
24937 | wxPyEndAllowThreads(__tstate); | |
24938 | if (PyErr_Occurred()) SWIG_fail; | |
24939 | } | |
24940 | Py_INCREF(Py_None); resultobj = Py_None; | |
24941 | return resultobj; | |
24942 | fail: | |
24943 | return NULL; | |
24944 | } | |
24945 | ||
24946 | ||
24947 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24948 | PyObject *resultobj; | |
24949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24950 | wxAcceleratorTable *result; | |
24951 | PyObject * obj0 = 0 ; | |
24952 | char *kwnames[] = { | |
24953 | (char *) "self", NULL | |
24954 | }; | |
24955 | ||
24956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24959 | { |
24960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24961 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24962 | ||
24963 | wxPyEndAllowThreads(__tstate); | |
24964 | if (PyErr_Occurred()) SWIG_fail; | |
24965 | } | |
15afbcd0 | 24966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
24967 | return resultobj; |
24968 | fail: | |
24969 | return NULL; | |
24970 | } | |
24971 | ||
24972 | ||
24973 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24974 | PyObject *resultobj; | |
24975 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24976 | int arg2 ; | |
24977 | int arg3 ; | |
24978 | int arg4 ; | |
24979 | bool result; | |
24980 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24981 | PyObject * obj1 = 0 ; |
24982 | PyObject * obj2 = 0 ; | |
24983 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24984 | char *kwnames[] = { |
24985 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24986 | }; | |
24987 | ||
994141e6 | 24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
24989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24991 | arg2 = (int) SWIG_AsInt(obj1); | |
24992 | if (PyErr_Occurred()) SWIG_fail; | |
24993 | arg3 = (int) SWIG_AsInt(obj2); | |
24994 | if (PyErr_Occurred()) SWIG_fail; | |
24995 | arg4 = (int) SWIG_AsInt(obj3); | |
24996 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24997 | { |
24998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24999 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25000 | ||
25001 | wxPyEndAllowThreads(__tstate); | |
25002 | if (PyErr_Occurred()) SWIG_fail; | |
25003 | } | |
4f89f6a3 RD |
25004 | { |
25005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25006 | } | |
d14a1e28 RD |
25007 | return resultobj; |
25008 | fail: | |
25009 | return NULL; | |
25010 | } | |
25011 | ||
25012 | ||
25013 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25014 | PyObject *resultobj; | |
25015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25016 | int arg2 ; | |
25017 | bool result; | |
25018 | PyObject * obj0 = 0 ; | |
994141e6 | 25019 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25020 | char *kwnames[] = { |
25021 | (char *) "self",(char *) "hotkeyId", NULL | |
25022 | }; | |
25023 | ||
994141e6 | 25024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25027 | arg2 = (int) SWIG_AsInt(obj1); | |
25028 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25029 | { |
25030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25031 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25032 | ||
25033 | wxPyEndAllowThreads(__tstate); | |
25034 | if (PyErr_Occurred()) SWIG_fail; | |
25035 | } | |
4f89f6a3 RD |
25036 | { |
25037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25038 | } | |
d14a1e28 RD |
25039 | return resultobj; |
25040 | fail: | |
25041 | return NULL; | |
25042 | } | |
25043 | ||
25044 | ||
25045 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25046 | PyObject *resultobj; | |
25047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25048 | wxPoint *arg2 = 0 ; | |
25049 | wxPoint result; | |
25050 | wxPoint temp2 ; | |
25051 | PyObject * obj0 = 0 ; | |
25052 | PyObject * obj1 = 0 ; | |
25053 | char *kwnames[] = { | |
25054 | (char *) "self",(char *) "pt", NULL | |
25055 | }; | |
25056 | ||
25057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25060 | { |
25061 | arg2 = &temp2; | |
25062 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25063 | } | |
25064 | { | |
25065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25066 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25067 | ||
25068 | wxPyEndAllowThreads(__tstate); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | } | |
25071 | { | |
25072 | wxPoint * resultptr; | |
25073 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25074 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25075 | } |
25076 | return resultobj; | |
25077 | fail: | |
25078 | return NULL; | |
25079 | } | |
25080 | ||
25081 | ||
25082 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25083 | PyObject *resultobj; | |
25084 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25085 | wxSize *arg2 = 0 ; | |
25086 | wxSize result; | |
25087 | wxSize temp2 ; | |
25088 | PyObject * obj0 = 0 ; | |
25089 | PyObject * obj1 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self",(char *) "sz", NULL | |
25092 | }; | |
25093 | ||
25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25097 | { |
25098 | arg2 = &temp2; | |
25099 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25100 | } | |
25101 | { | |
25102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25103 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25104 | ||
25105 | wxPyEndAllowThreads(__tstate); | |
25106 | if (PyErr_Occurred()) SWIG_fail; | |
25107 | } | |
25108 | { | |
25109 | wxSize * resultptr; | |
25110 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25112 | } |
25113 | return resultobj; | |
25114 | fail: | |
25115 | return NULL; | |
25116 | } | |
25117 | ||
25118 | ||
25119 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25120 | PyObject *resultobj; | |
25121 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25122 | wxPoint *arg2 = 0 ; | |
25123 | wxPoint result; | |
25124 | wxPoint temp2 ; | |
25125 | PyObject * obj0 = 0 ; | |
25126 | PyObject * obj1 = 0 ; | |
25127 | char *kwnames[] = { | |
25128 | (char *) "self",(char *) "pt", NULL | |
25129 | }; | |
25130 | ||
25131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25134 | { |
25135 | arg2 = &temp2; | |
25136 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25137 | } | |
25138 | { | |
25139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25140 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25141 | ||
25142 | wxPyEndAllowThreads(__tstate); | |
25143 | if (PyErr_Occurred()) SWIG_fail; | |
25144 | } | |
25145 | { | |
25146 | wxPoint * resultptr; | |
25147 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25149 | } |
25150 | return resultobj; | |
25151 | fail: | |
25152 | return NULL; | |
25153 | } | |
25154 | ||
25155 | ||
25156 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25157 | PyObject *resultobj; | |
25158 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25159 | wxSize *arg2 = 0 ; | |
25160 | wxSize result; | |
25161 | wxSize temp2 ; | |
25162 | PyObject * obj0 = 0 ; | |
25163 | PyObject * obj1 = 0 ; | |
25164 | char *kwnames[] = { | |
25165 | (char *) "self",(char *) "sz", NULL | |
25166 | }; | |
25167 | ||
25168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25171 | { |
25172 | arg2 = &temp2; | |
25173 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25174 | } | |
25175 | { | |
25176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25177 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25178 | ||
25179 | wxPyEndAllowThreads(__tstate); | |
25180 | if (PyErr_Occurred()) SWIG_fail; | |
25181 | } | |
25182 | { | |
25183 | wxSize * resultptr; | |
25184 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25186 | } |
25187 | return resultobj; | |
25188 | fail: | |
25189 | return NULL; | |
25190 | } | |
25191 | ||
25192 | ||
25193 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25194 | PyObject *resultobj; | |
25195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25196 | wxPoint *arg2 = 0 ; | |
25197 | wxPoint result; | |
25198 | wxPoint temp2 ; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | PyObject * obj1 = 0 ; | |
25201 | char *kwnames[] = { | |
25202 | (char *) "self",(char *) "pt", NULL | |
25203 | }; | |
25204 | ||
25205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25208 | { |
25209 | arg2 = &temp2; | |
25210 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25211 | } | |
25212 | { | |
25213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25214 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25215 | ||
25216 | wxPyEndAllowThreads(__tstate); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | { | |
25220 | wxPoint * resultptr; | |
25221 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25222 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25223 | } |
25224 | return resultobj; | |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
25230 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25231 | PyObject *resultobj; | |
25232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25233 | wxSize *arg2 = 0 ; | |
25234 | wxSize result; | |
25235 | wxSize temp2 ; | |
25236 | PyObject * obj0 = 0 ; | |
25237 | PyObject * obj1 = 0 ; | |
25238 | char *kwnames[] = { | |
25239 | (char *) "self",(char *) "sz", NULL | |
25240 | }; | |
25241 | ||
25242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25245 | { |
25246 | arg2 = &temp2; | |
25247 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25248 | } | |
25249 | { | |
25250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25251 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25252 | ||
25253 | wxPyEndAllowThreads(__tstate); | |
25254 | if (PyErr_Occurred()) SWIG_fail; | |
25255 | } | |
25256 | { | |
25257 | wxSize * resultptr; | |
25258 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25259 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25260 | } |
25261 | return resultobj; | |
25262 | fail: | |
25263 | return NULL; | |
25264 | } | |
25265 | ||
25266 | ||
25267 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25268 | PyObject *resultobj; | |
25269 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25270 | int arg2 ; | |
25271 | int arg3 ; | |
25272 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25273 | PyObject * obj1 = 0 ; |
25274 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25275 | char *kwnames[] = { |
25276 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25277 | }; | |
25278 | ||
994141e6 | 25279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25282 | arg2 = (int) SWIG_AsInt(obj1); | |
25283 | if (PyErr_Occurred()) SWIG_fail; | |
25284 | arg3 = (int) SWIG_AsInt(obj2); | |
25285 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25286 | { |
25287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25288 | (arg1)->WarpPointer(arg2,arg3); | |
25289 | ||
25290 | wxPyEndAllowThreads(__tstate); | |
25291 | if (PyErr_Occurred()) SWIG_fail; | |
25292 | } | |
25293 | Py_INCREF(Py_None); resultobj = Py_None; | |
25294 | return resultobj; | |
25295 | fail: | |
25296 | return NULL; | |
25297 | } | |
25298 | ||
25299 | ||
25300 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25301 | PyObject *resultobj; | |
25302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25303 | PyObject * obj0 = 0 ; | |
25304 | char *kwnames[] = { | |
25305 | (char *) "self", NULL | |
25306 | }; | |
25307 | ||
25308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25311 | { |
25312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25313 | (arg1)->CaptureMouse(); | |
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_ReleaseMouse(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_ReleaseMouse",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)->ReleaseMouse(); | |
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_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25351 | PyObject *resultobj; | |
25352 | wxWindow *result; | |
25353 | char *kwnames[] = { | |
25354 | NULL | |
25355 | }; | |
25356 | ||
25357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25358 | { | |
25359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25360 | result = (wxWindow *)wxWindow::GetCapture(); | |
25361 | ||
25362 | wxPyEndAllowThreads(__tstate); | |
25363 | if (PyErr_Occurred()) SWIG_fail; | |
25364 | } | |
25365 | { | |
25366 | resultobj = wxPyMake_wxObject(result); | |
25367 | } | |
25368 | return resultobj; | |
25369 | fail: | |
25370 | return NULL; | |
25371 | } | |
25372 | ||
25373 | ||
25374 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25375 | PyObject *resultobj; | |
25376 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25377 | bool result; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | char *kwnames[] = { | |
25380 | (char *) "self", NULL | |
25381 | }; | |
25382 | ||
25383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25386 | { |
25387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25388 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25389 | ||
25390 | wxPyEndAllowThreads(__tstate); | |
25391 | if (PyErr_Occurred()) SWIG_fail; | |
25392 | } | |
4f89f6a3 RD |
25393 | { |
25394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25395 | } | |
d14a1e28 RD |
25396 | return resultobj; |
25397 | fail: | |
25398 | return NULL; | |
25399 | } | |
25400 | ||
25401 | ||
25402 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25403 | PyObject *resultobj; | |
25404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25405 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25406 | wxRect *arg3 = (wxRect *) NULL ; |
25407 | PyObject * obj0 = 0 ; | |
25408 | PyObject * obj1 = 0 ; | |
25409 | PyObject * obj2 = 0 ; | |
25410 | char *kwnames[] = { | |
25411 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25412 | }; | |
25413 | ||
25414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25417 | if (obj1) { |
15afbcd0 RD |
25418 | arg2 = (bool) SWIG_AsBool(obj1); |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25420 | } |
25421 | if (obj2) { | |
15afbcd0 RD |
25422 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
25423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25424 | } |
25425 | { | |
25426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25427 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25428 | ||
25429 | wxPyEndAllowThreads(__tstate); | |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | Py_INCREF(Py_None); resultobj = Py_None; | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
25439 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25440 | PyObject *resultobj; | |
25441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25442 | wxRect *arg2 = 0 ; | |
25443 | wxRect temp2 ; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | PyObject * obj1 = 0 ; | |
25446 | char *kwnames[] = { | |
25447 | (char *) "self",(char *) "rect", NULL | |
25448 | }; | |
25449 | ||
25450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25453 | { |
25454 | arg2 = &temp2; | |
25455 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25456 | } | |
25457 | { | |
25458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25459 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25460 | ||
25461 | wxPyEndAllowThreads(__tstate); | |
25462 | if (PyErr_Occurred()) SWIG_fail; | |
25463 | } | |
25464 | Py_INCREF(Py_None); resultobj = Py_None; | |
25465 | return resultobj; | |
25466 | fail: | |
25467 | return NULL; | |
25468 | } | |
25469 | ||
25470 | ||
25471 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25472 | PyObject *resultobj; | |
25473 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25474 | PyObject * obj0 = 0 ; | |
25475 | char *kwnames[] = { | |
25476 | (char *) "self", NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25482 | { |
25483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25484 | (arg1)->Update(); | |
25485 | ||
25486 | wxPyEndAllowThreads(__tstate); | |
25487 | if (PyErr_Occurred()) SWIG_fail; | |
25488 | } | |
25489 | Py_INCREF(Py_None); resultobj = Py_None; | |
25490 | return resultobj; | |
25491 | fail: | |
25492 | return NULL; | |
25493 | } | |
25494 | ||
25495 | ||
25496 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25497 | PyObject *resultobj; | |
25498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25499 | PyObject * obj0 = 0 ; | |
25500 | char *kwnames[] = { | |
25501 | (char *) "self", NULL | |
25502 | }; | |
25503 | ||
25504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25507 | { |
25508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25509 | (arg1)->ClearBackground(); | |
25510 | ||
25511 | wxPyEndAllowThreads(__tstate); | |
25512 | if (PyErr_Occurred()) SWIG_fail; | |
25513 | } | |
25514 | Py_INCREF(Py_None); resultobj = Py_None; | |
25515 | return resultobj; | |
25516 | fail: | |
25517 | return NULL; | |
25518 | } | |
25519 | ||
25520 | ||
25521 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25522 | PyObject *resultobj; | |
25523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | char *kwnames[] = { | |
25526 | (char *) "self", NULL | |
25527 | }; | |
25528 | ||
25529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25532 | { |
25533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25534 | (arg1)->Freeze(); | |
25535 | ||
25536 | wxPyEndAllowThreads(__tstate); | |
25537 | if (PyErr_Occurred()) SWIG_fail; | |
25538 | } | |
25539 | Py_INCREF(Py_None); resultobj = Py_None; | |
25540 | return resultobj; | |
25541 | fail: | |
25542 | return NULL; | |
25543 | } | |
25544 | ||
25545 | ||
25546 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25547 | PyObject *resultobj; | |
25548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25549 | PyObject * obj0 = 0 ; | |
25550 | char *kwnames[] = { | |
25551 | (char *) "self", NULL | |
25552 | }; | |
25553 | ||
25554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25557 | { |
25558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25559 | (arg1)->Thaw(); | |
25560 | ||
25561 | wxPyEndAllowThreads(__tstate); | |
25562 | if (PyErr_Occurred()) SWIG_fail; | |
25563 | } | |
25564 | Py_INCREF(Py_None); resultobj = Py_None; | |
25565 | return resultobj; | |
25566 | fail: | |
25567 | return NULL; | |
25568 | } | |
25569 | ||
25570 | ||
25571 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25572 | PyObject *resultobj; | |
25573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25574 | wxDC *arg2 = 0 ; | |
25575 | PyObject * obj0 = 0 ; | |
25576 | PyObject * obj1 = 0 ; | |
25577 | char *kwnames[] = { | |
25578 | (char *) "self",(char *) "dc", NULL | |
25579 | }; | |
25580 | ||
25581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25584 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25585 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25586 | SWIG_fail; | |
d14a1e28 | 25587 | if (arg2 == NULL) { |
15afbcd0 RD |
25588 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25589 | SWIG_fail; | |
d14a1e28 RD |
25590 | } |
25591 | { | |
25592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25593 | (arg1)->PrepareDC(*arg2); | |
25594 | ||
25595 | wxPyEndAllowThreads(__tstate); | |
25596 | if (PyErr_Occurred()) SWIG_fail; | |
25597 | } | |
25598 | Py_INCREF(Py_None); resultobj = Py_None; | |
25599 | return resultobj; | |
25600 | fail: | |
25601 | return NULL; | |
25602 | } | |
25603 | ||
25604 | ||
25605 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25606 | PyObject *resultobj; | |
25607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25608 | wxRegion *result; | |
25609 | PyObject * obj0 = 0 ; | |
25610 | char *kwnames[] = { | |
25611 | (char *) "self", NULL | |
25612 | }; | |
25613 | ||
25614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25617 | { |
25618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25619 | { | |
25620 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25621 | result = (wxRegion *) &_result_ref; | |
25622 | } | |
25623 | ||
25624 | wxPyEndAllowThreads(__tstate); | |
25625 | if (PyErr_Occurred()) SWIG_fail; | |
25626 | } | |
15afbcd0 | 25627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
25628 | return resultobj; |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
25634 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25635 | PyObject *resultobj; | |
25636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25637 | wxRect result; | |
25638 | PyObject * obj0 = 0 ; | |
25639 | char *kwnames[] = { | |
25640 | (char *) "self", NULL | |
25641 | }; | |
25642 | ||
25643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25646 | { |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
25653 | { | |
25654 | wxRect * resultptr; | |
25655 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 25656 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25657 | } |
25658 | return resultobj; | |
25659 | fail: | |
25660 | return NULL; | |
25661 | } | |
25662 | ||
25663 | ||
25664 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25665 | PyObject *resultobj; | |
25666 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25667 | int arg2 ; | |
25668 | int arg3 ; | |
25669 | int arg4 = (int) 1 ; | |
25670 | int arg5 = (int) 1 ; | |
25671 | bool result; | |
25672 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25673 | PyObject * obj1 = 0 ; |
25674 | PyObject * obj2 = 0 ; | |
25675 | PyObject * obj3 = 0 ; | |
25676 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25677 | char *kwnames[] = { |
25678 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25679 | }; | |
25680 | ||
994141e6 | 25681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
25682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25684 | arg2 = (int) SWIG_AsInt(obj1); | |
25685 | if (PyErr_Occurred()) SWIG_fail; | |
25686 | arg3 = (int) SWIG_AsInt(obj2); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25688 | if (obj3) { |
15afbcd0 RD |
25689 | arg4 = (int) SWIG_AsInt(obj3); |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
25691 | } |
25692 | if (obj4) { | |
15afbcd0 RD |
25693 | arg5 = (int) SWIG_AsInt(obj4); |
25694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25695 | } |
d14a1e28 RD |
25696 | { |
25697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25698 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25699 | ||
25700 | wxPyEndAllowThreads(__tstate); | |
25701 | if (PyErr_Occurred()) SWIG_fail; | |
25702 | } | |
4f89f6a3 RD |
25703 | { |
25704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25705 | } | |
d14a1e28 RD |
25706 | return resultobj; |
25707 | fail: | |
25708 | return NULL; | |
25709 | } | |
25710 | ||
25711 | ||
25712 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25713 | PyObject *resultobj; | |
25714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25715 | wxPoint *arg2 = 0 ; | |
25716 | bool result; | |
25717 | wxPoint temp2 ; | |
25718 | PyObject * obj0 = 0 ; | |
25719 | PyObject * obj1 = 0 ; | |
25720 | char *kwnames[] = { | |
25721 | (char *) "self",(char *) "pt", NULL | |
25722 | }; | |
25723 | ||
25724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25727 | { |
25728 | arg2 = &temp2; | |
25729 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25730 | } | |
25731 | { | |
25732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25733 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25734 | ||
25735 | wxPyEndAllowThreads(__tstate); | |
25736 | if (PyErr_Occurred()) SWIG_fail; | |
25737 | } | |
4f89f6a3 RD |
25738 | { |
25739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25740 | } | |
d14a1e28 RD |
25741 | return resultobj; |
25742 | fail: | |
25743 | return NULL; | |
25744 | } | |
25745 | ||
25746 | ||
4276dc52 | 25747 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25748 | PyObject *resultobj; |
25749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25750 | wxRect *arg2 = 0 ; | |
25751 | bool result; | |
25752 | wxRect temp2 ; | |
25753 | PyObject * obj0 = 0 ; | |
25754 | PyObject * obj1 = 0 ; | |
25755 | char *kwnames[] = { | |
25756 | (char *) "self",(char *) "rect", NULL | |
25757 | }; | |
25758 | ||
4276dc52 | 25759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25762 | { |
25763 | arg2 = &temp2; | |
25764 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25765 | } | |
25766 | { | |
25767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25768 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25769 | ||
25770 | wxPyEndAllowThreads(__tstate); | |
25771 | if (PyErr_Occurred()) SWIG_fail; | |
25772 | } | |
4f89f6a3 RD |
25773 | { |
25774 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25775 | } | |
d14a1e28 RD |
25776 | return resultobj; |
25777 | fail: | |
25778 | return NULL; | |
25779 | } | |
25780 | ||
25781 | ||
74a57fcd RD |
25782 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
25783 | PyObject *resultobj; | |
25784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25785 | wxVisualAttributes result; | |
25786 | PyObject * obj0 = 0 ; | |
25787 | char *kwnames[] = { | |
25788 | (char *) "self", NULL | |
25789 | }; | |
25790 | ||
25791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25794 | { | |
25795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25796 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25797 | ||
25798 | wxPyEndAllowThreads(__tstate); | |
25799 | if (PyErr_Occurred()) SWIG_fail; | |
25800 | } | |
25801 | { | |
25802 | wxVisualAttributes * resultptr; | |
25803 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25804 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25805 | } | |
25806 | return resultobj; | |
25807 | fail: | |
25808 | return NULL; | |
25809 | } | |
25810 | ||
25811 | ||
25812 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25813 | PyObject *resultobj; | |
25814 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25815 | wxVisualAttributes result; | |
25816 | PyObject * obj0 = 0 ; | |
25817 | char *kwnames[] = { | |
25818 | (char *) "variant", NULL | |
25819 | }; | |
25820 | ||
25821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25822 | if (obj0) { | |
25823 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25824 | if (PyErr_Occurred()) SWIG_fail; | |
25825 | } | |
25826 | { | |
25827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25828 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25829 | ||
25830 | wxPyEndAllowThreads(__tstate); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | { | |
25834 | wxVisualAttributes * resultptr; | |
25835 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25837 | } | |
25838 | return resultobj; | |
25839 | fail: | |
25840 | return NULL; | |
25841 | } | |
25842 | ||
25843 | ||
d14a1e28 RD |
25844 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25845 | PyObject *resultobj; | |
25846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25847 | wxColour *arg2 = 0 ; | |
25848 | bool result; | |
25849 | wxColour temp2 ; | |
25850 | PyObject * obj0 = 0 ; | |
25851 | PyObject * obj1 = 0 ; | |
25852 | char *kwnames[] = { | |
25853 | (char *) "self",(char *) "colour", NULL | |
25854 | }; | |
25855 | ||
25856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25859 | { |
25860 | arg2 = &temp2; | |
25861 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25862 | } | |
25863 | { | |
25864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25865 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25866 | ||
25867 | wxPyEndAllowThreads(__tstate); | |
25868 | if (PyErr_Occurred()) SWIG_fail; | |
25869 | } | |
4f89f6a3 RD |
25870 | { |
25871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25872 | } | |
d14a1e28 RD |
25873 | return resultobj; |
25874 | fail: | |
25875 | return NULL; | |
25876 | } | |
25877 | ||
25878 | ||
25879 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25880 | PyObject *resultobj; | |
25881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25882 | wxColour *arg2 = 0 ; | |
25883 | bool result; | |
25884 | wxColour temp2 ; | |
25885 | PyObject * obj0 = 0 ; | |
25886 | PyObject * obj1 = 0 ; | |
25887 | char *kwnames[] = { | |
25888 | (char *) "self",(char *) "colour", NULL | |
25889 | }; | |
25890 | ||
25891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25894 | { |
25895 | arg2 = &temp2; | |
25896 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25897 | } | |
25898 | { | |
25899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25900 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25901 | ||
25902 | wxPyEndAllowThreads(__tstate); | |
25903 | if (PyErr_Occurred()) SWIG_fail; | |
25904 | } | |
4f89f6a3 RD |
25905 | { |
25906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25907 | } | |
d14a1e28 RD |
25908 | return resultobj; |
25909 | fail: | |
25910 | return NULL; | |
25911 | } | |
25912 | ||
25913 | ||
25914 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25915 | PyObject *resultobj; | |
25916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25917 | wxColour result; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | char *kwnames[] = { | |
25920 | (char *) "self", NULL | |
25921 | }; | |
25922 | ||
25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25926 | { |
25927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25928 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25929 | ||
25930 | wxPyEndAllowThreads(__tstate); | |
25931 | if (PyErr_Occurred()) SWIG_fail; | |
25932 | } | |
25933 | { | |
25934 | wxColour * resultptr; | |
25935 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25937 | } |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25947 | wxColour result; | |
25948 | PyObject * obj0 = 0 ; | |
25949 | char *kwnames[] = { | |
25950 | (char *) "self", NULL | |
25951 | }; | |
25952 | ||
25953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25956 | { |
25957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25958 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
25959 | ||
25960 | wxPyEndAllowThreads(__tstate); | |
25961 | if (PyErr_Occurred()) SWIG_fail; | |
25962 | } | |
25963 | { | |
25964 | wxColour * resultptr; | |
25965 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25966 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25967 | } |
25968 | return resultobj; | |
25969 | fail: | |
25970 | return NULL; | |
25971 | } | |
25972 | ||
25973 | ||
25974 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25975 | PyObject *resultobj; | |
25976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25977 | wxCursor *arg2 = 0 ; | |
25978 | bool result; | |
25979 | PyObject * obj0 = 0 ; | |
25980 | PyObject * obj1 = 0 ; | |
25981 | char *kwnames[] = { | |
25982 | (char *) "self",(char *) "cursor", NULL | |
25983 | }; | |
25984 | ||
25985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
25989 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25990 | SWIG_fail; | |
d14a1e28 | 25991 | if (arg2 == NULL) { |
15afbcd0 RD |
25992 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25993 | SWIG_fail; | |
d14a1e28 RD |
25994 | } |
25995 | { | |
25996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25997 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
25998 | ||
25999 | wxPyEndAllowThreads(__tstate); | |
26000 | if (PyErr_Occurred()) SWIG_fail; | |
26001 | } | |
4f89f6a3 RD |
26002 | { |
26003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26004 | } | |
d14a1e28 RD |
26005 | return resultobj; |
26006 | fail: | |
26007 | return NULL; | |
26008 | } | |
26009 | ||
26010 | ||
26011 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26012 | PyObject *resultobj; | |
26013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26014 | wxCursor *result; | |
26015 | PyObject * obj0 = 0 ; | |
26016 | char *kwnames[] = { | |
26017 | (char *) "self", NULL | |
26018 | }; | |
26019 | ||
26020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26023 | { |
26024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26025 | { | |
26026 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26027 | result = (wxCursor *) &_result_ref; | |
26028 | } | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
4276dc52 RD |
26033 | { |
26034 | wxCursor* resultptr = new wxCursor(*result); | |
26035 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26036 | } | |
d14a1e28 RD |
26037 | return resultobj; |
26038 | fail: | |
26039 | return NULL; | |
26040 | } | |
26041 | ||
26042 | ||
26043 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26044 | PyObject *resultobj; | |
26045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26046 | wxFont *arg2 = 0 ; | |
26047 | bool result; | |
26048 | PyObject * obj0 = 0 ; | |
26049 | PyObject * obj1 = 0 ; | |
26050 | char *kwnames[] = { | |
26051 | (char *) "self",(char *) "font", NULL | |
26052 | }; | |
26053 | ||
26054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26058 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26059 | SWIG_fail; | |
d14a1e28 | 26060 | if (arg2 == NULL) { |
15afbcd0 RD |
26061 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26062 | SWIG_fail; | |
d14a1e28 RD |
26063 | } |
26064 | { | |
26065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26066 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26067 | ||
26068 | wxPyEndAllowThreads(__tstate); | |
26069 | if (PyErr_Occurred()) SWIG_fail; | |
26070 | } | |
4f89f6a3 RD |
26071 | { |
26072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26073 | } | |
d14a1e28 RD |
26074 | return resultobj; |
26075 | fail: | |
26076 | return NULL; | |
26077 | } | |
26078 | ||
26079 | ||
26080 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26081 | PyObject *resultobj; | |
26082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26083 | wxFont *result; | |
26084 | PyObject * obj0 = 0 ; | |
26085 | char *kwnames[] = { | |
26086 | (char *) "self", NULL | |
26087 | }; | |
26088 | ||
26089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26092 | { |
26093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26094 | { | |
26095 | wxFont &_result_ref = (arg1)->GetFont(); | |
26096 | result = (wxFont *) &_result_ref; | |
26097 | } | |
26098 | ||
26099 | wxPyEndAllowThreads(__tstate); | |
26100 | if (PyErr_Occurred()) SWIG_fail; | |
26101 | } | |
4276dc52 RD |
26102 | { |
26103 | wxFont* resultptr = new wxFont(*result); | |
26104 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26105 | } | |
d14a1e28 RD |
26106 | return resultobj; |
26107 | fail: | |
26108 | return NULL; | |
26109 | } | |
26110 | ||
26111 | ||
26112 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26113 | PyObject *resultobj; | |
26114 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26115 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26116 | PyObject * obj0 = 0 ; | |
26117 | PyObject * obj1 = 0 ; | |
26118 | char *kwnames[] = { | |
26119 | (char *) "self",(char *) "caret", NULL | |
26120 | }; | |
26121 | ||
26122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26125 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26127 | { |
26128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26129 | (arg1)->SetCaret(arg2); | |
26130 | ||
26131 | wxPyEndAllowThreads(__tstate); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | } | |
26134 | Py_INCREF(Py_None); resultobj = Py_None; | |
26135 | return resultobj; | |
26136 | fail: | |
26137 | return NULL; | |
26138 | } | |
26139 | ||
26140 | ||
26141 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26142 | PyObject *resultobj; | |
26143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26144 | wxCaret *result; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | char *kwnames[] = { | |
26147 | (char *) "self", NULL | |
26148 | }; | |
26149 | ||
26150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26153 | { |
26154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26155 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26156 | ||
26157 | wxPyEndAllowThreads(__tstate); | |
26158 | if (PyErr_Occurred()) SWIG_fail; | |
26159 | } | |
15afbcd0 | 26160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
26161 | return resultobj; |
26162 | fail: | |
26163 | return NULL; | |
26164 | } | |
26165 | ||
26166 | ||
26167 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26168 | PyObject *resultobj; | |
26169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26170 | int result; | |
26171 | PyObject * obj0 = 0 ; | |
26172 | char *kwnames[] = { | |
26173 | (char *) "self", NULL | |
26174 | }; | |
26175 | ||
26176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26179 | { |
26180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26181 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26182 | ||
26183 | wxPyEndAllowThreads(__tstate); | |
26184 | if (PyErr_Occurred()) SWIG_fail; | |
26185 | } | |
15afbcd0 | 26186 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26187 | return resultobj; |
26188 | fail: | |
26189 | return NULL; | |
26190 | } | |
26191 | ||
26192 | ||
26193 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26194 | PyObject *resultobj; | |
26195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26196 | int result; | |
26197 | PyObject * obj0 = 0 ; | |
26198 | char *kwnames[] = { | |
26199 | (char *) "self", NULL | |
26200 | }; | |
26201 | ||
26202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26205 | { |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26208 | ||
26209 | wxPyEndAllowThreads(__tstate); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
15afbcd0 | 26212 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26213 | return resultobj; |
26214 | fail: | |
26215 | return NULL; | |
26216 | } | |
26217 | ||
26218 | ||
26219 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26220 | PyObject *resultobj; | |
26221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26222 | wxString *arg2 = 0 ; | |
26223 | int *arg3 = (int *) 0 ; | |
26224 | int *arg4 = (int *) 0 ; | |
e811c8ce | 26225 | bool temp2 = False ; |
d14a1e28 RD |
26226 | int temp3 ; |
26227 | int temp4 ; | |
26228 | PyObject * obj0 = 0 ; | |
26229 | PyObject * obj1 = 0 ; | |
26230 | char *kwnames[] = { | |
26231 | (char *) "self",(char *) "string", NULL | |
26232 | }; | |
26233 | ||
26234 | arg3 = &temp3; | |
26235 | arg4 = &temp4; | |
26236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26239 | { |
26240 | arg2 = wxString_in_helper(obj1); | |
26241 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26242 | temp2 = True; |
d14a1e28 RD |
26243 | } |
26244 | { | |
26245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26246 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26247 | ||
26248 | wxPyEndAllowThreads(__tstate); | |
26249 | if (PyErr_Occurred()) SWIG_fail; | |
26250 | } | |
26251 | Py_INCREF(Py_None); resultobj = Py_None; | |
26252 | { | |
26253 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26254 | resultobj = t_output_helper(resultobj,o); | |
26255 | } | |
26256 | { | |
26257 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26258 | resultobj = t_output_helper(resultobj,o); | |
26259 | } | |
26260 | { | |
26261 | if (temp2) | |
26262 | delete arg2; | |
26263 | } | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | { | |
26267 | if (temp2) | |
26268 | delete arg2; | |
26269 | } | |
26270 | return NULL; | |
26271 | } | |
26272 | ||
26273 | ||
26274 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26275 | PyObject *resultobj; | |
26276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26277 | wxString *arg2 = 0 ; | |
26278 | int *arg3 = (int *) 0 ; | |
26279 | int *arg4 = (int *) 0 ; | |
26280 | int *arg5 = (int *) 0 ; | |
26281 | int *arg6 = (int *) 0 ; | |
26282 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 26283 | bool temp2 = False ; |
d14a1e28 RD |
26284 | int temp3 ; |
26285 | int temp4 ; | |
26286 | int temp5 ; | |
26287 | int temp6 ; | |
26288 | PyObject * obj0 = 0 ; | |
26289 | PyObject * obj1 = 0 ; | |
26290 | PyObject * obj2 = 0 ; | |
26291 | char *kwnames[] = { | |
26292 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26293 | }; | |
26294 | ||
26295 | arg3 = &temp3; | |
26296 | arg4 = &temp4; | |
26297 | arg5 = &temp5; | |
26298 | arg6 = &temp6; | |
26299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26302 | { |
26303 | arg2 = wxString_in_helper(obj1); | |
26304 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26305 | temp2 = True; |
d14a1e28 RD |
26306 | } |
26307 | if (obj2) { | |
15afbcd0 RD |
26308 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
26309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26310 | } |
26311 | { | |
26312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26313 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26314 | ||
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
26318 | Py_INCREF(Py_None); resultobj = Py_None; | |
26319 | { | |
26320 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26321 | resultobj = t_output_helper(resultobj,o); | |
26322 | } | |
26323 | { | |
26324 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26325 | resultobj = t_output_helper(resultobj,o); | |
26326 | } | |
26327 | { | |
26328 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26329 | resultobj = t_output_helper(resultobj,o); | |
26330 | } | |
26331 | { | |
26332 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26333 | resultobj = t_output_helper(resultobj,o); | |
26334 | } | |
26335 | { | |
26336 | if (temp2) | |
26337 | delete arg2; | |
26338 | } | |
26339 | return resultobj; | |
26340 | fail: | |
26341 | { | |
26342 | if (temp2) | |
26343 | delete arg2; | |
26344 | } | |
26345 | return NULL; | |
26346 | } | |
26347 | ||
26348 | ||
26349 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26350 | PyObject *resultobj; | |
26351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26352 | int *arg2 = (int *) 0 ; | |
26353 | int *arg3 = (int *) 0 ; | |
26354 | int temp2 ; | |
26355 | int temp3 ; | |
26356 | PyObject * obj0 = 0 ; | |
26357 | PyObject * obj1 = 0 ; | |
26358 | PyObject * obj2 = 0 ; | |
26359 | char *kwnames[] = { | |
26360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26361 | }; | |
26362 | ||
26363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26366 | { |
26367 | temp2 = PyInt_AsLong(obj1); | |
26368 | if (PyErr_Occurred()) SWIG_fail; | |
26369 | arg2 = &temp2; | |
26370 | } | |
26371 | { | |
26372 | temp3 = PyInt_AsLong(obj2); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | arg3 = &temp3; | |
26375 | } | |
26376 | { | |
26377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26378 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26379 | ||
26380 | wxPyEndAllowThreads(__tstate); | |
26381 | if (PyErr_Occurred()) SWIG_fail; | |
26382 | } | |
26383 | Py_INCREF(Py_None); resultobj = Py_None; | |
26384 | { | |
26385 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26386 | resultobj = t_output_helper(resultobj,o); | |
26387 | } | |
26388 | { | |
26389 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26390 | resultobj = t_output_helper(resultobj,o); | |
26391 | } | |
26392 | return resultobj; | |
26393 | fail: | |
26394 | return NULL; | |
26395 | } | |
26396 | ||
26397 | ||
26398 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26399 | PyObject *resultobj; | |
26400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26401 | int *arg2 = (int *) 0 ; | |
26402 | int *arg3 = (int *) 0 ; | |
26403 | int temp2 ; | |
26404 | int temp3 ; | |
26405 | PyObject * obj0 = 0 ; | |
26406 | PyObject * obj1 = 0 ; | |
26407 | PyObject * obj2 = 0 ; | |
26408 | char *kwnames[] = { | |
26409 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26410 | }; | |
26411 | ||
26412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26415 | { |
26416 | temp2 = PyInt_AsLong(obj1); | |
26417 | if (PyErr_Occurred()) SWIG_fail; | |
26418 | arg2 = &temp2; | |
26419 | } | |
26420 | { | |
26421 | temp3 = PyInt_AsLong(obj2); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | arg3 = &temp3; | |
26424 | } | |
26425 | { | |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | Py_INCREF(Py_None); resultobj = Py_None; | |
26433 | { | |
26434 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26435 | resultobj = t_output_helper(resultobj,o); | |
26436 | } | |
26437 | { | |
26438 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26439 | resultobj = t_output_helper(resultobj,o); | |
26440 | } | |
26441 | return resultobj; | |
26442 | fail: | |
26443 | return NULL; | |
26444 | } | |
26445 | ||
26446 | ||
26447 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26448 | PyObject *resultobj; | |
26449 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26450 | wxPoint *arg2 = 0 ; | |
26451 | wxPoint result; | |
26452 | wxPoint temp2 ; | |
26453 | PyObject * obj0 = 0 ; | |
26454 | PyObject * obj1 = 0 ; | |
26455 | char *kwnames[] = { | |
26456 | (char *) "self",(char *) "pt", NULL | |
26457 | }; | |
26458 | ||
26459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26462 | { |
26463 | arg2 = &temp2; | |
26464 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26465 | } | |
26466 | { | |
26467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26468 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26469 | ||
26470 | wxPyEndAllowThreads(__tstate); | |
26471 | if (PyErr_Occurred()) SWIG_fail; | |
26472 | } | |
26473 | { | |
26474 | wxPoint * resultptr; | |
26475 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26477 | } |
26478 | return resultobj; | |
26479 | fail: | |
26480 | return NULL; | |
26481 | } | |
26482 | ||
26483 | ||
26484 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26485 | PyObject *resultobj; | |
26486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26487 | wxPoint *arg2 = 0 ; | |
26488 | wxPoint result; | |
26489 | wxPoint temp2 ; | |
26490 | PyObject * obj0 = 0 ; | |
26491 | PyObject * obj1 = 0 ; | |
26492 | char *kwnames[] = { | |
26493 | (char *) "self",(char *) "pt", NULL | |
26494 | }; | |
26495 | ||
26496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26499 | { |
26500 | arg2 = &temp2; | |
26501 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26502 | } | |
26503 | { | |
26504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26505 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26506 | ||
26507 | wxPyEndAllowThreads(__tstate); | |
26508 | if (PyErr_Occurred()) SWIG_fail; | |
26509 | } | |
26510 | { | |
26511 | wxPoint * resultptr; | |
26512 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26514 | } |
26515 | return resultobj; | |
26516 | fail: | |
26517 | return NULL; | |
26518 | } | |
26519 | ||
26520 | ||
26521 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26522 | PyObject *resultobj; | |
26523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
26524 | int arg2 ; |
26525 | int arg3 ; | |
d14a1e28 RD |
26526 | int result; |
26527 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26528 | PyObject * obj1 = 0 ; |
26529 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26530 | char *kwnames[] = { |
26531 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26532 | }; | |
26533 | ||
994141e6 | 26534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26537 | arg2 = (int) SWIG_AsInt(obj1); | |
26538 | if (PyErr_Occurred()) SWIG_fail; | |
26539 | arg3 = (int) SWIG_AsInt(obj2); | |
26540 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26541 | { |
26542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26543 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26544 | ||
26545 | wxPyEndAllowThreads(__tstate); | |
26546 | if (PyErr_Occurred()) SWIG_fail; | |
26547 | } | |
15afbcd0 | 26548 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26549 | return resultobj; |
26550 | fail: | |
26551 | return NULL; | |
26552 | } | |
26553 | ||
26554 | ||
26555 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26556 | PyObject *resultobj; | |
26557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26558 | wxPoint *arg2 = 0 ; | |
26559 | int result; | |
26560 | wxPoint temp2 ; | |
26561 | PyObject * obj0 = 0 ; | |
26562 | PyObject * obj1 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self",(char *) "pt", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26570 | { |
26571 | arg2 = &temp2; | |
26572 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26573 | } | |
26574 | { | |
26575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26576 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26577 | ||
26578 | wxPyEndAllowThreads(__tstate); | |
26579 | if (PyErr_Occurred()) SWIG_fail; | |
26580 | } | |
15afbcd0 | 26581 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26582 | return resultobj; |
26583 | fail: | |
26584 | return NULL; | |
26585 | } | |
26586 | ||
26587 | ||
15afbcd0 | 26588 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26589 | PyObject *resultobj; |
26590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26591 | long arg2 ; | |
26592 | int result; | |
26593 | PyObject * obj0 = 0 ; | |
994141e6 | 26594 | PyObject * obj1 = 0 ; |
d14a1e28 | 26595 | |
15afbcd0 RD |
26596 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
26597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26599 | arg2 = (long) SWIG_AsLong(obj1); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26601 | { |
26602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26603 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26604 | ||
26605 | wxPyEndAllowThreads(__tstate); | |
26606 | if (PyErr_Occurred()) SWIG_fail; | |
26607 | } | |
15afbcd0 | 26608 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26609 | return resultobj; |
26610 | fail: | |
26611 | return NULL; | |
26612 | } | |
26613 | ||
26614 | ||
15afbcd0 | 26615 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26616 | PyObject *resultobj; |
26617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26618 | int result; | |
26619 | PyObject * obj0 = 0 ; | |
d14a1e28 | 26620 | |
15afbcd0 RD |
26621 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
26622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26624 | { |
26625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26626 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26627 | ||
26628 | wxPyEndAllowThreads(__tstate); | |
26629 | if (PyErr_Occurred()) SWIG_fail; | |
26630 | } | |
15afbcd0 | 26631 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26632 | return resultobj; |
26633 | fail: | |
26634 | return NULL; | |
26635 | } | |
26636 | ||
26637 | ||
15afbcd0 RD |
26638 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
26639 | int argc; | |
26640 | PyObject *argv[3]; | |
26641 | int ii; | |
26642 | ||
26643 | argc = PyObject_Length(args); | |
26644 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26645 | argv[ii] = PyTuple_GetItem(args,ii); | |
26646 | } | |
26647 | if (argc == 1) { | |
26648 | int _v; | |
26649 | { | |
26650 | void *ptr; | |
26651 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26652 | _v = 0; | |
26653 | PyErr_Clear(); | |
26654 | } else { | |
26655 | _v = 1; | |
26656 | } | |
26657 | } | |
26658 | if (_v) { | |
26659 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26660 | } | |
26661 | } | |
26662 | if (argc == 2) { | |
26663 | int _v; | |
26664 | { | |
26665 | void *ptr; | |
26666 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26667 | _v = 0; | |
26668 | PyErr_Clear(); | |
26669 | } else { | |
26670 | _v = 1; | |
26671 | } | |
26672 | } | |
26673 | if (_v) { | |
26674 | _v = SWIG_CheckLong(argv[1]); | |
26675 | if (_v) { | |
26676 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26677 | } | |
26678 | } | |
26679 | } | |
26680 | ||
26681 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26682 | return NULL; | |
26683 | } | |
26684 | ||
26685 | ||
d14a1e28 RD |
26686 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
26687 | PyObject *resultobj; | |
26688 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26689 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26690 | PyObject * obj0 = 0 ; | |
994141e6 | 26691 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26692 | char *kwnames[] = { |
26693 | (char *) "self",(char *) "flags", NULL | |
26694 | }; | |
26695 | ||
994141e6 | 26696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 26699 | if (obj1) { |
15afbcd0 RD |
26700 | arg2 = (long) SWIG_AsLong(obj1); |
26701 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26702 | } |
d14a1e28 RD |
26703 | { |
26704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26705 | (arg1)->UpdateWindowUI(arg2); | |
26706 | ||
26707 | wxPyEndAllowThreads(__tstate); | |
26708 | if (PyErr_Occurred()) SWIG_fail; | |
26709 | } | |
26710 | Py_INCREF(Py_None); resultobj = Py_None; | |
26711 | return resultobj; | |
26712 | fail: | |
26713 | return NULL; | |
26714 | } | |
26715 | ||
26716 | ||
26717 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26718 | PyObject *resultobj; | |
26719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26720 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26721 | int arg3 ; | |
26722 | int arg4 ; | |
26723 | bool result; | |
26724 | PyObject * obj0 = 0 ; | |
26725 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26726 | PyObject * obj2 = 0 ; |
26727 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26728 | char *kwnames[] = { |
26729 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26730 | }; | |
26731 | ||
994141e6 | 26732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26735 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26737 | arg3 = (int) SWIG_AsInt(obj2); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | arg4 = (int) SWIG_AsInt(obj3); | |
26740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26741 | { |
26742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26743 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26744 | ||
26745 | wxPyEndAllowThreads(__tstate); | |
26746 | if (PyErr_Occurred()) SWIG_fail; | |
26747 | } | |
4f89f6a3 RD |
26748 | { |
26749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26750 | } | |
d14a1e28 RD |
26751 | return resultobj; |
26752 | fail: | |
26753 | return NULL; | |
26754 | } | |
26755 | ||
26756 | ||
26757 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26758 | PyObject *resultobj; | |
26759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26760 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26761 | wxPoint *arg3 = 0 ; | |
26762 | bool result; | |
26763 | wxPoint temp3 ; | |
26764 | PyObject * obj0 = 0 ; | |
26765 | PyObject * obj1 = 0 ; | |
26766 | PyObject * obj2 = 0 ; | |
26767 | char *kwnames[] = { | |
26768 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26769 | }; | |
26770 | ||
26771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26776 | { |
26777 | arg3 = &temp3; | |
26778 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26779 | } | |
26780 | { | |
26781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26782 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26783 | ||
26784 | wxPyEndAllowThreads(__tstate); | |
26785 | if (PyErr_Occurred()) SWIG_fail; | |
26786 | } | |
4f89f6a3 RD |
26787 | { |
26788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26789 | } | |
d14a1e28 RD |
26790 | return resultobj; |
26791 | fail: | |
26792 | return NULL; | |
26793 | } | |
26794 | ||
26795 | ||
26796 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26797 | PyObject *resultobj; | |
26798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26799 | long result; | |
26800 | PyObject * obj0 = 0 ; | |
26801 | char *kwnames[] = { | |
26802 | (char *) "self", NULL | |
26803 | }; | |
26804 | ||
26805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26808 | { |
26809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26810 | result = (long)wxWindow_GetHandle(arg1); | |
26811 | ||
26812 | wxPyEndAllowThreads(__tstate); | |
26813 | if (PyErr_Occurred()) SWIG_fail; | |
26814 | } | |
15afbcd0 | 26815 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
26816 | return resultobj; |
26817 | fail: | |
26818 | return NULL; | |
26819 | } | |
26820 | ||
26821 | ||
26822 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26823 | PyObject *resultobj; | |
26824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26825 | int arg2 ; | |
26826 | bool result; | |
26827 | PyObject * obj0 = 0 ; | |
994141e6 | 26828 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26829 | char *kwnames[] = { |
26830 | (char *) "self",(char *) "orient", NULL | |
26831 | }; | |
26832 | ||
994141e6 | 26833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26836 | arg2 = (int) SWIG_AsInt(obj1); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26838 | { |
26839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26840 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26841 | ||
26842 | wxPyEndAllowThreads(__tstate); | |
26843 | if (PyErr_Occurred()) SWIG_fail; | |
26844 | } | |
4f89f6a3 RD |
26845 | { |
26846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26847 | } | |
d14a1e28 RD |
26848 | return resultobj; |
26849 | fail: | |
26850 | return NULL; | |
26851 | } | |
26852 | ||
26853 | ||
26854 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26855 | PyObject *resultobj; | |
26856 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26857 | int arg2 ; | |
26858 | int arg3 ; | |
26859 | int arg4 ; | |
26860 | int arg5 ; | |
e811c8ce | 26861 | bool arg6 = (bool) True ; |
d14a1e28 | 26862 | PyObject * obj0 = 0 ; |
994141e6 RD |
26863 | PyObject * obj1 = 0 ; |
26864 | PyObject * obj2 = 0 ; | |
26865 | PyObject * obj3 = 0 ; | |
26866 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26867 | PyObject * obj5 = 0 ; |
26868 | char *kwnames[] = { | |
15afbcd0 | 26869 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
26870 | }; |
26871 | ||
994141e6 | 26872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26875 | arg2 = (int) SWIG_AsInt(obj1); | |
26876 | if (PyErr_Occurred()) SWIG_fail; | |
26877 | arg3 = (int) SWIG_AsInt(obj2); | |
26878 | if (PyErr_Occurred()) SWIG_fail; | |
26879 | arg4 = (int) SWIG_AsInt(obj3); | |
26880 | if (PyErr_Occurred()) SWIG_fail; | |
26881 | arg5 = (int) SWIG_AsInt(obj4); | |
26882 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26883 | if (obj5) { |
15afbcd0 RD |
26884 | arg6 = (bool) SWIG_AsBool(obj5); |
26885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26886 | } |
26887 | { | |
26888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26889 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
26890 | ||
26891 | wxPyEndAllowThreads(__tstate); | |
26892 | if (PyErr_Occurred()) SWIG_fail; | |
26893 | } | |
26894 | Py_INCREF(Py_None); resultobj = Py_None; | |
26895 | return resultobj; | |
26896 | fail: | |
26897 | return NULL; | |
26898 | } | |
26899 | ||
26900 | ||
26901 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26902 | PyObject *resultobj; | |
26903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26904 | int arg2 ; | |
26905 | int arg3 ; | |
e811c8ce | 26906 | bool arg4 = (bool) True ; |
d14a1e28 | 26907 | PyObject * obj0 = 0 ; |
994141e6 RD |
26908 | PyObject * obj1 = 0 ; |
26909 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26910 | PyObject * obj3 = 0 ; |
26911 | char *kwnames[] = { | |
15afbcd0 | 26912 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
26913 | }; |
26914 | ||
994141e6 | 26915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26918 | arg2 = (int) SWIG_AsInt(obj1); | |
26919 | if (PyErr_Occurred()) SWIG_fail; | |
26920 | arg3 = (int) SWIG_AsInt(obj2); | |
26921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 26922 | if (obj3) { |
15afbcd0 RD |
26923 | arg4 = (bool) SWIG_AsBool(obj3); |
26924 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26925 | } |
26926 | { | |
26927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26928 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
26929 | ||
26930 | wxPyEndAllowThreads(__tstate); | |
26931 | if (PyErr_Occurred()) SWIG_fail; | |
26932 | } | |
26933 | Py_INCREF(Py_None); resultobj = Py_None; | |
26934 | return resultobj; | |
26935 | fail: | |
26936 | return NULL; | |
26937 | } | |
26938 | ||
26939 | ||
26940 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26941 | PyObject *resultobj; | |
26942 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26943 | int arg2 ; | |
26944 | int result; | |
26945 | PyObject * obj0 = 0 ; | |
994141e6 | 26946 | PyObject * obj1 = 0 ; |
d14a1e28 | 26947 | char *kwnames[] = { |
15afbcd0 | 26948 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26949 | }; |
26950 | ||
994141e6 | 26951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26954 | arg2 = (int) SWIG_AsInt(obj1); | |
26955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26956 | { |
26957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26958 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
26959 | ||
26960 | wxPyEndAllowThreads(__tstate); | |
26961 | if (PyErr_Occurred()) SWIG_fail; | |
26962 | } | |
15afbcd0 | 26963 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26964 | return resultobj; |
26965 | fail: | |
26966 | return NULL; | |
26967 | } | |
26968 | ||
26969 | ||
26970 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26971 | PyObject *resultobj; | |
26972 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26973 | int arg2 ; | |
26974 | int result; | |
26975 | PyObject * obj0 = 0 ; | |
994141e6 | 26976 | PyObject * obj1 = 0 ; |
d14a1e28 | 26977 | char *kwnames[] = { |
15afbcd0 | 26978 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
26979 | }; |
26980 | ||
994141e6 | 26981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26984 | arg2 = (int) SWIG_AsInt(obj1); | |
26985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26986 | { |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
26989 | ||
26990 | wxPyEndAllowThreads(__tstate); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | } | |
15afbcd0 | 26993 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26994 | return resultobj; |
26995 | fail: | |
26996 | return NULL; | |
26997 | } | |
26998 | ||
26999 | ||
27000 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27001 | PyObject *resultobj; | |
27002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27003 | int arg2 ; | |
27004 | int result; | |
27005 | PyObject * obj0 = 0 ; | |
994141e6 | 27006 | PyObject * obj1 = 0 ; |
d14a1e28 | 27007 | char *kwnames[] = { |
15afbcd0 | 27008 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27009 | }; |
27010 | ||
994141e6 | 27011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27014 | arg2 = (int) SWIG_AsInt(obj1); | |
27015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27016 | { |
27017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27018 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27019 | ||
27020 | wxPyEndAllowThreads(__tstate); | |
27021 | if (PyErr_Occurred()) SWIG_fail; | |
27022 | } | |
15afbcd0 | 27023 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27024 | return resultobj; |
27025 | fail: | |
27026 | return NULL; | |
27027 | } | |
27028 | ||
27029 | ||
27030 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27031 | PyObject *resultobj; | |
27032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27033 | int arg2 ; | |
27034 | int arg3 ; | |
27035 | wxRect *arg4 = (wxRect *) NULL ; | |
27036 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27037 | PyObject * obj1 = 0 ; |
27038 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27039 | PyObject * obj3 = 0 ; |
27040 | char *kwnames[] = { | |
27041 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27042 | }; | |
27043 | ||
994141e6 | 27044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27047 | arg2 = (int) SWIG_AsInt(obj1); | |
27048 | if (PyErr_Occurred()) SWIG_fail; | |
27049 | arg3 = (int) SWIG_AsInt(obj2); | |
27050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27051 | if (obj3) { |
15afbcd0 RD |
27052 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
27053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27054 | } |
27055 | { | |
27056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27057 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27058 | ||
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | Py_INCREF(Py_None); resultobj = Py_None; | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
27069 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27070 | PyObject *resultobj; | |
27071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27072 | int arg2 ; | |
27073 | bool result; | |
27074 | PyObject * obj0 = 0 ; | |
994141e6 | 27075 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27076 | char *kwnames[] = { |
27077 | (char *) "self",(char *) "lines", NULL | |
27078 | }; | |
27079 | ||
994141e6 | 27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27083 | arg2 = (int) SWIG_AsInt(obj1); | |
27084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27085 | { |
27086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27087 | result = (bool)(arg1)->ScrollLines(arg2); | |
27088 | ||
27089 | wxPyEndAllowThreads(__tstate); | |
27090 | if (PyErr_Occurred()) SWIG_fail; | |
27091 | } | |
4f89f6a3 RD |
27092 | { |
27093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27094 | } | |
d14a1e28 RD |
27095 | return resultobj; |
27096 | fail: | |
27097 | return NULL; | |
27098 | } | |
27099 | ||
27100 | ||
27101 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27102 | PyObject *resultobj; | |
27103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27104 | int arg2 ; | |
27105 | bool result; | |
27106 | PyObject * obj0 = 0 ; | |
994141e6 | 27107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27108 | char *kwnames[] = { |
27109 | (char *) "self",(char *) "pages", NULL | |
27110 | }; | |
27111 | ||
994141e6 | 27112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27115 | arg2 = (int) SWIG_AsInt(obj1); | |
27116 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27117 | { |
27118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27119 | result = (bool)(arg1)->ScrollPages(arg2); | |
27120 | ||
27121 | wxPyEndAllowThreads(__tstate); | |
27122 | if (PyErr_Occurred()) SWIG_fail; | |
27123 | } | |
4f89f6a3 RD |
27124 | { |
27125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27126 | } | |
d14a1e28 RD |
27127 | return resultobj; |
27128 | fail: | |
27129 | return NULL; | |
27130 | } | |
27131 | ||
27132 | ||
27133 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27134 | PyObject *resultobj; | |
27135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27136 | bool result; | |
27137 | PyObject * obj0 = 0 ; | |
27138 | char *kwnames[] = { | |
27139 | (char *) "self", NULL | |
27140 | }; | |
27141 | ||
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27145 | { |
27146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27147 | result = (bool)(arg1)->LineUp(); | |
27148 | ||
27149 | wxPyEndAllowThreads(__tstate); | |
27150 | if (PyErr_Occurred()) SWIG_fail; | |
27151 | } | |
4f89f6a3 RD |
27152 | { |
27153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27154 | } | |
d14a1e28 RD |
27155 | return resultobj; |
27156 | fail: | |
27157 | return NULL; | |
27158 | } | |
27159 | ||
27160 | ||
27161 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27162 | PyObject *resultobj; | |
27163 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27164 | bool result; | |
27165 | PyObject * obj0 = 0 ; | |
27166 | char *kwnames[] = { | |
27167 | (char *) "self", NULL | |
27168 | }; | |
27169 | ||
27170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27173 | { |
27174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27175 | result = (bool)(arg1)->LineDown(); | |
27176 | ||
27177 | wxPyEndAllowThreads(__tstate); | |
27178 | if (PyErr_Occurred()) SWIG_fail; | |
27179 | } | |
4f89f6a3 RD |
27180 | { |
27181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27182 | } | |
d14a1e28 RD |
27183 | return resultobj; |
27184 | fail: | |
27185 | return NULL; | |
27186 | } | |
27187 | ||
27188 | ||
27189 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27190 | PyObject *resultobj; | |
27191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27192 | bool result; | |
27193 | PyObject * obj0 = 0 ; | |
27194 | char *kwnames[] = { | |
27195 | (char *) "self", NULL | |
27196 | }; | |
27197 | ||
27198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27201 | { |
27202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27203 | result = (bool)(arg1)->PageUp(); | |
27204 | ||
27205 | wxPyEndAllowThreads(__tstate); | |
27206 | if (PyErr_Occurred()) SWIG_fail; | |
27207 | } | |
4f89f6a3 RD |
27208 | { |
27209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27210 | } | |
d14a1e28 RD |
27211 | return resultobj; |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
27217 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27218 | PyObject *resultobj; | |
27219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27220 | bool result; | |
27221 | PyObject * obj0 = 0 ; | |
27222 | char *kwnames[] = { | |
27223 | (char *) "self", NULL | |
27224 | }; | |
27225 | ||
27226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27229 | { |
27230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27231 | result = (bool)(arg1)->PageDown(); | |
27232 | ||
27233 | wxPyEndAllowThreads(__tstate); | |
27234 | if (PyErr_Occurred()) SWIG_fail; | |
27235 | } | |
4f89f6a3 RD |
27236 | { |
27237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27238 | } | |
d14a1e28 RD |
27239 | return resultobj; |
27240 | fail: | |
27241 | return NULL; | |
27242 | } | |
27243 | ||
27244 | ||
27245 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27246 | PyObject *resultobj; | |
27247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27248 | wxString *arg2 = 0 ; | |
e811c8ce | 27249 | bool temp2 = False ; |
d14a1e28 RD |
27250 | PyObject * obj0 = 0 ; |
27251 | PyObject * obj1 = 0 ; | |
27252 | char *kwnames[] = { | |
27253 | (char *) "self",(char *) "text", NULL | |
27254 | }; | |
27255 | ||
27256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27259 | { |
27260 | arg2 = wxString_in_helper(obj1); | |
27261 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27262 | temp2 = True; |
d14a1e28 RD |
27263 | } |
27264 | { | |
27265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27266 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27267 | ||
27268 | wxPyEndAllowThreads(__tstate); | |
27269 | if (PyErr_Occurred()) SWIG_fail; | |
27270 | } | |
27271 | Py_INCREF(Py_None); resultobj = Py_None; | |
27272 | { | |
27273 | if (temp2) | |
27274 | delete arg2; | |
27275 | } | |
27276 | return resultobj; | |
27277 | fail: | |
27278 | { | |
27279 | if (temp2) | |
27280 | delete arg2; | |
27281 | } | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
27286 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27287 | PyObject *resultobj; | |
27288 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27289 | wxString *arg2 = 0 ; | |
e811c8ce | 27290 | bool temp2 = False ; |
d14a1e28 RD |
27291 | PyObject * obj0 = 0 ; |
27292 | PyObject * obj1 = 0 ; | |
27293 | char *kwnames[] = { | |
27294 | (char *) "self",(char *) "text", NULL | |
27295 | }; | |
27296 | ||
27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27300 | { |
27301 | arg2 = wxString_in_helper(obj1); | |
27302 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27303 | temp2 = True; |
d14a1e28 RD |
27304 | } |
27305 | { | |
27306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27307 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27308 | ||
27309 | wxPyEndAllowThreads(__tstate); | |
27310 | if (PyErr_Occurred()) SWIG_fail; | |
27311 | } | |
27312 | Py_INCREF(Py_None); resultobj = Py_None; | |
27313 | { | |
27314 | if (temp2) | |
27315 | delete arg2; | |
27316 | } | |
27317 | return resultobj; | |
27318 | fail: | |
27319 | { | |
27320 | if (temp2) | |
27321 | delete arg2; | |
27322 | } | |
27323 | return NULL; | |
27324 | } | |
27325 | ||
27326 | ||
27327 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27328 | PyObject *resultobj; | |
27329 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27330 | wxString result; | |
27331 | PyObject * obj0 = 0 ; | |
27332 | char *kwnames[] = { | |
27333 | (char *) "self", NULL | |
27334 | }; | |
27335 | ||
27336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27339 | { |
27340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27341 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27342 | ||
27343 | wxPyEndAllowThreads(__tstate); | |
27344 | if (PyErr_Occurred()) SWIG_fail; | |
27345 | } | |
27346 | { | |
27347 | #if wxUSE_UNICODE | |
27348 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27349 | #else | |
27350 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27351 | #endif | |
27352 | } | |
27353 | return resultobj; | |
27354 | fail: | |
27355 | return NULL; | |
27356 | } | |
27357 | ||
27358 | ||
27359 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27360 | PyObject *resultobj; | |
27361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27362 | wxString *arg2 = 0 ; | |
e811c8ce | 27363 | bool temp2 = False ; |
d14a1e28 RD |
27364 | PyObject * obj0 = 0 ; |
27365 | PyObject * obj1 = 0 ; | |
27366 | char *kwnames[] = { | |
27367 | (char *) "self",(char *) "tip", NULL | |
27368 | }; | |
27369 | ||
27370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27373 | { |
27374 | arg2 = wxString_in_helper(obj1); | |
27375 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27376 | temp2 = True; |
d14a1e28 RD |
27377 | } |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27380 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27381 | ||
27382 | wxPyEndAllowThreads(__tstate); | |
27383 | if (PyErr_Occurred()) SWIG_fail; | |
27384 | } | |
27385 | Py_INCREF(Py_None); resultobj = Py_None; | |
27386 | { | |
27387 | if (temp2) | |
27388 | delete arg2; | |
27389 | } | |
27390 | return resultobj; | |
27391 | fail: | |
27392 | { | |
27393 | if (temp2) | |
27394 | delete arg2; | |
27395 | } | |
27396 | return NULL; | |
27397 | } | |
27398 | ||
27399 | ||
27400 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27401 | PyObject *resultobj; | |
27402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27403 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27404 | PyObject * obj0 = 0 ; | |
27405 | PyObject * obj1 = 0 ; | |
27406 | char *kwnames[] = { | |
27407 | (char *) "self",(char *) "tip", NULL | |
27408 | }; | |
27409 | ||
27410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27415 | { |
27416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27417 | (arg1)->SetToolTip(arg2); | |
27418 | ||
27419 | wxPyEndAllowThreads(__tstate); | |
27420 | if (PyErr_Occurred()) SWIG_fail; | |
27421 | } | |
27422 | Py_INCREF(Py_None); resultobj = Py_None; | |
27423 | return resultobj; | |
27424 | fail: | |
27425 | return NULL; | |
27426 | } | |
27427 | ||
27428 | ||
27429 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27430 | PyObject *resultobj; | |
27431 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27432 | wxToolTip *result; | |
27433 | PyObject * obj0 = 0 ; | |
27434 | char *kwnames[] = { | |
27435 | (char *) "self", NULL | |
27436 | }; | |
27437 | ||
27438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27441 | { |
27442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27443 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27444 | ||
27445 | wxPyEndAllowThreads(__tstate); | |
27446 | if (PyErr_Occurred()) SWIG_fail; | |
27447 | } | |
27448 | { | |
27449 | resultobj = wxPyMake_wxObject(result); | |
27450 | } | |
27451 | return resultobj; | |
27452 | fail: | |
27453 | return NULL; | |
27454 | } | |
27455 | ||
27456 | ||
27457 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27458 | PyObject *resultobj; | |
27459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27460 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
27461 | PyObject * obj0 = 0 ; |
27462 | PyObject * obj1 = 0 ; | |
27463 | char *kwnames[] = { | |
27464 | (char *) "self",(char *) "dropTarget", NULL | |
27465 | }; | |
27466 | ||
27467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27471 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27472 | { |
27473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27474 | (arg1)->SetDropTarget(arg2); | |
27475 | ||
27476 | wxPyEndAllowThreads(__tstate); | |
27477 | if (PyErr_Occurred()) SWIG_fail; | |
27478 | } | |
27479 | Py_INCREF(Py_None); resultobj = Py_None; | |
27480 | return resultobj; | |
27481 | fail: | |
27482 | return NULL; | |
27483 | } | |
27484 | ||
27485 | ||
27486 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27487 | PyObject *resultobj; | |
27488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27489 | wxPyDropTarget *result; |
d14a1e28 RD |
27490 | PyObject * obj0 = 0 ; |
27491 | char *kwnames[] = { | |
27492 | (char *) "self", NULL | |
27493 | }; | |
27494 | ||
27495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 27500 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
27501 | |
27502 | wxPyEndAllowThreads(__tstate); | |
27503 | if (PyErr_Occurred()) SWIG_fail; | |
27504 | } | |
15afbcd0 | 27505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
27506 | return resultobj; |
27507 | fail: | |
27508 | return NULL; | |
27509 | } | |
27510 | ||
27511 | ||
27512 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27513 | PyObject *resultobj; | |
27514 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27515 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27516 | PyObject * obj0 = 0 ; | |
27517 | PyObject * obj1 = 0 ; | |
27518 | char *kwnames[] = { | |
27519 | (char *) "self",(char *) "constraints", NULL | |
27520 | }; | |
27521 | ||
27522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27527 | { |
27528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27529 | (arg1)->SetConstraints(arg2); | |
27530 | ||
27531 | wxPyEndAllowThreads(__tstate); | |
27532 | if (PyErr_Occurred()) SWIG_fail; | |
27533 | } | |
27534 | Py_INCREF(Py_None); resultobj = Py_None; | |
27535 | return resultobj; | |
27536 | fail: | |
27537 | return NULL; | |
27538 | } | |
27539 | ||
27540 | ||
27541 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27542 | PyObject *resultobj; | |
27543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27544 | wxLayoutConstraints *result; | |
27545 | PyObject * obj0 = 0 ; | |
27546 | char *kwnames[] = { | |
27547 | (char *) "self", NULL | |
27548 | }; | |
27549 | ||
27550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27553 | { |
27554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27555 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27556 | ||
27557 | wxPyEndAllowThreads(__tstate); | |
27558 | if (PyErr_Occurred()) SWIG_fail; | |
27559 | } | |
15afbcd0 | 27560 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
27561 | return resultobj; |
27562 | fail: | |
27563 | return NULL; | |
27564 | } | |
27565 | ||
27566 | ||
27567 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27568 | PyObject *resultobj; | |
27569 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27570 | bool arg2 ; | |
27571 | PyObject * obj0 = 0 ; | |
27572 | PyObject * obj1 = 0 ; | |
27573 | char *kwnames[] = { | |
27574 | (char *) "self",(char *) "autoLayout", NULL | |
27575 | }; | |
27576 | ||
27577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27580 | arg2 = (bool) SWIG_AsBool(obj1); | |
27581 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27582 | { |
27583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27584 | (arg1)->SetAutoLayout(arg2); | |
27585 | ||
27586 | wxPyEndAllowThreads(__tstate); | |
27587 | if (PyErr_Occurred()) SWIG_fail; | |
27588 | } | |
27589 | Py_INCREF(Py_None); resultobj = Py_None; | |
27590 | return resultobj; | |
27591 | fail: | |
27592 | return NULL; | |
27593 | } | |
27594 | ||
27595 | ||
27596 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27597 | PyObject *resultobj; | |
27598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27599 | bool result; | |
27600 | PyObject * obj0 = 0 ; | |
27601 | char *kwnames[] = { | |
27602 | (char *) "self", NULL | |
27603 | }; | |
27604 | ||
27605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27608 | { |
27609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27610 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27611 | ||
27612 | wxPyEndAllowThreads(__tstate); | |
27613 | if (PyErr_Occurred()) SWIG_fail; | |
27614 | } | |
4f89f6a3 RD |
27615 | { |
27616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27617 | } | |
d14a1e28 RD |
27618 | return resultobj; |
27619 | fail: | |
27620 | return NULL; | |
27621 | } | |
27622 | ||
27623 | ||
27624 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27625 | PyObject *resultobj; | |
27626 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27627 | bool result; | |
27628 | PyObject * obj0 = 0 ; | |
27629 | char *kwnames[] = { | |
27630 | (char *) "self", NULL | |
27631 | }; | |
27632 | ||
27633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27636 | { |
27637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27638 | result = (bool)(arg1)->Layout(); | |
27639 | ||
27640 | wxPyEndAllowThreads(__tstate); | |
27641 | if (PyErr_Occurred()) SWIG_fail; | |
27642 | } | |
4f89f6a3 RD |
27643 | { |
27644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27645 | } | |
d14a1e28 RD |
27646 | return resultobj; |
27647 | fail: | |
27648 | return NULL; | |
27649 | } | |
27650 | ||
27651 | ||
27652 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27653 | PyObject *resultobj; | |
27654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27655 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27656 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27657 | PyObject * obj0 = 0 ; |
27658 | PyObject * obj1 = 0 ; | |
27659 | PyObject * obj2 = 0 ; | |
27660 | char *kwnames[] = { | |
27661 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27662 | }; | |
27663 | ||
27664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27669 | if (obj2) { |
15afbcd0 RD |
27670 | arg3 = (bool) SWIG_AsBool(obj2); |
27671 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27672 | } |
27673 | { | |
27674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27675 | (arg1)->SetSizer(arg2,arg3); | |
27676 | ||
27677 | wxPyEndAllowThreads(__tstate); | |
27678 | if (PyErr_Occurred()) SWIG_fail; | |
27679 | } | |
27680 | Py_INCREF(Py_None); resultobj = Py_None; | |
27681 | return resultobj; | |
27682 | fail: | |
27683 | return NULL; | |
27684 | } | |
27685 | ||
27686 | ||
27687 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27688 | PyObject *resultobj; | |
27689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27690 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27691 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27692 | PyObject * obj0 = 0 ; |
27693 | PyObject * obj1 = 0 ; | |
27694 | PyObject * obj2 = 0 ; | |
27695 | char *kwnames[] = { | |
27696 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27697 | }; | |
27698 | ||
27699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27704 | if (obj2) { |
15afbcd0 RD |
27705 | arg3 = (bool) SWIG_AsBool(obj2); |
27706 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27707 | } |
27708 | { | |
27709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27710 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27711 | ||
27712 | wxPyEndAllowThreads(__tstate); | |
27713 | if (PyErr_Occurred()) SWIG_fail; | |
27714 | } | |
27715 | Py_INCREF(Py_None); resultobj = Py_None; | |
27716 | return resultobj; | |
27717 | fail: | |
27718 | return NULL; | |
27719 | } | |
27720 | ||
27721 | ||
27722 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27723 | PyObject *resultobj; | |
27724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27725 | wxSizer *result; | |
27726 | PyObject * obj0 = 0 ; | |
27727 | char *kwnames[] = { | |
27728 | (char *) "self", NULL | |
27729 | }; | |
27730 | ||
27731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27734 | { |
27735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27736 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27737 | ||
27738 | wxPyEndAllowThreads(__tstate); | |
27739 | if (PyErr_Occurred()) SWIG_fail; | |
27740 | } | |
27741 | { | |
27742 | resultobj = wxPyMake_wxSizer(result); | |
27743 | } | |
27744 | return resultobj; | |
27745 | fail: | |
27746 | return NULL; | |
27747 | } | |
27748 | ||
27749 | ||
27750 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27751 | PyObject *resultobj; | |
27752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27753 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27754 | PyObject * obj0 = 0 ; | |
27755 | PyObject * obj1 = 0 ; | |
27756 | char *kwnames[] = { | |
27757 | (char *) "self",(char *) "sizer", NULL | |
27758 | }; | |
27759 | ||
27760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27765 | { |
27766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27767 | (arg1)->SetContainingSizer(arg2); | |
27768 | ||
27769 | wxPyEndAllowThreads(__tstate); | |
27770 | if (PyErr_Occurred()) SWIG_fail; | |
27771 | } | |
27772 | Py_INCREF(Py_None); resultobj = Py_None; | |
27773 | return resultobj; | |
27774 | fail: | |
27775 | return NULL; | |
27776 | } | |
27777 | ||
27778 | ||
27779 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27780 | PyObject *resultobj; | |
27781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27782 | wxSizer *result; | |
27783 | PyObject * obj0 = 0 ; | |
27784 | char *kwnames[] = { | |
27785 | (char *) "self", NULL | |
27786 | }; | |
27787 | ||
27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27791 | { |
27792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27793 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | { | |
27799 | resultobj = wxPyMake_wxSizer(result); | |
27800 | } | |
27801 | return resultobj; | |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
27807 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
27808 | PyObject *obj; | |
27809 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27810 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
27811 | Py_INCREF(obj); | |
27812 | return Py_BuildValue((char *)""); | |
27813 | } | |
27814 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27815 | PyObject *resultobj; | |
27816 | long arg1 ; | |
27817 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27818 | wxWindow *result; | |
994141e6 | 27819 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
27820 | PyObject * obj1 = 0 ; |
27821 | char *kwnames[] = { | |
27822 | (char *) "id",(char *) "parent", NULL | |
27823 | }; | |
27824 | ||
994141e6 | 27825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27826 | arg1 = (long) SWIG_AsLong(obj0); |
27827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27828 | if (obj1) { |
15afbcd0 RD |
27829 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27831 | } |
27832 | { | |
27833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27834 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
27835 | ||
27836 | wxPyEndAllowThreads(__tstate); | |
27837 | if (PyErr_Occurred()) SWIG_fail; | |
27838 | } | |
27839 | { | |
27840 | resultobj = wxPyMake_wxObject(result); | |
27841 | } | |
27842 | return resultobj; | |
27843 | fail: | |
27844 | return NULL; | |
27845 | } | |
27846 | ||
27847 | ||
27848 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27849 | PyObject *resultobj; | |
27850 | wxString *arg1 = 0 ; | |
27851 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27852 | wxWindow *result; | |
e811c8ce | 27853 | bool temp1 = False ; |
d14a1e28 RD |
27854 | PyObject * obj0 = 0 ; |
27855 | PyObject * obj1 = 0 ; | |
27856 | char *kwnames[] = { | |
27857 | (char *) "name",(char *) "parent", NULL | |
27858 | }; | |
27859 | ||
27860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
27861 | { | |
27862 | arg1 = wxString_in_helper(obj0); | |
27863 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 27864 | temp1 = True; |
d14a1e28 RD |
27865 | } |
27866 | if (obj1) { | |
15afbcd0 RD |
27867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27869 | } |
27870 | { | |
27871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27872 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
27873 | ||
27874 | wxPyEndAllowThreads(__tstate); | |
27875 | if (PyErr_Occurred()) SWIG_fail; | |
27876 | } | |
27877 | { | |
27878 | resultobj = wxPyMake_wxObject(result); | |
27879 | } | |
27880 | { | |
27881 | if (temp1) | |
27882 | delete arg1; | |
27883 | } | |
27884 | return resultobj; | |
27885 | fail: | |
27886 | { | |
27887 | if (temp1) | |
27888 | delete arg1; | |
27889 | } | |
27890 | return NULL; | |
27891 | } | |
27892 | ||
27893 | ||
27894 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27895 | PyObject *resultobj; | |
27896 | wxString *arg1 = 0 ; | |
27897 | wxWindow *arg2 = (wxWindow *) NULL ; | |
27898 | wxWindow *result; | |
e811c8ce | 27899 | bool temp1 = False ; |
d14a1e28 RD |
27900 | PyObject * obj0 = 0 ; |
27901 | PyObject * obj1 = 0 ; | |
27902 | char *kwnames[] = { | |
27903 | (char *) "label",(char *) "parent", NULL | |
27904 | }; | |
27905 | ||
27906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
27907 | { | |
27908 | arg1 = wxString_in_helper(obj0); | |
27909 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 27910 | temp1 = True; |
d14a1e28 RD |
27911 | } |
27912 | if (obj1) { | |
15afbcd0 RD |
27913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
27914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27915 | } |
27916 | { | |
27917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27918 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
27919 | ||
27920 | wxPyEndAllowThreads(__tstate); | |
27921 | if (PyErr_Occurred()) SWIG_fail; | |
27922 | } | |
27923 | { | |
27924 | resultobj = wxPyMake_wxObject(result); | |
27925 | } | |
27926 | { | |
27927 | if (temp1) | |
27928 | delete arg1; | |
27929 | } | |
27930 | return resultobj; | |
27931 | fail: | |
27932 | { | |
27933 | if (temp1) | |
27934 | delete arg1; | |
27935 | } | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
27940 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27941 | PyObject *resultobj; | |
4276dc52 RD |
27942 | wxWindow *arg1 = (wxWindow *) 0 ; |
27943 | unsigned long arg2 ; | |
d14a1e28 RD |
27944 | wxWindow *result; |
27945 | PyObject * obj0 = 0 ; | |
4276dc52 | 27946 | PyObject * obj1 = 0 ; |
d14a1e28 | 27947 | char *kwnames[] = { |
4276dc52 | 27948 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
27949 | }; |
27950 | ||
4276dc52 RD |
27951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
27952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27954 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
15afbcd0 | 27955 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
27956 | { |
27957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 27958 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
27959 | |
27960 | wxPyEndAllowThreads(__tstate); | |
27961 | if (PyErr_Occurred()) SWIG_fail; | |
27962 | } | |
27963 | { | |
27964 | resultobj = wxPyMake_wxObject(result); | |
27965 | } | |
27966 | return resultobj; | |
27967 | fail: | |
27968 | return NULL; | |
27969 | } | |
27970 | ||
27971 | ||
27972 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27973 | PyObject *resultobj; | |
27974 | wxValidator *result; | |
27975 | char *kwnames[] = { | |
27976 | NULL | |
27977 | }; | |
27978 | ||
27979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
27980 | { | |
27981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27982 | result = (wxValidator *)new wxValidator(); | |
27983 | ||
27984 | wxPyEndAllowThreads(__tstate); | |
27985 | if (PyErr_Occurred()) SWIG_fail; | |
27986 | } | |
27987 | { | |
27988 | resultobj = wxPyMake_wxObject(result); | |
27989 | } | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27997 | PyObject *resultobj; | |
27998 | wxValidator *arg1 = (wxValidator *) 0 ; | |
27999 | wxValidator *result; | |
28000 | PyObject * obj0 = 0 ; | |
28001 | char *kwnames[] = { | |
28002 | (char *) "self", NULL | |
28003 | }; | |
28004 | ||
28005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28008 | { |
28009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28010 | result = (wxValidator *)(arg1)->Clone(); | |
28011 | ||
28012 | wxPyEndAllowThreads(__tstate); | |
28013 | if (PyErr_Occurred()) SWIG_fail; | |
28014 | } | |
28015 | { | |
28016 | resultobj = wxPyMake_wxObject(result); | |
28017 | } | |
28018 | return resultobj; | |
28019 | fail: | |
28020 | return NULL; | |
28021 | } | |
28022 | ||
28023 | ||
28024 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28025 | PyObject *resultobj; | |
28026 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28027 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28028 | bool result; | |
28029 | PyObject * obj0 = 0 ; | |
28030 | PyObject * obj1 = 0 ; | |
28031 | char *kwnames[] = { | |
28032 | (char *) "self",(char *) "parent", NULL | |
28033 | }; | |
28034 | ||
28035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28038 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28040 | { |
28041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28042 | result = (bool)(arg1)->Validate(arg2); | |
28043 | ||
28044 | wxPyEndAllowThreads(__tstate); | |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
28046 | } | |
4f89f6a3 RD |
28047 | { |
28048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28049 | } | |
d14a1e28 RD |
28050 | return resultobj; |
28051 | fail: | |
28052 | return NULL; | |
28053 | } | |
28054 | ||
28055 | ||
28056 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28057 | PyObject *resultobj; | |
28058 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28059 | bool result; | |
28060 | PyObject * obj0 = 0 ; | |
28061 | char *kwnames[] = { | |
28062 | (char *) "self", NULL | |
28063 | }; | |
28064 | ||
28065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28068 | { |
28069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28070 | result = (bool)(arg1)->TransferToWindow(); | |
28071 | ||
28072 | wxPyEndAllowThreads(__tstate); | |
28073 | if (PyErr_Occurred()) SWIG_fail; | |
28074 | } | |
4f89f6a3 RD |
28075 | { |
28076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28077 | } | |
d14a1e28 RD |
28078 | return resultobj; |
28079 | fail: | |
28080 | return NULL; | |
28081 | } | |
28082 | ||
28083 | ||
28084 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28085 | PyObject *resultobj; | |
28086 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28087 | bool result; | |
28088 | PyObject * obj0 = 0 ; | |
28089 | char *kwnames[] = { | |
28090 | (char *) "self", NULL | |
28091 | }; | |
28092 | ||
28093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28096 | { |
28097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28098 | result = (bool)(arg1)->TransferFromWindow(); | |
28099 | ||
28100 | wxPyEndAllowThreads(__tstate); | |
28101 | if (PyErr_Occurred()) SWIG_fail; | |
28102 | } | |
4f89f6a3 RD |
28103 | { |
28104 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28105 | } | |
d14a1e28 RD |
28106 | return resultobj; |
28107 | fail: | |
28108 | return NULL; | |
28109 | } | |
28110 | ||
28111 | ||
28112 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28113 | PyObject *resultobj; | |
28114 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28115 | wxWindow *result; | |
28116 | PyObject * obj0 = 0 ; | |
28117 | char *kwnames[] = { | |
28118 | (char *) "self", NULL | |
28119 | }; | |
28120 | ||
28121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28124 | { |
28125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28126 | result = (wxWindow *)(arg1)->GetWindow(); | |
28127 | ||
28128 | wxPyEndAllowThreads(__tstate); | |
28129 | if (PyErr_Occurred()) SWIG_fail; | |
28130 | } | |
28131 | { | |
28132 | resultobj = wxPyMake_wxObject(result); | |
28133 | } | |
28134 | return resultobj; | |
28135 | fail: | |
28136 | return NULL; | |
28137 | } | |
28138 | ||
28139 | ||
28140 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28141 | PyObject *resultobj; | |
28142 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28143 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28144 | PyObject * obj0 = 0 ; | |
28145 | PyObject * obj1 = 0 ; | |
28146 | char *kwnames[] = { | |
28147 | (char *) "self",(char *) "window", NULL | |
28148 | }; | |
28149 | ||
28150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28155 | { |
28156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28157 | (arg1)->SetWindow(arg2); | |
28158 | ||
28159 | wxPyEndAllowThreads(__tstate); | |
28160 | if (PyErr_Occurred()) SWIG_fail; | |
28161 | } | |
28162 | Py_INCREF(Py_None); resultobj = Py_None; | |
28163 | return resultobj; | |
28164 | fail: | |
28165 | return NULL; | |
28166 | } | |
28167 | ||
28168 | ||
28169 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28170 | PyObject *resultobj; | |
28171 | bool result; | |
28172 | char *kwnames[] = { | |
28173 | NULL | |
28174 | }; | |
28175 | ||
28176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28177 | { | |
28178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28179 | result = (bool)wxValidator::IsSilent(); | |
28180 | ||
28181 | wxPyEndAllowThreads(__tstate); | |
28182 | if (PyErr_Occurred()) SWIG_fail; | |
28183 | } | |
4f89f6a3 RD |
28184 | { |
28185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28186 | } | |
d14a1e28 RD |
28187 | return resultobj; |
28188 | fail: | |
28189 | return NULL; | |
28190 | } | |
28191 | ||
28192 | ||
28193 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28194 | PyObject *resultobj; | |
e811c8ce | 28195 | int arg1 = (int) True ; |
994141e6 | 28196 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28197 | char *kwnames[] = { |
28198 | (char *) "doIt", NULL | |
28199 | }; | |
28200 | ||
994141e6 RD |
28201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
28202 | if (obj0) { | |
15afbcd0 RD |
28203 | arg1 = (int) SWIG_AsInt(obj0); |
28204 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28205 | } |
d14a1e28 RD |
28206 | { |
28207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28208 | wxValidator::SetBellOnError(arg1); | |
28209 | ||
28210 | wxPyEndAllowThreads(__tstate); | |
28211 | if (PyErr_Occurred()) SWIG_fail; | |
28212 | } | |
28213 | Py_INCREF(Py_None); resultobj = Py_None; | |
28214 | return resultobj; | |
28215 | fail: | |
28216 | return NULL; | |
28217 | } | |
28218 | ||
28219 | ||
28220 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28221 | PyObject *obj; | |
28222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28223 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28224 | Py_INCREF(obj); | |
28225 | return Py_BuildValue((char *)""); | |
28226 | } | |
28227 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28228 | PyObject *resultobj; | |
28229 | wxPyValidator *result; | |
28230 | char *kwnames[] = { | |
28231 | NULL | |
28232 | }; | |
28233 | ||
28234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28235 | { | |
28236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28237 | result = (wxPyValidator *)new wxPyValidator(); | |
28238 | ||
28239 | wxPyEndAllowThreads(__tstate); | |
28240 | if (PyErr_Occurred()) SWIG_fail; | |
28241 | } | |
15afbcd0 | 28242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
28243 | return resultobj; |
28244 | fail: | |
28245 | return NULL; | |
28246 | } | |
28247 | ||
28248 | ||
28249 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28250 | PyObject *resultobj; | |
28251 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28252 | PyObject *arg2 = (PyObject *) 0 ; | |
28253 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 28254 | int arg4 = (int) True ; |
d14a1e28 RD |
28255 | PyObject * obj0 = 0 ; |
28256 | PyObject * obj1 = 0 ; | |
28257 | PyObject * obj2 = 0 ; | |
994141e6 | 28258 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
28259 | char *kwnames[] = { |
28260 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28261 | }; | |
28262 | ||
994141e6 | 28263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
28265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28266 | arg2 = obj1; |
28267 | arg3 = obj2; | |
994141e6 | 28268 | if (obj3) { |
15afbcd0 RD |
28269 | arg4 = (int) SWIG_AsInt(obj3); |
28270 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28271 | } |
d14a1e28 RD |
28272 | { |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
28279 | Py_INCREF(Py_None); resultobj = Py_None; | |
28280 | return resultobj; | |
28281 | fail: | |
28282 | return NULL; | |
28283 | } | |
28284 | ||
28285 | ||
28286 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28287 | PyObject *obj; | |
28288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28289 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28290 | Py_INCREF(obj); | |
28291 | return Py_BuildValue((char *)""); | |
28292 | } | |
28293 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28294 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28295 | return 1; | |
28296 | } | |
28297 | ||
28298 | ||
28299 | static PyObject *_wrap_DefaultValidator_get() { | |
28300 | PyObject *pyobj; | |
28301 | ||
15afbcd0 | 28302 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
28303 | return pyobj; |
28304 | } | |
28305 | ||
28306 | ||
28307 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28308 | PyObject *resultobj; | |
28309 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28310 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28311 | long arg2 = (long) 0 ; | |
28312 | wxMenu *result; | |
e811c8ce | 28313 | bool temp1 = False ; |
d14a1e28 | 28314 | PyObject * obj0 = 0 ; |
994141e6 | 28315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28316 | char *kwnames[] = { |
28317 | (char *) "title",(char *) "style", NULL | |
28318 | }; | |
28319 | ||
994141e6 | 28320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
28321 | if (obj0) { |
28322 | { | |
28323 | arg1 = wxString_in_helper(obj0); | |
28324 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28325 | temp1 = True; |
d14a1e28 RD |
28326 | } |
28327 | } | |
994141e6 | 28328 | if (obj1) { |
15afbcd0 RD |
28329 | arg2 = (long) SWIG_AsLong(obj1); |
28330 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28331 | } |
d14a1e28 RD |
28332 | { |
28333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28334 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28335 | ||
28336 | wxPyEndAllowThreads(__tstate); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
28338 | } | |
28339 | { | |
28340 | resultobj = wxPyMake_wxObject(result); | |
28341 | } | |
28342 | { | |
28343 | if (temp1) | |
28344 | delete arg1; | |
28345 | } | |
28346 | return resultobj; | |
28347 | fail: | |
28348 | { | |
28349 | if (temp1) | |
28350 | delete arg1; | |
28351 | } | |
28352 | return NULL; | |
28353 | } | |
28354 | ||
28355 | ||
28356 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28357 | PyObject *resultobj; | |
28358 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28359 | int arg2 ; | |
28360 | wxString *arg3 = 0 ; | |
28361 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28362 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28363 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28364 | wxMenuItem *result; |
e811c8ce RD |
28365 | bool temp3 = False ; |
28366 | bool temp4 = False ; | |
d14a1e28 | 28367 | PyObject * obj0 = 0 ; |
994141e6 | 28368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28369 | PyObject * obj2 = 0 ; |
28370 | PyObject * obj3 = 0 ; | |
994141e6 | 28371 | PyObject * obj4 = 0 ; |
d14a1e28 | 28372 | char *kwnames[] = { |
242b7b46 | 28373 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28374 | }; |
28375 | ||
994141e6 | 28376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28379 | arg2 = (int) SWIG_AsInt(obj1); | |
28380 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28381 | { |
28382 | arg3 = wxString_in_helper(obj2); | |
28383 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28384 | temp3 = True; |
d14a1e28 RD |
28385 | } |
28386 | if (obj3) { | |
28387 | { | |
28388 | arg4 = wxString_in_helper(obj3); | |
28389 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28390 | temp4 = True; |
d14a1e28 RD |
28391 | } |
28392 | } | |
994141e6 | 28393 | if (obj4) { |
15afbcd0 RD |
28394 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28396 | } |
d14a1e28 RD |
28397 | { |
28398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28399 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28400 | |
28401 | wxPyEndAllowThreads(__tstate); | |
28402 | if (PyErr_Occurred()) SWIG_fail; | |
28403 | } | |
a41e16b6 RD |
28404 | { |
28405 | resultobj = wxPyMake_wxObject(result); | |
28406 | } | |
d14a1e28 RD |
28407 | { |
28408 | if (temp3) | |
28409 | delete arg3; | |
28410 | } | |
28411 | { | |
28412 | if (temp4) | |
28413 | delete arg4; | |
28414 | } | |
28415 | return resultobj; | |
28416 | fail: | |
28417 | { | |
28418 | if (temp3) | |
28419 | delete arg3; | |
28420 | } | |
28421 | { | |
28422 | if (temp4) | |
28423 | delete arg4; | |
28424 | } | |
28425 | return NULL; | |
28426 | } | |
28427 | ||
28428 | ||
28429 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28430 | PyObject *resultobj; | |
28431 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 28432 | wxMenuItem *result; |
d14a1e28 RD |
28433 | PyObject * obj0 = 0 ; |
28434 | char *kwnames[] = { | |
28435 | (char *) "self", NULL | |
28436 | }; | |
28437 | ||
28438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28441 | { |
28442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28443 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
28444 | |
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
a41e16b6 RD |
28448 | { |
28449 | resultobj = wxPyMake_wxObject(result); | |
28450 | } | |
d14a1e28 RD |
28451 | return resultobj; |
28452 | fail: | |
28453 | return NULL; | |
28454 | } | |
28455 | ||
28456 | ||
28457 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28458 | PyObject *resultobj; | |
28459 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28460 | int arg2 ; | |
28461 | wxString *arg3 = 0 ; | |
28462 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28463 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28464 | wxMenuItem *result; |
e811c8ce RD |
28465 | bool temp3 = False ; |
28466 | bool temp4 = False ; | |
d14a1e28 | 28467 | PyObject * obj0 = 0 ; |
994141e6 | 28468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28469 | PyObject * obj2 = 0 ; |
28470 | PyObject * obj3 = 0 ; | |
28471 | char *kwnames[] = { | |
242b7b46 | 28472 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28473 | }; |
28474 | ||
994141e6 | 28475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28478 | arg2 = (int) SWIG_AsInt(obj1); | |
28479 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28480 | { |
28481 | arg3 = wxString_in_helper(obj2); | |
28482 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28483 | temp3 = True; |
d14a1e28 RD |
28484 | } |
28485 | if (obj3) { | |
28486 | { | |
28487 | arg4 = wxString_in_helper(obj3); | |
28488 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28489 | temp4 = True; |
d14a1e28 RD |
28490 | } |
28491 | } | |
28492 | { | |
28493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28494 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28495 | |
28496 | wxPyEndAllowThreads(__tstate); | |
28497 | if (PyErr_Occurred()) SWIG_fail; | |
28498 | } | |
a41e16b6 RD |
28499 | { |
28500 | resultobj = wxPyMake_wxObject(result); | |
28501 | } | |
d14a1e28 RD |
28502 | { |
28503 | if (temp3) | |
28504 | delete arg3; | |
28505 | } | |
28506 | { | |
28507 | if (temp4) | |
28508 | delete arg4; | |
28509 | } | |
28510 | return resultobj; | |
28511 | fail: | |
28512 | { | |
28513 | if (temp3) | |
28514 | delete arg3; | |
28515 | } | |
28516 | { | |
28517 | if (temp4) | |
28518 | delete arg4; | |
28519 | } | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
28524 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28525 | PyObject *resultobj; | |
28526 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28527 | int arg2 ; | |
28528 | wxString *arg3 = 0 ; | |
28529 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28530 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28531 | wxMenuItem *result; |
e811c8ce RD |
28532 | bool temp3 = False ; |
28533 | bool temp4 = False ; | |
d14a1e28 | 28534 | PyObject * obj0 = 0 ; |
994141e6 | 28535 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28536 | PyObject * obj2 = 0 ; |
28537 | PyObject * obj3 = 0 ; | |
28538 | char *kwnames[] = { | |
242b7b46 | 28539 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28540 | }; |
28541 | ||
994141e6 | 28542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28545 | arg2 = (int) SWIG_AsInt(obj1); | |
28546 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28547 | { |
28548 | arg3 = wxString_in_helper(obj2); | |
28549 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28550 | temp3 = True; |
d14a1e28 RD |
28551 | } |
28552 | if (obj3) { | |
28553 | { | |
28554 | arg4 = wxString_in_helper(obj3); | |
28555 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28556 | temp4 = True; |
d14a1e28 RD |
28557 | } |
28558 | } | |
28559 | { | |
28560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28561 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28562 | |
28563 | wxPyEndAllowThreads(__tstate); | |
28564 | if (PyErr_Occurred()) SWIG_fail; | |
28565 | } | |
a41e16b6 RD |
28566 | { |
28567 | resultobj = wxPyMake_wxObject(result); | |
28568 | } | |
d14a1e28 RD |
28569 | { |
28570 | if (temp3) | |
28571 | delete arg3; | |
28572 | } | |
28573 | { | |
28574 | if (temp4) | |
28575 | delete arg4; | |
28576 | } | |
28577 | return resultobj; | |
28578 | fail: | |
28579 | { | |
28580 | if (temp3) | |
28581 | delete arg3; | |
28582 | } | |
28583 | { | |
28584 | if (temp4) | |
28585 | delete arg4; | |
28586 | } | |
28587 | return NULL; | |
28588 | } | |
28589 | ||
28590 | ||
28591 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28592 | PyObject *resultobj; | |
28593 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28594 | int arg2 ; | |
28595 | wxString *arg3 = 0 ; | |
28596 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28597 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28598 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 28599 | wxMenuItem *result; |
e811c8ce RD |
28600 | bool temp3 = False ; |
28601 | bool temp5 = False ; | |
d14a1e28 | 28602 | PyObject * obj0 = 0 ; |
994141e6 | 28603 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28604 | PyObject * obj2 = 0 ; |
28605 | PyObject * obj3 = 0 ; | |
28606 | PyObject * obj4 = 0 ; | |
28607 | char *kwnames[] = { | |
242b7b46 | 28608 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28609 | }; |
28610 | ||
994141e6 | 28611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28614 | arg2 = (int) SWIG_AsInt(obj1); | |
28615 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28616 | { |
28617 | arg3 = wxString_in_helper(obj2); | |
28618 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28619 | temp3 = True; |
d14a1e28 | 28620 | } |
15afbcd0 RD |
28621 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28623 | if (obj4) { |
28624 | { | |
28625 | arg5 = wxString_in_helper(obj4); | |
28626 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28627 | temp5 = True; |
d14a1e28 RD |
28628 | } |
28629 | } | |
28630 | { | |
28631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28632 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28633 | |
28634 | wxPyEndAllowThreads(__tstate); | |
28635 | if (PyErr_Occurred()) SWIG_fail; | |
28636 | } | |
a41e16b6 RD |
28637 | { |
28638 | resultobj = wxPyMake_wxObject(result); | |
28639 | } | |
d14a1e28 RD |
28640 | { |
28641 | if (temp3) | |
28642 | delete arg3; | |
28643 | } | |
28644 | { | |
28645 | if (temp5) | |
28646 | delete arg5; | |
28647 | } | |
28648 | return resultobj; | |
28649 | fail: | |
28650 | { | |
28651 | if (temp3) | |
28652 | delete arg3; | |
28653 | } | |
28654 | { | |
28655 | if (temp5) | |
28656 | delete arg5; | |
28657 | } | |
28658 | return NULL; | |
28659 | } | |
28660 | ||
28661 | ||
28662 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28663 | PyObject *resultobj; | |
28664 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28665 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28666 | wxMenuItem *result; |
d14a1e28 RD |
28667 | PyObject * obj0 = 0 ; |
28668 | PyObject * obj1 = 0 ; | |
28669 | char *kwnames[] = { | |
28670 | (char *) "self",(char *) "item", NULL | |
28671 | }; | |
28672 | ||
28673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28678 | { |
28679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28680 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
28681 | |
28682 | wxPyEndAllowThreads(__tstate); | |
28683 | if (PyErr_Occurred()) SWIG_fail; | |
28684 | } | |
a41e16b6 RD |
28685 | { |
28686 | resultobj = wxPyMake_wxObject(result); | |
28687 | } | |
d14a1e28 RD |
28688 | return resultobj; |
28689 | fail: | |
28690 | return NULL; | |
28691 | } | |
28692 | ||
28693 | ||
28694 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28695 | PyObject *resultobj; | |
28696 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28697 | PyObject * obj0 = 0 ; | |
28698 | char *kwnames[] = { | |
28699 | (char *) "self", NULL | |
28700 | }; | |
28701 | ||
28702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28705 | { |
28706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28707 | (arg1)->Break(); | |
28708 | ||
28709 | wxPyEndAllowThreads(__tstate); | |
28710 | if (PyErr_Occurred()) SWIG_fail; | |
28711 | } | |
28712 | Py_INCREF(Py_None); resultobj = Py_None; | |
28713 | return resultobj; | |
28714 | fail: | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj; | |
28721 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28722 | size_t arg2 ; | |
28723 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28724 | wxMenuItem *result; |
d14a1e28 RD |
28725 | PyObject * obj0 = 0 ; |
28726 | PyObject * obj1 = 0 ; | |
28727 | PyObject * obj2 = 0 ; | |
28728 | char *kwnames[] = { | |
28729 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28730 | }; | |
28731 | ||
28732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28735 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28736 | if (PyErr_Occurred()) SWIG_fail; | |
28737 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28739 | { |
28740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28741 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
28742 | |
28743 | wxPyEndAllowThreads(__tstate); | |
28744 | if (PyErr_Occurred()) SWIG_fail; | |
28745 | } | |
a41e16b6 RD |
28746 | { |
28747 | resultobj = wxPyMake_wxObject(result); | |
28748 | } | |
d14a1e28 RD |
28749 | return resultobj; |
28750 | fail: | |
28751 | return NULL; | |
28752 | } | |
28753 | ||
28754 | ||
28755 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28756 | PyObject *resultobj; | |
28757 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28758 | size_t arg2 ; | |
28759 | int arg3 ; | |
28760 | wxString *arg4 = 0 ; | |
28761 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28762 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28763 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28764 | wxMenuItem *result; |
e811c8ce RD |
28765 | bool temp4 = False ; |
28766 | bool temp5 = False ; | |
d14a1e28 RD |
28767 | PyObject * obj0 = 0 ; |
28768 | PyObject * obj1 = 0 ; | |
994141e6 | 28769 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28770 | PyObject * obj3 = 0 ; |
28771 | PyObject * obj4 = 0 ; | |
994141e6 | 28772 | PyObject * obj5 = 0 ; |
d14a1e28 | 28773 | char *kwnames[] = { |
242b7b46 | 28774 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28775 | }; |
28776 | ||
994141e6 | 28777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28780 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28781 | if (PyErr_Occurred()) SWIG_fail; | |
28782 | arg3 = (int) SWIG_AsInt(obj2); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28784 | { |
28785 | arg4 = wxString_in_helper(obj3); | |
28786 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28787 | temp4 = True; |
d14a1e28 RD |
28788 | } |
28789 | if (obj4) { | |
28790 | { | |
28791 | arg5 = wxString_in_helper(obj4); | |
28792 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28793 | temp5 = True; |
d14a1e28 RD |
28794 | } |
28795 | } | |
994141e6 | 28796 | if (obj5) { |
15afbcd0 RD |
28797 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
28798 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28799 | } |
d14a1e28 RD |
28800 | { |
28801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28802 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
28803 | |
28804 | wxPyEndAllowThreads(__tstate); | |
28805 | if (PyErr_Occurred()) SWIG_fail; | |
28806 | } | |
a41e16b6 RD |
28807 | { |
28808 | resultobj = wxPyMake_wxObject(result); | |
28809 | } | |
d14a1e28 RD |
28810 | { |
28811 | if (temp4) | |
28812 | delete arg4; | |
28813 | } | |
28814 | { | |
28815 | if (temp5) | |
28816 | delete arg5; | |
28817 | } | |
28818 | return resultobj; | |
28819 | fail: | |
28820 | { | |
28821 | if (temp4) | |
28822 | delete arg4; | |
28823 | } | |
28824 | { | |
28825 | if (temp5) | |
28826 | delete arg5; | |
28827 | } | |
28828 | return NULL; | |
28829 | } | |
28830 | ||
28831 | ||
28832 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28833 | PyObject *resultobj; | |
28834 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28835 | size_t arg2 ; | |
a41e16b6 | 28836 | wxMenuItem *result; |
d14a1e28 RD |
28837 | PyObject * obj0 = 0 ; |
28838 | PyObject * obj1 = 0 ; | |
28839 | char *kwnames[] = { | |
28840 | (char *) "self",(char *) "pos", NULL | |
28841 | }; | |
28842 | ||
28843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28846 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28847 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28848 | { |
28849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28850 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
28851 | |
28852 | wxPyEndAllowThreads(__tstate); | |
28853 | if (PyErr_Occurred()) SWIG_fail; | |
28854 | } | |
a41e16b6 RD |
28855 | { |
28856 | resultobj = wxPyMake_wxObject(result); | |
28857 | } | |
d14a1e28 RD |
28858 | return resultobj; |
28859 | fail: | |
28860 | return NULL; | |
28861 | } | |
28862 | ||
28863 | ||
28864 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28865 | PyObject *resultobj; | |
28866 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28867 | size_t arg2 ; | |
28868 | int arg3 ; | |
28869 | wxString *arg4 = 0 ; | |
28870 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28871 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 28872 | wxMenuItem *result; |
e811c8ce RD |
28873 | bool temp4 = False ; |
28874 | bool temp5 = False ; | |
d14a1e28 RD |
28875 | PyObject * obj0 = 0 ; |
28876 | PyObject * obj1 = 0 ; | |
994141e6 | 28877 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28878 | PyObject * obj3 = 0 ; |
28879 | PyObject * obj4 = 0 ; | |
28880 | char *kwnames[] = { | |
242b7b46 | 28881 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28882 | }; |
28883 | ||
994141e6 | 28884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28887 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28888 | if (PyErr_Occurred()) SWIG_fail; | |
28889 | arg3 = (int) SWIG_AsInt(obj2); | |
28890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28891 | { |
28892 | arg4 = wxString_in_helper(obj3); | |
28893 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28894 | temp4 = True; |
d14a1e28 RD |
28895 | } |
28896 | if (obj4) { | |
28897 | { | |
28898 | arg5 = wxString_in_helper(obj4); | |
28899 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28900 | temp5 = True; |
d14a1e28 RD |
28901 | } |
28902 | } | |
28903 | { | |
28904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28905 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28906 | |
28907 | wxPyEndAllowThreads(__tstate); | |
28908 | if (PyErr_Occurred()) SWIG_fail; | |
28909 | } | |
a41e16b6 RD |
28910 | { |
28911 | resultobj = wxPyMake_wxObject(result); | |
28912 | } | |
d14a1e28 RD |
28913 | { |
28914 | if (temp4) | |
28915 | delete arg4; | |
28916 | } | |
28917 | { | |
28918 | if (temp5) | |
28919 | delete arg5; | |
28920 | } | |
28921 | return resultobj; | |
28922 | fail: | |
28923 | { | |
28924 | if (temp4) | |
28925 | delete arg4; | |
28926 | } | |
28927 | { | |
28928 | if (temp5) | |
28929 | delete arg5; | |
28930 | } | |
28931 | return NULL; | |
28932 | } | |
28933 | ||
28934 | ||
28935 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28936 | PyObject *resultobj; | |
28937 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28938 | size_t arg2 ; | |
28939 | int arg3 ; | |
28940 | wxString *arg4 = 0 ; | |
28941 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28942 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 28943 | wxMenuItem *result; |
e811c8ce RD |
28944 | bool temp4 = False ; |
28945 | bool temp5 = False ; | |
d14a1e28 RD |
28946 | PyObject * obj0 = 0 ; |
28947 | PyObject * obj1 = 0 ; | |
994141e6 | 28948 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28949 | PyObject * obj3 = 0 ; |
28950 | PyObject * obj4 = 0 ; | |
28951 | char *kwnames[] = { | |
242b7b46 | 28952 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28953 | }; |
28954 | ||
994141e6 | 28955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28958 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28959 | if (PyErr_Occurred()) SWIG_fail; | |
28960 | arg3 = (int) SWIG_AsInt(obj2); | |
28961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28962 | { |
28963 | arg4 = wxString_in_helper(obj3); | |
28964 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28965 | temp4 = True; |
d14a1e28 RD |
28966 | } |
28967 | if (obj4) { | |
28968 | { | |
28969 | arg5 = wxString_in_helper(obj4); | |
28970 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28971 | temp5 = True; |
d14a1e28 RD |
28972 | } |
28973 | } | |
28974 | { | |
28975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28976 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28977 | |
28978 | wxPyEndAllowThreads(__tstate); | |
28979 | if (PyErr_Occurred()) SWIG_fail; | |
28980 | } | |
a41e16b6 RD |
28981 | { |
28982 | resultobj = wxPyMake_wxObject(result); | |
28983 | } | |
d14a1e28 RD |
28984 | { |
28985 | if (temp4) | |
28986 | delete arg4; | |
28987 | } | |
28988 | { | |
28989 | if (temp5) | |
28990 | delete arg5; | |
28991 | } | |
28992 | return resultobj; | |
28993 | fail: | |
28994 | { | |
28995 | if (temp4) | |
28996 | delete arg4; | |
28997 | } | |
28998 | { | |
28999 | if (temp5) | |
29000 | delete arg5; | |
29001 | } | |
29002 | return NULL; | |
29003 | } | |
29004 | ||
29005 | ||
29006 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29007 | PyObject *resultobj; | |
29008 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29009 | size_t arg2 ; | |
29010 | int arg3 ; | |
29011 | wxString *arg4 = 0 ; | |
29012 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29013 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29014 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 29015 | wxMenuItem *result; |
e811c8ce RD |
29016 | bool temp4 = False ; |
29017 | bool temp6 = False ; | |
d14a1e28 RD |
29018 | PyObject * obj0 = 0 ; |
29019 | PyObject * obj1 = 0 ; | |
994141e6 | 29020 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29021 | PyObject * obj3 = 0 ; |
29022 | PyObject * obj4 = 0 ; | |
29023 | PyObject * obj5 = 0 ; | |
29024 | char *kwnames[] = { | |
242b7b46 | 29025 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29026 | }; |
29027 | ||
994141e6 | 29028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29031 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29032 | if (PyErr_Occurred()) SWIG_fail; | |
29033 | arg3 = (int) SWIG_AsInt(obj2); | |
29034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29035 | { |
29036 | arg4 = wxString_in_helper(obj3); | |
29037 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29038 | temp4 = True; |
d14a1e28 | 29039 | } |
15afbcd0 RD |
29040 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
29041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29042 | if (obj5) { |
29043 | { | |
29044 | arg6 = wxString_in_helper(obj5); | |
29045 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 29046 | temp6 = True; |
d14a1e28 RD |
29047 | } |
29048 | } | |
29049 | { | |
29050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29051 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
29052 | |
29053 | wxPyEndAllowThreads(__tstate); | |
29054 | if (PyErr_Occurred()) SWIG_fail; | |
29055 | } | |
a41e16b6 RD |
29056 | { |
29057 | resultobj = wxPyMake_wxObject(result); | |
29058 | } | |
d14a1e28 RD |
29059 | { |
29060 | if (temp4) | |
29061 | delete arg4; | |
29062 | } | |
29063 | { | |
29064 | if (temp6) | |
29065 | delete arg6; | |
29066 | } | |
29067 | return resultobj; | |
29068 | fail: | |
29069 | { | |
29070 | if (temp4) | |
29071 | delete arg4; | |
29072 | } | |
29073 | { | |
29074 | if (temp6) | |
29075 | delete arg6; | |
29076 | } | |
29077 | return NULL; | |
29078 | } | |
29079 | ||
29080 | ||
29081 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29082 | PyObject *resultobj; | |
29083 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29084 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29085 | wxMenuItem *result; |
d14a1e28 RD |
29086 | PyObject * obj0 = 0 ; |
29087 | PyObject * obj1 = 0 ; | |
29088 | char *kwnames[] = { | |
29089 | (char *) "self",(char *) "item", NULL | |
29090 | }; | |
29091 | ||
29092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29097 | { |
29098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29099 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
29100 | |
29101 | wxPyEndAllowThreads(__tstate); | |
29102 | if (PyErr_Occurred()) SWIG_fail; | |
29103 | } | |
a41e16b6 RD |
29104 | { |
29105 | resultobj = wxPyMake_wxObject(result); | |
29106 | } | |
d14a1e28 RD |
29107 | return resultobj; |
29108 | fail: | |
29109 | return NULL; | |
29110 | } | |
29111 | ||
29112 | ||
29113 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29114 | PyObject *resultobj; | |
29115 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29116 | int arg2 ; | |
29117 | wxString *arg3 = 0 ; | |
29118 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29119 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29120 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29121 | wxMenuItem *result; |
e811c8ce RD |
29122 | bool temp3 = False ; |
29123 | bool temp4 = False ; | |
d14a1e28 | 29124 | PyObject * obj0 = 0 ; |
994141e6 | 29125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29126 | PyObject * obj2 = 0 ; |
29127 | PyObject * obj3 = 0 ; | |
994141e6 | 29128 | PyObject * obj4 = 0 ; |
d14a1e28 | 29129 | char *kwnames[] = { |
242b7b46 | 29130 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29131 | }; |
29132 | ||
994141e6 | 29133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29136 | arg2 = (int) SWIG_AsInt(obj1); | |
29137 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29138 | { |
29139 | arg3 = wxString_in_helper(obj2); | |
29140 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29141 | temp3 = True; |
d14a1e28 RD |
29142 | } |
29143 | if (obj3) { | |
29144 | { | |
29145 | arg4 = wxString_in_helper(obj3); | |
29146 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29147 | temp4 = True; |
d14a1e28 RD |
29148 | } |
29149 | } | |
994141e6 | 29150 | if (obj4) { |
15afbcd0 RD |
29151 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
29152 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29153 | } |
d14a1e28 RD |
29154 | { |
29155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29156 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
29157 | |
29158 | wxPyEndAllowThreads(__tstate); | |
29159 | if (PyErr_Occurred()) SWIG_fail; | |
29160 | } | |
a41e16b6 RD |
29161 | { |
29162 | resultobj = wxPyMake_wxObject(result); | |
29163 | } | |
d14a1e28 RD |
29164 | { |
29165 | if (temp3) | |
29166 | delete arg3; | |
29167 | } | |
29168 | { | |
29169 | if (temp4) | |
29170 | delete arg4; | |
29171 | } | |
29172 | return resultobj; | |
29173 | fail: | |
29174 | { | |
29175 | if (temp3) | |
29176 | delete arg3; | |
29177 | } | |
29178 | { | |
29179 | if (temp4) | |
29180 | delete arg4; | |
29181 | } | |
29182 | return NULL; | |
29183 | } | |
29184 | ||
29185 | ||
29186 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29187 | PyObject *resultobj; | |
29188 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 29189 | wxMenuItem *result; |
d14a1e28 RD |
29190 | PyObject * obj0 = 0 ; |
29191 | char *kwnames[] = { | |
29192 | (char *) "self", NULL | |
29193 | }; | |
29194 | ||
29195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29198 | { |
29199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29200 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
29201 | |
29202 | wxPyEndAllowThreads(__tstate); | |
29203 | if (PyErr_Occurred()) SWIG_fail; | |
29204 | } | |
a41e16b6 RD |
29205 | { |
29206 | resultobj = wxPyMake_wxObject(result); | |
29207 | } | |
d14a1e28 RD |
29208 | return resultobj; |
29209 | fail: | |
29210 | return NULL; | |
29211 | } | |
29212 | ||
29213 | ||
29214 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29215 | PyObject *resultobj; | |
29216 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29217 | int arg2 ; | |
29218 | wxString *arg3 = 0 ; | |
29219 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29220 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29221 | wxMenuItem *result; |
e811c8ce RD |
29222 | bool temp3 = False ; |
29223 | bool temp4 = False ; | |
d14a1e28 | 29224 | PyObject * obj0 = 0 ; |
994141e6 | 29225 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29226 | PyObject * obj2 = 0 ; |
29227 | PyObject * obj3 = 0 ; | |
29228 | char *kwnames[] = { | |
242b7b46 | 29229 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29230 | }; |
29231 | ||
994141e6 | 29232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29235 | arg2 = (int) SWIG_AsInt(obj1); | |
29236 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29237 | { |
29238 | arg3 = wxString_in_helper(obj2); | |
29239 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29240 | temp3 = True; |
d14a1e28 RD |
29241 | } |
29242 | if (obj3) { | |
29243 | { | |
29244 | arg4 = wxString_in_helper(obj3); | |
29245 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29246 | temp4 = True; |
d14a1e28 RD |
29247 | } |
29248 | } | |
29249 | { | |
29250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29251 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29252 | |
29253 | wxPyEndAllowThreads(__tstate); | |
29254 | if (PyErr_Occurred()) SWIG_fail; | |
29255 | } | |
a41e16b6 RD |
29256 | { |
29257 | resultobj = wxPyMake_wxObject(result); | |
29258 | } | |
d14a1e28 RD |
29259 | { |
29260 | if (temp3) | |
29261 | delete arg3; | |
29262 | } | |
29263 | { | |
29264 | if (temp4) | |
29265 | delete arg4; | |
29266 | } | |
29267 | return resultobj; | |
29268 | fail: | |
29269 | { | |
29270 | if (temp3) | |
29271 | delete arg3; | |
29272 | } | |
29273 | { | |
29274 | if (temp4) | |
29275 | delete arg4; | |
29276 | } | |
29277 | return NULL; | |
29278 | } | |
29279 | ||
29280 | ||
29281 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29282 | PyObject *resultobj; | |
29283 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29284 | int arg2 ; | |
29285 | wxString *arg3 = 0 ; | |
29286 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29287 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29288 | wxMenuItem *result; |
e811c8ce RD |
29289 | bool temp3 = False ; |
29290 | bool temp4 = False ; | |
d14a1e28 | 29291 | PyObject * obj0 = 0 ; |
994141e6 | 29292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29293 | PyObject * obj2 = 0 ; |
29294 | PyObject * obj3 = 0 ; | |
29295 | char *kwnames[] = { | |
242b7b46 | 29296 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29297 | }; |
29298 | ||
994141e6 | 29299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29302 | arg2 = (int) SWIG_AsInt(obj1); | |
29303 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29304 | { |
29305 | arg3 = wxString_in_helper(obj2); | |
29306 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29307 | temp3 = True; |
d14a1e28 RD |
29308 | } |
29309 | if (obj3) { | |
29310 | { | |
29311 | arg4 = wxString_in_helper(obj3); | |
29312 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29313 | temp4 = True; |
d14a1e28 RD |
29314 | } |
29315 | } | |
29316 | { | |
29317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29318 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29319 | |
29320 | wxPyEndAllowThreads(__tstate); | |
29321 | if (PyErr_Occurred()) SWIG_fail; | |
29322 | } | |
a41e16b6 RD |
29323 | { |
29324 | resultobj = wxPyMake_wxObject(result); | |
29325 | } | |
d14a1e28 RD |
29326 | { |
29327 | if (temp3) | |
29328 | delete arg3; | |
29329 | } | |
29330 | { | |
29331 | if (temp4) | |
29332 | delete arg4; | |
29333 | } | |
29334 | return resultobj; | |
29335 | fail: | |
29336 | { | |
29337 | if (temp3) | |
29338 | delete arg3; | |
29339 | } | |
29340 | { | |
29341 | if (temp4) | |
29342 | delete arg4; | |
29343 | } | |
29344 | return NULL; | |
29345 | } | |
29346 | ||
29347 | ||
29348 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29349 | PyObject *resultobj; | |
29350 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29351 | int arg2 ; | |
29352 | wxString *arg3 = 0 ; | |
29353 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29354 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29355 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29356 | wxMenuItem *result; |
e811c8ce RD |
29357 | bool temp3 = False ; |
29358 | bool temp5 = False ; | |
d14a1e28 | 29359 | PyObject * obj0 = 0 ; |
994141e6 | 29360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29361 | PyObject * obj2 = 0 ; |
29362 | PyObject * obj3 = 0 ; | |
29363 | PyObject * obj4 = 0 ; | |
29364 | char *kwnames[] = { | |
242b7b46 | 29365 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29366 | }; |
29367 | ||
994141e6 | 29368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29371 | arg2 = (int) SWIG_AsInt(obj1); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29373 | { |
29374 | arg3 = wxString_in_helper(obj2); | |
29375 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29376 | temp3 = True; |
d14a1e28 | 29377 | } |
15afbcd0 RD |
29378 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29380 | if (obj4) { |
29381 | { | |
29382 | arg5 = wxString_in_helper(obj4); | |
29383 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29384 | temp5 = True; |
d14a1e28 RD |
29385 | } |
29386 | } | |
29387 | { | |
29388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29389 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29390 | |
29391 | wxPyEndAllowThreads(__tstate); | |
29392 | if (PyErr_Occurred()) SWIG_fail; | |
29393 | } | |
a41e16b6 RD |
29394 | { |
29395 | resultobj = wxPyMake_wxObject(result); | |
29396 | } | |
d14a1e28 RD |
29397 | { |
29398 | if (temp3) | |
29399 | delete arg3; | |
29400 | } | |
29401 | { | |
29402 | if (temp5) | |
29403 | delete arg5; | |
29404 | } | |
29405 | return resultobj; | |
29406 | fail: | |
29407 | { | |
29408 | if (temp3) | |
29409 | delete arg3; | |
29410 | } | |
29411 | { | |
29412 | if (temp5) | |
29413 | delete arg5; | |
29414 | } | |
29415 | return NULL; | |
29416 | } | |
29417 | ||
29418 | ||
29419 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29420 | PyObject *resultobj; | |
29421 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29422 | int arg2 ; | |
29423 | wxMenuItem *result; | |
29424 | PyObject * obj0 = 0 ; | |
994141e6 | 29425 | PyObject * obj1 = 0 ; |
d14a1e28 | 29426 | char *kwnames[] = { |
242b7b46 | 29427 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29428 | }; |
29429 | ||
994141e6 | 29430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29433 | arg2 = (int) SWIG_AsInt(obj1); | |
29434 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29435 | { |
29436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29437 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29438 | ||
29439 | wxPyEndAllowThreads(__tstate); | |
29440 | if (PyErr_Occurred()) SWIG_fail; | |
29441 | } | |
29442 | { | |
29443 | resultobj = wxPyMake_wxObject(result); | |
29444 | } | |
29445 | return resultobj; | |
29446 | fail: | |
29447 | return NULL; | |
29448 | } | |
29449 | ||
29450 | ||
29451 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29452 | PyObject *resultobj; | |
29453 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29454 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29455 | wxMenuItem *result; | |
29456 | PyObject * obj0 = 0 ; | |
29457 | PyObject * obj1 = 0 ; | |
29458 | char *kwnames[] = { | |
29459 | (char *) "self",(char *) "item", NULL | |
29460 | }; | |
29461 | ||
29462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29467 | { |
29468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29469 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29470 | ||
29471 | wxPyEndAllowThreads(__tstate); | |
29472 | if (PyErr_Occurred()) SWIG_fail; | |
29473 | } | |
29474 | { | |
29475 | resultobj = wxPyMake_wxObject(result); | |
29476 | } | |
29477 | return resultobj; | |
29478 | fail: | |
29479 | return NULL; | |
29480 | } | |
29481 | ||
29482 | ||
29483 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29484 | PyObject *resultobj; | |
29485 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29486 | int arg2 ; | |
29487 | bool result; | |
29488 | PyObject * obj0 = 0 ; | |
994141e6 | 29489 | PyObject * obj1 = 0 ; |
d14a1e28 | 29490 | char *kwnames[] = { |
242b7b46 | 29491 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29492 | }; |
29493 | ||
994141e6 | 29494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29497 | arg2 = (int) SWIG_AsInt(obj1); | |
29498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29499 | { |
29500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29501 | result = (bool)(arg1)->Delete(arg2); | |
29502 | ||
29503 | wxPyEndAllowThreads(__tstate); | |
29504 | if (PyErr_Occurred()) SWIG_fail; | |
29505 | } | |
4f89f6a3 RD |
29506 | { |
29507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29508 | } | |
d14a1e28 RD |
29509 | return resultobj; |
29510 | fail: | |
29511 | return NULL; | |
29512 | } | |
29513 | ||
29514 | ||
29515 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29516 | PyObject *resultobj; | |
29517 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29518 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29519 | bool result; | |
29520 | PyObject * obj0 = 0 ; | |
29521 | PyObject * obj1 = 0 ; | |
29522 | char *kwnames[] = { | |
29523 | (char *) "self",(char *) "item", NULL | |
29524 | }; | |
29525 | ||
29526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29531 | { |
29532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29533 | result = (bool)(arg1)->Delete(arg2); | |
29534 | ||
29535 | wxPyEndAllowThreads(__tstate); | |
29536 | if (PyErr_Occurred()) SWIG_fail; | |
29537 | } | |
4f89f6a3 RD |
29538 | { |
29539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29540 | } | |
d14a1e28 RD |
29541 | return resultobj; |
29542 | fail: | |
29543 | return NULL; | |
29544 | } | |
29545 | ||
29546 | ||
29547 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29548 | PyObject *resultobj; | |
29549 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29550 | PyObject * obj0 = 0 ; | |
29551 | char *kwnames[] = { | |
29552 | (char *) "self", NULL | |
29553 | }; | |
29554 | ||
29555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29558 | { |
29559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29560 | wxMenu_Destroy(arg1); | |
29561 | ||
29562 | wxPyEndAllowThreads(__tstate); | |
29563 | if (PyErr_Occurred()) SWIG_fail; | |
29564 | } | |
29565 | Py_INCREF(Py_None); resultobj = Py_None; | |
29566 | return resultobj; | |
29567 | fail: | |
29568 | return NULL; | |
29569 | } | |
29570 | ||
29571 | ||
29572 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29573 | PyObject *resultobj; | |
29574 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29575 | int arg2 ; | |
29576 | bool result; | |
29577 | PyObject * obj0 = 0 ; | |
994141e6 | 29578 | PyObject * obj1 = 0 ; |
d14a1e28 | 29579 | char *kwnames[] = { |
242b7b46 | 29580 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29581 | }; |
29582 | ||
994141e6 | 29583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29586 | arg2 = (int) SWIG_AsInt(obj1); | |
29587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29588 | { |
29589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29590 | result = (bool)(arg1)->Destroy(arg2); | |
29591 | ||
29592 | wxPyEndAllowThreads(__tstate); | |
29593 | if (PyErr_Occurred()) SWIG_fail; | |
29594 | } | |
4f89f6a3 RD |
29595 | { |
29596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29597 | } | |
d14a1e28 RD |
29598 | return resultobj; |
29599 | fail: | |
29600 | return NULL; | |
29601 | } | |
29602 | ||
29603 | ||
29604 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29605 | PyObject *resultobj; | |
29606 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29607 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29608 | bool result; | |
29609 | PyObject * obj0 = 0 ; | |
29610 | PyObject * obj1 = 0 ; | |
29611 | char *kwnames[] = { | |
29612 | (char *) "self",(char *) "item", NULL | |
29613 | }; | |
29614 | ||
29615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29620 | { |
29621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29622 | result = (bool)(arg1)->Destroy(arg2); | |
29623 | ||
29624 | wxPyEndAllowThreads(__tstate); | |
29625 | if (PyErr_Occurred()) SWIG_fail; | |
29626 | } | |
4f89f6a3 RD |
29627 | { |
29628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29629 | } | |
d14a1e28 RD |
29630 | return resultobj; |
29631 | fail: | |
29632 | return NULL; | |
29633 | } | |
29634 | ||
29635 | ||
29636 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29637 | PyObject *resultobj; | |
29638 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29639 | size_t result; | |
29640 | PyObject * obj0 = 0 ; | |
29641 | char *kwnames[] = { | |
29642 | (char *) "self", NULL | |
29643 | }; | |
29644 | ||
29645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29648 | { |
29649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29650 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29651 | ||
29652 | wxPyEndAllowThreads(__tstate); | |
29653 | if (PyErr_Occurred()) SWIG_fail; | |
29654 | } | |
15afbcd0 | 29655 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29656 | return resultobj; |
29657 | fail: | |
29658 | return NULL; | |
29659 | } | |
29660 | ||
29661 | ||
29662 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29663 | PyObject *resultobj; | |
29664 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29665 | PyObject *result; | |
29666 | PyObject * obj0 = 0 ; | |
29667 | char *kwnames[] = { | |
29668 | (char *) "self", NULL | |
29669 | }; | |
29670 | ||
29671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29674 | { |
29675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29676 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29677 | ||
29678 | wxPyEndAllowThreads(__tstate); | |
29679 | if (PyErr_Occurred()) SWIG_fail; | |
29680 | } | |
29681 | resultobj = result; | |
29682 | return resultobj; | |
29683 | fail: | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
29688 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29689 | PyObject *resultobj; | |
29690 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29691 | wxString *arg2 = 0 ; | |
29692 | int result; | |
e811c8ce | 29693 | bool temp2 = False ; |
d14a1e28 RD |
29694 | PyObject * obj0 = 0 ; |
29695 | PyObject * obj1 = 0 ; | |
29696 | char *kwnames[] = { | |
29697 | (char *) "self",(char *) "item", NULL | |
29698 | }; | |
29699 | ||
29700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29703 | { |
29704 | arg2 = wxString_in_helper(obj1); | |
29705 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29706 | temp2 = True; |
d14a1e28 RD |
29707 | } |
29708 | { | |
29709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29710 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29711 | ||
29712 | wxPyEndAllowThreads(__tstate); | |
29713 | if (PyErr_Occurred()) SWIG_fail; | |
29714 | } | |
15afbcd0 | 29715 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29716 | { |
29717 | if (temp2) | |
29718 | delete arg2; | |
29719 | } | |
29720 | return resultobj; | |
29721 | fail: | |
29722 | { | |
29723 | if (temp2) | |
29724 | delete arg2; | |
29725 | } | |
29726 | return NULL; | |
29727 | } | |
29728 | ||
29729 | ||
29730 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29731 | PyObject *resultobj; | |
29732 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29733 | int arg2 ; | |
29734 | wxMenuItem *result; | |
29735 | PyObject * obj0 = 0 ; | |
994141e6 | 29736 | PyObject * obj1 = 0 ; |
d14a1e28 | 29737 | char *kwnames[] = { |
242b7b46 | 29738 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29739 | }; |
29740 | ||
994141e6 | 29741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29744 | arg2 = (int) SWIG_AsInt(obj1); | |
29745 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29746 | { |
29747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29748 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29749 | ||
29750 | wxPyEndAllowThreads(__tstate); | |
29751 | if (PyErr_Occurred()) SWIG_fail; | |
29752 | } | |
29753 | { | |
29754 | resultobj = wxPyMake_wxObject(result); | |
29755 | } | |
29756 | return resultobj; | |
29757 | fail: | |
29758 | return NULL; | |
29759 | } | |
29760 | ||
29761 | ||
29762 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29763 | PyObject *resultobj; | |
29764 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29765 | size_t arg2 ; | |
29766 | wxMenuItem *result; | |
29767 | PyObject * obj0 = 0 ; | |
29768 | PyObject * obj1 = 0 ; | |
29769 | char *kwnames[] = { | |
29770 | (char *) "self",(char *) "position", NULL | |
29771 | }; | |
29772 | ||
29773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29776 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29777 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29778 | { |
29779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29780 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29781 | ||
29782 | wxPyEndAllowThreads(__tstate); | |
29783 | if (PyErr_Occurred()) SWIG_fail; | |
29784 | } | |
29785 | { | |
29786 | resultobj = wxPyMake_wxObject(result); | |
29787 | } | |
29788 | return resultobj; | |
29789 | fail: | |
29790 | return NULL; | |
29791 | } | |
29792 | ||
29793 | ||
29794 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29795 | PyObject *resultobj; | |
29796 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29797 | int arg2 ; | |
29798 | bool arg3 ; | |
29799 | PyObject * obj0 = 0 ; | |
994141e6 | 29800 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29801 | PyObject * obj2 = 0 ; |
29802 | char *kwnames[] = { | |
242b7b46 | 29803 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
29804 | }; |
29805 | ||
994141e6 | 29806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29809 | arg2 = (int) SWIG_AsInt(obj1); | |
29810 | if (PyErr_Occurred()) SWIG_fail; | |
29811 | arg3 = (bool) SWIG_AsBool(obj2); | |
29812 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29813 | { |
29814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29815 | (arg1)->Enable(arg2,arg3); | |
29816 | ||
29817 | wxPyEndAllowThreads(__tstate); | |
29818 | if (PyErr_Occurred()) SWIG_fail; | |
29819 | } | |
29820 | Py_INCREF(Py_None); resultobj = Py_None; | |
29821 | return resultobj; | |
29822 | fail: | |
29823 | return NULL; | |
29824 | } | |
29825 | ||
29826 | ||
29827 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29828 | PyObject *resultobj; | |
29829 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29830 | int arg2 ; | |
29831 | bool result; | |
29832 | PyObject * obj0 = 0 ; | |
994141e6 | 29833 | PyObject * obj1 = 0 ; |
d14a1e28 | 29834 | char *kwnames[] = { |
242b7b46 | 29835 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29836 | }; |
29837 | ||
994141e6 | 29838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29841 | arg2 = (int) SWIG_AsInt(obj1); | |
29842 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29843 | { |
29844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29845 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
29846 | ||
29847 | wxPyEndAllowThreads(__tstate); | |
29848 | if (PyErr_Occurred()) SWIG_fail; | |
29849 | } | |
4f89f6a3 RD |
29850 | { |
29851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29852 | } | |
d14a1e28 RD |
29853 | return resultobj; |
29854 | fail: | |
29855 | return NULL; | |
29856 | } | |
29857 | ||
29858 | ||
29859 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29860 | PyObject *resultobj; | |
29861 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29862 | int arg2 ; | |
29863 | bool arg3 ; | |
29864 | PyObject * obj0 = 0 ; | |
994141e6 | 29865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29866 | PyObject * obj2 = 0 ; |
29867 | char *kwnames[] = { | |
242b7b46 | 29868 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
29869 | }; |
29870 | ||
994141e6 | 29871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29874 | arg2 = (int) SWIG_AsInt(obj1); | |
29875 | if (PyErr_Occurred()) SWIG_fail; | |
29876 | arg3 = (bool) SWIG_AsBool(obj2); | |
29877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29878 | { |
29879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29880 | (arg1)->Check(arg2,arg3); | |
29881 | ||
29882 | wxPyEndAllowThreads(__tstate); | |
29883 | if (PyErr_Occurred()) SWIG_fail; | |
29884 | } | |
29885 | Py_INCREF(Py_None); resultobj = Py_None; | |
29886 | return resultobj; | |
29887 | fail: | |
29888 | return NULL; | |
29889 | } | |
29890 | ||
29891 | ||
29892 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29893 | PyObject *resultobj; | |
29894 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29895 | int arg2 ; | |
29896 | bool result; | |
29897 | PyObject * obj0 = 0 ; | |
994141e6 | 29898 | PyObject * obj1 = 0 ; |
d14a1e28 | 29899 | char *kwnames[] = { |
242b7b46 | 29900 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29901 | }; |
29902 | ||
994141e6 | 29903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29906 | arg2 = (int) SWIG_AsInt(obj1); | |
29907 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29908 | { |
29909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29910 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
29911 | ||
29912 | wxPyEndAllowThreads(__tstate); | |
29913 | if (PyErr_Occurred()) SWIG_fail; | |
29914 | } | |
4f89f6a3 RD |
29915 | { |
29916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29917 | } | |
d14a1e28 RD |
29918 | return resultobj; |
29919 | fail: | |
29920 | return NULL; | |
29921 | } | |
29922 | ||
29923 | ||
29924 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29925 | PyObject *resultobj; | |
29926 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29927 | int arg2 ; | |
29928 | wxString *arg3 = 0 ; | |
e811c8ce | 29929 | bool temp3 = False ; |
d14a1e28 | 29930 | PyObject * obj0 = 0 ; |
994141e6 | 29931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29932 | PyObject * obj2 = 0 ; |
29933 | char *kwnames[] = { | |
242b7b46 | 29934 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
29935 | }; |
29936 | ||
994141e6 | 29937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29940 | arg2 = (int) SWIG_AsInt(obj1); | |
29941 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29942 | { |
29943 | arg3 = wxString_in_helper(obj2); | |
29944 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29945 | temp3 = True; |
d14a1e28 RD |
29946 | } |
29947 | { | |
29948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29949 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
29950 | ||
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | Py_INCREF(Py_None); resultobj = Py_None; | |
29955 | { | |
29956 | if (temp3) | |
29957 | delete arg3; | |
29958 | } | |
29959 | return resultobj; | |
29960 | fail: | |
29961 | { | |
29962 | if (temp3) | |
29963 | delete arg3; | |
29964 | } | |
29965 | return NULL; | |
29966 | } | |
29967 | ||
29968 | ||
29969 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29970 | PyObject *resultobj; | |
29971 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29972 | int arg2 ; | |
29973 | wxString result; | |
29974 | PyObject * obj0 = 0 ; | |
994141e6 | 29975 | PyObject * obj1 = 0 ; |
d14a1e28 | 29976 | char *kwnames[] = { |
242b7b46 | 29977 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29978 | }; |
29979 | ||
994141e6 | 29980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29983 | arg2 = (int) SWIG_AsInt(obj1); | |
29984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29985 | { |
29986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29987 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
29988 | ||
29989 | wxPyEndAllowThreads(__tstate); | |
29990 | if (PyErr_Occurred()) SWIG_fail; | |
29991 | } | |
29992 | { | |
29993 | #if wxUSE_UNICODE | |
29994 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29995 | #else | |
29996 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29997 | #endif | |
29998 | } | |
29999 | return resultobj; | |
30000 | fail: | |
30001 | return NULL; | |
30002 | } | |
30003 | ||
30004 | ||
30005 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30006 | PyObject *resultobj; | |
30007 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30008 | int arg2 ; | |
30009 | wxString *arg3 = 0 ; | |
e811c8ce | 30010 | bool temp3 = False ; |
d14a1e28 | 30011 | PyObject * obj0 = 0 ; |
994141e6 | 30012 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30013 | PyObject * obj2 = 0 ; |
30014 | char *kwnames[] = { | |
242b7b46 | 30015 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30016 | }; |
30017 | ||
994141e6 | 30018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30021 | arg2 = (int) SWIG_AsInt(obj1); | |
30022 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30023 | { |
30024 | arg3 = wxString_in_helper(obj2); | |
30025 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30026 | temp3 = True; |
d14a1e28 RD |
30027 | } |
30028 | { | |
30029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30030 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30031 | ||
30032 | wxPyEndAllowThreads(__tstate); | |
30033 | if (PyErr_Occurred()) SWIG_fail; | |
30034 | } | |
30035 | Py_INCREF(Py_None); resultobj = Py_None; | |
30036 | { | |
30037 | if (temp3) | |
30038 | delete arg3; | |
30039 | } | |
30040 | return resultobj; | |
30041 | fail: | |
30042 | { | |
30043 | if (temp3) | |
30044 | delete arg3; | |
30045 | } | |
30046 | return NULL; | |
30047 | } | |
30048 | ||
30049 | ||
30050 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30051 | PyObject *resultobj; | |
30052 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30053 | int arg2 ; | |
30054 | wxString result; | |
30055 | PyObject * obj0 = 0 ; | |
994141e6 | 30056 | PyObject * obj1 = 0 ; |
d14a1e28 | 30057 | char *kwnames[] = { |
242b7b46 | 30058 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30059 | }; |
30060 | ||
994141e6 | 30061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30064 | arg2 = (int) SWIG_AsInt(obj1); | |
30065 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30066 | { |
30067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30068 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30069 | ||
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | { | |
30074 | #if wxUSE_UNICODE | |
30075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30076 | #else | |
30077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30078 | #endif | |
30079 | } | |
30080 | return resultobj; | |
30081 | fail: | |
30082 | return NULL; | |
30083 | } | |
30084 | ||
30085 | ||
30086 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30087 | PyObject *resultobj; | |
30088 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30089 | wxString *arg2 = 0 ; | |
e811c8ce | 30090 | bool temp2 = False ; |
d14a1e28 RD |
30091 | PyObject * obj0 = 0 ; |
30092 | PyObject * obj1 = 0 ; | |
30093 | char *kwnames[] = { | |
30094 | (char *) "self",(char *) "title", NULL | |
30095 | }; | |
30096 | ||
30097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30100 | { |
30101 | arg2 = wxString_in_helper(obj1); | |
30102 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30103 | temp2 = True; |
d14a1e28 RD |
30104 | } |
30105 | { | |
30106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30107 | (arg1)->SetTitle((wxString const &)*arg2); | |
30108 | ||
30109 | wxPyEndAllowThreads(__tstate); | |
30110 | if (PyErr_Occurred()) SWIG_fail; | |
30111 | } | |
30112 | Py_INCREF(Py_None); resultobj = Py_None; | |
30113 | { | |
30114 | if (temp2) | |
30115 | delete arg2; | |
30116 | } | |
30117 | return resultobj; | |
30118 | fail: | |
30119 | { | |
30120 | if (temp2) | |
30121 | delete arg2; | |
30122 | } | |
30123 | return NULL; | |
30124 | } | |
30125 | ||
30126 | ||
30127 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30128 | PyObject *resultobj; | |
30129 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30130 | wxString result; | |
30131 | PyObject * obj0 = 0 ; | |
30132 | char *kwnames[] = { | |
30133 | (char *) "self", NULL | |
30134 | }; | |
30135 | ||
30136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30139 | { |
30140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30141 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30142 | ||
30143 | wxPyEndAllowThreads(__tstate); | |
30144 | if (PyErr_Occurred()) SWIG_fail; | |
30145 | } | |
30146 | { | |
30147 | #if wxUSE_UNICODE | |
30148 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30149 | #else | |
30150 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30151 | #endif | |
30152 | } | |
30153 | return resultobj; | |
30154 | fail: | |
30155 | return NULL; | |
30156 | } | |
30157 | ||
30158 | ||
30159 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30160 | PyObject *resultobj; | |
30161 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30162 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30163 | PyObject * obj0 = 0 ; | |
30164 | PyObject * obj1 = 0 ; | |
30165 | char *kwnames[] = { | |
30166 | (char *) "self",(char *) "handler", NULL | |
30167 | }; | |
30168 | ||
30169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30172 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30174 | { |
30175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30176 | (arg1)->SetEventHandler(arg2); | |
30177 | ||
30178 | wxPyEndAllowThreads(__tstate); | |
30179 | if (PyErr_Occurred()) SWIG_fail; | |
30180 | } | |
30181 | Py_INCREF(Py_None); resultobj = Py_None; | |
30182 | return resultobj; | |
30183 | fail: | |
30184 | return NULL; | |
30185 | } | |
30186 | ||
30187 | ||
30188 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30189 | PyObject *resultobj; | |
30190 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30191 | wxEvtHandler *result; | |
30192 | PyObject * obj0 = 0 ; | |
30193 | char *kwnames[] = { | |
30194 | (char *) "self", NULL | |
30195 | }; | |
30196 | ||
30197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30200 | { |
30201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30202 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30203 | ||
30204 | wxPyEndAllowThreads(__tstate); | |
30205 | if (PyErr_Occurred()) SWIG_fail; | |
30206 | } | |
30207 | { | |
30208 | resultobj = wxPyMake_wxObject(result); | |
30209 | } | |
30210 | return resultobj; | |
30211 | fail: | |
30212 | return NULL; | |
30213 | } | |
30214 | ||
30215 | ||
30216 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30217 | PyObject *resultobj; | |
30218 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30219 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30220 | PyObject * obj0 = 0 ; | |
30221 | PyObject * obj1 = 0 ; | |
30222 | char *kwnames[] = { | |
30223 | (char *) "self",(char *) "win", NULL | |
30224 | }; | |
30225 | ||
30226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30231 | { |
30232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30233 | (arg1)->SetInvokingWindow(arg2); | |
30234 | ||
30235 | wxPyEndAllowThreads(__tstate); | |
30236 | if (PyErr_Occurred()) SWIG_fail; | |
30237 | } | |
30238 | Py_INCREF(Py_None); resultobj = Py_None; | |
30239 | return resultobj; | |
30240 | fail: | |
30241 | return NULL; | |
30242 | } | |
30243 | ||
30244 | ||
30245 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30246 | PyObject *resultobj; | |
30247 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30248 | wxWindow *result; | |
30249 | PyObject * obj0 = 0 ; | |
30250 | char *kwnames[] = { | |
30251 | (char *) "self", NULL | |
30252 | }; | |
30253 | ||
30254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30257 | { |
30258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30259 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30260 | ||
30261 | wxPyEndAllowThreads(__tstate); | |
30262 | if (PyErr_Occurred()) SWIG_fail; | |
30263 | } | |
30264 | { | |
30265 | resultobj = wxPyMake_wxObject(result); | |
30266 | } | |
30267 | return resultobj; | |
30268 | fail: | |
30269 | return NULL; | |
30270 | } | |
30271 | ||
30272 | ||
30273 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30274 | PyObject *resultobj; | |
30275 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30276 | long result; | |
30277 | PyObject * obj0 = 0 ; | |
30278 | char *kwnames[] = { | |
30279 | (char *) "self", NULL | |
30280 | }; | |
30281 | ||
30282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30285 | { |
30286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30287 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30288 | ||
30289 | wxPyEndAllowThreads(__tstate); | |
30290 | if (PyErr_Occurred()) SWIG_fail; | |
30291 | } | |
15afbcd0 | 30292 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
30293 | return resultobj; |
30294 | fail: | |
30295 | return NULL; | |
30296 | } | |
30297 | ||
30298 | ||
30299 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30300 | PyObject *resultobj; | |
30301 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30302 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30303 | PyObject * obj0 = 0 ; | |
30304 | PyObject * obj1 = 0 ; | |
30305 | char *kwnames[] = { | |
30306 | (char *) "self",(char *) "source", NULL | |
30307 | }; | |
30308 | ||
30309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30312 | if (obj1) { |
15afbcd0 RD |
30313 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
30314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30315 | } |
30316 | { | |
30317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30318 | (arg1)->UpdateUI(arg2); | |
30319 | ||
30320 | wxPyEndAllowThreads(__tstate); | |
30321 | if (PyErr_Occurred()) SWIG_fail; | |
30322 | } | |
30323 | Py_INCREF(Py_None); resultobj = Py_None; | |
30324 | return resultobj; | |
30325 | fail: | |
30326 | return NULL; | |
30327 | } | |
30328 | ||
30329 | ||
30330 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30331 | PyObject *resultobj; | |
30332 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30333 | wxMenuBar *result; | |
30334 | PyObject * obj0 = 0 ; | |
30335 | char *kwnames[] = { | |
30336 | (char *) "self", NULL | |
30337 | }; | |
30338 | ||
30339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30342 | { |
30343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30344 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30345 | ||
30346 | wxPyEndAllowThreads(__tstate); | |
30347 | if (PyErr_Occurred()) SWIG_fail; | |
30348 | } | |
30349 | { | |
30350 | resultobj = wxPyMake_wxObject(result); | |
30351 | } | |
30352 | return resultobj; | |
30353 | fail: | |
30354 | return NULL; | |
30355 | } | |
30356 | ||
30357 | ||
30358 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30359 | PyObject *resultobj; | |
30360 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30361 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30362 | PyObject * obj0 = 0 ; | |
30363 | PyObject * obj1 = 0 ; | |
30364 | char *kwnames[] = { | |
30365 | (char *) "self",(char *) "menubar", NULL | |
30366 | }; | |
30367 | ||
30368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30373 | { |
30374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30375 | (arg1)->Attach(arg2); | |
30376 | ||
30377 | wxPyEndAllowThreads(__tstate); | |
30378 | if (PyErr_Occurred()) SWIG_fail; | |
30379 | } | |
30380 | Py_INCREF(Py_None); resultobj = Py_None; | |
30381 | return resultobj; | |
30382 | fail: | |
30383 | return NULL; | |
30384 | } | |
30385 | ||
30386 | ||
30387 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30388 | PyObject *resultobj; | |
30389 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30390 | PyObject * obj0 = 0 ; | |
30391 | char *kwnames[] = { | |
30392 | (char *) "self", NULL | |
30393 | }; | |
30394 | ||
30395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30398 | { |
30399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30400 | (arg1)->Detach(); | |
30401 | ||
30402 | wxPyEndAllowThreads(__tstate); | |
30403 | if (PyErr_Occurred()) SWIG_fail; | |
30404 | } | |
30405 | Py_INCREF(Py_None); resultobj = Py_None; | |
30406 | return resultobj; | |
30407 | fail: | |
30408 | return NULL; | |
30409 | } | |
30410 | ||
30411 | ||
30412 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30413 | PyObject *resultobj; | |
30414 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30415 | bool result; | |
30416 | PyObject * obj0 = 0 ; | |
30417 | char *kwnames[] = { | |
30418 | (char *) "self", NULL | |
30419 | }; | |
30420 | ||
30421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30424 | { |
30425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30426 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30427 | ||
30428 | wxPyEndAllowThreads(__tstate); | |
30429 | if (PyErr_Occurred()) SWIG_fail; | |
30430 | } | |
4f89f6a3 RD |
30431 | { |
30432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30433 | } | |
d14a1e28 RD |
30434 | return resultobj; |
30435 | fail: | |
30436 | return NULL; | |
30437 | } | |
30438 | ||
30439 | ||
30440 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30441 | PyObject *resultobj; | |
30442 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30443 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30444 | PyObject * obj0 = 0 ; | |
30445 | PyObject * obj1 = 0 ; | |
30446 | char *kwnames[] = { | |
30447 | (char *) "self",(char *) "parent", NULL | |
30448 | }; | |
30449 | ||
30450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30455 | { |
30456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30457 | (arg1)->SetParent(arg2); | |
30458 | ||
30459 | wxPyEndAllowThreads(__tstate); | |
30460 | if (PyErr_Occurred()) SWIG_fail; | |
30461 | } | |
30462 | Py_INCREF(Py_None); resultobj = Py_None; | |
30463 | return resultobj; | |
30464 | fail: | |
30465 | return NULL; | |
30466 | } | |
30467 | ||
30468 | ||
30469 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30470 | PyObject *resultobj; | |
30471 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30472 | wxMenu *result; | |
30473 | PyObject * obj0 = 0 ; | |
30474 | char *kwnames[] = { | |
30475 | (char *) "self", NULL | |
30476 | }; | |
30477 | ||
30478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30481 | { |
30482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30483 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30484 | ||
30485 | wxPyEndAllowThreads(__tstate); | |
30486 | if (PyErr_Occurred()) SWIG_fail; | |
30487 | } | |
30488 | { | |
30489 | resultobj = wxPyMake_wxObject(result); | |
30490 | } | |
30491 | return resultobj; | |
30492 | fail: | |
30493 | return NULL; | |
30494 | } | |
30495 | ||
30496 | ||
30497 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30498 | PyObject *obj; | |
30499 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30500 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30501 | Py_INCREF(obj); | |
30502 | return Py_BuildValue((char *)""); | |
30503 | } | |
30504 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30505 | PyObject *resultobj; | |
30506 | long arg1 = (long) 0 ; | |
30507 | wxMenuBar *result; | |
994141e6 | 30508 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
30509 | char *kwnames[] = { |
30510 | (char *) "style", NULL | |
30511 | }; | |
30512 | ||
994141e6 RD |
30513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
30514 | if (obj0) { | |
15afbcd0 RD |
30515 | arg1 = (long) SWIG_AsLong(obj0); |
30516 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30517 | } |
d14a1e28 RD |
30518 | { |
30519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30520 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30521 | ||
30522 | wxPyEndAllowThreads(__tstate); | |
30523 | if (PyErr_Occurred()) SWIG_fail; | |
30524 | } | |
30525 | { | |
30526 | resultobj = wxPyMake_wxObject(result); | |
30527 | } | |
30528 | return resultobj; | |
30529 | fail: | |
30530 | return NULL; | |
30531 | } | |
30532 | ||
30533 | ||
30534 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30535 | PyObject *resultobj; | |
30536 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30537 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30538 | wxString *arg3 = 0 ; | |
30539 | bool result; | |
e811c8ce | 30540 | bool temp3 = False ; |
d14a1e28 RD |
30541 | PyObject * obj0 = 0 ; |
30542 | PyObject * obj1 = 0 ; | |
30543 | PyObject * obj2 = 0 ; | |
30544 | char *kwnames[] = { | |
30545 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30546 | }; | |
30547 | ||
30548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30551 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30553 | { |
30554 | arg3 = wxString_in_helper(obj2); | |
30555 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30556 | temp3 = True; |
d14a1e28 RD |
30557 | } |
30558 | { | |
30559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30560 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30561 | ||
30562 | wxPyEndAllowThreads(__tstate); | |
30563 | if (PyErr_Occurred()) SWIG_fail; | |
30564 | } | |
4f89f6a3 RD |
30565 | { |
30566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30567 | } | |
d14a1e28 RD |
30568 | { |
30569 | if (temp3) | |
30570 | delete arg3; | |
30571 | } | |
30572 | return resultobj; | |
30573 | fail: | |
30574 | { | |
30575 | if (temp3) | |
30576 | delete arg3; | |
30577 | } | |
30578 | return NULL; | |
30579 | } | |
30580 | ||
30581 | ||
30582 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30583 | PyObject *resultobj; | |
30584 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30585 | size_t arg2 ; | |
30586 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30587 | wxString *arg4 = 0 ; | |
30588 | bool result; | |
e811c8ce | 30589 | bool temp4 = False ; |
d14a1e28 RD |
30590 | PyObject * obj0 = 0 ; |
30591 | PyObject * obj1 = 0 ; | |
30592 | PyObject * obj2 = 0 ; | |
30593 | PyObject * obj3 = 0 ; | |
30594 | char *kwnames[] = { | |
30595 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30596 | }; | |
30597 | ||
30598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30601 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30602 | if (PyErr_Occurred()) SWIG_fail; | |
30603 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30605 | { |
30606 | arg4 = wxString_in_helper(obj3); | |
30607 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30608 | temp4 = True; |
d14a1e28 RD |
30609 | } |
30610 | { | |
30611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30612 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30613 | ||
30614 | wxPyEndAllowThreads(__tstate); | |
30615 | if (PyErr_Occurred()) SWIG_fail; | |
30616 | } | |
4f89f6a3 RD |
30617 | { |
30618 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30619 | } | |
d14a1e28 RD |
30620 | { |
30621 | if (temp4) | |
30622 | delete arg4; | |
30623 | } | |
30624 | return resultobj; | |
30625 | fail: | |
30626 | { | |
30627 | if (temp4) | |
30628 | delete arg4; | |
30629 | } | |
30630 | return NULL; | |
30631 | } | |
30632 | ||
30633 | ||
30634 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30635 | PyObject *resultobj; | |
30636 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30637 | size_t result; | |
30638 | PyObject * obj0 = 0 ; | |
30639 | char *kwnames[] = { | |
30640 | (char *) "self", NULL | |
30641 | }; | |
30642 | ||
30643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30646 | { |
30647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30648 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30649 | ||
30650 | wxPyEndAllowThreads(__tstate); | |
30651 | if (PyErr_Occurred()) SWIG_fail; | |
30652 | } | |
15afbcd0 | 30653 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
30654 | return resultobj; |
30655 | fail: | |
30656 | return NULL; | |
30657 | } | |
30658 | ||
30659 | ||
30660 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30661 | PyObject *resultobj; | |
30662 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30663 | size_t arg2 ; | |
30664 | wxMenu *result; | |
30665 | PyObject * obj0 = 0 ; | |
30666 | PyObject * obj1 = 0 ; | |
30667 | char *kwnames[] = { | |
30668 | (char *) "self",(char *) "pos", NULL | |
30669 | }; | |
30670 | ||
30671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30674 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30675 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30676 | { |
30677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30678 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30679 | ||
30680 | wxPyEndAllowThreads(__tstate); | |
30681 | if (PyErr_Occurred()) SWIG_fail; | |
30682 | } | |
30683 | { | |
30684 | resultobj = wxPyMake_wxObject(result); | |
30685 | } | |
30686 | return resultobj; | |
30687 | fail: | |
30688 | return NULL; | |
30689 | } | |
30690 | ||
30691 | ||
30692 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30693 | PyObject *resultobj; | |
30694 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30695 | size_t arg2 ; | |
30696 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30697 | wxString *arg4 = 0 ; | |
30698 | wxMenu *result; | |
e811c8ce | 30699 | bool temp4 = False ; |
d14a1e28 RD |
30700 | PyObject * obj0 = 0 ; |
30701 | PyObject * obj1 = 0 ; | |
30702 | PyObject * obj2 = 0 ; | |
30703 | PyObject * obj3 = 0 ; | |
30704 | char *kwnames[] = { | |
30705 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30706 | }; | |
30707 | ||
30708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30711 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30712 | if (PyErr_Occurred()) SWIG_fail; | |
30713 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30715 | { |
30716 | arg4 = wxString_in_helper(obj3); | |
30717 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30718 | temp4 = True; |
d14a1e28 RD |
30719 | } |
30720 | { | |
30721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30722 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30723 | ||
30724 | wxPyEndAllowThreads(__tstate); | |
30725 | if (PyErr_Occurred()) SWIG_fail; | |
30726 | } | |
30727 | { | |
30728 | resultobj = wxPyMake_wxObject(result); | |
30729 | } | |
30730 | { | |
30731 | if (temp4) | |
30732 | delete arg4; | |
30733 | } | |
30734 | return resultobj; | |
30735 | fail: | |
30736 | { | |
30737 | if (temp4) | |
30738 | delete arg4; | |
30739 | } | |
30740 | return NULL; | |
30741 | } | |
30742 | ||
30743 | ||
30744 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30745 | PyObject *resultobj; | |
30746 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30747 | size_t arg2 ; | |
30748 | wxMenu *result; | |
30749 | PyObject * obj0 = 0 ; | |
30750 | PyObject * obj1 = 0 ; | |
30751 | char *kwnames[] = { | |
30752 | (char *) "self",(char *) "pos", NULL | |
30753 | }; | |
30754 | ||
30755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30758 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30760 | { |
30761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30762 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30763 | ||
30764 | wxPyEndAllowThreads(__tstate); | |
30765 | if (PyErr_Occurred()) SWIG_fail; | |
30766 | } | |
30767 | { | |
30768 | resultobj = wxPyMake_wxObject(result); | |
30769 | } | |
30770 | return resultobj; | |
30771 | fail: | |
30772 | return NULL; | |
30773 | } | |
30774 | ||
30775 | ||
30776 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30777 | PyObject *resultobj; | |
30778 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30779 | size_t arg2 ; | |
30780 | bool arg3 ; | |
30781 | PyObject * obj0 = 0 ; | |
30782 | PyObject * obj1 = 0 ; | |
30783 | PyObject * obj2 = 0 ; | |
30784 | char *kwnames[] = { | |
30785 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30786 | }; | |
30787 | ||
30788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30791 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30792 | if (PyErr_Occurred()) SWIG_fail; | |
30793 | arg3 = (bool) SWIG_AsBool(obj2); | |
30794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30795 | { |
30796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30797 | (arg1)->EnableTop(arg2,arg3); | |
30798 | ||
30799 | wxPyEndAllowThreads(__tstate); | |
30800 | if (PyErr_Occurred()) SWIG_fail; | |
30801 | } | |
30802 | Py_INCREF(Py_None); resultobj = Py_None; | |
30803 | return resultobj; | |
30804 | fail: | |
30805 | return NULL; | |
30806 | } | |
30807 | ||
30808 | ||
30809 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30810 | PyObject *resultobj; | |
30811 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30812 | size_t arg2 ; | |
30813 | bool result; | |
30814 | PyObject * obj0 = 0 ; | |
30815 | PyObject * obj1 = 0 ; | |
30816 | char *kwnames[] = { | |
30817 | (char *) "self",(char *) "pos", NULL | |
30818 | }; | |
30819 | ||
30820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30823 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30824 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30825 | { |
30826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30827 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
30828 | ||
30829 | wxPyEndAllowThreads(__tstate); | |
30830 | if (PyErr_Occurred()) SWIG_fail; | |
30831 | } | |
4f89f6a3 RD |
30832 | { |
30833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30834 | } | |
d14a1e28 RD |
30835 | return resultobj; |
30836 | fail: | |
30837 | return NULL; | |
30838 | } | |
30839 | ||
30840 | ||
30841 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30842 | PyObject *resultobj; | |
30843 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30844 | size_t arg2 ; | |
30845 | wxString *arg3 = 0 ; | |
e811c8ce | 30846 | bool temp3 = False ; |
d14a1e28 RD |
30847 | PyObject * obj0 = 0 ; |
30848 | PyObject * obj1 = 0 ; | |
30849 | PyObject * obj2 = 0 ; | |
30850 | char *kwnames[] = { | |
30851 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
30852 | }; | |
30853 | ||
30854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) 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 | arg3 = wxString_in_helper(obj2); | |
30861 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30862 | temp3 = True; |
d14a1e28 RD |
30863 | } |
30864 | { | |
30865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30866 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
30867 | ||
30868 | wxPyEndAllowThreads(__tstate); | |
30869 | if (PyErr_Occurred()) SWIG_fail; | |
30870 | } | |
30871 | Py_INCREF(Py_None); resultobj = Py_None; | |
30872 | { | |
30873 | if (temp3) | |
30874 | delete arg3; | |
30875 | } | |
30876 | return resultobj; | |
30877 | fail: | |
30878 | { | |
30879 | if (temp3) | |
30880 | delete arg3; | |
30881 | } | |
30882 | return NULL; | |
30883 | } | |
30884 | ||
30885 | ||
30886 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30887 | PyObject *resultobj; | |
30888 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30889 | size_t arg2 ; | |
30890 | wxString result; | |
30891 | PyObject * obj0 = 0 ; | |
30892 | PyObject * obj1 = 0 ; | |
30893 | char *kwnames[] = { | |
30894 | (char *) "self",(char *) "pos", NULL | |
30895 | }; | |
30896 | ||
30897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30900 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30902 | { |
30903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30904 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
30905 | ||
30906 | wxPyEndAllowThreads(__tstate); | |
30907 | if (PyErr_Occurred()) SWIG_fail; | |
30908 | } | |
30909 | { | |
30910 | #if wxUSE_UNICODE | |
30911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30912 | #else | |
30913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30914 | #endif | |
30915 | } | |
30916 | return resultobj; | |
30917 | fail: | |
30918 | return NULL; | |
30919 | } | |
30920 | ||
30921 | ||
30922 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30923 | PyObject *resultobj; | |
30924 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30925 | wxString *arg2 = 0 ; | |
30926 | wxString *arg3 = 0 ; | |
30927 | int result; | |
e811c8ce RD |
30928 | bool temp2 = False ; |
30929 | bool temp3 = False ; | |
d14a1e28 RD |
30930 | PyObject * obj0 = 0 ; |
30931 | PyObject * obj1 = 0 ; | |
30932 | PyObject * obj2 = 0 ; | |
30933 | char *kwnames[] = { | |
30934 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
30935 | }; | |
30936 | ||
30937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30940 | { |
30941 | arg2 = wxString_in_helper(obj1); | |
30942 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30943 | temp2 = True; |
d14a1e28 RD |
30944 | } |
30945 | { | |
30946 | arg3 = wxString_in_helper(obj2); | |
30947 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30948 | temp3 = True; |
d14a1e28 RD |
30949 | } |
30950 | { | |
30951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30952 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
30953 | ||
30954 | wxPyEndAllowThreads(__tstate); | |
30955 | if (PyErr_Occurred()) SWIG_fail; | |
30956 | } | |
15afbcd0 | 30957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30958 | { |
30959 | if (temp2) | |
30960 | delete arg2; | |
30961 | } | |
30962 | { | |
30963 | if (temp3) | |
30964 | delete arg3; | |
30965 | } | |
30966 | return resultobj; | |
30967 | fail: | |
30968 | { | |
30969 | if (temp2) | |
30970 | delete arg2; | |
30971 | } | |
30972 | { | |
30973 | if (temp3) | |
30974 | delete arg3; | |
30975 | } | |
30976 | return NULL; | |
30977 | } | |
30978 | ||
30979 | ||
30980 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30981 | PyObject *resultobj; | |
30982 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30983 | int arg2 ; | |
30984 | wxMenuItem *result; | |
30985 | PyObject * obj0 = 0 ; | |
994141e6 | 30986 | PyObject * obj1 = 0 ; |
d14a1e28 | 30987 | char *kwnames[] = { |
242b7b46 | 30988 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30989 | }; |
30990 | ||
994141e6 | 30991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30994 | arg2 = (int) SWIG_AsInt(obj1); | |
30995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30996 | { |
30997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30998 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
30999 | ||
31000 | wxPyEndAllowThreads(__tstate); | |
31001 | if (PyErr_Occurred()) SWIG_fail; | |
31002 | } | |
31003 | { | |
31004 | resultobj = wxPyMake_wxObject(result); | |
31005 | } | |
31006 | return resultobj; | |
31007 | fail: | |
31008 | return NULL; | |
31009 | } | |
31010 | ||
31011 | ||
31012 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31013 | PyObject *resultobj; | |
31014 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31015 | wxString *arg2 = 0 ; | |
31016 | int result; | |
e811c8ce | 31017 | bool temp2 = False ; |
d14a1e28 RD |
31018 | PyObject * obj0 = 0 ; |
31019 | PyObject * obj1 = 0 ; | |
31020 | char *kwnames[] = { | |
31021 | (char *) "self",(char *) "title", NULL | |
31022 | }; | |
31023 | ||
31024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31027 | { |
31028 | arg2 = wxString_in_helper(obj1); | |
31029 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31030 | temp2 = True; |
d14a1e28 RD |
31031 | } |
31032 | { | |
31033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31034 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31035 | ||
31036 | wxPyEndAllowThreads(__tstate); | |
31037 | if (PyErr_Occurred()) SWIG_fail; | |
31038 | } | |
15afbcd0 | 31039 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31040 | { |
31041 | if (temp2) | |
31042 | delete arg2; | |
31043 | } | |
31044 | return resultobj; | |
31045 | fail: | |
31046 | { | |
31047 | if (temp2) | |
31048 | delete arg2; | |
31049 | } | |
31050 | return NULL; | |
31051 | } | |
31052 | ||
31053 | ||
31054 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31055 | PyObject *resultobj; | |
31056 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31057 | int arg2 ; | |
31058 | bool arg3 ; | |
31059 | PyObject * obj0 = 0 ; | |
994141e6 | 31060 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31061 | PyObject * obj2 = 0 ; |
31062 | char *kwnames[] = { | |
242b7b46 | 31063 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
31064 | }; |
31065 | ||
994141e6 | 31066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31069 | arg2 = (int) SWIG_AsInt(obj1); | |
31070 | if (PyErr_Occurred()) SWIG_fail; | |
31071 | arg3 = (bool) SWIG_AsBool(obj2); | |
31072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31073 | { |
31074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31075 | (arg1)->Enable(arg2,arg3); | |
31076 | ||
31077 | wxPyEndAllowThreads(__tstate); | |
31078 | if (PyErr_Occurred()) SWIG_fail; | |
31079 | } | |
31080 | Py_INCREF(Py_None); resultobj = Py_None; | |
31081 | return resultobj; | |
31082 | fail: | |
31083 | return NULL; | |
31084 | } | |
31085 | ||
31086 | ||
31087 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31088 | PyObject *resultobj; | |
31089 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31090 | int arg2 ; | |
31091 | bool arg3 ; | |
31092 | PyObject * obj0 = 0 ; | |
994141e6 | 31093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31094 | PyObject * obj2 = 0 ; |
31095 | char *kwnames[] = { | |
242b7b46 | 31096 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
31097 | }; |
31098 | ||
994141e6 | 31099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31102 | arg2 = (int) SWIG_AsInt(obj1); | |
31103 | if (PyErr_Occurred()) SWIG_fail; | |
31104 | arg3 = (bool) SWIG_AsBool(obj2); | |
31105 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31106 | { |
31107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31108 | (arg1)->Check(arg2,arg3); | |
31109 | ||
31110 | wxPyEndAllowThreads(__tstate); | |
31111 | if (PyErr_Occurred()) SWIG_fail; | |
31112 | } | |
31113 | Py_INCREF(Py_None); resultobj = Py_None; | |
31114 | return resultobj; | |
31115 | fail: | |
31116 | return NULL; | |
31117 | } | |
31118 | ||
31119 | ||
31120 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31121 | PyObject *resultobj; | |
31122 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31123 | int arg2 ; | |
31124 | bool result; | |
31125 | PyObject * obj0 = 0 ; | |
994141e6 | 31126 | PyObject * obj1 = 0 ; |
d14a1e28 | 31127 | char *kwnames[] = { |
242b7b46 | 31128 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31129 | }; |
31130 | ||
994141e6 | 31131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31134 | arg2 = (int) SWIG_AsInt(obj1); | |
31135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31136 | { |
31137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31138 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31139 | ||
31140 | wxPyEndAllowThreads(__tstate); | |
31141 | if (PyErr_Occurred()) SWIG_fail; | |
31142 | } | |
4f89f6a3 RD |
31143 | { |
31144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31145 | } | |
d14a1e28 RD |
31146 | return resultobj; |
31147 | fail: | |
31148 | return NULL; | |
31149 | } | |
31150 | ||
31151 | ||
31152 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31153 | PyObject *resultobj; | |
31154 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31155 | int arg2 ; | |
31156 | bool result; | |
31157 | PyObject * obj0 = 0 ; | |
994141e6 | 31158 | PyObject * obj1 = 0 ; |
d14a1e28 | 31159 | char *kwnames[] = { |
242b7b46 | 31160 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31161 | }; |
31162 | ||
994141e6 | 31163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31166 | arg2 = (int) SWIG_AsInt(obj1); | |
31167 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31168 | { |
31169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31170 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31171 | ||
31172 | wxPyEndAllowThreads(__tstate); | |
31173 | if (PyErr_Occurred()) SWIG_fail; | |
31174 | } | |
4f89f6a3 RD |
31175 | { |
31176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31177 | } | |
d14a1e28 RD |
31178 | return resultobj; |
31179 | fail: | |
31180 | return NULL; | |
31181 | } | |
31182 | ||
31183 | ||
31184 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31185 | PyObject *resultobj; | |
31186 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31187 | int arg2 ; | |
31188 | wxString *arg3 = 0 ; | |
e811c8ce | 31189 | bool temp3 = False ; |
d14a1e28 | 31190 | PyObject * obj0 = 0 ; |
994141e6 | 31191 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31192 | PyObject * obj2 = 0 ; |
31193 | char *kwnames[] = { | |
242b7b46 | 31194 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
31195 | }; |
31196 | ||
994141e6 | 31197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31200 | arg2 = (int) SWIG_AsInt(obj1); | |
31201 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31202 | { |
31203 | arg3 = wxString_in_helper(obj2); | |
31204 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31205 | temp3 = True; |
d14a1e28 RD |
31206 | } |
31207 | { | |
31208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31209 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31210 | ||
31211 | wxPyEndAllowThreads(__tstate); | |
31212 | if (PyErr_Occurred()) SWIG_fail; | |
31213 | } | |
31214 | Py_INCREF(Py_None); resultobj = Py_None; | |
31215 | { | |
31216 | if (temp3) | |
31217 | delete arg3; | |
31218 | } | |
31219 | return resultobj; | |
31220 | fail: | |
31221 | { | |
31222 | if (temp3) | |
31223 | delete arg3; | |
31224 | } | |
31225 | return NULL; | |
31226 | } | |
31227 | ||
31228 | ||
31229 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31230 | PyObject *resultobj; | |
31231 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31232 | int arg2 ; | |
31233 | wxString result; | |
31234 | PyObject * obj0 = 0 ; | |
994141e6 | 31235 | PyObject * obj1 = 0 ; |
d14a1e28 | 31236 | char *kwnames[] = { |
242b7b46 | 31237 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31238 | }; |
31239 | ||
994141e6 | 31240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31243 | arg2 = (int) SWIG_AsInt(obj1); | |
31244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31245 | { |
31246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31247 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31248 | ||
31249 | wxPyEndAllowThreads(__tstate); | |
31250 | if (PyErr_Occurred()) SWIG_fail; | |
31251 | } | |
31252 | { | |
31253 | #if wxUSE_UNICODE | |
31254 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31255 | #else | |
31256 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31257 | #endif | |
31258 | } | |
31259 | return resultobj; | |
31260 | fail: | |
31261 | return NULL; | |
31262 | } | |
31263 | ||
31264 | ||
31265 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31266 | PyObject *resultobj; | |
31267 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31268 | int arg2 ; | |
31269 | wxString *arg3 = 0 ; | |
e811c8ce | 31270 | bool temp3 = False ; |
d14a1e28 | 31271 | PyObject * obj0 = 0 ; |
994141e6 | 31272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31273 | PyObject * obj2 = 0 ; |
31274 | char *kwnames[] = { | |
242b7b46 | 31275 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
31276 | }; |
31277 | ||
994141e6 | 31278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31281 | arg2 = (int) SWIG_AsInt(obj1); | |
31282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31283 | { |
31284 | arg3 = wxString_in_helper(obj2); | |
31285 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31286 | temp3 = True; |
d14a1e28 RD |
31287 | } |
31288 | { | |
31289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31290 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31291 | ||
31292 | wxPyEndAllowThreads(__tstate); | |
31293 | if (PyErr_Occurred()) SWIG_fail; | |
31294 | } | |
31295 | Py_INCREF(Py_None); resultobj = Py_None; | |
31296 | { | |
31297 | if (temp3) | |
31298 | delete arg3; | |
31299 | } | |
31300 | return resultobj; | |
31301 | fail: | |
31302 | { | |
31303 | if (temp3) | |
31304 | delete arg3; | |
31305 | } | |
31306 | return NULL; | |
31307 | } | |
31308 | ||
31309 | ||
31310 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31311 | PyObject *resultobj; | |
31312 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31313 | int arg2 ; | |
31314 | wxString result; | |
31315 | PyObject * obj0 = 0 ; | |
994141e6 | 31316 | PyObject * obj1 = 0 ; |
d14a1e28 | 31317 | char *kwnames[] = { |
242b7b46 | 31318 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31319 | }; |
31320 | ||
994141e6 | 31321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31324 | arg2 = (int) SWIG_AsInt(obj1); | |
31325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31326 | { |
31327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31328 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31329 | ||
31330 | wxPyEndAllowThreads(__tstate); | |
31331 | if (PyErr_Occurred()) SWIG_fail; | |
31332 | } | |
31333 | { | |
31334 | #if wxUSE_UNICODE | |
31335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31336 | #else | |
31337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31338 | #endif | |
31339 | } | |
31340 | return resultobj; | |
31341 | fail: | |
31342 | return NULL; | |
31343 | } | |
31344 | ||
31345 | ||
31346 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31347 | PyObject *resultobj; | |
31348 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31349 | wxFrame *result; | |
31350 | PyObject * obj0 = 0 ; | |
31351 | char *kwnames[] = { | |
31352 | (char *) "self", NULL | |
31353 | }; | |
31354 | ||
31355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31358 | { |
31359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31360 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31361 | ||
31362 | wxPyEndAllowThreads(__tstate); | |
31363 | if (PyErr_Occurred()) SWIG_fail; | |
31364 | } | |
31365 | { | |
31366 | resultobj = wxPyMake_wxObject(result); | |
31367 | } | |
31368 | return resultobj; | |
31369 | fail: | |
31370 | return NULL; | |
31371 | } | |
31372 | ||
31373 | ||
31374 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31375 | PyObject *resultobj; | |
31376 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31377 | bool result; | |
31378 | PyObject * obj0 = 0 ; | |
31379 | char *kwnames[] = { | |
31380 | (char *) "self", NULL | |
31381 | }; | |
31382 | ||
31383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31386 | { |
31387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31388 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31389 | ||
31390 | wxPyEndAllowThreads(__tstate); | |
31391 | if (PyErr_Occurred()) SWIG_fail; | |
31392 | } | |
4f89f6a3 RD |
31393 | { |
31394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31395 | } | |
d14a1e28 RD |
31396 | return resultobj; |
31397 | fail: | |
31398 | return NULL; | |
31399 | } | |
31400 | ||
31401 | ||
31402 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31403 | PyObject *resultobj; | |
31404 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31405 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31406 | PyObject * obj0 = 0 ; | |
31407 | PyObject * obj1 = 0 ; | |
31408 | char *kwnames[] = { | |
31409 | (char *) "self",(char *) "frame", NULL | |
31410 | }; | |
31411 | ||
31412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31417 | { |
31418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31419 | (arg1)->Attach(arg2); | |
31420 | ||
31421 | wxPyEndAllowThreads(__tstate); | |
31422 | if (PyErr_Occurred()) SWIG_fail; | |
31423 | } | |
31424 | Py_INCREF(Py_None); resultobj = Py_None; | |
31425 | return resultobj; | |
31426 | fail: | |
31427 | return NULL; | |
31428 | } | |
31429 | ||
31430 | ||
31431 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31432 | PyObject *resultobj; | |
31433 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31434 | PyObject * obj0 = 0 ; | |
31435 | char *kwnames[] = { | |
31436 | (char *) "self", NULL | |
31437 | }; | |
31438 | ||
31439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31442 | { |
31443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31444 | (arg1)->Detach(); | |
31445 | ||
31446 | wxPyEndAllowThreads(__tstate); | |
31447 | if (PyErr_Occurred()) SWIG_fail; | |
31448 | } | |
31449 | Py_INCREF(Py_None); resultobj = Py_None; | |
31450 | return resultobj; | |
31451 | fail: | |
31452 | return NULL; | |
31453 | } | |
31454 | ||
31455 | ||
31456 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31457 | PyObject *obj; | |
31458 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31459 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31460 | Py_INCREF(obj); | |
31461 | return Py_BuildValue((char *)""); | |
31462 | } | |
31463 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31464 | PyObject *resultobj; | |
31465 | wxMenu *arg1 = (wxMenu *) NULL ; | |
31466 | int arg2 = (int) wxID_SEPARATOR ; | |
31467 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
31468 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31469 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31470 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31471 | int arg5 = (int) wxITEM_NORMAL ; | |
31472 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31473 | wxMenuItem *result; | |
e811c8ce RD |
31474 | bool temp3 = False ; |
31475 | bool temp4 = False ; | |
d14a1e28 | 31476 | PyObject * obj0 = 0 ; |
994141e6 | 31477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31478 | PyObject * obj2 = 0 ; |
31479 | PyObject * obj3 = 0 ; | |
994141e6 | 31480 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31481 | PyObject * obj5 = 0 ; |
31482 | char *kwnames[] = { | |
31483 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31484 | }; | |
31485 | ||
994141e6 | 31486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 31487 | if (obj0) { |
15afbcd0 RD |
31488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31490 | } |
994141e6 | 31491 | if (obj1) { |
15afbcd0 RD |
31492 | arg2 = (int) SWIG_AsInt(obj1); |
31493 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31494 | } |
d14a1e28 RD |
31495 | if (obj2) { |
31496 | { | |
31497 | arg3 = wxString_in_helper(obj2); | |
31498 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31499 | temp3 = True; |
d14a1e28 RD |
31500 | } |
31501 | } | |
31502 | if (obj3) { | |
31503 | { | |
31504 | arg4 = wxString_in_helper(obj3); | |
31505 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 31506 | temp4 = True; |
d14a1e28 RD |
31507 | } |
31508 | } | |
994141e6 | 31509 | if (obj4) { |
15afbcd0 RD |
31510 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
31511 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31512 | } |
d14a1e28 | 31513 | if (obj5) { |
15afbcd0 RD |
31514 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
31515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31516 | } |
31517 | { | |
31518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31519 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31520 | ||
31521 | wxPyEndAllowThreads(__tstate); | |
31522 | if (PyErr_Occurred()) SWIG_fail; | |
31523 | } | |
31524 | { | |
31525 | resultobj = wxPyMake_wxObject(result); | |
31526 | } | |
31527 | { | |
31528 | if (temp3) | |
31529 | delete arg3; | |
31530 | } | |
31531 | { | |
31532 | if (temp4) | |
31533 | delete arg4; | |
31534 | } | |
31535 | return resultobj; | |
31536 | fail: | |
31537 | { | |
31538 | if (temp3) | |
31539 | delete arg3; | |
31540 | } | |
31541 | { | |
31542 | if (temp4) | |
31543 | delete arg4; | |
31544 | } | |
31545 | return NULL; | |
31546 | } | |
31547 | ||
31548 | ||
31549 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31550 | PyObject *resultobj; | |
31551 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31552 | wxMenu *result; | |
31553 | PyObject * obj0 = 0 ; | |
31554 | char *kwnames[] = { | |
31555 | (char *) "self", NULL | |
31556 | }; | |
31557 | ||
31558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31561 | { |
31562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31563 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31564 | ||
31565 | wxPyEndAllowThreads(__tstate); | |
31566 | if (PyErr_Occurred()) SWIG_fail; | |
31567 | } | |
31568 | { | |
31569 | resultobj = wxPyMake_wxObject(result); | |
31570 | } | |
31571 | return resultobj; | |
31572 | fail: | |
31573 | return NULL; | |
31574 | } | |
31575 | ||
31576 | ||
31577 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31578 | PyObject *resultobj; | |
31579 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31580 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31581 | PyObject * obj0 = 0 ; | |
31582 | PyObject * obj1 = 0 ; | |
31583 | char *kwnames[] = { | |
31584 | (char *) "self",(char *) "menu", NULL | |
31585 | }; | |
31586 | ||
31587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31592 | { |
31593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31594 | (arg1)->SetMenu(arg2); | |
31595 | ||
31596 | wxPyEndAllowThreads(__tstate); | |
31597 | if (PyErr_Occurred()) SWIG_fail; | |
31598 | } | |
31599 | Py_INCREF(Py_None); resultobj = Py_None; | |
31600 | return resultobj; | |
31601 | fail: | |
31602 | return NULL; | |
31603 | } | |
31604 | ||
31605 | ||
31606 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31607 | PyObject *resultobj; | |
31608 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31609 | int arg2 ; | |
31610 | PyObject * obj0 = 0 ; | |
994141e6 | 31611 | PyObject * obj1 = 0 ; |
d14a1e28 | 31612 | char *kwnames[] = { |
242b7b46 | 31613 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31614 | }; |
31615 | ||
994141e6 | 31616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31619 | arg2 = (int) SWIG_AsInt(obj1); | |
31620 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31621 | { |
31622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31623 | (arg1)->SetId(arg2); | |
31624 | ||
31625 | wxPyEndAllowThreads(__tstate); | |
31626 | if (PyErr_Occurred()) SWIG_fail; | |
31627 | } | |
31628 | Py_INCREF(Py_None); resultobj = Py_None; | |
31629 | return resultobj; | |
31630 | fail: | |
31631 | return NULL; | |
31632 | } | |
31633 | ||
31634 | ||
31635 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31636 | PyObject *resultobj; | |
31637 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31638 | int result; | |
31639 | PyObject * obj0 = 0 ; | |
31640 | char *kwnames[] = { | |
31641 | (char *) "self", NULL | |
31642 | }; | |
31643 | ||
31644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31647 | { |
31648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31649 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31650 | ||
31651 | wxPyEndAllowThreads(__tstate); | |
31652 | if (PyErr_Occurred()) SWIG_fail; | |
31653 | } | |
15afbcd0 | 31654 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31655 | return resultobj; |
31656 | fail: | |
31657 | return NULL; | |
31658 | } | |
31659 | ||
31660 | ||
31661 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31662 | PyObject *resultobj; | |
31663 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31664 | bool result; | |
31665 | PyObject * obj0 = 0 ; | |
31666 | char *kwnames[] = { | |
31667 | (char *) "self", NULL | |
31668 | }; | |
31669 | ||
31670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31673 | { |
31674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31675 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31676 | ||
31677 | wxPyEndAllowThreads(__tstate); | |
31678 | if (PyErr_Occurred()) SWIG_fail; | |
31679 | } | |
4f89f6a3 RD |
31680 | { |
31681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31682 | } | |
d14a1e28 RD |
31683 | return resultobj; |
31684 | fail: | |
31685 | return NULL; | |
31686 | } | |
31687 | ||
31688 | ||
31689 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31690 | PyObject *resultobj; | |
31691 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31692 | wxString *arg2 = 0 ; | |
e811c8ce | 31693 | bool temp2 = False ; |
d14a1e28 RD |
31694 | PyObject * obj0 = 0 ; |
31695 | PyObject * obj1 = 0 ; | |
31696 | char *kwnames[] = { | |
31697 | (char *) "self",(char *) "str", NULL | |
31698 | }; | |
31699 | ||
31700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31703 | { |
31704 | arg2 = wxString_in_helper(obj1); | |
31705 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31706 | temp2 = True; |
d14a1e28 RD |
31707 | } |
31708 | { | |
31709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31710 | (arg1)->SetText((wxString const &)*arg2); | |
31711 | ||
31712 | wxPyEndAllowThreads(__tstate); | |
31713 | if (PyErr_Occurred()) SWIG_fail; | |
31714 | } | |
31715 | Py_INCREF(Py_None); resultobj = Py_None; | |
31716 | { | |
31717 | if (temp2) | |
31718 | delete arg2; | |
31719 | } | |
31720 | return resultobj; | |
31721 | fail: | |
31722 | { | |
31723 | if (temp2) | |
31724 | delete arg2; | |
31725 | } | |
31726 | return NULL; | |
31727 | } | |
31728 | ||
31729 | ||
31730 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31731 | PyObject *resultobj; | |
31732 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31733 | wxString result; | |
31734 | PyObject * obj0 = 0 ; | |
31735 | char *kwnames[] = { | |
31736 | (char *) "self", NULL | |
31737 | }; | |
31738 | ||
31739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31742 | { |
31743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31744 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31745 | ||
31746 | wxPyEndAllowThreads(__tstate); | |
31747 | if (PyErr_Occurred()) SWIG_fail; | |
31748 | } | |
31749 | { | |
31750 | #if wxUSE_UNICODE | |
31751 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31752 | #else | |
31753 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31754 | #endif | |
31755 | } | |
31756 | return resultobj; | |
31757 | fail: | |
31758 | return NULL; | |
31759 | } | |
31760 | ||
31761 | ||
31762 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31763 | PyObject *resultobj; | |
31764 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31765 | wxString *result; | |
31766 | PyObject * obj0 = 0 ; | |
31767 | char *kwnames[] = { | |
31768 | (char *) "self", NULL | |
31769 | }; | |
31770 | ||
31771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31774 | { |
31775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31776 | { | |
31777 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31778 | result = (wxString *) &_result_ref; | |
31779 | } | |
31780 | ||
31781 | wxPyEndAllowThreads(__tstate); | |
31782 | if (PyErr_Occurred()) SWIG_fail; | |
31783 | } | |
cc6dd355 RD |
31784 | { |
31785 | #if wxUSE_UNICODE | |
31786 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31787 | #else | |
31788 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31789 | #endif | |
31790 | } | |
d14a1e28 RD |
31791 | return resultobj; |
31792 | fail: | |
31793 | return NULL; | |
31794 | } | |
31795 | ||
31796 | ||
31797 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31798 | PyObject *resultobj; | |
31799 | wxString *arg1 = 0 ; | |
31800 | wxString result; | |
e811c8ce | 31801 | bool temp1 = False ; |
d14a1e28 RD |
31802 | PyObject * obj0 = 0 ; |
31803 | char *kwnames[] = { | |
31804 | (char *) "text", NULL | |
31805 | }; | |
31806 | ||
31807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
31808 | { | |
31809 | arg1 = wxString_in_helper(obj0); | |
31810 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 31811 | temp1 = True; |
d14a1e28 RD |
31812 | } |
31813 | { | |
31814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31815 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
31816 | ||
31817 | wxPyEndAllowThreads(__tstate); | |
31818 | if (PyErr_Occurred()) SWIG_fail; | |
31819 | } | |
31820 | { | |
31821 | #if wxUSE_UNICODE | |
31822 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31823 | #else | |
31824 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31825 | #endif | |
31826 | } | |
31827 | { | |
31828 | if (temp1) | |
31829 | delete arg1; | |
31830 | } | |
31831 | return resultobj; | |
31832 | fail: | |
31833 | { | |
31834 | if (temp1) | |
31835 | delete arg1; | |
31836 | } | |
31837 | return NULL; | |
31838 | } | |
31839 | ||
31840 | ||
31841 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31842 | PyObject *resultobj; | |
31843 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31844 | int result; | |
31845 | PyObject * obj0 = 0 ; | |
31846 | char *kwnames[] = { | |
31847 | (char *) "self", NULL | |
31848 | }; | |
31849 | ||
31850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31853 | { |
31854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31855 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
31856 | ||
31857 | wxPyEndAllowThreads(__tstate); | |
31858 | if (PyErr_Occurred()) SWIG_fail; | |
31859 | } | |
15afbcd0 | 31860 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31861 | return resultobj; |
31862 | fail: | |
31863 | return NULL; | |
31864 | } | |
31865 | ||
31866 | ||
31867 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31868 | PyObject *resultobj; | |
31869 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31870 | bool arg2 ; | |
31871 | PyObject * obj0 = 0 ; | |
31872 | PyObject * obj1 = 0 ; | |
31873 | char *kwnames[] = { | |
31874 | (char *) "self",(char *) "checkable", NULL | |
31875 | }; | |
31876 | ||
31877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31880 | arg2 = (bool) SWIG_AsBool(obj1); | |
31881 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31882 | { |
31883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31884 | (arg1)->SetCheckable(arg2); | |
31885 | ||
31886 | wxPyEndAllowThreads(__tstate); | |
31887 | if (PyErr_Occurred()) SWIG_fail; | |
31888 | } | |
31889 | Py_INCREF(Py_None); resultobj = Py_None; | |
31890 | return resultobj; | |
31891 | fail: | |
31892 | return NULL; | |
31893 | } | |
31894 | ||
31895 | ||
31896 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31897 | PyObject *resultobj; | |
31898 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31899 | bool result; | |
31900 | PyObject * obj0 = 0 ; | |
31901 | char *kwnames[] = { | |
31902 | (char *) "self", NULL | |
31903 | }; | |
31904 | ||
31905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31908 | { |
31909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31910 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
31911 | ||
31912 | wxPyEndAllowThreads(__tstate); | |
31913 | if (PyErr_Occurred()) SWIG_fail; | |
31914 | } | |
4f89f6a3 RD |
31915 | { |
31916 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31917 | } | |
d14a1e28 RD |
31918 | return resultobj; |
31919 | fail: | |
31920 | return NULL; | |
31921 | } | |
31922 | ||
31923 | ||
31924 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31925 | PyObject *resultobj; | |
31926 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31927 | bool result; | |
31928 | PyObject * obj0 = 0 ; | |
31929 | char *kwnames[] = { | |
31930 | (char *) "self", NULL | |
31931 | }; | |
31932 | ||
31933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31936 | { |
31937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31938 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
31939 | ||
31940 | wxPyEndAllowThreads(__tstate); | |
31941 | if (PyErr_Occurred()) SWIG_fail; | |
31942 | } | |
4f89f6a3 RD |
31943 | { |
31944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31945 | } | |
d14a1e28 RD |
31946 | return resultobj; |
31947 | fail: | |
31948 | return NULL; | |
31949 | } | |
31950 | ||
31951 | ||
31952 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31953 | PyObject *resultobj; | |
31954 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31955 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31956 | PyObject * obj0 = 0 ; | |
31957 | PyObject * obj1 = 0 ; | |
31958 | char *kwnames[] = { | |
31959 | (char *) "self",(char *) "menu", NULL | |
31960 | }; | |
31961 | ||
31962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31967 | { |
31968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31969 | (arg1)->SetSubMenu(arg2); | |
31970 | ||
31971 | wxPyEndAllowThreads(__tstate); | |
31972 | if (PyErr_Occurred()) SWIG_fail; | |
31973 | } | |
31974 | Py_INCREF(Py_None); resultobj = Py_None; | |
31975 | return resultobj; | |
31976 | fail: | |
31977 | return NULL; | |
31978 | } | |
31979 | ||
31980 | ||
31981 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31982 | PyObject *resultobj; | |
31983 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31984 | wxMenu *result; | |
31985 | PyObject * obj0 = 0 ; | |
31986 | char *kwnames[] = { | |
31987 | (char *) "self", NULL | |
31988 | }; | |
31989 | ||
31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31993 | { |
31994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31995 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
31996 | ||
31997 | wxPyEndAllowThreads(__tstate); | |
31998 | if (PyErr_Occurred()) SWIG_fail; | |
31999 | } | |
32000 | { | |
32001 | resultobj = wxPyMake_wxObject(result); | |
32002 | } | |
32003 | return resultobj; | |
32004 | fail: | |
32005 | return NULL; | |
32006 | } | |
32007 | ||
32008 | ||
32009 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32010 | PyObject *resultobj; | |
32011 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32012 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32013 | PyObject * obj0 = 0 ; |
32014 | PyObject * obj1 = 0 ; | |
32015 | char *kwnames[] = { | |
32016 | (char *) "self",(char *) "enable", NULL | |
32017 | }; | |
32018 | ||
32019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32022 | if (obj1) { |
15afbcd0 RD |
32023 | arg2 = (bool) SWIG_AsBool(obj1); |
32024 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32025 | } |
32026 | { | |
32027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32028 | (arg1)->Enable(arg2); | |
32029 | ||
32030 | wxPyEndAllowThreads(__tstate); | |
32031 | if (PyErr_Occurred()) SWIG_fail; | |
32032 | } | |
32033 | Py_INCREF(Py_None); resultobj = Py_None; | |
32034 | return resultobj; | |
32035 | fail: | |
32036 | return NULL; | |
32037 | } | |
32038 | ||
32039 | ||
32040 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32041 | PyObject *resultobj; | |
32042 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32043 | bool result; | |
32044 | PyObject * obj0 = 0 ; | |
32045 | char *kwnames[] = { | |
32046 | (char *) "self", NULL | |
32047 | }; | |
32048 | ||
32049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32052 | { |
32053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32054 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32055 | ||
32056 | wxPyEndAllowThreads(__tstate); | |
32057 | if (PyErr_Occurred()) SWIG_fail; | |
32058 | } | |
4f89f6a3 RD |
32059 | { |
32060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32061 | } | |
d14a1e28 RD |
32062 | return resultobj; |
32063 | fail: | |
32064 | return NULL; | |
32065 | } | |
32066 | ||
32067 | ||
32068 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32069 | PyObject *resultobj; | |
32070 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32071 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32072 | PyObject * obj0 = 0 ; |
32073 | PyObject * obj1 = 0 ; | |
32074 | char *kwnames[] = { | |
32075 | (char *) "self",(char *) "check", NULL | |
32076 | }; | |
32077 | ||
32078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32081 | if (obj1) { |
15afbcd0 RD |
32082 | arg2 = (bool) SWIG_AsBool(obj1); |
32083 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32084 | } |
32085 | { | |
32086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32087 | (arg1)->Check(arg2); | |
32088 | ||
32089 | wxPyEndAllowThreads(__tstate); | |
32090 | if (PyErr_Occurred()) SWIG_fail; | |
32091 | } | |
32092 | Py_INCREF(Py_None); resultobj = Py_None; | |
32093 | return resultobj; | |
32094 | fail: | |
32095 | return NULL; | |
32096 | } | |
32097 | ||
32098 | ||
32099 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32100 | PyObject *resultobj; | |
32101 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32102 | bool result; | |
32103 | PyObject * obj0 = 0 ; | |
32104 | char *kwnames[] = { | |
32105 | (char *) "self", NULL | |
32106 | }; | |
32107 | ||
32108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32111 | { |
32112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32113 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32114 | ||
32115 | wxPyEndAllowThreads(__tstate); | |
32116 | if (PyErr_Occurred()) SWIG_fail; | |
32117 | } | |
4f89f6a3 RD |
32118 | { |
32119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32120 | } | |
d14a1e28 RD |
32121 | return resultobj; |
32122 | fail: | |
32123 | return NULL; | |
32124 | } | |
32125 | ||
32126 | ||
32127 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32128 | PyObject *resultobj; | |
32129 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32130 | PyObject * obj0 = 0 ; | |
32131 | char *kwnames[] = { | |
32132 | (char *) "self", NULL | |
32133 | }; | |
32134 | ||
32135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32138 | { |
32139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32140 | (arg1)->Toggle(); | |
32141 | ||
32142 | wxPyEndAllowThreads(__tstate); | |
32143 | if (PyErr_Occurred()) SWIG_fail; | |
32144 | } | |
32145 | Py_INCREF(Py_None); resultobj = Py_None; | |
32146 | return resultobj; | |
32147 | fail: | |
32148 | return NULL; | |
32149 | } | |
32150 | ||
32151 | ||
32152 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32153 | PyObject *resultobj; | |
32154 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32155 | wxString *arg2 = 0 ; | |
e811c8ce | 32156 | bool temp2 = False ; |
d14a1e28 RD |
32157 | PyObject * obj0 = 0 ; |
32158 | PyObject * obj1 = 0 ; | |
32159 | char *kwnames[] = { | |
32160 | (char *) "self",(char *) "str", NULL | |
32161 | }; | |
32162 | ||
32163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32166 | { |
32167 | arg2 = wxString_in_helper(obj1); | |
32168 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32169 | temp2 = True; |
d14a1e28 RD |
32170 | } |
32171 | { | |
32172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32173 | (arg1)->SetHelp((wxString const &)*arg2); | |
32174 | ||
32175 | wxPyEndAllowThreads(__tstate); | |
32176 | if (PyErr_Occurred()) SWIG_fail; | |
32177 | } | |
32178 | Py_INCREF(Py_None); resultobj = Py_None; | |
32179 | { | |
32180 | if (temp2) | |
32181 | delete arg2; | |
32182 | } | |
32183 | return resultobj; | |
32184 | fail: | |
32185 | { | |
32186 | if (temp2) | |
32187 | delete arg2; | |
32188 | } | |
32189 | return NULL; | |
32190 | } | |
32191 | ||
32192 | ||
32193 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32194 | PyObject *resultobj; | |
32195 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32196 | wxString *result; | |
32197 | PyObject * obj0 = 0 ; | |
32198 | char *kwnames[] = { | |
32199 | (char *) "self", NULL | |
32200 | }; | |
32201 | ||
32202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",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 | { | |
32208 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32209 | result = (wxString *) &_result_ref; | |
32210 | } | |
32211 | ||
32212 | wxPyEndAllowThreads(__tstate); | |
32213 | if (PyErr_Occurred()) SWIG_fail; | |
32214 | } | |
cc6dd355 RD |
32215 | { |
32216 | #if wxUSE_UNICODE | |
32217 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32218 | #else | |
32219 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32220 | #endif | |
32221 | } | |
d14a1e28 RD |
32222 | return resultobj; |
32223 | fail: | |
32224 | return NULL; | |
32225 | } | |
32226 | ||
32227 | ||
32228 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32229 | PyObject *resultobj; | |
32230 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32231 | wxAcceleratorEntry *result; | |
32232 | PyObject * obj0 = 0 ; | |
32233 | char *kwnames[] = { | |
32234 | (char *) "self", NULL | |
32235 | }; | |
32236 | ||
32237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32240 | { |
32241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32242 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32243 | ||
32244 | wxPyEndAllowThreads(__tstate); | |
32245 | if (PyErr_Occurred()) SWIG_fail; | |
32246 | } | |
15afbcd0 | 32247 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
32248 | return resultobj; |
32249 | fail: | |
32250 | return NULL; | |
32251 | } | |
32252 | ||
32253 | ||
32254 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32255 | PyObject *resultobj; | |
32256 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32257 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32258 | PyObject * obj0 = 0 ; | |
32259 | PyObject * obj1 = 0 ; | |
32260 | char *kwnames[] = { | |
32261 | (char *) "self",(char *) "accel", NULL | |
32262 | }; | |
32263 | ||
32264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32267 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32269 | { |
32270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32271 | (arg1)->SetAccel(arg2); | |
32272 | ||
32273 | wxPyEndAllowThreads(__tstate); | |
32274 | if (PyErr_Occurred()) SWIG_fail; | |
32275 | } | |
32276 | Py_INCREF(Py_None); resultobj = Py_None; | |
32277 | return resultobj; | |
32278 | fail: | |
32279 | return NULL; | |
32280 | } | |
32281 | ||
32282 | ||
32283 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32284 | PyObject *resultobj; | |
32285 | int result; | |
32286 | char *kwnames[] = { | |
32287 | NULL | |
32288 | }; | |
32289 | ||
32290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32291 | { | |
32292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32293 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
32294 | ||
32295 | wxPyEndAllowThreads(__tstate); | |
32296 | if (PyErr_Occurred()) SWIG_fail; | |
32297 | } | |
15afbcd0 | 32298 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32299 | return resultobj; |
32300 | fail: | |
32301 | return NULL; | |
32302 | } | |
32303 | ||
32304 | ||
32305 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32306 | PyObject *resultobj; | |
32307 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32308 | wxBitmap *arg2 = 0 ; | |
32309 | PyObject * obj0 = 0 ; | |
32310 | PyObject * obj1 = 0 ; | |
32311 | char *kwnames[] = { | |
32312 | (char *) "self",(char *) "bitmap", NULL | |
32313 | }; | |
32314 | ||
32315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32320 | SWIG_fail; | |
d14a1e28 | 32321 | if (arg2 == NULL) { |
15afbcd0 RD |
32322 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32323 | SWIG_fail; | |
d14a1e28 RD |
32324 | } |
32325 | { | |
32326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32327 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32328 | ||
32329 | wxPyEndAllowThreads(__tstate); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
32331 | } | |
32332 | Py_INCREF(Py_None); resultobj = Py_None; | |
32333 | return resultobj; | |
32334 | fail: | |
32335 | return NULL; | |
32336 | } | |
32337 | ||
32338 | ||
32339 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32340 | PyObject *resultobj; | |
32341 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32342 | wxBitmap *result; | |
32343 | PyObject * obj0 = 0 ; | |
32344 | char *kwnames[] = { | |
32345 | (char *) "self", NULL | |
32346 | }; | |
32347 | ||
32348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32351 | { |
32352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32353 | { | |
32354 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32355 | result = (wxBitmap *) &_result_ref; | |
32356 | } | |
32357 | ||
32358 | wxPyEndAllowThreads(__tstate); | |
32359 | if (PyErr_Occurred()) SWIG_fail; | |
32360 | } | |
4276dc52 RD |
32361 | { |
32362 | wxBitmap* resultptr = new wxBitmap(*result); | |
32363 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32364 | } | |
d14a1e28 RD |
32365 | return resultobj; |
32366 | fail: | |
32367 | return NULL; | |
32368 | } | |
32369 | ||
32370 | ||
32371 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32372 | PyObject *obj; | |
32373 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32374 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32375 | Py_INCREF(obj); | |
32376 | return Py_BuildValue((char *)""); | |
32377 | } | |
b2dc1044 RD |
32378 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
32379 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
32380 | return 1; | |
32381 | } | |
32382 | ||
32383 | ||
32384 | static PyObject *_wrap_ControlNameStr_get() { | |
32385 | PyObject *pyobj; | |
32386 | ||
32387 | { | |
32388 | #if wxUSE_UNICODE | |
32389 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32390 | #else | |
32391 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32392 | #endif | |
32393 | } | |
32394 | return pyobj; | |
32395 | } | |
32396 | ||
32397 | ||
d14a1e28 RD |
32398 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32399 | PyObject *resultobj; | |
32400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 32401 | int arg2 ; |
d14a1e28 RD |
32402 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32403 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32404 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32405 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32406 | long arg5 = (long) 0 ; | |
32407 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32408 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32409 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32410 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32411 | wxControl *result; | |
32412 | wxPoint temp3 ; | |
32413 | wxSize temp4 ; | |
e811c8ce | 32414 | bool temp7 = False ; |
d14a1e28 | 32415 | PyObject * obj0 = 0 ; |
994141e6 | 32416 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32417 | PyObject * obj2 = 0 ; |
32418 | PyObject * obj3 = 0 ; | |
994141e6 | 32419 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32420 | PyObject * obj5 = 0 ; |
32421 | PyObject * obj6 = 0 ; | |
32422 | char *kwnames[] = { | |
32423 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32424 | }; | |
32425 | ||
994141e6 | 32426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
32427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32429 | arg2 = (int) SWIG_AsInt(obj1); | |
32430 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32431 | if (obj2) { |
32432 | { | |
32433 | arg3 = &temp3; | |
32434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32435 | } | |
32436 | } | |
32437 | if (obj3) { | |
32438 | { | |
32439 | arg4 = &temp4; | |
32440 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32441 | } | |
32442 | } | |
994141e6 | 32443 | if (obj4) { |
15afbcd0 RD |
32444 | arg5 = (long) SWIG_AsLong(obj4); |
32445 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32446 | } |
d14a1e28 | 32447 | if (obj5) { |
15afbcd0 RD |
32448 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32450 | SWIG_fail; | |
d14a1e28 | 32451 | if (arg6 == NULL) { |
15afbcd0 RD |
32452 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32453 | SWIG_fail; | |
d14a1e28 RD |
32454 | } |
32455 | } | |
32456 | if (obj6) { | |
32457 | { | |
32458 | arg7 = wxString_in_helper(obj6); | |
32459 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 32460 | temp7 = True; |
d14a1e28 RD |
32461 | } |
32462 | } | |
32463 | { | |
32464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32465 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32466 | ||
32467 | wxPyEndAllowThreads(__tstate); | |
32468 | if (PyErr_Occurred()) SWIG_fail; | |
32469 | } | |
32470 | { | |
32471 | resultobj = wxPyMake_wxObject(result); | |
32472 | } | |
32473 | { | |
32474 | if (temp7) | |
32475 | delete arg7; | |
32476 | } | |
32477 | return resultobj; | |
32478 | fail: | |
32479 | { | |
32480 | if (temp7) | |
32481 | delete arg7; | |
32482 | } | |
32483 | return NULL; | |
32484 | } | |
32485 | ||
32486 | ||
32487 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32488 | PyObject *resultobj; | |
32489 | wxControl *result; | |
32490 | char *kwnames[] = { | |
32491 | NULL | |
32492 | }; | |
32493 | ||
32494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32495 | { | |
32496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32497 | result = (wxControl *)new wxControl(); | |
32498 | ||
32499 | wxPyEndAllowThreads(__tstate); | |
32500 | if (PyErr_Occurred()) SWIG_fail; | |
32501 | } | |
32502 | { | |
32503 | resultobj = wxPyMake_wxObject(result); | |
32504 | } | |
32505 | return resultobj; | |
32506 | fail: | |
32507 | return NULL; | |
32508 | } | |
32509 | ||
32510 | ||
32511 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32512 | PyObject *resultobj; | |
32513 | wxControl *arg1 = (wxControl *) 0 ; | |
32514 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 32515 | int arg3 ; |
d14a1e28 RD |
32516 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32517 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32518 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32519 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32520 | long arg6 = (long) 0 ; | |
32521 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32522 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32523 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32524 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32525 | bool result; | |
32526 | wxPoint temp4 ; | |
32527 | wxSize temp5 ; | |
e811c8ce | 32528 | bool temp8 = False ; |
d14a1e28 RD |
32529 | PyObject * obj0 = 0 ; |
32530 | PyObject * obj1 = 0 ; | |
994141e6 | 32531 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32532 | PyObject * obj3 = 0 ; |
32533 | PyObject * obj4 = 0 ; | |
994141e6 | 32534 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32535 | PyObject * obj6 = 0 ; |
32536 | PyObject * obj7 = 0 ; | |
32537 | char *kwnames[] = { | |
32538 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32539 | }; | |
32540 | ||
994141e6 | 32541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
32542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32546 | arg3 = (int) SWIG_AsInt(obj2); | |
32547 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32548 | if (obj3) { |
32549 | { | |
32550 | arg4 = &temp4; | |
32551 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32552 | } | |
32553 | } | |
32554 | if (obj4) { | |
32555 | { | |
32556 | arg5 = &temp5; | |
32557 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32558 | } | |
32559 | } | |
994141e6 | 32560 | if (obj5) { |
15afbcd0 RD |
32561 | arg6 = (long) SWIG_AsLong(obj5); |
32562 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32563 | } |
d14a1e28 | 32564 | if (obj6) { |
15afbcd0 RD |
32565 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
32566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32567 | SWIG_fail; | |
d14a1e28 | 32568 | if (arg7 == NULL) { |
15afbcd0 RD |
32569 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32570 | SWIG_fail; | |
d14a1e28 RD |
32571 | } |
32572 | } | |
32573 | if (obj7) { | |
32574 | { | |
32575 | arg8 = wxString_in_helper(obj7); | |
32576 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 32577 | temp8 = True; |
d14a1e28 RD |
32578 | } |
32579 | } | |
32580 | { | |
32581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32582 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32583 | ||
32584 | wxPyEndAllowThreads(__tstate); | |
32585 | if (PyErr_Occurred()) SWIG_fail; | |
32586 | } | |
4f89f6a3 RD |
32587 | { |
32588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32589 | } | |
d14a1e28 RD |
32590 | { |
32591 | if (temp8) | |
32592 | delete arg8; | |
32593 | } | |
32594 | return resultobj; | |
32595 | fail: | |
32596 | { | |
32597 | if (temp8) | |
32598 | delete arg8; | |
32599 | } | |
32600 | return NULL; | |
32601 | } | |
32602 | ||
32603 | ||
32604 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32605 | PyObject *resultobj; | |
32606 | wxControl *arg1 = (wxControl *) 0 ; | |
32607 | wxCommandEvent *arg2 = 0 ; | |
32608 | PyObject * obj0 = 0 ; | |
32609 | PyObject * obj1 = 0 ; | |
32610 | char *kwnames[] = { | |
32611 | (char *) "self",(char *) "event", NULL | |
32612 | }; | |
32613 | ||
32614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32619 | SWIG_fail; | |
d14a1e28 | 32620 | if (arg2 == NULL) { |
15afbcd0 RD |
32621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32622 | SWIG_fail; | |
d14a1e28 RD |
32623 | } |
32624 | { | |
32625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32626 | (arg1)->Command(*arg2); | |
32627 | ||
32628 | wxPyEndAllowThreads(__tstate); | |
32629 | if (PyErr_Occurred()) SWIG_fail; | |
32630 | } | |
32631 | Py_INCREF(Py_None); resultobj = Py_None; | |
32632 | return resultobj; | |
32633 | fail: | |
32634 | return NULL; | |
32635 | } | |
32636 | ||
32637 | ||
32638 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32639 | PyObject *resultobj; | |
32640 | wxControl *arg1 = (wxControl *) 0 ; | |
32641 | wxString result; | |
32642 | PyObject * obj0 = 0 ; | |
32643 | char *kwnames[] = { | |
32644 | (char *) "self", NULL | |
32645 | }; | |
32646 | ||
32647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32650 | { |
32651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32652 | result = (arg1)->GetLabel(); | |
32653 | ||
32654 | wxPyEndAllowThreads(__tstate); | |
32655 | if (PyErr_Occurred()) SWIG_fail; | |
32656 | } | |
32657 | { | |
32658 | #if wxUSE_UNICODE | |
32659 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32660 | #else | |
32661 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32662 | #endif | |
32663 | } | |
32664 | return resultobj; | |
32665 | fail: | |
32666 | return NULL; | |
32667 | } | |
32668 | ||
32669 | ||
32670 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32671 | PyObject *resultobj; | |
32672 | wxControl *arg1 = (wxControl *) 0 ; | |
32673 | wxString *arg2 = 0 ; | |
e811c8ce | 32674 | bool temp2 = False ; |
d14a1e28 RD |
32675 | PyObject * obj0 = 0 ; |
32676 | PyObject * obj1 = 0 ; | |
32677 | char *kwnames[] = { | |
32678 | (char *) "self",(char *) "label", NULL | |
32679 | }; | |
32680 | ||
32681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32684 | { |
32685 | arg2 = wxString_in_helper(obj1); | |
32686 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32687 | temp2 = True; |
d14a1e28 RD |
32688 | } |
32689 | { | |
32690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32691 | (arg1)->SetLabel((wxString const &)*arg2); | |
32692 | ||
32693 | wxPyEndAllowThreads(__tstate); | |
32694 | if (PyErr_Occurred()) SWIG_fail; | |
32695 | } | |
32696 | Py_INCREF(Py_None); resultobj = Py_None; | |
32697 | { | |
32698 | if (temp2) | |
32699 | delete arg2; | |
32700 | } | |
32701 | return resultobj; | |
32702 | fail: | |
32703 | { | |
32704 | if (temp2) | |
32705 | delete arg2; | |
32706 | } | |
32707 | return NULL; | |
32708 | } | |
32709 | ||
32710 | ||
74a57fcd RD |
32711 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
32712 | PyObject *resultobj; | |
32713 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
32714 | wxVisualAttributes result; | |
32715 | PyObject * obj0 = 0 ; | |
32716 | char *kwnames[] = { | |
32717 | (char *) "variant", NULL | |
32718 | }; | |
32719 | ||
32720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
32721 | if (obj0) { | |
32722 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
32723 | if (PyErr_Occurred()) SWIG_fail; | |
32724 | } | |
32725 | { | |
32726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32727 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
32728 | ||
32729 | wxPyEndAllowThreads(__tstate); | |
32730 | if (PyErr_Occurred()) SWIG_fail; | |
32731 | } | |
32732 | { | |
32733 | wxVisualAttributes * resultptr; | |
32734 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
32735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
32736 | } | |
32737 | return resultobj; | |
32738 | fail: | |
32739 | return NULL; | |
32740 | } | |
32741 | ||
32742 | ||
d14a1e28 RD |
32743 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { |
32744 | PyObject *obj; | |
32745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32746 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
32747 | Py_INCREF(obj); | |
32748 | return Py_BuildValue((char *)""); | |
32749 | } | |
32750 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32751 | PyObject *resultobj; | |
32752 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32753 | wxString *arg2 = 0 ; | |
32754 | PyObject *arg3 = (PyObject *) NULL ; | |
32755 | int result; | |
e811c8ce | 32756 | bool temp2 = False ; |
d14a1e28 RD |
32757 | PyObject * obj0 = 0 ; |
32758 | PyObject * obj1 = 0 ; | |
32759 | PyObject * obj2 = 0 ; | |
32760 | char *kwnames[] = { | |
32761 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
32762 | }; | |
32763 | ||
32764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
32765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32767 | { |
32768 | arg2 = wxString_in_helper(obj1); | |
32769 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32770 | temp2 = True; |
d14a1e28 RD |
32771 | } |
32772 | if (obj2) { | |
32773 | arg3 = obj2; | |
32774 | } | |
32775 | { | |
32776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32777 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
32778 | ||
32779 | wxPyEndAllowThreads(__tstate); | |
32780 | if (PyErr_Occurred()) SWIG_fail; | |
32781 | } | |
15afbcd0 | 32782 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32783 | { |
32784 | if (temp2) | |
32785 | delete arg2; | |
32786 | } | |
32787 | return resultobj; | |
32788 | fail: | |
32789 | { | |
32790 | if (temp2) | |
32791 | delete arg2; | |
32792 | } | |
32793 | return NULL; | |
32794 | } | |
32795 | ||
32796 | ||
32797 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32798 | PyObject *resultobj; | |
32799 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32800 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 32801 | bool temp2 = False ; |
d14a1e28 RD |
32802 | PyObject * obj0 = 0 ; |
32803 | PyObject * obj1 = 0 ; | |
32804 | char *kwnames[] = { | |
32805 | (char *) "self",(char *) "strings", NULL | |
32806 | }; | |
32807 | ||
32808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32811 | { |
32812 | if (! PySequence_Check(obj1)) { | |
32813 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
32814 | SWIG_fail; | |
32815 | } | |
32816 | arg2 = new wxArrayString; | |
3adfb63b | 32817 | temp2 = True; |
d14a1e28 RD |
32818 | int i, len=PySequence_Length(obj1); |
32819 | for (i=0; i<len; i++) { | |
32820 | PyObject* item = PySequence_GetItem(obj1, i); | |
32821 | #if wxUSE_UNICODE | |
32822 | PyObject* str = PyObject_Unicode(item); | |
32823 | #else | |
32824 | PyObject* str = PyObject_Str(item); | |
32825 | #endif | |
74a57fcd | 32826 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
32827 | arg2->Add(Py2wxString(str)); |
32828 | Py_DECREF(item); | |
32829 | Py_DECREF(str); | |
32830 | } | |
32831 | } | |
32832 | { | |
32833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32834 | (arg1)->Append((wxArrayString const &)*arg2); | |
32835 | ||
32836 | wxPyEndAllowThreads(__tstate); | |
32837 | if (PyErr_Occurred()) SWIG_fail; | |
32838 | } | |
32839 | Py_INCREF(Py_None); resultobj = Py_None; | |
32840 | { | |
3adfb63b | 32841 | if (temp2) delete arg2; |
d14a1e28 RD |
32842 | } |
32843 | return resultobj; | |
32844 | fail: | |
32845 | { | |
3adfb63b | 32846 | if (temp2) delete arg2; |
d14a1e28 RD |
32847 | } |
32848 | return NULL; | |
32849 | } | |
32850 | ||
32851 | ||
32852 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32853 | PyObject *resultobj; | |
32854 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32855 | wxString *arg2 = 0 ; | |
32856 | int arg3 ; | |
32857 | PyObject *arg4 = (PyObject *) NULL ; | |
32858 | int result; | |
e811c8ce | 32859 | bool temp2 = False ; |
d14a1e28 RD |
32860 | PyObject * obj0 = 0 ; |
32861 | PyObject * obj1 = 0 ; | |
994141e6 | 32862 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32863 | PyObject * obj3 = 0 ; |
32864 | char *kwnames[] = { | |
32865 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
32866 | }; | |
32867 | ||
994141e6 | 32868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
32869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32871 | { |
32872 | arg2 = wxString_in_helper(obj1); | |
32873 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32874 | temp2 = True; |
d14a1e28 | 32875 | } |
15afbcd0 RD |
32876 | arg3 = (int) SWIG_AsInt(obj2); |
32877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32878 | if (obj3) { |
32879 | arg4 = obj3; | |
32880 | } | |
32881 | { | |
32882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32883 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
32884 | ||
32885 | wxPyEndAllowThreads(__tstate); | |
32886 | if (PyErr_Occurred()) SWIG_fail; | |
32887 | } | |
15afbcd0 | 32888 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32889 | { |
32890 | if (temp2) | |
32891 | delete arg2; | |
32892 | } | |
32893 | return resultobj; | |
32894 | fail: | |
32895 | { | |
32896 | if (temp2) | |
32897 | delete arg2; | |
32898 | } | |
32899 | return NULL; | |
32900 | } | |
32901 | ||
32902 | ||
32903 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32904 | PyObject *resultobj; | |
32905 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32906 | PyObject * obj0 = 0 ; | |
32907 | char *kwnames[] = { | |
32908 | (char *) "self", NULL | |
32909 | }; | |
32910 | ||
32911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32914 | { |
32915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32916 | (arg1)->Clear(); | |
32917 | ||
32918 | wxPyEndAllowThreads(__tstate); | |
32919 | if (PyErr_Occurred()) SWIG_fail; | |
32920 | } | |
32921 | Py_INCREF(Py_None); resultobj = Py_None; | |
32922 | return resultobj; | |
32923 | fail: | |
32924 | return NULL; | |
32925 | } | |
32926 | ||
32927 | ||
32928 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32929 | PyObject *resultobj; | |
32930 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32931 | int arg2 ; | |
32932 | PyObject * obj0 = 0 ; | |
994141e6 | 32933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32934 | char *kwnames[] = { |
32935 | (char *) "self",(char *) "n", NULL | |
32936 | }; | |
32937 | ||
994141e6 | 32938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32941 | arg2 = (int) SWIG_AsInt(obj1); | |
32942 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32943 | { |
32944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32945 | (arg1)->Delete(arg2); | |
32946 | ||
32947 | wxPyEndAllowThreads(__tstate); | |
32948 | if (PyErr_Occurred()) SWIG_fail; | |
32949 | } | |
32950 | Py_INCREF(Py_None); resultobj = Py_None; | |
32951 | return resultobj; | |
32952 | fail: | |
32953 | return NULL; | |
32954 | } | |
32955 | ||
32956 | ||
32957 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32958 | PyObject *resultobj; | |
32959 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32960 | int result; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | char *kwnames[] = { | |
32963 | (char *) "self", NULL | |
32964 | }; | |
32965 | ||
32966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32969 | { |
32970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32971 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
32972 | ||
32973 | wxPyEndAllowThreads(__tstate); | |
32974 | if (PyErr_Occurred()) SWIG_fail; | |
32975 | } | |
15afbcd0 | 32976 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32977 | return resultobj; |
32978 | fail: | |
32979 | return NULL; | |
32980 | } | |
32981 | ||
32982 | ||
32983 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32984 | PyObject *resultobj; | |
32985 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
32986 | bool result; | |
32987 | PyObject * obj0 = 0 ; | |
32988 | char *kwnames[] = { | |
32989 | (char *) "self", NULL | |
32990 | }; | |
32991 | ||
32992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
32994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32995 | { |
32996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32997 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
32998 | ||
32999 | wxPyEndAllowThreads(__tstate); | |
33000 | if (PyErr_Occurred()) SWIG_fail; | |
33001 | } | |
4f89f6a3 RD |
33002 | { |
33003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33004 | } | |
d14a1e28 RD |
33005 | return resultobj; |
33006 | fail: | |
33007 | return NULL; | |
33008 | } | |
33009 | ||
33010 | ||
33011 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33012 | PyObject *resultobj; | |
33013 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33014 | int arg2 ; | |
33015 | wxString result; | |
33016 | PyObject * obj0 = 0 ; | |
994141e6 | 33017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33018 | char *kwnames[] = { |
33019 | (char *) "self",(char *) "n", NULL | |
33020 | }; | |
33021 | ||
994141e6 | 33022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33025 | arg2 = (int) SWIG_AsInt(obj1); | |
33026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33027 | { |
33028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33029 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33030 | ||
33031 | wxPyEndAllowThreads(__tstate); | |
33032 | if (PyErr_Occurred()) SWIG_fail; | |
33033 | } | |
33034 | { | |
33035 | #if wxUSE_UNICODE | |
33036 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33037 | #else | |
33038 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33039 | #endif | |
33040 | } | |
33041 | return resultobj; | |
33042 | fail: | |
33043 | return NULL; | |
33044 | } | |
33045 | ||
33046 | ||
33047 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33048 | PyObject *resultobj; | |
33049 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33050 | wxArrayString result; | |
33051 | PyObject * obj0 = 0 ; | |
33052 | char *kwnames[] = { | |
33053 | (char *) "self", NULL | |
33054 | }; | |
33055 | ||
33056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33059 | { |
33060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33061 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33062 | ||
33063 | wxPyEndAllowThreads(__tstate); | |
33064 | if (PyErr_Occurred()) SWIG_fail; | |
33065 | } | |
33066 | { | |
33067 | resultobj = wxArrayString2PyList_helper(result); | |
33068 | } | |
33069 | return resultobj; | |
33070 | fail: | |
33071 | return NULL; | |
33072 | } | |
33073 | ||
33074 | ||
33075 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33076 | PyObject *resultobj; | |
33077 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33078 | int arg2 ; | |
33079 | wxString *arg3 = 0 ; | |
e811c8ce | 33080 | bool temp3 = False ; |
d14a1e28 | 33081 | PyObject * obj0 = 0 ; |
994141e6 | 33082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33083 | PyObject * obj2 = 0 ; |
33084 | char *kwnames[] = { | |
33085 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33086 | }; | |
33087 | ||
994141e6 | 33088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33091 | arg2 = (int) SWIG_AsInt(obj1); | |
33092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33093 | { |
33094 | arg3 = wxString_in_helper(obj2); | |
33095 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 33096 | temp3 = True; |
d14a1e28 RD |
33097 | } |
33098 | { | |
33099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33100 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33101 | ||
33102 | wxPyEndAllowThreads(__tstate); | |
33103 | if (PyErr_Occurred()) SWIG_fail; | |
33104 | } | |
33105 | Py_INCREF(Py_None); resultobj = Py_None; | |
33106 | { | |
33107 | if (temp3) | |
33108 | delete arg3; | |
33109 | } | |
33110 | return resultobj; | |
33111 | fail: | |
33112 | { | |
33113 | if (temp3) | |
33114 | delete arg3; | |
33115 | } | |
33116 | return NULL; | |
33117 | } | |
33118 | ||
33119 | ||
33120 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33121 | PyObject *resultobj; | |
33122 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33123 | wxString *arg2 = 0 ; | |
33124 | int result; | |
e811c8ce | 33125 | bool temp2 = False ; |
d14a1e28 RD |
33126 | PyObject * obj0 = 0 ; |
33127 | PyObject * obj1 = 0 ; | |
33128 | char *kwnames[] = { | |
33129 | (char *) "self",(char *) "s", NULL | |
33130 | }; | |
33131 | ||
33132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33135 | { |
33136 | arg2 = wxString_in_helper(obj1); | |
33137 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33138 | temp2 = True; |
d14a1e28 RD |
33139 | } |
33140 | { | |
33141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33142 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33143 | ||
33144 | wxPyEndAllowThreads(__tstate); | |
33145 | if (PyErr_Occurred()) SWIG_fail; | |
33146 | } | |
15afbcd0 | 33147 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33148 | { |
33149 | if (temp2) | |
33150 | delete arg2; | |
33151 | } | |
33152 | return resultobj; | |
33153 | fail: | |
33154 | { | |
33155 | if (temp2) | |
33156 | delete arg2; | |
33157 | } | |
33158 | return NULL; | |
33159 | } | |
33160 | ||
33161 | ||
33162 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33163 | PyObject *resultobj; | |
33164 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33165 | int arg2 ; | |
33166 | PyObject * obj0 = 0 ; | |
994141e6 | 33167 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33168 | char *kwnames[] = { |
33169 | (char *) "self",(char *) "n", NULL | |
33170 | }; | |
33171 | ||
994141e6 | 33172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33175 | arg2 = (int) SWIG_AsInt(obj1); | |
33176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33177 | { |
33178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33179 | (arg1)->Select(arg2); | |
33180 | ||
33181 | wxPyEndAllowThreads(__tstate); | |
33182 | if (PyErr_Occurred()) SWIG_fail; | |
33183 | } | |
33184 | Py_INCREF(Py_None); resultobj = Py_None; | |
33185 | return resultobj; | |
33186 | fail: | |
33187 | return NULL; | |
33188 | } | |
33189 | ||
33190 | ||
33191 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33192 | PyObject *resultobj; | |
33193 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33194 | int result; | |
33195 | PyObject * obj0 = 0 ; | |
33196 | char *kwnames[] = { | |
33197 | (char *) "self", NULL | |
33198 | }; | |
33199 | ||
33200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33203 | { |
33204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33205 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33206 | ||
33207 | wxPyEndAllowThreads(__tstate); | |
33208 | if (PyErr_Occurred()) SWIG_fail; | |
33209 | } | |
15afbcd0 | 33210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33211 | return resultobj; |
33212 | fail: | |
33213 | return NULL; | |
33214 | } | |
33215 | ||
33216 | ||
33217 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33218 | PyObject *resultobj; | |
33219 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33220 | wxString result; | |
33221 | PyObject * obj0 = 0 ; | |
33222 | char *kwnames[] = { | |
33223 | (char *) "self", NULL | |
33224 | }; | |
33225 | ||
33226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33229 | { |
33230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33231 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33232 | ||
33233 | wxPyEndAllowThreads(__tstate); | |
33234 | if (PyErr_Occurred()) SWIG_fail; | |
33235 | } | |
33236 | { | |
33237 | #if wxUSE_UNICODE | |
33238 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33239 | #else | |
33240 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33241 | #endif | |
33242 | } | |
33243 | return resultobj; | |
33244 | fail: | |
33245 | return NULL; | |
33246 | } | |
33247 | ||
33248 | ||
33249 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33250 | PyObject *resultobj; | |
33251 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33252 | int arg2 ; | |
33253 | PyObject *result; | |
33254 | PyObject * obj0 = 0 ; | |
994141e6 | 33255 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33256 | char *kwnames[] = { |
33257 | (char *) "self",(char *) "n", NULL | |
33258 | }; | |
33259 | ||
994141e6 | 33260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33263 | arg2 = (int) SWIG_AsInt(obj1); | |
33264 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33265 | { |
33266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33267 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33268 | ||
33269 | wxPyEndAllowThreads(__tstate); | |
33270 | if (PyErr_Occurred()) SWIG_fail; | |
33271 | } | |
33272 | resultobj = result; | |
33273 | return resultobj; | |
33274 | fail: | |
33275 | return NULL; | |
33276 | } | |
33277 | ||
33278 | ||
33279 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33280 | PyObject *resultobj; | |
33281 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33282 | int arg2 ; | |
33283 | PyObject *arg3 = (PyObject *) 0 ; | |
33284 | PyObject * obj0 = 0 ; | |
994141e6 | 33285 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33286 | PyObject * obj2 = 0 ; |
33287 | char *kwnames[] = { | |
33288 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33289 | }; | |
33290 | ||
994141e6 | 33291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33294 | arg2 = (int) SWIG_AsInt(obj1); | |
33295 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33296 | arg3 = obj2; |
33297 | { | |
33298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33299 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33300 | ||
33301 | wxPyEndAllowThreads(__tstate); | |
33302 | if (PyErr_Occurred()) SWIG_fail; | |
33303 | } | |
33304 | Py_INCREF(Py_None); resultobj = Py_None; | |
33305 | return resultobj; | |
33306 | fail: | |
33307 | return NULL; | |
33308 | } | |
33309 | ||
33310 | ||
33311 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33312 | PyObject *obj; | |
33313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33314 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33315 | Py_INCREF(obj); | |
33316 | return Py_BuildValue((char *)""); | |
33317 | } | |
33318 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33319 | PyObject *obj; | |
33320 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33321 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33322 | Py_INCREF(obj); | |
33323 | return Py_BuildValue((char *)""); | |
33324 | } | |
33325 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33326 | PyObject *resultobj; | |
33327 | wxSizerItem *result; | |
33328 | char *kwnames[] = { | |
33329 | NULL | |
33330 | }; | |
33331 | ||
33332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33333 | { | |
33334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33335 | result = (wxSizerItem *)new wxSizerItem(); | |
33336 | ||
33337 | wxPyEndAllowThreads(__tstate); | |
33338 | if (PyErr_Occurred()) SWIG_fail; | |
33339 | } | |
15afbcd0 | 33340 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33341 | return resultobj; |
33342 | fail: | |
33343 | return NULL; | |
33344 | } | |
33345 | ||
33346 | ||
33347 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33348 | PyObject *resultobj; | |
33349 | int arg1 ; | |
33350 | int arg2 ; | |
33351 | int arg3 ; | |
33352 | int arg4 ; | |
33353 | int arg5 ; | |
33354 | wxObject *arg6 = (wxObject *) 0 ; | |
33355 | wxSizerItem *result; | |
994141e6 RD |
33356 | PyObject * obj0 = 0 ; |
33357 | PyObject * obj1 = 0 ; | |
33358 | PyObject * obj2 = 0 ; | |
33359 | PyObject * obj3 = 0 ; | |
33360 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33361 | PyObject * obj5 = 0 ; |
33362 | char *kwnames[] = { | |
33363 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33364 | }; | |
33365 | ||
994141e6 | 33366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
33367 | arg1 = (int) SWIG_AsInt(obj0); |
33368 | if (PyErr_Occurred()) SWIG_fail; | |
33369 | arg2 = (int) SWIG_AsInt(obj1); | |
33370 | if (PyErr_Occurred()) SWIG_fail; | |
33371 | arg3 = (int) SWIG_AsInt(obj2); | |
33372 | if (PyErr_Occurred()) SWIG_fail; | |
33373 | arg4 = (int) SWIG_AsInt(obj3); | |
33374 | if (PyErr_Occurred()) SWIG_fail; | |
33375 | arg5 = (int) SWIG_AsInt(obj4); | |
33376 | if (PyErr_Occurred()) SWIG_fail; | |
33377 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
33378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33379 | { |
33380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33381 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
33382 | ||
33383 | wxPyEndAllowThreads(__tstate); | |
33384 | if (PyErr_Occurred()) SWIG_fail; | |
33385 | } | |
15afbcd0 | 33386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33387 | return resultobj; |
33388 | fail: | |
33389 | return NULL; | |
33390 | } | |
33391 | ||
33392 | ||
33393 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33394 | PyObject *resultobj; | |
33395 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33396 | int arg2 ; | |
33397 | int arg3 ; | |
33398 | int arg4 ; | |
33399 | wxObject *arg5 = (wxObject *) 0 ; | |
33400 | wxSizerItem *result; | |
33401 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33402 | PyObject * obj1 = 0 ; |
33403 | PyObject * obj2 = 0 ; | |
33404 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33405 | PyObject * obj4 = 0 ; |
33406 | char *kwnames[] = { | |
33407 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33408 | }; | |
33409 | ||
994141e6 | 33410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33413 | arg2 = (int) SWIG_AsInt(obj1); | |
33414 | if (PyErr_Occurred()) SWIG_fail; | |
33415 | arg3 = (int) SWIG_AsInt(obj2); | |
33416 | if (PyErr_Occurred()) SWIG_fail; | |
33417 | arg4 = (int) SWIG_AsInt(obj3); | |
33418 | if (PyErr_Occurred()) SWIG_fail; | |
33419 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33421 | { |
33422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33423 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33424 | ||
33425 | wxPyEndAllowThreads(__tstate); | |
33426 | if (PyErr_Occurred()) SWIG_fail; | |
33427 | } | |
15afbcd0 | 33428 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33429 | return resultobj; |
33430 | fail: | |
33431 | return NULL; | |
33432 | } | |
33433 | ||
33434 | ||
33435 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33436 | PyObject *resultobj; | |
33437 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33438 | int arg2 ; | |
33439 | int arg3 ; | |
33440 | int arg4 ; | |
33441 | wxObject *arg5 = (wxObject *) 0 ; | |
33442 | wxSizerItem *result; | |
33443 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33444 | PyObject * obj1 = 0 ; |
33445 | PyObject * obj2 = 0 ; | |
33446 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33447 | PyObject * obj4 = 0 ; |
33448 | char *kwnames[] = { | |
33449 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33450 | }; | |
33451 | ||
994141e6 | 33452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33455 | arg2 = (int) SWIG_AsInt(obj1); | |
33456 | if (PyErr_Occurred()) SWIG_fail; | |
33457 | arg3 = (int) SWIG_AsInt(obj2); | |
33458 | if (PyErr_Occurred()) SWIG_fail; | |
33459 | arg4 = (int) SWIG_AsInt(obj3); | |
33460 | if (PyErr_Occurred()) SWIG_fail; | |
33461 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33463 | { |
33464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33465 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33466 | ||
33467 | wxPyEndAllowThreads(__tstate); | |
33468 | if (PyErr_Occurred()) SWIG_fail; | |
33469 | } | |
15afbcd0 | 33470 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33471 | return resultobj; |
33472 | fail: | |
33473 | return NULL; | |
33474 | } | |
33475 | ||
33476 | ||
33477 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33478 | PyObject *resultobj; | |
33479 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33480 | PyObject * obj0 = 0 ; | |
33481 | char *kwnames[] = { | |
33482 | (char *) "self", NULL | |
33483 | }; | |
33484 | ||
33485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33488 | { |
33489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33490 | (arg1)->DeleteWindows(); | |
33491 | ||
33492 | wxPyEndAllowThreads(__tstate); | |
33493 | if (PyErr_Occurred()) SWIG_fail; | |
33494 | } | |
33495 | Py_INCREF(Py_None); resultobj = Py_None; | |
33496 | return resultobj; | |
33497 | fail: | |
33498 | return NULL; | |
33499 | } | |
33500 | ||
33501 | ||
33502 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33503 | PyObject *resultobj; | |
33504 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33505 | PyObject * obj0 = 0 ; | |
33506 | char *kwnames[] = { | |
33507 | (char *) "self", NULL | |
33508 | }; | |
33509 | ||
33510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33513 | { |
33514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33515 | (arg1)->DetachSizer(); | |
33516 | ||
33517 | wxPyEndAllowThreads(__tstate); | |
33518 | if (PyErr_Occurred()) SWIG_fail; | |
33519 | } | |
33520 | Py_INCREF(Py_None); resultobj = Py_None; | |
33521 | return resultobj; | |
33522 | fail: | |
33523 | return NULL; | |
33524 | } | |
33525 | ||
33526 | ||
33527 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33528 | PyObject *resultobj; | |
33529 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33530 | wxSize result; | |
33531 | PyObject * obj0 = 0 ; | |
33532 | char *kwnames[] = { | |
33533 | (char *) "self", NULL | |
33534 | }; | |
33535 | ||
33536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33539 | { |
33540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33541 | result = (arg1)->GetSize(); | |
33542 | ||
33543 | wxPyEndAllowThreads(__tstate); | |
33544 | if (PyErr_Occurred()) SWIG_fail; | |
33545 | } | |
33546 | { | |
33547 | wxSize * resultptr; | |
33548 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33550 | } |
33551 | return resultobj; | |
33552 | fail: | |
33553 | return NULL; | |
33554 | } | |
33555 | ||
33556 | ||
33557 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33558 | PyObject *resultobj; | |
33559 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33560 | wxSize result; | |
33561 | PyObject * obj0 = 0 ; | |
33562 | char *kwnames[] = { | |
33563 | (char *) "self", NULL | |
33564 | }; | |
33565 | ||
33566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33569 | { |
33570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33571 | result = (arg1)->CalcMin(); | |
33572 | ||
33573 | wxPyEndAllowThreads(__tstate); | |
33574 | if (PyErr_Occurred()) SWIG_fail; | |
33575 | } | |
33576 | { | |
33577 | wxSize * resultptr; | |
33578 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33580 | } |
33581 | return resultobj; | |
33582 | fail: | |
33583 | return NULL; | |
33584 | } | |
33585 | ||
33586 | ||
33587 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33588 | PyObject *resultobj; | |
33589 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33590 | wxPoint arg2 ; | |
33591 | wxSize arg3 ; | |
33592 | wxPoint *argp2 ; | |
33593 | wxSize *argp3 ; | |
33594 | PyObject * obj0 = 0 ; | |
33595 | PyObject * obj1 = 0 ; | |
33596 | PyObject * obj2 = 0 ; | |
33597 | char *kwnames[] = { | |
33598 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33599 | }; | |
33600 | ||
33601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
33602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33604 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33605 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33606 | arg2 = *argp2; | |
33607 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33608 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33609 | arg3 = *argp3; | |
d14a1e28 RD |
33610 | { |
33611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33612 | (arg1)->SetDimension(arg2,arg3); | |
33613 | ||
33614 | wxPyEndAllowThreads(__tstate); | |
33615 | if (PyErr_Occurred()) SWIG_fail; | |
33616 | } | |
33617 | Py_INCREF(Py_None); resultobj = Py_None; | |
33618 | return resultobj; | |
33619 | fail: | |
33620 | return NULL; | |
33621 | } | |
33622 | ||
33623 | ||
33624 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33625 | PyObject *resultobj; | |
33626 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33627 | wxSize result; | |
33628 | PyObject * obj0 = 0 ; | |
33629 | char *kwnames[] = { | |
33630 | (char *) "self", NULL | |
33631 | }; | |
33632 | ||
33633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33636 | { |
33637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33638 | result = (arg1)->GetMinSize(); | |
33639 | ||
33640 | wxPyEndAllowThreads(__tstate); | |
33641 | if (PyErr_Occurred()) SWIG_fail; | |
33642 | } | |
33643 | { | |
33644 | wxSize * resultptr; | |
33645 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33646 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33647 | } |
33648 | return resultobj; | |
33649 | fail: | |
33650 | return NULL; | |
33651 | } | |
33652 | ||
33653 | ||
33654 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33655 | PyObject *resultobj; | |
33656 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33657 | int arg2 ; | |
33658 | int arg3 ; | |
33659 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33660 | PyObject * obj1 = 0 ; |
33661 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33662 | char *kwnames[] = { |
33663 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33664 | }; | |
33665 | ||
994141e6 | 33666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33669 | arg2 = (int) SWIG_AsInt(obj1); | |
33670 | if (PyErr_Occurred()) SWIG_fail; | |
33671 | arg3 = (int) SWIG_AsInt(obj2); | |
33672 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33673 | { |
33674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33675 | (arg1)->SetInitSize(arg2,arg3); | |
33676 | ||
33677 | wxPyEndAllowThreads(__tstate); | |
33678 | if (PyErr_Occurred()) SWIG_fail; | |
33679 | } | |
33680 | Py_INCREF(Py_None); resultobj = Py_None; | |
33681 | return resultobj; | |
33682 | fail: | |
33683 | return NULL; | |
33684 | } | |
33685 | ||
33686 | ||
33687 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33688 | PyObject *resultobj; | |
33689 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33690 | int arg2 ; | |
33691 | int arg3 ; | |
33692 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33693 | PyObject * obj1 = 0 ; |
33694 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33695 | char *kwnames[] = { |
33696 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33697 | }; | |
33698 | ||
994141e6 | 33699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33702 | arg2 = (int) SWIG_AsInt(obj1); | |
33703 | if (PyErr_Occurred()) SWIG_fail; | |
33704 | arg3 = (int) SWIG_AsInt(obj2); | |
33705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33706 | { |
33707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33708 | (arg1)->SetRatio(arg2,arg3); | |
33709 | ||
33710 | wxPyEndAllowThreads(__tstate); | |
33711 | if (PyErr_Occurred()) SWIG_fail; | |
33712 | } | |
33713 | Py_INCREF(Py_None); resultobj = Py_None; | |
33714 | return resultobj; | |
33715 | fail: | |
33716 | return NULL; | |
33717 | } | |
33718 | ||
33719 | ||
33720 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33721 | PyObject *resultobj; | |
33722 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33723 | wxSize arg2 ; | |
33724 | wxSize *argp2 ; | |
33725 | PyObject * obj0 = 0 ; | |
33726 | PyObject * obj1 = 0 ; | |
33727 | char *kwnames[] = { | |
33728 | (char *) "self",(char *) "size", NULL | |
33729 | }; | |
33730 | ||
33731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33734 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
33735 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33736 | arg2 = *argp2; | |
d14a1e28 RD |
33737 | { |
33738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33739 | (arg1)->SetRatio(arg2); | |
33740 | ||
33741 | wxPyEndAllowThreads(__tstate); | |
33742 | if (PyErr_Occurred()) SWIG_fail; | |
33743 | } | |
33744 | Py_INCREF(Py_None); resultobj = Py_None; | |
33745 | return resultobj; | |
33746 | fail: | |
33747 | return NULL; | |
33748 | } | |
33749 | ||
33750 | ||
33751 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33752 | PyObject *resultobj; | |
33753 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33754 | float arg2 ; | |
33755 | PyObject * obj0 = 0 ; | |
994141e6 | 33756 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33757 | char *kwnames[] = { |
33758 | (char *) "self",(char *) "ratio", NULL | |
33759 | }; | |
33760 | ||
994141e6 | 33761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33764 | arg2 = (float) SWIG_AsFloat(obj1); | |
33765 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33766 | { |
33767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33768 | (arg1)->SetRatio(arg2); | |
33769 | ||
33770 | wxPyEndAllowThreads(__tstate); | |
33771 | if (PyErr_Occurred()) SWIG_fail; | |
33772 | } | |
33773 | Py_INCREF(Py_None); resultobj = Py_None; | |
33774 | return resultobj; | |
33775 | fail: | |
33776 | return NULL; | |
33777 | } | |
33778 | ||
33779 | ||
33780 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33781 | PyObject *resultobj; | |
33782 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33783 | float result; | |
33784 | PyObject * obj0 = 0 ; | |
33785 | char *kwnames[] = { | |
33786 | (char *) "self", NULL | |
33787 | }; | |
33788 | ||
33789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33792 | { |
33793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33794 | result = (float)(arg1)->GetRatio(); | |
33795 | ||
33796 | wxPyEndAllowThreads(__tstate); | |
33797 | if (PyErr_Occurred()) SWIG_fail; | |
33798 | } | |
15afbcd0 | 33799 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
33800 | return resultobj; |
33801 | fail: | |
33802 | return NULL; | |
33803 | } | |
33804 | ||
33805 | ||
33806 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33807 | PyObject *resultobj; | |
33808 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33809 | bool result; | |
33810 | PyObject * obj0 = 0 ; | |
33811 | char *kwnames[] = { | |
33812 | (char *) "self", NULL | |
33813 | }; | |
33814 | ||
33815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33818 | { |
33819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33820 | result = (bool)(arg1)->IsWindow(); | |
33821 | ||
33822 | wxPyEndAllowThreads(__tstate); | |
33823 | if (PyErr_Occurred()) SWIG_fail; | |
33824 | } | |
4f89f6a3 RD |
33825 | { |
33826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33827 | } | |
d14a1e28 RD |
33828 | return resultobj; |
33829 | fail: | |
33830 | return NULL; | |
33831 | } | |
33832 | ||
33833 | ||
33834 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33835 | PyObject *resultobj; | |
33836 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33837 | bool result; | |
33838 | PyObject * obj0 = 0 ; | |
33839 | char *kwnames[] = { | |
33840 | (char *) "self", NULL | |
33841 | }; | |
33842 | ||
33843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33846 | { |
33847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33848 | result = (bool)(arg1)->IsSizer(); | |
33849 | ||
33850 | wxPyEndAllowThreads(__tstate); | |
33851 | if (PyErr_Occurred()) SWIG_fail; | |
33852 | } | |
4f89f6a3 RD |
33853 | { |
33854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33855 | } | |
d14a1e28 RD |
33856 | return resultobj; |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
33862 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33863 | PyObject *resultobj; | |
33864 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33865 | bool result; | |
33866 | PyObject * obj0 = 0 ; | |
33867 | char *kwnames[] = { | |
33868 | (char *) "self", NULL | |
33869 | }; | |
33870 | ||
33871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33874 | { |
33875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33876 | result = (bool)(arg1)->IsSpacer(); | |
33877 | ||
33878 | wxPyEndAllowThreads(__tstate); | |
33879 | if (PyErr_Occurred()) SWIG_fail; | |
33880 | } | |
4f89f6a3 RD |
33881 | { |
33882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33883 | } | |
d14a1e28 RD |
33884 | return resultobj; |
33885 | fail: | |
33886 | return NULL; | |
33887 | } | |
33888 | ||
33889 | ||
33890 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33891 | PyObject *resultobj; | |
33892 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33893 | int arg2 ; | |
33894 | PyObject * obj0 = 0 ; | |
994141e6 | 33895 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33896 | char *kwnames[] = { |
33897 | (char *) "self",(char *) "proportion", NULL | |
33898 | }; | |
33899 | ||
994141e6 | 33900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33903 | arg2 = (int) SWIG_AsInt(obj1); | |
33904 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33905 | { |
33906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33907 | (arg1)->SetProportion(arg2); | |
33908 | ||
33909 | wxPyEndAllowThreads(__tstate); | |
33910 | if (PyErr_Occurred()) SWIG_fail; | |
33911 | } | |
33912 | Py_INCREF(Py_None); resultobj = Py_None; | |
33913 | return resultobj; | |
33914 | fail: | |
33915 | return NULL; | |
33916 | } | |
33917 | ||
33918 | ||
33919 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33920 | PyObject *resultobj; | |
33921 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33922 | int result; | |
33923 | PyObject * obj0 = 0 ; | |
33924 | char *kwnames[] = { | |
33925 | (char *) "self", NULL | |
33926 | }; | |
33927 | ||
33928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33931 | { |
33932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33933 | result = (int)(arg1)->GetProportion(); | |
33934 | ||
33935 | wxPyEndAllowThreads(__tstate); | |
33936 | if (PyErr_Occurred()) SWIG_fail; | |
33937 | } | |
15afbcd0 | 33938 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33939 | return resultobj; |
33940 | fail: | |
33941 | return NULL; | |
33942 | } | |
33943 | ||
33944 | ||
33945 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33946 | PyObject *resultobj; | |
33947 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33948 | int arg2 ; | |
33949 | PyObject * obj0 = 0 ; | |
994141e6 | 33950 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33951 | char *kwnames[] = { |
33952 | (char *) "self",(char *) "flag", NULL | |
33953 | }; | |
33954 | ||
994141e6 | 33955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33958 | arg2 = (int) SWIG_AsInt(obj1); | |
33959 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33960 | { |
33961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33962 | (arg1)->SetFlag(arg2); | |
33963 | ||
33964 | wxPyEndAllowThreads(__tstate); | |
33965 | if (PyErr_Occurred()) SWIG_fail; | |
33966 | } | |
33967 | Py_INCREF(Py_None); resultobj = Py_None; | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | return NULL; | |
33971 | } | |
33972 | ||
33973 | ||
33974 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33975 | PyObject *resultobj; | |
33976 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33977 | int result; | |
33978 | PyObject * obj0 = 0 ; | |
33979 | char *kwnames[] = { | |
33980 | (char *) "self", NULL | |
33981 | }; | |
33982 | ||
33983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33986 | { |
33987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33988 | result = (int)(arg1)->GetFlag(); | |
33989 | ||
33990 | wxPyEndAllowThreads(__tstate); | |
33991 | if (PyErr_Occurred()) SWIG_fail; | |
33992 | } | |
15afbcd0 | 33993 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33994 | return resultobj; |
33995 | fail: | |
33996 | return NULL; | |
33997 | } | |
33998 | ||
33999 | ||
34000 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34001 | PyObject *resultobj; | |
34002 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34003 | int arg2 ; | |
34004 | PyObject * obj0 = 0 ; | |
994141e6 | 34005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34006 | char *kwnames[] = { |
34007 | (char *) "self",(char *) "border", NULL | |
34008 | }; | |
34009 | ||
994141e6 | 34010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34013 | arg2 = (int) SWIG_AsInt(obj1); | |
34014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34015 | { |
34016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34017 | (arg1)->SetBorder(arg2); | |
34018 | ||
34019 | wxPyEndAllowThreads(__tstate); | |
34020 | if (PyErr_Occurred()) SWIG_fail; | |
34021 | } | |
34022 | Py_INCREF(Py_None); resultobj = Py_None; | |
34023 | return resultobj; | |
34024 | fail: | |
34025 | return NULL; | |
34026 | } | |
34027 | ||
34028 | ||
34029 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34030 | PyObject *resultobj; | |
34031 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34032 | int result; | |
34033 | PyObject * obj0 = 0 ; | |
34034 | char *kwnames[] = { | |
34035 | (char *) "self", NULL | |
34036 | }; | |
34037 | ||
34038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34041 | { |
34042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34043 | result = (int)(arg1)->GetBorder(); | |
34044 | ||
34045 | wxPyEndAllowThreads(__tstate); | |
34046 | if (PyErr_Occurred()) SWIG_fail; | |
34047 | } | |
15afbcd0 | 34048 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34049 | return resultobj; |
34050 | fail: | |
34051 | return NULL; | |
34052 | } | |
34053 | ||
34054 | ||
34055 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34056 | PyObject *resultobj; | |
34057 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34058 | wxWindow *result; | |
34059 | PyObject * obj0 = 0 ; | |
34060 | char *kwnames[] = { | |
34061 | (char *) "self", NULL | |
34062 | }; | |
34063 | ||
34064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34067 | { |
34068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34069 | result = (wxWindow *)(arg1)->GetWindow(); | |
34070 | ||
34071 | wxPyEndAllowThreads(__tstate); | |
34072 | if (PyErr_Occurred()) SWIG_fail; | |
34073 | } | |
34074 | { | |
34075 | resultobj = wxPyMake_wxObject(result); | |
34076 | } | |
34077 | return resultobj; | |
34078 | fail: | |
34079 | return NULL; | |
34080 | } | |
34081 | ||
34082 | ||
34083 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34084 | PyObject *resultobj; | |
34085 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34086 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34087 | PyObject * obj0 = 0 ; | |
34088 | PyObject * obj1 = 0 ; | |
34089 | char *kwnames[] = { | |
34090 | (char *) "self",(char *) "window", NULL | |
34091 | }; | |
34092 | ||
34093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34098 | { |
34099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34100 | (arg1)->SetWindow(arg2); | |
34101 | ||
34102 | wxPyEndAllowThreads(__tstate); | |
34103 | if (PyErr_Occurred()) SWIG_fail; | |
34104 | } | |
34105 | Py_INCREF(Py_None); resultobj = Py_None; | |
34106 | return resultobj; | |
34107 | fail: | |
34108 | return NULL; | |
34109 | } | |
34110 | ||
34111 | ||
34112 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34113 | PyObject *resultobj; | |
34114 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34115 | wxSizer *result; | |
34116 | PyObject * obj0 = 0 ; | |
34117 | char *kwnames[] = { | |
34118 | (char *) "self", NULL | |
34119 | }; | |
34120 | ||
34121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34124 | { |
34125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34126 | result = (wxSizer *)(arg1)->GetSizer(); | |
34127 | ||
34128 | wxPyEndAllowThreads(__tstate); | |
34129 | if (PyErr_Occurred()) SWIG_fail; | |
34130 | } | |
34131 | { | |
34132 | resultobj = wxPyMake_wxSizer(result); | |
34133 | } | |
34134 | return resultobj; | |
34135 | fail: | |
34136 | return NULL; | |
34137 | } | |
34138 | ||
34139 | ||
34140 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34141 | PyObject *resultobj; | |
34142 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34143 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34144 | PyObject * obj0 = 0 ; | |
34145 | PyObject * obj1 = 0 ; | |
34146 | char *kwnames[] = { | |
34147 | (char *) "self",(char *) "sizer", NULL | |
34148 | }; | |
34149 | ||
34150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34155 | { |
34156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34157 | (arg1)->SetSizer(arg2); | |
34158 | ||
34159 | wxPyEndAllowThreads(__tstate); | |
34160 | if (PyErr_Occurred()) SWIG_fail; | |
34161 | } | |
34162 | Py_INCREF(Py_None); resultobj = Py_None; | |
34163 | return resultobj; | |
34164 | fail: | |
34165 | return NULL; | |
34166 | } | |
34167 | ||
34168 | ||
34169 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34170 | PyObject *resultobj; | |
34171 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34172 | wxSize *result; | |
34173 | PyObject * obj0 = 0 ; | |
34174 | char *kwnames[] = { | |
34175 | (char *) "self", NULL | |
34176 | }; | |
34177 | ||
34178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34181 | { |
34182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34183 | { | |
34184 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34185 | result = (wxSize *) &_result_ref; | |
34186 | } | |
34187 | ||
34188 | wxPyEndAllowThreads(__tstate); | |
34189 | if (PyErr_Occurred()) SWIG_fail; | |
34190 | } | |
15afbcd0 | 34191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
34192 | return resultobj; |
34193 | fail: | |
34194 | return NULL; | |
34195 | } | |
34196 | ||
34197 | ||
34198 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34199 | PyObject *resultobj; | |
34200 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34201 | wxSize *arg2 = 0 ; | |
34202 | wxSize temp2 ; | |
34203 | PyObject * obj0 = 0 ; | |
34204 | PyObject * obj1 = 0 ; | |
34205 | char *kwnames[] = { | |
34206 | (char *) "self",(char *) "size", NULL | |
34207 | }; | |
34208 | ||
34209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34212 | { |
34213 | arg2 = &temp2; | |
34214 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34215 | } | |
34216 | { | |
34217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34218 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34219 | ||
34220 | wxPyEndAllowThreads(__tstate); | |
34221 | if (PyErr_Occurred()) SWIG_fail; | |
34222 | } | |
34223 | Py_INCREF(Py_None); resultobj = Py_None; | |
34224 | return resultobj; | |
34225 | fail: | |
34226 | return NULL; | |
34227 | } | |
34228 | ||
34229 | ||
34230 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34231 | PyObject *resultobj; | |
34232 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34233 | bool arg2 ; | |
34234 | PyObject * obj0 = 0 ; | |
34235 | PyObject * obj1 = 0 ; | |
34236 | char *kwnames[] = { | |
34237 | (char *) "self",(char *) "show", NULL | |
34238 | }; | |
34239 | ||
34240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34243 | arg2 = (bool) SWIG_AsBool(obj1); | |
34244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34245 | { |
34246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34247 | (arg1)->Show(arg2); | |
34248 | ||
34249 | wxPyEndAllowThreads(__tstate); | |
34250 | if (PyErr_Occurred()) SWIG_fail; | |
34251 | } | |
34252 | Py_INCREF(Py_None); resultobj = Py_None; | |
34253 | return resultobj; | |
34254 | fail: | |
34255 | return NULL; | |
34256 | } | |
34257 | ||
34258 | ||
34259 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34260 | PyObject *resultobj; | |
34261 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34262 | bool result; | |
34263 | PyObject * obj0 = 0 ; | |
34264 | char *kwnames[] = { | |
34265 | (char *) "self", NULL | |
34266 | }; | |
34267 | ||
34268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34271 | { |
34272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34273 | result = (bool)(arg1)->IsShown(); | |
34274 | ||
34275 | wxPyEndAllowThreads(__tstate); | |
34276 | if (PyErr_Occurred()) SWIG_fail; | |
34277 | } | |
4f89f6a3 RD |
34278 | { |
34279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34280 | } | |
d14a1e28 RD |
34281 | return resultobj; |
34282 | fail: | |
34283 | return NULL; | |
34284 | } | |
34285 | ||
34286 | ||
34287 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34288 | PyObject *resultobj; | |
34289 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34290 | wxPoint result; | |
34291 | PyObject * obj0 = 0 ; | |
34292 | char *kwnames[] = { | |
34293 | (char *) "self", NULL | |
34294 | }; | |
34295 | ||
34296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34299 | { |
34300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34301 | result = (arg1)->GetPosition(); | |
34302 | ||
34303 | wxPyEndAllowThreads(__tstate); | |
34304 | if (PyErr_Occurred()) SWIG_fail; | |
34305 | } | |
34306 | { | |
34307 | wxPoint * resultptr; | |
34308 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 34309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34310 | } |
34311 | return resultobj; | |
34312 | fail: | |
34313 | return NULL; | |
34314 | } | |
34315 | ||
34316 | ||
34317 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34318 | PyObject *resultobj; | |
34319 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34320 | PyObject *result; | |
34321 | PyObject * obj0 = 0 ; | |
34322 | char *kwnames[] = { | |
34323 | (char *) "self", NULL | |
34324 | }; | |
34325 | ||
34326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34329 | { |
34330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34331 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34332 | ||
34333 | wxPyEndAllowThreads(__tstate); | |
34334 | if (PyErr_Occurred()) SWIG_fail; | |
34335 | } | |
34336 | resultobj = result; | |
34337 | return resultobj; | |
34338 | fail: | |
34339 | return NULL; | |
34340 | } | |
34341 | ||
34342 | ||
34343 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34344 | PyObject *obj; | |
34345 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34346 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34347 | Py_INCREF(obj); | |
34348 | return Py_BuildValue((char *)""); | |
34349 | } | |
34350 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34351 | PyObject *resultobj; | |
34352 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34353 | PyObject *arg2 = (PyObject *) 0 ; | |
34354 | PyObject * obj0 = 0 ; | |
34355 | PyObject * obj1 = 0 ; | |
34356 | char *kwnames[] = { | |
34357 | (char *) "self",(char *) "_self", NULL | |
34358 | }; | |
34359 | ||
34360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34363 | arg2 = obj1; |
34364 | { | |
34365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34366 | wxSizer__setOORInfo(arg1,arg2); | |
34367 | ||
34368 | wxPyEndAllowThreads(__tstate); | |
34369 | if (PyErr_Occurred()) SWIG_fail; | |
34370 | } | |
34371 | Py_INCREF(Py_None); resultobj = Py_None; | |
34372 | return resultobj; | |
34373 | fail: | |
34374 | return NULL; | |
34375 | } | |
34376 | ||
34377 | ||
34378 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34379 | PyObject *resultobj; | |
34380 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34381 | PyObject *arg2 = (PyObject *) 0 ; | |
34382 | int arg3 = (int) 0 ; | |
34383 | int arg4 = (int) 0 ; | |
34384 | int arg5 = (int) 0 ; | |
34385 | PyObject *arg6 = (PyObject *) NULL ; | |
34386 | PyObject * obj0 = 0 ; | |
34387 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34388 | PyObject * obj2 = 0 ; |
34389 | PyObject * obj3 = 0 ; | |
34390 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34391 | PyObject * obj5 = 0 ; |
34392 | char *kwnames[] = { | |
34393 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34394 | }; | |
34395 | ||
994141e6 | 34396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34399 | arg2 = obj1; |
994141e6 | 34400 | if (obj2) { |
15afbcd0 RD |
34401 | arg3 = (int) SWIG_AsInt(obj2); |
34402 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34403 | } |
34404 | if (obj3) { | |
15afbcd0 RD |
34405 | arg4 = (int) SWIG_AsInt(obj3); |
34406 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34407 | } |
34408 | if (obj4) { | |
15afbcd0 RD |
34409 | arg5 = (int) SWIG_AsInt(obj4); |
34410 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34411 | } |
d14a1e28 RD |
34412 | if (obj5) { |
34413 | arg6 = obj5; | |
34414 | } | |
34415 | { | |
34416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34417 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34418 | ||
34419 | wxPyEndAllowThreads(__tstate); | |
34420 | if (PyErr_Occurred()) SWIG_fail; | |
34421 | } | |
34422 | Py_INCREF(Py_None); resultobj = Py_None; | |
34423 | return resultobj; | |
34424 | fail: | |
34425 | return NULL; | |
34426 | } | |
34427 | ||
34428 | ||
34429 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34430 | PyObject *resultobj; | |
34431 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34432 | int arg2 ; | |
34433 | PyObject *arg3 = (PyObject *) 0 ; | |
34434 | int arg4 = (int) 0 ; | |
34435 | int arg5 = (int) 0 ; | |
34436 | int arg6 = (int) 0 ; | |
34437 | PyObject *arg7 = (PyObject *) NULL ; | |
34438 | PyObject * obj0 = 0 ; | |
994141e6 | 34439 | PyObject * obj1 = 0 ; |
d14a1e28 | 34440 | PyObject * obj2 = 0 ; |
994141e6 RD |
34441 | PyObject * obj3 = 0 ; |
34442 | PyObject * obj4 = 0 ; | |
34443 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
34444 | PyObject * obj6 = 0 ; |
34445 | char *kwnames[] = { | |
34446 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34447 | }; | |
34448 | ||
994141e6 | 34449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
34450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34452 | arg2 = (int) SWIG_AsInt(obj1); | |
34453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 34454 | arg3 = obj2; |
994141e6 | 34455 | if (obj3) { |
15afbcd0 RD |
34456 | arg4 = (int) SWIG_AsInt(obj3); |
34457 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34458 | } |
34459 | if (obj4) { | |
15afbcd0 RD |
34460 | arg5 = (int) SWIG_AsInt(obj4); |
34461 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34462 | } |
34463 | if (obj5) { | |
15afbcd0 RD |
34464 | arg6 = (int) SWIG_AsInt(obj5); |
34465 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34466 | } |
d14a1e28 RD |
34467 | if (obj6) { |
34468 | arg7 = obj6; | |
34469 | } | |
34470 | { | |
34471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34472 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34473 | ||
34474 | wxPyEndAllowThreads(__tstate); | |
34475 | if (PyErr_Occurred()) SWIG_fail; | |
34476 | } | |
34477 | Py_INCREF(Py_None); resultobj = Py_None; | |
34478 | return resultobj; | |
34479 | fail: | |
34480 | return NULL; | |
34481 | } | |
34482 | ||
34483 | ||
34484 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34485 | PyObject *resultobj; | |
34486 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34487 | PyObject *arg2 = (PyObject *) 0 ; | |
34488 | int arg3 = (int) 0 ; | |
34489 | int arg4 = (int) 0 ; | |
34490 | int arg5 = (int) 0 ; | |
34491 | PyObject *arg6 = (PyObject *) NULL ; | |
34492 | PyObject * obj0 = 0 ; | |
34493 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34494 | PyObject * obj2 = 0 ; |
34495 | PyObject * obj3 = 0 ; | |
34496 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34497 | PyObject * obj5 = 0 ; |
34498 | char *kwnames[] = { | |
34499 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34500 | }; | |
34501 | ||
994141e6 | 34502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34505 | arg2 = obj1; |
994141e6 | 34506 | if (obj2) { |
15afbcd0 RD |
34507 | arg3 = (int) SWIG_AsInt(obj2); |
34508 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34509 | } |
34510 | if (obj3) { | |
15afbcd0 RD |
34511 | arg4 = (int) SWIG_AsInt(obj3); |
34512 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34513 | } |
34514 | if (obj4) { | |
15afbcd0 RD |
34515 | arg5 = (int) SWIG_AsInt(obj4); |
34516 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34517 | } |
d14a1e28 RD |
34518 | if (obj5) { |
34519 | arg6 = obj5; | |
34520 | } | |
34521 | { | |
34522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34523 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34524 | ||
34525 | wxPyEndAllowThreads(__tstate); | |
34526 | if (PyErr_Occurred()) SWIG_fail; | |
34527 | } | |
34528 | Py_INCREF(Py_None); resultobj = Py_None; | |
34529 | return resultobj; | |
34530 | fail: | |
34531 | return NULL; | |
34532 | } | |
34533 | ||
34534 | ||
34535 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34536 | PyObject *resultobj; | |
34537 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34538 | PyObject *arg2 = (PyObject *) 0 ; | |
34539 | bool result; | |
34540 | PyObject * obj0 = 0 ; | |
34541 | PyObject * obj1 = 0 ; | |
34542 | char *kwnames[] = { | |
34543 | (char *) "self",(char *) "item", NULL | |
34544 | }; | |
34545 | ||
34546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34549 | arg2 = obj1; |
34550 | { | |
34551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34552 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34553 | ||
34554 | wxPyEndAllowThreads(__tstate); | |
34555 | if (PyErr_Occurred()) SWIG_fail; | |
34556 | } | |
4f89f6a3 RD |
34557 | { |
34558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34559 | } | |
d14a1e28 RD |
34560 | return resultobj; |
34561 | fail: | |
34562 | return NULL; | |
34563 | } | |
34564 | ||
34565 | ||
34566 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34567 | PyObject *resultobj; | |
34568 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34569 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
34570 | wxSize *arg3 = 0 ; |
34571 | wxSize temp3 ; | |
d14a1e28 RD |
34572 | PyObject * obj0 = 0 ; |
34573 | PyObject * obj1 = 0 ; | |
34574 | PyObject * obj2 = 0 ; | |
34575 | char *kwnames[] = { | |
34576 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34577 | }; | |
34578 | ||
34579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34582 | arg2 = obj1; |
e811c8ce RD |
34583 | { |
34584 | arg3 = &temp3; | |
34585 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34586 | } | |
d14a1e28 RD |
34587 | { |
34588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 34589 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
34590 | |
34591 | wxPyEndAllowThreads(__tstate); | |
34592 | if (PyErr_Occurred()) SWIG_fail; | |
34593 | } | |
34594 | Py_INCREF(Py_None); resultobj = Py_None; | |
34595 | return resultobj; | |
34596 | fail: | |
34597 | return NULL; | |
34598 | } | |
34599 | ||
34600 | ||
34601 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34602 | PyObject *resultobj; | |
34603 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34604 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34605 | PyObject * obj0 = 0 ; | |
34606 | PyObject * obj1 = 0 ; | |
34607 | char *kwnames[] = { | |
34608 | (char *) "self",(char *) "item", NULL | |
34609 | }; | |
34610 | ||
34611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34614 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34616 | { |
34617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34618 | (arg1)->Add(arg2); | |
34619 | ||
34620 | wxPyEndAllowThreads(__tstate); | |
34621 | if (PyErr_Occurred()) SWIG_fail; | |
34622 | } | |
34623 | Py_INCREF(Py_None); resultobj = Py_None; | |
34624 | return resultobj; | |
34625 | fail: | |
34626 | return NULL; | |
34627 | } | |
34628 | ||
34629 | ||
34630 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34631 | PyObject *resultobj; | |
34632 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34633 | size_t arg2 ; | |
34634 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34635 | PyObject * obj0 = 0 ; | |
34636 | PyObject * obj1 = 0 ; | |
34637 | PyObject * obj2 = 0 ; | |
34638 | char *kwnames[] = { | |
34639 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34640 | }; | |
34641 | ||
34642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34645 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34646 | if (PyErr_Occurred()) SWIG_fail; | |
34647 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34649 | { |
34650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34651 | (arg1)->Insert(arg2,arg3); | |
34652 | ||
34653 | wxPyEndAllowThreads(__tstate); | |
34654 | if (PyErr_Occurred()) SWIG_fail; | |
34655 | } | |
34656 | Py_INCREF(Py_None); resultobj = Py_None; | |
34657 | return resultobj; | |
34658 | fail: | |
34659 | return NULL; | |
34660 | } | |
34661 | ||
34662 | ||
34663 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34664 | PyObject *resultobj; | |
34665 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34666 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34667 | PyObject * obj0 = 0 ; | |
34668 | PyObject * obj1 = 0 ; | |
34669 | char *kwnames[] = { | |
34670 | (char *) "self",(char *) "item", NULL | |
34671 | }; | |
34672 | ||
34673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34678 | { |
34679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34680 | (arg1)->Prepend(arg2); | |
34681 | ||
34682 | wxPyEndAllowThreads(__tstate); | |
34683 | if (PyErr_Occurred()) SWIG_fail; | |
34684 | } | |
34685 | Py_INCREF(Py_None); resultobj = Py_None; | |
34686 | return resultobj; | |
34687 | fail: | |
34688 | return NULL; | |
34689 | } | |
34690 | ||
34691 | ||
34692 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34693 | PyObject *resultobj; | |
34694 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34695 | int arg2 ; | |
34696 | int arg3 ; | |
34697 | int arg4 ; | |
34698 | int arg5 ; | |
34699 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34700 | PyObject * obj1 = 0 ; |
34701 | PyObject * obj2 = 0 ; | |
34702 | PyObject * obj3 = 0 ; | |
34703 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34704 | char *kwnames[] = { |
34705 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34706 | }; | |
34707 | ||
994141e6 | 34708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
34709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34711 | arg2 = (int) SWIG_AsInt(obj1); | |
34712 | if (PyErr_Occurred()) SWIG_fail; | |
34713 | arg3 = (int) SWIG_AsInt(obj2); | |
34714 | if (PyErr_Occurred()) SWIG_fail; | |
34715 | arg4 = (int) SWIG_AsInt(obj3); | |
34716 | if (PyErr_Occurred()) SWIG_fail; | |
34717 | arg5 = (int) SWIG_AsInt(obj4); | |
34718 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34719 | { |
34720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34721 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
34722 | ||
34723 | wxPyEndAllowThreads(__tstate); | |
34724 | if (PyErr_Occurred()) SWIG_fail; | |
34725 | } | |
34726 | Py_INCREF(Py_None); resultobj = Py_None; | |
34727 | return resultobj; | |
34728 | fail: | |
34729 | return NULL; | |
34730 | } | |
34731 | ||
34732 | ||
34733 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34734 | PyObject *resultobj; | |
34735 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
34736 | wxSize *arg2 = 0 ; |
34737 | wxSize temp2 ; | |
d14a1e28 RD |
34738 | PyObject * obj0 = 0 ; |
34739 | PyObject * obj1 = 0 ; | |
34740 | char *kwnames[] = { | |
34741 | (char *) "self",(char *) "size", NULL | |
34742 | }; | |
34743 | ||
34744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fc9204a RD |
34747 | { |
34748 | arg2 = &temp2; | |
34749 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34750 | } | |
d14a1e28 RD |
34751 | { |
34752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 34753 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
34754 | |
34755 | wxPyEndAllowThreads(__tstate); | |
34756 | if (PyErr_Occurred()) SWIG_fail; | |
34757 | } | |
34758 | Py_INCREF(Py_None); resultobj = Py_None; | |
34759 | return resultobj; | |
34760 | fail: | |
34761 | return NULL; | |
34762 | } | |
34763 | ||
34764 | ||
34765 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34766 | PyObject *resultobj; | |
34767 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34768 | wxSize result; | |
34769 | PyObject * obj0 = 0 ; | |
34770 | char *kwnames[] = { | |
34771 | (char *) "self", NULL | |
34772 | }; | |
34773 | ||
34774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34777 | { |
34778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34779 | result = (arg1)->GetSize(); | |
34780 | ||
34781 | wxPyEndAllowThreads(__tstate); | |
34782 | if (PyErr_Occurred()) SWIG_fail; | |
34783 | } | |
34784 | { | |
34785 | wxSize * resultptr; | |
34786 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34787 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34788 | } |
34789 | return resultobj; | |
34790 | fail: | |
34791 | return NULL; | |
34792 | } | |
34793 | ||
34794 | ||
34795 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34796 | PyObject *resultobj; | |
34797 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34798 | wxPoint result; | |
34799 | PyObject * obj0 = 0 ; | |
34800 | char *kwnames[] = { | |
34801 | (char *) "self", NULL | |
34802 | }; | |
34803 | ||
34804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34807 | { |
34808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34809 | result = (arg1)->GetPosition(); | |
34810 | ||
34811 | wxPyEndAllowThreads(__tstate); | |
34812 | if (PyErr_Occurred()) SWIG_fail; | |
34813 | } | |
34814 | { | |
34815 | wxPoint * resultptr; | |
34816 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 34817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34818 | } |
34819 | return resultobj; | |
34820 | fail: | |
34821 | return NULL; | |
34822 | } | |
34823 | ||
34824 | ||
34825 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34826 | PyObject *resultobj; | |
34827 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34828 | wxSize result; | |
34829 | PyObject * obj0 = 0 ; | |
34830 | char *kwnames[] = { | |
34831 | (char *) "self", NULL | |
34832 | }; | |
34833 | ||
34834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34837 | { |
34838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34839 | result = (arg1)->GetMinSize(); | |
34840 | ||
34841 | wxPyEndAllowThreads(__tstate); | |
34842 | if (PyErr_Occurred()) SWIG_fail; | |
34843 | } | |
34844 | { | |
34845 | wxSize * resultptr; | |
34846 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34847 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34848 | } |
34849 | return resultobj; | |
34850 | fail: | |
34851 | return NULL; | |
34852 | } | |
34853 | ||
34854 | ||
34855 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34856 | PyObject *resultobj; | |
34857 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34858 | PyObject * obj0 = 0 ; | |
34859 | char *kwnames[] = { | |
34860 | (char *) "self", NULL | |
34861 | }; | |
34862 | ||
34863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34866 | { |
34867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34868 | (arg1)->RecalcSizes(); | |
34869 | ||
34870 | wxPyEndAllowThreads(__tstate); | |
34871 | if (PyErr_Occurred()) SWIG_fail; | |
34872 | } | |
34873 | Py_INCREF(Py_None); resultobj = Py_None; | |
34874 | return resultobj; | |
34875 | fail: | |
34876 | return NULL; | |
34877 | } | |
34878 | ||
34879 | ||
34880 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34881 | PyObject *resultobj; | |
34882 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34883 | wxSize result; | |
34884 | PyObject * obj0 = 0 ; | |
34885 | char *kwnames[] = { | |
34886 | (char *) "self", NULL | |
34887 | }; | |
34888 | ||
34889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34892 | { |
34893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34894 | result = (arg1)->CalcMin(); | |
34895 | ||
34896 | wxPyEndAllowThreads(__tstate); | |
34897 | if (PyErr_Occurred()) SWIG_fail; | |
34898 | } | |
34899 | { | |
34900 | wxSize * resultptr; | |
34901 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34903 | } |
34904 | return resultobj; | |
34905 | fail: | |
34906 | return NULL; | |
34907 | } | |
34908 | ||
34909 | ||
34910 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34911 | PyObject *resultobj; | |
34912 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34913 | PyObject * obj0 = 0 ; | |
34914 | char *kwnames[] = { | |
34915 | (char *) "self", NULL | |
34916 | }; | |
34917 | ||
34918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34921 | { |
34922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34923 | (arg1)->Layout(); | |
34924 | ||
34925 | wxPyEndAllowThreads(__tstate); | |
34926 | if (PyErr_Occurred()) SWIG_fail; | |
34927 | } | |
34928 | Py_INCREF(Py_None); resultobj = Py_None; | |
34929 | return resultobj; | |
34930 | fail: | |
34931 | return NULL; | |
34932 | } | |
34933 | ||
34934 | ||
34935 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34936 | PyObject *resultobj; | |
34937 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34938 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34939 | wxSize result; | |
34940 | PyObject * obj0 = 0 ; | |
34941 | PyObject * obj1 = 0 ; | |
34942 | char *kwnames[] = { | |
34943 | (char *) "self",(char *) "window", NULL | |
34944 | }; | |
34945 | ||
34946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34951 | { |
34952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34953 | result = (arg1)->Fit(arg2); | |
34954 | ||
34955 | wxPyEndAllowThreads(__tstate); | |
34956 | if (PyErr_Occurred()) SWIG_fail; | |
34957 | } | |
34958 | { | |
34959 | wxSize * resultptr; | |
34960 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34962 | } |
34963 | return resultobj; | |
34964 | fail: | |
34965 | return NULL; | |
34966 | } | |
34967 | ||
34968 | ||
34969 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34970 | PyObject *resultobj; | |
34971 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34972 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34973 | PyObject * obj0 = 0 ; | |
34974 | PyObject * obj1 = 0 ; | |
34975 | char *kwnames[] = { | |
34976 | (char *) "self",(char *) "window", NULL | |
34977 | }; | |
34978 | ||
34979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34982 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34984 | { |
34985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34986 | (arg1)->FitInside(arg2); | |
34987 | ||
34988 | wxPyEndAllowThreads(__tstate); | |
34989 | if (PyErr_Occurred()) SWIG_fail; | |
34990 | } | |
34991 | Py_INCREF(Py_None); resultobj = Py_None; | |
34992 | return resultobj; | |
34993 | fail: | |
34994 | return NULL; | |
34995 | } | |
34996 | ||
34997 | ||
34998 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34999 | PyObject *resultobj; | |
35000 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35001 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35002 | PyObject * obj0 = 0 ; | |
35003 | PyObject * obj1 = 0 ; | |
35004 | char *kwnames[] = { | |
35005 | (char *) "self",(char *) "window", NULL | |
35006 | }; | |
35007 | ||
35008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35013 | { |
35014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35015 | (arg1)->SetSizeHints(arg2); | |
35016 | ||
35017 | wxPyEndAllowThreads(__tstate); | |
35018 | if (PyErr_Occurred()) SWIG_fail; | |
35019 | } | |
35020 | Py_INCREF(Py_None); resultobj = Py_None; | |
35021 | return resultobj; | |
35022 | fail: | |
35023 | return NULL; | |
35024 | } | |
35025 | ||
35026 | ||
35027 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35028 | PyObject *resultobj; | |
35029 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35030 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35031 | PyObject * obj0 = 0 ; | |
35032 | PyObject * obj1 = 0 ; | |
35033 | char *kwnames[] = { | |
35034 | (char *) "self",(char *) "window", NULL | |
35035 | }; | |
35036 | ||
35037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35042 | { |
35043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35044 | (arg1)->SetVirtualSizeHints(arg2); | |
35045 | ||
35046 | wxPyEndAllowThreads(__tstate); | |
35047 | if (PyErr_Occurred()) SWIG_fail; | |
35048 | } | |
35049 | Py_INCREF(Py_None); resultobj = Py_None; | |
35050 | return resultobj; | |
35051 | fail: | |
35052 | return NULL; | |
35053 | } | |
35054 | ||
35055 | ||
35056 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35057 | PyObject *resultobj; | |
35058 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 35059 | bool arg2 = (bool) False ; |
d14a1e28 RD |
35060 | PyObject * obj0 = 0 ; |
35061 | PyObject * obj1 = 0 ; | |
35062 | char *kwnames[] = { | |
35063 | (char *) "self",(char *) "delete_windows", NULL | |
35064 | }; | |
35065 | ||
35066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35069 | if (obj1) { |
15afbcd0 RD |
35070 | arg2 = (bool) SWIG_AsBool(obj1); |
35071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35072 | } |
35073 | { | |
35074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35075 | (arg1)->Clear(arg2); | |
35076 | ||
35077 | wxPyEndAllowThreads(__tstate); | |
35078 | if (PyErr_Occurred()) SWIG_fail; | |
35079 | } | |
35080 | Py_INCREF(Py_None); resultobj = Py_None; | |
35081 | return resultobj; | |
35082 | fail: | |
35083 | return NULL; | |
35084 | } | |
35085 | ||
35086 | ||
35087 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35088 | PyObject *resultobj; | |
35089 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35090 | PyObject * obj0 = 0 ; | |
35091 | char *kwnames[] = { | |
35092 | (char *) "self", NULL | |
35093 | }; | |
35094 | ||
35095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35098 | { |
35099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35100 | (arg1)->DeleteWindows(); | |
35101 | ||
35102 | wxPyEndAllowThreads(__tstate); | |
35103 | if (PyErr_Occurred()) SWIG_fail; | |
35104 | } | |
35105 | Py_INCREF(Py_None); resultobj = Py_None; | |
35106 | return resultobj; | |
35107 | fail: | |
35108 | return NULL; | |
35109 | } | |
35110 | ||
35111 | ||
35112 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35113 | PyObject *resultobj; | |
35114 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35115 | PyObject *result; | |
35116 | PyObject * obj0 = 0 ; | |
35117 | char *kwnames[] = { | |
35118 | (char *) "self", NULL | |
35119 | }; | |
35120 | ||
35121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35124 | { |
35125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35126 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35127 | ||
35128 | wxPyEndAllowThreads(__tstate); | |
35129 | if (PyErr_Occurred()) SWIG_fail; | |
35130 | } | |
35131 | resultobj = result; | |
35132 | return resultobj; | |
35133 | fail: | |
35134 | return NULL; | |
35135 | } | |
35136 | ||
35137 | ||
35138 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35139 | PyObject *resultobj; | |
35140 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35141 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 35142 | bool arg3 = (bool) True ; |
d14a1e28 RD |
35143 | PyObject * obj0 = 0 ; |
35144 | PyObject * obj1 = 0 ; | |
35145 | PyObject * obj2 = 0 ; | |
35146 | char *kwnames[] = { | |
35147 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35148 | }; | |
35149 | ||
35150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35153 | arg2 = obj1; |
35154 | if (obj2) { | |
15afbcd0 RD |
35155 | arg3 = (bool) SWIG_AsBool(obj2); |
35156 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35157 | } |
35158 | { | |
35159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35160 | wxSizer_Show(arg1,arg2,arg3); | |
35161 | ||
35162 | wxPyEndAllowThreads(__tstate); | |
35163 | if (PyErr_Occurred()) SWIG_fail; | |
35164 | } | |
35165 | Py_INCREF(Py_None); resultobj = Py_None; | |
35166 | return resultobj; | |
35167 | fail: | |
35168 | return NULL; | |
35169 | } | |
35170 | ||
35171 | ||
35172 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35173 | PyObject *resultobj; | |
35174 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35175 | PyObject *arg2 = (PyObject *) 0 ; | |
35176 | PyObject * obj0 = 0 ; | |
35177 | PyObject * obj1 = 0 ; | |
35178 | char *kwnames[] = { | |
35179 | (char *) "self",(char *) "item", NULL | |
35180 | }; | |
35181 | ||
35182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35185 | arg2 = obj1; |
35186 | { | |
35187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35188 | wxSizer_Hide(arg1,arg2); | |
35189 | ||
35190 | wxPyEndAllowThreads(__tstate); | |
35191 | if (PyErr_Occurred()) SWIG_fail; | |
35192 | } | |
35193 | Py_INCREF(Py_None); resultobj = Py_None; | |
35194 | return resultobj; | |
35195 | fail: | |
35196 | return NULL; | |
35197 | } | |
35198 | ||
35199 | ||
35200 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35201 | PyObject *resultobj; | |
35202 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35203 | PyObject *arg2 = (PyObject *) 0 ; | |
35204 | bool result; | |
35205 | PyObject * obj0 = 0 ; | |
35206 | PyObject * obj1 = 0 ; | |
35207 | char *kwnames[] = { | |
35208 | (char *) "self",(char *) "item", NULL | |
35209 | }; | |
35210 | ||
35211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35214 | arg2 = obj1; |
35215 | { | |
35216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35217 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35218 | ||
35219 | wxPyEndAllowThreads(__tstate); | |
35220 | if (PyErr_Occurred()) SWIG_fail; | |
35221 | } | |
4f89f6a3 RD |
35222 | { |
35223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35224 | } | |
d14a1e28 RD |
35225 | return resultobj; |
35226 | fail: | |
35227 | return NULL; | |
35228 | } | |
35229 | ||
35230 | ||
35231 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35232 | PyObject *resultobj; | |
35233 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35234 | bool arg2 ; | |
35235 | PyObject * obj0 = 0 ; | |
35236 | PyObject * obj1 = 0 ; | |
35237 | char *kwnames[] = { | |
35238 | (char *) "self",(char *) "show", NULL | |
35239 | }; | |
35240 | ||
35241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35244 | arg2 = (bool) SWIG_AsBool(obj1); | |
35245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35246 | { |
35247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35248 | (arg1)->ShowItems(arg2); | |
35249 | ||
35250 | wxPyEndAllowThreads(__tstate); | |
35251 | if (PyErr_Occurred()) SWIG_fail; | |
35252 | } | |
35253 | Py_INCREF(Py_None); resultobj = Py_None; | |
35254 | return resultobj; | |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
35260 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35261 | PyObject *obj; | |
35262 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35263 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35264 | Py_INCREF(obj); | |
35265 | return Py_BuildValue((char *)""); | |
35266 | } | |
35267 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35268 | PyObject *resultobj; | |
35269 | wxPySizer *result; | |
35270 | char *kwnames[] = { | |
35271 | NULL | |
35272 | }; | |
35273 | ||
35274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35275 | { | |
35276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35277 | result = (wxPySizer *)new wxPySizer(); | |
35278 | ||
35279 | wxPyEndAllowThreads(__tstate); | |
35280 | if (PyErr_Occurred()) SWIG_fail; | |
35281 | } | |
15afbcd0 | 35282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35283 | return resultobj; |
35284 | fail: | |
35285 | return NULL; | |
35286 | } | |
35287 | ||
35288 | ||
35289 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35290 | PyObject *resultobj; | |
35291 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35292 | PyObject *arg2 = (PyObject *) 0 ; | |
35293 | PyObject *arg3 = (PyObject *) 0 ; | |
35294 | PyObject * obj0 = 0 ; | |
35295 | PyObject * obj1 = 0 ; | |
35296 | PyObject * obj2 = 0 ; | |
35297 | char *kwnames[] = { | |
35298 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35299 | }; | |
35300 | ||
35301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35304 | arg2 = obj1; |
35305 | arg3 = obj2; | |
35306 | { | |
35307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35308 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35309 | ||
35310 | wxPyEndAllowThreads(__tstate); | |
35311 | if (PyErr_Occurred()) SWIG_fail; | |
35312 | } | |
35313 | Py_INCREF(Py_None); resultobj = Py_None; | |
35314 | return resultobj; | |
35315 | fail: | |
35316 | return NULL; | |
35317 | } | |
35318 | ||
35319 | ||
35320 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35321 | PyObject *obj; | |
35322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35323 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35324 | Py_INCREF(obj); | |
35325 | return Py_BuildValue((char *)""); | |
35326 | } | |
35327 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35328 | PyObject *resultobj; | |
35329 | int arg1 = (int) wxHORIZONTAL ; | |
35330 | wxBoxSizer *result; | |
994141e6 | 35331 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35332 | char *kwnames[] = { |
35333 | (char *) "orient", NULL | |
35334 | }; | |
35335 | ||
994141e6 RD |
35336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35337 | if (obj0) { | |
15afbcd0 RD |
35338 | arg1 = (int) SWIG_AsInt(obj0); |
35339 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35340 | } |
d14a1e28 RD |
35341 | { |
35342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35343 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35344 | ||
35345 | wxPyEndAllowThreads(__tstate); | |
35346 | if (PyErr_Occurred()) SWIG_fail; | |
35347 | } | |
15afbcd0 | 35348 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35349 | return resultobj; |
35350 | fail: | |
35351 | return NULL; | |
35352 | } | |
35353 | ||
35354 | ||
35355 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35356 | PyObject *resultobj; | |
35357 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35358 | int result; | |
35359 | PyObject * obj0 = 0 ; | |
35360 | char *kwnames[] = { | |
35361 | (char *) "self", NULL | |
35362 | }; | |
35363 | ||
35364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35367 | { |
35368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35369 | result = (int)(arg1)->GetOrientation(); | |
35370 | ||
35371 | wxPyEndAllowThreads(__tstate); | |
35372 | if (PyErr_Occurred()) SWIG_fail; | |
35373 | } | |
15afbcd0 | 35374 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35375 | return resultobj; |
35376 | fail: | |
35377 | return NULL; | |
35378 | } | |
35379 | ||
35380 | ||
35381 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35382 | PyObject *resultobj; | |
35383 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35384 | int arg2 ; | |
35385 | PyObject * obj0 = 0 ; | |
994141e6 | 35386 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35387 | char *kwnames[] = { |
35388 | (char *) "self",(char *) "orient", NULL | |
35389 | }; | |
35390 | ||
994141e6 | 35391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35394 | arg2 = (int) SWIG_AsInt(obj1); | |
35395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35396 | { |
35397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35398 | (arg1)->SetOrientation(arg2); | |
35399 | ||
35400 | wxPyEndAllowThreads(__tstate); | |
35401 | if (PyErr_Occurred()) SWIG_fail; | |
35402 | } | |
35403 | Py_INCREF(Py_None); resultobj = Py_None; | |
35404 | return resultobj; | |
35405 | fail: | |
35406 | return NULL; | |
35407 | } | |
35408 | ||
35409 | ||
35410 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35411 | PyObject *resultobj; | |
35412 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35413 | PyObject * obj0 = 0 ; | |
35414 | char *kwnames[] = { | |
35415 | (char *) "self", NULL | |
35416 | }; | |
35417 | ||
35418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35421 | { |
35422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35423 | (arg1)->RecalcSizes(); | |
35424 | ||
35425 | wxPyEndAllowThreads(__tstate); | |
35426 | if (PyErr_Occurred()) SWIG_fail; | |
35427 | } | |
35428 | Py_INCREF(Py_None); resultobj = Py_None; | |
35429 | return resultobj; | |
35430 | fail: | |
35431 | return NULL; | |
35432 | } | |
35433 | ||
35434 | ||
35435 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35436 | PyObject *resultobj; | |
35437 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35438 | wxSize result; | |
35439 | PyObject * obj0 = 0 ; | |
35440 | char *kwnames[] = { | |
35441 | (char *) "self", NULL | |
35442 | }; | |
35443 | ||
35444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35447 | { |
35448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35449 | result = (arg1)->CalcMin(); | |
35450 | ||
35451 | wxPyEndAllowThreads(__tstate); | |
35452 | if (PyErr_Occurred()) SWIG_fail; | |
35453 | } | |
35454 | { | |
35455 | wxSize * resultptr; | |
35456 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35457 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35458 | } |
35459 | return resultobj; | |
35460 | fail: | |
35461 | return NULL; | |
35462 | } | |
35463 | ||
35464 | ||
35465 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35466 | PyObject *obj; | |
35467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35468 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35469 | Py_INCREF(obj); | |
35470 | return Py_BuildValue((char *)""); | |
35471 | } | |
35472 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35473 | PyObject *resultobj; | |
35474 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35475 | int arg2 = (int) wxHORIZONTAL ; | |
35476 | wxStaticBoxSizer *result; | |
35477 | PyObject * obj0 = 0 ; | |
994141e6 | 35478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35479 | char *kwnames[] = { |
35480 | (char *) "box",(char *) "orient", NULL | |
35481 | }; | |
35482 | ||
994141e6 | 35483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
35485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 35486 | if (obj1) { |
15afbcd0 RD |
35487 | arg2 = (int) SWIG_AsInt(obj1); |
35488 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35489 | } |
d14a1e28 RD |
35490 | { |
35491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35492 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35493 | ||
35494 | wxPyEndAllowThreads(__tstate); | |
35495 | if (PyErr_Occurred()) SWIG_fail; | |
35496 | } | |
15afbcd0 | 35497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
35498 | return resultobj; |
35499 | fail: | |
35500 | return NULL; | |
35501 | } | |
35502 | ||
35503 | ||
35504 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35505 | PyObject *resultobj; | |
35506 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35507 | wxStaticBox *result; | |
35508 | PyObject * obj0 = 0 ; | |
35509 | char *kwnames[] = { | |
35510 | (char *) "self", NULL | |
35511 | }; | |
35512 | ||
35513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35516 | { |
35517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35518 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35519 | ||
35520 | wxPyEndAllowThreads(__tstate); | |
35521 | if (PyErr_Occurred()) SWIG_fail; | |
35522 | } | |
35523 | { | |
35524 | resultobj = wxPyMake_wxObject(result); | |
35525 | } | |
35526 | return resultobj; | |
35527 | fail: | |
35528 | return NULL; | |
35529 | } | |
35530 | ||
35531 | ||
35532 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35533 | PyObject *resultobj; | |
35534 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35535 | PyObject * obj0 = 0 ; | |
35536 | char *kwnames[] = { | |
35537 | (char *) "self", NULL | |
35538 | }; | |
35539 | ||
35540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35543 | { |
35544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35545 | (arg1)->RecalcSizes(); | |
35546 | ||
35547 | wxPyEndAllowThreads(__tstate); | |
35548 | if (PyErr_Occurred()) SWIG_fail; | |
35549 | } | |
35550 | Py_INCREF(Py_None); resultobj = Py_None; | |
35551 | return resultobj; | |
35552 | fail: | |
35553 | return NULL; | |
35554 | } | |
35555 | ||
35556 | ||
35557 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35558 | PyObject *resultobj; | |
35559 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35560 | wxSize result; | |
35561 | PyObject * obj0 = 0 ; | |
35562 | char *kwnames[] = { | |
35563 | (char *) "self", NULL | |
35564 | }; | |
35565 | ||
35566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35569 | { |
35570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35571 | result = (arg1)->CalcMin(); | |
35572 | ||
35573 | wxPyEndAllowThreads(__tstate); | |
35574 | if (PyErr_Occurred()) SWIG_fail; | |
35575 | } | |
35576 | { | |
35577 | wxSize * resultptr; | |
35578 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35580 | } |
35581 | return resultobj; | |
35582 | fail: | |
35583 | return NULL; | |
35584 | } | |
35585 | ||
35586 | ||
35587 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35588 | PyObject *obj; | |
35589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35590 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35591 | Py_INCREF(obj); | |
35592 | return Py_BuildValue((char *)""); | |
35593 | } | |
35594 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35595 | PyObject *resultobj; | |
35596 | int arg1 = (int) 1 ; | |
35597 | int arg2 = (int) 0 ; | |
35598 | int arg3 = (int) 0 ; | |
35599 | int arg4 = (int) 0 ; | |
35600 | wxGridSizer *result; | |
994141e6 RD |
35601 | PyObject * obj0 = 0 ; |
35602 | PyObject * obj1 = 0 ; | |
35603 | PyObject * obj2 = 0 ; | |
35604 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35605 | char *kwnames[] = { |
35606 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35607 | }; | |
35608 | ||
994141e6 RD |
35609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35610 | if (obj0) { | |
15afbcd0 RD |
35611 | arg1 = (int) SWIG_AsInt(obj0); |
35612 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35613 | } |
35614 | if (obj1) { | |
15afbcd0 RD |
35615 | arg2 = (int) SWIG_AsInt(obj1); |
35616 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35617 | } |
35618 | if (obj2) { | |
15afbcd0 RD |
35619 | arg3 = (int) SWIG_AsInt(obj2); |
35620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35621 | } |
35622 | if (obj3) { | |
15afbcd0 RD |
35623 | arg4 = (int) SWIG_AsInt(obj3); |
35624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35625 | } |
d14a1e28 RD |
35626 | { |
35627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35628 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35629 | ||
35630 | wxPyEndAllowThreads(__tstate); | |
35631 | if (PyErr_Occurred()) SWIG_fail; | |
35632 | } | |
15afbcd0 | 35633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
35634 | return resultobj; |
35635 | fail: | |
35636 | return NULL; | |
35637 | } | |
35638 | ||
35639 | ||
35640 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35641 | PyObject *resultobj; | |
35642 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35643 | PyObject * obj0 = 0 ; | |
35644 | char *kwnames[] = { | |
35645 | (char *) "self", NULL | |
35646 | }; | |
35647 | ||
35648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35651 | { |
35652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35653 | (arg1)->RecalcSizes(); | |
35654 | ||
35655 | wxPyEndAllowThreads(__tstate); | |
35656 | if (PyErr_Occurred()) SWIG_fail; | |
35657 | } | |
35658 | Py_INCREF(Py_None); resultobj = Py_None; | |
35659 | return resultobj; | |
35660 | fail: | |
35661 | return NULL; | |
35662 | } | |
35663 | ||
35664 | ||
35665 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35666 | PyObject *resultobj; | |
35667 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35668 | wxSize result; | |
35669 | PyObject * obj0 = 0 ; | |
35670 | char *kwnames[] = { | |
35671 | (char *) "self", NULL | |
35672 | }; | |
35673 | ||
35674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35677 | { |
35678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35679 | result = (arg1)->CalcMin(); | |
35680 | ||
35681 | wxPyEndAllowThreads(__tstate); | |
35682 | if (PyErr_Occurred()) SWIG_fail; | |
35683 | } | |
35684 | { | |
35685 | wxSize * resultptr; | |
35686 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35688 | } |
35689 | return resultobj; | |
35690 | fail: | |
35691 | return NULL; | |
35692 | } | |
35693 | ||
35694 | ||
35695 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35696 | PyObject *resultobj; | |
35697 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35698 | int arg2 ; | |
35699 | PyObject * obj0 = 0 ; | |
994141e6 | 35700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35701 | char *kwnames[] = { |
35702 | (char *) "self",(char *) "cols", NULL | |
35703 | }; | |
35704 | ||
994141e6 | 35705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35708 | arg2 = (int) SWIG_AsInt(obj1); | |
35709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35710 | { |
35711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35712 | (arg1)->SetCols(arg2); | |
35713 | ||
35714 | wxPyEndAllowThreads(__tstate); | |
35715 | if (PyErr_Occurred()) SWIG_fail; | |
35716 | } | |
35717 | Py_INCREF(Py_None); resultobj = Py_None; | |
35718 | return resultobj; | |
35719 | fail: | |
35720 | return NULL; | |
35721 | } | |
35722 | ||
35723 | ||
35724 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35725 | PyObject *resultobj; | |
35726 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35727 | int arg2 ; | |
35728 | PyObject * obj0 = 0 ; | |
994141e6 | 35729 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35730 | char *kwnames[] = { |
35731 | (char *) "self",(char *) "rows", NULL | |
35732 | }; | |
35733 | ||
994141e6 | 35734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35737 | arg2 = (int) SWIG_AsInt(obj1); | |
35738 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35739 | { |
35740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35741 | (arg1)->SetRows(arg2); | |
35742 | ||
35743 | wxPyEndAllowThreads(__tstate); | |
35744 | if (PyErr_Occurred()) SWIG_fail; | |
35745 | } | |
35746 | Py_INCREF(Py_None); resultobj = Py_None; | |
35747 | return resultobj; | |
35748 | fail: | |
35749 | return NULL; | |
35750 | } | |
35751 | ||
35752 | ||
35753 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35754 | PyObject *resultobj; | |
35755 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35756 | int arg2 ; | |
35757 | PyObject * obj0 = 0 ; | |
994141e6 | 35758 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35759 | char *kwnames[] = { |
35760 | (char *) "self",(char *) "gap", NULL | |
35761 | }; | |
35762 | ||
994141e6 | 35763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35766 | arg2 = (int) SWIG_AsInt(obj1); | |
35767 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35768 | { |
35769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35770 | (arg1)->SetVGap(arg2); | |
35771 | ||
35772 | wxPyEndAllowThreads(__tstate); | |
35773 | if (PyErr_Occurred()) SWIG_fail; | |
35774 | } | |
35775 | Py_INCREF(Py_None); resultobj = Py_None; | |
35776 | return resultobj; | |
35777 | fail: | |
35778 | return NULL; | |
35779 | } | |
35780 | ||
35781 | ||
35782 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35783 | PyObject *resultobj; | |
35784 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35785 | int arg2 ; | |
35786 | PyObject * obj0 = 0 ; | |
994141e6 | 35787 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35788 | char *kwnames[] = { |
35789 | (char *) "self",(char *) "gap", NULL | |
35790 | }; | |
35791 | ||
994141e6 | 35792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35795 | arg2 = (int) SWIG_AsInt(obj1); | |
35796 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35797 | { |
35798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35799 | (arg1)->SetHGap(arg2); | |
35800 | ||
35801 | wxPyEndAllowThreads(__tstate); | |
35802 | if (PyErr_Occurred()) SWIG_fail; | |
35803 | } | |
35804 | Py_INCREF(Py_None); resultobj = Py_None; | |
35805 | return resultobj; | |
35806 | fail: | |
35807 | return NULL; | |
35808 | } | |
35809 | ||
35810 | ||
35811 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35812 | PyObject *resultobj; | |
35813 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35814 | int result; | |
35815 | PyObject * obj0 = 0 ; | |
35816 | char *kwnames[] = { | |
35817 | (char *) "self", NULL | |
35818 | }; | |
35819 | ||
35820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35823 | { |
35824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35825 | result = (int)(arg1)->GetCols(); | |
35826 | ||
35827 | wxPyEndAllowThreads(__tstate); | |
35828 | if (PyErr_Occurred()) SWIG_fail; | |
35829 | } | |
15afbcd0 | 35830 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35831 | return resultobj; |
35832 | fail: | |
35833 | return NULL; | |
35834 | } | |
35835 | ||
35836 | ||
35837 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35838 | PyObject *resultobj; | |
35839 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35840 | int result; | |
35841 | PyObject * obj0 = 0 ; | |
35842 | char *kwnames[] = { | |
35843 | (char *) "self", NULL | |
35844 | }; | |
35845 | ||
35846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35849 | { |
35850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35851 | result = (int)(arg1)->GetRows(); | |
35852 | ||
35853 | wxPyEndAllowThreads(__tstate); | |
35854 | if (PyErr_Occurred()) SWIG_fail; | |
35855 | } | |
15afbcd0 | 35856 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35857 | return resultobj; |
35858 | fail: | |
35859 | return NULL; | |
35860 | } | |
35861 | ||
35862 | ||
35863 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35864 | PyObject *resultobj; | |
35865 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35866 | int result; | |
35867 | PyObject * obj0 = 0 ; | |
35868 | char *kwnames[] = { | |
35869 | (char *) "self", NULL | |
35870 | }; | |
35871 | ||
35872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35875 | { |
35876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35877 | result = (int)(arg1)->GetVGap(); | |
35878 | ||
35879 | wxPyEndAllowThreads(__tstate); | |
35880 | if (PyErr_Occurred()) SWIG_fail; | |
35881 | } | |
15afbcd0 | 35882 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35883 | return resultobj; |
35884 | fail: | |
35885 | return NULL; | |
35886 | } | |
35887 | ||
35888 | ||
35889 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35890 | PyObject *resultobj; | |
35891 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35892 | int result; | |
35893 | PyObject * obj0 = 0 ; | |
35894 | char *kwnames[] = { | |
35895 | (char *) "self", NULL | |
35896 | }; | |
35897 | ||
35898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35901 | { |
35902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35903 | result = (int)(arg1)->GetHGap(); | |
35904 | ||
35905 | wxPyEndAllowThreads(__tstate); | |
35906 | if (PyErr_Occurred()) SWIG_fail; | |
35907 | } | |
15afbcd0 | 35908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35909 | return resultobj; |
35910 | fail: | |
35911 | return NULL; | |
35912 | } | |
35913 | ||
35914 | ||
35915 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
35916 | PyObject *obj; | |
35917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35918 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
35919 | Py_INCREF(obj); | |
35920 | return Py_BuildValue((char *)""); | |
35921 | } | |
35922 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35923 | PyObject *resultobj; | |
35924 | int arg1 = (int) 1 ; | |
35925 | int arg2 = (int) 0 ; | |
35926 | int arg3 = (int) 0 ; | |
35927 | int arg4 = (int) 0 ; | |
35928 | wxFlexGridSizer *result; | |
994141e6 RD |
35929 | PyObject * obj0 = 0 ; |
35930 | PyObject * obj1 = 0 ; | |
35931 | PyObject * obj2 = 0 ; | |
35932 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35933 | char *kwnames[] = { |
35934 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35935 | }; | |
35936 | ||
994141e6 RD |
35937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35938 | if (obj0) { | |
15afbcd0 RD |
35939 | arg1 = (int) SWIG_AsInt(obj0); |
35940 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35941 | } |
35942 | if (obj1) { | |
15afbcd0 RD |
35943 | arg2 = (int) SWIG_AsInt(obj1); |
35944 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35945 | } |
35946 | if (obj2) { | |
15afbcd0 RD |
35947 | arg3 = (int) SWIG_AsInt(obj2); |
35948 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35949 | } |
35950 | if (obj3) { | |
15afbcd0 RD |
35951 | arg4 = (int) SWIG_AsInt(obj3); |
35952 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35953 | } |
d14a1e28 RD |
35954 | { |
35955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35956 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
35957 | ||
35958 | wxPyEndAllowThreads(__tstate); | |
35959 | if (PyErr_Occurred()) SWIG_fail; | |
35960 | } | |
15afbcd0 | 35961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
35962 | return resultobj; |
35963 | fail: | |
35964 | return NULL; | |
35965 | } | |
35966 | ||
35967 | ||
35968 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35969 | PyObject *resultobj; | |
35970 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35971 | PyObject * obj0 = 0 ; | |
35972 | char *kwnames[] = { | |
35973 | (char *) "self", NULL | |
35974 | }; | |
35975 | ||
35976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
35978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35979 | { |
35980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35981 | (arg1)->RecalcSizes(); | |
35982 | ||
35983 | wxPyEndAllowThreads(__tstate); | |
35984 | if (PyErr_Occurred()) SWIG_fail; | |
35985 | } | |
35986 | Py_INCREF(Py_None); resultobj = Py_None; | |
35987 | return resultobj; | |
35988 | fail: | |
35989 | return NULL; | |
35990 | } | |
35991 | ||
35992 | ||
35993 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35994 | PyObject *resultobj; | |
35995 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
35996 | wxSize result; | |
35997 | PyObject * obj0 = 0 ; | |
35998 | char *kwnames[] = { | |
35999 | (char *) "self", NULL | |
36000 | }; | |
36001 | ||
36002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36005 | { |
36006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36007 | result = (arg1)->CalcMin(); | |
36008 | ||
36009 | wxPyEndAllowThreads(__tstate); | |
36010 | if (PyErr_Occurred()) SWIG_fail; | |
36011 | } | |
36012 | { | |
36013 | wxSize * resultptr; | |
36014 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36016 | } |
36017 | return resultobj; | |
36018 | fail: | |
36019 | return NULL; | |
36020 | } | |
36021 | ||
36022 | ||
36023 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36024 | PyObject *resultobj; | |
36025 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36026 | size_t arg2 ; | |
36027 | int arg3 = (int) 0 ; | |
36028 | PyObject * obj0 = 0 ; | |
36029 | PyObject * obj1 = 0 ; | |
994141e6 | 36030 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36031 | char *kwnames[] = { |
36032 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36033 | }; | |
36034 | ||
994141e6 | 36035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36038 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36039 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36040 | if (obj2) { |
15afbcd0 RD |
36041 | arg3 = (int) SWIG_AsInt(obj2); |
36042 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36043 | } |
d14a1e28 RD |
36044 | { |
36045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36046 | (arg1)->AddGrowableRow(arg2,arg3); | |
36047 | ||
36048 | wxPyEndAllowThreads(__tstate); | |
36049 | if (PyErr_Occurred()) SWIG_fail; | |
36050 | } | |
36051 | Py_INCREF(Py_None); resultobj = Py_None; | |
36052 | return resultobj; | |
36053 | fail: | |
36054 | return NULL; | |
36055 | } | |
36056 | ||
36057 | ||
36058 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36059 | PyObject *resultobj; | |
36060 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36061 | size_t arg2 ; | |
36062 | PyObject * obj0 = 0 ; | |
36063 | PyObject * obj1 = 0 ; | |
36064 | char *kwnames[] = { | |
36065 | (char *) "self",(char *) "idx", NULL | |
36066 | }; | |
36067 | ||
36068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36071 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36073 | { |
36074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36075 | (arg1)->RemoveGrowableRow(arg2); | |
36076 | ||
36077 | wxPyEndAllowThreads(__tstate); | |
36078 | if (PyErr_Occurred()) SWIG_fail; | |
36079 | } | |
36080 | Py_INCREF(Py_None); resultobj = Py_None; | |
36081 | return resultobj; | |
36082 | fail: | |
36083 | return NULL; | |
36084 | } | |
36085 | ||
36086 | ||
36087 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36088 | PyObject *resultobj; | |
36089 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36090 | size_t arg2 ; | |
36091 | int arg3 = (int) 0 ; | |
36092 | PyObject * obj0 = 0 ; | |
36093 | PyObject * obj1 = 0 ; | |
994141e6 | 36094 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36095 | char *kwnames[] = { |
36096 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36097 | }; | |
36098 | ||
994141e6 | 36099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36102 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36103 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36104 | if (obj2) { |
15afbcd0 RD |
36105 | arg3 = (int) SWIG_AsInt(obj2); |
36106 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36107 | } |
d14a1e28 RD |
36108 | { |
36109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36110 | (arg1)->AddGrowableCol(arg2,arg3); | |
36111 | ||
36112 | wxPyEndAllowThreads(__tstate); | |
36113 | if (PyErr_Occurred()) SWIG_fail; | |
36114 | } | |
36115 | Py_INCREF(Py_None); resultobj = Py_None; | |
36116 | return resultobj; | |
36117 | fail: | |
36118 | return NULL; | |
36119 | } | |
36120 | ||
36121 | ||
36122 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36123 | PyObject *resultobj; | |
36124 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36125 | size_t arg2 ; | |
36126 | PyObject * obj0 = 0 ; | |
36127 | PyObject * obj1 = 0 ; | |
36128 | char *kwnames[] = { | |
36129 | (char *) "self",(char *) "idx", NULL | |
36130 | }; | |
36131 | ||
36132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36135 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36136 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36137 | { |
36138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36139 | (arg1)->RemoveGrowableCol(arg2); | |
36140 | ||
36141 | wxPyEndAllowThreads(__tstate); | |
36142 | if (PyErr_Occurred()) SWIG_fail; | |
36143 | } | |
36144 | Py_INCREF(Py_None); resultobj = Py_None; | |
36145 | return resultobj; | |
36146 | fail: | |
36147 | return NULL; | |
36148 | } | |
36149 | ||
36150 | ||
36151 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36152 | PyObject *resultobj; | |
36153 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36154 | int arg2 ; | |
36155 | PyObject * obj0 = 0 ; | |
994141e6 | 36156 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36157 | char *kwnames[] = { |
36158 | (char *) "self",(char *) "direction", NULL | |
36159 | }; | |
36160 | ||
994141e6 | 36161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36164 | arg2 = (int) SWIG_AsInt(obj1); | |
36165 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36166 | { |
36167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36168 | (arg1)->SetFlexibleDirection(arg2); | |
36169 | ||
36170 | wxPyEndAllowThreads(__tstate); | |
36171 | if (PyErr_Occurred()) SWIG_fail; | |
36172 | } | |
36173 | Py_INCREF(Py_None); resultobj = Py_None; | |
36174 | return resultobj; | |
36175 | fail: | |
36176 | return NULL; | |
36177 | } | |
36178 | ||
36179 | ||
36180 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36181 | PyObject *resultobj; | |
36182 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36183 | int result; | |
36184 | PyObject * obj0 = 0 ; | |
36185 | char *kwnames[] = { | |
36186 | (char *) "self", NULL | |
36187 | }; | |
36188 | ||
36189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36192 | { |
36193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36194 | result = (int)(arg1)->GetFlexibleDirection(); | |
36195 | ||
36196 | wxPyEndAllowThreads(__tstate); | |
36197 | if (PyErr_Occurred()) SWIG_fail; | |
36198 | } | |
15afbcd0 | 36199 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36200 | return resultobj; |
36201 | fail: | |
36202 | return NULL; | |
36203 | } | |
36204 | ||
36205 | ||
36206 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36207 | PyObject *resultobj; | |
36208 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36209 | int arg2 ; | |
36210 | PyObject * obj0 = 0 ; | |
994141e6 | 36211 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36212 | char *kwnames[] = { |
36213 | (char *) "self",(char *) "mode", NULL | |
36214 | }; | |
36215 | ||
994141e6 | 36216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36219 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36220 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36221 | { |
36222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36223 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36224 | ||
36225 | wxPyEndAllowThreads(__tstate); | |
36226 | if (PyErr_Occurred()) SWIG_fail; | |
36227 | } | |
36228 | Py_INCREF(Py_None); resultobj = Py_None; | |
36229 | return resultobj; | |
36230 | fail: | |
36231 | return NULL; | |
36232 | } | |
36233 | ||
36234 | ||
36235 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36236 | PyObject *resultobj; | |
36237 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36238 | int result; | |
36239 | PyObject * obj0 = 0 ; | |
36240 | char *kwnames[] = { | |
36241 | (char *) "self", NULL | |
36242 | }; | |
36243 | ||
36244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36247 | { |
36248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36249 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36250 | ||
36251 | wxPyEndAllowThreads(__tstate); | |
36252 | if (PyErr_Occurred()) SWIG_fail; | |
36253 | } | |
15afbcd0 | 36254 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36255 | return resultobj; |
36256 | fail: | |
36257 | return NULL; | |
36258 | } | |
36259 | ||
36260 | ||
e811c8ce RD |
36261 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36262 | PyObject *resultobj; | |
36263 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36264 | wxArrayInt *result; | |
36265 | PyObject * obj0 = 0 ; | |
36266 | char *kwnames[] = { | |
36267 | (char *) "self", NULL | |
36268 | }; | |
36269 | ||
36270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36273 | { |
36274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36275 | { | |
36276 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36277 | result = (wxArrayInt *) &_result_ref; | |
36278 | } | |
36279 | ||
36280 | wxPyEndAllowThreads(__tstate); | |
36281 | if (PyErr_Occurred()) SWIG_fail; | |
36282 | } | |
36283 | { | |
36284 | resultobj = PyList_New(0); | |
36285 | size_t idx; | |
36286 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36287 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36288 | PyList_Append(resultobj, val); | |
36289 | Py_DECREF(val); | |
36290 | } | |
36291 | } | |
36292 | return resultobj; | |
36293 | fail: | |
36294 | return NULL; | |
36295 | } | |
36296 | ||
36297 | ||
36298 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36299 | PyObject *resultobj; | |
36300 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36301 | wxArrayInt *result; | |
36302 | PyObject * obj0 = 0 ; | |
36303 | char *kwnames[] = { | |
36304 | (char *) "self", NULL | |
36305 | }; | |
36306 | ||
36307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36310 | { |
36311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36312 | { | |
36313 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36314 | result = (wxArrayInt *) &_result_ref; | |
36315 | } | |
36316 | ||
36317 | wxPyEndAllowThreads(__tstate); | |
36318 | if (PyErr_Occurred()) SWIG_fail; | |
36319 | } | |
36320 | { | |
36321 | resultobj = PyList_New(0); | |
36322 | size_t idx; | |
36323 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36324 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36325 | PyList_Append(resultobj, val); | |
36326 | Py_DECREF(val); | |
36327 | } | |
36328 | } | |
36329 | return resultobj; | |
36330 | fail: | |
36331 | return NULL; | |
36332 | } | |
36333 | ||
36334 | ||
d14a1e28 RD |
36335 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36336 | PyObject *obj; | |
36337 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36338 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36339 | Py_INCREF(obj); | |
36340 | return Py_BuildValue((char *)""); | |
36341 | } | |
36342 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36343 | PyObject *resultobj; | |
36344 | int arg1 = (int) 0 ; | |
36345 | int arg2 = (int) 0 ; | |
36346 | wxGBPosition *result; | |
994141e6 RD |
36347 | PyObject * obj0 = 0 ; |
36348 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36349 | char *kwnames[] = { |
36350 | (char *) "row",(char *) "col", NULL | |
36351 | }; | |
36352 | ||
994141e6 RD |
36353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36354 | if (obj0) { | |
15afbcd0 RD |
36355 | arg1 = (int) SWIG_AsInt(obj0); |
36356 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36357 | } |
36358 | if (obj1) { | |
15afbcd0 RD |
36359 | arg2 = (int) SWIG_AsInt(obj1); |
36360 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36361 | } |
d14a1e28 RD |
36362 | { |
36363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36364 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36365 | ||
36366 | wxPyEndAllowThreads(__tstate); | |
36367 | if (PyErr_Occurred()) SWIG_fail; | |
36368 | } | |
15afbcd0 | 36369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36370 | return resultobj; |
36371 | fail: | |
36372 | return NULL; | |
36373 | } | |
36374 | ||
36375 | ||
36376 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36377 | PyObject *resultobj; | |
36378 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36379 | int result; | |
36380 | PyObject * obj0 = 0 ; | |
36381 | char *kwnames[] = { | |
36382 | (char *) "self", NULL | |
36383 | }; | |
36384 | ||
36385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36388 | { |
36389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36390 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36391 | ||
36392 | wxPyEndAllowThreads(__tstate); | |
36393 | if (PyErr_Occurred()) SWIG_fail; | |
36394 | } | |
15afbcd0 | 36395 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36396 | return resultobj; |
36397 | fail: | |
36398 | return NULL; | |
36399 | } | |
36400 | ||
36401 | ||
36402 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36403 | PyObject *resultobj; | |
36404 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36405 | int result; | |
36406 | PyObject * obj0 = 0 ; | |
36407 | char *kwnames[] = { | |
36408 | (char *) "self", NULL | |
36409 | }; | |
36410 | ||
36411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36414 | { |
36415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36416 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36417 | ||
36418 | wxPyEndAllowThreads(__tstate); | |
36419 | if (PyErr_Occurred()) SWIG_fail; | |
36420 | } | |
15afbcd0 | 36421 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36422 | return resultobj; |
36423 | fail: | |
36424 | return NULL; | |
36425 | } | |
36426 | ||
36427 | ||
36428 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36429 | PyObject *resultobj; | |
36430 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36431 | int arg2 ; | |
36432 | PyObject * obj0 = 0 ; | |
994141e6 | 36433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36434 | char *kwnames[] = { |
36435 | (char *) "self",(char *) "row", NULL | |
36436 | }; | |
36437 | ||
994141e6 | 36438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36441 | arg2 = (int) SWIG_AsInt(obj1); | |
36442 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36443 | { |
36444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36445 | (arg1)->SetRow(arg2); | |
36446 | ||
36447 | wxPyEndAllowThreads(__tstate); | |
36448 | if (PyErr_Occurred()) SWIG_fail; | |
36449 | } | |
36450 | Py_INCREF(Py_None); resultobj = Py_None; | |
36451 | return resultobj; | |
36452 | fail: | |
36453 | return NULL; | |
36454 | } | |
36455 | ||
36456 | ||
36457 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36458 | PyObject *resultobj; | |
36459 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36460 | int arg2 ; | |
36461 | PyObject * obj0 = 0 ; | |
994141e6 | 36462 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36463 | char *kwnames[] = { |
36464 | (char *) "self",(char *) "col", NULL | |
36465 | }; | |
36466 | ||
994141e6 | 36467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36470 | arg2 = (int) SWIG_AsInt(obj1); | |
36471 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36472 | { |
36473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36474 | (arg1)->SetCol(arg2); | |
36475 | ||
36476 | wxPyEndAllowThreads(__tstate); | |
36477 | if (PyErr_Occurred()) SWIG_fail; | |
36478 | } | |
36479 | Py_INCREF(Py_None); resultobj = Py_None; | |
36480 | return resultobj; | |
36481 | fail: | |
36482 | return NULL; | |
36483 | } | |
36484 | ||
36485 | ||
36486 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36487 | PyObject *resultobj; | |
36488 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36489 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36490 | bool result; |
4f89f6a3 | 36491 | wxGBPosition temp2 ; |
d14a1e28 RD |
36492 | PyObject * obj0 = 0 ; |
36493 | PyObject * obj1 = 0 ; | |
36494 | char *kwnames[] = { | |
22faec7d | 36495 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36496 | }; |
36497 | ||
36498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36501 | { |
36502 | arg2 = &temp2; | |
36503 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36504 | } | |
d14a1e28 RD |
36505 | { |
36506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36507 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36508 | |
36509 | wxPyEndAllowThreads(__tstate); | |
36510 | if (PyErr_Occurred()) SWIG_fail; | |
36511 | } | |
4f89f6a3 RD |
36512 | { |
36513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36514 | } | |
d14a1e28 RD |
36515 | return resultobj; |
36516 | fail: | |
36517 | return NULL; | |
36518 | } | |
36519 | ||
36520 | ||
36521 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36522 | PyObject *resultobj; | |
36523 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36524 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36525 | bool result; |
4f89f6a3 | 36526 | wxGBPosition temp2 ; |
d14a1e28 RD |
36527 | PyObject * obj0 = 0 ; |
36528 | PyObject * obj1 = 0 ; | |
36529 | char *kwnames[] = { | |
22faec7d | 36530 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36531 | }; |
36532 | ||
36533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36536 | { |
36537 | arg2 = &temp2; | |
36538 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36539 | } | |
d14a1e28 RD |
36540 | { |
36541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36542 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36543 | |
36544 | wxPyEndAllowThreads(__tstate); | |
36545 | if (PyErr_Occurred()) SWIG_fail; | |
36546 | } | |
4f89f6a3 RD |
36547 | { |
36548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36549 | } | |
d14a1e28 RD |
36550 | return resultobj; |
36551 | fail: | |
36552 | return NULL; | |
36553 | } | |
36554 | ||
36555 | ||
e811c8ce RD |
36556 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36557 | PyObject *resultobj; | |
36558 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36559 | int arg2 = (int) 0 ; | |
36560 | int arg3 = (int) 0 ; | |
36561 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36562 | PyObject * obj1 = 0 ; |
36563 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36564 | char *kwnames[] = { |
36565 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36566 | }; | |
36567 | ||
994141e6 | 36568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36571 | if (obj1) { |
15afbcd0 RD |
36572 | arg2 = (int) SWIG_AsInt(obj1); |
36573 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36574 | } |
36575 | if (obj2) { | |
15afbcd0 RD |
36576 | arg3 = (int) SWIG_AsInt(obj2); |
36577 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36578 | } |
e811c8ce RD |
36579 | { |
36580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36581 | wxGBPosition_Set(arg1,arg2,arg3); | |
36582 | ||
36583 | wxPyEndAllowThreads(__tstate); | |
36584 | if (PyErr_Occurred()) SWIG_fail; | |
36585 | } | |
36586 | Py_INCREF(Py_None); resultobj = Py_None; | |
36587 | return resultobj; | |
36588 | fail: | |
36589 | return NULL; | |
36590 | } | |
36591 | ||
36592 | ||
36593 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36594 | PyObject *resultobj; |
36595 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36596 | PyObject *result; | |
36597 | PyObject * obj0 = 0 ; | |
36598 | char *kwnames[] = { | |
36599 | (char *) "self", NULL | |
36600 | }; | |
36601 | ||
e811c8ce | 36602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36605 | { |
36606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36607 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36608 | |
36609 | wxPyEndAllowThreads(__tstate); | |
36610 | if (PyErr_Occurred()) SWIG_fail; | |
36611 | } | |
36612 | resultobj = result; | |
36613 | return resultobj; | |
36614 | fail: | |
36615 | return NULL; | |
36616 | } | |
36617 | ||
36618 | ||
36619 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36620 | PyObject *obj; | |
36621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36622 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36623 | Py_INCREF(obj); | |
36624 | return Py_BuildValue((char *)""); | |
36625 | } | |
36626 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36627 | PyObject *resultobj; | |
36628 | int arg1 = (int) 1 ; | |
36629 | int arg2 = (int) 1 ; | |
36630 | wxGBSpan *result; | |
994141e6 RD |
36631 | PyObject * obj0 = 0 ; |
36632 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36633 | char *kwnames[] = { |
36634 | (char *) "rowspan",(char *) "colspan", NULL | |
36635 | }; | |
36636 | ||
994141e6 RD |
36637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36638 | if (obj0) { | |
15afbcd0 RD |
36639 | arg1 = (int) SWIG_AsInt(obj0); |
36640 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36641 | } |
36642 | if (obj1) { | |
15afbcd0 RD |
36643 | arg2 = (int) SWIG_AsInt(obj1); |
36644 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36645 | } |
d14a1e28 RD |
36646 | { |
36647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36648 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36649 | ||
36650 | wxPyEndAllowThreads(__tstate); | |
36651 | if (PyErr_Occurred()) SWIG_fail; | |
36652 | } | |
15afbcd0 | 36653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36654 | return resultobj; |
36655 | fail: | |
36656 | return NULL; | |
36657 | } | |
36658 | ||
36659 | ||
36660 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36661 | PyObject *resultobj; | |
36662 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36663 | int result; | |
36664 | PyObject * obj0 = 0 ; | |
36665 | char *kwnames[] = { | |
36666 | (char *) "self", NULL | |
36667 | }; | |
36668 | ||
36669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36672 | { |
36673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36674 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36675 | ||
36676 | wxPyEndAllowThreads(__tstate); | |
36677 | if (PyErr_Occurred()) SWIG_fail; | |
36678 | } | |
15afbcd0 | 36679 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36680 | return resultobj; |
36681 | fail: | |
36682 | return NULL; | |
36683 | } | |
36684 | ||
36685 | ||
36686 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36687 | PyObject *resultobj; | |
36688 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36689 | int result; | |
36690 | PyObject * obj0 = 0 ; | |
36691 | char *kwnames[] = { | |
36692 | (char *) "self", NULL | |
36693 | }; | |
36694 | ||
36695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36698 | { |
36699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36700 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
36701 | ||
36702 | wxPyEndAllowThreads(__tstate); | |
36703 | if (PyErr_Occurred()) SWIG_fail; | |
36704 | } | |
15afbcd0 | 36705 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36706 | return resultobj; |
36707 | fail: | |
36708 | return NULL; | |
36709 | } | |
36710 | ||
36711 | ||
36712 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36713 | PyObject *resultobj; | |
36714 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36715 | int arg2 ; | |
36716 | PyObject * obj0 = 0 ; | |
994141e6 | 36717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36718 | char *kwnames[] = { |
36719 | (char *) "self",(char *) "rowspan", NULL | |
36720 | }; | |
36721 | ||
994141e6 | 36722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36725 | arg2 = (int) SWIG_AsInt(obj1); | |
36726 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36727 | { |
36728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36729 | (arg1)->SetRowspan(arg2); | |
36730 | ||
36731 | wxPyEndAllowThreads(__tstate); | |
36732 | if (PyErr_Occurred()) SWIG_fail; | |
36733 | } | |
36734 | Py_INCREF(Py_None); resultobj = Py_None; | |
36735 | return resultobj; | |
36736 | fail: | |
36737 | return NULL; | |
36738 | } | |
36739 | ||
36740 | ||
36741 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36742 | PyObject *resultobj; | |
36743 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36744 | int arg2 ; | |
36745 | PyObject * obj0 = 0 ; | |
994141e6 | 36746 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36747 | char *kwnames[] = { |
36748 | (char *) "self",(char *) "colspan", NULL | |
36749 | }; | |
36750 | ||
994141e6 | 36751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36754 | arg2 = (int) SWIG_AsInt(obj1); | |
36755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36756 | { |
36757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36758 | (arg1)->SetColspan(arg2); | |
36759 | ||
36760 | wxPyEndAllowThreads(__tstate); | |
36761 | if (PyErr_Occurred()) SWIG_fail; | |
36762 | } | |
36763 | Py_INCREF(Py_None); resultobj = Py_None; | |
36764 | return resultobj; | |
36765 | fail: | |
36766 | return NULL; | |
36767 | } | |
36768 | ||
36769 | ||
36770 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36771 | PyObject *resultobj; | |
36772 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36773 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36774 | bool result; |
4f89f6a3 | 36775 | wxGBSpan temp2 ; |
d14a1e28 RD |
36776 | PyObject * obj0 = 0 ; |
36777 | PyObject * obj1 = 0 ; | |
36778 | char *kwnames[] = { | |
22faec7d | 36779 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36780 | }; |
36781 | ||
36782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36785 | { |
36786 | arg2 = &temp2; | |
36787 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36788 | } | |
d14a1e28 RD |
36789 | { |
36790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36791 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36792 | |
36793 | wxPyEndAllowThreads(__tstate); | |
36794 | if (PyErr_Occurred()) SWIG_fail; | |
36795 | } | |
4f89f6a3 RD |
36796 | { |
36797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36798 | } | |
d14a1e28 RD |
36799 | return resultobj; |
36800 | fail: | |
36801 | return NULL; | |
36802 | } | |
36803 | ||
36804 | ||
36805 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36806 | PyObject *resultobj; | |
36807 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 36808 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 36809 | bool result; |
4f89f6a3 | 36810 | wxGBSpan temp2 ; |
d14a1e28 RD |
36811 | PyObject * obj0 = 0 ; |
36812 | PyObject * obj1 = 0 ; | |
36813 | char *kwnames[] = { | |
22faec7d | 36814 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36815 | }; |
36816 | ||
36817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36820 | { |
36821 | arg2 = &temp2; | |
36822 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
36823 | } | |
d14a1e28 RD |
36824 | { |
36825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36826 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
36827 | |
36828 | wxPyEndAllowThreads(__tstate); | |
36829 | if (PyErr_Occurred()) SWIG_fail; | |
36830 | } | |
4f89f6a3 RD |
36831 | { |
36832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36833 | } | |
d14a1e28 RD |
36834 | return resultobj; |
36835 | fail: | |
36836 | return NULL; | |
36837 | } | |
36838 | ||
36839 | ||
e811c8ce RD |
36840 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36841 | PyObject *resultobj; | |
36842 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36843 | int arg2 = (int) 1 ; | |
36844 | int arg3 = (int) 1 ; | |
36845 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36846 | PyObject * obj1 = 0 ; |
36847 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36848 | char *kwnames[] = { |
36849 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
36850 | }; | |
36851 | ||
994141e6 | 36852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36855 | if (obj1) { |
15afbcd0 RD |
36856 | arg2 = (int) SWIG_AsInt(obj1); |
36857 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36858 | } |
36859 | if (obj2) { | |
15afbcd0 RD |
36860 | arg3 = (int) SWIG_AsInt(obj2); |
36861 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36862 | } |
e811c8ce RD |
36863 | { |
36864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36865 | wxGBSpan_Set(arg1,arg2,arg3); | |
36866 | ||
36867 | wxPyEndAllowThreads(__tstate); | |
36868 | if (PyErr_Occurred()) SWIG_fail; | |
36869 | } | |
36870 | Py_INCREF(Py_None); resultobj = Py_None; | |
36871 | return resultobj; | |
36872 | fail: | |
36873 | return NULL; | |
36874 | } | |
36875 | ||
36876 | ||
36877 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36878 | PyObject *resultobj; |
36879 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36880 | PyObject *result; | |
36881 | PyObject * obj0 = 0 ; | |
36882 | char *kwnames[] = { | |
36883 | (char *) "self", NULL | |
36884 | }; | |
36885 | ||
e811c8ce | 36886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36889 | { |
36890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36891 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
36892 | |
36893 | wxPyEndAllowThreads(__tstate); | |
36894 | if (PyErr_Occurred()) SWIG_fail; | |
36895 | } | |
36896 | resultobj = result; | |
36897 | return resultobj; | |
36898 | fail: | |
36899 | return NULL; | |
36900 | } | |
36901 | ||
36902 | ||
36903 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
36904 | PyObject *obj; | |
36905 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36906 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
36907 | Py_INCREF(obj); | |
36908 | return Py_BuildValue((char *)""); | |
36909 | } | |
36910 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
36911 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
36912 | return 1; | |
36913 | } | |
36914 | ||
36915 | ||
36916 | static PyObject *_wrap_DefaultSpan_get() { | |
36917 | PyObject *pyobj; | |
36918 | ||
15afbcd0 | 36919 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
36920 | return pyobj; |
36921 | } | |
36922 | ||
36923 | ||
36924 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36925 | PyObject *resultobj; | |
36926 | wxGBSizerItem *result; | |
36927 | char *kwnames[] = { | |
36928 | NULL | |
36929 | }; | |
36930 | ||
36931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
36932 | { | |
36933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36934 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
36935 | ||
36936 | wxPyEndAllowThreads(__tstate); | |
36937 | if (PyErr_Occurred()) SWIG_fail; | |
36938 | } | |
15afbcd0 | 36939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36940 | return resultobj; |
36941 | fail: | |
36942 | return NULL; | |
36943 | } | |
36944 | ||
36945 | ||
36946 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36947 | PyObject *resultobj; | |
36948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
36949 | wxGBPosition *arg2 = 0 ; | |
36950 | wxGBSpan *arg3 = 0 ; | |
36951 | int arg4 ; | |
36952 | int arg5 ; | |
36953 | wxObject *arg6 = (wxObject *) 0 ; | |
36954 | wxGBSizerItem *result; | |
36955 | wxGBPosition temp2 ; | |
36956 | wxGBSpan temp3 ; | |
36957 | PyObject * obj0 = 0 ; | |
36958 | PyObject * obj1 = 0 ; | |
36959 | PyObject * obj2 = 0 ; | |
994141e6 RD |
36960 | PyObject * obj3 = 0 ; |
36961 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
36962 | PyObject * obj5 = 0 ; |
36963 | char *kwnames[] = { | |
36964 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
36965 | }; | |
36966 | ||
994141e6 | 36967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
36968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
36969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36970 | { |
36971 | arg2 = &temp2; | |
36972 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36973 | } | |
36974 | { | |
36975 | arg3 = &temp3; | |
36976 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
36977 | } | |
15afbcd0 RD |
36978 | arg4 = (int) SWIG_AsInt(obj3); |
36979 | if (PyErr_Occurred()) SWIG_fail; | |
36980 | arg5 = (int) SWIG_AsInt(obj4); | |
36981 | if (PyErr_Occurred()) SWIG_fail; | |
36982 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
36983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36984 | { |
36985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36986 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
36987 | ||
36988 | wxPyEndAllowThreads(__tstate); | |
36989 | if (PyErr_Occurred()) SWIG_fail; | |
36990 | } | |
15afbcd0 | 36991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
36992 | return resultobj; |
36993 | fail: | |
36994 | return NULL; | |
36995 | } | |
36996 | ||
36997 | ||
36998 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36999 | PyObject *resultobj; | |
37000 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37001 | wxGBPosition *arg2 = 0 ; | |
37002 | wxGBSpan *arg3 = 0 ; | |
37003 | int arg4 ; | |
37004 | int arg5 ; | |
37005 | wxObject *arg6 = (wxObject *) 0 ; | |
37006 | wxGBSizerItem *result; | |
37007 | wxGBPosition temp2 ; | |
37008 | wxGBSpan temp3 ; | |
37009 | PyObject * obj0 = 0 ; | |
37010 | PyObject * obj1 = 0 ; | |
37011 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37012 | PyObject * obj3 = 0 ; |
37013 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37014 | PyObject * obj5 = 0 ; |
37015 | char *kwnames[] = { | |
37016 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37017 | }; | |
37018 | ||
994141e6 | 37019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37022 | { |
37023 | arg2 = &temp2; | |
37024 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37025 | } | |
37026 | { | |
37027 | arg3 = &temp3; | |
37028 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37029 | } | |
15afbcd0 RD |
37030 | arg4 = (int) SWIG_AsInt(obj3); |
37031 | if (PyErr_Occurred()) SWIG_fail; | |
37032 | arg5 = (int) SWIG_AsInt(obj4); | |
37033 | if (PyErr_Occurred()) SWIG_fail; | |
37034 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37036 | { |
37037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37038 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37039 | ||
37040 | wxPyEndAllowThreads(__tstate); | |
37041 | if (PyErr_Occurred()) SWIG_fail; | |
37042 | } | |
15afbcd0 | 37043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37044 | return resultobj; |
37045 | fail: | |
37046 | return NULL; | |
37047 | } | |
37048 | ||
37049 | ||
37050 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37051 | PyObject *resultobj; | |
37052 | int arg1 ; | |
37053 | int arg2 ; | |
37054 | wxGBPosition *arg3 = 0 ; | |
37055 | wxGBSpan *arg4 = 0 ; | |
37056 | int arg5 ; | |
37057 | int arg6 ; | |
37058 | wxObject *arg7 = (wxObject *) 0 ; | |
37059 | wxGBSizerItem *result; | |
37060 | wxGBPosition temp3 ; | |
37061 | wxGBSpan temp4 ; | |
994141e6 RD |
37062 | PyObject * obj0 = 0 ; |
37063 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37064 | PyObject * obj2 = 0 ; |
37065 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37066 | PyObject * obj4 = 0 ; |
37067 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37068 | PyObject * obj6 = 0 ; |
37069 | char *kwnames[] = { | |
37070 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37071 | }; | |
37072 | ||
994141e6 | 37073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37074 | arg1 = (int) SWIG_AsInt(obj0); |
37075 | if (PyErr_Occurred()) SWIG_fail; | |
37076 | arg2 = (int) SWIG_AsInt(obj1); | |
37077 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37078 | { |
37079 | arg3 = &temp3; | |
37080 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37081 | } | |
37082 | { | |
37083 | arg4 = &temp4; | |
37084 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37085 | } | |
15afbcd0 RD |
37086 | arg5 = (int) SWIG_AsInt(obj4); |
37087 | if (PyErr_Occurred()) SWIG_fail; | |
37088 | arg6 = (int) SWIG_AsInt(obj5); | |
37089 | if (PyErr_Occurred()) SWIG_fail; | |
37090 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
37091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37092 | { |
37093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37094 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37095 | ||
37096 | wxPyEndAllowThreads(__tstate); | |
37097 | if (PyErr_Occurred()) SWIG_fail; | |
37098 | } | |
15afbcd0 | 37099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37100 | return resultobj; |
37101 | fail: | |
37102 | return NULL; | |
37103 | } | |
37104 | ||
37105 | ||
37106 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37107 | PyObject *resultobj; | |
37108 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37109 | wxGBPosition result; | |
37110 | PyObject * obj0 = 0 ; | |
37111 | char *kwnames[] = { | |
37112 | (char *) "self", NULL | |
37113 | }; | |
37114 | ||
37115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37118 | { |
37119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37120 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37121 | ||
37122 | wxPyEndAllowThreads(__tstate); | |
37123 | if (PyErr_Occurred()) SWIG_fail; | |
37124 | } | |
37125 | { | |
37126 | wxGBPosition * resultptr; | |
37127 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37128 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37129 | } |
37130 | return resultobj; | |
37131 | fail: | |
37132 | return NULL; | |
37133 | } | |
37134 | ||
37135 | ||
37136 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37137 | PyObject *resultobj; | |
37138 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37139 | wxGBSpan result; | |
37140 | PyObject * obj0 = 0 ; | |
37141 | char *kwnames[] = { | |
37142 | (char *) "self", NULL | |
37143 | }; | |
37144 | ||
37145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37148 | { |
37149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37150 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37151 | ||
37152 | wxPyEndAllowThreads(__tstate); | |
37153 | if (PyErr_Occurred()) SWIG_fail; | |
37154 | } | |
37155 | { | |
37156 | wxGBSpan * resultptr; | |
37157 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 37158 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37159 | } |
37160 | return resultobj; | |
37161 | fail: | |
37162 | return NULL; | |
37163 | } | |
37164 | ||
37165 | ||
37166 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37167 | PyObject *resultobj; | |
37168 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37169 | wxGBPosition *arg2 = 0 ; | |
37170 | bool result; | |
37171 | wxGBPosition temp2 ; | |
37172 | PyObject * obj0 = 0 ; | |
37173 | PyObject * obj1 = 0 ; | |
37174 | char *kwnames[] = { | |
37175 | (char *) "self",(char *) "pos", NULL | |
37176 | }; | |
37177 | ||
37178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37181 | { |
37182 | arg2 = &temp2; | |
37183 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37184 | } | |
37185 | { | |
37186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37187 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37188 | ||
37189 | wxPyEndAllowThreads(__tstate); | |
37190 | if (PyErr_Occurred()) SWIG_fail; | |
37191 | } | |
4f89f6a3 RD |
37192 | { |
37193 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37194 | } | |
d14a1e28 RD |
37195 | return resultobj; |
37196 | fail: | |
37197 | return NULL; | |
37198 | } | |
37199 | ||
37200 | ||
37201 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37202 | PyObject *resultobj; | |
37203 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37204 | wxGBSpan *arg2 = 0 ; | |
37205 | bool result; | |
37206 | wxGBSpan temp2 ; | |
37207 | PyObject * obj0 = 0 ; | |
37208 | PyObject * obj1 = 0 ; | |
37209 | char *kwnames[] = { | |
37210 | (char *) "self",(char *) "span", NULL | |
37211 | }; | |
37212 | ||
37213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37216 | { |
37217 | arg2 = &temp2; | |
37218 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37219 | } | |
37220 | { | |
37221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37222 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37223 | ||
37224 | wxPyEndAllowThreads(__tstate); | |
37225 | if (PyErr_Occurred()) SWIG_fail; | |
37226 | } | |
4f89f6a3 RD |
37227 | { |
37228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37229 | } | |
d14a1e28 RD |
37230 | return resultobj; |
37231 | fail: | |
37232 | return NULL; | |
37233 | } | |
37234 | ||
37235 | ||
37236 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
37237 | PyObject *resultobj; | |
37238 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37239 | wxGBSizerItem *arg2 = 0 ; | |
37240 | bool result; | |
37241 | PyObject * obj0 = 0 ; | |
37242 | PyObject * obj1 = 0 ; | |
37243 | ||
37244 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37249 | SWIG_fail; | |
d14a1e28 | 37250 | if (arg2 == NULL) { |
15afbcd0 RD |
37251 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37252 | SWIG_fail; | |
d14a1e28 RD |
37253 | } |
37254 | { | |
37255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37256 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37257 | ||
37258 | wxPyEndAllowThreads(__tstate); | |
37259 | if (PyErr_Occurred()) SWIG_fail; | |
37260 | } | |
4f89f6a3 RD |
37261 | { |
37262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37263 | } | |
d14a1e28 RD |
37264 | return resultobj; |
37265 | fail: | |
37266 | return NULL; | |
37267 | } | |
37268 | ||
37269 | ||
37270 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37271 | PyObject *resultobj; | |
37272 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37273 | wxGBPosition *arg2 = 0 ; | |
37274 | wxGBSpan *arg3 = 0 ; | |
37275 | bool result; | |
37276 | wxGBPosition temp2 ; | |
37277 | wxGBSpan temp3 ; | |
37278 | PyObject * obj0 = 0 ; | |
37279 | PyObject * obj1 = 0 ; | |
37280 | PyObject * obj2 = 0 ; | |
37281 | ||
37282 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37285 | { |
37286 | arg2 = &temp2; | |
37287 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37288 | } | |
37289 | { | |
37290 | arg3 = &temp3; | |
37291 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37292 | } | |
37293 | { | |
37294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37295 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37296 | ||
37297 | wxPyEndAllowThreads(__tstate); | |
37298 | if (PyErr_Occurred()) SWIG_fail; | |
37299 | } | |
4f89f6a3 RD |
37300 | { |
37301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37302 | } | |
d14a1e28 RD |
37303 | return resultobj; |
37304 | fail: | |
37305 | return NULL; | |
37306 | } | |
37307 | ||
37308 | ||
37309 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37310 | int argc; | |
37311 | PyObject *argv[4]; | |
37312 | int ii; | |
37313 | ||
37314 | argc = PyObject_Length(args); | |
37315 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37316 | argv[ii] = PyTuple_GetItem(args,ii); | |
37317 | } | |
37318 | if (argc == 2) { | |
37319 | int _v; | |
37320 | { | |
37321 | void *ptr; | |
15afbcd0 | 37322 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37323 | _v = 0; |
37324 | PyErr_Clear(); | |
37325 | } else { | |
37326 | _v = 1; | |
37327 | } | |
37328 | } | |
37329 | if (_v) { | |
37330 | { | |
37331 | void *ptr; | |
15afbcd0 | 37332 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37333 | _v = 0; |
37334 | PyErr_Clear(); | |
37335 | } else { | |
37336 | _v = 1; | |
37337 | } | |
37338 | } | |
37339 | if (_v) { | |
37340 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37341 | } | |
37342 | } | |
37343 | } | |
37344 | if (argc == 3) { | |
37345 | int _v; | |
37346 | { | |
37347 | void *ptr; | |
15afbcd0 | 37348 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37349 | _v = 0; |
37350 | PyErr_Clear(); | |
37351 | } else { | |
37352 | _v = 1; | |
37353 | } | |
37354 | } | |
37355 | if (_v) { | |
37356 | { | |
37357 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37358 | } | |
37359 | if (_v) { | |
37360 | { | |
37361 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37362 | } | |
37363 | if (_v) { | |
37364 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
37365 | } | |
37366 | } | |
37367 | } | |
37368 | } | |
37369 | ||
37370 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
37371 | return NULL; | |
37372 | } | |
37373 | ||
37374 | ||
37375 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37376 | PyObject *resultobj; | |
37377 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37378 | int *arg2 = 0 ; | |
37379 | int *arg3 = 0 ; | |
37380 | PyObject * obj0 = 0 ; | |
37381 | PyObject * obj1 = 0 ; | |
37382 | PyObject * obj2 = 0 ; | |
37383 | char *kwnames[] = { | |
37384 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37385 | }; | |
37386 | ||
37387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
37391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37392 | SWIG_fail; | |
d14a1e28 | 37393 | if (arg2 == NULL) { |
15afbcd0 RD |
37394 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37395 | SWIG_fail; | |
d14a1e28 | 37396 | } |
15afbcd0 RD |
37397 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
37398 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37399 | SWIG_fail; | |
d14a1e28 | 37400 | if (arg3 == NULL) { |
15afbcd0 RD |
37401 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37402 | SWIG_fail; | |
d14a1e28 RD |
37403 | } |
37404 | { | |
37405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37406 | (arg1)->GetEndPos(*arg2,*arg3); | |
37407 | ||
37408 | wxPyEndAllowThreads(__tstate); | |
37409 | if (PyErr_Occurred()) SWIG_fail; | |
37410 | } | |
37411 | Py_INCREF(Py_None); resultobj = Py_None; | |
37412 | return resultobj; | |
37413 | fail: | |
37414 | return NULL; | |
37415 | } | |
37416 | ||
37417 | ||
37418 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37419 | PyObject *resultobj; | |
37420 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37421 | wxGridBagSizer *result; | |
37422 | PyObject * obj0 = 0 ; | |
37423 | char *kwnames[] = { | |
37424 | (char *) "self", NULL | |
37425 | }; | |
37426 | ||
37427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37430 | { |
37431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37432 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37433 | ||
37434 | wxPyEndAllowThreads(__tstate); | |
37435 | if (PyErr_Occurred()) SWIG_fail; | |
37436 | } | |
15afbcd0 | 37437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37438 | return resultobj; |
37439 | fail: | |
37440 | return NULL; | |
37441 | } | |
37442 | ||
37443 | ||
37444 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37445 | PyObject *resultobj; | |
37446 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37447 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37448 | PyObject * obj0 = 0 ; | |
37449 | PyObject * obj1 = 0 ; | |
37450 | char *kwnames[] = { | |
37451 | (char *) "self",(char *) "sizer", NULL | |
37452 | }; | |
37453 | ||
37454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37457 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37459 | { |
37460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37461 | (arg1)->SetGBSizer(arg2); | |
37462 | ||
37463 | wxPyEndAllowThreads(__tstate); | |
37464 | if (PyErr_Occurred()) SWIG_fail; | |
37465 | } | |
37466 | Py_INCREF(Py_None); resultobj = Py_None; | |
37467 | return resultobj; | |
37468 | fail: | |
37469 | return NULL; | |
37470 | } | |
37471 | ||
37472 | ||
37473 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37474 | PyObject *obj; | |
37475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37476 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37477 | Py_INCREF(obj); | |
37478 | return Py_BuildValue((char *)""); | |
37479 | } | |
37480 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37481 | PyObject *resultobj; | |
37482 | int arg1 = (int) 0 ; | |
37483 | int arg2 = (int) 0 ; | |
37484 | wxGridBagSizer *result; | |
994141e6 RD |
37485 | PyObject * obj0 = 0 ; |
37486 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37487 | char *kwnames[] = { |
37488 | (char *) "vgap",(char *) "hgap", NULL | |
37489 | }; | |
37490 | ||
994141e6 RD |
37491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37492 | if (obj0) { | |
15afbcd0 RD |
37493 | arg1 = (int) SWIG_AsInt(obj0); |
37494 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37495 | } |
37496 | if (obj1) { | |
15afbcd0 RD |
37497 | arg2 = (int) SWIG_AsInt(obj1); |
37498 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37499 | } |
d14a1e28 RD |
37500 | { |
37501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37502 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37503 | ||
37504 | wxPyEndAllowThreads(__tstate); | |
37505 | if (PyErr_Occurred()) SWIG_fail; | |
37506 | } | |
15afbcd0 | 37507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37508 | return resultobj; |
37509 | fail: | |
37510 | return NULL; | |
37511 | } | |
37512 | ||
37513 | ||
37514 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37515 | PyObject *resultobj; | |
37516 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37517 | PyObject *arg2 = (PyObject *) 0 ; | |
37518 | wxGBPosition *arg3 = 0 ; | |
37519 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37520 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37521 | int arg5 = (int) 0 ; | |
37522 | int arg6 = (int) 0 ; | |
37523 | PyObject *arg7 = (PyObject *) NULL ; | |
37524 | bool result; | |
37525 | wxGBPosition temp3 ; | |
37526 | wxGBSpan temp4 ; | |
37527 | PyObject * obj0 = 0 ; | |
37528 | PyObject * obj1 = 0 ; | |
37529 | PyObject * obj2 = 0 ; | |
37530 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37531 | PyObject * obj4 = 0 ; |
37532 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37533 | PyObject * obj6 = 0 ; |
37534 | char *kwnames[] = { | |
37535 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37536 | }; | |
37537 | ||
994141e6 | 37538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37541 | arg2 = obj1; |
37542 | { | |
37543 | arg3 = &temp3; | |
37544 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37545 | } | |
37546 | if (obj3) { | |
37547 | { | |
37548 | arg4 = &temp4; | |
37549 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37550 | } | |
37551 | } | |
994141e6 | 37552 | if (obj4) { |
15afbcd0 RD |
37553 | arg5 = (int) SWIG_AsInt(obj4); |
37554 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37555 | } |
37556 | if (obj5) { | |
15afbcd0 RD |
37557 | arg6 = (int) SWIG_AsInt(obj5); |
37558 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37559 | } |
d14a1e28 RD |
37560 | if (obj6) { |
37561 | arg7 = obj6; | |
37562 | } | |
37563 | { | |
37564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37565 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37566 | ||
37567 | wxPyEndAllowThreads(__tstate); | |
37568 | if (PyErr_Occurred()) SWIG_fail; | |
37569 | } | |
4f89f6a3 RD |
37570 | { |
37571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37572 | } | |
d14a1e28 RD |
37573 | return resultobj; |
37574 | fail: | |
37575 | return NULL; | |
37576 | } | |
37577 | ||
37578 | ||
37579 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37580 | PyObject *resultobj; | |
37581 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37582 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37583 | bool result; | |
37584 | PyObject * obj0 = 0 ; | |
37585 | PyObject * obj1 = 0 ; | |
37586 | char *kwnames[] = { | |
37587 | (char *) "self",(char *) "item", NULL | |
37588 | }; | |
37589 | ||
37590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37595 | { |
37596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37597 | result = (bool)(arg1)->Add(arg2); | |
37598 | ||
37599 | wxPyEndAllowThreads(__tstate); | |
37600 | if (PyErr_Occurred()) SWIG_fail; | |
37601 | } | |
4f89f6a3 RD |
37602 | { |
37603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37604 | } | |
d14a1e28 RD |
37605 | return resultobj; |
37606 | fail: | |
37607 | return NULL; | |
37608 | } | |
37609 | ||
37610 | ||
37611 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37612 | PyObject *resultobj; | |
37613 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37614 | wxSize result; | |
37615 | PyObject * obj0 = 0 ; | |
37616 | char *kwnames[] = { | |
37617 | (char *) "self", NULL | |
37618 | }; | |
37619 | ||
37620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37623 | { |
37624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37625 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37626 | ||
37627 | wxPyEndAllowThreads(__tstate); | |
37628 | if (PyErr_Occurred()) SWIG_fail; | |
37629 | } | |
37630 | { | |
37631 | wxSize * resultptr; | |
37632 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 37633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37634 | } |
37635 | return resultobj; | |
37636 | fail: | |
37637 | return NULL; | |
37638 | } | |
37639 | ||
37640 | ||
37641 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37642 | PyObject *resultobj; | |
37643 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37644 | wxSize *arg2 = 0 ; | |
37645 | wxSize temp2 ; | |
37646 | PyObject * obj0 = 0 ; | |
37647 | PyObject * obj1 = 0 ; | |
37648 | char *kwnames[] = { | |
37649 | (char *) "self",(char *) "sz", NULL | |
37650 | }; | |
37651 | ||
37652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37655 | { |
37656 | arg2 = &temp2; | |
37657 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37658 | } | |
37659 | { | |
37660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37661 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37662 | ||
37663 | wxPyEndAllowThreads(__tstate); | |
37664 | if (PyErr_Occurred()) SWIG_fail; | |
37665 | } | |
37666 | Py_INCREF(Py_None); resultobj = Py_None; | |
37667 | return resultobj; | |
37668 | fail: | |
37669 | return NULL; | |
37670 | } | |
37671 | ||
37672 | ||
37673 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37674 | PyObject *resultobj; | |
37675 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37676 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37677 | wxGBPosition result; | |
37678 | PyObject * obj0 = 0 ; | |
37679 | PyObject * obj1 = 0 ; | |
37680 | ||
37681 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37684 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37686 | { |
37687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37688 | result = (arg1)->GetItemPosition(arg2); | |
37689 | ||
37690 | wxPyEndAllowThreads(__tstate); | |
37691 | if (PyErr_Occurred()) SWIG_fail; | |
37692 | } | |
37693 | { | |
37694 | wxGBPosition * resultptr; | |
37695 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37696 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37697 | } |
37698 | return resultobj; | |
37699 | fail: | |
37700 | return NULL; | |
37701 | } | |
37702 | ||
37703 | ||
37704 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37705 | PyObject *resultobj; | |
37706 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37707 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37708 | wxGBPosition result; | |
37709 | PyObject * obj0 = 0 ; | |
37710 | PyObject * obj1 = 0 ; | |
37711 | ||
37712 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37715 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37717 | { |
37718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37719 | result = (arg1)->GetItemPosition(arg2); | |
37720 | ||
37721 | wxPyEndAllowThreads(__tstate); | |
37722 | if (PyErr_Occurred()) SWIG_fail; | |
37723 | } | |
37724 | { | |
37725 | wxGBPosition * resultptr; | |
37726 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37727 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37728 | } |
37729 | return resultobj; | |
37730 | fail: | |
37731 | return NULL; | |
37732 | } | |
37733 | ||
37734 | ||
37735 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37736 | PyObject *resultobj; | |
37737 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37738 | size_t arg2 ; | |
37739 | wxGBPosition result; | |
37740 | PyObject * obj0 = 0 ; | |
37741 | PyObject * obj1 = 0 ; | |
37742 | ||
37743 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37746 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37748 | { |
37749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37750 | result = (arg1)->GetItemPosition(arg2); | |
37751 | ||
37752 | wxPyEndAllowThreads(__tstate); | |
37753 | if (PyErr_Occurred()) SWIG_fail; | |
37754 | } | |
37755 | { | |
37756 | wxGBPosition * resultptr; | |
37757 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37759 | } |
37760 | return resultobj; | |
37761 | fail: | |
37762 | return NULL; | |
37763 | } | |
37764 | ||
37765 | ||
37766 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
37767 | int argc; | |
37768 | PyObject *argv[3]; | |
37769 | int ii; | |
37770 | ||
37771 | argc = PyObject_Length(args); | |
37772 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
37773 | argv[ii] = PyTuple_GetItem(args,ii); | |
37774 | } | |
37775 | if (argc == 2) { | |
37776 | int _v; | |
37777 | { | |
37778 | void *ptr; | |
15afbcd0 | 37779 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37780 | _v = 0; |
37781 | PyErr_Clear(); | |
37782 | } else { | |
37783 | _v = 1; | |
37784 | } | |
37785 | } | |
37786 | if (_v) { | |
37787 | { | |
37788 | void *ptr; | |
15afbcd0 | 37789 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37790 | _v = 0; |
37791 | PyErr_Clear(); | |
37792 | } else { | |
37793 | _v = 1; | |
37794 | } | |
37795 | } | |
37796 | if (_v) { | |
37797 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
37798 | } | |
37799 | } | |
37800 | } | |
37801 | if (argc == 2) { | |
37802 | int _v; | |
37803 | { | |
37804 | void *ptr; | |
15afbcd0 | 37805 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37806 | _v = 0; |
37807 | PyErr_Clear(); | |
37808 | } else { | |
37809 | _v = 1; | |
37810 | } | |
37811 | } | |
37812 | if (_v) { | |
37813 | { | |
37814 | void *ptr; | |
15afbcd0 | 37815 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
37816 | _v = 0; |
37817 | PyErr_Clear(); | |
37818 | } else { | |
37819 | _v = 1; | |
37820 | } | |
37821 | } | |
37822 | if (_v) { | |
37823 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
37824 | } | |
37825 | } | |
37826 | } | |
37827 | if (argc == 2) { | |
37828 | int _v; | |
37829 | { | |
37830 | void *ptr; | |
15afbcd0 | 37831 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37832 | _v = 0; |
37833 | PyErr_Clear(); | |
37834 | } else { | |
37835 | _v = 1; | |
37836 | } | |
37837 | } | |
37838 | if (_v) { | |
15afbcd0 | 37839 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
37840 | if (_v) { |
37841 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
37842 | } | |
37843 | } | |
37844 | } | |
37845 | ||
37846 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
37847 | return NULL; | |
37848 | } | |
37849 | ||
37850 | ||
37851 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37852 | PyObject *resultobj; | |
37853 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37855 | wxGBPosition *arg3 = 0 ; | |
37856 | bool result; | |
37857 | wxGBPosition temp3 ; | |
37858 | PyObject * obj0 = 0 ; | |
37859 | PyObject * obj1 = 0 ; | |
37860 | PyObject * obj2 = 0 ; | |
37861 | ||
37862 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37867 | { |
37868 | arg3 = &temp3; | |
37869 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37870 | } | |
37871 | { | |
37872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37873 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37874 | ||
37875 | wxPyEndAllowThreads(__tstate); | |
37876 | if (PyErr_Occurred()) SWIG_fail; | |
37877 | } | |
4f89f6a3 RD |
37878 | { |
37879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37880 | } | |
d14a1e28 RD |
37881 | return resultobj; |
37882 | fail: | |
37883 | return NULL; | |
37884 | } | |
37885 | ||
37886 | ||
37887 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37888 | PyObject *resultobj; | |
37889 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37890 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37891 | wxGBPosition *arg3 = 0 ; | |
37892 | bool result; | |
37893 | wxGBPosition temp3 ; | |
37894 | PyObject * obj0 = 0 ; | |
37895 | PyObject * obj1 = 0 ; | |
37896 | PyObject * obj2 = 0 ; | |
37897 | ||
37898 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37903 | { |
37904 | arg3 = &temp3; | |
37905 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37906 | } | |
37907 | { | |
37908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37909 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37910 | ||
37911 | wxPyEndAllowThreads(__tstate); | |
37912 | if (PyErr_Occurred()) SWIG_fail; | |
37913 | } | |
4f89f6a3 RD |
37914 | { |
37915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37916 | } | |
d14a1e28 RD |
37917 | return resultobj; |
37918 | fail: | |
37919 | return NULL; | |
37920 | } | |
37921 | ||
37922 | ||
37923 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
37924 | PyObject *resultobj; | |
37925 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37926 | size_t arg2 ; | |
37927 | wxGBPosition *arg3 = 0 ; | |
37928 | bool result; | |
37929 | wxGBPosition temp3 ; | |
37930 | PyObject * obj0 = 0 ; | |
37931 | PyObject * obj1 = 0 ; | |
37932 | PyObject * obj2 = 0 ; | |
37933 | ||
37934 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37937 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
37938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37939 | { |
37940 | arg3 = &temp3; | |
37941 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37942 | } | |
37943 | { | |
37944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37945 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
37946 | ||
37947 | wxPyEndAllowThreads(__tstate); | |
37948 | if (PyErr_Occurred()) SWIG_fail; | |
37949 | } | |
4f89f6a3 RD |
37950 | { |
37951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37952 | } | |
d14a1e28 RD |
37953 | return resultobj; |
37954 | fail: | |
37955 | return NULL; | |
37956 | } | |
37957 | ||
37958 | ||
37959 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
37960 | int argc; | |
37961 | PyObject *argv[4]; | |
37962 | int ii; | |
37963 | ||
37964 | argc = PyObject_Length(args); | |
37965 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37966 | argv[ii] = PyTuple_GetItem(args,ii); | |
37967 | } | |
37968 | if (argc == 3) { | |
37969 | int _v; | |
37970 | { | |
37971 | void *ptr; | |
15afbcd0 | 37972 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
37973 | _v = 0; |
37974 | PyErr_Clear(); | |
37975 | } else { | |
37976 | _v = 1; | |
37977 | } | |
37978 | } | |
37979 | if (_v) { | |
37980 | { | |
37981 | void *ptr; | |
15afbcd0 | 37982 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
37983 | _v = 0; |
37984 | PyErr_Clear(); | |
37985 | } else { | |
37986 | _v = 1; | |
37987 | } | |
37988 | } | |
37989 | if (_v) { | |
37990 | { | |
37991 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
37992 | } | |
37993 | if (_v) { | |
37994 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
37995 | } | |
37996 | } | |
37997 | } | |
37998 | } | |
37999 | if (argc == 3) { | |
38000 | int _v; | |
38001 | { | |
38002 | void *ptr; | |
15afbcd0 | 38003 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38004 | _v = 0; |
38005 | PyErr_Clear(); | |
38006 | } else { | |
38007 | _v = 1; | |
38008 | } | |
38009 | } | |
38010 | if (_v) { | |
38011 | { | |
38012 | void *ptr; | |
15afbcd0 | 38013 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38014 | _v = 0; |
38015 | PyErr_Clear(); | |
38016 | } else { | |
38017 | _v = 1; | |
38018 | } | |
38019 | } | |
38020 | if (_v) { | |
38021 | { | |
38022 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38023 | } | |
38024 | if (_v) { | |
38025 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38026 | } | |
38027 | } | |
38028 | } | |
38029 | } | |
38030 | if (argc == 3) { | |
38031 | int _v; | |
38032 | { | |
38033 | void *ptr; | |
15afbcd0 | 38034 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38035 | _v = 0; |
38036 | PyErr_Clear(); | |
38037 | } else { | |
38038 | _v = 1; | |
38039 | } | |
38040 | } | |
38041 | if (_v) { | |
15afbcd0 | 38042 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38043 | if (_v) { |
38044 | { | |
38045 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38046 | } | |
38047 | if (_v) { | |
38048 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38049 | } | |
38050 | } | |
38051 | } | |
38052 | } | |
38053 | ||
38054 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38055 | return NULL; | |
38056 | } | |
38057 | ||
38058 | ||
38059 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38060 | PyObject *resultobj; | |
38061 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38062 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38063 | wxGBSpan result; | |
38064 | PyObject * obj0 = 0 ; | |
38065 | PyObject * obj1 = 0 ; | |
38066 | ||
38067 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38070 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38072 | { |
38073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38074 | result = (arg1)->GetItemSpan(arg2); | |
38075 | ||
38076 | wxPyEndAllowThreads(__tstate); | |
38077 | if (PyErr_Occurred()) SWIG_fail; | |
38078 | } | |
38079 | { | |
38080 | wxGBSpan * resultptr; | |
38081 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38082 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38083 | } |
38084 | return resultobj; | |
38085 | fail: | |
38086 | return NULL; | |
38087 | } | |
38088 | ||
38089 | ||
38090 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38091 | PyObject *resultobj; | |
38092 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38093 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38094 | wxGBSpan result; | |
38095 | PyObject * obj0 = 0 ; | |
38096 | PyObject * obj1 = 0 ; | |
38097 | ||
38098 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38101 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38103 | { |
38104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38105 | result = (arg1)->GetItemSpan(arg2); | |
38106 | ||
38107 | wxPyEndAllowThreads(__tstate); | |
38108 | if (PyErr_Occurred()) SWIG_fail; | |
38109 | } | |
38110 | { | |
38111 | wxGBSpan * resultptr; | |
38112 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38113 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38114 | } |
38115 | return resultobj; | |
38116 | fail: | |
38117 | return NULL; | |
38118 | } | |
38119 | ||
38120 | ||
38121 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38122 | PyObject *resultobj; | |
38123 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38124 | size_t arg2 ; | |
38125 | wxGBSpan result; | |
38126 | PyObject * obj0 = 0 ; | |
38127 | PyObject * obj1 = 0 ; | |
38128 | ||
38129 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38132 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38134 | { |
38135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38136 | result = (arg1)->GetItemSpan(arg2); | |
38137 | ||
38138 | wxPyEndAllowThreads(__tstate); | |
38139 | if (PyErr_Occurred()) SWIG_fail; | |
38140 | } | |
38141 | { | |
38142 | wxGBSpan * resultptr; | |
38143 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38144 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38145 | } |
38146 | return resultobj; | |
38147 | fail: | |
38148 | return NULL; | |
38149 | } | |
38150 | ||
38151 | ||
38152 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38153 | int argc; | |
38154 | PyObject *argv[3]; | |
38155 | int ii; | |
38156 | ||
38157 | argc = PyObject_Length(args); | |
38158 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38159 | argv[ii] = PyTuple_GetItem(args,ii); | |
38160 | } | |
38161 | if (argc == 2) { | |
38162 | int _v; | |
38163 | { | |
38164 | void *ptr; | |
15afbcd0 | 38165 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38166 | _v = 0; |
38167 | PyErr_Clear(); | |
38168 | } else { | |
38169 | _v = 1; | |
38170 | } | |
38171 | } | |
38172 | if (_v) { | |
38173 | { | |
38174 | void *ptr; | |
15afbcd0 | 38175 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38176 | _v = 0; |
38177 | PyErr_Clear(); | |
38178 | } else { | |
38179 | _v = 1; | |
38180 | } | |
38181 | } | |
38182 | if (_v) { | |
38183 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38184 | } | |
38185 | } | |
38186 | } | |
38187 | if (argc == 2) { | |
38188 | int _v; | |
38189 | { | |
38190 | void *ptr; | |
15afbcd0 | 38191 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38192 | _v = 0; |
38193 | PyErr_Clear(); | |
38194 | } else { | |
38195 | _v = 1; | |
38196 | } | |
38197 | } | |
38198 | if (_v) { | |
38199 | { | |
38200 | void *ptr; | |
15afbcd0 | 38201 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38202 | _v = 0; |
38203 | PyErr_Clear(); | |
38204 | } else { | |
38205 | _v = 1; | |
38206 | } | |
38207 | } | |
38208 | if (_v) { | |
38209 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38210 | } | |
38211 | } | |
38212 | } | |
38213 | if (argc == 2) { | |
38214 | int _v; | |
38215 | { | |
38216 | void *ptr; | |
15afbcd0 | 38217 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38218 | _v = 0; |
38219 | PyErr_Clear(); | |
38220 | } else { | |
38221 | _v = 1; | |
38222 | } | |
38223 | } | |
38224 | if (_v) { | |
15afbcd0 | 38225 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38226 | if (_v) { |
38227 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38228 | } | |
38229 | } | |
38230 | } | |
38231 | ||
38232 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38233 | return NULL; | |
38234 | } | |
38235 | ||
38236 | ||
38237 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38238 | PyObject *resultobj; | |
38239 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38240 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38241 | wxGBSpan *arg3 = 0 ; | |
38242 | bool result; | |
38243 | wxGBSpan temp3 ; | |
38244 | PyObject * obj0 = 0 ; | |
38245 | PyObject * obj1 = 0 ; | |
38246 | PyObject * obj2 = 0 ; | |
38247 | ||
38248 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38251 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38253 | { |
38254 | arg3 = &temp3; | |
38255 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38256 | } | |
38257 | { | |
38258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38259 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38260 | ||
38261 | wxPyEndAllowThreads(__tstate); | |
38262 | if (PyErr_Occurred()) SWIG_fail; | |
38263 | } | |
4f89f6a3 RD |
38264 | { |
38265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38266 | } | |
d14a1e28 RD |
38267 | return resultobj; |
38268 | fail: | |
38269 | return NULL; | |
38270 | } | |
38271 | ||
38272 | ||
38273 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38274 | PyObject *resultobj; | |
38275 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38276 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38277 | wxGBSpan *arg3 = 0 ; | |
38278 | bool result; | |
38279 | wxGBSpan temp3 ; | |
38280 | PyObject * obj0 = 0 ; | |
38281 | PyObject * obj1 = 0 ; | |
38282 | PyObject * obj2 = 0 ; | |
38283 | ||
38284 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38289 | { |
38290 | arg3 = &temp3; | |
38291 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38292 | } | |
38293 | { | |
38294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38295 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38296 | ||
38297 | wxPyEndAllowThreads(__tstate); | |
38298 | if (PyErr_Occurred()) SWIG_fail; | |
38299 | } | |
4f89f6a3 RD |
38300 | { |
38301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38302 | } | |
d14a1e28 RD |
38303 | return resultobj; |
38304 | fail: | |
38305 | return NULL; | |
38306 | } | |
38307 | ||
38308 | ||
38309 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38310 | PyObject *resultobj; | |
38311 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38312 | size_t arg2 ; | |
38313 | wxGBSpan *arg3 = 0 ; | |
38314 | bool result; | |
38315 | wxGBSpan temp3 ; | |
38316 | PyObject * obj0 = 0 ; | |
38317 | PyObject * obj1 = 0 ; | |
38318 | PyObject * obj2 = 0 ; | |
38319 | ||
38320 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38323 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38325 | { |
38326 | arg3 = &temp3; | |
38327 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38328 | } | |
38329 | { | |
38330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38331 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38332 | ||
38333 | wxPyEndAllowThreads(__tstate); | |
38334 | if (PyErr_Occurred()) SWIG_fail; | |
38335 | } | |
4f89f6a3 RD |
38336 | { |
38337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38338 | } | |
d14a1e28 RD |
38339 | return resultobj; |
38340 | fail: | |
38341 | return NULL; | |
38342 | } | |
38343 | ||
38344 | ||
38345 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38346 | int argc; | |
38347 | PyObject *argv[4]; | |
38348 | int ii; | |
38349 | ||
38350 | argc = PyObject_Length(args); | |
38351 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38352 | argv[ii] = PyTuple_GetItem(args,ii); | |
38353 | } | |
38354 | if (argc == 3) { | |
38355 | int _v; | |
38356 | { | |
38357 | void *ptr; | |
15afbcd0 | 38358 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38359 | _v = 0; |
38360 | PyErr_Clear(); | |
38361 | } else { | |
38362 | _v = 1; | |
38363 | } | |
38364 | } | |
38365 | if (_v) { | |
38366 | { | |
38367 | void *ptr; | |
15afbcd0 | 38368 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38369 | _v = 0; |
38370 | PyErr_Clear(); | |
38371 | } else { | |
38372 | _v = 1; | |
38373 | } | |
38374 | } | |
38375 | if (_v) { | |
38376 | { | |
38377 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38378 | } | |
38379 | if (_v) { | |
38380 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38381 | } | |
38382 | } | |
38383 | } | |
38384 | } | |
38385 | if (argc == 3) { | |
38386 | int _v; | |
38387 | { | |
38388 | void *ptr; | |
15afbcd0 | 38389 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38390 | _v = 0; |
38391 | PyErr_Clear(); | |
38392 | } else { | |
38393 | _v = 1; | |
38394 | } | |
38395 | } | |
38396 | if (_v) { | |
38397 | { | |
38398 | void *ptr; | |
15afbcd0 | 38399 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38400 | _v = 0; |
38401 | PyErr_Clear(); | |
38402 | } else { | |
38403 | _v = 1; | |
38404 | } | |
38405 | } | |
38406 | if (_v) { | |
38407 | { | |
38408 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38409 | } | |
38410 | if (_v) { | |
38411 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38412 | } | |
38413 | } | |
38414 | } | |
38415 | } | |
38416 | if (argc == 3) { | |
38417 | int _v; | |
38418 | { | |
38419 | void *ptr; | |
15afbcd0 | 38420 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38421 | _v = 0; |
38422 | PyErr_Clear(); | |
38423 | } else { | |
38424 | _v = 1; | |
38425 | } | |
38426 | } | |
38427 | if (_v) { | |
15afbcd0 | 38428 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38429 | if (_v) { |
38430 | { | |
38431 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38432 | } | |
38433 | if (_v) { | |
38434 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38435 | } | |
38436 | } | |
38437 | } | |
38438 | } | |
38439 | ||
38440 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38441 | return NULL; | |
38442 | } | |
38443 | ||
38444 | ||
38445 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38446 | PyObject *resultobj; | |
38447 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38448 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38449 | wxGBSizerItem *result; | |
38450 | PyObject * obj0 = 0 ; | |
38451 | PyObject * obj1 = 0 ; | |
38452 | ||
38453 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38458 | { |
38459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38460 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38461 | ||
38462 | wxPyEndAllowThreads(__tstate); | |
38463 | if (PyErr_Occurred()) SWIG_fail; | |
38464 | } | |
15afbcd0 | 38465 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38466 | return resultobj; |
38467 | fail: | |
38468 | return NULL; | |
38469 | } | |
38470 | ||
38471 | ||
38472 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38473 | PyObject *resultobj; | |
38474 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38475 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38476 | wxGBSizerItem *result; | |
38477 | PyObject * obj0 = 0 ; | |
38478 | PyObject * obj1 = 0 ; | |
38479 | ||
38480 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38483 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38485 | { |
38486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38487 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38488 | ||
38489 | wxPyEndAllowThreads(__tstate); | |
38490 | if (PyErr_Occurred()) SWIG_fail; | |
38491 | } | |
15afbcd0 | 38492 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38493 | return resultobj; |
38494 | fail: | |
38495 | return NULL; | |
38496 | } | |
38497 | ||
38498 | ||
38499 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38500 | int argc; | |
38501 | PyObject *argv[3]; | |
38502 | int ii; | |
38503 | ||
38504 | argc = PyObject_Length(args); | |
38505 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38506 | argv[ii] = PyTuple_GetItem(args,ii); | |
38507 | } | |
38508 | if (argc == 2) { | |
38509 | int _v; | |
38510 | { | |
38511 | void *ptr; | |
15afbcd0 | 38512 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38513 | _v = 0; |
38514 | PyErr_Clear(); | |
38515 | } else { | |
38516 | _v = 1; | |
38517 | } | |
38518 | } | |
38519 | if (_v) { | |
38520 | { | |
38521 | void *ptr; | |
15afbcd0 | 38522 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38523 | _v = 0; |
38524 | PyErr_Clear(); | |
38525 | } else { | |
38526 | _v = 1; | |
38527 | } | |
38528 | } | |
38529 | if (_v) { | |
38530 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38531 | } | |
38532 | } | |
38533 | } | |
38534 | if (argc == 2) { | |
38535 | int _v; | |
38536 | { | |
38537 | void *ptr; | |
15afbcd0 | 38538 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38539 | _v = 0; |
38540 | PyErr_Clear(); | |
38541 | } else { | |
38542 | _v = 1; | |
38543 | } | |
38544 | } | |
38545 | if (_v) { | |
38546 | { | |
38547 | void *ptr; | |
15afbcd0 | 38548 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38549 | _v = 0; |
38550 | PyErr_Clear(); | |
38551 | } else { | |
38552 | _v = 1; | |
38553 | } | |
38554 | } | |
38555 | if (_v) { | |
38556 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38557 | } | |
38558 | } | |
38559 | } | |
38560 | ||
38561 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38562 | return NULL; | |
38563 | } | |
38564 | ||
38565 | ||
38566 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38567 | PyObject *resultobj; | |
38568 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38569 | wxGBPosition *arg2 = 0 ; | |
38570 | wxGBSizerItem *result; | |
38571 | wxGBPosition temp2 ; | |
38572 | PyObject * obj0 = 0 ; | |
38573 | PyObject * obj1 = 0 ; | |
38574 | char *kwnames[] = { | |
38575 | (char *) "self",(char *) "pos", NULL | |
38576 | }; | |
38577 | ||
38578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38581 | { |
38582 | arg2 = &temp2; | |
38583 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38584 | } | |
38585 | { | |
38586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38587 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38588 | ||
38589 | wxPyEndAllowThreads(__tstate); | |
38590 | if (PyErr_Occurred()) SWIG_fail; | |
38591 | } | |
15afbcd0 | 38592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38593 | return resultobj; |
38594 | fail: | |
38595 | return NULL; | |
38596 | } | |
38597 | ||
38598 | ||
e811c8ce RD |
38599 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38600 | PyObject *resultobj; | |
38601 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38602 | wxPoint *arg2 = 0 ; | |
38603 | wxGBSizerItem *result; | |
38604 | wxPoint temp2 ; | |
38605 | PyObject * obj0 = 0 ; | |
38606 | PyObject * obj1 = 0 ; | |
38607 | char *kwnames[] = { | |
38608 | (char *) "self",(char *) "pt", NULL | |
38609 | }; | |
38610 | ||
38611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
38614 | { |
38615 | arg2 = &temp2; | |
38616 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38617 | } | |
38618 | { | |
38619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38620 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38621 | ||
38622 | wxPyEndAllowThreads(__tstate); | |
38623 | if (PyErr_Occurred()) SWIG_fail; | |
38624 | } | |
15afbcd0 | 38625 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
38626 | return resultobj; |
38627 | fail: | |
38628 | return NULL; | |
38629 | } | |
38630 | ||
38631 | ||
d14a1e28 RD |
38632 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
38633 | PyObject *resultobj; | |
38634 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38635 | wxObject *arg2 = (wxObject *) 0 ; | |
38636 | wxGBSizerItem *result; | |
38637 | PyObject * obj0 = 0 ; | |
38638 | PyObject * obj1 = 0 ; | |
38639 | char *kwnames[] = { | |
38640 | (char *) "self",(char *) "userData", NULL | |
38641 | }; | |
38642 | ||
38643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
38647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38648 | { |
38649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38650 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
38651 | ||
38652 | wxPyEndAllowThreads(__tstate); | |
38653 | if (PyErr_Occurred()) SWIG_fail; | |
38654 | } | |
15afbcd0 | 38655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38656 | return resultobj; |
38657 | fail: | |
38658 | return NULL; | |
38659 | } | |
38660 | ||
38661 | ||
38662 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38663 | PyObject *resultobj; | |
38664 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38665 | PyObject * obj0 = 0 ; | |
38666 | char *kwnames[] = { | |
38667 | (char *) "self", NULL | |
38668 | }; | |
38669 | ||
38670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38673 | { |
38674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38675 | (arg1)->RecalcSizes(); | |
38676 | ||
38677 | wxPyEndAllowThreads(__tstate); | |
38678 | if (PyErr_Occurred()) SWIG_fail; | |
38679 | } | |
38680 | Py_INCREF(Py_None); resultobj = Py_None; | |
38681 | return resultobj; | |
38682 | fail: | |
38683 | return NULL; | |
38684 | } | |
38685 | ||
38686 | ||
38687 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38688 | PyObject *resultobj; | |
38689 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38690 | wxSize result; | |
38691 | PyObject * obj0 = 0 ; | |
38692 | char *kwnames[] = { | |
38693 | (char *) "self", NULL | |
38694 | }; | |
38695 | ||
38696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38699 | { |
38700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38701 | result = (arg1)->CalcMin(); | |
38702 | ||
38703 | wxPyEndAllowThreads(__tstate); | |
38704 | if (PyErr_Occurred()) SWIG_fail; | |
38705 | } | |
38706 | { | |
38707 | wxSize * resultptr; | |
38708 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 38709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
38710 | } |
38711 | return resultobj; | |
38712 | fail: | |
38713 | return NULL; | |
38714 | } | |
38715 | ||
38716 | ||
38717 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
38718 | PyObject *resultobj; | |
38719 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38720 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38721 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38722 | bool result; | |
38723 | PyObject * obj0 = 0 ; | |
38724 | PyObject * obj1 = 0 ; | |
38725 | PyObject * obj2 = 0 ; | |
38726 | ||
38727 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 38732 | if (obj2) { |
15afbcd0 RD |
38733 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
38734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38735 | } |
38736 | { | |
38737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38738 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38739 | ||
38740 | wxPyEndAllowThreads(__tstate); | |
38741 | if (PyErr_Occurred()) SWIG_fail; | |
38742 | } | |
4f89f6a3 RD |
38743 | { |
38744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38745 | } | |
d14a1e28 RD |
38746 | return resultobj; |
38747 | fail: | |
38748 | return NULL; | |
38749 | } | |
38750 | ||
38751 | ||
38752 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
38753 | PyObject *resultobj; | |
38754 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38755 | wxGBPosition *arg2 = 0 ; | |
38756 | wxGBSpan *arg3 = 0 ; | |
38757 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38758 | bool result; | |
38759 | wxGBPosition temp2 ; | |
38760 | wxGBSpan temp3 ; | |
38761 | PyObject * obj0 = 0 ; | |
38762 | PyObject * obj1 = 0 ; | |
38763 | PyObject * obj2 = 0 ; | |
38764 | PyObject * obj3 = 0 ; | |
38765 | ||
38766 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
38767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38769 | { |
38770 | arg2 = &temp2; | |
38771 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38772 | } | |
38773 | { | |
38774 | arg3 = &temp3; | |
38775 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38776 | } | |
38777 | if (obj3) { | |
15afbcd0 RD |
38778 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38780 | } |
38781 | { | |
38782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38783 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38784 | ||
38785 | wxPyEndAllowThreads(__tstate); | |
38786 | if (PyErr_Occurred()) SWIG_fail; | |
38787 | } | |
4f89f6a3 RD |
38788 | { |
38789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38790 | } | |
d14a1e28 RD |
38791 | return resultobj; |
38792 | fail: | |
38793 | return NULL; | |
38794 | } | |
38795 | ||
38796 | ||
38797 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
38798 | int argc; | |
38799 | PyObject *argv[5]; | |
38800 | int ii; | |
38801 | ||
38802 | argc = PyObject_Length(args); | |
38803 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
38804 | argv[ii] = PyTuple_GetItem(args,ii); | |
38805 | } | |
38806 | if ((argc >= 2) && (argc <= 3)) { | |
38807 | int _v; | |
38808 | { | |
38809 | void *ptr; | |
15afbcd0 | 38810 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38811 | _v = 0; |
38812 | PyErr_Clear(); | |
38813 | } else { | |
38814 | _v = 1; | |
38815 | } | |
38816 | } | |
38817 | if (_v) { | |
38818 | { | |
38819 | void *ptr; | |
15afbcd0 | 38820 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38821 | _v = 0; |
38822 | PyErr_Clear(); | |
38823 | } else { | |
38824 | _v = 1; | |
38825 | } | |
38826 | } | |
38827 | if (_v) { | |
38828 | if (argc <= 2) { | |
38829 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38830 | } | |
38831 | { | |
38832 | void *ptr; | |
15afbcd0 | 38833 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38834 | _v = 0; |
38835 | PyErr_Clear(); | |
38836 | } else { | |
38837 | _v = 1; | |
38838 | } | |
38839 | } | |
38840 | if (_v) { | |
38841 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
38842 | } | |
38843 | } | |
38844 | } | |
38845 | } | |
38846 | if ((argc >= 3) && (argc <= 4)) { | |
38847 | int _v; | |
38848 | { | |
38849 | void *ptr; | |
15afbcd0 | 38850 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38851 | _v = 0; |
38852 | PyErr_Clear(); | |
38853 | } else { | |
38854 | _v = 1; | |
38855 | } | |
38856 | } | |
38857 | if (_v) { | |
38858 | { | |
38859 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38860 | } | |
38861 | if (_v) { | |
38862 | { | |
38863 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38864 | } | |
38865 | if (_v) { | |
38866 | if (argc <= 3) { | |
38867 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38868 | } | |
38869 | { | |
38870 | void *ptr; | |
15afbcd0 | 38871 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
38872 | _v = 0; |
38873 | PyErr_Clear(); | |
38874 | } else { | |
38875 | _v = 1; | |
38876 | } | |
38877 | } | |
38878 | if (_v) { | |
38879 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
38880 | } | |
38881 | } | |
38882 | } | |
38883 | } | |
38884 | } | |
38885 | ||
38886 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
38887 | return NULL; | |
38888 | } | |
38889 | ||
38890 | ||
38891 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
38892 | PyObject *obj; | |
38893 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38894 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
38895 | Py_INCREF(obj); | |
38896 | return Py_BuildValue((char *)""); | |
38897 | } | |
38898 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38899 | PyObject *resultobj; | |
38900 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38901 | int arg2 ; | |
38902 | wxWindow *arg3 = (wxWindow *) 0 ; | |
38903 | int arg4 ; | |
38904 | int arg5 = (int) 0 ; | |
38905 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
38906 | PyObject * obj0 = 0 ; | |
994141e6 | 38907 | PyObject * obj1 = 0 ; |
d14a1e28 | 38908 | PyObject * obj2 = 0 ; |
994141e6 RD |
38909 | PyObject * obj3 = 0 ; |
38910 | PyObject * obj4 = 0 ; | |
38911 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
38912 | char *kwnames[] = { |
38913 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
38914 | }; | |
38915 | ||
994141e6 | 38916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
38917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38919 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
38920 | if (PyErr_Occurred()) SWIG_fail; | |
38921 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
38922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38923 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
38924 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38925 | if (obj4) { |
15afbcd0 RD |
38926 | arg5 = (int) SWIG_AsInt(obj4); |
38927 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
38928 | } |
38929 | if (obj5) { | |
15afbcd0 RD |
38930 | arg6 = (int) SWIG_AsInt(obj5); |
38931 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38932 | } |
d14a1e28 RD |
38933 | { |
38934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38935 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
38936 | ||
38937 | wxPyEndAllowThreads(__tstate); | |
38938 | if (PyErr_Occurred()) SWIG_fail; | |
38939 | } | |
38940 | Py_INCREF(Py_None); resultobj = Py_None; | |
38941 | return resultobj; | |
38942 | fail: | |
38943 | return NULL; | |
38944 | } | |
38945 | ||
38946 | ||
38947 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38948 | PyObject *resultobj; | |
38949 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38950 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38951 | int arg3 = (int) 0 ; | |
38952 | PyObject * obj0 = 0 ; | |
38953 | PyObject * obj1 = 0 ; | |
994141e6 | 38954 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38955 | char *kwnames[] = { |
38956 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38957 | }; | |
38958 | ||
994141e6 | 38959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38962 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38964 | if (obj2) { |
15afbcd0 RD |
38965 | arg3 = (int) SWIG_AsInt(obj2); |
38966 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 38967 | } |
d14a1e28 RD |
38968 | { |
38969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38970 | (arg1)->LeftOf(arg2,arg3); | |
38971 | ||
38972 | wxPyEndAllowThreads(__tstate); | |
38973 | if (PyErr_Occurred()) SWIG_fail; | |
38974 | } | |
38975 | Py_INCREF(Py_None); resultobj = Py_None; | |
38976 | return resultobj; | |
38977 | fail: | |
38978 | return NULL; | |
38979 | } | |
38980 | ||
38981 | ||
38982 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38983 | PyObject *resultobj; | |
38984 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
38985 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38986 | int arg3 = (int) 0 ; | |
38987 | PyObject * obj0 = 0 ; | |
38988 | PyObject * obj1 = 0 ; | |
994141e6 | 38989 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
38990 | char *kwnames[] = { |
38991 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
38992 | }; | |
38993 | ||
994141e6 | 38994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
38996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 38999 | if (obj2) { |
15afbcd0 RD |
39000 | arg3 = (int) SWIG_AsInt(obj2); |
39001 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39002 | } |
d14a1e28 RD |
39003 | { |
39004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39005 | (arg1)->RightOf(arg2,arg3); | |
39006 | ||
39007 | wxPyEndAllowThreads(__tstate); | |
39008 | if (PyErr_Occurred()) SWIG_fail; | |
39009 | } | |
39010 | Py_INCREF(Py_None); resultobj = Py_None; | |
39011 | return resultobj; | |
39012 | fail: | |
39013 | return NULL; | |
39014 | } | |
39015 | ||
39016 | ||
39017 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39018 | PyObject *resultobj; | |
39019 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39020 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39021 | int arg3 = (int) 0 ; | |
39022 | PyObject * obj0 = 0 ; | |
39023 | PyObject * obj1 = 0 ; | |
994141e6 | 39024 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39025 | char *kwnames[] = { |
39026 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39027 | }; | |
39028 | ||
994141e6 | 39029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39034 | if (obj2) { |
15afbcd0 RD |
39035 | arg3 = (int) SWIG_AsInt(obj2); |
39036 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39037 | } |
d14a1e28 RD |
39038 | { |
39039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39040 | (arg1)->Above(arg2,arg3); | |
39041 | ||
39042 | wxPyEndAllowThreads(__tstate); | |
39043 | if (PyErr_Occurred()) SWIG_fail; | |
39044 | } | |
39045 | Py_INCREF(Py_None); resultobj = Py_None; | |
39046 | return resultobj; | |
39047 | fail: | |
39048 | return NULL; | |
39049 | } | |
39050 | ||
39051 | ||
39052 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39053 | PyObject *resultobj; | |
39054 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39055 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39056 | int arg3 = (int) 0 ; | |
39057 | PyObject * obj0 = 0 ; | |
39058 | PyObject * obj1 = 0 ; | |
994141e6 | 39059 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39060 | char *kwnames[] = { |
39061 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39062 | }; | |
39063 | ||
994141e6 | 39064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39069 | if (obj2) { |
15afbcd0 RD |
39070 | arg3 = (int) SWIG_AsInt(obj2); |
39071 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39072 | } |
d14a1e28 RD |
39073 | { |
39074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39075 | (arg1)->Below(arg2,arg3); | |
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_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39088 | PyObject *resultobj; | |
39089 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39090 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39091 | int arg3 ; | |
39092 | int arg4 = (int) 0 ; | |
39093 | PyObject * obj0 = 0 ; | |
39094 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39095 | PyObject * obj2 = 0 ; |
39096 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39097 | char *kwnames[] = { |
39098 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39099 | }; | |
39100 | ||
994141e6 | 39101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39106 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39107 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39108 | if (obj3) { |
15afbcd0 RD |
39109 | arg4 = (int) SWIG_AsInt(obj3); |
39110 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39111 | } |
d14a1e28 RD |
39112 | { |
39113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39114 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39115 | ||
39116 | wxPyEndAllowThreads(__tstate); | |
39117 | if (PyErr_Occurred()) SWIG_fail; | |
39118 | } | |
39119 | Py_INCREF(Py_None); resultobj = Py_None; | |
39120 | return resultobj; | |
39121 | fail: | |
39122 | return NULL; | |
39123 | } | |
39124 | ||
39125 | ||
39126 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39127 | PyObject *resultobj; | |
39128 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39129 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39130 | int arg3 ; | |
39131 | int arg4 ; | |
39132 | PyObject * obj0 = 0 ; | |
39133 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39134 | PyObject * obj2 = 0 ; |
39135 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39136 | char *kwnames[] = { |
39137 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39138 | }; | |
39139 | ||
994141e6 | 39140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39145 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39146 | if (PyErr_Occurred()) SWIG_fail; | |
39147 | arg4 = (int) SWIG_AsInt(obj3); | |
39148 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39149 | { |
39150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39151 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39152 | ||
39153 | wxPyEndAllowThreads(__tstate); | |
39154 | if (PyErr_Occurred()) SWIG_fail; | |
39155 | } | |
39156 | Py_INCREF(Py_None); resultobj = Py_None; | |
39157 | return resultobj; | |
39158 | fail: | |
39159 | return NULL; | |
39160 | } | |
39161 | ||
39162 | ||
39163 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39164 | PyObject *resultobj; | |
39165 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39166 | int arg2 ; | |
39167 | PyObject * obj0 = 0 ; | |
994141e6 | 39168 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39169 | char *kwnames[] = { |
39170 | (char *) "self",(char *) "val", NULL | |
39171 | }; | |
39172 | ||
994141e6 | 39173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39176 | arg2 = (int) SWIG_AsInt(obj1); | |
39177 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39178 | { |
39179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39180 | (arg1)->Absolute(arg2); | |
39181 | ||
39182 | wxPyEndAllowThreads(__tstate); | |
39183 | if (PyErr_Occurred()) SWIG_fail; | |
39184 | } | |
39185 | Py_INCREF(Py_None); resultobj = Py_None; | |
39186 | return resultobj; | |
39187 | fail: | |
39188 | return NULL; | |
39189 | } | |
39190 | ||
39191 | ||
39192 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39193 | PyObject *resultobj; | |
39194 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39195 | PyObject * obj0 = 0 ; | |
39196 | char *kwnames[] = { | |
39197 | (char *) "self", NULL | |
39198 | }; | |
39199 | ||
39200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39203 | { |
39204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39205 | (arg1)->Unconstrained(); | |
39206 | ||
39207 | wxPyEndAllowThreads(__tstate); | |
39208 | if (PyErr_Occurred()) SWIG_fail; | |
39209 | } | |
39210 | Py_INCREF(Py_None); resultobj = Py_None; | |
39211 | return resultobj; | |
39212 | fail: | |
39213 | return NULL; | |
39214 | } | |
39215 | ||
39216 | ||
39217 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39218 | PyObject *resultobj; | |
39219 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39220 | PyObject * obj0 = 0 ; | |
39221 | char *kwnames[] = { | |
39222 | (char *) "self", NULL | |
39223 | }; | |
39224 | ||
39225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39228 | { |
39229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39230 | (arg1)->AsIs(); | |
39231 | ||
39232 | wxPyEndAllowThreads(__tstate); | |
39233 | if (PyErr_Occurred()) SWIG_fail; | |
39234 | } | |
39235 | Py_INCREF(Py_None); resultobj = Py_None; | |
39236 | return resultobj; | |
39237 | fail: | |
39238 | return NULL; | |
39239 | } | |
39240 | ||
39241 | ||
39242 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39243 | PyObject *resultobj; | |
39244 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39245 | wxWindow *result; | |
39246 | PyObject * obj0 = 0 ; | |
39247 | char *kwnames[] = { | |
39248 | (char *) "self", NULL | |
39249 | }; | |
39250 | ||
39251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39254 | { |
39255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39256 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39257 | ||
39258 | wxPyEndAllowThreads(__tstate); | |
39259 | if (PyErr_Occurred()) SWIG_fail; | |
39260 | } | |
39261 | { | |
39262 | resultobj = wxPyMake_wxObject(result); | |
39263 | } | |
39264 | return resultobj; | |
39265 | fail: | |
39266 | return NULL; | |
39267 | } | |
39268 | ||
39269 | ||
39270 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39271 | PyObject *resultobj; | |
39272 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39273 | int result; | |
39274 | PyObject * obj0 = 0 ; | |
39275 | char *kwnames[] = { | |
39276 | (char *) "self", NULL | |
39277 | }; | |
39278 | ||
39279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39282 | { |
39283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39284 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39285 | ||
39286 | wxPyEndAllowThreads(__tstate); | |
39287 | if (PyErr_Occurred()) SWIG_fail; | |
39288 | } | |
15afbcd0 | 39289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39290 | return resultobj; |
39291 | fail: | |
39292 | return NULL; | |
39293 | } | |
39294 | ||
39295 | ||
39296 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39297 | PyObject *resultobj; | |
39298 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39299 | int arg2 ; | |
39300 | PyObject * obj0 = 0 ; | |
994141e6 | 39301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39302 | char *kwnames[] = { |
39303 | (char *) "self",(char *) "which", NULL | |
39304 | }; | |
39305 | ||
994141e6 | 39306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39309 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39311 | { |
39312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39313 | (arg1)->SetEdge((wxEdge )arg2); | |
39314 | ||
39315 | wxPyEndAllowThreads(__tstate); | |
39316 | if (PyErr_Occurred()) SWIG_fail; | |
39317 | } | |
39318 | Py_INCREF(Py_None); resultobj = Py_None; | |
39319 | return resultobj; | |
39320 | fail: | |
39321 | return NULL; | |
39322 | } | |
39323 | ||
39324 | ||
39325 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39326 | PyObject *resultobj; | |
39327 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39328 | int arg2 ; | |
39329 | PyObject * obj0 = 0 ; | |
994141e6 | 39330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39331 | char *kwnames[] = { |
39332 | (char *) "self",(char *) "v", NULL | |
39333 | }; | |
39334 | ||
994141e6 | 39335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39338 | arg2 = (int) SWIG_AsInt(obj1); | |
39339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39340 | { |
39341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39342 | (arg1)->SetValue(arg2); | |
39343 | ||
39344 | wxPyEndAllowThreads(__tstate); | |
39345 | if (PyErr_Occurred()) SWIG_fail; | |
39346 | } | |
39347 | Py_INCREF(Py_None); resultobj = Py_None; | |
39348 | return resultobj; | |
39349 | fail: | |
39350 | return NULL; | |
39351 | } | |
39352 | ||
39353 | ||
39354 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39355 | PyObject *resultobj; | |
39356 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39357 | int result; | |
39358 | PyObject * obj0 = 0 ; | |
39359 | char *kwnames[] = { | |
39360 | (char *) "self", NULL | |
39361 | }; | |
39362 | ||
39363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39366 | { |
39367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39368 | result = (int)(arg1)->GetMargin(); | |
39369 | ||
39370 | wxPyEndAllowThreads(__tstate); | |
39371 | if (PyErr_Occurred()) SWIG_fail; | |
39372 | } | |
15afbcd0 | 39373 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39374 | return resultobj; |
39375 | fail: | |
39376 | return NULL; | |
39377 | } | |
39378 | ||
39379 | ||
39380 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39381 | PyObject *resultobj; | |
39382 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39383 | int arg2 ; | |
39384 | PyObject * obj0 = 0 ; | |
994141e6 | 39385 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39386 | char *kwnames[] = { |
39387 | (char *) "self",(char *) "m", NULL | |
39388 | }; | |
39389 | ||
994141e6 | 39390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39393 | arg2 = (int) SWIG_AsInt(obj1); | |
39394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39395 | { |
39396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39397 | (arg1)->SetMargin(arg2); | |
39398 | ||
39399 | wxPyEndAllowThreads(__tstate); | |
39400 | if (PyErr_Occurred()) SWIG_fail; | |
39401 | } | |
39402 | Py_INCREF(Py_None); resultobj = Py_None; | |
39403 | return resultobj; | |
39404 | fail: | |
39405 | return NULL; | |
39406 | } | |
39407 | ||
39408 | ||
39409 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39410 | PyObject *resultobj; | |
39411 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39412 | int result; | |
39413 | PyObject * obj0 = 0 ; | |
39414 | char *kwnames[] = { | |
39415 | (char *) "self", NULL | |
39416 | }; | |
39417 | ||
39418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39421 | { |
39422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39423 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39424 | ||
39425 | wxPyEndAllowThreads(__tstate); | |
39426 | if (PyErr_Occurred()) SWIG_fail; | |
39427 | } | |
15afbcd0 | 39428 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39429 | return resultobj; |
39430 | fail: | |
39431 | return NULL; | |
39432 | } | |
39433 | ||
39434 | ||
39435 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39436 | PyObject *resultobj; | |
39437 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39438 | int result; | |
39439 | PyObject * obj0 = 0 ; | |
39440 | char *kwnames[] = { | |
39441 | (char *) "self", NULL | |
39442 | }; | |
39443 | ||
39444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39447 | { |
39448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39449 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39450 | ||
39451 | wxPyEndAllowThreads(__tstate); | |
39452 | if (PyErr_Occurred()) SWIG_fail; | |
39453 | } | |
15afbcd0 | 39454 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39455 | return resultobj; |
39456 | fail: | |
39457 | return NULL; | |
39458 | } | |
39459 | ||
39460 | ||
39461 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39462 | PyObject *resultobj; | |
39463 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39464 | int result; | |
39465 | PyObject * obj0 = 0 ; | |
39466 | char *kwnames[] = { | |
39467 | (char *) "self", NULL | |
39468 | }; | |
39469 | ||
39470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39473 | { |
39474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39475 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39476 | ||
39477 | wxPyEndAllowThreads(__tstate); | |
39478 | if (PyErr_Occurred()) SWIG_fail; | |
39479 | } | |
15afbcd0 | 39480 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39481 | return resultobj; |
39482 | fail: | |
39483 | return NULL; | |
39484 | } | |
39485 | ||
39486 | ||
39487 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39488 | PyObject *resultobj; | |
39489 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39490 | bool result; | |
39491 | PyObject * obj0 = 0 ; | |
39492 | char *kwnames[] = { | |
39493 | (char *) "self", NULL | |
39494 | }; | |
39495 | ||
39496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39499 | { |
39500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39501 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39502 | ||
39503 | wxPyEndAllowThreads(__tstate); | |
39504 | if (PyErr_Occurred()) SWIG_fail; | |
39505 | } | |
4f89f6a3 RD |
39506 | { |
39507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39508 | } | |
d14a1e28 RD |
39509 | return resultobj; |
39510 | fail: | |
39511 | return NULL; | |
39512 | } | |
39513 | ||
39514 | ||
39515 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39516 | PyObject *resultobj; | |
39517 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39518 | bool arg2 ; | |
39519 | PyObject * obj0 = 0 ; | |
39520 | PyObject * obj1 = 0 ; | |
39521 | char *kwnames[] = { | |
39522 | (char *) "self",(char *) "d", NULL | |
39523 | }; | |
39524 | ||
39525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39528 | arg2 = (bool) SWIG_AsBool(obj1); | |
39529 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39530 | { |
39531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39532 | (arg1)->SetDone(arg2); | |
39533 | ||
39534 | wxPyEndAllowThreads(__tstate); | |
39535 | if (PyErr_Occurred()) SWIG_fail; | |
39536 | } | |
39537 | Py_INCREF(Py_None); resultobj = Py_None; | |
39538 | return resultobj; | |
39539 | fail: | |
39540 | return NULL; | |
39541 | } | |
39542 | ||
39543 | ||
39544 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39545 | PyObject *resultobj; | |
39546 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39547 | int result; | |
39548 | PyObject * obj0 = 0 ; | |
39549 | char *kwnames[] = { | |
39550 | (char *) "self", NULL | |
39551 | }; | |
39552 | ||
39553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39556 | { |
39557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39558 | result = (int)(arg1)->GetRelationship(); | |
39559 | ||
39560 | wxPyEndAllowThreads(__tstate); | |
39561 | if (PyErr_Occurred()) SWIG_fail; | |
39562 | } | |
15afbcd0 | 39563 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39564 | return resultobj; |
39565 | fail: | |
39566 | return NULL; | |
39567 | } | |
39568 | ||
39569 | ||
39570 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39571 | PyObject *resultobj; | |
39572 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39573 | int arg2 ; | |
39574 | PyObject * obj0 = 0 ; | |
994141e6 | 39575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39576 | char *kwnames[] = { |
39577 | (char *) "self",(char *) "r", NULL | |
39578 | }; | |
39579 | ||
994141e6 | 39580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39583 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39584 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39585 | { |
39586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39587 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39588 | ||
39589 | wxPyEndAllowThreads(__tstate); | |
39590 | if (PyErr_Occurred()) SWIG_fail; | |
39591 | } | |
39592 | Py_INCREF(Py_None); resultobj = Py_None; | |
39593 | return resultobj; | |
39594 | fail: | |
39595 | return NULL; | |
39596 | } | |
39597 | ||
39598 | ||
39599 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39600 | PyObject *resultobj; | |
39601 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39602 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39603 | bool result; | |
39604 | PyObject * obj0 = 0 ; | |
39605 | PyObject * obj1 = 0 ; | |
39606 | char *kwnames[] = { | |
39607 | (char *) "self",(char *) "otherW", NULL | |
39608 | }; | |
39609 | ||
39610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39615 | { |
39616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39617 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39618 | ||
39619 | wxPyEndAllowThreads(__tstate); | |
39620 | if (PyErr_Occurred()) SWIG_fail; | |
39621 | } | |
4f89f6a3 RD |
39622 | { |
39623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39624 | } | |
d14a1e28 RD |
39625 | return resultobj; |
39626 | fail: | |
39627 | return NULL; | |
39628 | } | |
39629 | ||
39630 | ||
39631 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39632 | PyObject *resultobj; | |
39633 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39634 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39635 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39636 | bool result; | |
39637 | PyObject * obj0 = 0 ; | |
39638 | PyObject * obj1 = 0 ; | |
39639 | PyObject * obj2 = 0 ; | |
39640 | char *kwnames[] = { | |
39641 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39642 | }; | |
39643 | ||
39644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39649 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39651 | { |
39652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39653 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39654 | ||
39655 | wxPyEndAllowThreads(__tstate); | |
39656 | if (PyErr_Occurred()) SWIG_fail; | |
39657 | } | |
4f89f6a3 RD |
39658 | { |
39659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39660 | } | |
d14a1e28 RD |
39661 | return resultobj; |
39662 | fail: | |
39663 | return NULL; | |
39664 | } | |
39665 | ||
39666 | ||
39667 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39668 | PyObject *resultobj; | |
39669 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39670 | int arg2 ; | |
39671 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39672 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39673 | int result; | |
39674 | PyObject * obj0 = 0 ; | |
994141e6 | 39675 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39676 | PyObject * obj2 = 0 ; |
39677 | PyObject * obj3 = 0 ; | |
39678 | char *kwnames[] = { | |
39679 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39680 | }; | |
39681 | ||
994141e6 | 39682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39685 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39686 | if (PyErr_Occurred()) SWIG_fail; | |
39687 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39689 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39691 | { |
39692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39693 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39694 | ||
39695 | wxPyEndAllowThreads(__tstate); | |
39696 | if (PyErr_Occurred()) SWIG_fail; | |
39697 | } | |
15afbcd0 | 39698 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39699 | return resultobj; |
39700 | fail: | |
39701 | return NULL; | |
39702 | } | |
39703 | ||
39704 | ||
39705 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39706 | PyObject *obj; | |
39707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39708 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39709 | Py_INCREF(obj); | |
39710 | return Py_BuildValue((char *)""); | |
39711 | } | |
39712 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39713 | PyObject *resultobj; | |
39714 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39715 | wxIndividualLayoutConstraint *result; | |
39716 | PyObject * obj0 = 0 ; | |
39717 | char *kwnames[] = { | |
39718 | (char *) "self", NULL | |
39719 | }; | |
39720 | ||
39721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39724 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
39725 | ||
15afbcd0 | 39726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39727 | return resultobj; |
39728 | fail: | |
39729 | return NULL; | |
39730 | } | |
39731 | ||
39732 | ||
39733 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39734 | PyObject *resultobj; | |
39735 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39736 | wxIndividualLayoutConstraint *result; | |
39737 | PyObject * obj0 = 0 ; | |
39738 | char *kwnames[] = { | |
39739 | (char *) "self", NULL | |
39740 | }; | |
39741 | ||
39742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39745 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
39746 | ||
15afbcd0 | 39747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39748 | return resultobj; |
39749 | fail: | |
39750 | return NULL; | |
39751 | } | |
39752 | ||
39753 | ||
39754 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39755 | PyObject *resultobj; | |
39756 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39757 | wxIndividualLayoutConstraint *result; | |
39758 | PyObject * obj0 = 0 ; | |
39759 | char *kwnames[] = { | |
39760 | (char *) "self", NULL | |
39761 | }; | |
39762 | ||
39763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39766 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
39767 | ||
15afbcd0 | 39768 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39769 | return resultobj; |
39770 | fail: | |
39771 | return NULL; | |
39772 | } | |
39773 | ||
39774 | ||
39775 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39776 | PyObject *resultobj; | |
39777 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39778 | wxIndividualLayoutConstraint *result; | |
39779 | PyObject * obj0 = 0 ; | |
39780 | char *kwnames[] = { | |
39781 | (char *) "self", NULL | |
39782 | }; | |
39783 | ||
39784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39787 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39788 | ||
15afbcd0 | 39789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39790 | return resultobj; |
39791 | fail: | |
39792 | return NULL; | |
39793 | } | |
39794 | ||
39795 | ||
39796 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39797 | PyObject *resultobj; | |
39798 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39799 | wxIndividualLayoutConstraint *result; | |
39800 | PyObject * obj0 = 0 ; | |
39801 | char *kwnames[] = { | |
39802 | (char *) "self", NULL | |
39803 | }; | |
39804 | ||
39805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39808 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39809 | ||
15afbcd0 | 39810 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39811 | return resultobj; |
39812 | fail: | |
39813 | return NULL; | |
39814 | } | |
39815 | ||
39816 | ||
39817 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39818 | PyObject *resultobj; | |
39819 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39820 | wxIndividualLayoutConstraint *result; | |
39821 | PyObject * obj0 = 0 ; | |
39822 | char *kwnames[] = { | |
39823 | (char *) "self", NULL | |
39824 | }; | |
39825 | ||
39826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39829 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39830 | ||
15afbcd0 | 39831 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39832 | return resultobj; |
39833 | fail: | |
39834 | return NULL; | |
39835 | } | |
39836 | ||
39837 | ||
39838 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39839 | PyObject *resultobj; | |
39840 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39841 | wxIndividualLayoutConstraint *result; | |
39842 | PyObject * obj0 = 0 ; | |
39843 | char *kwnames[] = { | |
39844 | (char *) "self", NULL | |
39845 | }; | |
39846 | ||
39847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39850 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39851 | ||
15afbcd0 | 39852 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39853 | return resultobj; |
39854 | fail: | |
39855 | return NULL; | |
39856 | } | |
39857 | ||
39858 | ||
39859 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39860 | PyObject *resultobj; | |
39861 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39862 | wxIndividualLayoutConstraint *result; | |
39863 | PyObject * obj0 = 0 ; | |
39864 | char *kwnames[] = { | |
39865 | (char *) "self", NULL | |
39866 | }; | |
39867 | ||
39868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39871 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39872 | ||
15afbcd0 | 39873 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39874 | return resultobj; |
39875 | fail: | |
39876 | return NULL; | |
39877 | } | |
39878 | ||
39879 | ||
39880 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39881 | PyObject *resultobj; | |
39882 | wxLayoutConstraints *result; | |
39883 | char *kwnames[] = { | |
39884 | NULL | |
39885 | }; | |
39886 | ||
39887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39888 | { | |
39889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39890 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
39891 | ||
39892 | wxPyEndAllowThreads(__tstate); | |
39893 | if (PyErr_Occurred()) SWIG_fail; | |
39894 | } | |
15afbcd0 | 39895 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
39896 | return resultobj; |
39897 | fail: | |
39898 | return NULL; | |
39899 | } | |
39900 | ||
39901 | ||
39902 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39903 | PyObject *resultobj; | |
39904 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39905 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39906 | int *arg3 = (int *) 0 ; | |
39907 | bool result; | |
39908 | int temp3 ; | |
39909 | PyObject * obj0 = 0 ; | |
39910 | PyObject * obj1 = 0 ; | |
39911 | char *kwnames[] = { | |
39912 | (char *) "self",(char *) "win", NULL | |
39913 | }; | |
39914 | ||
39915 | arg3 = &temp3; | |
39916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39921 | { |
39922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39923 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
39924 | ||
39925 | wxPyEndAllowThreads(__tstate); | |
39926 | if (PyErr_Occurred()) SWIG_fail; | |
39927 | } | |
4f89f6a3 RD |
39928 | { |
39929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39930 | } | |
d14a1e28 RD |
39931 | { |
39932 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
39933 | resultobj = t_output_helper(resultobj,o); | |
39934 | } | |
39935 | return resultobj; | |
39936 | fail: | |
39937 | return NULL; | |
39938 | } | |
39939 | ||
39940 | ||
39941 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39942 | PyObject *resultobj; | |
39943 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39944 | bool result; | |
39945 | PyObject * obj0 = 0 ; | |
39946 | char *kwnames[] = { | |
39947 | (char *) "self", NULL | |
39948 | }; | |
39949 | ||
39950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39953 | { |
39954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39955 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
39956 | ||
39957 | wxPyEndAllowThreads(__tstate); | |
39958 | if (PyErr_Occurred()) SWIG_fail; | |
39959 | } | |
4f89f6a3 RD |
39960 | { |
39961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39962 | } | |
d14a1e28 RD |
39963 | return resultobj; |
39964 | fail: | |
39965 | return NULL; | |
39966 | } | |
39967 | ||
39968 | ||
39969 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
39970 | PyObject *obj; | |
39971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39972 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
39973 | Py_INCREF(obj); | |
39974 | return Py_BuildValue((char *)""); | |
39975 | } | |
39976 | static PyMethodDef SwigMethods[] = { | |
39977 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 39978 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
39979 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
39980 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
39981 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
39982 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
39983 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
39984 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
39985 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
39986 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
39987 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
39988 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
39989 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
39990 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
39991 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
39992 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
39993 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
39994 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
39995 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39996 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
39997 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
39998 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
39999 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, |
40000 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40001 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40002 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
40003 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40004 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40005 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40006 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40007 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40008 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40009 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
40010 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40011 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
40012 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40013 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 40014 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40015 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
40016 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40017 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40018 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40019 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40020 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40021 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40022 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40023 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40024 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40025 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40026 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40027 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40028 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40029 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40030 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
40031 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40032 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40033 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40034 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40035 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40036 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40037 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40038 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40039 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40040 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40041 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40042 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40043 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40044 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40045 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40046 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
40047 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
40048 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40049 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40050 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40051 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
40052 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40053 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40054 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40055 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40056 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40057 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40058 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40059 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40060 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40061 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40062 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40063 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40064 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40065 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40066 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40067 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40068 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40069 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40070 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40071 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40072 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40073 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40074 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40075 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40076 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40077 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40078 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40079 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40080 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40081 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
40082 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40083 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40084 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40085 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40086 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40087 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40088 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40089 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40091 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40099 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40103 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
40104 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40105 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40108 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40109 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
40110 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40111 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40112 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40118 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40119 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40120 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40121 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40122 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40123 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40124 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40125 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40126 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40128 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40130 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40138 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40139 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40140 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40151 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40153 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40156 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40157 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40160 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40161 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40162 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40167 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40173 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40174 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40183 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40189 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40190 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40191 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40193 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40197 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40212 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40213 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40217 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40218 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40219 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40223 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40233 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40237 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40239 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40243 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40246 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40247 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40248 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40254 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40260 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40267 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40270 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40271 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40272 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40274 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40276 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40278 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40280 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40282 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40284 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40286 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40288 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40290 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40299 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40302 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40304 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40311 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40312 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40313 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40320 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40322 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40325 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40328 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40330 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40331 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40340 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40342 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40345 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40351 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40357 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40375 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40379 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40381 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40385 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40399 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40402 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40407 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40408 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40414 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40419 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40420 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40426 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40427 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40428 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40429 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40437 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40460 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40461 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40466 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40471 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40472 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40476 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40478 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40479 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40480 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40481 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40482 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40483 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40485 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40488 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40492 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40495 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40496 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40498 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40500 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40505 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40513 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40517 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40520 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40522 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40526 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40529 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40532 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40533 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40543 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40545 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40548 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40550 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40554 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40558 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40566 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40569 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40572 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40576 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40582 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40583 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40586 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40588 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40593 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40613 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40614 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40622 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 40623 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40624 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40625 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40628 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40637 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40645 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40646 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40654 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40658 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40659 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, |
40660 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40668 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40669 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 RD |
40681 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40682 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40683 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40684 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40716 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, |
40717 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
d14a1e28 RD |
40718 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, |
40719 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 40723 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40724 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
40725 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40737 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
40738 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40744 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
40745 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40758 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40768 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, |
40769 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40772 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
40773 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 40798 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
74a57fcd RD |
40799 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
40800 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40801 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
40802 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 40821 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40822 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40823 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40832 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
40858 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40872 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40875 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
40930 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
40957 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40969 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40975 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
40978 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40979 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40981 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
40983 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40985 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
40986 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 40992 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40993 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, |
40994 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
40995 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
40998 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41011 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41012 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41017 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
41023 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41045 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41047 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41052 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41053 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
41072 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41073 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41076 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41079 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41080 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
41085 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
41090 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41102 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41103 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41105 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41110 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41113 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
41114 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41115 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
41116 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41118 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41123 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
41124 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41125 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
41126 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41133 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
41134 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41135 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
41136 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41137 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41138 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
41145 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41148 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41149 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41155 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41156 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41157 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41158 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41159 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 41160 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41161 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
41162 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
41165 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
41166 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41177 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41178 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41179 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41180 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41190 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41193 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41198 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41201 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41205 | { NULL, NULL } | |
41206 | }; | |
41207 | ||
41208 | ||
41209 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41210 | ||
41211 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41212 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41213 | } | |
41214 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41215 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41216 | } | |
41217 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41218 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41219 | } | |
41220 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41221 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41222 | } | |
41223 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41224 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41225 | } | |
41226 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41227 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41228 | } | |
41229 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41230 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41231 | } | |
41232 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41233 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41234 | } | |
41235 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41236 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41237 | } | |
41238 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41239 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41240 | } | |
41241 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41242 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41243 | } | |
41244 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41245 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41246 | } | |
41247 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41248 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41249 | } | |
41250 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41251 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41252 | } | |
41253 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41254 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41255 | } | |
41256 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41257 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41258 | } | |
41259 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41260 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41261 | } | |
41262 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41263 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41264 | } | |
41265 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41266 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41267 | } | |
41268 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41269 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41270 | } | |
41271 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41272 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41273 | } | |
41274 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41275 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41276 | } | |
41277 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41278 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41279 | } | |
41280 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41281 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41282 | } | |
41283 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41284 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41285 | } | |
41286 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41287 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41288 | } | |
41289 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41290 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41291 | } | |
41292 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41293 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41294 | } | |
41295 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41296 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41297 | } | |
41298 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41299 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41300 | } | |
41301 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41302 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41303 | } | |
41304 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41305 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41306 | } | |
41307 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41308 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41309 | } | |
41310 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41311 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41312 | } | |
41313 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41314 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41315 | } | |
41316 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41317 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41318 | } | |
41319 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41320 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41321 | } | |
41322 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41323 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41324 | } | |
41325 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41326 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41327 | } | |
41328 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41329 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41330 | } | |
41331 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41332 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41333 | } | |
41334 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41335 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41336 | } | |
41337 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41338 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41339 | } | |
41340 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41341 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41342 | } | |
41343 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41344 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41345 | } | |
41346 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41347 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41348 | } | |
41349 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41350 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41351 | } | |
41352 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41353 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41354 | } | |
41355 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41356 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41357 | } | |
41358 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41359 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41360 | } | |
41361 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41362 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41363 | } | |
41364 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41365 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41366 | } | |
41367 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41368 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41369 | } | |
41370 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41371 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41372 | } | |
41373 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41374 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41375 | } | |
41376 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41377 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41378 | } | |
41379 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41380 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41381 | } | |
41382 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41383 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41384 | } | |
41385 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41386 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41387 | } | |
41388 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41389 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41390 | } | |
41391 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41392 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41393 | } | |
41394 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41395 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41396 | } | |
41397 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41398 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41399 | } | |
41400 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41401 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41402 | } | |
41403 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41404 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41405 | } | |
41406 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41407 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41408 | } | |
41409 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41410 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41411 | } | |
41412 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41413 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41414 | } | |
41415 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41416 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41417 | } | |
41418 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41419 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41420 | } | |
41421 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41422 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41423 | } | |
41424 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41425 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41426 | } | |
41427 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41428 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41429 | } | |
41430 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41431 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41432 | } | |
41433 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41434 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41435 | } | |
41436 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41437 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41438 | } | |
41439 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41440 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41441 | } | |
41442 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41443 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41444 | } | |
41445 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41446 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41447 | } | |
41448 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41449 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41450 | } | |
41451 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41452 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41453 | } | |
41454 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41455 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41456 | } | |
41457 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41458 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41459 | } | |
41460 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41461 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41462 | } | |
41463 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41464 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41465 | } | |
41466 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41467 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41468 | } | |
41469 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41470 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41471 | } | |
41472 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41473 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41474 | } | |
41475 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41476 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41477 | } | |
41478 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41479 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41480 | } | |
41481 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41482 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41483 | } | |
41484 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41485 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41486 | } | |
41487 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41488 | return (void *)((wxObject *) ((wxImage *) x)); | |
41489 | } | |
41490 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41491 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41492 | } | |
41493 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41494 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41495 | } | |
41496 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41497 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41498 | } | |
41499 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41500 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41501 | } | |
41502 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41503 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41504 | } | |
1e0c8722 RD |
41505 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41506 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41507 | } | |
d14a1e28 RD |
41508 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41509 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41510 | } | |
41511 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41512 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41513 | } | |
41514 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41515 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41516 | } | |
41517 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41518 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41519 | } | |
41520 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41521 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41522 | } | |
41523 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41524 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41525 | } | |
41526 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41527 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41528 | } | |
41529 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41530 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41531 | } | |
41532 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41533 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41534 | } | |
41535 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41536 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41537 | } | |
41538 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41539 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41540 | } | |
41541 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41542 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41543 | } | |
41544 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41545 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41546 | } | |
41547 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41548 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41549 | } | |
41550 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41551 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41552 | } | |
41553 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41554 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41555 | } | |
41556 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41557 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41558 | } | |
41559 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41560 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41561 | } | |
41562 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41563 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41564 | } | |
41565 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41566 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41567 | } | |
41568 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41569 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41570 | } | |
41571 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41572 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41573 | } | |
41574 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41575 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41576 | } | |
41577 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41578 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41579 | } | |
41580 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41581 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41582 | } | |
41583 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41584 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41585 | } | |
41586 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41587 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41588 | } | |
41589 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41590 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41591 | } | |
41592 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41593 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41594 | } | |
41595 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41596 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41597 | } | |
41598 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41599 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41600 | } | |
41601 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41602 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41603 | } | |
41604 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41605 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41606 | } | |
41607 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41608 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41609 | } | |
41610 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41611 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41612 | } | |
41613 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41615 | } | |
41616 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41617 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41618 | } | |
41619 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41620 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41621 | } | |
41622 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41623 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41624 | } | |
41625 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41626 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41627 | } | |
41628 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41629 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41630 | } | |
41631 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41632 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41633 | } | |
41634 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41635 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41636 | } | |
41637 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41638 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41639 | } | |
41640 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41641 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41642 | } | |
41643 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41644 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41645 | } | |
41646 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41647 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41648 | } | |
41649 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41650 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41651 | } | |
41652 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41653 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41654 | } | |
41655 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41656 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41657 | } | |
41658 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41659 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41660 | } | |
41661 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41662 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41663 | } | |
41664 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41665 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41666 | } | |
41667 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41668 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41669 | } | |
41670 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41671 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41672 | } | |
41673 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41674 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41675 | } | |
41676 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41677 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41678 | } | |
41679 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41680 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41681 | } | |
41682 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41683 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41684 | } | |
41685 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41686 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41687 | } | |
41688 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41689 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41690 | } | |
41691 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41692 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41693 | } | |
41694 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41695 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41696 | } | |
15afbcd0 RD |
41697 | 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}}; |
41698 | 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}}; | |
41699 | 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}}; | |
41700 | 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}}; | |
41701 | 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}}; | |
41702 | 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}}; | |
41703 | 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}}; | |
41704 | 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}}; | |
41705 | 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}}; | |
41706 | 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}}; | |
41707 | 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}}; | |
41708 | 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}}; | |
41709 | 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}}; | |
41710 | 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}}; | |
41711 | 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}}; | |
41712 | 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}}; | |
41713 | 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}}; | |
41714 | 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}}; | |
41715 | 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}}; | |
41716 | 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}}; | |
41717 | 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}}; | |
41718 | 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}}; | |
41719 | 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}}; | |
41720 | 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}}; | |
41721 | 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}}; | |
41722 | 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}}; | |
41723 | 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}}; | |
41724 | 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}}; | |
41725 | 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}}; | |
41726 | 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}}; | |
41727 | 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}}; | |
41728 | 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}}; | |
41729 | 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}}; | |
41730 | 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}}; | |
41731 | 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}}; | |
41732 | 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 | 41733 | 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 |
41734 | 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}}; |
41735 | 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}}; | |
41736 | 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}}; | |
41737 | 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}}; | |
41738 | 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}}; | |
41739 | 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}}; | |
41740 | 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}}; | |
41741 | 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}}; | |
41742 | 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}}; | |
41743 | 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}}; | |
41744 | 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}}; | |
41745 | 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}}; | |
41746 | 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}}; | |
41747 | 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}}; | |
41748 | 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}}; | |
41749 | 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}}; | |
41750 | 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}}; | |
41751 | 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}}; | |
41752 | 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}}; | |
41753 | 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}}; | |
41754 | 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}}; | |
41755 | 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}}; | |
41756 | 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}}; | |
41757 | 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}}; | |
41758 | 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}}; | |
41759 | 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}}; | |
41760 | 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}}; | |
41761 | 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}}; | |
41762 | 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}}; | |
41763 | 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}}; | |
41764 | 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}}; | |
41765 | 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}}; | |
41766 | 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}}; | |
41767 | 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}}; | |
41768 | 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}}; | |
41769 | 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}}; | |
41770 | 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}}; | |
41771 | 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}}; | |
41772 | 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}}; | |
41773 | 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}}; | |
41774 | 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}}; | |
41775 | 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}}; | |
41776 | 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}}; | |
41777 | 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}}; | |
41778 | 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}}; | |
41779 | 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}}; | |
41780 | 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}}; | |
41781 | 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}}; | |
41782 | 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}}; | |
41783 | 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}}; | |
41784 | 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}}; | |
41785 | 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}}; | |
41786 | 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}}; | |
41787 | 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}}; | |
41788 | 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}}; | |
41789 | 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}}; | |
41790 | 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}}; | |
41791 | 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}}; | |
41792 | 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}}; | |
41793 | 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}}; | |
41794 | 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}}; | |
41795 | 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}}; | |
41796 | 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}}; | |
41797 | 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}}; | |
41798 | 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}}; | |
41799 | 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}}; | |
41800 | 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}}; | |
41801 | 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}}; | |
41802 | 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}}; | |
41803 | 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}}; | |
41804 | 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}}; | |
41805 | 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}}; | |
41806 | 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}}; | |
41807 | 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}}; | |
41808 | 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}}; | |
41809 | 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}}; | |
41810 | 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}}; | |
41811 | 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 |
41812 | |
41813 | static swig_type_info *swig_types_initial[] = { | |
41814 | _swigt__p_wxLayoutConstraints, | |
41815 | _swigt__p_wxRealPoint, | |
41816 | _swigt__p_wxSizerItem, | |
41817 | _swigt__p_wxGBSizerItem, | |
41818 | _swigt__p_wxScrollEvent, | |
41819 | _swigt__p_wxIndividualLayoutConstraint, | |
41820 | _swigt__p_wxSizer, | |
41821 | _swigt__p_wxBoxSizer, | |
41822 | _swigt__p_wxStaticBoxSizer, | |
41823 | _swigt__p_wxGridBagSizer, | |
41824 | _swigt__p_wxAcceleratorEntry, | |
41825 | _swigt__p_wxUpdateUIEvent, | |
41826 | _swigt__p_wxMenu, | |
41827 | _swigt__p_wxEvent, | |
41828 | _swigt__p_wxGridSizer, | |
41829 | _swigt__p_wxFlexGridSizer, | |
41830 | _swigt__p_wxInitDialogEvent, | |
41831 | _swigt__p_wxItemContainer, | |
41832 | _swigt__p_wxNcPaintEvent, | |
41833 | _swigt__p_wxPaintEvent, | |
41834 | _swigt__p_wxSysColourChangedEvent, | |
41835 | _swigt__p_wxMouseCaptureChangedEvent, | |
41836 | _swigt__p_wxDisplayChangedEvent, | |
41837 | _swigt__p_wxPaletteChangedEvent, | |
41838 | _swigt__p_wxControl, | |
41839 | _swigt__p_wxFont, | |
41840 | _swigt__p_wxMenuBarBase, | |
41841 | _swigt__p_wxSetCursorEvent, | |
41842 | _swigt__p_wxFSFile, | |
41843 | _swigt__p_wxCaret, | |
41844 | _swigt__p_wxRegion, | |
41845 | _swigt__p_wxPoint2D, | |
41846 | _swigt__p_int, | |
41847 | _swigt__p_wxSize, | |
41848 | _swigt__p_wxDC, | |
41849 | _swigt__p_wxPySizer, | |
74a57fcd | 41850 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
41851 | _swigt__p_wxNotifyEvent, |
41852 | _swigt__p_wxPyEvent, | |
41853 | _swigt__p_wxPropagationDisabler, | |
41854 | _swigt__p_wxAppTraits, | |
41855 | _swigt__p_wxArrayString, | |
41856 | _swigt__p_wxShowEvent, | |
41857 | _swigt__p_wxToolTip, | |
4d5c3d91 | 41858 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41859 | _swigt__p_wxIconizeEvent, |
41860 | _swigt__p_wxActivateEvent, | |
41861 | _swigt__p_wxMoveEvent, | |
41862 | _swigt__p_wxSizeEvent, | |
41863 | _swigt__p_wxQueryNewPaletteEvent, | |
41864 | _swigt__p_wxWindowCreateEvent, | |
41865 | _swigt__p_wxIdleEvent, | |
41866 | _swigt__p_wxMenuItem, | |
41867 | _swigt__p_wxStaticBox, | |
41868 | _swigt__p_long, | |
41869 | _swigt__p_wxTIFFHandler, | |
41870 | _swigt__p_wxXPMHandler, | |
41871 | _swigt__p_wxPNMHandler, | |
41872 | _swigt__p_wxJPEGHandler, | |
41873 | _swigt__p_wxPCXHandler, | |
41874 | _swigt__p_wxGIFHandler, | |
41875 | _swigt__p_wxPNGHandler, | |
41876 | _swigt__p_wxANIHandler, | |
41877 | _swigt__p_wxMemoryFSHandler, | |
41878 | _swigt__p_wxEvtHandler, | |
41879 | _swigt__p_wxCURHandler, | |
41880 | _swigt__p_wxICOHandler, | |
41881 | _swigt__p_wxBMPHandler, | |
41882 | _swigt__p_wxImageHandler, | |
41883 | _swigt__p_wxFileSystemHandler, | |
41884 | _swigt__p_wxPyFileSystemHandler, | |
41885 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 41886 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
41887 | _swigt__p_wxRect, |
41888 | _swigt__p_wxGBSpan, | |
41889 | _swigt__p_wxPropagateOnce, | |
41890 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 41891 | _swigt__p_char, |
d14a1e28 RD |
41892 | _swigt__p_wxGBPosition, |
41893 | _swigt__p_wxImage, | |
41894 | _swigt__p_wxFrame, | |
41895 | _swigt__p_wxScrollWinEvent, | |
41896 | _swigt__p_wxImageHistogram, | |
41897 | _swigt__p_byte, | |
41898 | _swigt__p_wxPoint, | |
41899 | _swigt__p_wxCursor, | |
41900 | _swigt__p_wxObject, | |
41901 | _swigt__p_wxPyInputStream, | |
41902 | _swigt__p_wxOutputStream, | |
41903 | _swigt__p_wxInputStream, | |
41904 | _swigt__p_wxDateTime, | |
41905 | _swigt__p_wxKeyEvent, | |
41906 | _swigt__p_wxNavigationKeyEvent, | |
41907 | _swigt__p_wxWindowDestroyEvent, | |
41908 | _swigt__p_wxWindow, | |
41909 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
41910 | _swigt__p_wxFileSystem, |
41911 | _swigt__p_wxBitmap, | |
41912 | _swigt__p_wxMenuEvent, | |
41913 | _swigt__p_wxContextMenuEvent, | |
41914 | _swigt__p_unsigned_char, | |
41915 | _swigt__p_wxCloseEvent, | |
41916 | _swigt__p_wxEraseEvent, | |
41917 | _swigt__p_wxMouseEvent, | |
41918 | _swigt__p_wxPyApp, | |
41919 | _swigt__p_wxCommandEvent, | |
41920 | _swigt__p_wxPyCommandEvent, | |
7722248d | 41921 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
41922 | _swigt__p_wxChildFocusEvent, |
41923 | _swigt__p_wxFocusEvent, | |
41924 | _swigt__p_wxDropFilesEvent, | |
41925 | _swigt__p_wxControlWithItems, | |
41926 | _swigt__p_wxColour, | |
41927 | _swigt__p_wxValidator, | |
41928 | _swigt__p_wxPyValidator, | |
41929 | 0 | |
41930 | }; | |
41931 | ||
41932 | ||
41933 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41934 | ||
41935 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
41936 | {0}}; |
41937 | ||
41938 | #ifdef __cplusplus | |
41939 | } | |
41940 | #endif | |
41941 | ||
41942 | #ifdef __cplusplus | |
41943 | extern "C" | |
41944 | #endif | |
41945 | SWIGEXPORT(void) SWIG_init(void) { | |
41946 | static PyObject *SWIG_globals = 0; | |
41947 | static int typeinit = 0; | |
41948 | PyObject *m, *d; | |
41949 | int i; | |
41950 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
41951 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
41952 | d = PyModule_GetDict(m); | |
41953 | ||
41954 | if (!typeinit) { | |
41955 | for (i = 0; swig_types_initial[i]; i++) { | |
41956 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
41957 | } | |
41958 | typeinit = 1; | |
41959 | } | |
41960 | SWIG_InstallConstants(d,swig_const_table); | |
41961 | ||
41962 | ||
41963 | #ifndef wxPyUSE_EXPORT | |
41964 | // Make our API structure a CObject so other modules can import it | |
41965 | // from this module. | |
41966 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
41967 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
41968 | Py_XDECREF(cobj); | |
41969 | #endif | |
41970 | ||
15afbcd0 RD |
41971 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
41972 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
41973 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
41974 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
41975 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
41976 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
41977 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
41978 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
41979 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
41980 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
41981 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
41982 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
41983 | PyDict_SetItemString(d,"USER_COLOURS", SWIG_FromInt((int)wxUSER_COLOURS)); | |
41984 | PyDict_SetItemString(d,"NO_3D", SWIG_FromInt((int)wxNO_3D)); | |
41985 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
41986 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
41987 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
41988 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
41989 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
41990 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
41991 | PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_FromInt((int)wxSTAY_ON_TOP)); | |
41992 | PyDict_SetItemString(d,"ICONIZE", SWIG_FromInt((int)wxICONIZE)); | |
41993 | PyDict_SetItemString(d,"MINIMIZE", SWIG_FromInt((int)wxMINIMIZE)); | |
41994 | PyDict_SetItemString(d,"MAXIMIZE", SWIG_FromInt((int)wxMAXIMIZE)); | |
41995 | PyDict_SetItemString(d,"CLOSE_BOX", SWIG_FromInt((int)wxCLOSE_BOX)); | |
41996 | PyDict_SetItemString(d,"THICK_FRAME", SWIG_FromInt((int)wxTHICK_FRAME)); | |
41997 | PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_FromInt((int)wxSYSTEM_MENU)); | |
41998 | PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_FromInt((int)wxMINIMIZE_BOX)); | |
41999 | PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_FromInt((int)wxMAXIMIZE_BOX)); | |
42000 | PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_FromInt((int)wxTINY_CAPTION_HORIZ)); | |
42001 | PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_FromInt((int)wxTINY_CAPTION_VERT)); | |
42002 | PyDict_SetItemString(d,"RESIZE_BOX", SWIG_FromInt((int)wxRESIZE_BOX)); | |
42003 | PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_FromInt((int)wxRESIZE_BORDER)); | |
42004 | PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_FromInt((int)wxDIALOG_MODAL)); | |
42005 | PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_FromInt((int)wxDIALOG_MODELESS)); | |
42006 | PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_FromInt((int)wxDIALOG_NO_PARENT)); | |
42007 | PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_FromInt((int)wxDEFAULT_FRAME_STYLE)); | |
42008 | PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_FromInt((int)wxDEFAULT_DIALOG_STYLE)); | |
42009 | PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_FromInt((int)wxFRAME_TOOL_WINDOW)); | |
42010 | PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_FromInt((int)wxFRAME_FLOAT_ON_PARENT)); | |
42011 | PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_FromInt((int)wxFRAME_NO_WINDOW_MENU)); | |
42012 | PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_FromInt((int)wxFRAME_NO_TASKBAR)); | |
42013 | PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_FromInt((int)wxFRAME_SHAPED)); | |
42014 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
42015 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42016 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42017 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42018 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42019 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42020 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
42021 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
42022 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42023 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42024 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42025 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42026 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42027 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42028 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42029 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42030 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42031 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42032 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42033 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42034 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42035 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42036 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42037 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42038 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42039 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42040 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42041 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42042 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42043 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42044 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42045 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42046 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42047 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42048 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42049 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42050 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42051 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42052 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42053 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42054 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42055 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42056 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42057 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42058 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42059 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42060 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42061 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42062 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42063 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42064 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42065 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42066 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42067 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42068 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42069 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42070 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42071 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42072 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42073 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42074 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42075 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42076 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42077 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42078 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42079 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42080 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42081 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42082 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42083 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42084 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42085 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42086 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42087 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42088 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42089 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42090 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42091 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42092 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42093 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42094 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42095 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42096 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42097 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42098 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42099 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42100 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42101 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42102 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42103 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42104 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42105 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42106 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42107 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42108 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42109 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42110 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42111 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42112 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42113 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42114 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42115 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42116 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42117 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42118 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42119 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42120 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42121 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42122 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42123 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42124 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42125 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42126 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42127 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42128 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42129 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42130 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42131 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42132 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42133 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42134 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42135 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42136 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42137 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42138 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42139 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42140 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42141 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42142 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42143 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42144 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42145 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42146 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42147 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42148 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42149 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42150 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42151 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42152 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42153 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42154 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42155 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42156 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42157 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42158 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42159 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42160 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42161 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42162 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42163 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42164 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42165 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42166 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42167 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42168 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42169 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42170 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42171 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42172 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42173 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42174 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42175 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42176 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42177 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42178 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42179 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42180 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42181 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42182 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42183 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42184 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42185 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42186 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42187 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42188 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42189 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42190 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42191 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42192 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42193 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42194 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42195 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42196 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42197 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42198 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42199 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42200 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42201 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42202 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42203 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42204 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42205 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42206 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42207 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42208 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42209 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42210 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42211 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42212 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42213 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42214 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42215 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42216 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42217 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42218 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42219 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42220 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42221 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42222 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42223 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42224 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42225 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42226 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42227 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42228 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42229 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42230 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42231 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42232 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42233 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42234 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42235 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42236 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42237 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42238 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42239 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42240 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42241 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42242 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42243 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
f52e0cf4 | 42244 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); |
15afbcd0 | 42245 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); |
74a57fcd | 42246 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); |
15afbcd0 RD |
42247 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); |
42248 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42249 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42250 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42251 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42252 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42253 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42254 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42255 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42256 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42257 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42258 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42259 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42260 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42261 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42262 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42263 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42264 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42265 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42266 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42267 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42268 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42269 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42270 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42271 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42272 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42273 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42274 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42275 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42276 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42277 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42278 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42279 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42280 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42281 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42282 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42283 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42284 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42285 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42286 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42287 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42288 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42289 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42290 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42291 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42292 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42293 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42294 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42295 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42296 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42297 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42298 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42299 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42300 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42301 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42302 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42303 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42304 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42305 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42306 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42307 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42308 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42309 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42310 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42311 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42312 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42313 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42314 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42315 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42316 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42317 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42318 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42319 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42320 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42321 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42322 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42323 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42324 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42325 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42326 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42327 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42328 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42329 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42330 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42331 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42332 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42333 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42334 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42335 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42336 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42337 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42338 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42339 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42340 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42341 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42342 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42343 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42344 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42345 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42346 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42347 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42348 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42349 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42350 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42351 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42352 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42353 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42354 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42355 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42356 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42357 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42358 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42359 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42360 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42361 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42362 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42363 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42364 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42365 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42366 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42367 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42368 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42369 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42370 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42371 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42372 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42373 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42374 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42375 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42376 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42377 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42378 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42379 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42380 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42381 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42382 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42383 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42384 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42385 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42386 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42387 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42388 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42389 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42390 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42391 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42392 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42393 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42394 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42395 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42396 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42397 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42398 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42399 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42400 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42401 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42402 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42403 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42404 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42405 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42406 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42407 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42408 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42409 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42410 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42411 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42412 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42413 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42414 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42415 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42416 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42417 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42418 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42419 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42420 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42421 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42422 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42423 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42424 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42425 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42426 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42427 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42428 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42429 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42430 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42431 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42432 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42433 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42434 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42435 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42436 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42437 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42438 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42439 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42440 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42441 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42442 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42443 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42444 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42445 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42446 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42447 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42448 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42449 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42450 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42451 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42452 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42453 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42454 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42455 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42456 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42457 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42458 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42459 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42460 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42461 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42462 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42463 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42464 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42465 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42466 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42467 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42468 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42469 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42470 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42471 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42472 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42473 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42474 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42475 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42476 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42477 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42478 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42479 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42480 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42481 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42482 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42483 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42484 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42485 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42486 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42487 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42488 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42489 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42490 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42491 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42492 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42493 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42494 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42495 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42496 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42497 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42498 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42499 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42500 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42501 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42502 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42503 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42504 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42505 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42506 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42507 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42508 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42509 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42510 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 42511 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
15afbcd0 RD |
42512 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42513 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42514 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42515 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42516 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42517 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42518 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42519 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42520 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42521 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42522 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42523 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42524 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42525 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42526 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42527 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42528 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42529 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42530 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42531 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42532 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42533 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42534 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42535 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42536 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42537 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42538 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42539 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42540 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42541 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42542 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42543 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42544 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42545 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42546 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42547 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42548 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42549 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42550 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42551 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42552 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42553 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42554 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42555 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42556 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42557 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42558 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42559 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42560 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42561 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42562 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42563 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42564 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
15afbcd0 RD |
42565 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42566 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42567 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42568 | |
42569 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42570 | ||
42571 | ||
42572 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42573 | ||
42574 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42575 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42576 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42577 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42578 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42579 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
15afbcd0 RD |
42580 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42581 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42582 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42583 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42584 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42585 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42586 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42587 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42588 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42589 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42590 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42591 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42592 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42593 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42594 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42595 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42596 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42597 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42598 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42599 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42600 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42601 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42602 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42603 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42604 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42605 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42606 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42607 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42608 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42609 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42610 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42611 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42612 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42613 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42614 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42615 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42616 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42617 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42618 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42619 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42620 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42621 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42622 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42623 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42624 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42625 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42626 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42627 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42628 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42629 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42630 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42631 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42632 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42633 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42634 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42635 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42636 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42637 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42638 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42639 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42640 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42641 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42642 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42643 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42644 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42645 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42646 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42647 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42648 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42649 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42650 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42651 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42652 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42653 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42654 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42655 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42656 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42657 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42658 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42659 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42660 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42661 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42662 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42663 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42664 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42665 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42666 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42667 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42668 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42669 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42670 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42671 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42672 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42673 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42674 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42675 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42676 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42677 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42678 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42679 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42680 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42681 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42682 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42683 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42684 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42685 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42686 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42687 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42688 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42689 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42690 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42691 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42692 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42693 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42694 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42695 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42696 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42697 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42698 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42699 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42700 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42701 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42702 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42703 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42704 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42705 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42706 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
15afbcd0 RD |
42707 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42708 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42709 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42710 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42711 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42712 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42713 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42714 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42715 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42716 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42717 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42718 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42719 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42720 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42721 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 42722 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 42723 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
4276dc52 RD |
42724 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); |
42725 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42726 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42727 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
74a57fcd | 42728 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); |
d14a1e28 | 42729 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 42730 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
15afbcd0 RD |
42731 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
42732 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42733 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 42734 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
15afbcd0 RD |
42735 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
42736 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42737 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42738 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42739 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42740 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42741 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42742 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42743 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42744 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42745 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42746 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42747 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42748 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42749 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42750 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42751 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42752 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42753 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
42754 | |
42755 | // Initialize threading, some globals and such | |
42756 | __wxPyPreStart(d); | |
42757 | ||
42758 | ||
42759 | // Although these are defined in __version__ they need to be here too so | |
42760 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42761 | // versions match. | |
42762 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42763 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42764 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42765 | ||
42766 | } | |
42767 |