]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
d14a1e28 RD |
136 | #include "Python.h" |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
d14a1e28 RD |
166 | /* Common SWIG API */ |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 173 | |
d14a1e28 RD |
174 | /* Python-specific SWIG API */ |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 RD |
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
210 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
212 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
213 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
214 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5] | |
215 | #define SWIGTYPE_p_wxSizer swig_types[6] | |
216 | #define SWIGTYPE_p_wxBoxSizer swig_types[7] | |
217 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[8] | |
218 | #define SWIGTYPE_p_wxGridBagSizer swig_types[9] | |
219 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[10] | |
220 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[11] | |
221 | #define SWIGTYPE_p_wxMenu swig_types[12] | |
222 | #define SWIGTYPE_p_wxEvent swig_types[13] | |
223 | #define SWIGTYPE_p_wxGridSizer swig_types[14] | |
224 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[15] | |
225 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[16] | |
226 | #define SWIGTYPE_p_wxItemContainer swig_types[17] | |
227 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[18] | |
228 | #define SWIGTYPE_p_wxPaintEvent swig_types[19] | |
229 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20] | |
230 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21] | |
231 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22] | |
232 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23] | |
233 | #define SWIGTYPE_p_wxControl swig_types[24] | |
234 | #define SWIGTYPE_p_wxFont swig_types[25] | |
235 | #define SWIGTYPE_p_wxMenuBarBase swig_types[26] | |
236 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[27] | |
237 | #define SWIGTYPE_p_wxFSFile swig_types[28] | |
238 | #define SWIGTYPE_p_wxCaret swig_types[29] | |
239 | #define SWIGTYPE_p_wxRegion swig_types[30] | |
240 | #define SWIGTYPE_p_wxPoint2D swig_types[31] | |
241 | #define SWIGTYPE_p_int swig_types[32] | |
242 | #define SWIGTYPE_p_wxSize swig_types[33] | |
243 | #define SWIGTYPE_p_wxDC swig_types[34] | |
244 | #define SWIGTYPE_p_wxPySizer swig_types[35] | |
74a57fcd RD |
245 | #define SWIGTYPE_p_wxVisualAttributes swig_types[36] |
246 | #define SWIGTYPE_p_wxNotifyEvent swig_types[37] | |
247 | #define SWIGTYPE_p_wxPyEvent swig_types[38] | |
248 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[39] | |
249 | #define SWIGTYPE_p_wxAppTraits swig_types[40] | |
250 | #define SWIGTYPE_p_wxArrayString swig_types[41] | |
251 | #define SWIGTYPE_p_wxShowEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxToolTip swig_types[43] | |
253 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[44] | |
254 | #define SWIGTYPE_p_wxIconizeEvent swig_types[45] | |
255 | #define SWIGTYPE_p_wxActivateEvent swig_types[46] | |
256 | #define SWIGTYPE_p_wxMoveEvent swig_types[47] | |
257 | #define SWIGTYPE_p_wxSizeEvent swig_types[48] | |
258 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49] | |
259 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[50] | |
260 | #define SWIGTYPE_p_wxIdleEvent swig_types[51] | |
261 | #define SWIGTYPE_p_wxMenuItem swig_types[52] | |
262 | #define SWIGTYPE_p_wxStaticBox swig_types[53] | |
263 | #define SWIGTYPE_p_long swig_types[54] | |
264 | #define SWIGTYPE_p_wxTIFFHandler swig_types[55] | |
265 | #define SWIGTYPE_p_wxXPMHandler swig_types[56] | |
266 | #define SWIGTYPE_p_wxPNMHandler swig_types[57] | |
267 | #define SWIGTYPE_p_wxJPEGHandler swig_types[58] | |
268 | #define SWIGTYPE_p_wxPCXHandler swig_types[59] | |
269 | #define SWIGTYPE_p_wxGIFHandler swig_types[60] | |
270 | #define SWIGTYPE_p_wxPNGHandler swig_types[61] | |
271 | #define SWIGTYPE_p_wxANIHandler swig_types[62] | |
272 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[63] | |
273 | #define SWIGTYPE_p_wxEvtHandler swig_types[64] | |
274 | #define SWIGTYPE_p_wxCURHandler swig_types[65] | |
275 | #define SWIGTYPE_p_wxICOHandler swig_types[66] | |
276 | #define SWIGTYPE_p_wxBMPHandler swig_types[67] | |
277 | #define SWIGTYPE_p_wxImageHandler swig_types[68] | |
278 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[69] | |
279 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70] | |
280 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[71] | |
281 | #define SWIGTYPE_p_wxZipFSHandler swig_types[72] | |
282 | #define SWIGTYPE_p_wxRect swig_types[73] | |
283 | #define SWIGTYPE_p_wxGBSpan swig_types[74] | |
284 | #define SWIGTYPE_p_wxPropagateOnce swig_types[75] | |
285 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[76] | |
286 | #define SWIGTYPE_p_char swig_types[77] | |
287 | #define SWIGTYPE_p_wxGBPosition swig_types[78] | |
288 | #define SWIGTYPE_p_wxImage swig_types[79] | |
289 | #define SWIGTYPE_p_wxFrame swig_types[80] | |
290 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[81] | |
291 | #define SWIGTYPE_p_wxImageHistogram swig_types[82] | |
292 | #define SWIGTYPE_p_byte swig_types[83] | |
293 | #define SWIGTYPE_p_wxPoint swig_types[84] | |
294 | #define SWIGTYPE_p_wxCursor swig_types[85] | |
295 | #define SWIGTYPE_p_wxObject swig_types[86] | |
296 | #define SWIGTYPE_p_wxPyInputStream swig_types[87] | |
297 | #define SWIGTYPE_p_wxOutputStream swig_types[88] | |
298 | #define SWIGTYPE_p_wxInputStream swig_types[89] | |
299 | #define SWIGTYPE_p_wxDateTime swig_types[90] | |
300 | #define SWIGTYPE_p_wxKeyEvent swig_types[91] | |
301 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
302 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93] | |
303 | #define SWIGTYPE_p_wxWindow swig_types[94] | |
304 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
305 | #define SWIGTYPE_p_wxFileSystem swig_types[96] | |
306 | #define SWIGTYPE_p_wxBitmap swig_types[97] | |
307 | #define SWIGTYPE_p_wxMenuEvent swig_types[98] | |
308 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[99] | |
309 | #define SWIGTYPE_p_unsigned_char swig_types[100] | |
310 | #define SWIGTYPE_p_wxCloseEvent swig_types[101] | |
311 | #define SWIGTYPE_p_wxEraseEvent swig_types[102] | |
312 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
313 | #define SWIGTYPE_p_wxPyApp swig_types[104] | |
314 | #define SWIGTYPE_p_wxCommandEvent swig_types[105] | |
315 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[106] | |
316 | #define SWIGTYPE_p_wxPyDropTarget swig_types[107] | |
317 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[108] | |
318 | #define SWIGTYPE_p_wxFocusEvent swig_types[109] | |
319 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[110] | |
320 | #define SWIGTYPE_p_wxControlWithItems swig_types[111] | |
321 | #define SWIGTYPE_p_wxColour swig_types[112] | |
322 | #define SWIGTYPE_p_wxValidator swig_types[113] | |
323 | #define SWIGTYPE_p_wxPyValidator swig_types[114] | |
324 | static swig_type_info *swig_types[116]; | |
d14a1e28 RD |
325 | |
326 | /* -------- TYPES TABLE (END) -------- */ | |
327 | ||
328 | ||
329 | /*----------------------------------------------- | |
54f9ee45 | 330 | @(target):= _core_.so |
d14a1e28 | 331 | ------------------------------------------------*/ |
54f9ee45 | 332 | #define SWIG_init init_core_ |
d14a1e28 | 333 | |
54f9ee45 | 334 | #define SWIG_name "_core_" |
d14a1e28 | 335 | |
15afbcd0 | 336 | /* Auxiliar swig macros */ |
994141e6 | 337 | |
994141e6 | 338 | #ifdef __cplusplus |
15afbcd0 | 339 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 340 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
341 | #define swig_new_array(type, size) (new type[(size)]) |
342 | #define swig_delete_array(cptr) delete[] cptr | |
343 | #define swig_const_cast(type,a) const_cast<type>(a) | |
344 | #define swig_static_cast(type,a) static_cast<type>(a) | |
345 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 346 | |
994141e6 | 347 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 348 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 349 | #else |
15afbcd0 | 350 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
351 | #endif |
352 | ||
15afbcd0 RD |
353 | #else /* C case */ |
354 | ||
355 | #define SWIGSTATICINLINE(a) static a | |
356 | #define SWIGSTATIC(a) static a | |
357 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
358 | #define swig_delete_array(cptr) free((char*)cptr) | |
359 | #define swig_const_cast(type,a) (type)(a) | |
360 | #define swig_static_cast(type,a) (type)(a) | |
361 | #define swig_reinterpret_cast(type,a) (type)(a) | |
362 | #define swig_numeric_cast(type,a) (type)(a) | |
363 | ||
364 | #endif /* __cplusplus */ | |
994141e6 RD |
365 | |
366 | ||
15afbcd0 RD |
367 | #define SWIG_FromSignedChar PyInt_FromLong |
368 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
369 | #define SWIG_FromShort PyInt_FromLong | |
370 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
371 | #define SWIG_FromInt PyInt_FromLong | |
372 | #define SWIG_FromLong PyInt_FromLong | |
373 | #define SWIG_FromFloat PyFloat_FromDouble | |
374 | #define SWIG_FromDouble PyFloat_FromDouble | |
375 | #define SWIG_FromFloat PyFloat_FromDouble | |
376 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
377 | |
378 | ||
d14a1e28 RD |
379 | #include "wx/wxPython/wxPython_int.h" |
380 | #include "wx/wxPython/pyclasses.h" | |
381 | ||
382 | ||
383 | #ifndef wxPyUSE_EXPORT | |
384 | // Helper functions for dealing with SWIG objects and such. These are | |
385 | // located here so they know about the SWIG types and functions declared | |
386 | // in the wrapper code. | |
387 | ||
388 | #include <wx/hashmap.h> | |
389 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
390 | ||
391 | ||
392 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
393 | // name of a class either looks up the type info in the cache, or scans the | |
394 | // SWIG tables for it. | |
395 | extern PyObject* wxPyPtrTypeMap; | |
396 | static | |
397 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
398 | ||
399 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
400 | ||
401 | if (typeInfoCache == NULL) | |
402 | typeInfoCache = new wxPyTypeInfoHashMap; | |
403 | ||
404 | wxString name(className); | |
405 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
406 | ||
407 | if (! swigType) { | |
408 | // it wasn't in the cache, so look it up from SWIG | |
409 | name.Append(wxT(" *")); | |
410 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
411 | ||
412 | // if it still wasn't found, try looking for a mapped name | |
413 | if (!swigType) { | |
414 | PyObject* item; | |
415 | name = className; | |
416 | ||
417 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
418 | (char*)(const char*)name.mbc_str())) != NULL) { | |
419 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
420 | name.Append(wxT(" *")); | |
421 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
422 | } | |
423 | } | |
424 | if (swigType) { | |
425 | // and add it to the map if found | |
426 | (*typeInfoCache)[className] = swigType; | |
427 | } | |
428 | } | |
429 | return swigType; | |
430 | } | |
431 | ||
432 | ||
433 | // Check if a class name is a type known to SWIG | |
434 | bool wxPyCheckSwigType(const wxChar* className) { | |
435 | ||
436 | swig_type_info* swigType = wxPyFindSwigType(className); | |
437 | return swigType != NULL; | |
438 | } | |
439 | ||
440 | ||
441 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
442 | // object for it. | |
443 | PyObject* wxPyConstructObject(void* ptr, | |
444 | const wxChar* className, | |
445 | int setThisOwn) { | |
446 | ||
447 | swig_type_info* swigType = wxPyFindSwigType(className); | |
448 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
449 | ||
450 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
451 | } | |
452 | ||
453 | ||
454 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
455 | // Ensures that the proxy object is of the specified (or derived) type. If | |
456 | // not able to perform the conversion then a Python exception is set and the | |
e811c8ce | 457 | // error should be handled properly in the caller. Returns True on success. |
d14a1e28 RD |
458 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, |
459 | const wxChar* className) { | |
460 | ||
461 | swig_type_info* swigType = wxPyFindSwigType(className); | |
e811c8ce | 462 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); |
d14a1e28 RD |
463 | |
464 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
465 | } | |
466 | ||
467 | ||
468 | // Make a SWIGified pointer object suitable for a .this attribute | |
469 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
470 | ||
471 | PyObject* robj = NULL; | |
472 | ||
473 | swig_type_info* swigType = wxPyFindSwigType(className); | |
474 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
475 | ||
476 | #ifdef SWIG_COBJECT_TYPES | |
477 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
478 | #else | |
479 | { | |
480 | char result[1024]; | |
481 | char *r = result; | |
482 | *(r++) = '_'; | |
483 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
484 | strcpy(r, swigType->name); | |
485 | robj = PyString_FromString(result); | |
486 | } | |
487 | #endif | |
488 | ||
489 | return robj; | |
490 | } | |
491 | ||
492 | ||
493 | ||
494 | ||
495 | // Export a C API in a struct. Other modules will be able to load this from | |
121b9a67 RD |
496 | // the wx._core_ module and will then have safe access to these functions, |
497 | // even if they are located in another shared library. | |
d14a1e28 RD |
498 | static wxPyCoreAPI API = { |
499 | ||
500 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
501 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
502 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
503 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
504 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
505 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
506 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
507 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
508 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
509 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
510 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
511 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
512 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
513 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
514 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
515 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
516 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
517 | ||
518 | wxPyCheckSwigType, | |
519 | wxPyConstructObject, | |
520 | wxPyConvertSwigPtr, | |
521 | wxPyMakeSwigPtr, | |
522 | ||
523 | wxPyBeginAllowThreads, | |
524 | wxPyEndAllowThreads, | |
525 | wxPyBeginBlockThreads, | |
526 | wxPyEndBlockThreads, | |
527 | ||
528 | wxPy_ConvertList, | |
529 | ||
530 | wxString_in_helper, | |
531 | Py2wxString, | |
532 | wx2PyString, | |
533 | ||
534 | byte_LIST_helper, | |
535 | int_LIST_helper, | |
536 | long_LIST_helper, | |
537 | string_LIST_helper, | |
538 | wxPoint_LIST_helper, | |
539 | wxBitmap_LIST_helper, | |
540 | wxString_LIST_helper, | |
541 | wxAcceleratorEntry_LIST_helper, | |
542 | ||
543 | wxSize_helper, | |
544 | wxPoint_helper, | |
545 | wxRealPoint_helper, | |
546 | wxRect_helper, | |
547 | wxColour_helper, | |
548 | wxPoint2D_helper, | |
549 | ||
550 | wxPySimple_typecheck, | |
551 | wxColour_typecheck, | |
552 | ||
553 | wxPyCBH_setCallbackInfo, | |
554 | wxPyCBH_findCallback, | |
555 | wxPyCBH_callCallback, | |
556 | wxPyCBH_callCallbackObj, | |
557 | wxPyCBH_delete, | |
558 | ||
559 | wxPyMake_wxObject, | |
560 | wxPyMake_wxSizer, | |
561 | wxPyPtrTypeMap_Add, | |
562 | wxPy2int_seq_helper, | |
563 | wxPy4int_seq_helper, | |
564 | wxArrayString2PyList_helper, | |
565 | wxArrayInt2PyList_helper, | |
566 | ||
567 | wxPyClientData_dtor, | |
568 | wxPyUserData_dtor, | |
569 | wxPyOORClientData_dtor, | |
570 | ||
571 | wxPyCBInputStream_create, | |
572 | ||
573 | wxPyInstance_Check, | |
e3b71cb8 RD |
574 | wxPySwigInstance_Check, |
575 | ||
576 | wxPyCheckForApp | |
d14a1e28 RD |
577 | |
578 | }; | |
579 | ||
580 | #endif | |
581 | ||
582 | ||
d14a1e28 RD |
583 | #if ! wxUSE_HOTKEY |
584 | enum wxHotkeyModifier | |
585 | { | |
586 | wxMOD_NONE = 0, | |
587 | wxMOD_ALT = 1, | |
588 | wxMOD_CONTROL = 2, | |
589 | wxMOD_SHIFT = 4, | |
590 | wxMOD_WIN = 8 | |
591 | }; | |
592 | #define wxEVT_HOTKEY 9999 | |
593 | #endif | |
594 | ||
196addbf | 595 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
596 | wxString wxObject_GetClassName(wxObject *self){ |
597 | return self->GetClassInfo()->GetClassName(); | |
598 | } | |
599 | void wxObject_Destroy(wxObject *self){ | |
600 | delete self; | |
601 | } | |
602 | ||
603 | #ifndef __WXMAC__ | |
604 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
605 | #endif | |
606 | ||
994141e6 | 607 | |
15afbcd0 RD |
608 | #include <limits.h> |
609 | ||
610 | ||
611 | SWIGSTATICINLINE(long) | |
612 | SWIG_CheckLongInRange(long value, const char* type, | |
613 | long min_value, long max_value) | |
614 | { | |
615 | if (!PyErr_Occurred()) { | |
616 | if (value < min_value) { | |
617 | PyObject *err = | |
618 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
619 | value, type, min_value); | |
620 | ||
621 | PyErr_SetObject(PyExc_OverflowError, err); | |
622 | Py_DECREF(err); | |
623 | } else if (value > max_value) { | |
624 | PyObject *err = | |
625 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
626 | value, type, max_value); | |
627 | PyErr_SetObject(PyExc_OverflowError, err); | |
628 | Py_DECREF(err); | |
629 | } | |
630 | } | |
631 | return value; | |
632 | } | |
633 | ||
634 | ||
635 | SWIGSTATICINLINE(long) | |
636 | SWIG_AsLong(PyObject * obj) | |
637 | { | |
69223c70 RD |
638 | if (PyNumber_Check(obj)) |
639 | return PyInt_AsLong(obj); | |
640 | else { | |
641 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
642 | obj->ob_type->tp_name); | |
643 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
644 | Py_DECREF(errmsg); | |
645 | return 0; | |
646 | } | |
15afbcd0 RD |
647 | } |
648 | ||
649 | ||
650 | #if INT_MAX != LONG_MAX | |
651 | SWIGSTATICINLINE(int) | |
652 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 653 | { |
15afbcd0 RD |
654 | return swig_numeric_cast(int, |
655 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
656 | "int", INT_MIN, INT_MAX)); | |
657 | } | |
658 | #else | |
659 | #define SWIG_AsInt SWIG_AsLong | |
660 | #endif | |
661 | ||
662 | ||
663 | SWIGSTATICINLINE(int) | |
664 | SWIG_CheckInt(PyObject* obj) | |
665 | { | |
666 | SWIG_AsInt(obj); | |
667 | if (PyErr_Occurred()) { | |
668 | PyErr_Clear(); | |
669 | return 0; | |
670 | } else { | |
671 | return 1; | |
672 | } | |
994141e6 RD |
673 | } |
674 | ||
e811c8ce | 675 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 676 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
677 | PyObject* tup = PyTuple_New(2); |
678 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
679 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 680 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
681 | return tup; |
682 | } | |
994141e6 | 683 | |
15afbcd0 RD |
684 | SWIGSTATICINLINE(double) |
685 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 686 | { |
69223c70 RD |
687 | if (PyNumber_Check(obj)) |
688 | return PyFloat_AsDouble(obj); | |
689 | else { | |
690 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
691 | obj->ob_type->tp_name); | |
692 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
693 | Py_DECREF(errmsg); | |
694 | return 0; | |
695 | } | |
15afbcd0 RD |
696 | } |
697 | ||
698 | ||
699 | SWIGSTATICINLINE(int) | |
700 | SWIG_CheckDouble(PyObject* obj) | |
701 | { | |
702 | SWIG_AsDouble(obj); | |
703 | if (PyErr_Occurred()) { | |
704 | PyErr_Clear(); | |
705 | return 0; | |
706 | } else { | |
707 | return 1; | |
708 | } | |
994141e6 RD |
709 | } |
710 | ||
d14a1e28 RD |
711 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
712 | self->x = x; | |
713 | self->y = y; | |
714 | } | |
e811c8ce | 715 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 716 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
717 | PyObject* tup = PyTuple_New(2); |
718 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
719 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 720 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
721 | return tup; |
722 | } | |
994141e6 | 723 | |
15afbcd0 RD |
724 | SWIGSTATICINLINE(int) |
725 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 726 | { |
15afbcd0 RD |
727 | SWIG_AsLong(obj); |
728 | if (PyErr_Occurred()) { | |
729 | PyErr_Clear(); | |
730 | return 0; | |
731 | } else { | |
732 | return 1; | |
733 | } | |
994141e6 RD |
734 | } |
735 | ||
d14a1e28 RD |
736 | void wxPoint_Set(wxPoint *self,long x,long y){ |
737 | self->x = x; | |
738 | self->y = y; | |
739 | } | |
e811c8ce | 740 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 741 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
742 | PyObject* tup = PyTuple_New(2); |
743 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
744 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 745 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
746 | return tup; |
747 | } | |
748 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
749 | self->x = x; | |
750 | self->y = y; | |
751 | self->width = width; | |
752 | self->height = height; | |
753 | } | |
e811c8ce | 754 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 755 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
756 | PyObject* tup = PyTuple_New(4); |
757 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
758 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
759 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
760 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 761 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
762 | return tup; |
763 | } | |
764 | ||
765 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
766 | wxRegion reg1(*r1); | |
767 | wxRegion reg2(*r2); | |
768 | wxRect dest(0,0,0,0); | |
769 | PyObject* obj; | |
770 | ||
771 | reg1.Intersect(reg2); | |
772 | dest = reg1.GetBox(); | |
773 | ||
774 | if (dest != wxRect(0,0,0,0)) { | |
4f89f6a3 | 775 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 776 | wxRect* newRect = new wxRect(dest); |
e811c8ce | 777 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 778 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
779 | return obj; |
780 | } | |
781 | Py_INCREF(Py_None); | |
782 | return Py_None; | |
783 | } | |
784 | ||
785 | ||
786 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
787 | PyObject* o2; | |
788 | PyObject* o3; | |
789 | ||
790 | if (!target) { | |
791 | target = o; | |
792 | } else if (target == Py_None) { | |
793 | Py_DECREF(Py_None); | |
794 | target = o; | |
795 | } else { | |
796 | if (!PyTuple_Check(target)) { | |
797 | o2 = target; | |
798 | target = PyTuple_New(1); | |
799 | PyTuple_SetItem(target, 0, o2); | |
800 | } | |
801 | o3 = PyTuple_New(1); | |
802 | PyTuple_SetItem(o3, 0, o); | |
803 | ||
804 | o2 = target; | |
805 | target = PySequence_Concat(o2, o3); | |
806 | Py_DECREF(o2); | |
807 | Py_DECREF(o3); | |
808 | } | |
809 | return target; | |
810 | } | |
811 | ||
812 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
813 | self->m_x = x; | |
814 | self->m_y = y; | |
815 | } | |
e811c8ce | 816 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 817 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
818 | PyObject* tup = PyTuple_New(2); |
819 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
820 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 821 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
822 | return tup; |
823 | } | |
824 | ||
825 | #include "wx/wxPython/pyistream.h" | |
826 | ||
827 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
828 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
829 | if (wxis) | |
830 | return new wxPyInputStream(wxis); | |
831 | else | |
832 | return NULL; | |
833 | } | |
994141e6 | 834 | |
15afbcd0 RD |
835 | SWIGSTATICINLINE(PyObject*) |
836 | SWIG_FromChar(char c) | |
994141e6 RD |
837 | { |
838 | return PyString_FromStringAndSize(&c,1); | |
839 | } | |
840 | ||
841 | ||
15afbcd0 RD |
842 | SWIGSTATICINLINE(PyObject* ) |
843 | SWIG_FromUnsignedLong(unsigned long value) | |
844 | { | |
845 | return (value > LONG_MAX) ? | |
846 | PyLong_FromUnsignedLong(value) | |
847 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
848 | } | |
849 | ||
850 | ||
851 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
852 | SWIGSTATIC(int) | |
853 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
994141e6 | 854 | { |
15afbcd0 RD |
855 | static swig_type_info* pchar_info = 0; |
856 | int psize = 0; | |
857 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
858 | ||
859 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
860 | PyErr_Clear(); | |
861 | PyString_AsStringAndSize(obj, cptr, &psize); | |
862 | if (PyErr_Occurred()) { | |
863 | PyErr_Clear(); | |
864 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
865 | } | |
866 | if (size) *size = psize; | |
867 | return 0; | |
868 | } else { | |
869 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
870 | return 1; | |
871 | } | |
994141e6 RD |
872 | } |
873 | ||
874 | ||
15afbcd0 RD |
875 | SWIGSTATIC(void) |
876 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
877 | { | |
878 | char* cptr; size_t csize; | |
879 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
880 | if (PyErr_Occurred()) { | |
881 | PyErr_Clear(); | |
882 | PyObject *err = | |
883 | PyString_FromFormat("a char array of size %d is expected", size); | |
884 | PyErr_SetObject(PyExc_TypeError, err); | |
885 | Py_DECREF(err); | |
886 | } else { | |
887 | /* in C (but not in C++) you can do: | |
888 | ||
889 | char x[5] = "hello"; | |
890 | ||
891 | ie, assing the array using an extra '0' char. | |
892 | */ | |
893 | #ifndef __cplusplus | |
894 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
895 | #endif | |
896 | if (csize > size) { | |
897 | PyObject *err = | |
898 | PyString_FromFormat("a char array of maximum size %d is expected", | |
899 | size); | |
900 | PyErr_SetObject(PyExc_TypeError, err); | |
901 | Py_DECREF(err); | |
902 | } else { | |
903 | if (csize) memcpy(carray, cptr, csize); | |
904 | if (csize < size) memset(carray + csize, 0, size - csize); | |
905 | } | |
906 | } | |
907 | } | |
908 | ||
909 | ||
910 | SWIGSTATICINLINE(char) | |
911 | SWIG_AsChar(PyObject *obj) | |
994141e6 RD |
912 | { |
913 | char c = 0; | |
914 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
15afbcd0 RD |
915 | c = swig_numeric_cast(char, |
916 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
917 | "char", CHAR_MIN, CHAR_MAX)); | |
994141e6 | 918 | } else { |
15afbcd0 RD |
919 | SWIG_AsCharArray(obj, &c, 1); |
920 | if (PyErr_Occurred()) { | |
921 | PyErr_Clear(); | |
994141e6 RD |
922 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
923 | } | |
924 | } | |
925 | return c; | |
926 | } | |
927 | ||
15afbcd0 RD |
928 | |
929 | SWIGSTATICINLINE(int) | |
930 | SWIG_CheckChar(PyObject* obj) | |
931 | { | |
932 | SWIG_AsChar(obj); | |
933 | if (PyErr_Occurred()) { | |
934 | PyErr_Clear(); | |
935 | return 0; | |
936 | } else { | |
937 | return 1; | |
938 | } | |
939 | } | |
940 | ||
d14a1e28 RD |
941 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
942 | // We use only strings for the streams, not unicode | |
943 | PyObject* str = PyObject_Str(obj); | |
944 | if (! str) { | |
945 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
946 | return; | |
947 | } | |
948 | self->Write(PyString_AS_STRING(str), | |
949 | PyString_GET_SIZE(str)); | |
950 | Py_DECREF(str); | |
951 | } | |
952 | ||
953 | #include "wx/wxPython/pyistream.h" | |
954 | ||
955 | ||
956 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
957 | { | |
958 | public: | |
959 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
960 | ||
961 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
962 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
963 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
964 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
965 | ||
966 | wxString GetProtocol(const wxString& location) { | |
967 | return wxFileSystemHandler::GetProtocol(location); | |
968 | } | |
969 | ||
970 | wxString GetLeftLocation(const wxString& location) { | |
971 | return wxFileSystemHandler::GetLeftLocation(location); | |
972 | } | |
973 | ||
974 | wxString GetAnchor(const wxString& location) { | |
975 | return wxFileSystemHandler::GetAnchor(location); | |
976 | } | |
977 | ||
978 | wxString GetRightLocation(const wxString& location) { | |
979 | return wxFileSystemHandler::GetRightLocation(location); | |
980 | } | |
981 | ||
982 | wxString GetMimeTypeFromExt(const wxString& location) { | |
983 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
984 | } | |
985 | ||
986 | PYPRIVATE; | |
987 | }; | |
988 | ||
989 | ||
990 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
991 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
992 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
993 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
994 | ||
995 | ||
15afbcd0 RD |
996 | SWIGSTATICINLINE(bool) |
997 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
998 | { |
999 | return PyObject_IsTrue(obj) ? true : false; | |
1000 | } | |
1001 | ||
1002 | ||
15afbcd0 RD |
1003 | SWIGSTATICINLINE(int) |
1004 | SWIG_CheckBool(PyObject* obj) | |
1005 | { | |
1006 | SWIG_AsBool(obj); | |
1007 | if (PyErr_Occurred()) { | |
1008 | PyErr_Clear(); | |
1009 | return 0; | |
1010 | } else { | |
1011 | return 1; | |
1012 | } | |
1013 | } | |
1014 | ||
1015 | ||
d14a1e28 RD |
1016 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1017 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1018 | return fname.GetFullPath(); | |
1019 | } | |
1020 | ||
1021 | ||
1022 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1023 | wxImage& image, | |
1024 | long type) { | |
1025 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1026 | } | |
1027 | ||
1028 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1029 | const wxBitmap& bitmap, | |
1030 | long type) { | |
1031 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1032 | } | |
1033 | ||
1034 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1035 | PyObject* data) { | |
1036 | wxMemoryFSHandler::AddFile(filename, | |
1037 | // TODO: Verify data type | |
1038 | (void*)PyString_AsString(data), | |
1039 | (size_t)PyString_Size(data)); | |
1040 | } | |
1041 | ||
1042 | ||
1043 | #include "wx/wxPython/pyistream.h" | |
1044 | ||
994141e6 | 1045 | |
15afbcd0 RD |
1046 | SWIGSTATICINLINE(unsigned long) |
1047 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1048 | unsigned long max_value) | |
1049 | { | |
1050 | if (!PyErr_Occurred()) { | |
1051 | if (value > max_value) { | |
1052 | PyObject *err = | |
1053 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1054 | value, type, max_value); | |
1055 | PyErr_SetObject(PyExc_OverflowError, err); | |
1056 | Py_DECREF(err); | |
1057 | } | |
1058 | } | |
1059 | return value; | |
1060 | } | |
1061 | ||
1062 | ||
1063 | SWIGSTATICINLINE(unsigned long) | |
1064 | SWIG_AsUnsignedLong(PyObject * obj) | |
1065 | { | |
1066 | if (PyLong_Check(obj)) { | |
1067 | return PyLong_AsUnsignedLong(obj); | |
1068 | } else { | |
69223c70 | 1069 | long i = SWIG_AsLong(obj); |
15afbcd0 | 1070 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1071 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
1072 | } |
1073 | return i; | |
1074 | } | |
1075 | } | |
1076 | ||
1077 | ||
1078 | SWIGSTATICINLINE(unsigned char) | |
1079 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 1080 | { |
15afbcd0 RD |
1081 | return swig_numeric_cast(unsigned char, |
1082 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1083 | "unsigned char", UCHAR_MAX)); | |
1084 | } | |
1085 | ||
1086 | ||
1087 | SWIGSTATICINLINE(int) | |
1088 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1089 | { | |
1090 | SWIG_AsUnsignedChar(obj); | |
1091 | if (PyErr_Occurred()) { | |
1092 | PyErr_Clear(); | |
1093 | return 0; | |
1094 | } else { | |
1095 | return 1; | |
1096 | } | |
994141e6 RD |
1097 | } |
1098 | ||
66c033b4 | 1099 | wxImage *new_wxImage(int width,int height,bool clear){ |
d14a1e28 RD |
1100 | if (width > 0 && height > 0) |
1101 | return new wxImage(width, height, clear); | |
1102 | else | |
1103 | return new wxImage; | |
1104 | } | |
1105 | wxImage *new_wxImage(wxBitmap const &bitmap){ | |
1106 | return new wxImage(bitmap.ConvertToImage()); | |
1107 | } | |
1108 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1109 | // Copy the source data so the wxImage can clean it up later | |
1110 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1111 | if (copy == NULL) { | |
1112 | PyErr_NoMemory(); | |
1113 | return NULL; | |
1114 | } | |
1115 | memcpy(copy, data, width*height*3); | |
e811c8ce | 1116 | return new wxImage(width, height, copy, False); |
d14a1e28 | 1117 | } |
b2df227b RD |
1118 | wxSize wxImage_GetSize(wxImage *self){ |
1119 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1120 | return size; | |
1121 | } | |
d14a1e28 RD |
1122 | PyObject *wxImage_GetData(wxImage *self){ |
1123 | unsigned char* data = self->GetData(); | |
1124 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1125 | PyObject* rv; | |
1126 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1127 | return rv; | |
1128 | } | |
1129 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1130 | unsigned char* dataPtr; | |
1131 | ||
1132 | if (! PyString_Check(data)) { | |
1133 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1134 | return /* NULL */ ; | |
1135 | } | |
1136 | ||
1137 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1138 | dataPtr = (unsigned char*) malloc(len); | |
1139 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1140 | self->SetData(dataPtr); | |
1141 | // wxImage takes ownership of dataPtr... | |
1142 | } | |
1143 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1144 | unsigned char* data = self->GetData(); | |
1145 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1146 | PyObject* rv; | |
1147 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1148 | return rv; | |
1149 | } | |
1150 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1151 | unsigned char* buffer; | |
1152 | int size; | |
1153 | ||
4f89f6a3 | 1154 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1155 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1156 | goto done; | |
1157 | ||
1158 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1159 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1160 | goto done; | |
1161 | } | |
1162 | self->SetData(buffer); | |
1163 | done: | |
4f89f6a3 | 1164 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1165 | } |
1166 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1167 | unsigned char* data = self->GetAlpha(); | |
1168 | if (! data) { | |
1169 | RETURN_NONE(); | |
1170 | } else { | |
1171 | int len = self->GetWidth() * self->GetHeight(); | |
1172 | PyObject* rv; | |
1173 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1174 | return rv; | |
1175 | } | |
1176 | } | |
1177 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1178 | unsigned char* dataPtr; | |
1179 | ||
1180 | if (! PyString_Check(data)) { | |
1181 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1182 | return /* NULL */ ; | |
1183 | } | |
1184 | ||
1185 | size_t len = self->GetWidth() * self->GetHeight(); | |
1186 | dataPtr = (unsigned char*) malloc(len); | |
1187 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1188 | self->SetAlpha(dataPtr); | |
1189 | // wxImage takes ownership of dataPtr... | |
1190 | } | |
1191 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1192 | unsigned char* data = self->GetAlpha(); | |
1193 | int len = self->GetWidth() * self->GetHeight(); | |
1194 | PyObject* rv; | |
1195 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1196 | return rv; | |
1197 | } | |
1198 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1199 | unsigned char* buffer; | |
1200 | int size; | |
1201 | ||
4f89f6a3 | 1202 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1203 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1204 | goto done; | |
1205 | ||
1206 | if (size != self->GetWidth() * self->GetHeight()) { | |
1207 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1208 | goto done; | |
1209 | } | |
1210 | self->SetAlpha(buffer); | |
1211 | done: | |
4f89f6a3 | 1212 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1213 | } |
15afbcd0 RD |
1214 | |
1215 | SWIGSTATICINLINE(int) | |
1216 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1217 | { | |
1218 | SWIG_AsUnsignedLong(obj); | |
1219 | if (PyErr_Occurred()) { | |
1220 | PyErr_Clear(); | |
1221 | return 0; | |
1222 | } else { | |
1223 | return 1; | |
1224 | } | |
1225 | } | |
1226 | ||
d14a1e28 RD |
1227 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1228 | wxBitmap bitmap(*self); | |
1229 | return bitmap; | |
1230 | } | |
1231 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1232 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1233 | wxBitmap bitmap( mono, 1 ); | |
1234 | return bitmap; | |
1235 | } | |
1236 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1237 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1238 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1239 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1240 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1241 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1242 | if (PyCallable_Check(func)) { | |
1243 | self->Connect(id, lastId, eventType, | |
1244 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1245 | new wxPyCallback(func)); | |
1246 | } | |
1247 | else if (func == Py_None) { | |
1248 | self->Disconnect(id, lastId, eventType, | |
1249 | (wxObjectEventFunction) | |
1250 | &wxPyCallback::EventThunker); | |
1251 | } | |
1252 | else { | |
a95a7133 RD |
1253 | wxPyBLOCK_THREADS( |
1254 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
d14a1e28 RD |
1255 | } |
1256 | } | |
1257 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1258 | return self->Disconnect(id, lastId, eventType, | |
1259 | (wxObjectEventFunction) | |
1260 | &wxPyCallback::EventThunker); | |
1261 | } | |
1262 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1263 | if (_self && _self != Py_None) { | |
1264 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1265 | } | |
1266 | else { | |
1267 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1268 | if (data) { | |
1269 | self->SetClientObject(NULL); // This will delete it too | |
1270 | } | |
1271 | } | |
1272 | } | |
19272049 | 1273 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
3b7224dc | 1274 | #if wxUSE_UNICODE |
19272049 | 1275 | return self->GetUnicodeKey(); |
3b7224dc | 1276 | #else |
d14a1e28 | 1277 | return 0; |
3b7224dc | 1278 | #endif |
d14a1e28 | 1279 | } |
994141e6 | 1280 | |
15afbcd0 RD |
1281 | #if UINT_MAX < LONG_MAX |
1282 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1283 | #else | |
1284 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1285 | #endif | |
994141e6 RD |
1286 | |
1287 | ||
15afbcd0 RD |
1288 | #if UINT_MAX != ULONG_MAX |
1289 | SWIGSTATICINLINE(unsigned int) | |
1290 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 1291 | { |
15afbcd0 RD |
1292 | return swig_numeric_cast(unsigned int, |
1293 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1294 | "unsigned int", UINT_MAX)); | |
1295 | } | |
1296 | #else | |
1297 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1298 | #endif | |
1299 | ||
1300 | ||
1301 | SWIGSTATICINLINE(int) | |
1302 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1303 | { | |
1304 | SWIG_AsUnsignedInt(obj); | |
1305 | if (PyErr_Occurred()) { | |
1306 | PyErr_Clear(); | |
1307 | return 0; | |
1308 | } else { | |
1309 | return 1; | |
1310 | } | |
994141e6 RD |
1311 | } |
1312 | ||
d14a1e28 RD |
1313 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1314 | self->m_size = size; | |
1315 | } | |
1316 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1317 | self->m_pos = pos; | |
1318 | } | |
1319 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1320 | int count = self->GetNumberOfFiles(); | |
1321 | wxString* files = self->GetFiles(); | |
1322 | PyObject* list = PyList_New(count); | |
1323 | ||
1324 | if (!list) { | |
1325 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1326 | return NULL; | |
1327 | } | |
1328 | ||
1329 | for (int i=0; i<count; i++) { | |
1fc9204a | 1330 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1331 | } |
1332 | return list; | |
1333 | } | |
1334 | ||
1335 | ||
1336 | wxPyApp *new_wxPyApp(){ | |
1337 | wxPythonApp = new wxPyApp(); | |
1338 | return wxPythonApp; | |
1339 | } | |
39f61e25 | 1340 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1341 | |
1342 | void wxApp_CleanUp() { | |
1343 | __wxPyCleanup(); | |
1344 | } | |
1345 | ||
1346 | ||
db3e571a | 1347 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d14a1e28 RD |
1348 | |
1349 | ||
1350 | ||
e811c8ce | 1351 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
74a57fcd | 1352 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
22bfe96c | 1353 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d14a1e28 RD |
1354 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1355 | wxWindowList& list = self->GetChildren(); | |
1356 | return wxPy_ConvertList(&list); | |
1357 | } | |
1358 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
74a57fcd RD |
1359 | #if wxUSE_HOTKEY |
1360 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1361 | #else | |
e811c8ce | 1362 | return False; |
74a57fcd | 1363 | #endif |
d14a1e28 RD |
1364 | } |
1365 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1366 | ||
1367 | ||
1368 | ||
e811c8ce | 1369 | return False; |
d14a1e28 RD |
1370 | |
1371 | } | |
1372 | long wxWindow_GetHandle(wxWindow *self){ | |
1373 | return wxPyGetWinHandle(self); | |
1374 | } | |
1375 | ||
1376 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1377 | return wxWindow::FindWindowById(id, parent); | |
1378 | } | |
1379 | ||
1380 | wxWindow* wxFindWindowByName( const wxString& name, | |
1381 | const wxWindow *parent = NULL ) { | |
1382 | return wxWindow::FindWindowByName(name, parent); | |
1383 | } | |
1384 | ||
1385 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1386 | const wxWindow *parent = NULL ) { | |
1387 | return wxWindow::FindWindowByLabel(label, parent); | |
1388 | } | |
1389 | ||
1390 | ||
d14a1e28 | 1391 | #ifdef __WXMSW__ |
4276dc52 RD |
1392 | #include <wx/msw/private.h> // to get wxGetWindowId |
1393 | #endif | |
1394 | ||
1395 | ||
1396 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1397 | #ifdef __WXMSW__ | |
1398 | WXHWND hWnd = (WXHWND)_hWnd; | |
1399 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1400 | wxWindow* win = new wxWindow; |
4276dc52 RD |
1401 | parent->AddChild(win); |
1402 | win->SetEventHandler(win); | |
1403 | win->SetHWND(hWnd); | |
1404 | win->SetId(id); | |
1405 | win->SubclassWin(hWnd); | |
1406 | win->AdoptAttributesFromHWND(); | |
1407 | win->SetupColours(); | |
d14a1e28 RD |
1408 | return win; |
1409 | #else | |
39f61e25 | 1410 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1411 | return NULL; |
1412 | #endif | |
1413 | } | |
1414 | ||
1415 | ||
1416 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1417 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1418 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1419 | ||
1420 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1421 | ||
1422 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1423 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1424 | wxMenuItemList& list = self->GetMenuItems(); | |
1425 | return wxPy_ConvertList(&list); | |
1426 | } | |
1427 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1428 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1429 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1430 | if (clientData) { | |
1431 | wxPyClientData* data = new wxPyClientData(clientData); | |
1432 | return self->Append(item, data); | |
1433 | } else | |
1434 | return self->Append(item); | |
1435 | } | |
1436 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1437 | if (clientData) { | |
1438 | wxPyClientData* data = new wxPyClientData(clientData); | |
1439 | return self->Insert(item, pos, data); | |
1440 | } else | |
1441 | return self->Insert(item, pos); | |
1442 | } | |
1443 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1444 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1445 | if (data) { | |
1446 | Py_INCREF(data->m_obj); | |
1447 | return data->m_obj; | |
1448 | } else { | |
1449 | Py_INCREF(Py_None); | |
1450 | return Py_None; | |
1451 | } | |
1452 | } | |
1453 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1454 | wxPyClientData* data = new wxPyClientData(clientData); | |
1455 | self->SetClientObject(n, data); | |
1456 | } | |
1457 | ||
1458 | ||
248ed943 RD |
1459 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1460 | wxPyUserData* data = NULL; | |
1461 | if ( userData ) { | |
1462 | bool blocked = wxPyBeginBlockThreads(); | |
1463 | data = new wxPyUserData(userData); | |
1464 | wxPyEndBlockThreads(blocked); | |
1465 | } | |
1466 | return new wxSizerItem(window, proportion, flag, border, data); | |
1467 | } | |
1468 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1469 | wxPyUserData* data = NULL; | |
1470 | if ( userData ) { | |
1471 | bool blocked = wxPyBeginBlockThreads(); | |
1472 | data = new wxPyUserData(userData); | |
1473 | wxPyEndBlockThreads(blocked); | |
1474 | } | |
1475 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1476 | } | |
1477 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1478 | wxPyUserData* data = NULL; | |
1479 | if ( userData ) { | |
1480 | bool blocked = wxPyBeginBlockThreads(); | |
1481 | data = new wxPyUserData(userData); | |
1482 | wxPyEndBlockThreads(blocked); | |
1483 | } | |
1484 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1485 | } | |
994141e6 | 1486 | |
15afbcd0 RD |
1487 | #include <float.h> |
1488 | ||
994141e6 | 1489 | SWIGSTATIC(float) |
15afbcd0 RD |
1490 | SWIG_FloatCast(double value) |
1491 | { | |
1492 | float f = 0; | |
1493 | if (!PyErr_Occurred()) { | |
1494 | if (value < FLT_MIN) { | |
1495 | PyObject *err = | |
1496 | PyString_FromFormat("value %g is less than float minimum %g", | |
1497 | value, FLT_MIN); | |
1498 | PyErr_SetObject(PyExc_OverflowError, err); | |
1499 | Py_DECREF(err); | |
1500 | } else if (value > FLT_MAX) { | |
1501 | PyObject *err = | |
1502 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1503 | value, FLT_MAX); | |
1504 | PyErr_SetObject(PyExc_OverflowError, err); | |
1505 | Py_DECREF(err); | |
1506 | } else { | |
1507 | f = swig_numeric_cast(float, value); | |
1508 | } | |
1509 | } | |
1510 | return f; | |
1511 | } | |
1512 | ||
1513 | ||
1514 | SWIGSTATICINLINE(float) | |
1515 | SWIG_AsFloat(PyObject *obj) | |
994141e6 | 1516 | { |
15afbcd0 RD |
1517 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1518 | } | |
1519 | ||
1520 | ||
1521 | SWIGSTATICINLINE(int) | |
1522 | SWIG_CheckFloat(PyObject* obj) | |
1523 | { | |
1524 | SWIG_AsFloat(obj); | |
1525 | if (PyErr_Occurred()) { | |
1526 | PyErr_Clear(); | |
1527 | return 0; | |
1528 | } else { | |
1529 | return 1; | |
1530 | } | |
994141e6 RD |
1531 | } |
1532 | ||
d14a1e28 RD |
1533 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1534 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1535 | if (data) { | |
1536 | Py_INCREF(data->m_obj); | |
1537 | return data->m_obj; | |
1538 | } else { | |
1539 | Py_INCREF(Py_None); | |
1540 | return Py_None; | |
1541 | } | |
1542 | } | |
1543 | ||
1544 | // Figure out the type of the sizer item | |
1545 | ||
1546 | struct wxPySizerItemInfo { | |
1547 | wxPySizerItemInfo() | |
e811c8ce RD |
1548 | : window(NULL), sizer(NULL), gotSize(False), |
1549 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1550 | {} |
1551 | ||
1552 | wxWindow* window; | |
1553 | wxSizer* sizer; | |
1554 | bool gotSize; | |
1555 | wxSize size; | |
1556 | bool gotPos; | |
1557 | int pos; | |
1558 | }; | |
1559 | ||
1560 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1561 | ||
1562 | wxPySizerItemInfo info; | |
1563 | wxSize size; | |
1564 | wxSize* sizePtr = &size; | |
1565 | ||
1566 | // Find out what the type of the item is | |
1567 | // try wxWindow | |
1568 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1569 | PyErr_Clear(); | |
1570 | info.window = NULL; | |
1571 | ||
1572 | // try wxSizer | |
1573 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1574 | PyErr_Clear(); | |
1575 | info.sizer = NULL; | |
1576 | ||
1577 | // try wxSize or (w,h) | |
1578 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1579 | info.size = *sizePtr; | |
e811c8ce | 1580 | info.gotSize = True; |
d14a1e28 RD |
1581 | } |
1582 | ||
1583 | // or a single int | |
1584 | if (checkIdx && PyInt_Check(item)) { | |
1585 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1586 | info.gotPos = True; |
d14a1e28 RD |
1587 | } |
1588 | } | |
1589 | } | |
1590 | ||
1591 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1592 | // no expected type, figure out what kind of error message to generate | |
1593 | if ( !checkSize && !checkIdx ) | |
1594 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1595 | else if ( checkSize && !checkIdx ) | |
1596 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1597 | else if ( !checkSize && checkIdx) | |
1598 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1599 | else | |
1600 | // can this one happen? | |
1601 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1602 | } | |
1603 | ||
1604 | return info; | |
1605 | } | |
1606 | ||
1607 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1608 | if (!self->GetClientObject()) |
1609 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d14a1e28 RD |
1610 | } |
1611 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1612 | ||
1613 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1614 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1615 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1616 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1617 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1618 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1619 | |
1620 | // Now call the real Add method if a valid item type was found | |
1621 | if ( info.window ) | |
1622 | self->Add(info.window, proportion, flag, border, data); | |
1623 | else if ( info.sizer ) | |
1624 | self->Add(info.sizer, proportion, flag, border, data); | |
1625 | else if (info.gotSize) | |
1626 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1627 | proportion, flag, border, data); | |
1628 | } | |
1629 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1630 | ||
1631 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1632 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1633 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1634 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1635 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1636 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1637 | |
1638 | // Now call the real Insert method if a valid item type was found | |
1639 | if ( info.window ) | |
1640 | self->Insert(before, info.window, proportion, flag, border, data); | |
1641 | else if ( info.sizer ) | |
1642 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1643 | else if (info.gotSize) | |
1644 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1645 | proportion, flag, border, data); | |
1646 | } | |
1647 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1648 | ||
1649 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1650 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1651 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1652 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1653 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1654 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1655 | |
1656 | // Now call the real Prepend method if a valid item type was found | |
1657 | if ( info.window ) | |
1658 | self->Prepend(info.window, proportion, flag, border, data); | |
1659 | else if ( info.sizer ) | |
1660 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1661 | else if (info.gotSize) | |
1662 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1663 | proportion, flag, border, data); | |
1664 | } | |
1665 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1666 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1667 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1668 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1669 | if ( info.window ) |
1670 | return self->Remove(info.window); | |
1671 | else if ( info.sizer ) | |
1672 | return self->Remove(info.sizer); | |
1673 | else if ( info.gotPos ) | |
1674 | return self->Remove(info.pos); | |
1675 | else | |
e811c8ce | 1676 | return False; |
d14a1e28 | 1677 | } |
1c0f361b RD |
1678 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1679 | bool blocked = wxPyBeginBlockThreads(); | |
1680 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1681 | wxPyEndBlockThreads(blocked); | |
1682 | if ( info.window ) | |
1683 | return self->Detach(info.window); | |
1684 | else if ( info.sizer ) | |
1685 | return self->Detach(info.sizer); | |
1686 | else if ( info.gotPos ) | |
1687 | return self->Detach(info.pos); | |
1688 | else | |
1689 | return False; | |
1690 | } | |
e811c8ce | 1691 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1692 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1693 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1694 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1695 | if ( info.window ) |
1696 | self->SetItemMinSize(info.window, size); | |
1697 | else if ( info.sizer ) | |
1698 | self->SetItemMinSize(info.sizer, size); | |
1699 | else if ( info.gotPos ) | |
1700 | self->SetItemMinSize(info.pos, size); | |
1701 | } | |
1702 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1703 | wxSizerItemList& list = self->GetChildren(); | |
1704 | return wxPy_ConvertList(&list); | |
1705 | } | |
1706 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
03e37cd5 | 1707 | bool blocked = wxPyBeginBlockThreads(); |
248ed943 | 1708 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
03e37cd5 | 1709 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1710 | if ( info.window ) |
1711 | self->Show(info.window, show); | |
1712 | else if ( info.sizer ) | |
1713 | self->Show(info.sizer, show); | |
248ed943 RD |
1714 | else if ( info.gotPos ) |
1715 | self->Show(info.pos, show); | |
d14a1e28 RD |
1716 | } |
1717 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
03e37cd5 | 1718 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1719 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
03e37cd5 | 1720 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1721 | if ( info.window ) |
1722 | return self->IsShown(info.window); | |
1723 | else if ( info.sizer ) | |
1724 | return self->IsShown(info.sizer); | |
248ed943 RD |
1725 | else if ( info.gotPos ) |
1726 | return self->IsShown(info.pos); | |
d14a1e28 | 1727 | else |
e811c8ce | 1728 | return False; |
d14a1e28 RD |
1729 | } |
1730 | ||
1731 | // See pyclasses.h | |
1732 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1733 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1734 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1735 | ||
1736 | ||
1737 | ||
1738 | ||
1739 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1740 | { | |
4f89f6a3 RD |
1741 | if (source == Py_None) { |
1742 | **obj = wxGBPosition(-1,-1); | |
1743 | return True; | |
1744 | } | |
d14a1e28 RD |
1745 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1746 | } | |
1747 | ||
1748 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1749 | { | |
4f89f6a3 RD |
1750 | if (source == Py_None) { |
1751 | **obj = wxGBSpan(-1,-1); | |
1752 | return True; | |
1753 | } | |
d14a1e28 RD |
1754 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1755 | } | |
1756 | ||
1757 | ||
e811c8ce RD |
1758 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1759 | self->SetRow(row); | |
1760 | self->SetCol(col); | |
1761 | } | |
1762 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1763 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1764 | PyObject* tup = PyTuple_New(2); |
1765 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1766 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1767 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1768 | return tup; |
1769 | } | |
e811c8ce RD |
1770 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1771 | self->SetRowspan(rowspan); | |
1772 | self->SetColspan(colspan); | |
1773 | } | |
1774 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1775 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1776 | PyObject* tup = PyTuple_New(2); |
1777 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1778 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1779 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1780 | return tup; |
1781 | } | |
248ed943 RD |
1782 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1783 | wxPyUserData* data = NULL; | |
1784 | if ( userData ) { | |
1785 | bool blocked = wxPyBeginBlockThreads(); | |
1786 | data = new wxPyUserData(userData); | |
1787 | wxPyEndBlockThreads(blocked); | |
1788 | } | |
1789 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
1790 | } | |
1791 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1792 | wxPyUserData* data = NULL; | |
1793 | if ( userData ) { | |
1794 | bool blocked = wxPyBeginBlockThreads(); | |
1795 | data = new wxPyUserData(userData); | |
1796 | wxPyEndBlockThreads(blocked); | |
1797 | } | |
1798 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
1799 | } | |
1800 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1801 | wxPyUserData* data = NULL; | |
1802 | if ( userData ) { | |
1803 | bool blocked = wxPyBeginBlockThreads(); | |
1804 | data = new wxPyUserData(userData); | |
1805 | wxPyEndBlockThreads(blocked); | |
1806 | } | |
1807 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
1808 | } | |
1809 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
1810 | int row, col; | |
1811 | self->GetEndPos(row, col); | |
1812 | return wxGBPosition(row, col); | |
1813 | } | |
d14a1e28 RD |
1814 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
1815 | ||
1816 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1817 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1818 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1819 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1820 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1821 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1822 | |
1823 | // Now call the real Add method if a valid item type was found | |
1824 | if ( info.window ) | |
1825 | return self->Add(info.window, pos, span, flag, border, data); | |
1826 | else if ( info.sizer ) | |
1827 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1828 | else if (info.gotSize) | |
1829 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1830 | pos, span, flag, border, data); | |
e811c8ce | 1831 | return False; |
d14a1e28 RD |
1832 | } |
1833 | ||
1834 | ||
1835 | #ifdef __cplusplus | |
1836 | extern "C" { | |
1837 | #endif | |
196addbf RD |
1838 | static int _wrap_EmptyString_set(PyObject *_val) { |
1839 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1840 | return 1; | |
1841 | } | |
1842 | ||
1843 | ||
1844 | static PyObject *_wrap_EmptyString_get() { | |
1845 | PyObject *pyobj; | |
1846 | ||
1847 | { | |
1848 | #if wxUSE_UNICODE | |
1849 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1850 | #else | |
1851 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1852 | #endif | |
1853 | } | |
1854 | return pyobj; | |
1855 | } | |
1856 | ||
1857 | ||
d14a1e28 RD |
1858 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1859 | PyObject *resultobj; | |
1860 | wxObject *arg1 = (wxObject *) 0 ; | |
1861 | wxString result; | |
1862 | PyObject * obj0 = 0 ; | |
1863 | char *kwnames[] = { | |
1864 | (char *) "self", NULL | |
1865 | }; | |
1866 | ||
1867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1870 | { |
1871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1872 | result = wxObject_GetClassName(arg1); | |
1873 | ||
1874 | wxPyEndAllowThreads(__tstate); | |
1875 | if (PyErr_Occurred()) SWIG_fail; | |
1876 | } | |
1877 | { | |
1878 | #if wxUSE_UNICODE | |
1879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1880 | #else | |
1881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1882 | #endif | |
1883 | } | |
1884 | return resultobj; | |
1885 | fail: | |
1886 | return NULL; | |
1887 | } | |
1888 | ||
1889 | ||
1890 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1891 | PyObject *resultobj; | |
1892 | wxObject *arg1 = (wxObject *) 0 ; | |
1893 | PyObject * obj0 = 0 ; | |
1894 | char *kwnames[] = { | |
1895 | (char *) "self", NULL | |
1896 | }; | |
1897 | ||
1898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1901 | { |
1902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1903 | wxObject_Destroy(arg1); | |
1904 | ||
1905 | wxPyEndAllowThreads(__tstate); | |
1906 | if (PyErr_Occurred()) SWIG_fail; | |
1907 | } | |
1908 | Py_INCREF(Py_None); resultobj = Py_None; | |
1909 | return resultobj; | |
1910 | fail: | |
1911 | return NULL; | |
1912 | } | |
1913 | ||
1914 | ||
1915 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1916 | PyObject *obj; | |
1917 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1918 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1919 | Py_INCREF(obj); | |
1920 | return Py_BuildValue((char *)""); | |
1921 | } | |
1922 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1923 | PyObject *resultobj; | |
1924 | wxSize *arg1 = (wxSize *) 0 ; | |
1925 | int arg2 ; | |
1926 | PyObject * obj0 = 0 ; | |
994141e6 | 1927 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1928 | char *kwnames[] = { |
1929 | (char *) "self",(char *) "x", NULL | |
1930 | }; | |
1931 | ||
994141e6 | 1932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1935 | arg2 = (int) SWIG_AsInt(obj1); | |
1936 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1937 | if (arg1) (arg1)->x = arg2; |
1938 | ||
1939 | Py_INCREF(Py_None); resultobj = Py_None; | |
1940 | return resultobj; | |
1941 | fail: | |
1942 | return NULL; | |
1943 | } | |
1944 | ||
1945 | ||
1946 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1947 | PyObject *resultobj; | |
1948 | wxSize *arg1 = (wxSize *) 0 ; | |
1949 | int result; | |
1950 | PyObject * obj0 = 0 ; | |
1951 | char *kwnames[] = { | |
1952 | (char *) "self", NULL | |
1953 | }; | |
1954 | ||
1955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1958 | result = (int) ((arg1)->x); |
1959 | ||
15afbcd0 | 1960 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1961 | return resultobj; |
1962 | fail: | |
1963 | return NULL; | |
1964 | } | |
1965 | ||
1966 | ||
1967 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1968 | PyObject *resultobj; | |
1969 | wxSize *arg1 = (wxSize *) 0 ; | |
1970 | int arg2 ; | |
1971 | PyObject * obj0 = 0 ; | |
994141e6 | 1972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1973 | char *kwnames[] = { |
1974 | (char *) "self",(char *) "y", NULL | |
1975 | }; | |
1976 | ||
994141e6 | 1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1980 | arg2 = (int) SWIG_AsInt(obj1); | |
1981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1982 | if (arg1) (arg1)->y = arg2; |
1983 | ||
1984 | Py_INCREF(Py_None); resultobj = Py_None; | |
1985 | return resultobj; | |
1986 | fail: | |
1987 | return NULL; | |
1988 | } | |
1989 | ||
1990 | ||
1991 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject *resultobj; | |
1993 | wxSize *arg1 = (wxSize *) 0 ; | |
1994 | int result; | |
1995 | PyObject * obj0 = 0 ; | |
1996 | char *kwnames[] = { | |
1997 | (char *) "self", NULL | |
1998 | }; | |
1999 | ||
2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2003 | result = (int) ((arg1)->y); |
2004 | ||
15afbcd0 | 2005 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2006 | return resultobj; |
2007 | fail: | |
2008 | return NULL; | |
2009 | } | |
2010 | ||
2011 | ||
2012 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2013 | PyObject *resultobj; | |
2014 | int arg1 = (int) 0 ; | |
2015 | int arg2 = (int) 0 ; | |
2016 | wxSize *result; | |
994141e6 RD |
2017 | PyObject * obj0 = 0 ; |
2018 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2019 | char *kwnames[] = { |
2020 | (char *) "w",(char *) "h", NULL | |
2021 | }; | |
2022 | ||
994141e6 RD |
2023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
2024 | if (obj0) { | |
15afbcd0 RD |
2025 | arg1 = (int) SWIG_AsInt(obj0); |
2026 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2027 | } |
2028 | if (obj1) { | |
15afbcd0 RD |
2029 | arg2 = (int) SWIG_AsInt(obj1); |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2031 | } |
d14a1e28 RD |
2032 | { |
2033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2034 | result = (wxSize *)new wxSize(arg1,arg2); | |
2035 | ||
2036 | wxPyEndAllowThreads(__tstate); | |
2037 | if (PyErr_Occurred()) SWIG_fail; | |
2038 | } | |
15afbcd0 | 2039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2040 | return resultobj; |
2041 | fail: | |
2042 | return NULL; | |
2043 | } | |
2044 | ||
2045 | ||
2046 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2047 | PyObject *resultobj; | |
2048 | wxSize *arg1 = (wxSize *) 0 ; | |
2049 | PyObject * obj0 = 0 ; | |
2050 | char *kwnames[] = { | |
2051 | (char *) "self", NULL | |
2052 | }; | |
2053 | ||
2054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2057 | { |
2058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2059 | delete arg1; | |
2060 | ||
2061 | wxPyEndAllowThreads(__tstate); | |
2062 | if (PyErr_Occurred()) SWIG_fail; | |
2063 | } | |
2064 | Py_INCREF(Py_None); resultobj = Py_None; | |
2065 | return resultobj; | |
2066 | fail: | |
2067 | return NULL; | |
2068 | } | |
2069 | ||
2070 | ||
2071 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2072 | PyObject *resultobj; | |
2073 | wxSize *arg1 = (wxSize *) 0 ; | |
2074 | wxSize *arg2 = 0 ; | |
2075 | bool result; | |
2076 | wxSize temp2 ; | |
2077 | PyObject * obj0 = 0 ; | |
2078 | PyObject * obj1 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "sz", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2086 | { |
2087 | arg2 = &temp2; | |
2088 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2089 | } | |
2090 | { | |
2091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2092 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2093 | |
2094 | wxPyEndAllowThreads(__tstate); | |
2095 | if (PyErr_Occurred()) SWIG_fail; | |
2096 | } | |
4f89f6a3 RD |
2097 | { |
2098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2099 | } | |
d14a1e28 RD |
2100 | return resultobj; |
2101 | fail: | |
2102 | return NULL; | |
2103 | } | |
2104 | ||
2105 | ||
2106 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2107 | PyObject *resultobj; | |
2108 | wxSize *arg1 = (wxSize *) 0 ; | |
2109 | wxSize *arg2 = 0 ; | |
2110 | bool result; | |
2111 | wxSize temp2 ; | |
2112 | PyObject * obj0 = 0 ; | |
2113 | PyObject * obj1 = 0 ; | |
2114 | char *kwnames[] = { | |
2115 | (char *) "self",(char *) "sz", NULL | |
2116 | }; | |
2117 | ||
2118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2121 | { |
2122 | arg2 = &temp2; | |
2123 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2124 | } | |
2125 | { | |
2126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2127 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2128 | |
2129 | wxPyEndAllowThreads(__tstate); | |
2130 | if (PyErr_Occurred()) SWIG_fail; | |
2131 | } | |
4f89f6a3 RD |
2132 | { |
2133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2134 | } | |
d14a1e28 RD |
2135 | return resultobj; |
2136 | fail: | |
2137 | return NULL; | |
2138 | } | |
2139 | ||
2140 | ||
2141 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject *resultobj; | |
2143 | wxSize *arg1 = (wxSize *) 0 ; | |
2144 | wxSize *arg2 = 0 ; | |
2145 | wxSize result; | |
2146 | wxSize temp2 ; | |
2147 | PyObject * obj0 = 0 ; | |
2148 | PyObject * obj1 = 0 ; | |
2149 | char *kwnames[] = { | |
2150 | (char *) "self",(char *) "sz", NULL | |
2151 | }; | |
2152 | ||
2153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2156 | { |
2157 | arg2 = &temp2; | |
2158 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2159 | } | |
2160 | { | |
2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2162 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2163 | ||
2164 | wxPyEndAllowThreads(__tstate); | |
2165 | if (PyErr_Occurred()) SWIG_fail; | |
2166 | } | |
2167 | { | |
2168 | wxSize * resultptr; | |
2169 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2170 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2171 | } |
2172 | return resultobj; | |
2173 | fail: | |
2174 | return NULL; | |
2175 | } | |
2176 | ||
2177 | ||
2178 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2179 | PyObject *resultobj; | |
2180 | wxSize *arg1 = (wxSize *) 0 ; | |
2181 | wxSize *arg2 = 0 ; | |
2182 | wxSize result; | |
2183 | wxSize temp2 ; | |
2184 | PyObject * obj0 = 0 ; | |
2185 | PyObject * obj1 = 0 ; | |
2186 | char *kwnames[] = { | |
2187 | (char *) "self",(char *) "sz", NULL | |
2188 | }; | |
2189 | ||
2190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2193 | { |
2194 | arg2 = &temp2; | |
2195 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2196 | } | |
2197 | { | |
2198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2199 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2200 | ||
2201 | wxPyEndAllowThreads(__tstate); | |
2202 | if (PyErr_Occurred()) SWIG_fail; | |
2203 | } | |
2204 | { | |
2205 | wxSize * resultptr; | |
2206 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2207 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2208 | } |
2209 | return resultobj; | |
2210 | fail: | |
2211 | return NULL; | |
2212 | } | |
2213 | ||
2214 | ||
2215 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject *resultobj; | |
2217 | wxSize *arg1 = (wxSize *) 0 ; | |
2218 | wxSize *arg2 = 0 ; | |
2219 | wxSize temp2 ; | |
2220 | PyObject * obj0 = 0 ; | |
2221 | PyObject * obj1 = 0 ; | |
2222 | char *kwnames[] = { | |
2223 | (char *) "self",(char *) "sz", NULL | |
2224 | }; | |
2225 | ||
2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2229 | { |
2230 | arg2 = &temp2; | |
2231 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2232 | } | |
2233 | { | |
2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2235 | (arg1)->IncTo((wxSize const &)*arg2); | |
2236 | ||
2237 | wxPyEndAllowThreads(__tstate); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | } | |
2240 | Py_INCREF(Py_None); resultobj = Py_None; | |
2241 | return resultobj; | |
2242 | fail: | |
2243 | return NULL; | |
2244 | } | |
2245 | ||
2246 | ||
2247 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2248 | PyObject *resultobj; | |
2249 | wxSize *arg1 = (wxSize *) 0 ; | |
2250 | wxSize *arg2 = 0 ; | |
2251 | wxSize temp2 ; | |
2252 | PyObject * obj0 = 0 ; | |
2253 | PyObject * obj1 = 0 ; | |
2254 | char *kwnames[] = { | |
2255 | (char *) "self",(char *) "sz", NULL | |
2256 | }; | |
2257 | ||
2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2261 | { |
2262 | arg2 = &temp2; | |
2263 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2264 | } | |
2265 | { | |
2266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2267 | (arg1)->DecTo((wxSize const &)*arg2); | |
2268 | ||
2269 | wxPyEndAllowThreads(__tstate); | |
2270 | if (PyErr_Occurred()) SWIG_fail; | |
2271 | } | |
2272 | Py_INCREF(Py_None); resultobj = Py_None; | |
2273 | return resultobj; | |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
2279 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2280 | PyObject *resultobj; | |
2281 | wxSize *arg1 = (wxSize *) 0 ; | |
2282 | int arg2 ; | |
2283 | int arg3 ; | |
2284 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2285 | PyObject * obj1 = 0 ; |
2286 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2287 | char *kwnames[] = { |
e811c8ce | 2288 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2289 | }; |
2290 | ||
994141e6 | 2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2294 | arg2 = (int) SWIG_AsInt(obj1); | |
2295 | if (PyErr_Occurred()) SWIG_fail; | |
2296 | arg3 = (int) SWIG_AsInt(obj2); | |
2297 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2298 | { |
2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2300 | (arg1)->Set(arg2,arg3); | |
2301 | ||
2302 | wxPyEndAllowThreads(__tstate); | |
2303 | if (PyErr_Occurred()) SWIG_fail; | |
2304 | } | |
2305 | Py_INCREF(Py_None); resultobj = Py_None; | |
2306 | return resultobj; | |
2307 | fail: | |
2308 | return NULL; | |
2309 | } | |
2310 | ||
2311 | ||
2312 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2313 | PyObject *resultobj; | |
2314 | wxSize *arg1 = (wxSize *) 0 ; | |
2315 | int arg2 ; | |
2316 | PyObject * obj0 = 0 ; | |
994141e6 | 2317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2318 | char *kwnames[] = { |
2319 | (char *) "self",(char *) "w", NULL | |
2320 | }; | |
2321 | ||
994141e6 | 2322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2325 | arg2 = (int) SWIG_AsInt(obj1); | |
2326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2327 | { |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | (arg1)->SetWidth(arg2); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | Py_INCREF(Py_None); resultobj = Py_None; | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj; | |
2343 | wxSize *arg1 = (wxSize *) 0 ; | |
2344 | int arg2 ; | |
2345 | PyObject * obj0 = 0 ; | |
994141e6 | 2346 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2347 | char *kwnames[] = { |
2348 | (char *) "self",(char *) "h", NULL | |
2349 | }; | |
2350 | ||
994141e6 | 2351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2354 | arg2 = (int) SWIG_AsInt(obj1); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2356 | { |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | (arg1)->SetHeight(arg2); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | Py_INCREF(Py_None); resultobj = Py_None; | |
2364 | return resultobj; | |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject *resultobj; | |
2372 | wxSize *arg1 = (wxSize *) 0 ; | |
2373 | int result; | |
2374 | PyObject * obj0 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "self", NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2382 | { |
2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2384 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2385 | ||
2386 | wxPyEndAllowThreads(__tstate); | |
2387 | if (PyErr_Occurred()) SWIG_fail; | |
2388 | } | |
15afbcd0 | 2389 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2390 | return resultobj; |
2391 | fail: | |
2392 | return NULL; | |
2393 | } | |
2394 | ||
2395 | ||
2396 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2397 | PyObject *resultobj; | |
2398 | wxSize *arg1 = (wxSize *) 0 ; | |
2399 | int result; | |
2400 | PyObject * obj0 = 0 ; | |
2401 | char *kwnames[] = { | |
2402 | (char *) "self", NULL | |
2403 | }; | |
2404 | ||
2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2408 | { |
2409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2410 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2411 | ||
2412 | wxPyEndAllowThreads(__tstate); | |
2413 | if (PyErr_Occurred()) SWIG_fail; | |
2414 | } | |
15afbcd0 | 2415 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2416 | return resultobj; |
2417 | fail: | |
2418 | return NULL; | |
2419 | } | |
2420 | ||
2421 | ||
74a57fcd RD |
2422 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { |
2423 | PyObject *resultobj; | |
2424 | wxSize *arg1 = (wxSize *) 0 ; | |
2425 | bool result; | |
2426 | PyObject * obj0 = 0 ; | |
2427 | char *kwnames[] = { | |
2428 | (char *) "self", NULL | |
2429 | }; | |
2430 | ||
2431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2434 | { | |
2435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2436 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2437 | ||
2438 | wxPyEndAllowThreads(__tstate); | |
2439 | if (PyErr_Occurred()) SWIG_fail; | |
2440 | } | |
2441 | { | |
2442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2443 | } | |
2444 | return resultobj; | |
2445 | fail: | |
2446 | return NULL; | |
2447 | } | |
2448 | ||
2449 | ||
2450 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2451 | PyObject *resultobj; | |
2452 | wxSize *arg1 = (wxSize *) 0 ; | |
2453 | wxSize *arg2 = 0 ; | |
2454 | wxSize temp2 ; | |
2455 | PyObject * obj0 = 0 ; | |
2456 | PyObject * obj1 = 0 ; | |
2457 | char *kwnames[] = { | |
2458 | (char *) "self",(char *) "size", NULL | |
2459 | }; | |
2460 | ||
2461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2464 | { | |
2465 | arg2 = &temp2; | |
2466 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2467 | } | |
2468 | { | |
2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2470 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2471 | ||
2472 | wxPyEndAllowThreads(__tstate); | |
2473 | if (PyErr_Occurred()) SWIG_fail; | |
2474 | } | |
2475 | Py_INCREF(Py_None); resultobj = Py_None; | |
2476 | return resultobj; | |
2477 | fail: | |
2478 | return NULL; | |
2479 | } | |
2480 | ||
2481 | ||
e811c8ce | 2482 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2483 | PyObject *resultobj; |
2484 | wxSize *arg1 = (wxSize *) 0 ; | |
2485 | PyObject *result; | |
2486 | PyObject * obj0 = 0 ; | |
2487 | char *kwnames[] = { | |
2488 | (char *) "self", NULL | |
2489 | }; | |
2490 | ||
e811c8ce | 2491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2494 | { |
2495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2496 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2497 | |
2498 | wxPyEndAllowThreads(__tstate); | |
2499 | if (PyErr_Occurred()) SWIG_fail; | |
2500 | } | |
2501 | resultobj = result; | |
2502 | return resultobj; | |
2503 | fail: | |
2504 | return NULL; | |
2505 | } | |
2506 | ||
2507 | ||
2508 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2509 | PyObject *obj; | |
2510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2511 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2512 | Py_INCREF(obj); | |
2513 | return Py_BuildValue((char *)""); | |
2514 | } | |
2515 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2516 | PyObject *resultobj; | |
2517 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2518 | double arg2 ; | |
2519 | PyObject * obj0 = 0 ; | |
994141e6 | 2520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2521 | char *kwnames[] = { |
2522 | (char *) "self",(char *) "x", NULL | |
2523 | }; | |
2524 | ||
994141e6 | 2525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2528 | arg2 = (double) SWIG_AsDouble(obj1); | |
2529 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2530 | if (arg1) (arg1)->x = arg2; |
2531 | ||
2532 | Py_INCREF(Py_None); resultobj = Py_None; | |
2533 | return resultobj; | |
2534 | fail: | |
2535 | return NULL; | |
2536 | } | |
2537 | ||
2538 | ||
2539 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2540 | PyObject *resultobj; | |
2541 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2542 | double result; | |
2543 | PyObject * obj0 = 0 ; | |
2544 | char *kwnames[] = { | |
2545 | (char *) "self", NULL | |
2546 | }; | |
2547 | ||
2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2551 | result = (double) ((arg1)->x); |
2552 | ||
15afbcd0 | 2553 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2554 | return resultobj; |
2555 | fail: | |
2556 | return NULL; | |
2557 | } | |
2558 | ||
2559 | ||
2560 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2561 | PyObject *resultobj; | |
2562 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2563 | double arg2 ; | |
2564 | PyObject * obj0 = 0 ; | |
994141e6 | 2565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2566 | char *kwnames[] = { |
2567 | (char *) "self",(char *) "y", NULL | |
2568 | }; | |
2569 | ||
994141e6 | 2570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2573 | arg2 = (double) SWIG_AsDouble(obj1); | |
2574 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2575 | if (arg1) (arg1)->y = arg2; |
2576 | ||
2577 | Py_INCREF(Py_None); resultobj = Py_None; | |
2578 | return resultobj; | |
2579 | fail: | |
2580 | return NULL; | |
2581 | } | |
2582 | ||
2583 | ||
2584 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2585 | PyObject *resultobj; | |
2586 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2587 | double result; | |
2588 | PyObject * obj0 = 0 ; | |
2589 | char *kwnames[] = { | |
2590 | (char *) "self", NULL | |
2591 | }; | |
2592 | ||
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2596 | result = (double) ((arg1)->y); |
2597 | ||
15afbcd0 | 2598 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2599 | return resultobj; |
2600 | fail: | |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | double arg1 = (double) 0.0 ; | |
2608 | double arg2 = (double) 0.0 ; | |
2609 | wxRealPoint *result; | |
994141e6 RD |
2610 | PyObject * obj0 = 0 ; |
2611 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2612 | char *kwnames[] = { |
2613 | (char *) "x",(char *) "y", NULL | |
2614 | }; | |
2615 | ||
994141e6 RD |
2616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2617 | if (obj0) { | |
15afbcd0 RD |
2618 | arg1 = (double) SWIG_AsDouble(obj0); |
2619 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2620 | } |
2621 | if (obj1) { | |
15afbcd0 RD |
2622 | arg2 = (double) SWIG_AsDouble(obj1); |
2623 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2624 | } |
d14a1e28 RD |
2625 | { |
2626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2627 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2628 | ||
2629 | wxPyEndAllowThreads(__tstate); | |
2630 | if (PyErr_Occurred()) SWIG_fail; | |
2631 | } | |
15afbcd0 | 2632 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2633 | return resultobj; |
2634 | fail: | |
2635 | return NULL; | |
2636 | } | |
2637 | ||
2638 | ||
2639 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2640 | PyObject *resultobj; | |
2641 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2642 | PyObject * obj0 = 0 ; | |
2643 | char *kwnames[] = { | |
2644 | (char *) "self", NULL | |
2645 | }; | |
2646 | ||
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2650 | { |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2652 | delete arg1; | |
2653 | ||
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
2657 | Py_INCREF(Py_None); resultobj = Py_None; | |
2658 | return resultobj; | |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
e811c8ce | 2664 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2665 | PyObject *resultobj; |
2666 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2667 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2668 | bool result; |
d14a1e28 RD |
2669 | wxRealPoint temp2 ; |
2670 | PyObject * obj0 = 0 ; | |
2671 | PyObject * obj1 = 0 ; | |
2672 | char *kwnames[] = { | |
2673 | (char *) "self",(char *) "pt", NULL | |
2674 | }; | |
2675 | ||
e811c8ce | 2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2679 | { |
2680 | arg2 = &temp2; | |
2681 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2682 | } | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2685 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2686 | |
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
4f89f6a3 RD |
2690 | { |
2691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2692 | } | |
d14a1e28 RD |
2693 | return resultobj; |
2694 | fail: | |
2695 | return NULL; | |
2696 | } | |
2697 | ||
2698 | ||
e811c8ce | 2699 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2700 | PyObject *resultobj; |
2701 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2702 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2703 | bool result; |
d14a1e28 RD |
2704 | wxRealPoint temp2 ; |
2705 | PyObject * obj0 = 0 ; | |
2706 | PyObject * obj1 = 0 ; | |
2707 | char *kwnames[] = { | |
2708 | (char *) "self",(char *) "pt", NULL | |
2709 | }; | |
2710 | ||
e811c8ce | 2711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2714 | { |
2715 | arg2 = &temp2; | |
2716 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2717 | } | |
2718 | { | |
2719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2720 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2721 | |
2722 | wxPyEndAllowThreads(__tstate); | |
2723 | if (PyErr_Occurred()) SWIG_fail; | |
2724 | } | |
4f89f6a3 RD |
2725 | { |
2726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2727 | } | |
d14a1e28 RD |
2728 | return resultobj; |
2729 | fail: | |
2730 | return NULL; | |
2731 | } | |
2732 | ||
2733 | ||
e811c8ce | 2734 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2735 | PyObject *resultobj; |
2736 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2737 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2738 | wxRealPoint result; |
d14a1e28 RD |
2739 | wxRealPoint temp2 ; |
2740 | PyObject * obj0 = 0 ; | |
2741 | PyObject * obj1 = 0 ; | |
2742 | char *kwnames[] = { | |
2743 | (char *) "self",(char *) "pt", NULL | |
2744 | }; | |
2745 | ||
e811c8ce | 2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2749 | { |
2750 | arg2 = &temp2; | |
2751 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2752 | } | |
2753 | { | |
2754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2755 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2756 | |
2757 | wxPyEndAllowThreads(__tstate); | |
2758 | if (PyErr_Occurred()) SWIG_fail; | |
2759 | } | |
e811c8ce RD |
2760 | { |
2761 | wxRealPoint * resultptr; | |
2762 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2763 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2764 | } |
d14a1e28 RD |
2765 | return resultobj; |
2766 | fail: | |
2767 | return NULL; | |
2768 | } | |
2769 | ||
2770 | ||
e811c8ce | 2771 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2772 | PyObject *resultobj; |
2773 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2774 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2775 | wxRealPoint result; |
d14a1e28 RD |
2776 | wxRealPoint temp2 ; |
2777 | PyObject * obj0 = 0 ; | |
2778 | PyObject * obj1 = 0 ; | |
2779 | char *kwnames[] = { | |
2780 | (char *) "self",(char *) "pt", NULL | |
2781 | }; | |
2782 | ||
e811c8ce | 2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2786 | { |
2787 | arg2 = &temp2; | |
2788 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2789 | } | |
2790 | { | |
2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2792 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2793 | |
2794 | wxPyEndAllowThreads(__tstate); | |
2795 | if (PyErr_Occurred()) SWIG_fail; | |
2796 | } | |
e811c8ce RD |
2797 | { |
2798 | wxRealPoint * resultptr; | |
2799 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2800 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2801 | } |
d14a1e28 RD |
2802 | return resultobj; |
2803 | fail: | |
2804 | return NULL; | |
2805 | } | |
2806 | ||
2807 | ||
2808 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2809 | PyObject *resultobj; | |
2810 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2811 | double arg2 ; | |
2812 | double arg3 ; | |
2813 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2814 | PyObject * obj1 = 0 ; |
2815 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2816 | char *kwnames[] = { |
2817 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2818 | }; | |
2819 | ||
994141e6 | 2820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2823 | arg2 = (double) SWIG_AsDouble(obj1); | |
2824 | if (PyErr_Occurred()) SWIG_fail; | |
2825 | arg3 = (double) SWIG_AsDouble(obj2); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2827 | { |
2828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2829 | wxRealPoint_Set(arg1,arg2,arg3); | |
2830 | ||
2831 | wxPyEndAllowThreads(__tstate); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
2833 | } | |
2834 | Py_INCREF(Py_None); resultobj = Py_None; | |
2835 | return resultobj; | |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
e811c8ce | 2841 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2842 | PyObject *resultobj; |
2843 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2844 | PyObject *result; | |
2845 | PyObject * obj0 = 0 ; | |
2846 | char *kwnames[] = { | |
2847 | (char *) "self", NULL | |
2848 | }; | |
2849 | ||
e811c8ce | 2850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2853 | { |
2854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2855 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2856 | |
2857 | wxPyEndAllowThreads(__tstate); | |
2858 | if (PyErr_Occurred()) SWIG_fail; | |
2859 | } | |
2860 | resultobj = result; | |
2861 | return resultobj; | |
2862 | fail: | |
2863 | return NULL; | |
2864 | } | |
2865 | ||
2866 | ||
2867 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2868 | PyObject *obj; | |
2869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2870 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2871 | Py_INCREF(obj); | |
2872 | return Py_BuildValue((char *)""); | |
2873 | } | |
2874 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2875 | PyObject *resultobj; | |
2876 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2877 | int arg2 ; | |
2878 | PyObject * obj0 = 0 ; | |
994141e6 | 2879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2880 | char *kwnames[] = { |
2881 | (char *) "self",(char *) "x", NULL | |
2882 | }; | |
2883 | ||
994141e6 | 2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2887 | arg2 = (int) SWIG_AsInt(obj1); | |
2888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2889 | if (arg1) (arg1)->x = arg2; |
2890 | ||
2891 | Py_INCREF(Py_None); resultobj = Py_None; | |
2892 | return resultobj; | |
2893 | fail: | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
2898 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2899 | PyObject *resultobj; | |
2900 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2901 | int result; | |
2902 | PyObject * obj0 = 0 ; | |
2903 | char *kwnames[] = { | |
2904 | (char *) "self", NULL | |
2905 | }; | |
2906 | ||
2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2910 | result = (int) ((arg1)->x); |
2911 | ||
15afbcd0 | 2912 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2913 | return resultobj; |
2914 | fail: | |
2915 | return NULL; | |
2916 | } | |
2917 | ||
2918 | ||
2919 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2920 | PyObject *resultobj; | |
2921 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2922 | int arg2 ; | |
2923 | PyObject * obj0 = 0 ; | |
994141e6 | 2924 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2925 | char *kwnames[] = { |
2926 | (char *) "self",(char *) "y", NULL | |
2927 | }; | |
2928 | ||
994141e6 | 2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2932 | arg2 = (int) SWIG_AsInt(obj1); | |
2933 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2934 | if (arg1) (arg1)->y = arg2; |
2935 | ||
2936 | Py_INCREF(Py_None); resultobj = Py_None; | |
2937 | return resultobj; | |
2938 | fail: | |
2939 | return NULL; | |
2940 | } | |
2941 | ||
2942 | ||
2943 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2944 | PyObject *resultobj; | |
2945 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2946 | int result; | |
2947 | PyObject * obj0 = 0 ; | |
2948 | char *kwnames[] = { | |
2949 | (char *) "self", NULL | |
2950 | }; | |
2951 | ||
2952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2955 | result = (int) ((arg1)->y); |
2956 | ||
15afbcd0 | 2957 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2958 | return resultobj; |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | int arg1 = (int) 0 ; | |
2967 | int arg2 = (int) 0 ; | |
2968 | wxPoint *result; | |
994141e6 RD |
2969 | PyObject * obj0 = 0 ; |
2970 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2971 | char *kwnames[] = { |
2972 | (char *) "x",(char *) "y", NULL | |
2973 | }; | |
2974 | ||
994141e6 RD |
2975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2976 | if (obj0) { | |
15afbcd0 RD |
2977 | arg1 = (int) SWIG_AsInt(obj0); |
2978 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2979 | } |
2980 | if (obj1) { | |
15afbcd0 RD |
2981 | arg2 = (int) SWIG_AsInt(obj1); |
2982 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2983 | } |
d14a1e28 RD |
2984 | { |
2985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2986 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2987 | ||
2988 | wxPyEndAllowThreads(__tstate); | |
2989 | if (PyErr_Occurred()) SWIG_fail; | |
2990 | } | |
15afbcd0 | 2991 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2992 | return resultobj; |
2993 | fail: | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | ||
2998 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2999 | PyObject *resultobj; | |
3000 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3001 | PyObject * obj0 = 0 ; | |
3002 | char *kwnames[] = { | |
3003 | (char *) "self", NULL | |
3004 | }; | |
3005 | ||
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3009 | { |
3010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3011 | delete arg1; | |
3012 | ||
3013 | wxPyEndAllowThreads(__tstate); | |
3014 | if (PyErr_Occurred()) SWIG_fail; | |
3015 | } | |
3016 | Py_INCREF(Py_None); resultobj = Py_None; | |
3017 | return resultobj; | |
3018 | fail: | |
3019 | return NULL; | |
3020 | } | |
3021 | ||
3022 | ||
3023 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3024 | PyObject *resultobj; | |
3025 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3026 | wxPoint *arg2 = 0 ; | |
3027 | bool result; | |
3028 | wxPoint temp2 ; | |
3029 | PyObject * obj0 = 0 ; | |
3030 | PyObject * obj1 = 0 ; | |
3031 | char *kwnames[] = { | |
e811c8ce | 3032 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3033 | }; |
3034 | ||
3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3038 | { |
3039 | arg2 = &temp2; | |
3040 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3041 | } | |
3042 | { | |
3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3044 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
3045 | |
3046 | wxPyEndAllowThreads(__tstate); | |
3047 | if (PyErr_Occurred()) SWIG_fail; | |
3048 | } | |
4f89f6a3 RD |
3049 | { |
3050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3051 | } | |
d14a1e28 RD |
3052 | return resultobj; |
3053 | fail: | |
3054 | return NULL; | |
3055 | } | |
3056 | ||
3057 | ||
3058 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject *resultobj; | |
3060 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3061 | wxPoint *arg2 = 0 ; | |
3062 | bool result; | |
3063 | wxPoint temp2 ; | |
3064 | PyObject * obj0 = 0 ; | |
3065 | PyObject * obj1 = 0 ; | |
3066 | char *kwnames[] = { | |
e811c8ce | 3067 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3068 | }; |
3069 | ||
3070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3073 | { |
3074 | arg2 = &temp2; | |
3075 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3076 | } | |
3077 | { | |
3078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3079 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
3080 | |
3081 | wxPyEndAllowThreads(__tstate); | |
3082 | if (PyErr_Occurred()) SWIG_fail; | |
3083 | } | |
4f89f6a3 RD |
3084 | { |
3085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3086 | } | |
d14a1e28 RD |
3087 | return resultobj; |
3088 | fail: | |
3089 | return NULL; | |
3090 | } | |
3091 | ||
3092 | ||
3093 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject *resultobj; | |
3095 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3096 | wxPoint *arg2 = 0 ; | |
3097 | wxPoint result; | |
3098 | wxPoint temp2 ; | |
3099 | PyObject * obj0 = 0 ; | |
3100 | PyObject * obj1 = 0 ; | |
3101 | char *kwnames[] = { | |
e811c8ce | 3102 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3103 | }; |
3104 | ||
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3108 | { |
3109 | arg2 = &temp2; | |
3110 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3111 | } | |
3112 | { | |
3113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3114 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
3115 | |
3116 | wxPyEndAllowThreads(__tstate); | |
3117 | if (PyErr_Occurred()) SWIG_fail; | |
3118 | } | |
3119 | { | |
3120 | wxPoint * resultptr; | |
3121 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3123 | } |
3124 | return resultobj; | |
3125 | fail: | |
3126 | return NULL; | |
3127 | } | |
3128 | ||
3129 | ||
3130 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3131 | PyObject *resultobj; | |
3132 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3133 | wxPoint *arg2 = 0 ; | |
3134 | wxPoint result; | |
3135 | wxPoint temp2 ; | |
3136 | PyObject * obj0 = 0 ; | |
3137 | PyObject * obj1 = 0 ; | |
3138 | char *kwnames[] = { | |
e811c8ce | 3139 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3140 | }; |
3141 | ||
3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3145 | { |
3146 | arg2 = &temp2; | |
3147 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3148 | } | |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3151 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3152 | |
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | { | |
3157 | wxPoint * resultptr; | |
3158 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3160 | } |
3161 | return resultobj; | |
3162 | fail: | |
3163 | return NULL; | |
3164 | } | |
3165 | ||
3166 | ||
3167 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject *resultobj; | |
3169 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3170 | wxPoint *arg2 = 0 ; | |
3171 | wxPoint *result; | |
3172 | wxPoint temp2 ; | |
3173 | PyObject * obj0 = 0 ; | |
3174 | PyObject * obj1 = 0 ; | |
3175 | char *kwnames[] = { | |
e811c8ce | 3176 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3177 | }; |
3178 | ||
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3182 | { |
3183 | arg2 = &temp2; | |
3184 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3185 | } | |
3186 | { | |
3187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3188 | { | |
3189 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3190 | result = (wxPoint *) &_result_ref; | |
3191 | } | |
3192 | ||
3193 | wxPyEndAllowThreads(__tstate); | |
3194 | if (PyErr_Occurred()) SWIG_fail; | |
3195 | } | |
15afbcd0 | 3196 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3197 | return resultobj; |
3198 | fail: | |
3199 | return NULL; | |
3200 | } | |
3201 | ||
3202 | ||
3203 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3204 | PyObject *resultobj; | |
3205 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3206 | wxPoint *arg2 = 0 ; | |
3207 | wxPoint *result; | |
3208 | wxPoint temp2 ; | |
3209 | PyObject * obj0 = 0 ; | |
3210 | PyObject * obj1 = 0 ; | |
3211 | char *kwnames[] = { | |
e811c8ce | 3212 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3213 | }; |
3214 | ||
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3218 | { |
3219 | arg2 = &temp2; | |
3220 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3221 | } | |
3222 | { | |
3223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3224 | { | |
3225 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3226 | result = (wxPoint *) &_result_ref; | |
3227 | } | |
3228 | ||
3229 | wxPyEndAllowThreads(__tstate); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
15afbcd0 | 3232 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3233 | return resultobj; |
3234 | fail: | |
3235 | return NULL; | |
3236 | } | |
3237 | ||
3238 | ||
3239 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3240 | PyObject *resultobj; | |
3241 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3242 | long arg2 ; | |
3243 | long arg3 ; | |
3244 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3245 | PyObject * obj1 = 0 ; |
3246 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3247 | char *kwnames[] = { |
3248 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3249 | }; | |
3250 | ||
994141e6 | 3251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3254 | arg2 = (long) SWIG_AsLong(obj1); | |
3255 | if (PyErr_Occurred()) SWIG_fail; | |
3256 | arg3 = (long) SWIG_AsLong(obj2); | |
3257 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3258 | { |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | wxPoint_Set(arg1,arg2,arg3); | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
3265 | Py_INCREF(Py_None); resultobj = Py_None; | |
3266 | return resultobj; | |
3267 | fail: | |
3268 | return NULL; | |
3269 | } | |
3270 | ||
3271 | ||
e811c8ce | 3272 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3273 | PyObject *resultobj; |
3274 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3275 | PyObject *result; | |
3276 | PyObject * obj0 = 0 ; | |
3277 | char *kwnames[] = { | |
3278 | (char *) "self", NULL | |
3279 | }; | |
3280 | ||
e811c8ce | 3281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3284 | { |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3286 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3287 | |
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | resultobj = result; | |
3292 | return resultobj; | |
3293 | fail: | |
3294 | return NULL; | |
3295 | } | |
3296 | ||
3297 | ||
3298 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3299 | PyObject *obj; | |
3300 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3301 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3302 | Py_INCREF(obj); | |
3303 | return Py_BuildValue((char *)""); | |
3304 | } | |
3305 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3306 | PyObject *resultobj; | |
3307 | int arg1 = (int) 0 ; | |
3308 | int arg2 = (int) 0 ; | |
3309 | int arg3 = (int) 0 ; | |
3310 | int arg4 = (int) 0 ; | |
3311 | wxRect *result; | |
994141e6 RD |
3312 | PyObject * obj0 = 0 ; |
3313 | PyObject * obj1 = 0 ; | |
3314 | PyObject * obj2 = 0 ; | |
3315 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3316 | char *kwnames[] = { |
3317 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3318 | }; | |
3319 | ||
994141e6 RD |
3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3321 | if (obj0) { | |
15afbcd0 RD |
3322 | arg1 = (int) SWIG_AsInt(obj0); |
3323 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3324 | } |
3325 | if (obj1) { | |
15afbcd0 RD |
3326 | arg2 = (int) SWIG_AsInt(obj1); |
3327 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3328 | } |
3329 | if (obj2) { | |
15afbcd0 RD |
3330 | arg3 = (int) SWIG_AsInt(obj2); |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3332 | } |
3333 | if (obj3) { | |
15afbcd0 RD |
3334 | arg4 = (int) SWIG_AsInt(obj3); |
3335 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3336 | } |
d14a1e28 RD |
3337 | { |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
15afbcd0 | 3344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3345 | return resultobj; |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
3351 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject *resultobj; | |
3353 | wxPoint *arg1 = 0 ; | |
3354 | wxPoint *arg2 = 0 ; | |
3355 | wxRect *result; | |
3356 | wxPoint temp1 ; | |
3357 | wxPoint temp2 ; | |
3358 | PyObject * obj0 = 0 ; | |
3359 | PyObject * obj1 = 0 ; | |
3360 | char *kwnames[] = { | |
3361 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3362 | }; | |
3363 | ||
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3365 | { | |
3366 | arg1 = &temp1; | |
3367 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3368 | } | |
3369 | { | |
3370 | arg2 = &temp2; | |
3371 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3372 | } | |
3373 | { | |
3374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3375 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3376 | ||
3377 | wxPyEndAllowThreads(__tstate); | |
3378 | if (PyErr_Occurred()) SWIG_fail; | |
3379 | } | |
15afbcd0 | 3380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3381 | return resultobj; |
3382 | fail: | |
3383 | return NULL; | |
3384 | } | |
3385 | ||
3386 | ||
3387 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3388 | PyObject *resultobj; | |
3389 | wxPoint *arg1 = 0 ; | |
3390 | wxSize *arg2 = 0 ; | |
3391 | wxRect *result; | |
3392 | wxPoint temp1 ; | |
3393 | wxSize temp2 ; | |
3394 | PyObject * obj0 = 0 ; | |
3395 | PyObject * obj1 = 0 ; | |
3396 | char *kwnames[] = { | |
3397 | (char *) "pos",(char *) "size", NULL | |
3398 | }; | |
3399 | ||
3400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3401 | { | |
3402 | arg1 = &temp1; | |
3403 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3404 | } | |
3405 | { | |
3406 | arg2 = &temp2; | |
3407 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3408 | } | |
3409 | { | |
3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3411 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3412 | ||
3413 | wxPyEndAllowThreads(__tstate); | |
3414 | if (PyErr_Occurred()) SWIG_fail; | |
3415 | } | |
15afbcd0 | 3416 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3417 | return resultobj; |
3418 | fail: | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
3423 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject *resultobj; | |
3425 | wxRect *arg1 = (wxRect *) 0 ; | |
3426 | PyObject * obj0 = 0 ; | |
3427 | char *kwnames[] = { | |
3428 | (char *) "self", NULL | |
3429 | }; | |
3430 | ||
3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3434 | { |
3435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3436 | delete arg1; | |
3437 | ||
3438 | wxPyEndAllowThreads(__tstate); | |
3439 | if (PyErr_Occurred()) SWIG_fail; | |
3440 | } | |
3441 | Py_INCREF(Py_None); resultobj = Py_None; | |
3442 | return resultobj; | |
3443 | fail: | |
3444 | return NULL; | |
3445 | } | |
3446 | ||
3447 | ||
3448 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3449 | PyObject *resultobj; | |
3450 | wxRect *arg1 = (wxRect *) 0 ; | |
3451 | int result; | |
3452 | PyObject * obj0 = 0 ; | |
3453 | char *kwnames[] = { | |
3454 | (char *) "self", NULL | |
3455 | }; | |
3456 | ||
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3460 | { |
3461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3462 | result = (int)((wxRect const *)arg1)->GetX(); | |
3463 | ||
3464 | wxPyEndAllowThreads(__tstate); | |
3465 | if (PyErr_Occurred()) SWIG_fail; | |
3466 | } | |
15afbcd0 | 3467 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3468 | return resultobj; |
3469 | fail: | |
3470 | return NULL; | |
3471 | } | |
3472 | ||
3473 | ||
3474 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject *resultobj; | |
3476 | wxRect *arg1 = (wxRect *) 0 ; | |
3477 | int arg2 ; | |
3478 | PyObject * obj0 = 0 ; | |
994141e6 | 3479 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3480 | char *kwnames[] = { |
3481 | (char *) "self",(char *) "x", NULL | |
3482 | }; | |
3483 | ||
994141e6 | 3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3487 | arg2 = (int) SWIG_AsInt(obj1); | |
3488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3489 | { |
3490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3491 | (arg1)->SetX(arg2); | |
3492 | ||
3493 | wxPyEndAllowThreads(__tstate); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | } | |
3496 | Py_INCREF(Py_None); resultobj = Py_None; | |
3497 | return resultobj; | |
3498 | fail: | |
3499 | return NULL; | |
3500 | } | |
3501 | ||
3502 | ||
3503 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3504 | PyObject *resultobj; | |
3505 | wxRect *arg1 = (wxRect *) 0 ; | |
3506 | int result; | |
3507 | PyObject * obj0 = 0 ; | |
3508 | char *kwnames[] = { | |
3509 | (char *) "self", NULL | |
3510 | }; | |
3511 | ||
3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3515 | { |
3516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3517 | result = (int)(arg1)->GetY(); | |
3518 | ||
3519 | wxPyEndAllowThreads(__tstate); | |
3520 | if (PyErr_Occurred()) SWIG_fail; | |
3521 | } | |
15afbcd0 | 3522 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3523 | return resultobj; |
3524 | fail: | |
3525 | return NULL; | |
3526 | } | |
3527 | ||
3528 | ||
3529 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject *resultobj; | |
3531 | wxRect *arg1 = (wxRect *) 0 ; | |
3532 | int arg2 ; | |
3533 | PyObject * obj0 = 0 ; | |
994141e6 | 3534 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3535 | char *kwnames[] = { |
3536 | (char *) "self",(char *) "y", NULL | |
3537 | }; | |
3538 | ||
994141e6 | 3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3542 | arg2 = (int) SWIG_AsInt(obj1); | |
3543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3544 | { |
3545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3546 | (arg1)->SetY(arg2); | |
3547 | ||
3548 | wxPyEndAllowThreads(__tstate); | |
3549 | if (PyErr_Occurred()) SWIG_fail; | |
3550 | } | |
3551 | Py_INCREF(Py_None); resultobj = Py_None; | |
3552 | return resultobj; | |
3553 | fail: | |
3554 | return NULL; | |
3555 | } | |
3556 | ||
3557 | ||
3558 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3559 | PyObject *resultobj; | |
3560 | wxRect *arg1 = (wxRect *) 0 ; | |
3561 | int result; | |
3562 | PyObject * obj0 = 0 ; | |
3563 | char *kwnames[] = { | |
3564 | (char *) "self", NULL | |
3565 | }; | |
3566 | ||
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3570 | { |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
15afbcd0 | 3577 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3578 | return resultobj; |
3579 | fail: | |
3580 | return NULL; | |
3581 | } | |
3582 | ||
3583 | ||
3584 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3585 | PyObject *resultobj; | |
3586 | wxRect *arg1 = (wxRect *) 0 ; | |
3587 | int arg2 ; | |
3588 | PyObject * obj0 = 0 ; | |
994141e6 | 3589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3590 | char *kwnames[] = { |
3591 | (char *) "self",(char *) "w", NULL | |
3592 | }; | |
3593 | ||
994141e6 | 3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3597 | arg2 = (int) SWIG_AsInt(obj1); | |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3599 | { |
3600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3601 | (arg1)->SetWidth(arg2); | |
3602 | ||
3603 | wxPyEndAllowThreads(__tstate); | |
3604 | if (PyErr_Occurred()) SWIG_fail; | |
3605 | } | |
3606 | Py_INCREF(Py_None); resultobj = Py_None; | |
3607 | return resultobj; | |
3608 | fail: | |
3609 | return NULL; | |
3610 | } | |
3611 | ||
3612 | ||
3613 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3614 | PyObject *resultobj; | |
3615 | wxRect *arg1 = (wxRect *) 0 ; | |
3616 | int result; | |
3617 | PyObject * obj0 = 0 ; | |
3618 | char *kwnames[] = { | |
3619 | (char *) "self", NULL | |
3620 | }; | |
3621 | ||
3622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3625 | { |
3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3627 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3628 | ||
3629 | wxPyEndAllowThreads(__tstate); | |
3630 | if (PyErr_Occurred()) SWIG_fail; | |
3631 | } | |
15afbcd0 | 3632 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3633 | return resultobj; |
3634 | fail: | |
3635 | return NULL; | |
3636 | } | |
3637 | ||
3638 | ||
3639 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3640 | PyObject *resultobj; | |
3641 | wxRect *arg1 = (wxRect *) 0 ; | |
3642 | int arg2 ; | |
3643 | PyObject * obj0 = 0 ; | |
994141e6 | 3644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3645 | char *kwnames[] = { |
3646 | (char *) "self",(char *) "h", NULL | |
3647 | }; | |
3648 | ||
994141e6 | 3649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3652 | arg2 = (int) SWIG_AsInt(obj1); | |
3653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3654 | { |
3655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3656 | (arg1)->SetHeight(arg2); | |
3657 | ||
3658 | wxPyEndAllowThreads(__tstate); | |
3659 | if (PyErr_Occurred()) SWIG_fail; | |
3660 | } | |
3661 | Py_INCREF(Py_None); resultobj = Py_None; | |
3662 | return resultobj; | |
3663 | fail: | |
3664 | return NULL; | |
3665 | } | |
3666 | ||
3667 | ||
3668 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3669 | PyObject *resultobj; | |
3670 | wxRect *arg1 = (wxRect *) 0 ; | |
3671 | wxPoint result; | |
3672 | PyObject * obj0 = 0 ; | |
3673 | char *kwnames[] = { | |
3674 | (char *) "self", NULL | |
3675 | }; | |
3676 | ||
3677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3680 | { |
3681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3682 | result = ((wxRect const *)arg1)->GetPosition(); | |
3683 | ||
3684 | wxPyEndAllowThreads(__tstate); | |
3685 | if (PyErr_Occurred()) SWIG_fail; | |
3686 | } | |
3687 | { | |
3688 | wxPoint * resultptr; | |
3689 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3690 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3691 | } |
3692 | return resultobj; | |
3693 | fail: | |
3694 | return NULL; | |
3695 | } | |
3696 | ||
3697 | ||
3698 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3699 | PyObject *resultobj; | |
3700 | wxRect *arg1 = (wxRect *) 0 ; | |
3701 | wxPoint *arg2 = 0 ; | |
3702 | wxPoint temp2 ; | |
3703 | PyObject * obj0 = 0 ; | |
3704 | PyObject * obj1 = 0 ; | |
3705 | char *kwnames[] = { | |
3706 | (char *) "self",(char *) "p", NULL | |
3707 | }; | |
3708 | ||
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3712 | { |
3713 | arg2 = &temp2; | |
3714 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3715 | } | |
3716 | { | |
3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3718 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3719 | ||
3720 | wxPyEndAllowThreads(__tstate); | |
3721 | if (PyErr_Occurred()) SWIG_fail; | |
3722 | } | |
3723 | Py_INCREF(Py_None); resultobj = Py_None; | |
3724 | return resultobj; | |
3725 | fail: | |
3726 | return NULL; | |
3727 | } | |
3728 | ||
3729 | ||
3730 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3731 | PyObject *resultobj; | |
3732 | wxRect *arg1 = (wxRect *) 0 ; | |
3733 | wxSize result; | |
3734 | PyObject * obj0 = 0 ; | |
3735 | char *kwnames[] = { | |
3736 | (char *) "self", NULL | |
3737 | }; | |
3738 | ||
3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3742 | { |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | result = ((wxRect const *)arg1)->GetSize(); | |
3745 | ||
3746 | wxPyEndAllowThreads(__tstate); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | } | |
3749 | { | |
3750 | wxSize * resultptr; | |
3751 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3753 | } |
3754 | return resultobj; | |
3755 | fail: | |
3756 | return NULL; | |
3757 | } | |
3758 | ||
3759 | ||
3760 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject *resultobj; | |
3762 | wxRect *arg1 = (wxRect *) 0 ; | |
3763 | wxSize *arg2 = 0 ; | |
3764 | wxSize temp2 ; | |
3765 | PyObject * obj0 = 0 ; | |
3766 | PyObject * obj1 = 0 ; | |
3767 | char *kwnames[] = { | |
3768 | (char *) "self",(char *) "s", NULL | |
3769 | }; | |
3770 | ||
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3774 | { |
3775 | arg2 = &temp2; | |
3776 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | (arg1)->SetSize((wxSize const &)*arg2); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
3783 | if (PyErr_Occurred()) SWIG_fail; | |
3784 | } | |
3785 | Py_INCREF(Py_None); resultobj = Py_None; | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
c9c7117a RD |
3792 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3793 | PyObject *resultobj; | |
3794 | wxRect *arg1 = (wxRect *) 0 ; | |
3795 | wxPoint result; | |
3796 | PyObject * obj0 = 0 ; | |
3797 | char *kwnames[] = { | |
3798 | (char *) "self", NULL | |
3799 | }; | |
3800 | ||
3801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3804 | { |
3805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3806 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3807 | ||
3808 | wxPyEndAllowThreads(__tstate); | |
3809 | if (PyErr_Occurred()) SWIG_fail; | |
3810 | } | |
3811 | { | |
3812 | wxPoint * resultptr; | |
3813 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3814 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3815 | } |
3816 | return resultobj; | |
3817 | fail: | |
3818 | return NULL; | |
3819 | } | |
3820 | ||
3821 | ||
3822 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3823 | PyObject *resultobj; | |
3824 | wxRect *arg1 = (wxRect *) 0 ; | |
3825 | wxPoint *arg2 = 0 ; | |
3826 | wxPoint temp2 ; | |
3827 | PyObject * obj0 = 0 ; | |
3828 | PyObject * obj1 = 0 ; | |
3829 | char *kwnames[] = { | |
3830 | (char *) "self",(char *) "p", NULL | |
3831 | }; | |
3832 | ||
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3836 | { |
3837 | arg2 = &temp2; | |
3838 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3839 | } | |
3840 | { | |
3841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3842 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3843 | ||
3844 | wxPyEndAllowThreads(__tstate); | |
3845 | if (PyErr_Occurred()) SWIG_fail; | |
3846 | } | |
3847 | Py_INCREF(Py_None); resultobj = Py_None; | |
3848 | return resultobj; | |
3849 | fail: | |
3850 | return NULL; | |
3851 | } | |
3852 | ||
3853 | ||
3854 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3855 | PyObject *resultobj; | |
3856 | wxRect *arg1 = (wxRect *) 0 ; | |
3857 | wxPoint result; | |
3858 | PyObject * obj0 = 0 ; | |
3859 | char *kwnames[] = { | |
3860 | (char *) "self", NULL | |
3861 | }; | |
3862 | ||
3863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3866 | { |
3867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3868 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3869 | ||
3870 | wxPyEndAllowThreads(__tstate); | |
3871 | if (PyErr_Occurred()) SWIG_fail; | |
3872 | } | |
3873 | { | |
3874 | wxPoint * resultptr; | |
3875 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3876 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3877 | } |
3878 | return resultobj; | |
3879 | fail: | |
3880 | return NULL; | |
3881 | } | |
3882 | ||
3883 | ||
3884 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3885 | PyObject *resultobj; | |
3886 | wxRect *arg1 = (wxRect *) 0 ; | |
3887 | wxPoint *arg2 = 0 ; | |
3888 | wxPoint temp2 ; | |
3889 | PyObject * obj0 = 0 ; | |
3890 | PyObject * obj1 = 0 ; | |
3891 | char *kwnames[] = { | |
3892 | (char *) "self",(char *) "p", NULL | |
3893 | }; | |
3894 | ||
3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3898 | { |
3899 | arg2 = &temp2; | |
3900 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3901 | } | |
3902 | { | |
3903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3904 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3905 | ||
3906 | wxPyEndAllowThreads(__tstate); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
3909 | Py_INCREF(Py_None); resultobj = Py_None; | |
3910 | return resultobj; | |
3911 | fail: | |
3912 | return NULL; | |
3913 | } | |
3914 | ||
3915 | ||
d14a1e28 RD |
3916 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3917 | PyObject *resultobj; | |
3918 | wxRect *arg1 = (wxRect *) 0 ; | |
3919 | int result; | |
3920 | PyObject * obj0 = 0 ; | |
3921 | char *kwnames[] = { | |
3922 | (char *) "self", NULL | |
3923 | }; | |
3924 | ||
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3928 | { |
3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3930 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3931 | ||
3932 | wxPyEndAllowThreads(__tstate); | |
3933 | if (PyErr_Occurred()) SWIG_fail; | |
3934 | } | |
15afbcd0 | 3935 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3936 | return resultobj; |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
3942 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3943 | PyObject *resultobj; | |
3944 | wxRect *arg1 = (wxRect *) 0 ; | |
3945 | int result; | |
3946 | PyObject * obj0 = 0 ; | |
3947 | char *kwnames[] = { | |
3948 | (char *) "self", NULL | |
3949 | }; | |
3950 | ||
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3954 | { |
3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3956 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3957 | ||
3958 | wxPyEndAllowThreads(__tstate); | |
3959 | if (PyErr_Occurred()) SWIG_fail; | |
3960 | } | |
15afbcd0 | 3961 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3962 | return resultobj; |
3963 | fail: | |
3964 | return NULL; | |
3965 | } | |
3966 | ||
3967 | ||
3968 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3969 | PyObject *resultobj; | |
3970 | wxRect *arg1 = (wxRect *) 0 ; | |
3971 | int result; | |
3972 | PyObject * obj0 = 0 ; | |
3973 | char *kwnames[] = { | |
3974 | (char *) "self", NULL | |
3975 | }; | |
3976 | ||
3977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3980 | { |
3981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3982 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3983 | ||
3984 | wxPyEndAllowThreads(__tstate); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
15afbcd0 | 3987 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3988 | return resultobj; |
3989 | fail: | |
3990 | return NULL; | |
3991 | } | |
3992 | ||
3993 | ||
3994 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3995 | PyObject *resultobj; | |
3996 | wxRect *arg1 = (wxRect *) 0 ; | |
3997 | int result; | |
3998 | PyObject * obj0 = 0 ; | |
3999 | char *kwnames[] = { | |
4000 | (char *) "self", NULL | |
4001 | }; | |
4002 | ||
4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4006 | { |
4007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4008 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4009 | ||
4010 | wxPyEndAllowThreads(__tstate); | |
4011 | if (PyErr_Occurred()) SWIG_fail; | |
4012 | } | |
15afbcd0 | 4013 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4014 | return resultobj; |
4015 | fail: | |
4016 | return NULL; | |
4017 | } | |
4018 | ||
4019 | ||
4020 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4021 | PyObject *resultobj; | |
4022 | wxRect *arg1 = (wxRect *) 0 ; | |
4023 | int arg2 ; | |
4024 | PyObject * obj0 = 0 ; | |
994141e6 | 4025 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4026 | char *kwnames[] = { |
4027 | (char *) "self",(char *) "left", NULL | |
4028 | }; | |
4029 | ||
994141e6 | 4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4033 | arg2 = (int) SWIG_AsInt(obj1); | |
4034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4035 | { |
4036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4037 | (arg1)->SetLeft(arg2); | |
4038 | ||
4039 | wxPyEndAllowThreads(__tstate); | |
4040 | if (PyErr_Occurred()) SWIG_fail; | |
4041 | } | |
4042 | Py_INCREF(Py_None); resultobj = Py_None; | |
4043 | return resultobj; | |
4044 | fail: | |
4045 | return NULL; | |
4046 | } | |
4047 | ||
4048 | ||
4049 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4050 | PyObject *resultobj; | |
4051 | wxRect *arg1 = (wxRect *) 0 ; | |
4052 | int arg2 ; | |
4053 | PyObject * obj0 = 0 ; | |
994141e6 | 4054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4055 | char *kwnames[] = { |
4056 | (char *) "self",(char *) "right", NULL | |
4057 | }; | |
4058 | ||
994141e6 | 4059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4062 | arg2 = (int) SWIG_AsInt(obj1); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4064 | { |
4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4066 | (arg1)->SetRight(arg2); | |
4067 | ||
4068 | wxPyEndAllowThreads(__tstate); | |
4069 | if (PyErr_Occurred()) SWIG_fail; | |
4070 | } | |
4071 | Py_INCREF(Py_None); resultobj = Py_None; | |
4072 | return resultobj; | |
4073 | fail: | |
4074 | return NULL; | |
4075 | } | |
4076 | ||
4077 | ||
4078 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4079 | PyObject *resultobj; | |
4080 | wxRect *arg1 = (wxRect *) 0 ; | |
4081 | int arg2 ; | |
4082 | PyObject * obj0 = 0 ; | |
994141e6 | 4083 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4084 | char *kwnames[] = { |
4085 | (char *) "self",(char *) "top", NULL | |
4086 | }; | |
4087 | ||
994141e6 | 4088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4091 | arg2 = (int) SWIG_AsInt(obj1); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4093 | { |
4094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4095 | (arg1)->SetTop(arg2); | |
4096 | ||
4097 | wxPyEndAllowThreads(__tstate); | |
4098 | if (PyErr_Occurred()) SWIG_fail; | |
4099 | } | |
4100 | Py_INCREF(Py_None); resultobj = Py_None; | |
4101 | return resultobj; | |
4102 | fail: | |
4103 | return NULL; | |
4104 | } | |
4105 | ||
4106 | ||
4107 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4108 | PyObject *resultobj; | |
4109 | wxRect *arg1 = (wxRect *) 0 ; | |
4110 | int arg2 ; | |
4111 | PyObject * obj0 = 0 ; | |
994141e6 | 4112 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4113 | char *kwnames[] = { |
4114 | (char *) "self",(char *) "bottom", NULL | |
4115 | }; | |
4116 | ||
994141e6 | 4117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4120 | arg2 = (int) SWIG_AsInt(obj1); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4122 | { |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | (arg1)->SetBottom(arg2); | |
4125 | ||
4126 | wxPyEndAllowThreads(__tstate); | |
4127 | if (PyErr_Occurred()) SWIG_fail; | |
4128 | } | |
4129 | Py_INCREF(Py_None); resultobj = Py_None; | |
4130 | return resultobj; | |
4131 | fail: | |
4132 | return NULL; | |
4133 | } | |
4134 | ||
4135 | ||
4136 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4137 | PyObject *resultobj; | |
4138 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4139 | int arg2 ; |
4140 | int arg3 ; | |
d14a1e28 RD |
4141 | wxRect *result; |
4142 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4143 | PyObject * obj1 = 0 ; |
4144 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4145 | char *kwnames[] = { |
4146 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4147 | }; | |
4148 | ||
994141e6 | 4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4152 | arg2 = (int) SWIG_AsInt(obj1); | |
4153 | if (PyErr_Occurred()) SWIG_fail; | |
4154 | arg3 = (int) SWIG_AsInt(obj2); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4156 | { |
4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4158 | { | |
4159 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4160 | result = (wxRect *) &_result_ref; | |
4161 | } | |
4162 | ||
4163 | wxPyEndAllowThreads(__tstate); | |
4164 | if (PyErr_Occurred()) SWIG_fail; | |
4165 | } | |
15afbcd0 | 4166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4167 | return resultobj; |
4168 | fail: | |
4169 | return NULL; | |
4170 | } | |
4171 | ||
4172 | ||
4173 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4174 | PyObject *resultobj; | |
4175 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4176 | int arg2 ; |
4177 | int arg3 ; | |
d14a1e28 RD |
4178 | wxRect *result; |
4179 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4180 | PyObject * obj1 = 0 ; |
4181 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4182 | char *kwnames[] = { |
4183 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4184 | }; | |
4185 | ||
994141e6 | 4186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4189 | arg2 = (int) SWIG_AsInt(obj1); | |
4190 | if (PyErr_Occurred()) SWIG_fail; | |
4191 | arg3 = (int) SWIG_AsInt(obj2); | |
4192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4193 | { |
4194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4195 | { | |
4196 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4197 | result = (wxRect *) &_result_ref; | |
4198 | } | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
15afbcd0 | 4203 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4204 | return resultobj; |
4205 | fail: | |
4206 | return NULL; | |
4207 | } | |
4208 | ||
4209 | ||
4210 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject *resultobj; | |
4212 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4213 | int arg2 ; |
4214 | int arg3 ; | |
d14a1e28 | 4215 | PyObject * obj0 = 0 ; |
994141e6 RD |
4216 | PyObject * obj1 = 0 ; |
4217 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4218 | char *kwnames[] = { |
4219 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4220 | }; | |
4221 | ||
994141e6 | 4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4225 | arg2 = (int) SWIG_AsInt(obj1); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | arg3 = (int) SWIG_AsInt(obj2); | |
4228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4229 | { |
4230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4231 | (arg1)->Offset(arg2,arg3); | |
4232 | ||
4233 | wxPyEndAllowThreads(__tstate); | |
4234 | if (PyErr_Occurred()) SWIG_fail; | |
4235 | } | |
4236 | Py_INCREF(Py_None); resultobj = Py_None; | |
4237 | return resultobj; | |
4238 | fail: | |
4239 | return NULL; | |
4240 | } | |
4241 | ||
4242 | ||
4243 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4244 | PyObject *resultobj; | |
4245 | wxRect *arg1 = (wxRect *) 0 ; | |
4246 | wxPoint *arg2 = 0 ; | |
4247 | wxPoint temp2 ; | |
4248 | PyObject * obj0 = 0 ; | |
4249 | PyObject * obj1 = 0 ; | |
4250 | char *kwnames[] = { | |
4251 | (char *) "self",(char *) "pt", NULL | |
4252 | }; | |
4253 | ||
4254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4257 | { |
4258 | arg2 = &temp2; | |
4259 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4260 | } | |
4261 | { | |
4262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4263 | (arg1)->Offset((wxPoint const &)*arg2); | |
4264 | ||
4265 | wxPyEndAllowThreads(__tstate); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | Py_INCREF(Py_None); resultobj = Py_None; | |
4269 | return resultobj; | |
4270 | fail: | |
4271 | return NULL; | |
4272 | } | |
4273 | ||
4274 | ||
4275 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4276 | PyObject *resultobj; | |
4277 | wxRect *arg1 = (wxRect *) 0 ; | |
4278 | wxRect *arg2 = 0 ; | |
4279 | wxRect *result; | |
4280 | wxRect temp2 ; | |
4281 | PyObject * obj0 = 0 ; | |
4282 | PyObject * obj1 = 0 ; | |
4283 | char *kwnames[] = { | |
4284 | (char *) "self",(char *) "rect", NULL | |
4285 | }; | |
4286 | ||
4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4290 | { |
4291 | arg2 = &temp2; | |
4292 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4293 | } | |
4294 | { | |
4295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4296 | { | |
4297 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4298 | result = (wxRect *) &_result_ref; | |
4299 | } | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
4302 | if (PyErr_Occurred()) SWIG_fail; | |
4303 | } | |
15afbcd0 | 4304 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4305 | return resultobj; |
4306 | fail: | |
4307 | return NULL; | |
4308 | } | |
4309 | ||
4310 | ||
4311 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4312 | PyObject *resultobj; | |
4313 | wxRect *arg1 = (wxRect *) 0 ; | |
4314 | wxRect *arg2 = 0 ; | |
4315 | wxRect result; | |
4316 | wxRect temp2 ; | |
4317 | PyObject * obj0 = 0 ; | |
4318 | PyObject * obj1 = 0 ; | |
4319 | char *kwnames[] = { | |
4320 | (char *) "self",(char *) "rect", NULL | |
4321 | }; | |
4322 | ||
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4326 | { |
4327 | arg2 = &temp2; | |
4328 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4329 | } | |
4330 | { | |
4331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4332 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4333 | ||
4334 | wxPyEndAllowThreads(__tstate); | |
4335 | if (PyErr_Occurred()) SWIG_fail; | |
4336 | } | |
4337 | { | |
4338 | wxRect * resultptr; | |
4339 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4340 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4341 | } |
4342 | return resultobj; | |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4349 | PyObject *resultobj; | |
4350 | wxRect *arg1 = (wxRect *) 0 ; | |
4351 | wxRect *arg2 = 0 ; | |
4352 | wxRect *result; | |
4353 | wxRect temp2 ; | |
4354 | PyObject * obj0 = 0 ; | |
4355 | PyObject * obj1 = 0 ; | |
4356 | char *kwnames[] = { | |
4357 | (char *) "self",(char *) "rect", NULL | |
4358 | }; | |
4359 | ||
4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4363 | { |
4364 | arg2 = &temp2; | |
4365 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4366 | } | |
4367 | { | |
4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4369 | { | |
4370 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4371 | result = (wxRect *) &_result_ref; | |
4372 | } | |
4373 | ||
4374 | wxPyEndAllowThreads(__tstate); | |
4375 | if (PyErr_Occurred()) SWIG_fail; | |
4376 | } | |
15afbcd0 | 4377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4378 | return resultobj; |
4379 | fail: | |
4380 | return NULL; | |
4381 | } | |
4382 | ||
4383 | ||
4384 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4385 | PyObject *resultobj; | |
4386 | wxRect *arg1 = (wxRect *) 0 ; | |
4387 | wxRect *arg2 = 0 ; | |
4388 | bool result; | |
4389 | wxRect temp2 ; | |
4390 | PyObject * obj0 = 0 ; | |
4391 | PyObject * obj1 = 0 ; | |
4392 | char *kwnames[] = { | |
4393 | (char *) "self",(char *) "rect", NULL | |
4394 | }; | |
4395 | ||
4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4399 | { |
4400 | arg2 = &temp2; | |
4401 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4402 | } | |
4403 | { | |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4405 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4406 | ||
4407 | wxPyEndAllowThreads(__tstate); | |
4408 | if (PyErr_Occurred()) SWIG_fail; | |
4409 | } | |
4f89f6a3 RD |
4410 | { |
4411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4412 | } | |
d14a1e28 RD |
4413 | return resultobj; |
4414 | fail: | |
4415 | return NULL; | |
4416 | } | |
4417 | ||
4418 | ||
4419 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject *resultobj; | |
4421 | wxRect *arg1 = (wxRect *) 0 ; | |
4422 | wxRect *arg2 = 0 ; | |
4423 | bool result; | |
4424 | wxRect temp2 ; | |
4425 | PyObject * obj0 = 0 ; | |
4426 | PyObject * obj1 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "self",(char *) "rect", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4434 | { |
4435 | arg2 = &temp2; | |
4436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4437 | } | |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
4f89f6a3 RD |
4445 | { |
4446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4447 | } | |
d14a1e28 RD |
4448 | return resultobj; |
4449 | fail: | |
4450 | return NULL; | |
4451 | } | |
4452 | ||
4453 | ||
4454 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject *resultobj; | |
4456 | wxRect *arg1 = (wxRect *) 0 ; | |
4457 | int arg2 ; | |
4458 | int arg3 ; | |
4459 | bool result; | |
4460 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4461 | PyObject * obj1 = 0 ; |
4462 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4463 | char *kwnames[] = { |
4464 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4465 | }; | |
4466 | ||
994141e6 | 4467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4470 | arg2 = (int) SWIG_AsInt(obj1); | |
4471 | if (PyErr_Occurred()) SWIG_fail; | |
4472 | arg3 = (int) SWIG_AsInt(obj2); | |
4473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4474 | { |
4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4476 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4477 | ||
4478 | wxPyEndAllowThreads(__tstate); | |
4479 | if (PyErr_Occurred()) SWIG_fail; | |
4480 | } | |
4f89f6a3 RD |
4481 | { |
4482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4483 | } | |
d14a1e28 RD |
4484 | return resultobj; |
4485 | fail: | |
4486 | return NULL; | |
4487 | } | |
4488 | ||
4489 | ||
4490 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4491 | PyObject *resultobj; | |
4492 | wxRect *arg1 = (wxRect *) 0 ; | |
4493 | wxPoint *arg2 = 0 ; | |
4494 | bool result; | |
4495 | wxPoint temp2 ; | |
4496 | PyObject * obj0 = 0 ; | |
4497 | PyObject * obj1 = 0 ; | |
4498 | char *kwnames[] = { | |
4499 | (char *) "self",(char *) "pt", NULL | |
4500 | }; | |
4501 | ||
4502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4505 | { |
4506 | arg2 = &temp2; | |
4507 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4508 | } | |
4509 | { | |
4510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4511 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4512 | ||
4513 | wxPyEndAllowThreads(__tstate); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
4515 | } | |
4f89f6a3 RD |
4516 | { |
4517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4518 | } | |
d14a1e28 RD |
4519 | return resultobj; |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxRect *arg1 = (wxRect *) 0 ; | |
4528 | wxRect *arg2 = 0 ; | |
4529 | bool result; | |
4530 | wxRect temp2 ; | |
4531 | PyObject * obj0 = 0 ; | |
4532 | PyObject * obj1 = 0 ; | |
4533 | char *kwnames[] = { | |
4534 | (char *) "self",(char *) "rect", NULL | |
4535 | }; | |
4536 | ||
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4540 | { |
4541 | arg2 = &temp2; | |
4542 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4543 | } | |
4544 | { | |
4545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4546 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4547 | ||
4548 | wxPyEndAllowThreads(__tstate); | |
4549 | if (PyErr_Occurred()) SWIG_fail; | |
4550 | } | |
4f89f6a3 RD |
4551 | { |
4552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4553 | } | |
d14a1e28 RD |
4554 | return resultobj; |
4555 | fail: | |
4556 | return NULL; | |
4557 | } | |
4558 | ||
4559 | ||
4560 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4561 | PyObject *resultobj; | |
4562 | wxRect *arg1 = (wxRect *) 0 ; | |
4563 | int arg2 ; | |
4564 | PyObject * obj0 = 0 ; | |
994141e6 | 4565 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4566 | char *kwnames[] = { |
4567 | (char *) "self",(char *) "x", NULL | |
4568 | }; | |
4569 | ||
994141e6 | 4570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4573 | arg2 = (int) SWIG_AsInt(obj1); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4575 | if (arg1) (arg1)->x = arg2; |
4576 | ||
4577 | Py_INCREF(Py_None); resultobj = Py_None; | |
4578 | return resultobj; | |
4579 | fail: | |
4580 | return NULL; | |
4581 | } | |
4582 | ||
4583 | ||
4584 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4585 | PyObject *resultobj; | |
4586 | wxRect *arg1 = (wxRect *) 0 ; | |
4587 | int result; | |
4588 | PyObject * obj0 = 0 ; | |
4589 | char *kwnames[] = { | |
4590 | (char *) "self", NULL | |
4591 | }; | |
4592 | ||
4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4596 | result = (int) ((arg1)->x); |
4597 | ||
15afbcd0 | 4598 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4599 | return resultobj; |
4600 | fail: | |
4601 | return NULL; | |
4602 | } | |
4603 | ||
4604 | ||
4605 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4606 | PyObject *resultobj; | |
4607 | wxRect *arg1 = (wxRect *) 0 ; | |
4608 | int arg2 ; | |
4609 | PyObject * obj0 = 0 ; | |
994141e6 | 4610 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4611 | char *kwnames[] = { |
4612 | (char *) "self",(char *) "y", NULL | |
4613 | }; | |
4614 | ||
994141e6 | 4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4618 | arg2 = (int) SWIG_AsInt(obj1); | |
4619 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4620 | if (arg1) (arg1)->y = arg2; |
4621 | ||
4622 | Py_INCREF(Py_None); resultobj = Py_None; | |
4623 | return resultobj; | |
4624 | fail: | |
4625 | return NULL; | |
4626 | } | |
4627 | ||
4628 | ||
4629 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4630 | PyObject *resultobj; | |
4631 | wxRect *arg1 = (wxRect *) 0 ; | |
4632 | int result; | |
4633 | PyObject * obj0 = 0 ; | |
4634 | char *kwnames[] = { | |
4635 | (char *) "self", NULL | |
4636 | }; | |
4637 | ||
4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4641 | result = (int) ((arg1)->y); |
4642 | ||
15afbcd0 | 4643 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4644 | return resultobj; |
4645 | fail: | |
4646 | return NULL; | |
4647 | } | |
4648 | ||
4649 | ||
4650 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject *resultobj; | |
4652 | wxRect *arg1 = (wxRect *) 0 ; | |
4653 | int arg2 ; | |
4654 | PyObject * obj0 = 0 ; | |
994141e6 | 4655 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4656 | char *kwnames[] = { |
4657 | (char *) "self",(char *) "width", NULL | |
4658 | }; | |
4659 | ||
994141e6 | 4660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4663 | arg2 = (int) SWIG_AsInt(obj1); | |
4664 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4665 | if (arg1) (arg1)->width = arg2; |
4666 | ||
4667 | Py_INCREF(Py_None); resultobj = Py_None; | |
4668 | return resultobj; | |
4669 | fail: | |
4670 | return NULL; | |
4671 | } | |
4672 | ||
4673 | ||
4674 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4675 | PyObject *resultobj; | |
4676 | wxRect *arg1 = (wxRect *) 0 ; | |
4677 | int result; | |
4678 | PyObject * obj0 = 0 ; | |
4679 | char *kwnames[] = { | |
4680 | (char *) "self", NULL | |
4681 | }; | |
4682 | ||
4683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4686 | result = (int) ((arg1)->width); |
4687 | ||
15afbcd0 | 4688 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4689 | return resultobj; |
4690 | fail: | |
4691 | return NULL; | |
4692 | } | |
4693 | ||
4694 | ||
4695 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4696 | PyObject *resultobj; | |
4697 | wxRect *arg1 = (wxRect *) 0 ; | |
4698 | int arg2 ; | |
4699 | PyObject * obj0 = 0 ; | |
994141e6 | 4700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4701 | char *kwnames[] = { |
4702 | (char *) "self",(char *) "height", NULL | |
4703 | }; | |
4704 | ||
994141e6 | 4705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4708 | arg2 = (int) SWIG_AsInt(obj1); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4710 | if (arg1) (arg1)->height = arg2; |
4711 | ||
4712 | Py_INCREF(Py_None); resultobj = Py_None; | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
4716 | } | |
4717 | ||
4718 | ||
4719 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4720 | PyObject *resultobj; | |
4721 | wxRect *arg1 = (wxRect *) 0 ; | |
4722 | int result; | |
4723 | PyObject * obj0 = 0 ; | |
4724 | char *kwnames[] = { | |
4725 | (char *) "self", NULL | |
4726 | }; | |
4727 | ||
4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4731 | result = (int) ((arg1)->height); |
4732 | ||
15afbcd0 | 4733 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4734 | return resultobj; |
4735 | fail: | |
4736 | return NULL; | |
4737 | } | |
4738 | ||
4739 | ||
4740 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4741 | PyObject *resultobj; | |
4742 | wxRect *arg1 = (wxRect *) 0 ; | |
4743 | int arg2 = (int) 0 ; | |
4744 | int arg3 = (int) 0 ; | |
4745 | int arg4 = (int) 0 ; | |
4746 | int arg5 = (int) 0 ; | |
4747 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4748 | PyObject * obj1 = 0 ; |
4749 | PyObject * obj2 = 0 ; | |
4750 | PyObject * obj3 = 0 ; | |
4751 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4752 | char *kwnames[] = { |
4753 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4754 | }; | |
4755 | ||
994141e6 | 4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4759 | if (obj1) { |
15afbcd0 RD |
4760 | arg2 = (int) SWIG_AsInt(obj1); |
4761 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4762 | } |
4763 | if (obj2) { | |
15afbcd0 RD |
4764 | arg3 = (int) SWIG_AsInt(obj2); |
4765 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4766 | } |
4767 | if (obj3) { | |
15afbcd0 RD |
4768 | arg4 = (int) SWIG_AsInt(obj3); |
4769 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4770 | } |
4771 | if (obj4) { | |
15afbcd0 RD |
4772 | arg5 = (int) SWIG_AsInt(obj4); |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4774 | } |
d14a1e28 RD |
4775 | { |
4776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4777 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4778 | ||
4779 | wxPyEndAllowThreads(__tstate); | |
4780 | if (PyErr_Occurred()) SWIG_fail; | |
4781 | } | |
4782 | Py_INCREF(Py_None); resultobj = Py_None; | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | return NULL; | |
4786 | } | |
4787 | ||
4788 | ||
e811c8ce | 4789 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4790 | PyObject *resultobj; |
4791 | wxRect *arg1 = (wxRect *) 0 ; | |
4792 | PyObject *result; | |
4793 | PyObject * obj0 = 0 ; | |
4794 | char *kwnames[] = { | |
4795 | (char *) "self", NULL | |
4796 | }; | |
4797 | ||
e811c8ce | 4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4801 | { |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4803 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4804 | |
4805 | wxPyEndAllowThreads(__tstate); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | resultobj = result; | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | return NULL; | |
4812 | } | |
4813 | ||
4814 | ||
4815 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4816 | PyObject *obj; | |
4817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4818 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4819 | Py_INCREF(obj); | |
4820 | return Py_BuildValue((char *)""); | |
4821 | } | |
4822 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4823 | PyObject *resultobj; | |
4824 | wxRect *arg1 = (wxRect *) 0 ; | |
4825 | wxRect *arg2 = (wxRect *) 0 ; | |
4826 | PyObject *result; | |
4827 | PyObject * obj0 = 0 ; | |
4828 | PyObject * obj1 = 0 ; | |
4829 | char *kwnames[] = { | |
4830 | (char *) "r1",(char *) "r2", NULL | |
4831 | }; | |
4832 | ||
4833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 4838 | { |
e3b71cb8 | 4839 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4841 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4842 | ||
4843 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4844 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
4845 | } |
4846 | resultobj = result; | |
4847 | return resultobj; | |
4848 | fail: | |
4849 | return NULL; | |
4850 | } | |
4851 | ||
4852 | ||
4853 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4854 | PyObject *resultobj; | |
4855 | double arg1 = (double) 0.0 ; | |
4856 | double arg2 = (double) 0.0 ; | |
4857 | wxPoint2D *result; | |
994141e6 RD |
4858 | PyObject * obj0 = 0 ; |
4859 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4860 | char *kwnames[] = { |
4861 | (char *) "x",(char *) "y", NULL | |
4862 | }; | |
4863 | ||
994141e6 RD |
4864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4865 | if (obj0) { | |
15afbcd0 RD |
4866 | arg1 = (double) SWIG_AsDouble(obj0); |
4867 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4868 | } |
4869 | if (obj1) { | |
15afbcd0 RD |
4870 | arg2 = (double) SWIG_AsDouble(obj1); |
4871 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4872 | } |
d14a1e28 RD |
4873 | { |
4874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4875 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4876 | ||
4877 | wxPyEndAllowThreads(__tstate); | |
4878 | if (PyErr_Occurred()) SWIG_fail; | |
4879 | } | |
15afbcd0 | 4880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4881 | return resultobj; |
4882 | fail: | |
4883 | return NULL; | |
4884 | } | |
4885 | ||
4886 | ||
4887 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4888 | PyObject *resultobj; | |
4889 | wxPoint2D *arg1 = 0 ; | |
4890 | wxPoint2D *result; | |
4891 | wxPoint2D temp1 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | char *kwnames[] = { | |
4894 | (char *) "pt", NULL | |
4895 | }; | |
4896 | ||
4897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4898 | { | |
4899 | arg1 = &temp1; | |
4900 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4901 | } | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
15afbcd0 | 4909 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4910 | return resultobj; |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
4916 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4917 | PyObject *resultobj; | |
4918 | wxPoint *arg1 = 0 ; | |
4919 | wxPoint2D *result; | |
4920 | wxPoint temp1 ; | |
4921 | PyObject * obj0 = 0 ; | |
4922 | char *kwnames[] = { | |
4923 | (char *) "pt", NULL | |
4924 | }; | |
4925 | ||
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4927 | { | |
4928 | arg1 = &temp1; | |
4929 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4930 | } | |
4931 | { | |
4932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4933 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4934 | ||
4935 | wxPyEndAllowThreads(__tstate); | |
4936 | if (PyErr_Occurred()) SWIG_fail; | |
4937 | } | |
15afbcd0 | 4938 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4939 | return resultobj; |
4940 | fail: | |
4941 | return NULL; | |
4942 | } | |
4943 | ||
4944 | ||
4945 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject *resultobj; | |
4947 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4948 | int *arg2 = (int *) 0 ; | |
4949 | int *arg3 = (int *) 0 ; | |
4950 | int temp2 ; | |
4951 | int temp3 ; | |
4952 | PyObject * obj0 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "self", NULL | |
4955 | }; | |
4956 | ||
4957 | arg2 = &temp2; | |
4958 | arg3 = &temp3; | |
4959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4962 | { |
4963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4964 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4965 | ||
4966 | wxPyEndAllowThreads(__tstate); | |
4967 | if (PyErr_Occurred()) SWIG_fail; | |
4968 | } | |
4969 | Py_INCREF(Py_None); resultobj = Py_None; | |
4970 | { | |
4971 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4972 | resultobj = t_output_helper(resultobj,o); | |
4973 | } | |
4974 | { | |
4975 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4976 | resultobj = t_output_helper(resultobj,o); | |
4977 | } | |
4978 | return resultobj; | |
4979 | fail: | |
4980 | return NULL; | |
4981 | } | |
4982 | ||
4983 | ||
4984 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4985 | PyObject *resultobj; | |
4986 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4987 | int *arg2 = (int *) 0 ; | |
4988 | int *arg3 = (int *) 0 ; | |
4989 | int temp2 ; | |
4990 | int temp3 ; | |
4991 | PyObject * obj0 = 0 ; | |
4992 | char *kwnames[] = { | |
4993 | (char *) "self", NULL | |
4994 | }; | |
4995 | ||
4996 | arg2 = &temp2; | |
4997 | arg3 = &temp3; | |
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5001 | { |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | Py_INCREF(Py_None); resultobj = Py_None; | |
5009 | { | |
5010 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
5011 | resultobj = t_output_helper(resultobj,o); | |
5012 | } | |
5013 | { | |
5014 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
5015 | resultobj = t_output_helper(resultobj,o); | |
5016 | } | |
5017 | return resultobj; | |
5018 | fail: | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj; | |
5025 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5026 | double result; | |
5027 | PyObject * obj0 = 0 ; | |
5028 | char *kwnames[] = { | |
5029 | (char *) "self", NULL | |
5030 | }; | |
5031 | ||
5032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5035 | { |
5036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5037 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5038 | ||
5039 | wxPyEndAllowThreads(__tstate); | |
5040 | if (PyErr_Occurred()) SWIG_fail; | |
5041 | } | |
15afbcd0 | 5042 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5043 | return resultobj; |
5044 | fail: | |
5045 | return NULL; | |
5046 | } | |
5047 | ||
5048 | ||
5049 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject *resultobj; | |
5051 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5052 | double result; | |
5053 | PyObject * obj0 = 0 ; | |
5054 | char *kwnames[] = { | |
5055 | (char *) "self", NULL | |
5056 | }; | |
5057 | ||
5058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5061 | { |
5062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5063 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5064 | ||
5065 | wxPyEndAllowThreads(__tstate); | |
5066 | if (PyErr_Occurred()) SWIG_fail; | |
5067 | } | |
15afbcd0 | 5068 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5069 | return resultobj; |
5070 | fail: | |
5071 | return NULL; | |
5072 | } | |
5073 | ||
5074 | ||
5075 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5076 | PyObject *resultobj; | |
5077 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5078 | double arg2 ; | |
5079 | PyObject * obj0 = 0 ; | |
994141e6 | 5080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5081 | char *kwnames[] = { |
5082 | (char *) "self",(char *) "length", NULL | |
5083 | }; | |
5084 | ||
994141e6 | 5085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5088 | arg2 = (double) SWIG_AsDouble(obj1); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5090 | { |
5091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5092 | (arg1)->SetVectorLength(arg2); | |
5093 | ||
5094 | wxPyEndAllowThreads(__tstate); | |
5095 | if (PyErr_Occurred()) SWIG_fail; | |
5096 | } | |
5097 | Py_INCREF(Py_None); resultobj = Py_None; | |
5098 | return resultobj; | |
5099 | fail: | |
5100 | return NULL; | |
5101 | } | |
5102 | ||
5103 | ||
5104 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5105 | PyObject *resultobj; | |
5106 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5107 | double arg2 ; | |
5108 | PyObject * obj0 = 0 ; | |
994141e6 | 5109 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5110 | char *kwnames[] = { |
5111 | (char *) "self",(char *) "degrees", NULL | |
5112 | }; | |
5113 | ||
994141e6 | 5114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5117 | arg2 = (double) SWIG_AsDouble(obj1); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5119 | { |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | (arg1)->SetVectorAngle(arg2); | |
5122 | ||
5123 | wxPyEndAllowThreads(__tstate); | |
5124 | if (PyErr_Occurred()) SWIG_fail; | |
5125 | } | |
5126 | Py_INCREF(Py_None); resultobj = Py_None; | |
5127 | return resultobj; | |
5128 | fail: | |
5129 | return NULL; | |
5130 | } | |
5131 | ||
5132 | ||
5133 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5134 | PyObject *resultobj; | |
5135 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5136 | wxPoint2D *arg2 = 0 ; | |
5137 | double result; | |
5138 | wxPoint2D temp2 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | PyObject * obj1 = 0 ; | |
5141 | char *kwnames[] = { | |
5142 | (char *) "self",(char *) "pt", NULL | |
5143 | }; | |
5144 | ||
5145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5148 | { |
5149 | arg2 = &temp2; | |
5150 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5151 | } | |
5152 | { | |
5153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5154 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5155 | ||
5156 | wxPyEndAllowThreads(__tstate); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
15afbcd0 | 5159 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5160 | return resultobj; |
5161 | fail: | |
5162 | return NULL; | |
5163 | } | |
5164 | ||
5165 | ||
5166 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5167 | PyObject *resultobj; | |
5168 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5169 | wxPoint2D *arg2 = 0 ; | |
5170 | double result; | |
5171 | wxPoint2D temp2 ; | |
5172 | PyObject * obj0 = 0 ; | |
5173 | PyObject * obj1 = 0 ; | |
5174 | char *kwnames[] = { | |
5175 | (char *) "self",(char *) "pt", NULL | |
5176 | }; | |
5177 | ||
5178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5181 | { |
5182 | arg2 = &temp2; | |
5183 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5184 | } | |
5185 | { | |
5186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5187 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5188 | ||
5189 | wxPyEndAllowThreads(__tstate); | |
5190 | if (PyErr_Occurred()) SWIG_fail; | |
5191 | } | |
15afbcd0 | 5192 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5193 | return resultobj; |
5194 | fail: | |
5195 | return NULL; | |
5196 | } | |
5197 | ||
5198 | ||
5199 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5200 | PyObject *resultobj; | |
5201 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5202 | wxPoint2D *arg2 = 0 ; | |
5203 | double result; | |
5204 | wxPoint2D temp2 ; | |
5205 | PyObject * obj0 = 0 ; | |
5206 | PyObject * obj1 = 0 ; | |
5207 | char *kwnames[] = { | |
5208 | (char *) "self",(char *) "vec", NULL | |
5209 | }; | |
5210 | ||
5211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5214 | { |
5215 | arg2 = &temp2; | |
5216 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5217 | } | |
5218 | { | |
5219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5220 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5221 | ||
5222 | wxPyEndAllowThreads(__tstate); | |
5223 | if (PyErr_Occurred()) SWIG_fail; | |
5224 | } | |
15afbcd0 | 5225 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5226 | return resultobj; |
5227 | fail: | |
5228 | return NULL; | |
5229 | } | |
5230 | ||
5231 | ||
5232 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5233 | PyObject *resultobj; | |
5234 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5235 | wxPoint2D *arg2 = 0 ; | |
5236 | double result; | |
5237 | wxPoint2D temp2 ; | |
5238 | PyObject * obj0 = 0 ; | |
5239 | PyObject * obj1 = 0 ; | |
5240 | char *kwnames[] = { | |
5241 | (char *) "self",(char *) "vec", NULL | |
5242 | }; | |
5243 | ||
5244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5247 | { |
5248 | arg2 = &temp2; | |
5249 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5250 | } | |
5251 | { | |
5252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5253 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5254 | ||
5255 | wxPyEndAllowThreads(__tstate); | |
5256 | if (PyErr_Occurred()) SWIG_fail; | |
5257 | } | |
15afbcd0 | 5258 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5259 | return resultobj; |
5260 | fail: | |
5261 | return NULL; | |
5262 | } | |
5263 | ||
5264 | ||
5265 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5266 | PyObject *resultobj; | |
5267 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5268 | wxPoint2D result; | |
5269 | PyObject * obj0 = 0 ; | |
5270 | char *kwnames[] = { | |
5271 | (char *) "self", NULL | |
5272 | }; | |
5273 | ||
5274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5277 | { |
5278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5279 | result = (arg1)->operator -(); | |
5280 | ||
5281 | wxPyEndAllowThreads(__tstate); | |
5282 | if (PyErr_Occurred()) SWIG_fail; | |
5283 | } | |
5284 | { | |
5285 | wxPoint2D * resultptr; | |
5286 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
15afbcd0 | 5287 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5288 | } |
5289 | return resultobj; | |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5296 | PyObject *resultobj; | |
5297 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5298 | wxPoint2D *arg2 = 0 ; | |
5299 | wxPoint2D *result; | |
5300 | wxPoint2D temp2 ; | |
5301 | PyObject * obj0 = 0 ; | |
5302 | PyObject * obj1 = 0 ; | |
5303 | char *kwnames[] = { | |
5304 | (char *) "self",(char *) "pt", NULL | |
5305 | }; | |
5306 | ||
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5310 | { |
5311 | arg2 = &temp2; | |
5312 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5313 | } | |
5314 | { | |
5315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5316 | { | |
5317 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5318 | result = (wxPoint2D *) &_result_ref; | |
5319 | } | |
5320 | ||
5321 | wxPyEndAllowThreads(__tstate); | |
5322 | if (PyErr_Occurred()) SWIG_fail; | |
5323 | } | |
15afbcd0 | 5324 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5325 | return resultobj; |
5326 | fail: | |
5327 | return NULL; | |
5328 | } | |
5329 | ||
5330 | ||
5331 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5332 | PyObject *resultobj; | |
5333 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5334 | wxPoint2D *arg2 = 0 ; | |
5335 | wxPoint2D *result; | |
5336 | wxPoint2D temp2 ; | |
5337 | PyObject * obj0 = 0 ; | |
5338 | PyObject * obj1 = 0 ; | |
5339 | char *kwnames[] = { | |
5340 | (char *) "self",(char *) "pt", NULL | |
5341 | }; | |
5342 | ||
5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5346 | { |
5347 | arg2 = &temp2; | |
5348 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5349 | } | |
5350 | { | |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | { | |
5353 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5354 | result = (wxPoint2D *) &_result_ref; | |
5355 | } | |
5356 | ||
5357 | wxPyEndAllowThreads(__tstate); | |
5358 | if (PyErr_Occurred()) SWIG_fail; | |
5359 | } | |
15afbcd0 | 5360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5361 | return resultobj; |
5362 | fail: | |
5363 | return NULL; | |
5364 | } | |
5365 | ||
5366 | ||
5367 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5368 | PyObject *resultobj; | |
5369 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5370 | wxPoint2D *arg2 = 0 ; | |
5371 | wxPoint2D *result; | |
5372 | wxPoint2D temp2 ; | |
5373 | PyObject * obj0 = 0 ; | |
5374 | PyObject * obj1 = 0 ; | |
5375 | char *kwnames[] = { | |
5376 | (char *) "self",(char *) "pt", NULL | |
5377 | }; | |
5378 | ||
5379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5382 | { |
5383 | arg2 = &temp2; | |
5384 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5385 | } | |
5386 | { | |
5387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5388 | { | |
5389 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5390 | result = (wxPoint2D *) &_result_ref; | |
5391 | } | |
5392 | ||
5393 | wxPyEndAllowThreads(__tstate); | |
5394 | if (PyErr_Occurred()) SWIG_fail; | |
5395 | } | |
15afbcd0 | 5396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5397 | return resultobj; |
5398 | fail: | |
5399 | return NULL; | |
5400 | } | |
5401 | ||
5402 | ||
5403 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5404 | PyObject *resultobj; | |
5405 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5406 | wxPoint2D *arg2 = 0 ; | |
5407 | wxPoint2D *result; | |
5408 | wxPoint2D temp2 ; | |
5409 | PyObject * obj0 = 0 ; | |
5410 | PyObject * obj1 = 0 ; | |
5411 | char *kwnames[] = { | |
5412 | (char *) "self",(char *) "pt", NULL | |
5413 | }; | |
5414 | ||
5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5418 | { |
5419 | arg2 = &temp2; | |
5420 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5421 | } | |
5422 | { | |
5423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5424 | { | |
5425 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5426 | result = (wxPoint2D *) &_result_ref; | |
5427 | } | |
5428 | ||
5429 | wxPyEndAllowThreads(__tstate); | |
5430 | if (PyErr_Occurred()) SWIG_fail; | |
5431 | } | |
15afbcd0 | 5432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5433 | return resultobj; |
5434 | fail: | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
5439 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5440 | PyObject *resultobj; | |
5441 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5442 | wxPoint2D *arg2 = 0 ; | |
5443 | bool result; | |
5444 | wxPoint2D temp2 ; | |
5445 | PyObject * obj0 = 0 ; | |
5446 | PyObject * obj1 = 0 ; | |
5447 | char *kwnames[] = { | |
5448 | (char *) "self",(char *) "pt", NULL | |
5449 | }; | |
5450 | ||
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5454 | { |
5455 | arg2 = &temp2; | |
5456 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5457 | } | |
5458 | { | |
5459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5460 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5461 | ||
5462 | wxPyEndAllowThreads(__tstate); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | } | |
4f89f6a3 RD |
5465 | { |
5466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5467 | } | |
d14a1e28 RD |
5468 | return resultobj; |
5469 | fail: | |
5470 | return NULL; | |
5471 | } | |
5472 | ||
5473 | ||
5474 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5475 | PyObject *resultobj; | |
5476 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5477 | wxPoint2D *arg2 = 0 ; | |
5478 | bool result; | |
5479 | wxPoint2D temp2 ; | |
5480 | PyObject * obj0 = 0 ; | |
5481 | PyObject * obj1 = 0 ; | |
5482 | char *kwnames[] = { | |
5483 | (char *) "self",(char *) "pt", NULL | |
5484 | }; | |
5485 | ||
5486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5489 | { |
5490 | arg2 = &temp2; | |
5491 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5492 | } | |
5493 | { | |
5494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5495 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5496 | ||
5497 | wxPyEndAllowThreads(__tstate); | |
5498 | if (PyErr_Occurred()) SWIG_fail; | |
5499 | } | |
4f89f6a3 RD |
5500 | { |
5501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5502 | } | |
d14a1e28 RD |
5503 | return resultobj; |
5504 | fail: | |
5505 | return NULL; | |
5506 | } | |
5507 | ||
5508 | ||
d14a1e28 RD |
5509 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5510 | PyObject *resultobj; | |
5511 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5512 | double arg2 ; | |
5513 | PyObject * obj0 = 0 ; | |
994141e6 | 5514 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5515 | char *kwnames[] = { |
5516 | (char *) "self",(char *) "m_x", NULL | |
5517 | }; | |
5518 | ||
994141e6 | 5519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5522 | arg2 = (double) SWIG_AsDouble(obj1); | |
5523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5524 | if (arg1) (arg1)->m_x = arg2; |
5525 | ||
5526 | Py_INCREF(Py_None); resultobj = Py_None; | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | return NULL; | |
5530 | } | |
5531 | ||
5532 | ||
5533 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5534 | PyObject *resultobj; | |
5535 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5536 | double result; | |
5537 | PyObject * obj0 = 0 ; | |
5538 | char *kwnames[] = { | |
5539 | (char *) "self", NULL | |
5540 | }; | |
5541 | ||
5542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5545 | result = (double) ((arg1)->m_x); |
5546 | ||
15afbcd0 | 5547 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5548 | return resultobj; |
5549 | fail: | |
5550 | return NULL; | |
5551 | } | |
5552 | ||
5553 | ||
5554 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject *resultobj; | |
5556 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5557 | double arg2 ; | |
5558 | PyObject * obj0 = 0 ; | |
994141e6 | 5559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5560 | char *kwnames[] = { |
5561 | (char *) "self",(char *) "m_y", NULL | |
5562 | }; | |
5563 | ||
994141e6 | 5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5567 | arg2 = (double) SWIG_AsDouble(obj1); | |
5568 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5569 | if (arg1) (arg1)->m_y = arg2; |
5570 | ||
5571 | Py_INCREF(Py_None); resultobj = Py_None; | |
5572 | return resultobj; | |
5573 | fail: | |
5574 | return NULL; | |
5575 | } | |
5576 | ||
5577 | ||
5578 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject *resultobj; | |
5580 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5581 | double result; | |
5582 | PyObject * obj0 = 0 ; | |
5583 | char *kwnames[] = { | |
5584 | (char *) "self", NULL | |
5585 | }; | |
5586 | ||
5587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5590 | result = (double) ((arg1)->m_y); |
5591 | ||
15afbcd0 | 5592 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5593 | return resultobj; |
5594 | fail: | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
5599 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject *resultobj; | |
5601 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5602 | double arg2 = (double) 0 ; | |
5603 | double arg3 = (double) 0 ; | |
5604 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5605 | PyObject * obj1 = 0 ; |
5606 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5607 | char *kwnames[] = { |
5608 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5609 | }; | |
5610 | ||
994141e6 | 5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5614 | if (obj1) { |
15afbcd0 RD |
5615 | arg2 = (double) SWIG_AsDouble(obj1); |
5616 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
5617 | } |
5618 | if (obj2) { | |
15afbcd0 RD |
5619 | arg3 = (double) SWIG_AsDouble(obj2); |
5620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5621 | } |
d14a1e28 RD |
5622 | { |
5623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5624 | wxPoint2D_Set(arg1,arg2,arg3); | |
5625 | ||
5626 | wxPyEndAllowThreads(__tstate); | |
5627 | if (PyErr_Occurred()) SWIG_fail; | |
5628 | } | |
5629 | Py_INCREF(Py_None); resultobj = Py_None; | |
5630 | return resultobj; | |
5631 | fail: | |
5632 | return NULL; | |
5633 | } | |
5634 | ||
5635 | ||
e811c8ce | 5636 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5637 | PyObject *resultobj; |
5638 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5639 | PyObject *result; | |
5640 | PyObject * obj0 = 0 ; | |
5641 | char *kwnames[] = { | |
5642 | (char *) "self", NULL | |
5643 | }; | |
5644 | ||
e811c8ce | 5645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5648 | { |
5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5650 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5651 | |
5652 | wxPyEndAllowThreads(__tstate); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
5655 | resultobj = result; | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
5662 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5663 | PyObject *obj; | |
5664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5665 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5666 | Py_INCREF(obj); | |
5667 | return Py_BuildValue((char *)""); | |
5668 | } | |
5669 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5670 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5671 | return 1; | |
5672 | } | |
5673 | ||
5674 | ||
5675 | static PyObject *_wrap_DefaultPosition_get() { | |
5676 | PyObject *pyobj; | |
5677 | ||
15afbcd0 | 5678 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5679 | return pyobj; |
5680 | } | |
5681 | ||
5682 | ||
5683 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5684 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5685 | return 1; | |
5686 | } | |
5687 | ||
5688 | ||
5689 | static PyObject *_wrap_DefaultSize_get() { | |
5690 | PyObject *pyobj; | |
5691 | ||
15afbcd0 | 5692 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5693 | return pyobj; |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | PyObject *arg1 = (PyObject *) 0 ; | |
5700 | wxPyInputStream *result; | |
5701 | PyObject * obj0 = 0 ; | |
5702 | char *kwnames[] = { | |
5703 | (char *) "p", NULL | |
5704 | }; | |
5705 | ||
5706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5707 | arg1 = obj0; | |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5710 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5711 | ||
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) SWIG_fail; | |
5714 | } | |
15afbcd0 | 5715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5716 | return resultobj; |
5717 | fail: | |
5718 | return NULL; | |
5719 | } | |
5720 | ||
5721 | ||
5722 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject *resultobj; | |
5724 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5725 | PyObject * obj0 = 0 ; | |
5726 | char *kwnames[] = { | |
5727 | (char *) "self", NULL | |
5728 | }; | |
5729 | ||
5730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5733 | { |
5734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5735 | (arg1)->close(); | |
5736 | ||
5737 | wxPyEndAllowThreads(__tstate); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
5740 | Py_INCREF(Py_None); resultobj = Py_None; | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
5747 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5748 | PyObject *resultobj; | |
5749 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | char *kwnames[] = { | |
5752 | (char *) "self", NULL | |
5753 | }; | |
5754 | ||
5755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5758 | { |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5760 | (arg1)->flush(); | |
5761 | ||
5762 | wxPyEndAllowThreads(__tstate); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | } | |
5765 | Py_INCREF(Py_None); resultobj = Py_None; | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5775 | bool result; | |
5776 | PyObject * obj0 = 0 ; | |
5777 | char *kwnames[] = { | |
5778 | (char *) "self", NULL | |
5779 | }; | |
5780 | ||
5781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5784 | { |
5785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5786 | result = (bool)(arg1)->eof(); | |
5787 | ||
5788 | wxPyEndAllowThreads(__tstate); | |
5789 | if (PyErr_Occurred()) SWIG_fail; | |
5790 | } | |
4f89f6a3 RD |
5791 | { |
5792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5793 | } | |
d14a1e28 RD |
5794 | return resultobj; |
5795 | fail: | |
5796 | return NULL; | |
5797 | } | |
5798 | ||
5799 | ||
5800 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5801 | PyObject *resultobj; | |
5802 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5803 | int arg2 = (int) -1 ; | |
5804 | PyObject *result; | |
5805 | PyObject * obj0 = 0 ; | |
994141e6 | 5806 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5807 | char *kwnames[] = { |
5808 | (char *) "self",(char *) "size", NULL | |
5809 | }; | |
5810 | ||
994141e6 | 5811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5814 | if (obj1) { |
15afbcd0 RD |
5815 | arg2 = (int) SWIG_AsInt(obj1); |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5817 | } |
d14a1e28 RD |
5818 | { |
5819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5820 | result = (PyObject *)(arg1)->read(arg2); | |
5821 | ||
5822 | wxPyEndAllowThreads(__tstate); | |
5823 | if (PyErr_Occurred()) SWIG_fail; | |
5824 | } | |
5825 | resultobj = result; | |
5826 | return resultobj; | |
5827 | fail: | |
5828 | return NULL; | |
5829 | } | |
5830 | ||
5831 | ||
5832 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5833 | PyObject *resultobj; | |
5834 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5835 | int arg2 = (int) -1 ; | |
5836 | PyObject *result; | |
5837 | PyObject * obj0 = 0 ; | |
994141e6 | 5838 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5839 | char *kwnames[] = { |
5840 | (char *) "self",(char *) "size", NULL | |
5841 | }; | |
5842 | ||
994141e6 | 5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5846 | if (obj1) { |
15afbcd0 RD |
5847 | arg2 = (int) SWIG_AsInt(obj1); |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5849 | } |
d14a1e28 RD |
5850 | { |
5851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5852 | result = (PyObject *)(arg1)->readline(arg2); | |
5853 | ||
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | resultobj = result; | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj; | |
5866 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5867 | int arg2 = (int) -1 ; | |
5868 | PyObject *result; | |
5869 | PyObject * obj0 = 0 ; | |
994141e6 | 5870 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5871 | char *kwnames[] = { |
5872 | (char *) "self",(char *) "sizehint", NULL | |
5873 | }; | |
5874 | ||
994141e6 | 5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5878 | if (obj1) { |
15afbcd0 RD |
5879 | arg2 = (int) SWIG_AsInt(obj1); |
5880 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5881 | } |
d14a1e28 RD |
5882 | { |
5883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5884 | result = (PyObject *)(arg1)->readlines(arg2); | |
5885 | ||
5886 | wxPyEndAllowThreads(__tstate); | |
5887 | if (PyErr_Occurred()) SWIG_fail; | |
5888 | } | |
5889 | resultobj = result; | |
5890 | return resultobj; | |
5891 | fail: | |
5892 | return NULL; | |
5893 | } | |
5894 | ||
5895 | ||
5896 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5897 | PyObject *resultobj; | |
5898 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5899 | int arg2 ; | |
5900 | int arg3 = (int) 0 ; | |
5901 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5902 | PyObject * obj1 = 0 ; |
5903 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5904 | char *kwnames[] = { |
5905 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5906 | }; | |
5907 | ||
994141e6 | 5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5911 | arg2 = (int) SWIG_AsInt(obj1); | |
5912 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5913 | if (obj2) { |
15afbcd0 RD |
5914 | arg3 = (int) SWIG_AsInt(obj2); |
5915 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5916 | } |
d14a1e28 RD |
5917 | { |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | (arg1)->seek(arg2,arg3); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) SWIG_fail; | |
5923 | } | |
5924 | Py_INCREF(Py_None); resultobj = Py_None; | |
5925 | return resultobj; | |
5926 | fail: | |
5927 | return NULL; | |
5928 | } | |
5929 | ||
5930 | ||
5931 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5932 | PyObject *resultobj; | |
5933 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5934 | int result; | |
5935 | PyObject * obj0 = 0 ; | |
5936 | char *kwnames[] = { | |
5937 | (char *) "self", NULL | |
5938 | }; | |
5939 | ||
5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5943 | { |
5944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5945 | result = (int)(arg1)->tell(); | |
5946 | ||
5947 | wxPyEndAllowThreads(__tstate); | |
5948 | if (PyErr_Occurred()) SWIG_fail; | |
5949 | } | |
15afbcd0 | 5950 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5951 | return resultobj; |
5952 | fail: | |
5953 | return NULL; | |
5954 | } | |
5955 | ||
5956 | ||
5957 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5958 | PyObject *resultobj; | |
5959 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5960 | char result; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | char *kwnames[] = { | |
5963 | (char *) "self", NULL | |
5964 | }; | |
5965 | ||
5966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5969 | { |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | result = (char)(arg1)->Peek(); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
15afbcd0 | 5976 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5977 | return resultobj; |
5978 | fail: | |
5979 | return NULL; | |
5980 | } | |
5981 | ||
5982 | ||
5983 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5984 | PyObject *resultobj; | |
5985 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5986 | char result; | |
5987 | PyObject * obj0 = 0 ; | |
5988 | char *kwnames[] = { | |
5989 | (char *) "self", NULL | |
5990 | }; | |
5991 | ||
5992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",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 = (char)(arg1)->GetC(); | |
5998 | ||
5999 | wxPyEndAllowThreads(__tstate); | |
6000 | if (PyErr_Occurred()) SWIG_fail; | |
6001 | } | |
15afbcd0 | 6002 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
6003 | return resultobj; |
6004 | fail: | |
6005 | return NULL; | |
6006 | } | |
6007 | ||
6008 | ||
6009 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject *resultobj; | |
6011 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6012 | size_t result; | |
6013 | PyObject * obj0 = 0 ; | |
6014 | char *kwnames[] = { | |
6015 | (char *) "self", NULL | |
6016 | }; | |
6017 | ||
6018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6021 | { |
6022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6023 | result = (size_t)(arg1)->LastRead(); | |
6024 | ||
6025 | wxPyEndAllowThreads(__tstate); | |
6026 | if (PyErr_Occurred()) SWIG_fail; | |
6027 | } | |
15afbcd0 | 6028 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
6029 | return resultobj; |
6030 | fail: | |
6031 | return NULL; | |
6032 | } | |
6033 | ||
6034 | ||
6035 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject *resultobj; | |
6037 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6038 | bool result; | |
6039 | PyObject * obj0 = 0 ; | |
6040 | char *kwnames[] = { | |
6041 | (char *) "self", NULL | |
6042 | }; | |
6043 | ||
6044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6047 | { |
6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6049 | result = (bool)(arg1)->CanRead(); | |
6050 | ||
6051 | wxPyEndAllowThreads(__tstate); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
4f89f6a3 RD |
6054 | { |
6055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6056 | } | |
d14a1e28 RD |
6057 | return resultobj; |
6058 | fail: | |
6059 | return NULL; | |
6060 | } | |
6061 | ||
6062 | ||
6063 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6064 | PyObject *resultobj; | |
6065 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6066 | bool result; | |
6067 | PyObject * obj0 = 0 ; | |
6068 | char *kwnames[] = { | |
6069 | (char *) "self", NULL | |
6070 | }; | |
6071 | ||
6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6075 | { |
6076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6077 | result = (bool)(arg1)->Eof(); | |
6078 | ||
6079 | wxPyEndAllowThreads(__tstate); | |
6080 | if (PyErr_Occurred()) SWIG_fail; | |
6081 | } | |
4f89f6a3 RD |
6082 | { |
6083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6084 | } | |
d14a1e28 RD |
6085 | return resultobj; |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6094 | char arg2 ; | |
6095 | bool result; | |
6096 | PyObject * obj0 = 0 ; | |
994141e6 | 6097 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6098 | char *kwnames[] = { |
6099 | (char *) "self",(char *) "c", NULL | |
6100 | }; | |
6101 | ||
994141e6 | 6102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6105 | arg2 = (char) SWIG_AsChar(obj1); | |
6106 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6107 | { |
6108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6109 | result = (bool)(arg1)->Ungetch(arg2); | |
6110 | ||
6111 | wxPyEndAllowThreads(__tstate); | |
6112 | if (PyErr_Occurred()) SWIG_fail; | |
6113 | } | |
4f89f6a3 RD |
6114 | { |
6115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6116 | } | |
d14a1e28 RD |
6117 | return resultobj; |
6118 | fail: | |
6119 | return NULL; | |
6120 | } | |
6121 | ||
6122 | ||
6123 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6124 | PyObject *resultobj; | |
6125 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6126 | long arg2 ; | |
6127 | int arg3 = (int) wxFromStart ; | |
6128 | long result; | |
6129 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6130 | PyObject * obj1 = 0 ; |
6131 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6132 | char *kwnames[] = { |
6133 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6134 | }; | |
6135 | ||
994141e6 | 6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6139 | arg2 = (long) SWIG_AsLong(obj1); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6141 | if (obj2) { |
15afbcd0 RD |
6142 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6144 | } |
d14a1e28 RD |
6145 | { |
6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6147 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6148 | ||
6149 | wxPyEndAllowThreads(__tstate); | |
6150 | if (PyErr_Occurred()) SWIG_fail; | |
6151 | } | |
15afbcd0 | 6152 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6153 | return resultobj; |
6154 | fail: | |
6155 | return NULL; | |
6156 | } | |
6157 | ||
6158 | ||
6159 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6160 | PyObject *resultobj; | |
6161 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6162 | long result; | |
6163 | PyObject * obj0 = 0 ; | |
6164 | char *kwnames[] = { | |
6165 | (char *) "self", NULL | |
6166 | }; | |
6167 | ||
6168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6171 | { |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | result = (long)(arg1)->TellI(); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
15afbcd0 | 6178 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6179 | return resultobj; |
6180 | fail: | |
6181 | return NULL; | |
6182 | } | |
6183 | ||
6184 | ||
6185 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6186 | PyObject *obj; | |
6187 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6188 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6189 | Py_INCREF(obj); | |
6190 | return Py_BuildValue((char *)""); | |
6191 | } | |
6192 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj; | |
6194 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6195 | PyObject *arg2 = (PyObject *) 0 ; | |
6196 | PyObject * obj0 = 0 ; | |
6197 | PyObject * obj1 = 0 ; | |
6198 | char *kwnames[] = { | |
6199 | (char *) "self",(char *) "obj", NULL | |
6200 | }; | |
6201 | ||
6202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6205 | arg2 = obj1; |
6206 | { | |
6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6208 | wxOutputStream_write(arg1,arg2); | |
6209 | ||
6210 | wxPyEndAllowThreads(__tstate); | |
6211 | if (PyErr_Occurred()) SWIG_fail; | |
6212 | } | |
6213 | Py_INCREF(Py_None); resultobj = Py_None; | |
6214 | return resultobj; | |
6215 | fail: | |
6216 | return NULL; | |
6217 | } | |
6218 | ||
6219 | ||
6220 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6221 | PyObject *obj; | |
6222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6223 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6224 | Py_INCREF(obj); | |
6225 | return Py_BuildValue((char *)""); | |
6226 | } | |
6227 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6228 | PyObject *resultobj; | |
6229 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6230 | wxString *arg2 = 0 ; | |
6231 | wxString *arg3 = 0 ; | |
6232 | wxString *arg4 = 0 ; | |
6233 | wxDateTime arg5 ; | |
6234 | wxFSFile *result; | |
6235 | wxPyInputStream *temp1 ; | |
6236 | bool created1 ; | |
e811c8ce RD |
6237 | bool temp2 = False ; |
6238 | bool temp3 = False ; | |
6239 | bool temp4 = False ; | |
d14a1e28 RD |
6240 | wxDateTime *argp5 ; |
6241 | PyObject * obj0 = 0 ; | |
6242 | PyObject * obj1 = 0 ; | |
6243 | PyObject * obj2 = 0 ; | |
6244 | PyObject * obj3 = 0 ; | |
6245 | PyObject * obj4 = 0 ; | |
6246 | char *kwnames[] = { | |
6247 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6248 | }; | |
6249 | ||
6250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6251 | { | |
6252 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6253 | arg1 = temp1->m_wxis; | |
e811c8ce | 6254 | created1 = False; |
d14a1e28 RD |
6255 | } else { |
6256 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 6257 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6258 | if (arg1 == NULL) { |
6259 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6260 | SWIG_fail; | |
6261 | } | |
e811c8ce | 6262 | created1 = True; |
d14a1e28 RD |
6263 | } |
6264 | } | |
6265 | { | |
6266 | arg2 = wxString_in_helper(obj1); | |
6267 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6268 | temp2 = True; |
d14a1e28 RD |
6269 | } |
6270 | { | |
6271 | arg3 = wxString_in_helper(obj2); | |
6272 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6273 | temp3 = True; |
d14a1e28 RD |
6274 | } |
6275 | { | |
6276 | arg4 = wxString_in_helper(obj3); | |
6277 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6278 | temp4 = True; |
d14a1e28 | 6279 | } |
15afbcd0 RD |
6280 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6281 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6282 | arg5 = *argp5; | |
d14a1e28 RD |
6283 | { |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
6290 | { | |
412d302d | 6291 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
6292 | } |
6293 | { | |
6294 | if (created1) | |
6295 | delete arg1; | |
6296 | } | |
6297 | { | |
6298 | if (temp2) | |
6299 | delete arg2; | |
6300 | } | |
6301 | { | |
6302 | if (temp3) | |
6303 | delete arg3; | |
6304 | } | |
6305 | { | |
6306 | if (temp4) | |
6307 | delete arg4; | |
6308 | } | |
6309 | return resultobj; | |
6310 | fail: | |
6311 | { | |
6312 | if (created1) | |
6313 | delete arg1; | |
6314 | } | |
6315 | { | |
6316 | if (temp2) | |
6317 | delete arg2; | |
6318 | } | |
6319 | { | |
6320 | if (temp3) | |
6321 | delete arg3; | |
6322 | } | |
6323 | { | |
6324 | if (temp4) | |
6325 | delete arg4; | |
6326 | } | |
6327 | return NULL; | |
6328 | } | |
6329 | ||
6330 | ||
6331 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6332 | PyObject *resultobj; | |
6333 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | char *kwnames[] = { | |
6336 | (char *) "self", NULL | |
6337 | }; | |
6338 | ||
6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6342 | { |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | delete arg1; | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | Py_INCREF(Py_None); resultobj = Py_None; | |
6350 | return resultobj; | |
6351 | fail: | |
6352 | return NULL; | |
6353 | } | |
6354 | ||
6355 | ||
6356 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6357 | PyObject *resultobj; | |
6358 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6359 | wxInputStream *result; | |
6360 | PyObject * obj0 = 0 ; | |
6361 | char *kwnames[] = { | |
6362 | (char *) "self", NULL | |
6363 | }; | |
6364 | ||
6365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6368 | { |
6369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6370 | result = (wxInputStream *)(arg1)->GetStream(); | |
6371 | ||
6372 | wxPyEndAllowThreads(__tstate); | |
6373 | if (PyErr_Occurred()) SWIG_fail; | |
6374 | } | |
6375 | { | |
6376 | wxPyInputStream * _ptr = NULL; | |
6377 | ||
6378 | if (result) { | |
6379 | _ptr = new wxPyInputStream(result); | |
6380 | } | |
e811c8ce | 6381 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6382 | } |
6383 | return resultobj; | |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject *resultobj; | |
6391 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6392 | wxString *result; | |
6393 | PyObject * obj0 = 0 ; | |
6394 | char *kwnames[] = { | |
6395 | (char *) "self", NULL | |
6396 | }; | |
6397 | ||
6398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6401 | { |
6402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6403 | { | |
6404 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6405 | result = (wxString *) &_result_ref; | |
6406 | } | |
6407 | ||
6408 | wxPyEndAllowThreads(__tstate); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
6410 | } | |
cc6dd355 RD |
6411 | { |
6412 | #if wxUSE_UNICODE | |
6413 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6414 | #else | |
6415 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6416 | #endif | |
6417 | } | |
d14a1e28 RD |
6418 | return resultobj; |
6419 | fail: | |
6420 | return NULL; | |
6421 | } | |
6422 | ||
6423 | ||
6424 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6425 | PyObject *resultobj; | |
6426 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6427 | wxString *result; | |
6428 | PyObject * obj0 = 0 ; | |
6429 | char *kwnames[] = { | |
6430 | (char *) "self", NULL | |
6431 | }; | |
6432 | ||
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6436 | { |
6437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6438 | { | |
6439 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6440 | result = (wxString *) &_result_ref; | |
6441 | } | |
6442 | ||
6443 | wxPyEndAllowThreads(__tstate); | |
6444 | if (PyErr_Occurred()) SWIG_fail; | |
6445 | } | |
cc6dd355 RD |
6446 | { |
6447 | #if wxUSE_UNICODE | |
6448 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6449 | #else | |
6450 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6451 | #endif | |
6452 | } | |
d14a1e28 RD |
6453 | return resultobj; |
6454 | fail: | |
6455 | return NULL; | |
6456 | } | |
6457 | ||
6458 | ||
6459 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject *resultobj; | |
6461 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6462 | wxString *result; | |
6463 | PyObject * obj0 = 0 ; | |
6464 | char *kwnames[] = { | |
6465 | (char *) "self", NULL | |
6466 | }; | |
6467 | ||
6468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6471 | { |
6472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6473 | { | |
6474 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6475 | result = (wxString *) &_result_ref; | |
6476 | } | |
6477 | ||
6478 | wxPyEndAllowThreads(__tstate); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | } | |
cc6dd355 RD |
6481 | { |
6482 | #if wxUSE_UNICODE | |
6483 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6484 | #else | |
6485 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6486 | #endif | |
6487 | } | |
d14a1e28 RD |
6488 | return resultobj; |
6489 | fail: | |
6490 | return NULL; | |
6491 | } | |
6492 | ||
6493 | ||
6494 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6495 | PyObject *resultobj; | |
6496 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6497 | wxDateTime result; | |
6498 | PyObject * obj0 = 0 ; | |
6499 | char *kwnames[] = { | |
6500 | (char *) "self", NULL | |
6501 | }; | |
6502 | ||
6503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6506 | { |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | result = (arg1)->GetModificationTime(); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | { | |
6514 | wxDateTime * resultptr; | |
6515 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 6516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6517 | } |
6518 | return resultobj; | |
6519 | fail: | |
6520 | return NULL; | |
6521 | } | |
6522 | ||
6523 | ||
6524 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6525 | PyObject *obj; | |
6526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6527 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6528 | Py_INCREF(obj); | |
6529 | return Py_BuildValue((char *)""); | |
6530 | } | |
6531 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6532 | PyObject *obj; | |
6533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6534 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6535 | Py_INCREF(obj); | |
6536 | return Py_BuildValue((char *)""); | |
6537 | } | |
6538 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6539 | PyObject *resultobj; | |
6540 | wxPyFileSystemHandler *result; | |
6541 | char *kwnames[] = { | |
6542 | NULL | |
6543 | }; | |
6544 | ||
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6546 | { | |
6547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6548 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6549 | ||
6550 | wxPyEndAllowThreads(__tstate); | |
6551 | if (PyErr_Occurred()) SWIG_fail; | |
6552 | } | |
15afbcd0 | 6553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6554 | return resultobj; |
6555 | fail: | |
6556 | return NULL; | |
6557 | } | |
6558 | ||
6559 | ||
6560 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj; | |
6562 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6563 | PyObject *arg2 = (PyObject *) 0 ; | |
6564 | PyObject *arg3 = (PyObject *) 0 ; | |
6565 | PyObject * obj0 = 0 ; | |
6566 | PyObject * obj1 = 0 ; | |
6567 | PyObject * obj2 = 0 ; | |
6568 | char *kwnames[] = { | |
6569 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6570 | }; | |
6571 | ||
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6575 | arg2 = obj1; |
6576 | arg3 = obj2; | |
6577 | { | |
6578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6579 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6580 | ||
6581 | wxPyEndAllowThreads(__tstate); | |
6582 | if (PyErr_Occurred()) SWIG_fail; | |
6583 | } | |
6584 | Py_INCREF(Py_None); resultobj = Py_None; | |
6585 | return resultobj; | |
6586 | fail: | |
6587 | return NULL; | |
6588 | } | |
6589 | ||
6590 | ||
6591 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6592 | PyObject *resultobj; | |
6593 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6594 | wxString *arg2 = 0 ; | |
6595 | bool result; | |
e811c8ce | 6596 | bool temp2 = False ; |
d14a1e28 RD |
6597 | PyObject * obj0 = 0 ; |
6598 | PyObject * obj1 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self",(char *) "location", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6606 | { |
6607 | arg2 = wxString_in_helper(obj1); | |
6608 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6609 | temp2 = True; |
d14a1e28 RD |
6610 | } |
6611 | { | |
6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6613 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6614 | ||
6615 | wxPyEndAllowThreads(__tstate); | |
6616 | if (PyErr_Occurred()) SWIG_fail; | |
6617 | } | |
4f89f6a3 RD |
6618 | { |
6619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6620 | } | |
d14a1e28 RD |
6621 | { |
6622 | if (temp2) | |
6623 | delete arg2; | |
6624 | } | |
6625 | return resultobj; | |
6626 | fail: | |
6627 | { | |
6628 | if (temp2) | |
6629 | delete arg2; | |
6630 | } | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
6635 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6636 | PyObject *resultobj; | |
6637 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6638 | wxFileSystem *arg2 = 0 ; | |
6639 | wxString *arg3 = 0 ; | |
6640 | wxFSFile *result; | |
e811c8ce | 6641 | bool temp3 = False ; |
d14a1e28 RD |
6642 | PyObject * obj0 = 0 ; |
6643 | PyObject * obj1 = 0 ; | |
6644 | PyObject * obj2 = 0 ; | |
6645 | char *kwnames[] = { | |
6646 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6647 | }; | |
6648 | ||
6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6652 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6653 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6654 | SWIG_fail; | |
d14a1e28 | 6655 | if (arg2 == NULL) { |
15afbcd0 RD |
6656 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6657 | SWIG_fail; | |
d14a1e28 RD |
6658 | } |
6659 | { | |
6660 | arg3 = wxString_in_helper(obj2); | |
6661 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6662 | temp3 = True; |
d14a1e28 RD |
6663 | } |
6664 | { | |
6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6666 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6667 | ||
6668 | wxPyEndAllowThreads(__tstate); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | { | |
412d302d | 6672 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
6673 | } |
6674 | { | |
6675 | if (temp3) | |
6676 | delete arg3; | |
6677 | } | |
6678 | return resultobj; | |
6679 | fail: | |
6680 | { | |
6681 | if (temp3) | |
6682 | delete arg3; | |
6683 | } | |
6684 | return NULL; | |
6685 | } | |
6686 | ||
6687 | ||
6688 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6689 | PyObject *resultobj; | |
6690 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6691 | wxString *arg2 = 0 ; | |
6692 | int arg3 = (int) 0 ; | |
6693 | wxString result; | |
e811c8ce | 6694 | bool temp2 = False ; |
d14a1e28 RD |
6695 | PyObject * obj0 = 0 ; |
6696 | PyObject * obj1 = 0 ; | |
994141e6 | 6697 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6698 | char *kwnames[] = { |
6699 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6700 | }; | |
6701 | ||
994141e6 | 6702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6705 | { |
6706 | arg2 = wxString_in_helper(obj1); | |
6707 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6708 | temp2 = True; |
d14a1e28 | 6709 | } |
994141e6 | 6710 | if (obj2) { |
15afbcd0 RD |
6711 | arg3 = (int) SWIG_AsInt(obj2); |
6712 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6713 | } |
d14a1e28 RD |
6714 | { |
6715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6716 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
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_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6743 | PyObject *resultobj; | |
6744 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6745 | wxString result; | |
6746 | PyObject * obj0 = 0 ; | |
6747 | char *kwnames[] = { | |
6748 | (char *) "self", NULL | |
6749 | }; | |
6750 | ||
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6754 | { |
6755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6756 | result = (arg1)->FindNext(); | |
6757 | ||
6758 | wxPyEndAllowThreads(__tstate); | |
6759 | if (PyErr_Occurred()) SWIG_fail; | |
6760 | } | |
6761 | { | |
6762 | #if wxUSE_UNICODE | |
6763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6764 | #else | |
6765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6766 | #endif | |
6767 | } | |
6768 | return resultobj; | |
6769 | fail: | |
6770 | return NULL; | |
6771 | } | |
6772 | ||
6773 | ||
6774 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6775 | PyObject *resultobj; | |
6776 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6777 | wxString *arg2 = 0 ; | |
6778 | wxString result; | |
e811c8ce | 6779 | bool temp2 = False ; |
d14a1e28 RD |
6780 | PyObject * obj0 = 0 ; |
6781 | PyObject * obj1 = 0 ; | |
6782 | char *kwnames[] = { | |
6783 | (char *) "self",(char *) "location", NULL | |
6784 | }; | |
6785 | ||
6786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6789 | { |
6790 | arg2 = wxString_in_helper(obj1); | |
6791 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6792 | temp2 = True; |
d14a1e28 RD |
6793 | } |
6794 | { | |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) SWIG_fail; | |
6800 | } | |
6801 | { | |
6802 | #if wxUSE_UNICODE | |
6803 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6804 | #else | |
6805 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6806 | #endif | |
6807 | } | |
6808 | { | |
6809 | if (temp2) | |
6810 | delete arg2; | |
6811 | } | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | { | |
6815 | if (temp2) | |
6816 | delete arg2; | |
6817 | } | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6823 | PyObject *resultobj; | |
6824 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6825 | wxString *arg2 = 0 ; | |
6826 | wxString result; | |
e811c8ce | 6827 | bool temp2 = False ; |
d14a1e28 RD |
6828 | PyObject * obj0 = 0 ; |
6829 | PyObject * obj1 = 0 ; | |
6830 | char *kwnames[] = { | |
6831 | (char *) "self",(char *) "location", NULL | |
6832 | }; | |
6833 | ||
6834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6837 | { |
6838 | arg2 = wxString_in_helper(obj1); | |
6839 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6840 | temp2 = True; |
d14a1e28 RD |
6841 | } |
6842 | { | |
6843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6844 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6845 | ||
6846 | wxPyEndAllowThreads(__tstate); | |
6847 | if (PyErr_Occurred()) SWIG_fail; | |
6848 | } | |
6849 | { | |
6850 | #if wxUSE_UNICODE | |
6851 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6852 | #else | |
6853 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6854 | #endif | |
6855 | } | |
6856 | { | |
6857 | if (temp2) | |
6858 | delete arg2; | |
6859 | } | |
6860 | return resultobj; | |
6861 | fail: | |
6862 | { | |
6863 | if (temp2) | |
6864 | delete arg2; | |
6865 | } | |
6866 | return NULL; | |
6867 | } | |
6868 | ||
6869 | ||
6870 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6871 | PyObject *resultobj; | |
6872 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6873 | wxString *arg2 = 0 ; | |
6874 | wxString result; | |
e811c8ce | 6875 | bool temp2 = False ; |
d14a1e28 RD |
6876 | PyObject * obj0 = 0 ; |
6877 | PyObject * obj1 = 0 ; | |
6878 | char *kwnames[] = { | |
6879 | (char *) "self",(char *) "location", NULL | |
6880 | }; | |
6881 | ||
6882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6885 | { |
6886 | arg2 = wxString_in_helper(obj1); | |
6887 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6888 | temp2 = True; |
d14a1e28 RD |
6889 | } |
6890 | { | |
6891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6892 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6893 | ||
6894 | wxPyEndAllowThreads(__tstate); | |
6895 | if (PyErr_Occurred()) SWIG_fail; | |
6896 | } | |
6897 | { | |
6898 | #if wxUSE_UNICODE | |
6899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6900 | #else | |
6901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6902 | #endif | |
6903 | } | |
6904 | { | |
6905 | if (temp2) | |
6906 | delete arg2; | |
6907 | } | |
6908 | return resultobj; | |
6909 | fail: | |
6910 | { | |
6911 | if (temp2) | |
6912 | delete arg2; | |
6913 | } | |
6914 | return NULL; | |
6915 | } | |
6916 | ||
6917 | ||
6918 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject *resultobj; | |
6920 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6921 | wxString *arg2 = 0 ; | |
6922 | wxString result; | |
e811c8ce | 6923 | bool temp2 = False ; |
d14a1e28 RD |
6924 | PyObject * obj0 = 0 ; |
6925 | PyObject * obj1 = 0 ; | |
6926 | char *kwnames[] = { | |
6927 | (char *) "self",(char *) "location", NULL | |
6928 | }; | |
6929 | ||
6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6933 | { |
6934 | arg2 = wxString_in_helper(obj1); | |
6935 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6936 | temp2 = True; |
d14a1e28 RD |
6937 | } |
6938 | { | |
6939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6940 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6941 | ||
6942 | wxPyEndAllowThreads(__tstate); | |
6943 | if (PyErr_Occurred()) SWIG_fail; | |
6944 | } | |
6945 | { | |
6946 | #if wxUSE_UNICODE | |
6947 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6948 | #else | |
6949 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6950 | #endif | |
6951 | } | |
6952 | { | |
6953 | if (temp2) | |
6954 | delete arg2; | |
6955 | } | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | { | |
6959 | if (temp2) | |
6960 | delete arg2; | |
6961 | } | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj; | |
6968 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6969 | wxString *arg2 = 0 ; | |
6970 | wxString result; | |
e811c8ce | 6971 | bool temp2 = False ; |
d14a1e28 RD |
6972 | PyObject * obj0 = 0 ; |
6973 | PyObject * obj1 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self",(char *) "location", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6981 | { |
6982 | arg2 = wxString_in_helper(obj1); | |
6983 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6984 | temp2 = True; |
d14a1e28 RD |
6985 | } |
6986 | { | |
6987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6988 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6989 | ||
6990 | wxPyEndAllowThreads(__tstate); | |
6991 | if (PyErr_Occurred()) SWIG_fail; | |
6992 | } | |
6993 | { | |
6994 | #if wxUSE_UNICODE | |
6995 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6996 | #else | |
6997 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6998 | #endif | |
6999 | } | |
7000 | { | |
7001 | if (temp2) | |
7002 | delete arg2; | |
7003 | } | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | { | |
7007 | if (temp2) | |
7008 | delete arg2; | |
7009 | } | |
7010 | return NULL; | |
7011 | } | |
7012 | ||
7013 | ||
7014 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
7015 | PyObject *obj; | |
7016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7017 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7018 | Py_INCREF(obj); | |
7019 | return Py_BuildValue((char *)""); | |
7020 | } | |
7021 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7022 | PyObject *resultobj; | |
7023 | wxFileSystem *result; | |
7024 | char *kwnames[] = { | |
7025 | NULL | |
7026 | }; | |
7027 | ||
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7029 | { | |
7030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7031 | result = (wxFileSystem *)new wxFileSystem(); | |
7032 | ||
7033 | wxPyEndAllowThreads(__tstate); | |
7034 | if (PyErr_Occurred()) SWIG_fail; | |
7035 | } | |
7036 | { | |
412d302d | 7037 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
7038 | } |
7039 | return resultobj; | |
7040 | fail: | |
7041 | return NULL; | |
7042 | } | |
7043 | ||
7044 | ||
7045 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7046 | PyObject *resultobj; | |
7047 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7048 | PyObject * obj0 = 0 ; | |
7049 | char *kwnames[] = { | |
7050 | (char *) "self", NULL | |
7051 | }; | |
7052 | ||
7053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7056 | { |
7057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7058 | delete arg1; | |
7059 | ||
7060 | wxPyEndAllowThreads(__tstate); | |
7061 | if (PyErr_Occurred()) SWIG_fail; | |
7062 | } | |
7063 | Py_INCREF(Py_None); resultobj = Py_None; | |
7064 | return resultobj; | |
7065 | fail: | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
7070 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject *resultobj; | |
7072 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7073 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7074 | bool arg3 = (bool) False ; |
7075 | bool temp2 = False ; | |
d14a1e28 RD |
7076 | PyObject * obj0 = 0 ; |
7077 | PyObject * obj1 = 0 ; | |
7078 | PyObject * obj2 = 0 ; | |
7079 | char *kwnames[] = { | |
7080 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7081 | }; | |
7082 | ||
7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7086 | { |
7087 | arg2 = wxString_in_helper(obj1); | |
7088 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7089 | temp2 = True; |
d14a1e28 RD |
7090 | } |
7091 | if (obj2) { | |
15afbcd0 RD |
7092 | arg3 = (bool) SWIG_AsBool(obj2); |
7093 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7094 | } |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) SWIG_fail; | |
7101 | } | |
7102 | Py_INCREF(Py_None); resultobj = Py_None; | |
7103 | { | |
7104 | if (temp2) | |
7105 | delete arg2; | |
7106 | } | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | { | |
7110 | if (temp2) | |
7111 | delete arg2; | |
7112 | } | |
7113 | return NULL; | |
7114 | } | |
7115 | ||
7116 | ||
7117 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7118 | PyObject *resultobj; | |
7119 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7120 | wxString result; | |
7121 | PyObject * obj0 = 0 ; | |
7122 | char *kwnames[] = { | |
7123 | (char *) "self", NULL | |
7124 | }; | |
7125 | ||
7126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7129 | { |
7130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7131 | result = (arg1)->GetPath(); | |
7132 | ||
7133 | wxPyEndAllowThreads(__tstate); | |
7134 | if (PyErr_Occurred()) SWIG_fail; | |
7135 | } | |
7136 | { | |
7137 | #if wxUSE_UNICODE | |
7138 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7139 | #else | |
7140 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7141 | #endif | |
7142 | } | |
7143 | return resultobj; | |
7144 | fail: | |
7145 | return NULL; | |
7146 | } | |
7147 | ||
7148 | ||
7149 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7150 | PyObject *resultobj; | |
7151 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7152 | wxString *arg2 = 0 ; | |
7153 | wxFSFile *result; | |
e811c8ce | 7154 | bool temp2 = False ; |
d14a1e28 RD |
7155 | PyObject * obj0 = 0 ; |
7156 | PyObject * obj1 = 0 ; | |
7157 | char *kwnames[] = { | |
7158 | (char *) "self",(char *) "location", NULL | |
7159 | }; | |
7160 | ||
7161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7164 | { |
7165 | arg2 = wxString_in_helper(obj1); | |
7166 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7167 | temp2 = True; |
d14a1e28 RD |
7168 | } |
7169 | { | |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7171 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7172 | ||
7173 | wxPyEndAllowThreads(__tstate); | |
7174 | if (PyErr_Occurred()) SWIG_fail; | |
7175 | } | |
7176 | { | |
412d302d | 7177 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
7178 | } |
7179 | { | |
7180 | if (temp2) | |
7181 | delete arg2; | |
7182 | } | |
7183 | return resultobj; | |
7184 | fail: | |
7185 | { | |
7186 | if (temp2) | |
7187 | delete arg2; | |
7188 | } | |
7189 | return NULL; | |
7190 | } | |
7191 | ||
7192 | ||
7193 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7194 | PyObject *resultobj; | |
7195 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7196 | wxString *arg2 = 0 ; | |
7197 | int arg3 = (int) 0 ; | |
7198 | wxString result; | |
e811c8ce | 7199 | bool temp2 = False ; |
d14a1e28 RD |
7200 | PyObject * obj0 = 0 ; |
7201 | PyObject * obj1 = 0 ; | |
994141e6 | 7202 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7203 | char *kwnames[] = { |
7204 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7205 | }; | |
7206 | ||
994141e6 | 7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7210 | { |
7211 | arg2 = wxString_in_helper(obj1); | |
7212 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7213 | temp2 = True; |
d14a1e28 | 7214 | } |
994141e6 | 7215 | if (obj2) { |
15afbcd0 RD |
7216 | arg3 = (int) SWIG_AsInt(obj2); |
7217 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7218 | } |
d14a1e28 RD |
7219 | { |
7220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7221 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7222 | ||
7223 | wxPyEndAllowThreads(__tstate); | |
7224 | if (PyErr_Occurred()) SWIG_fail; | |
7225 | } | |
7226 | { | |
7227 | #if wxUSE_UNICODE | |
7228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7229 | #else | |
7230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7231 | #endif | |
7232 | } | |
7233 | { | |
7234 | if (temp2) | |
7235 | delete arg2; | |
7236 | } | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | { | |
7240 | if (temp2) | |
7241 | delete arg2; | |
7242 | } | |
7243 | return NULL; | |
7244 | } | |
7245 | ||
7246 | ||
7247 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7248 | PyObject *resultobj; | |
7249 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7250 | wxString result; | |
7251 | PyObject * obj0 = 0 ; | |
7252 | char *kwnames[] = { | |
7253 | (char *) "self", NULL | |
7254 | }; | |
7255 | ||
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7259 | { |
7260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7261 | result = (arg1)->FindNext(); | |
7262 | ||
7263 | wxPyEndAllowThreads(__tstate); | |
7264 | if (PyErr_Occurred()) SWIG_fail; | |
7265 | } | |
7266 | { | |
7267 | #if wxUSE_UNICODE | |
7268 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7269 | #else | |
7270 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7271 | #endif | |
7272 | } | |
7273 | return resultobj; | |
7274 | fail: | |
7275 | return NULL; | |
7276 | } | |
7277 | ||
7278 | ||
7279 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7280 | PyObject *resultobj; | |
7281 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7282 | PyObject * obj0 = 0 ; | |
7283 | char *kwnames[] = { | |
7284 | (char *) "handler", NULL | |
7285 | }; | |
7286 | ||
7287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7290 | { |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | wxFileSystem::AddHandler(arg1); | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) SWIG_fail; | |
7296 | } | |
7297 | Py_INCREF(Py_None); resultobj = Py_None; | |
7298 | return resultobj; | |
7299 | fail: | |
7300 | return NULL; | |
7301 | } | |
7302 | ||
7303 | ||
7304 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7305 | PyObject *resultobj; | |
7306 | char *kwnames[] = { | |
7307 | NULL | |
7308 | }; | |
7309 | ||
7310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7311 | { | |
7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7313 | wxFileSystem::CleanUpHandlers(); | |
7314 | ||
7315 | wxPyEndAllowThreads(__tstate); | |
7316 | if (PyErr_Occurred()) SWIG_fail; | |
7317 | } | |
7318 | Py_INCREF(Py_None); resultobj = Py_None; | |
7319 | return resultobj; | |
7320 | fail: | |
7321 | return NULL; | |
7322 | } | |
7323 | ||
7324 | ||
7325 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7326 | PyObject *resultobj; | |
7327 | wxString *arg1 = 0 ; | |
7328 | wxString result; | |
e811c8ce | 7329 | bool temp1 = False ; |
d14a1e28 RD |
7330 | PyObject * obj0 = 0 ; |
7331 | char *kwnames[] = { | |
7332 | (char *) "filename", NULL | |
7333 | }; | |
7334 | ||
7335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7336 | { | |
7337 | arg1 = wxString_in_helper(obj0); | |
7338 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7339 | temp1 = True; |
d14a1e28 RD |
7340 | } |
7341 | { | |
7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7343 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7344 | ||
7345 | wxPyEndAllowThreads(__tstate); | |
7346 | if (PyErr_Occurred()) SWIG_fail; | |
7347 | } | |
7348 | { | |
7349 | #if wxUSE_UNICODE | |
7350 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7351 | #else | |
7352 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7353 | #endif | |
7354 | } | |
7355 | { | |
7356 | if (temp1) | |
7357 | delete arg1; | |
7358 | } | |
7359 | return resultobj; | |
7360 | fail: | |
7361 | { | |
7362 | if (temp1) | |
7363 | delete arg1; | |
7364 | } | |
7365 | return NULL; | |
7366 | } | |
7367 | ||
7368 | ||
7369 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7370 | PyObject *obj; | |
7371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7372 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7373 | Py_INCREF(obj); | |
7374 | return Py_BuildValue((char *)""); | |
7375 | } | |
7376 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7377 | PyObject *resultobj; | |
7378 | wxString *arg1 = 0 ; | |
7379 | wxString result; | |
e811c8ce | 7380 | bool temp1 = False ; |
d14a1e28 RD |
7381 | PyObject * obj0 = 0 ; |
7382 | char *kwnames[] = { | |
7383 | (char *) "url", NULL | |
7384 | }; | |
7385 | ||
7386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7387 | { | |
7388 | arg1 = wxString_in_helper(obj0); | |
7389 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7390 | temp1 = True; |
d14a1e28 RD |
7391 | } |
7392 | { | |
7393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7394 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7395 | ||
7396 | wxPyEndAllowThreads(__tstate); | |
7397 | if (PyErr_Occurred()) SWIG_fail; | |
7398 | } | |
7399 | { | |
7400 | #if wxUSE_UNICODE | |
7401 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7402 | #else | |
7403 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7404 | #endif | |
7405 | } | |
7406 | { | |
7407 | if (temp1) | |
7408 | delete arg1; | |
7409 | } | |
7410 | return resultobj; | |
7411 | fail: | |
7412 | { | |
7413 | if (temp1) | |
7414 | delete arg1; | |
7415 | } | |
7416 | return NULL; | |
7417 | } | |
7418 | ||
7419 | ||
7420 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7421 | PyObject *resultobj; | |
7422 | wxInternetFSHandler *result; | |
7423 | char *kwnames[] = { | |
7424 | NULL | |
7425 | }; | |
7426 | ||
7427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7428 | { | |
7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7430 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7431 | ||
7432 | wxPyEndAllowThreads(__tstate); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
15afbcd0 | 7435 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7436 | return resultobj; |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7445 | wxString *arg2 = 0 ; | |
7446 | bool result; | |
e811c8ce | 7447 | bool temp2 = False ; |
d14a1e28 RD |
7448 | PyObject * obj0 = 0 ; |
7449 | PyObject * obj1 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "self",(char *) "location", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7457 | { |
7458 | arg2 = wxString_in_helper(obj1); | |
7459 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7460 | temp2 = True; |
d14a1e28 RD |
7461 | } |
7462 | { | |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
4f89f6a3 RD |
7469 | { |
7470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7471 | } | |
d14a1e28 RD |
7472 | { |
7473 | if (temp2) | |
7474 | delete arg2; | |
7475 | } | |
7476 | return resultobj; | |
7477 | fail: | |
7478 | { | |
7479 | if (temp2) | |
7480 | delete arg2; | |
7481 | } | |
7482 | return NULL; | |
7483 | } | |
7484 | ||
7485 | ||
7486 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7487 | PyObject *resultobj; | |
7488 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7489 | wxFileSystem *arg2 = 0 ; | |
7490 | wxString *arg3 = 0 ; | |
7491 | wxFSFile *result; | |
e811c8ce | 7492 | bool temp3 = False ; |
d14a1e28 RD |
7493 | PyObject * obj0 = 0 ; |
7494 | PyObject * obj1 = 0 ; | |
7495 | PyObject * obj2 = 0 ; | |
7496 | char *kwnames[] = { | |
7497 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7498 | }; | |
7499 | ||
7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7504 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7505 | SWIG_fail; | |
d14a1e28 | 7506 | if (arg2 == NULL) { |
15afbcd0 RD |
7507 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7508 | SWIG_fail; | |
d14a1e28 RD |
7509 | } |
7510 | { | |
7511 | arg3 = wxString_in_helper(obj2); | |
7512 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7513 | temp3 = True; |
d14a1e28 RD |
7514 | } |
7515 | { | |
7516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7517 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7518 | ||
7519 | wxPyEndAllowThreads(__tstate); | |
7520 | if (PyErr_Occurred()) SWIG_fail; | |
7521 | } | |
7522 | { | |
412d302d | 7523 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
7524 | } |
7525 | { | |
7526 | if (temp3) | |
7527 | delete arg3; | |
7528 | } | |
7529 | return resultobj; | |
7530 | fail: | |
7531 | { | |
7532 | if (temp3) | |
7533 | delete arg3; | |
7534 | } | |
7535 | return NULL; | |
7536 | } | |
7537 | ||
7538 | ||
7539 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7540 | PyObject *obj; | |
7541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7542 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7543 | Py_INCREF(obj); | |
7544 | return Py_BuildValue((char *)""); | |
7545 | } | |
7546 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7547 | PyObject *resultobj; | |
7548 | wxZipFSHandler *result; | |
7549 | char *kwnames[] = { | |
7550 | NULL | |
7551 | }; | |
7552 | ||
7553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7554 | { | |
7555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7556 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7557 | ||
7558 | wxPyEndAllowThreads(__tstate); | |
7559 | if (PyErr_Occurred()) SWIG_fail; | |
7560 | } | |
15afbcd0 | 7561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7562 | return resultobj; |
7563 | fail: | |
7564 | return NULL; | |
7565 | } | |
7566 | ||
7567 | ||
7568 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7569 | PyObject *resultobj; | |
7570 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7571 | wxString *arg2 = 0 ; | |
7572 | bool result; | |
e811c8ce | 7573 | bool temp2 = False ; |
d14a1e28 RD |
7574 | PyObject * obj0 = 0 ; |
7575 | PyObject * obj1 = 0 ; | |
7576 | char *kwnames[] = { | |
7577 | (char *) "self",(char *) "location", NULL | |
7578 | }; | |
7579 | ||
7580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7583 | { |
7584 | arg2 = wxString_in_helper(obj1); | |
7585 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7586 | temp2 = True; |
d14a1e28 RD |
7587 | } |
7588 | { | |
7589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7590 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7591 | ||
7592 | wxPyEndAllowThreads(__tstate); | |
7593 | if (PyErr_Occurred()) SWIG_fail; | |
7594 | } | |
4f89f6a3 RD |
7595 | { |
7596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7597 | } | |
d14a1e28 RD |
7598 | { |
7599 | if (temp2) | |
7600 | delete arg2; | |
7601 | } | |
7602 | return resultobj; | |
7603 | fail: | |
7604 | { | |
7605 | if (temp2) | |
7606 | delete arg2; | |
7607 | } | |
7608 | return NULL; | |
7609 | } | |
7610 | ||
7611 | ||
7612 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7613 | PyObject *resultobj; | |
7614 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7615 | wxFileSystem *arg2 = 0 ; | |
7616 | wxString *arg3 = 0 ; | |
7617 | wxFSFile *result; | |
e811c8ce | 7618 | bool temp3 = False ; |
d14a1e28 RD |
7619 | PyObject * obj0 = 0 ; |
7620 | PyObject * obj1 = 0 ; | |
7621 | PyObject * obj2 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7631 | SWIG_fail; | |
d14a1e28 | 7632 | if (arg2 == NULL) { |
15afbcd0 RD |
7633 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7634 | SWIG_fail; | |
d14a1e28 RD |
7635 | } |
7636 | { | |
7637 | arg3 = wxString_in_helper(obj2); | |
7638 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7639 | temp3 = True; |
d14a1e28 RD |
7640 | } |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7644 | ||
7645 | wxPyEndAllowThreads(__tstate); | |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | { | |
412d302d | 7649 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
7650 | } |
7651 | { | |
7652 | if (temp3) | |
7653 | delete arg3; | |
7654 | } | |
7655 | return resultobj; | |
7656 | fail: | |
7657 | { | |
7658 | if (temp3) | |
7659 | delete arg3; | |
7660 | } | |
7661 | return NULL; | |
7662 | } | |
7663 | ||
7664 | ||
7665 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7666 | PyObject *resultobj; | |
7667 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7668 | wxString *arg2 = 0 ; | |
7669 | int arg3 = (int) 0 ; | |
7670 | wxString result; | |
e811c8ce | 7671 | bool temp2 = False ; |
d14a1e28 RD |
7672 | PyObject * obj0 = 0 ; |
7673 | PyObject * obj1 = 0 ; | |
994141e6 | 7674 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7675 | char *kwnames[] = { |
7676 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7677 | }; | |
7678 | ||
994141e6 | 7679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7682 | { |
7683 | arg2 = wxString_in_helper(obj1); | |
7684 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7685 | temp2 = True; |
d14a1e28 | 7686 | } |
994141e6 | 7687 | if (obj2) { |
15afbcd0 RD |
7688 | arg3 = (int) SWIG_AsInt(obj2); |
7689 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7690 | } |
d14a1e28 RD |
7691 | { |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) SWIG_fail; | |
7697 | } | |
7698 | { | |
7699 | #if wxUSE_UNICODE | |
7700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7701 | #else | |
7702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7703 | #endif | |
7704 | } | |
7705 | { | |
7706 | if (temp2) | |
7707 | delete arg2; | |
7708 | } | |
7709 | return resultobj; | |
7710 | fail: | |
7711 | { | |
7712 | if (temp2) | |
7713 | delete arg2; | |
7714 | } | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7720 | PyObject *resultobj; | |
7721 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7722 | wxString result; | |
7723 | PyObject * obj0 = 0 ; | |
7724 | char *kwnames[] = { | |
7725 | (char *) "self", NULL | |
7726 | }; | |
7727 | ||
7728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7731 | { |
7732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7733 | result = (arg1)->FindNext(); | |
7734 | ||
7735 | wxPyEndAllowThreads(__tstate); | |
7736 | if (PyErr_Occurred()) SWIG_fail; | |
7737 | } | |
7738 | { | |
7739 | #if wxUSE_UNICODE | |
7740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7741 | #else | |
7742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7743 | #endif | |
7744 | } | |
7745 | return resultobj; | |
7746 | fail: | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
7751 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7752 | PyObject *obj; | |
7753 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7754 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7755 | Py_INCREF(obj); | |
7756 | return Py_BuildValue((char *)""); | |
7757 | } | |
7758 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7759 | PyObject *resultobj; | |
7760 | wxString *arg1 = 0 ; | |
7761 | wxImage *arg2 = 0 ; | |
7762 | long arg3 ; | |
e811c8ce | 7763 | bool temp1 = False ; |
d14a1e28 RD |
7764 | PyObject * obj0 = 0 ; |
7765 | PyObject * obj1 = 0 ; | |
994141e6 | 7766 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7767 | char *kwnames[] = { |
7768 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7769 | }; | |
7770 | ||
994141e6 | 7771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7772 | { |
7773 | arg1 = wxString_in_helper(obj0); | |
7774 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7775 | temp1 = True; |
d14a1e28 | 7776 | } |
15afbcd0 RD |
7777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7779 | SWIG_fail; | |
d14a1e28 | 7780 | if (arg2 == NULL) { |
15afbcd0 RD |
7781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7782 | SWIG_fail; | |
994141e6 | 7783 | } |
15afbcd0 RD |
7784 | arg3 = (long) SWIG_AsLong(obj2); |
7785 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7786 | { |
7787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7788 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7789 | ||
7790 | wxPyEndAllowThreads(__tstate); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | Py_INCREF(Py_None); resultobj = Py_None; | |
7794 | { | |
7795 | if (temp1) | |
7796 | delete arg1; | |
7797 | } | |
7798 | return resultobj; | |
7799 | fail: | |
7800 | { | |
7801 | if (temp1) | |
7802 | delete arg1; | |
7803 | } | |
7804 | return NULL; | |
7805 | } | |
7806 | ||
7807 | ||
7808 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7809 | PyObject *resultobj; | |
7810 | wxString *arg1 = 0 ; | |
7811 | wxBitmap *arg2 = 0 ; | |
7812 | long arg3 ; | |
e811c8ce | 7813 | bool temp1 = False ; |
d14a1e28 RD |
7814 | PyObject * obj0 = 0 ; |
7815 | PyObject * obj1 = 0 ; | |
994141e6 | 7816 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7817 | char *kwnames[] = { |
7818 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7819 | }; | |
7820 | ||
994141e6 | 7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7822 | { |
7823 | arg1 = wxString_in_helper(obj0); | |
7824 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7825 | temp1 = True; |
d14a1e28 | 7826 | } |
15afbcd0 RD |
7827 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7828 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7829 | SWIG_fail; | |
d14a1e28 | 7830 | if (arg2 == NULL) { |
15afbcd0 RD |
7831 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7832 | SWIG_fail; | |
994141e6 | 7833 | } |
15afbcd0 RD |
7834 | arg3 = (long) SWIG_AsLong(obj2); |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7836 | { |
7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7838 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7839 | ||
7840 | wxPyEndAllowThreads(__tstate); | |
7841 | if (PyErr_Occurred()) SWIG_fail; | |
7842 | } | |
7843 | Py_INCREF(Py_None); resultobj = Py_None; | |
7844 | { | |
7845 | if (temp1) | |
7846 | delete arg1; | |
7847 | } | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | { | |
7851 | if (temp1) | |
7852 | delete arg1; | |
7853 | } | |
7854 | return NULL; | |
7855 | } | |
7856 | ||
7857 | ||
7858 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7859 | PyObject *resultobj; | |
7860 | wxString *arg1 = 0 ; | |
7861 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 7862 | bool temp1 = False ; |
d14a1e28 RD |
7863 | PyObject * obj0 = 0 ; |
7864 | PyObject * obj1 = 0 ; | |
7865 | char *kwnames[] = { | |
7866 | (char *) "filename",(char *) "data", NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7870 | { | |
7871 | arg1 = wxString_in_helper(obj0); | |
7872 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7873 | temp1 = True; |
d14a1e28 RD |
7874 | } |
7875 | arg2 = obj1; | |
7876 | { | |
7877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7878 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7879 | ||
7880 | wxPyEndAllowThreads(__tstate); | |
7881 | if (PyErr_Occurred()) SWIG_fail; | |
7882 | } | |
7883 | Py_INCREF(Py_None); resultobj = Py_None; | |
7884 | { | |
7885 | if (temp1) | |
7886 | delete arg1; | |
7887 | } | |
7888 | return resultobj; | |
7889 | fail: | |
7890 | { | |
7891 | if (temp1) | |
7892 | delete arg1; | |
7893 | } | |
7894 | return NULL; | |
7895 | } | |
7896 | ||
7897 | ||
7898 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7899 | PyObject *resultobj; | |
7900 | wxMemoryFSHandler *result; | |
7901 | char *kwnames[] = { | |
7902 | NULL | |
7903 | }; | |
7904 | ||
7905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7906 | { | |
7907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7908 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7909 | ||
7910 | wxPyEndAllowThreads(__tstate); | |
7911 | if (PyErr_Occurred()) SWIG_fail; | |
7912 | } | |
15afbcd0 | 7913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7914 | return resultobj; |
7915 | fail: | |
7916 | return NULL; | |
7917 | } | |
7918 | ||
7919 | ||
7920 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7921 | PyObject *resultobj; | |
7922 | wxString *arg1 = 0 ; | |
e811c8ce | 7923 | bool temp1 = False ; |
d14a1e28 RD |
7924 | PyObject * obj0 = 0 ; |
7925 | char *kwnames[] = { | |
7926 | (char *) "filename", NULL | |
7927 | }; | |
7928 | ||
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7930 | { | |
7931 | arg1 = wxString_in_helper(obj0); | |
7932 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7933 | temp1 = True; |
d14a1e28 RD |
7934 | } |
7935 | { | |
7936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7937 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7938 | ||
7939 | wxPyEndAllowThreads(__tstate); | |
7940 | if (PyErr_Occurred()) SWIG_fail; | |
7941 | } | |
7942 | Py_INCREF(Py_None); resultobj = Py_None; | |
7943 | { | |
7944 | if (temp1) | |
7945 | delete arg1; | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | { | |
7950 | if (temp1) | |
7951 | delete arg1; | |
7952 | } | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
7957 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject *resultobj; | |
7959 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7960 | wxString *arg2 = 0 ; | |
7961 | bool result; | |
e811c8ce | 7962 | bool temp2 = False ; |
d14a1e28 RD |
7963 | PyObject * obj0 = 0 ; |
7964 | PyObject * obj1 = 0 ; | |
7965 | char *kwnames[] = { | |
7966 | (char *) "self",(char *) "location", NULL | |
7967 | }; | |
7968 | ||
7969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7972 | { |
7973 | arg2 = wxString_in_helper(obj1); | |
7974 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7975 | temp2 = True; |
d14a1e28 RD |
7976 | } |
7977 | { | |
7978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7979 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7980 | ||
7981 | wxPyEndAllowThreads(__tstate); | |
7982 | if (PyErr_Occurred()) SWIG_fail; | |
7983 | } | |
4f89f6a3 RD |
7984 | { |
7985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7986 | } | |
d14a1e28 RD |
7987 | { |
7988 | if (temp2) | |
7989 | delete arg2; | |
7990 | } | |
7991 | return resultobj; | |
7992 | fail: | |
7993 | { | |
7994 | if (temp2) | |
7995 | delete arg2; | |
7996 | } | |
7997 | return NULL; | |
7998 | } | |
7999 | ||
8000 | ||
8001 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8002 | PyObject *resultobj; | |
8003 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8004 | wxFileSystem *arg2 = 0 ; | |
8005 | wxString *arg3 = 0 ; | |
8006 | wxFSFile *result; | |
e811c8ce | 8007 | bool temp3 = False ; |
d14a1e28 RD |
8008 | PyObject * obj0 = 0 ; |
8009 | PyObject * obj1 = 0 ; | |
8010 | PyObject * obj2 = 0 ; | |
8011 | char *kwnames[] = { | |
8012 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8013 | }; | |
8014 | ||
8015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8018 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8019 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8020 | SWIG_fail; | |
d14a1e28 | 8021 | if (arg2 == NULL) { |
15afbcd0 RD |
8022 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8023 | SWIG_fail; | |
d14a1e28 RD |
8024 | } |
8025 | { | |
8026 | arg3 = wxString_in_helper(obj2); | |
8027 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8028 | temp3 = True; |
d14a1e28 RD |
8029 | } |
8030 | { | |
8031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8032 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8033 | ||
8034 | wxPyEndAllowThreads(__tstate); | |
8035 | if (PyErr_Occurred()) SWIG_fail; | |
8036 | } | |
8037 | { | |
412d302d | 8038 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
8039 | } |
8040 | { | |
8041 | if (temp3) | |
8042 | delete arg3; | |
8043 | } | |
8044 | return resultobj; | |
8045 | fail: | |
8046 | { | |
8047 | if (temp3) | |
8048 | delete arg3; | |
8049 | } | |
8050 | return NULL; | |
8051 | } | |
8052 | ||
8053 | ||
8054 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8055 | PyObject *resultobj; | |
8056 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8057 | wxString *arg2 = 0 ; | |
8058 | int arg3 = (int) 0 ; | |
8059 | wxString result; | |
e811c8ce | 8060 | bool temp2 = False ; |
d14a1e28 RD |
8061 | PyObject * obj0 = 0 ; |
8062 | PyObject * obj1 = 0 ; | |
994141e6 | 8063 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8064 | char *kwnames[] = { |
8065 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8066 | }; | |
8067 | ||
994141e6 | 8068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8071 | { |
8072 | arg2 = wxString_in_helper(obj1); | |
8073 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8074 | temp2 = True; |
d14a1e28 | 8075 | } |
994141e6 | 8076 | if (obj2) { |
15afbcd0 RD |
8077 | arg3 = (int) SWIG_AsInt(obj2); |
8078 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8079 | } |
d14a1e28 RD |
8080 | { |
8081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8082 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8083 | ||
8084 | wxPyEndAllowThreads(__tstate); | |
8085 | if (PyErr_Occurred()) SWIG_fail; | |
8086 | } | |
8087 | { | |
8088 | #if wxUSE_UNICODE | |
8089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8090 | #else | |
8091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8092 | #endif | |
8093 | } | |
8094 | { | |
8095 | if (temp2) | |
8096 | delete arg2; | |
8097 | } | |
8098 | return resultobj; | |
8099 | fail: | |
8100 | { | |
8101 | if (temp2) | |
8102 | delete arg2; | |
8103 | } | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
8108 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8109 | PyObject *resultobj; | |
8110 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8111 | wxString result; | |
8112 | PyObject * obj0 = 0 ; | |
8113 | char *kwnames[] = { | |
8114 | (char *) "self", NULL | |
8115 | }; | |
8116 | ||
8117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8120 | { |
8121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8122 | result = (arg1)->FindNext(); | |
8123 | ||
8124 | wxPyEndAllowThreads(__tstate); | |
8125 | if (PyErr_Occurred()) SWIG_fail; | |
8126 | } | |
8127 | { | |
8128 | #if wxUSE_UNICODE | |
8129 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8130 | #else | |
8131 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8132 | #endif | |
8133 | } | |
8134 | return resultobj; | |
8135 | fail: | |
8136 | return NULL; | |
8137 | } | |
8138 | ||
8139 | ||
8140 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8141 | PyObject *obj; | |
8142 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8143 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8144 | Py_INCREF(obj); | |
8145 | return Py_BuildValue((char *)""); | |
8146 | } | |
8147 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8148 | PyObject *resultobj; | |
8149 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8150 | wxString result; | |
8151 | PyObject * obj0 = 0 ; | |
8152 | char *kwnames[] = { | |
8153 | (char *) "self", NULL | |
8154 | }; | |
8155 | ||
8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8159 | { |
8160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8161 | result = (arg1)->GetName(); | |
8162 | ||
8163 | wxPyEndAllowThreads(__tstate); | |
8164 | if (PyErr_Occurred()) SWIG_fail; | |
8165 | } | |
8166 | { | |
8167 | #if wxUSE_UNICODE | |
8168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8169 | #else | |
8170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8171 | #endif | |
8172 | } | |
8173 | return resultobj; | |
8174 | fail: | |
8175 | return NULL; | |
8176 | } | |
8177 | ||
8178 | ||
8179 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject *resultobj; | |
8181 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8182 | wxString result; | |
8183 | PyObject * obj0 = 0 ; | |
8184 | char *kwnames[] = { | |
8185 | (char *) "self", NULL | |
8186 | }; | |
8187 | ||
8188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8191 | { |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | result = (arg1)->GetExtension(); | |
8194 | ||
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | { | |
8199 | #if wxUSE_UNICODE | |
8200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8201 | #else | |
8202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8203 | #endif | |
8204 | } | |
8205 | return resultobj; | |
8206 | fail: | |
8207 | return NULL; | |
8208 | } | |
8209 | ||
8210 | ||
8211 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8212 | PyObject *resultobj; | |
8213 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8214 | long result; | |
8215 | PyObject * obj0 = 0 ; | |
8216 | char *kwnames[] = { | |
8217 | (char *) "self", NULL | |
8218 | }; | |
8219 | ||
8220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8223 | { |
8224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8225 | result = (long)(arg1)->GetType(); | |
8226 | ||
8227 | wxPyEndAllowThreads(__tstate); | |
8228 | if (PyErr_Occurred()) SWIG_fail; | |
8229 | } | |
15afbcd0 | 8230 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8231 | return resultobj; |
8232 | fail: | |
8233 | return NULL; | |
8234 | } | |
8235 | ||
8236 | ||
8237 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8238 | PyObject *resultobj; | |
8239 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8240 | wxString result; | |
8241 | PyObject * obj0 = 0 ; | |
8242 | char *kwnames[] = { | |
8243 | (char *) "self", NULL | |
8244 | }; | |
8245 | ||
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8249 | { |
8250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8251 | result = (arg1)->GetMimeType(); | |
8252 | ||
8253 | wxPyEndAllowThreads(__tstate); | |
8254 | if (PyErr_Occurred()) SWIG_fail; | |
8255 | } | |
8256 | { | |
8257 | #if wxUSE_UNICODE | |
8258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8259 | #else | |
8260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8261 | #endif | |
8262 | } | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | return NULL; | |
8266 | } | |
8267 | ||
8268 | ||
8269 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8270 | PyObject *resultobj; | |
8271 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8272 | wxString *arg2 = 0 ; | |
8273 | bool result; | |
e811c8ce | 8274 | bool temp2 = False ; |
d14a1e28 RD |
8275 | PyObject * obj0 = 0 ; |
8276 | PyObject * obj1 = 0 ; | |
8277 | char *kwnames[] = { | |
8278 | (char *) "self",(char *) "name", NULL | |
8279 | }; | |
8280 | ||
8281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8284 | { |
8285 | arg2 = wxString_in_helper(obj1); | |
8286 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8287 | temp2 = True; |
d14a1e28 RD |
8288 | } |
8289 | { | |
8290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8291 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8292 | ||
8293 | wxPyEndAllowThreads(__tstate); | |
8294 | if (PyErr_Occurred()) SWIG_fail; | |
8295 | } | |
4f89f6a3 RD |
8296 | { |
8297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8298 | } | |
d14a1e28 RD |
8299 | { |
8300 | if (temp2) | |
8301 | delete arg2; | |
8302 | } | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | { | |
8306 | if (temp2) | |
8307 | delete arg2; | |
8308 | } | |
8309 | return NULL; | |
8310 | } | |
8311 | ||
8312 | ||
8313 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8314 | PyObject *resultobj; | |
8315 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8316 | wxString *arg2 = 0 ; | |
e811c8ce | 8317 | bool temp2 = False ; |
d14a1e28 RD |
8318 | PyObject * obj0 = 0 ; |
8319 | PyObject * obj1 = 0 ; | |
8320 | char *kwnames[] = { | |
8321 | (char *) "self",(char *) "name", NULL | |
8322 | }; | |
8323 | ||
8324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8327 | { |
8328 | arg2 = wxString_in_helper(obj1); | |
8329 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8330 | temp2 = True; |
d14a1e28 RD |
8331 | } |
8332 | { | |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | (arg1)->SetName((wxString const &)*arg2); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
8339 | Py_INCREF(Py_None); resultobj = Py_None; | |
8340 | { | |
8341 | if (temp2) | |
8342 | delete arg2; | |
8343 | } | |
8344 | return resultobj; | |
8345 | fail: | |
8346 | { | |
8347 | if (temp2) | |
8348 | delete arg2; | |
8349 | } | |
8350 | return NULL; | |
8351 | } | |
8352 | ||
8353 | ||
8354 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8355 | PyObject *resultobj; | |
8356 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8357 | wxString *arg2 = 0 ; | |
e811c8ce | 8358 | bool temp2 = False ; |
d14a1e28 RD |
8359 | PyObject * obj0 = 0 ; |
8360 | PyObject * obj1 = 0 ; | |
8361 | char *kwnames[] = { | |
8362 | (char *) "self",(char *) "extension", NULL | |
8363 | }; | |
8364 | ||
8365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8368 | { |
8369 | arg2 = wxString_in_helper(obj1); | |
8370 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8371 | temp2 = True; |
d14a1e28 RD |
8372 | } |
8373 | { | |
8374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8375 | (arg1)->SetExtension((wxString const &)*arg2); | |
8376 | ||
8377 | wxPyEndAllowThreads(__tstate); | |
8378 | if (PyErr_Occurred()) SWIG_fail; | |
8379 | } | |
8380 | Py_INCREF(Py_None); resultobj = Py_None; | |
8381 | { | |
8382 | if (temp2) | |
8383 | delete arg2; | |
8384 | } | |
8385 | return resultobj; | |
8386 | fail: | |
8387 | { | |
8388 | if (temp2) | |
8389 | delete arg2; | |
8390 | } | |
8391 | return NULL; | |
8392 | } | |
8393 | ||
8394 | ||
8395 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8396 | PyObject *resultobj; | |
8397 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8398 | long arg2 ; | |
8399 | PyObject * obj0 = 0 ; | |
994141e6 | 8400 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8401 | char *kwnames[] = { |
8402 | (char *) "self",(char *) "type", NULL | |
8403 | }; | |
8404 | ||
994141e6 | 8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8408 | arg2 = (long) SWIG_AsLong(obj1); | |
8409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8410 | { |
8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8412 | (arg1)->SetType(arg2); | |
8413 | ||
8414 | wxPyEndAllowThreads(__tstate); | |
8415 | if (PyErr_Occurred()) SWIG_fail; | |
8416 | } | |
8417 | Py_INCREF(Py_None); resultobj = Py_None; | |
8418 | return resultobj; | |
8419 | fail: | |
8420 | return NULL; | |
8421 | } | |
8422 | ||
8423 | ||
8424 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8425 | PyObject *resultobj; | |
8426 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8427 | wxString *arg2 = 0 ; | |
e811c8ce | 8428 | bool temp2 = False ; |
d14a1e28 RD |
8429 | PyObject * obj0 = 0 ; |
8430 | PyObject * obj1 = 0 ; | |
8431 | char *kwnames[] = { | |
8432 | (char *) "self",(char *) "mimetype", NULL | |
8433 | }; | |
8434 | ||
8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8438 | { |
8439 | arg2 = wxString_in_helper(obj1); | |
8440 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8441 | temp2 = True; |
d14a1e28 RD |
8442 | } |
8443 | { | |
8444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8445 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8446 | ||
8447 | wxPyEndAllowThreads(__tstate); | |
8448 | if (PyErr_Occurred()) SWIG_fail; | |
8449 | } | |
8450 | Py_INCREF(Py_None); resultobj = Py_None; | |
8451 | { | |
8452 | if (temp2) | |
8453 | delete arg2; | |
8454 | } | |
8455 | return resultobj; | |
8456 | fail: | |
8457 | { | |
8458 | if (temp2) | |
8459 | delete arg2; | |
8460 | } | |
8461 | return NULL; | |
8462 | } | |
8463 | ||
8464 | ||
8465 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8466 | PyObject *obj; | |
8467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8468 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8469 | Py_INCREF(obj); | |
8470 | return Py_BuildValue((char *)""); | |
8471 | } | |
8472 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8473 | PyObject *resultobj; | |
8474 | wxImageHistogram *result; | |
8475 | char *kwnames[] = { | |
8476 | NULL | |
8477 | }; | |
8478 | ||
8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8480 | { | |
8481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8482 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8483 | ||
8484 | wxPyEndAllowThreads(__tstate); | |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
8486 | } | |
15afbcd0 | 8487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8488 | return resultobj; |
8489 | fail: | |
8490 | return NULL; | |
8491 | } | |
8492 | ||
8493 | ||
8494 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8495 | PyObject *resultobj; | |
8496 | unsigned char arg1 ; | |
8497 | unsigned char arg2 ; | |
8498 | unsigned char arg3 ; | |
8499 | unsigned long result; | |
8500 | PyObject * obj0 = 0 ; | |
8501 | PyObject * obj1 = 0 ; | |
8502 | PyObject * obj2 = 0 ; | |
8503 | char *kwnames[] = { | |
8504 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8505 | }; | |
8506 | ||
8507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8508 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8511 | if (PyErr_Occurred()) SWIG_fail; | |
8512 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8514 | { |
8515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8516 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8517 | ||
8518 | wxPyEndAllowThreads(__tstate); | |
8519 | if (PyErr_Occurred()) SWIG_fail; | |
8520 | } | |
15afbcd0 | 8521 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8522 | return resultobj; |
8523 | fail: | |
8524 | return NULL; | |
8525 | } | |
8526 | ||
8527 | ||
8528 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8529 | PyObject *resultobj; | |
8530 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8531 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8532 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8533 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8534 | unsigned char arg5 = (unsigned char) 1 ; | |
8535 | unsigned char arg6 = (unsigned char) 0 ; | |
8536 | unsigned char arg7 = (unsigned char) 0 ; | |
8537 | bool result; | |
8538 | unsigned char temp2 ; | |
8539 | unsigned char temp3 ; | |
8540 | unsigned char temp4 ; | |
8541 | PyObject * obj0 = 0 ; | |
8542 | PyObject * obj1 = 0 ; | |
8543 | PyObject * obj2 = 0 ; | |
8544 | PyObject * obj3 = 0 ; | |
8545 | char *kwnames[] = { | |
8546 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8547 | }; | |
8548 | ||
8549 | arg2 = &temp2; | |
8550 | arg3 = &temp3; | |
8551 | arg4 = &temp4; | |
8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8555 | if (obj1) { |
15afbcd0 RD |
8556 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8558 | } |
8559 | if (obj2) { | |
15afbcd0 RD |
8560 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8561 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8562 | } |
8563 | if (obj3) { | |
15afbcd0 RD |
8564 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8566 | } |
8567 | { | |
8568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8569 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8570 | ||
8571 | wxPyEndAllowThreads(__tstate); | |
8572 | if (PyErr_Occurred()) SWIG_fail; | |
8573 | } | |
4f89f6a3 RD |
8574 | { |
8575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8576 | } | |
d14a1e28 RD |
8577 | { |
8578 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8579 | resultobj = t_output_helper(resultobj,o); | |
8580 | } | |
8581 | { | |
8582 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8583 | resultobj = t_output_helper(resultobj,o); | |
8584 | } | |
8585 | { | |
8586 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8587 | resultobj = t_output_helper(resultobj,o); | |
8588 | } | |
8589 | return resultobj; | |
8590 | fail: | |
8591 | return NULL; | |
8592 | } | |
8593 | ||
8594 | ||
8595 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8596 | PyObject *obj; | |
8597 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8598 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8599 | Py_INCREF(obj); | |
8600 | return Py_BuildValue((char *)""); | |
8601 | } | |
8602 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8603 | PyObject *resultobj; | |
8604 | wxString *arg1 = 0 ; | |
8605 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8606 | int arg3 = (int) -1 ; | |
8607 | wxImage *result; | |
e811c8ce | 8608 | bool temp1 = False ; |
d14a1e28 | 8609 | PyObject * obj0 = 0 ; |
994141e6 RD |
8610 | PyObject * obj1 = 0 ; |
8611 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8612 | char *kwnames[] = { |
8613 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8614 | }; | |
8615 | ||
994141e6 | 8616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8617 | { |
8618 | arg1 = wxString_in_helper(obj0); | |
8619 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8620 | temp1 = True; |
d14a1e28 | 8621 | } |
994141e6 | 8622 | if (obj1) { |
15afbcd0 RD |
8623 | arg2 = (long) SWIG_AsLong(obj1); |
8624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8625 | } |
8626 | if (obj2) { | |
15afbcd0 RD |
8627 | arg3 = (int) SWIG_AsInt(obj2); |
8628 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8629 | } |
d14a1e28 RD |
8630 | { |
8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8632 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8633 | ||
8634 | wxPyEndAllowThreads(__tstate); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | } | |
15afbcd0 | 8637 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8638 | { |
8639 | if (temp1) | |
8640 | delete arg1; | |
8641 | } | |
8642 | return resultobj; | |
8643 | fail: | |
8644 | { | |
8645 | if (temp1) | |
8646 | delete arg1; | |
8647 | } | |
8648 | return NULL; | |
8649 | } | |
8650 | ||
8651 | ||
8652 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject *resultobj; | |
8654 | wxImage *arg1 = (wxImage *) 0 ; | |
8655 | PyObject * obj0 = 0 ; | |
8656 | char *kwnames[] = { | |
8657 | (char *) "self", NULL | |
8658 | }; | |
8659 | ||
8660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8663 | { |
8664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8665 | delete arg1; | |
8666 | ||
8667 | wxPyEndAllowThreads(__tstate); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | } | |
8670 | Py_INCREF(Py_None); resultobj = Py_None; | |
8671 | return resultobj; | |
8672 | fail: | |
8673 | return NULL; | |
8674 | } | |
8675 | ||
8676 | ||
8677 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject *resultobj; | |
8679 | wxString *arg1 = 0 ; | |
8680 | wxString *arg2 = 0 ; | |
8681 | int arg3 = (int) -1 ; | |
8682 | wxImage *result; | |
e811c8ce RD |
8683 | bool temp1 = False ; |
8684 | bool temp2 = False ; | |
d14a1e28 RD |
8685 | PyObject * obj0 = 0 ; |
8686 | PyObject * obj1 = 0 ; | |
994141e6 | 8687 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8688 | char *kwnames[] = { |
8689 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8690 | }; | |
8691 | ||
994141e6 | 8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8693 | { |
8694 | arg1 = wxString_in_helper(obj0); | |
8695 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8696 | temp1 = True; |
d14a1e28 RD |
8697 | } |
8698 | { | |
8699 | arg2 = wxString_in_helper(obj1); | |
8700 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8701 | temp2 = True; |
d14a1e28 | 8702 | } |
994141e6 | 8703 | if (obj2) { |
15afbcd0 RD |
8704 | arg3 = (int) SWIG_AsInt(obj2); |
8705 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8706 | } |
d14a1e28 RD |
8707 | { |
8708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8709 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8710 | ||
8711 | wxPyEndAllowThreads(__tstate); | |
8712 | if (PyErr_Occurred()) SWIG_fail; | |
8713 | } | |
15afbcd0 | 8714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8715 | { |
8716 | if (temp1) | |
8717 | delete arg1; | |
8718 | } | |
8719 | { | |
8720 | if (temp2) | |
8721 | delete arg2; | |
8722 | } | |
8723 | return resultobj; | |
8724 | fail: | |
8725 | { | |
8726 | if (temp1) | |
8727 | delete arg1; | |
8728 | } | |
8729 | { | |
8730 | if (temp2) | |
8731 | delete arg2; | |
8732 | } | |
8733 | return NULL; | |
8734 | } | |
8735 | ||
8736 | ||
8737 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8738 | PyObject *resultobj; | |
8739 | wxInputStream *arg1 = 0 ; | |
8740 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8741 | int arg3 = (int) -1 ; | |
8742 | wxImage *result; | |
8743 | wxPyInputStream *temp1 ; | |
8744 | bool created1 ; | |
8745 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8746 | PyObject * obj1 = 0 ; |
8747 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8748 | char *kwnames[] = { |
8749 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8750 | }; | |
8751 | ||
994141e6 | 8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8753 | { |
8754 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8755 | arg1 = temp1->m_wxis; | |
e811c8ce | 8756 | created1 = False; |
d14a1e28 RD |
8757 | } else { |
8758 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8759 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8760 | if (arg1 == NULL) { |
8761 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8762 | SWIG_fail; | |
8763 | } | |
e811c8ce | 8764 | created1 = True; |
d14a1e28 RD |
8765 | } |
8766 | } | |
994141e6 | 8767 | if (obj1) { |
15afbcd0 RD |
8768 | arg2 = (long) SWIG_AsLong(obj1); |
8769 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8770 | } |
8771 | if (obj2) { | |
15afbcd0 RD |
8772 | arg3 = (int) SWIG_AsInt(obj2); |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8774 | } |
d14a1e28 RD |
8775 | { |
8776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8777 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8778 | ||
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
15afbcd0 | 8782 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8783 | { |
8784 | if (created1) | |
8785 | delete arg1; | |
8786 | } | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | { | |
8790 | if (created1) | |
8791 | delete arg1; | |
8792 | } | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
8797 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8798 | PyObject *resultobj; | |
8799 | wxInputStream *arg1 = 0 ; | |
8800 | wxString *arg2 = 0 ; | |
8801 | int arg3 = (int) -1 ; | |
8802 | wxImage *result; | |
8803 | wxPyInputStream *temp1 ; | |
8804 | bool created1 ; | |
e811c8ce | 8805 | bool temp2 = False ; |
d14a1e28 RD |
8806 | PyObject * obj0 = 0 ; |
8807 | PyObject * obj1 = 0 ; | |
994141e6 | 8808 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8809 | char *kwnames[] = { |
8810 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8811 | }; | |
8812 | ||
994141e6 | 8813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8814 | { |
8815 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8816 | arg1 = temp1->m_wxis; | |
e811c8ce | 8817 | created1 = False; |
d14a1e28 RD |
8818 | } else { |
8819 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8820 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8821 | if (arg1 == NULL) { |
8822 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8823 | SWIG_fail; | |
8824 | } | |
e811c8ce | 8825 | created1 = True; |
d14a1e28 RD |
8826 | } |
8827 | } | |
8828 | { | |
8829 | arg2 = wxString_in_helper(obj1); | |
8830 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8831 | temp2 = True; |
d14a1e28 | 8832 | } |
994141e6 | 8833 | if (obj2) { |
15afbcd0 RD |
8834 | arg3 = (int) SWIG_AsInt(obj2); |
8835 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8836 | } |
d14a1e28 RD |
8837 | { |
8838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8839 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8840 | ||
8841 | wxPyEndAllowThreads(__tstate); | |
8842 | if (PyErr_Occurred()) SWIG_fail; | |
8843 | } | |
15afbcd0 | 8844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8845 | { |
8846 | if (created1) | |
8847 | delete arg1; | |
8848 | } | |
8849 | { | |
8850 | if (temp2) | |
8851 | delete arg2; | |
8852 | } | |
8853 | return resultobj; | |
8854 | fail: | |
8855 | { | |
8856 | if (created1) | |
8857 | delete arg1; | |
8858 | } | |
8859 | { | |
8860 | if (temp2) | |
8861 | delete arg2; | |
8862 | } | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
66c033b4 | 8867 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
8868 | PyObject *resultobj; |
8869 | int arg1 = (int) 0 ; | |
8870 | int arg2 = (int) 0 ; | |
e811c8ce | 8871 | bool arg3 = (bool) True ; |
d14a1e28 | 8872 | wxImage *result; |
994141e6 RD |
8873 | PyObject * obj0 = 0 ; |
8874 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8875 | PyObject * obj2 = 0 ; |
66c033b4 RD |
8876 | char *kwnames[] = { |
8877 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8878 | }; | |
d14a1e28 | 8879 | |
66c033b4 | 8880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 8881 | if (obj0) { |
15afbcd0 RD |
8882 | arg1 = (int) SWIG_AsInt(obj0); |
8883 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8884 | } |
8885 | if (obj1) { | |
15afbcd0 RD |
8886 | arg2 = (int) SWIG_AsInt(obj1); |
8887 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8888 | } |
d14a1e28 | 8889 | if (obj2) { |
15afbcd0 RD |
8890 | arg3 = (bool) SWIG_AsBool(obj2); |
8891 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8892 | } |
8893 | { | |
8894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 8895 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d14a1e28 RD |
8896 | |
8897 | wxPyEndAllowThreads(__tstate); | |
8898 | if (PyErr_Occurred()) SWIG_fail; | |
8899 | } | |
15afbcd0 | 8900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8901 | return resultobj; |
8902 | fail: | |
8903 | return NULL; | |
8904 | } | |
8905 | ||
8906 | ||
8907 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8908 | PyObject *resultobj; | |
8909 | wxBitmap *arg1 = 0 ; | |
8910 | wxImage *result; | |
8911 | PyObject * obj0 = 0 ; | |
8912 | char *kwnames[] = { | |
8913 | (char *) "bitmap", NULL | |
8914 | }; | |
8915 | ||
8916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8919 | SWIG_fail; | |
d14a1e28 | 8920 | if (arg1 == NULL) { |
15afbcd0 RD |
8921 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8922 | SWIG_fail; | |
d14a1e28 RD |
8923 | } |
8924 | { | |
e3b71cb8 | 8925 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8927 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8930 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8931 | } |
15afbcd0 | 8932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8933 | return resultobj; |
8934 | fail: | |
8935 | return NULL; | |
8936 | } | |
8937 | ||
8938 | ||
8939 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8940 | PyObject *resultobj; | |
8941 | int arg1 ; | |
8942 | int arg2 ; | |
8943 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8944 | wxImage *result; | |
994141e6 RD |
8945 | PyObject * obj0 = 0 ; |
8946 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8947 | PyObject * obj2 = 0 ; |
8948 | char *kwnames[] = { | |
8949 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8950 | }; | |
8951 | ||
994141e6 | 8952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8953 | arg1 = (int) SWIG_AsInt(obj0); |
8954 | if (PyErr_Occurred()) SWIG_fail; | |
8955 | arg2 = (int) SWIG_AsInt(obj1); | |
8956 | if (PyErr_Occurred()) SWIG_fail; | |
8957 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8959 | { |
8960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8961 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8962 | ||
8963 | wxPyEndAllowThreads(__tstate); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | } | |
15afbcd0 | 8966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8967 | return resultobj; |
8968 | fail: | |
8969 | return NULL; | |
8970 | } | |
8971 | ||
8972 | ||
8973 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8974 | PyObject *resultobj; | |
8975 | wxImage *arg1 = (wxImage *) 0 ; | |
8976 | int arg2 ; | |
8977 | int arg3 ; | |
8978 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8979 | PyObject * obj1 = 0 ; |
8980 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8981 | char *kwnames[] = { |
8982 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8983 | }; | |
8984 | ||
994141e6 | 8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8988 | arg2 = (int) SWIG_AsInt(obj1); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | arg3 = (int) SWIG_AsInt(obj2); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8992 | { |
8993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8994 | (arg1)->Create(arg2,arg3); | |
8995 | ||
8996 | wxPyEndAllowThreads(__tstate); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | } | |
8999 | Py_INCREF(Py_None); resultobj = Py_None; | |
9000 | return resultobj; | |
9001 | fail: | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
9006 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9007 | PyObject *resultobj; | |
9008 | wxImage *arg1 = (wxImage *) 0 ; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | char *kwnames[] = { | |
9011 | (char *) "self", NULL | |
9012 | }; | |
9013 | ||
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9017 | { |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | (arg1)->Destroy(); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | Py_INCREF(Py_None); resultobj = Py_None; | |
9025 | return resultobj; | |
9026 | fail: | |
9027 | return NULL; | |
9028 | } | |
9029 | ||
9030 | ||
9031 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9032 | PyObject *resultobj; | |
9033 | wxImage *arg1 = (wxImage *) 0 ; | |
9034 | int arg2 ; | |
9035 | int arg3 ; | |
9036 | SwigValueWrapper< wxImage > result; | |
9037 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9038 | PyObject * obj1 = 0 ; |
9039 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9040 | char *kwnames[] = { |
9041 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9042 | }; | |
9043 | ||
994141e6 | 9044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9047 | arg2 = (int) SWIG_AsInt(obj1); | |
9048 | if (PyErr_Occurred()) SWIG_fail; | |
9049 | arg3 = (int) SWIG_AsInt(obj2); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9051 | { |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9053 | result = (arg1)->Scale(arg2,arg3); | |
9054 | ||
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
9058 | { | |
9059 | wxImage * resultptr; | |
9060 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9062 | } |
9063 | return resultobj; | |
9064 | fail: | |
9065 | return NULL; | |
9066 | } | |
9067 | ||
9068 | ||
9069 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9070 | PyObject *resultobj; | |
9071 | wxImage *arg1 = (wxImage *) 0 ; | |
9072 | int arg2 ; | |
9073 | int arg3 ; | |
9074 | SwigValueWrapper< wxImage > result; | |
9075 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9076 | PyObject * obj1 = 0 ; |
9077 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9078 | char *kwnames[] = { |
9079 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9080 | }; | |
9081 | ||
994141e6 | 9082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9085 | arg2 = (int) SWIG_AsInt(obj1); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | arg3 = (int) SWIG_AsInt(obj2); | |
9088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9089 | { |
9090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9091 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9092 | ||
9093 | wxPyEndAllowThreads(__tstate); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | } | |
9096 | { | |
9097 | wxImage * resultptr; | |
9098 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9100 | } |
9101 | return resultobj; | |
9102 | fail: | |
9103 | return NULL; | |
9104 | } | |
9105 | ||
9106 | ||
9107 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject *resultobj; | |
9109 | wxImage *arg1 = (wxImage *) 0 ; | |
9110 | int arg2 ; | |
9111 | int arg3 ; | |
9112 | wxImage *result; | |
9113 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9114 | PyObject * obj1 = 0 ; |
9115 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9116 | char *kwnames[] = { |
9117 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9118 | }; | |
9119 | ||
994141e6 | 9120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9123 | arg2 = (int) SWIG_AsInt(obj1); | |
9124 | if (PyErr_Occurred()) SWIG_fail; | |
9125 | arg3 = (int) SWIG_AsInt(obj2); | |
9126 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9127 | { |
9128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9129 | { | |
9130 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9131 | result = (wxImage *) &_result_ref; | |
9132 | } | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
15afbcd0 | 9137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
9138 | return resultobj; |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxImage *arg1 = (wxImage *) 0 ; | |
9147 | int arg2 ; | |
9148 | int arg3 ; | |
9149 | unsigned char arg4 ; | |
9150 | unsigned char arg5 ; | |
9151 | unsigned char arg6 ; | |
9152 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9153 | PyObject * obj1 = 0 ; |
9154 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9155 | PyObject * obj3 = 0 ; |
9156 | PyObject * obj4 = 0 ; | |
9157 | PyObject * obj5 = 0 ; | |
9158 | char *kwnames[] = { | |
9159 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9160 | }; | |
9161 | ||
994141e6 | 9162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
9163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9165 | arg2 = (int) SWIG_AsInt(obj1); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | arg3 = (int) SWIG_AsInt(obj2); | |
9168 | if (PyErr_Occurred()) SWIG_fail; | |
9169 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9170 | if (PyErr_Occurred()) SWIG_fail; | |
9171 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9175 | { |
9176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9177 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9178 | ||
9179 | wxPyEndAllowThreads(__tstate); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | } | |
9182 | Py_INCREF(Py_None); resultobj = Py_None; | |
9183 | return resultobj; | |
9184 | fail: | |
9185 | return NULL; | |
9186 | } | |
9187 | ||
9188 | ||
9189 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9190 | PyObject *resultobj; | |
9191 | wxImage *arg1 = (wxImage *) 0 ; | |
9192 | int arg2 ; | |
9193 | int arg3 ; | |
9194 | unsigned char result; | |
9195 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9196 | PyObject * obj1 = 0 ; |
9197 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9198 | char *kwnames[] = { |
9199 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9200 | }; | |
9201 | ||
994141e6 | 9202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9205 | arg2 = (int) SWIG_AsInt(obj1); | |
9206 | if (PyErr_Occurred()) SWIG_fail; | |
9207 | arg3 = (int) SWIG_AsInt(obj2); | |
9208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9209 | { |
9210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9211 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9212 | ||
9213 | wxPyEndAllowThreads(__tstate); | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | } | |
15afbcd0 | 9216 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9217 | return resultobj; |
9218 | fail: | |
9219 | return NULL; | |
9220 | } | |
9221 | ||
9222 | ||
9223 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9224 | PyObject *resultobj; | |
9225 | wxImage *arg1 = (wxImage *) 0 ; | |
9226 | int arg2 ; | |
9227 | int arg3 ; | |
9228 | unsigned char result; | |
9229 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9230 | PyObject * obj1 = 0 ; |
9231 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9232 | char *kwnames[] = { |
9233 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9234 | }; | |
9235 | ||
994141e6 | 9236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9239 | arg2 = (int) SWIG_AsInt(obj1); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | arg3 = (int) SWIG_AsInt(obj2); | |
9242 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9243 | { |
9244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9245 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9246 | ||
9247 | wxPyEndAllowThreads(__tstate); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | } | |
15afbcd0 | 9250 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9251 | return resultobj; |
9252 | fail: | |
9253 | return NULL; | |
9254 | } | |
9255 | ||
9256 | ||
9257 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9258 | PyObject *resultobj; | |
9259 | wxImage *arg1 = (wxImage *) 0 ; | |
9260 | int arg2 ; | |
9261 | int arg3 ; | |
9262 | unsigned char result; | |
9263 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9264 | PyObject * obj1 = 0 ; |
9265 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9266 | char *kwnames[] = { |
9267 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9268 | }; | |
9269 | ||
994141e6 | 9270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9273 | arg2 = (int) SWIG_AsInt(obj1); | |
9274 | if (PyErr_Occurred()) SWIG_fail; | |
9275 | arg3 = (int) SWIG_AsInt(obj2); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9277 | { |
9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9279 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9280 | ||
9281 | wxPyEndAllowThreads(__tstate); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | } | |
15afbcd0 | 9284 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9285 | return resultobj; |
9286 | fail: | |
9287 | return NULL; | |
9288 | } | |
9289 | ||
9290 | ||
9291 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9292 | PyObject *resultobj; | |
9293 | wxImage *arg1 = (wxImage *) 0 ; | |
9294 | int arg2 ; | |
9295 | int arg3 ; | |
9296 | unsigned char arg4 ; | |
9297 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9298 | PyObject * obj1 = 0 ; |
9299 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9300 | PyObject * obj3 = 0 ; |
9301 | char *kwnames[] = { | |
9302 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9303 | }; | |
9304 | ||
994141e6 | 9305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9308 | arg2 = (int) SWIG_AsInt(obj1); | |
9309 | if (PyErr_Occurred()) SWIG_fail; | |
9310 | arg3 = (int) SWIG_AsInt(obj2); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9313 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9314 | { |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | } | |
9321 | Py_INCREF(Py_None); resultobj = Py_None; | |
9322 | return resultobj; | |
9323 | fail: | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxImage *arg1 = (wxImage *) 0 ; | |
9331 | int arg2 ; | |
9332 | int arg3 ; | |
9333 | unsigned char result; | |
9334 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9335 | PyObject * obj1 = 0 ; |
9336 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9337 | char *kwnames[] = { |
9338 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9339 | }; | |
9340 | ||
994141e6 | 9341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9344 | arg2 = (int) SWIG_AsInt(obj1); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | arg3 = (int) SWIG_AsInt(obj2); | |
9347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9348 | { |
9349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9350 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9351 | ||
9352 | wxPyEndAllowThreads(__tstate); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | } | |
15afbcd0 | 9355 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9356 | return resultobj; |
9357 | fail: | |
9358 | return NULL; | |
9359 | } | |
9360 | ||
9361 | ||
9362 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9363 | PyObject *resultobj; | |
9364 | wxImage *arg1 = (wxImage *) 0 ; | |
9365 | bool result; | |
9366 | PyObject * obj0 = 0 ; | |
9367 | char *kwnames[] = { | |
9368 | (char *) "self", NULL | |
9369 | }; | |
9370 | ||
9371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9374 | { |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | result = (bool)(arg1)->HasAlpha(); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
4f89f6a3 RD |
9381 | { |
9382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9383 | } | |
d14a1e28 RD |
9384 | return resultobj; |
9385 | fail: | |
9386 | return NULL; | |
9387 | } | |
9388 | ||
9389 | ||
9390 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9391 | PyObject *resultobj; | |
9392 | wxImage *arg1 = (wxImage *) 0 ; | |
9393 | byte *arg2 = (byte *) 0 ; | |
9394 | byte *arg3 = (byte *) 0 ; | |
9395 | byte *arg4 = (byte *) 0 ; | |
9396 | byte arg5 = (byte) 0 ; | |
9397 | byte arg6 = (byte) 0 ; | |
9398 | byte arg7 = (byte) 0 ; | |
9399 | bool result; | |
9400 | byte temp2 ; | |
9401 | byte temp3 ; | |
9402 | byte temp4 ; | |
9403 | PyObject * obj0 = 0 ; | |
9404 | PyObject * obj1 = 0 ; | |
9405 | PyObject * obj2 = 0 ; | |
9406 | PyObject * obj3 = 0 ; | |
9407 | char *kwnames[] = { | |
9408 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9409 | }; | |
9410 | ||
9411 | arg2 = &temp2; | |
9412 | arg3 = &temp3; | |
9413 | arg4 = &temp4; | |
9414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9417 | if (obj1) { |
15afbcd0 RD |
9418 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9420 | } |
9421 | if (obj2) { | |
15afbcd0 RD |
9422 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9424 | } |
9425 | if (obj3) { | |
15afbcd0 RD |
9426 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9428 | } |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
4f89f6a3 RD |
9436 | { |
9437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9438 | } | |
d14a1e28 RD |
9439 | { |
9440 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9441 | resultobj = t_output_helper(resultobj,o); | |
9442 | } | |
9443 | { | |
9444 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9445 | resultobj = t_output_helper(resultobj,o); | |
9446 | } | |
9447 | { | |
9448 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9449 | resultobj = t_output_helper(resultobj,o); | |
9450 | } | |
9451 | return resultobj; | |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject *resultobj; | |
9459 | wxImage *arg1 = (wxImage *) 0 ; | |
9460 | wxImage *arg2 = 0 ; | |
9461 | byte arg3 ; | |
9462 | byte arg4 ; | |
9463 | byte arg5 ; | |
9464 | bool result; | |
9465 | PyObject * obj0 = 0 ; | |
9466 | PyObject * obj1 = 0 ; | |
9467 | PyObject * obj2 = 0 ; | |
9468 | PyObject * obj3 = 0 ; | |
9469 | PyObject * obj4 = 0 ; | |
9470 | char *kwnames[] = { | |
9471 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9472 | }; | |
9473 | ||
9474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
9475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9477 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9478 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9479 | SWIG_fail; | |
d14a1e28 | 9480 | if (arg2 == NULL) { |
15afbcd0 RD |
9481 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9482 | SWIG_fail; | |
a41e16b6 | 9483 | } |
15afbcd0 RD |
9484 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9487 | if (PyErr_Occurred()) SWIG_fail; | |
9488 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9490 | { |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9492 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9493 | ||
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | } | |
4f89f6a3 RD |
9497 | { |
9498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9499 | } | |
d14a1e28 RD |
9500 | return resultobj; |
9501 | fail: | |
9502 | return NULL; | |
9503 | } | |
9504 | ||
9505 | ||
9506 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9507 | PyObject *resultobj; | |
9508 | wxString *arg1 = 0 ; | |
9509 | bool result; | |
e811c8ce | 9510 | bool temp1 = False ; |
d14a1e28 RD |
9511 | PyObject * obj0 = 0 ; |
9512 | char *kwnames[] = { | |
9513 | (char *) "name", NULL | |
9514 | }; | |
9515 | ||
9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9517 | { | |
9518 | arg1 = wxString_in_helper(obj0); | |
9519 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9520 | temp1 = True; |
d14a1e28 RD |
9521 | } |
9522 | { | |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
4f89f6a3 RD |
9529 | { |
9530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9531 | } | |
d14a1e28 RD |
9532 | { |
9533 | if (temp1) | |
9534 | delete arg1; | |
9535 | } | |
9536 | return resultobj; | |
9537 | fail: | |
9538 | { | |
9539 | if (temp1) | |
9540 | delete arg1; | |
9541 | } | |
9542 | return NULL; | |
9543 | } | |
9544 | ||
9545 | ||
9546 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject *resultobj; | |
9548 | wxString *arg1 = 0 ; | |
9549 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9550 | int result; | |
e811c8ce | 9551 | bool temp1 = False ; |
d14a1e28 | 9552 | PyObject * obj0 = 0 ; |
994141e6 | 9553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9554 | char *kwnames[] = { |
9555 | (char *) "name",(char *) "type", NULL | |
9556 | }; | |
9557 | ||
994141e6 | 9558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9559 | { |
9560 | arg1 = wxString_in_helper(obj0); | |
9561 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9562 | temp1 = True; |
d14a1e28 | 9563 | } |
994141e6 | 9564 | if (obj1) { |
15afbcd0 RD |
9565 | arg2 = (long) SWIG_AsLong(obj1); |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9567 | } |
d14a1e28 RD |
9568 | { |
9569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9570 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9571 | ||
9572 | wxPyEndAllowThreads(__tstate); | |
9573 | if (PyErr_Occurred()) SWIG_fail; | |
9574 | } | |
15afbcd0 | 9575 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9576 | { |
9577 | if (temp1) | |
9578 | delete arg1; | |
9579 | } | |
9580 | return resultobj; | |
9581 | fail: | |
9582 | { | |
9583 | if (temp1) | |
9584 | delete arg1; | |
9585 | } | |
9586 | return NULL; | |
9587 | } | |
9588 | ||
9589 | ||
9590 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9591 | PyObject *resultobj; | |
9592 | wxImage *arg1 = (wxImage *) 0 ; | |
9593 | wxString *arg2 = 0 ; | |
9594 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9595 | int arg4 = (int) -1 ; | |
9596 | bool result; | |
e811c8ce | 9597 | bool temp2 = False ; |
d14a1e28 RD |
9598 | PyObject * obj0 = 0 ; |
9599 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9600 | PyObject * obj2 = 0 ; |
9601 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9602 | char *kwnames[] = { |
9603 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9604 | }; | |
9605 | ||
994141e6 | 9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9609 | { |
9610 | arg2 = wxString_in_helper(obj1); | |
9611 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9612 | temp2 = True; |
d14a1e28 | 9613 | } |
994141e6 | 9614 | if (obj2) { |
15afbcd0 RD |
9615 | arg3 = (long) SWIG_AsLong(obj2); |
9616 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9617 | } |
9618 | if (obj3) { | |
15afbcd0 RD |
9619 | arg4 = (int) SWIG_AsInt(obj3); |
9620 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9621 | } |
d14a1e28 RD |
9622 | { |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
4f89f6a3 RD |
9629 | { |
9630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9631 | } | |
d14a1e28 RD |
9632 | { |
9633 | if (temp2) | |
9634 | delete arg2; | |
9635 | } | |
9636 | return resultobj; | |
9637 | fail: | |
9638 | { | |
9639 | if (temp2) | |
9640 | delete arg2; | |
9641 | } | |
9642 | return NULL; | |
9643 | } | |
9644 | ||
9645 | ||
9646 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9647 | PyObject *resultobj; | |
9648 | wxImage *arg1 = (wxImage *) 0 ; | |
9649 | wxString *arg2 = 0 ; | |
9650 | wxString *arg3 = 0 ; | |
9651 | int arg4 = (int) -1 ; | |
9652 | bool result; | |
e811c8ce RD |
9653 | bool temp2 = False ; |
9654 | bool temp3 = False ; | |
d14a1e28 RD |
9655 | PyObject * obj0 = 0 ; |
9656 | PyObject * obj1 = 0 ; | |
9657 | PyObject * obj2 = 0 ; | |
994141e6 | 9658 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9659 | char *kwnames[] = { |
9660 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9661 | }; | |
9662 | ||
994141e6 | 9663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9666 | { |
9667 | arg2 = wxString_in_helper(obj1); | |
9668 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9669 | temp2 = True; |
d14a1e28 RD |
9670 | } |
9671 | { | |
9672 | arg3 = wxString_in_helper(obj2); | |
9673 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9674 | temp3 = True; |
d14a1e28 | 9675 | } |
994141e6 | 9676 | if (obj3) { |
15afbcd0 RD |
9677 | arg4 = (int) SWIG_AsInt(obj3); |
9678 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9679 | } |
d14a1e28 RD |
9680 | { |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
4f89f6a3 RD |
9687 | { |
9688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9689 | } | |
d14a1e28 RD |
9690 | { |
9691 | if (temp2) | |
9692 | delete arg2; | |
9693 | } | |
9694 | { | |
9695 | if (temp3) | |
9696 | delete arg3; | |
9697 | } | |
9698 | return resultobj; | |
9699 | fail: | |
9700 | { | |
9701 | if (temp2) | |
9702 | delete arg2; | |
9703 | } | |
9704 | { | |
9705 | if (temp3) | |
9706 | delete arg3; | |
9707 | } | |
9708 | return NULL; | |
9709 | } | |
9710 | ||
9711 | ||
9712 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9713 | PyObject *resultobj; | |
9714 | wxImage *arg1 = (wxImage *) 0 ; | |
9715 | wxString *arg2 = 0 ; | |
9716 | int arg3 ; | |
9717 | bool result; | |
e811c8ce | 9718 | bool temp2 = False ; |
d14a1e28 RD |
9719 | PyObject * obj0 = 0 ; |
9720 | PyObject * obj1 = 0 ; | |
994141e6 | 9721 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9722 | char *kwnames[] = { |
9723 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9724 | }; | |
9725 | ||
994141e6 | 9726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9729 | { |
9730 | arg2 = wxString_in_helper(obj1); | |
9731 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9732 | temp2 = True; |
d14a1e28 | 9733 | } |
15afbcd0 RD |
9734 | arg3 = (int) SWIG_AsInt(obj2); |
9735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9736 | { |
9737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9738 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9739 | ||
9740 | wxPyEndAllowThreads(__tstate); | |
9741 | if (PyErr_Occurred()) SWIG_fail; | |
9742 | } | |
4f89f6a3 RD |
9743 | { |
9744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9745 | } | |
d14a1e28 RD |
9746 | { |
9747 | if (temp2) | |
9748 | delete arg2; | |
9749 | } | |
9750 | return resultobj; | |
9751 | fail: | |
9752 | { | |
9753 | if (temp2) | |
9754 | delete arg2; | |
9755 | } | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9761 | PyObject *resultobj; | |
9762 | wxImage *arg1 = (wxImage *) 0 ; | |
9763 | wxString *arg2 = 0 ; | |
9764 | wxString *arg3 = 0 ; | |
9765 | bool result; | |
e811c8ce RD |
9766 | bool temp2 = False ; |
9767 | bool temp3 = False ; | |
d14a1e28 RD |
9768 | PyObject * obj0 = 0 ; |
9769 | PyObject * obj1 = 0 ; | |
9770 | PyObject * obj2 = 0 ; | |
9771 | char *kwnames[] = { | |
9772 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9773 | }; | |
9774 | ||
9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9778 | { |
9779 | arg2 = wxString_in_helper(obj1); | |
9780 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9781 | temp2 = True; |
d14a1e28 RD |
9782 | } |
9783 | { | |
9784 | arg3 = wxString_in_helper(obj2); | |
9785 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9786 | temp3 = True; |
d14a1e28 RD |
9787 | } |
9788 | { | |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
4f89f6a3 RD |
9795 | { |
9796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9797 | } | |
d14a1e28 RD |
9798 | { |
9799 | if (temp2) | |
9800 | delete arg2; | |
9801 | } | |
9802 | { | |
9803 | if (temp3) | |
9804 | delete arg3; | |
9805 | } | |
9806 | return resultobj; | |
9807 | fail: | |
9808 | { | |
9809 | if (temp2) | |
9810 | delete arg2; | |
9811 | } | |
9812 | { | |
9813 | if (temp3) | |
9814 | delete arg3; | |
9815 | } | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxInputStream *arg1 = 0 ; | |
9823 | bool result; | |
9824 | wxPyInputStream *temp1 ; | |
9825 | bool created1 ; | |
9826 | PyObject * obj0 = 0 ; | |
9827 | char *kwnames[] = { | |
9828 | (char *) "stream", NULL | |
9829 | }; | |
9830 | ||
9831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9832 | { | |
9833 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9834 | arg1 = temp1->m_wxis; | |
e811c8ce | 9835 | created1 = False; |
d14a1e28 RD |
9836 | } else { |
9837 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9838 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9839 | if (arg1 == NULL) { |
9840 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9841 | SWIG_fail; | |
9842 | } | |
e811c8ce | 9843 | created1 = True; |
d14a1e28 RD |
9844 | } |
9845 | } | |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | result = (bool)wxImage::CanRead(*arg1); | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) SWIG_fail; | |
9852 | } | |
4f89f6a3 RD |
9853 | { |
9854 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9855 | } | |
d14a1e28 RD |
9856 | { |
9857 | if (created1) | |
9858 | delete arg1; | |
9859 | } | |
9860 | return resultobj; | |
9861 | fail: | |
9862 | { | |
9863 | if (created1) | |
9864 | delete arg1; | |
9865 | } | |
9866 | return NULL; | |
9867 | } | |
9868 | ||
9869 | ||
9870 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9871 | PyObject *resultobj; | |
9872 | wxImage *arg1 = (wxImage *) 0 ; | |
9873 | wxInputStream *arg2 = 0 ; | |
9874 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9875 | int arg4 = (int) -1 ; | |
9876 | bool result; | |
9877 | wxPyInputStream *temp2 ; | |
9878 | bool created2 ; | |
9879 | PyObject * obj0 = 0 ; | |
9880 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9881 | PyObject * obj2 = 0 ; |
9882 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9883 | char *kwnames[] = { |
9884 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9885 | }; | |
9886 | ||
994141e6 | 9887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9890 | { |
9891 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9892 | arg2 = temp2->m_wxis; | |
e811c8ce | 9893 | created2 = False; |
d14a1e28 RD |
9894 | } else { |
9895 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9896 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9897 | if (arg2 == NULL) { |
9898 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9899 | SWIG_fail; | |
9900 | } | |
e811c8ce | 9901 | created2 = True; |
d14a1e28 RD |
9902 | } |
9903 | } | |
994141e6 | 9904 | if (obj2) { |
15afbcd0 RD |
9905 | arg3 = (long) SWIG_AsLong(obj2); |
9906 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9907 | } |
9908 | if (obj3) { | |
15afbcd0 RD |
9909 | arg4 = (int) SWIG_AsInt(obj3); |
9910 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9911 | } |
d14a1e28 RD |
9912 | { |
9913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9914 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9915 | ||
9916 | wxPyEndAllowThreads(__tstate); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
4f89f6a3 RD |
9919 | { |
9920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9921 | } | |
d14a1e28 RD |
9922 | { |
9923 | if (created2) | |
9924 | delete arg2; | |
9925 | } | |
9926 | return resultobj; | |
9927 | fail: | |
9928 | { | |
9929 | if (created2) | |
9930 | delete arg2; | |
9931 | } | |
9932 | return NULL; | |
9933 | } | |
9934 | ||
9935 | ||
9936 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9937 | PyObject *resultobj; | |
9938 | wxImage *arg1 = (wxImage *) 0 ; | |
9939 | wxInputStream *arg2 = 0 ; | |
9940 | wxString *arg3 = 0 ; | |
9941 | int arg4 = (int) -1 ; | |
9942 | bool result; | |
9943 | wxPyInputStream *temp2 ; | |
9944 | bool created2 ; | |
e811c8ce | 9945 | bool temp3 = False ; |
d14a1e28 RD |
9946 | PyObject * obj0 = 0 ; |
9947 | PyObject * obj1 = 0 ; | |
9948 | PyObject * obj2 = 0 ; | |
994141e6 | 9949 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9950 | char *kwnames[] = { |
9951 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9952 | }; | |
9953 | ||
994141e6 | 9954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9957 | { |
9958 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9959 | arg2 = temp2->m_wxis; | |
e811c8ce | 9960 | created2 = False; |
d14a1e28 RD |
9961 | } else { |
9962 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9963 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9964 | if (arg2 == NULL) { |
9965 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9966 | SWIG_fail; | |
9967 | } | |
e811c8ce | 9968 | created2 = True; |
d14a1e28 RD |
9969 | } |
9970 | } | |
9971 | { | |
9972 | arg3 = wxString_in_helper(obj2); | |
9973 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9974 | temp3 = True; |
d14a1e28 | 9975 | } |
994141e6 | 9976 | if (obj3) { |
15afbcd0 RD |
9977 | arg4 = (int) SWIG_AsInt(obj3); |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9979 | } |
d14a1e28 RD |
9980 | { |
9981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9982 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9983 | ||
9984 | wxPyEndAllowThreads(__tstate); | |
9985 | if (PyErr_Occurred()) SWIG_fail; | |
9986 | } | |
4f89f6a3 RD |
9987 | { |
9988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9989 | } | |
d14a1e28 RD |
9990 | { |
9991 | if (created2) | |
9992 | delete arg2; | |
9993 | } | |
9994 | { | |
9995 | if (temp3) | |
9996 | delete arg3; | |
9997 | } | |
9998 | return resultobj; | |
9999 | fail: | |
10000 | { | |
10001 | if (created2) | |
10002 | delete arg2; | |
10003 | } | |
10004 | { | |
10005 | if (temp3) | |
10006 | delete arg3; | |
10007 | } | |
10008 | return NULL; | |
10009 | } | |
10010 | ||
10011 | ||
10012 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10013 | PyObject *resultobj; | |
10014 | wxImage *arg1 = (wxImage *) 0 ; | |
10015 | bool result; | |
10016 | PyObject * obj0 = 0 ; | |
10017 | char *kwnames[] = { | |
10018 | (char *) "self", NULL | |
10019 | }; | |
10020 | ||
10021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10024 | { |
10025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10026 | result = (bool)(arg1)->Ok(); | |
10027 | ||
10028 | wxPyEndAllowThreads(__tstate); | |
10029 | if (PyErr_Occurred()) SWIG_fail; | |
10030 | } | |
4f89f6a3 RD |
10031 | { |
10032 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10033 | } | |
d14a1e28 RD |
10034 | return resultobj; |
10035 | fail: | |
10036 | return NULL; | |
10037 | } | |
10038 | ||
10039 | ||
10040 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10041 | PyObject *resultobj; | |
10042 | wxImage *arg1 = (wxImage *) 0 ; | |
10043 | int result; | |
10044 | PyObject * obj0 = 0 ; | |
10045 | char *kwnames[] = { | |
10046 | (char *) "self", NULL | |
10047 | }; | |
10048 | ||
10049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10052 | { |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | result = (int)(arg1)->GetWidth(); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
15afbcd0 | 10059 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10060 | return resultobj; |
10061 | fail: | |
10062 | return NULL; | |
10063 | } | |
10064 | ||
10065 | ||
10066 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10067 | PyObject *resultobj; | |
10068 | wxImage *arg1 = (wxImage *) 0 ; | |
10069 | int result; | |
10070 | PyObject * obj0 = 0 ; | |
10071 | char *kwnames[] = { | |
10072 | (char *) "self", NULL | |
10073 | }; | |
10074 | ||
10075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10078 | { |
10079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10080 | result = (int)(arg1)->GetHeight(); | |
10081 | ||
10082 | wxPyEndAllowThreads(__tstate); | |
10083 | if (PyErr_Occurred()) SWIG_fail; | |
10084 | } | |
15afbcd0 | 10085 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10086 | return resultobj; |
10087 | fail: | |
10088 | return NULL; | |
10089 | } | |
10090 | ||
10091 | ||
b2df227b RD |
10092 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
10093 | PyObject *resultobj; | |
10094 | wxImage *arg1 = (wxImage *) 0 ; | |
10095 | wxSize result; | |
10096 | PyObject * obj0 = 0 ; | |
10097 | char *kwnames[] = { | |
10098 | (char *) "self", NULL | |
10099 | }; | |
10100 | ||
10101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10104 | { | |
10105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10106 | result = wxImage_GetSize(arg1); | |
10107 | ||
10108 | wxPyEndAllowThreads(__tstate); | |
10109 | if (PyErr_Occurred()) SWIG_fail; | |
10110 | } | |
10111 | { | |
10112 | wxSize * resultptr; | |
10113 | resultptr = new wxSize((wxSize &) result); | |
10114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10115 | } | |
10116 | return resultobj; | |
10117 | fail: | |
10118 | return NULL; | |
10119 | } | |
10120 | ||
10121 | ||
d14a1e28 RD |
10122 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
10123 | PyObject *resultobj; | |
10124 | wxImage *arg1 = (wxImage *) 0 ; | |
10125 | wxRect *arg2 = 0 ; | |
10126 | SwigValueWrapper< wxImage > result; | |
10127 | wxRect temp2 ; | |
10128 | PyObject * obj0 = 0 ; | |
10129 | PyObject * obj1 = 0 ; | |
10130 | char *kwnames[] = { | |
10131 | (char *) "self",(char *) "rect", NULL | |
10132 | }; | |
10133 | ||
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10137 | { |
10138 | arg2 = &temp2; | |
10139 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10140 | } | |
10141 | { | |
10142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10143 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10144 | ||
10145 | wxPyEndAllowThreads(__tstate); | |
10146 | if (PyErr_Occurred()) SWIG_fail; | |
10147 | } | |
10148 | { | |
10149 | wxImage * resultptr; | |
10150 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10151 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10152 | } |
10153 | return resultobj; | |
10154 | fail: | |
10155 | return NULL; | |
10156 | } | |
10157 | ||
10158 | ||
10159 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10160 | PyObject *resultobj; | |
10161 | wxImage *arg1 = (wxImage *) 0 ; | |
10162 | SwigValueWrapper< wxImage > result; | |
10163 | PyObject * obj0 = 0 ; | |
10164 | char *kwnames[] = { | |
10165 | (char *) "self", NULL | |
10166 | }; | |
10167 | ||
10168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10171 | { |
10172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10173 | result = (arg1)->Copy(); | |
10174 | ||
10175 | wxPyEndAllowThreads(__tstate); | |
10176 | if (PyErr_Occurred()) SWIG_fail; | |
10177 | } | |
10178 | { | |
10179 | wxImage * resultptr; | |
10180 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10182 | } |
10183 | return resultobj; | |
10184 | fail: | |
10185 | return NULL; | |
10186 | } | |
10187 | ||
10188 | ||
10189 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10190 | PyObject *resultobj; | |
10191 | wxImage *arg1 = (wxImage *) 0 ; | |
10192 | wxImage *arg2 = 0 ; | |
10193 | int arg3 ; | |
10194 | int arg4 ; | |
10195 | PyObject * obj0 = 0 ; | |
10196 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10197 | PyObject * obj2 = 0 ; |
10198 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10199 | char *kwnames[] = { |
10200 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10201 | }; | |
10202 | ||
994141e6 | 10203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10207 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10208 | SWIG_fail; | |
d14a1e28 | 10209 | if (arg2 == NULL) { |
15afbcd0 RD |
10210 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10211 | SWIG_fail; | |
994141e6 | 10212 | } |
15afbcd0 RD |
10213 | arg3 = (int) SWIG_AsInt(obj2); |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | arg4 = (int) SWIG_AsInt(obj3); | |
10216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10217 | { |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
10224 | Py_INCREF(Py_None); resultobj = Py_None; | |
10225 | return resultobj; | |
10226 | fail: | |
10227 | return NULL; | |
10228 | } | |
10229 | ||
10230 | ||
10231 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10232 | PyObject *resultobj; | |
10233 | wxImage *arg1 = (wxImage *) 0 ; | |
10234 | PyObject *result; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | char *kwnames[] = { | |
10237 | (char *) "self", NULL | |
10238 | }; | |
10239 | ||
10240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10243 | { |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10245 | result = (PyObject *)wxImage_GetData(arg1); | |
10246 | ||
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) SWIG_fail; | |
10249 | } | |
10250 | resultobj = result; | |
10251 | return resultobj; | |
10252 | fail: | |
10253 | return NULL; | |
10254 | } | |
10255 | ||
10256 | ||
10257 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject *resultobj; | |
10259 | wxImage *arg1 = (wxImage *) 0 ; | |
10260 | PyObject *arg2 = (PyObject *) 0 ; | |
10261 | PyObject * obj0 = 0 ; | |
10262 | PyObject * obj1 = 0 ; | |
10263 | char *kwnames[] = { | |
10264 | (char *) "self",(char *) "data", NULL | |
10265 | }; | |
10266 | ||
10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10270 | arg2 = obj1; |
10271 | { | |
10272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10273 | wxImage_SetData(arg1,arg2); | |
10274 | ||
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | Py_INCREF(Py_None); resultobj = Py_None; | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj; | |
10287 | wxImage *arg1 = (wxImage *) 0 ; | |
10288 | PyObject *result; | |
10289 | PyObject * obj0 = 0 ; | |
10290 | char *kwnames[] = { | |
10291 | (char *) "self", NULL | |
10292 | }; | |
10293 | ||
10294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10297 | { |
10298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10299 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10300 | ||
10301 | wxPyEndAllowThreads(__tstate); | |
10302 | if (PyErr_Occurred()) SWIG_fail; | |
10303 | } | |
10304 | resultobj = result; | |
10305 | return resultobj; | |
10306 | fail: | |
10307 | return NULL; | |
10308 | } | |
10309 | ||
10310 | ||
10311 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10312 | PyObject *resultobj; | |
10313 | wxImage *arg1 = (wxImage *) 0 ; | |
10314 | PyObject *arg2 = (PyObject *) 0 ; | |
10315 | PyObject * obj0 = 0 ; | |
10316 | PyObject * obj1 = 0 ; | |
10317 | char *kwnames[] = { | |
10318 | (char *) "self",(char *) "data", NULL | |
10319 | }; | |
10320 | ||
10321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10324 | arg2 = obj1; |
10325 | { | |
10326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10327 | wxImage_SetDataBuffer(arg1,arg2); | |
10328 | ||
10329 | wxPyEndAllowThreads(__tstate); | |
10330 | if (PyErr_Occurred()) SWIG_fail; | |
10331 | } | |
10332 | Py_INCREF(Py_None); resultobj = Py_None; | |
10333 | return resultobj; | |
10334 | fail: | |
10335 | return NULL; | |
10336 | } | |
10337 | ||
10338 | ||
10339 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10340 | PyObject *resultobj; | |
10341 | wxImage *arg1 = (wxImage *) 0 ; | |
10342 | PyObject *result; | |
10343 | PyObject * obj0 = 0 ; | |
10344 | char *kwnames[] = { | |
10345 | (char *) "self", NULL | |
10346 | }; | |
10347 | ||
10348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10351 | { |
10352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10353 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10354 | ||
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | resultobj = result; | |
10359 | return resultobj; | |
10360 | fail: | |
10361 | return NULL; | |
10362 | } | |
10363 | ||
10364 | ||
10365 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10366 | PyObject *resultobj; | |
10367 | wxImage *arg1 = (wxImage *) 0 ; | |
10368 | PyObject *arg2 = (PyObject *) 0 ; | |
10369 | PyObject * obj0 = 0 ; | |
10370 | PyObject * obj1 = 0 ; | |
10371 | char *kwnames[] = { | |
10372 | (char *) "self",(char *) "data", NULL | |
10373 | }; | |
10374 | ||
10375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10378 | arg2 = obj1; |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10381 | wxImage_SetAlphaData(arg1,arg2); | |
10382 | ||
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | Py_INCREF(Py_None); resultobj = Py_None; | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxImage *arg1 = (wxImage *) 0 ; | |
10396 | PyObject *result; | |
10397 | PyObject * obj0 = 0 ; | |
10398 | char *kwnames[] = { | |
10399 | (char *) "self", NULL | |
10400 | }; | |
10401 | ||
10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10405 | { |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | resultobj = result; | |
10413 | return resultobj; | |
10414 | fail: | |
10415 | return NULL; | |
10416 | } | |
10417 | ||
10418 | ||
10419 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10420 | PyObject *resultobj; | |
10421 | wxImage *arg1 = (wxImage *) 0 ; | |
10422 | PyObject *arg2 = (PyObject *) 0 ; | |
10423 | PyObject * obj0 = 0 ; | |
10424 | PyObject * obj1 = 0 ; | |
10425 | char *kwnames[] = { | |
10426 | (char *) "self",(char *) "data", NULL | |
10427 | }; | |
10428 | ||
10429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10432 | arg2 = obj1; |
10433 | { | |
10434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10435 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10436 | ||
10437 | wxPyEndAllowThreads(__tstate); | |
10438 | if (PyErr_Occurred()) SWIG_fail; | |
10439 | } | |
10440 | Py_INCREF(Py_None); resultobj = Py_None; | |
10441 | return resultobj; | |
10442 | fail: | |
10443 | return NULL; | |
10444 | } | |
10445 | ||
10446 | ||
10447 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10448 | PyObject *resultobj; | |
10449 | wxImage *arg1 = (wxImage *) 0 ; | |
10450 | unsigned char arg2 ; | |
10451 | unsigned char arg3 ; | |
10452 | unsigned char arg4 ; | |
10453 | PyObject * obj0 = 0 ; | |
10454 | PyObject * obj1 = 0 ; | |
10455 | PyObject * obj2 = 0 ; | |
10456 | PyObject * obj3 = 0 ; | |
10457 | char *kwnames[] = { | |
10458 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10459 | }; | |
10460 | ||
10461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10464 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10465 | if (PyErr_Occurred()) SWIG_fail; | |
10466 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10467 | if (PyErr_Occurred()) SWIG_fail; | |
10468 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10470 | { |
10471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10472 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10473 | ||
10474 | wxPyEndAllowThreads(__tstate); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | } | |
10477 | Py_INCREF(Py_None); resultobj = Py_None; | |
10478 | return resultobj; | |
10479 | fail: | |
10480 | return NULL; | |
10481 | } | |
10482 | ||
10483 | ||
10484 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10485 | PyObject *resultobj; | |
10486 | wxImage *arg1 = (wxImage *) 0 ; | |
10487 | unsigned char result; | |
10488 | PyObject * obj0 = 0 ; | |
10489 | char *kwnames[] = { | |
10490 | (char *) "self", NULL | |
10491 | }; | |
10492 | ||
10493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10496 | { |
10497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10498 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10499 | ||
10500 | wxPyEndAllowThreads(__tstate); | |
10501 | if (PyErr_Occurred()) SWIG_fail; | |
10502 | } | |
15afbcd0 | 10503 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10504 | return resultobj; |
10505 | fail: | |
10506 | return NULL; | |
10507 | } | |
10508 | ||
10509 | ||
10510 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10511 | PyObject *resultobj; | |
10512 | wxImage *arg1 = (wxImage *) 0 ; | |
10513 | unsigned char result; | |
10514 | PyObject * obj0 = 0 ; | |
10515 | char *kwnames[] = { | |
10516 | (char *) "self", NULL | |
10517 | }; | |
10518 | ||
10519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10522 | { |
10523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10524 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10525 | ||
10526 | wxPyEndAllowThreads(__tstate); | |
10527 | if (PyErr_Occurred()) SWIG_fail; | |
10528 | } | |
15afbcd0 | 10529 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10530 | return resultobj; |
10531 | fail: | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj; | |
10538 | wxImage *arg1 = (wxImage *) 0 ; | |
10539 | unsigned char result; | |
10540 | PyObject * obj0 = 0 ; | |
10541 | char *kwnames[] = { | |
10542 | (char *) "self", NULL | |
10543 | }; | |
10544 | ||
10545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10548 | { |
10549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10550 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10551 | ||
10552 | wxPyEndAllowThreads(__tstate); | |
10553 | if (PyErr_Occurred()) SWIG_fail; | |
10554 | } | |
15afbcd0 | 10555 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10556 | return resultobj; |
10557 | fail: | |
10558 | return NULL; | |
10559 | } | |
10560 | ||
10561 | ||
10562 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10563 | PyObject *resultobj; | |
10564 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10565 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10566 | PyObject * obj0 = 0 ; |
10567 | PyObject * obj1 = 0 ; | |
10568 | char *kwnames[] = { | |
10569 | (char *) "self",(char *) "mask", NULL | |
10570 | }; | |
10571 | ||
10572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10575 | if (obj1) { |
15afbcd0 RD |
10576 | arg2 = (bool) SWIG_AsBool(obj1); |
10577 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10578 | } |
10579 | { | |
10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10581 | (arg1)->SetMask(arg2); | |
10582 | ||
10583 | wxPyEndAllowThreads(__tstate); | |
10584 | if (PyErr_Occurred()) SWIG_fail; | |
10585 | } | |
10586 | Py_INCREF(Py_None); resultobj = Py_None; | |
10587 | return resultobj; | |
10588 | fail: | |
10589 | return NULL; | |
10590 | } | |
10591 | ||
10592 | ||
10593 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10594 | PyObject *resultobj; | |
10595 | wxImage *arg1 = (wxImage *) 0 ; | |
10596 | bool result; | |
10597 | PyObject * obj0 = 0 ; | |
10598 | char *kwnames[] = { | |
10599 | (char *) "self", NULL | |
10600 | }; | |
10601 | ||
10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10605 | { |
10606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10607 | result = (bool)(arg1)->HasMask(); | |
10608 | ||
10609 | wxPyEndAllowThreads(__tstate); | |
10610 | if (PyErr_Occurred()) SWIG_fail; | |
10611 | } | |
4f89f6a3 RD |
10612 | { |
10613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10614 | } | |
d14a1e28 RD |
10615 | return resultobj; |
10616 | fail: | |
10617 | return NULL; | |
10618 | } | |
10619 | ||
10620 | ||
10621 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject *resultobj; | |
10623 | wxImage *arg1 = (wxImage *) 0 ; | |
10624 | double arg2 ; | |
10625 | wxPoint *arg3 = 0 ; | |
e811c8ce | 10626 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10627 | wxPoint *arg5 = (wxPoint *) NULL ; |
10628 | SwigValueWrapper< wxImage > result; | |
10629 | wxPoint temp3 ; | |
10630 | PyObject * obj0 = 0 ; | |
994141e6 | 10631 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10632 | PyObject * obj2 = 0 ; |
10633 | PyObject * obj3 = 0 ; | |
10634 | PyObject * obj4 = 0 ; | |
10635 | char *kwnames[] = { | |
10636 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10637 | }; | |
10638 | ||
994141e6 | 10639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10642 | arg2 = (double) SWIG_AsDouble(obj1); | |
10643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10644 | { |
10645 | arg3 = &temp3; | |
10646 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10647 | } | |
10648 | if (obj3) { | |
15afbcd0 RD |
10649 | arg4 = (bool) SWIG_AsBool(obj3); |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10651 | } |
10652 | if (obj4) { | |
15afbcd0 RD |
10653 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10655 | } |
10656 | { | |
10657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10658 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10659 | ||
10660 | wxPyEndAllowThreads(__tstate); | |
10661 | if (PyErr_Occurred()) SWIG_fail; | |
10662 | } | |
10663 | { | |
10664 | wxImage * resultptr; | |
10665 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10666 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10667 | } |
10668 | return resultobj; | |
10669 | fail: | |
10670 | return NULL; | |
10671 | } | |
10672 | ||
10673 | ||
10674 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10675 | PyObject *resultobj; | |
10676 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10677 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10678 | SwigValueWrapper< wxImage > result; |
10679 | PyObject * obj0 = 0 ; | |
10680 | PyObject * obj1 = 0 ; | |
10681 | char *kwnames[] = { | |
10682 | (char *) "self",(char *) "clockwise", NULL | |
10683 | }; | |
10684 | ||
10685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10688 | if (obj1) { |
15afbcd0 RD |
10689 | arg2 = (bool) SWIG_AsBool(obj1); |
10690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10691 | } |
10692 | { | |
10693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10694 | result = (arg1)->Rotate90(arg2); | |
10695 | ||
10696 | wxPyEndAllowThreads(__tstate); | |
10697 | if (PyErr_Occurred()) SWIG_fail; | |
10698 | } | |
10699 | { | |
10700 | wxImage * resultptr; | |
10701 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10703 | } |
10704 | return resultobj; | |
10705 | fail: | |
10706 | return NULL; | |
10707 | } | |
10708 | ||
10709 | ||
10710 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10711 | PyObject *resultobj; | |
10712 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10713 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10714 | SwigValueWrapper< wxImage > result; |
10715 | PyObject * obj0 = 0 ; | |
10716 | PyObject * obj1 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self",(char *) "horizontally", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10724 | if (obj1) { |
15afbcd0 RD |
10725 | arg2 = (bool) SWIG_AsBool(obj1); |
10726 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10727 | } |
10728 | { | |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | result = (arg1)->Mirror(arg2); | |
10731 | ||
10732 | wxPyEndAllowThreads(__tstate); | |
10733 | if (PyErr_Occurred()) SWIG_fail; | |
10734 | } | |
10735 | { | |
10736 | wxImage * resultptr; | |
10737 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10738 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10739 | } |
10740 | return resultobj; | |
10741 | fail: | |
10742 | return NULL; | |
10743 | } | |
10744 | ||
10745 | ||
10746 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10747 | PyObject *resultobj; | |
10748 | wxImage *arg1 = (wxImage *) 0 ; | |
10749 | unsigned char arg2 ; | |
10750 | unsigned char arg3 ; | |
10751 | unsigned char arg4 ; | |
10752 | unsigned char arg5 ; | |
10753 | unsigned char arg6 ; | |
10754 | unsigned char arg7 ; | |
10755 | PyObject * obj0 = 0 ; | |
10756 | PyObject * obj1 = 0 ; | |
10757 | PyObject * obj2 = 0 ; | |
10758 | PyObject * obj3 = 0 ; | |
10759 | PyObject * obj4 = 0 ; | |
10760 | PyObject * obj5 = 0 ; | |
10761 | PyObject * obj6 = 0 ; | |
10762 | char *kwnames[] = { | |
10763 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10764 | }; | |
10765 | ||
10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15afbcd0 RD |
10767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10769 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10770 | if (PyErr_Occurred()) SWIG_fail; | |
10771 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10772 | if (PyErr_Occurred()) SWIG_fail; | |
10773 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10774 | if (PyErr_Occurred()) SWIG_fail; | |
10775 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10781 | { |
10782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10783 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10784 | ||
10785 | wxPyEndAllowThreads(__tstate); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | } | |
10788 | Py_INCREF(Py_None); resultobj = Py_None; | |
10789 | return resultobj; | |
10790 | fail: | |
10791 | return NULL; | |
10792 | } | |
10793 | ||
10794 | ||
10795 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10796 | PyObject *resultobj; | |
10797 | wxImage *arg1 = (wxImage *) 0 ; | |
10798 | unsigned char arg2 ; | |
10799 | unsigned char arg3 ; | |
10800 | unsigned char arg4 ; | |
10801 | SwigValueWrapper< wxImage > result; | |
10802 | PyObject * obj0 = 0 ; | |
10803 | PyObject * obj1 = 0 ; | |
10804 | PyObject * obj2 = 0 ; | |
10805 | PyObject * obj3 = 0 ; | |
10806 | char *kwnames[] = { | |
10807 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10808 | }; | |
10809 | ||
10810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10813 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10816 | if (PyErr_Occurred()) SWIG_fail; | |
10817 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10818 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10819 | { |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
10826 | { | |
10827 | wxImage * resultptr; | |
10828 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10830 | } |
10831 | return resultobj; | |
10832 | fail: | |
10833 | return NULL; | |
10834 | } | |
10835 | ||
10836 | ||
10837 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10838 | PyObject *resultobj; | |
10839 | wxImage *arg1 = (wxImage *) 0 ; | |
10840 | wxString *arg2 = 0 ; | |
10841 | wxString *arg3 = 0 ; | |
e811c8ce RD |
10842 | bool temp2 = False ; |
10843 | bool temp3 = False ; | |
d14a1e28 RD |
10844 | PyObject * obj0 = 0 ; |
10845 | PyObject * obj1 = 0 ; | |
10846 | PyObject * obj2 = 0 ; | |
10847 | char *kwnames[] = { | |
10848 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10849 | }; | |
10850 | ||
10851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10854 | { |
10855 | arg2 = wxString_in_helper(obj1); | |
10856 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10857 | temp2 = True; |
d14a1e28 RD |
10858 | } |
10859 | { | |
10860 | arg3 = wxString_in_helper(obj2); | |
10861 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10862 | temp3 = True; |
d14a1e28 RD |
10863 | } |
10864 | { | |
10865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10866 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10867 | ||
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | Py_INCREF(Py_None); resultobj = Py_None; | |
10872 | { | |
10873 | if (temp2) | |
10874 | delete arg2; | |
10875 | } | |
10876 | { | |
10877 | if (temp3) | |
10878 | delete arg3; | |
10879 | } | |
10880 | return resultobj; | |
10881 | fail: | |
10882 | { | |
10883 | if (temp2) | |
10884 | delete arg2; | |
10885 | } | |
10886 | { | |
10887 | if (temp3) | |
10888 | delete arg3; | |
10889 | } | |
10890 | return NULL; | |
10891 | } | |
10892 | ||
10893 | ||
10894 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10895 | PyObject *resultobj; | |
10896 | wxImage *arg1 = (wxImage *) 0 ; | |
10897 | wxString *arg2 = 0 ; | |
10898 | int arg3 ; | |
e811c8ce | 10899 | bool temp2 = False ; |
d14a1e28 RD |
10900 | PyObject * obj0 = 0 ; |
10901 | PyObject * obj1 = 0 ; | |
994141e6 | 10902 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10903 | char *kwnames[] = { |
10904 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10905 | }; | |
10906 | ||
994141e6 | 10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10910 | { |
10911 | arg2 = wxString_in_helper(obj1); | |
10912 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10913 | temp2 = True; |
d14a1e28 | 10914 | } |
15afbcd0 RD |
10915 | arg3 = (int) SWIG_AsInt(obj2); |
10916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10917 | { |
10918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10919 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10920 | ||
10921 | wxPyEndAllowThreads(__tstate); | |
10922 | if (PyErr_Occurred()) SWIG_fail; | |
10923 | } | |
10924 | Py_INCREF(Py_None); resultobj = Py_None; | |
10925 | { | |
10926 | if (temp2) | |
10927 | delete arg2; | |
10928 | } | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | { | |
10932 | if (temp2) | |
10933 | delete arg2; | |
10934 | } | |
10935 | return NULL; | |
10936 | } | |
10937 | ||
10938 | ||
10939 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10940 | PyObject *resultobj; | |
10941 | wxImage *arg1 = (wxImage *) 0 ; | |
10942 | wxString *arg2 = 0 ; | |
10943 | wxString result; | |
e811c8ce | 10944 | bool temp2 = False ; |
d14a1e28 RD |
10945 | PyObject * obj0 = 0 ; |
10946 | PyObject * obj1 = 0 ; | |
10947 | char *kwnames[] = { | |
10948 | (char *) "self",(char *) "name", NULL | |
10949 | }; | |
10950 | ||
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10954 | { |
10955 | arg2 = wxString_in_helper(obj1); | |
10956 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10957 | temp2 = True; |
d14a1e28 RD |
10958 | } |
10959 | { | |
10960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10961 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10962 | ||
10963 | wxPyEndAllowThreads(__tstate); | |
10964 | if (PyErr_Occurred()) SWIG_fail; | |
10965 | } | |
10966 | { | |
10967 | #if wxUSE_UNICODE | |
10968 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10969 | #else | |
10970 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10971 | #endif | |
10972 | } | |
10973 | { | |
10974 | if (temp2) | |
10975 | delete arg2; | |
10976 | } | |
10977 | return resultobj; | |
10978 | fail: | |
10979 | { | |
10980 | if (temp2) | |
10981 | delete arg2; | |
10982 | } | |
10983 | return NULL; | |
10984 | } | |
10985 | ||
10986 | ||
10987 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10988 | PyObject *resultobj; | |
10989 | wxImage *arg1 = (wxImage *) 0 ; | |
10990 | wxString *arg2 = 0 ; | |
10991 | int result; | |
e811c8ce | 10992 | bool temp2 = False ; |
d14a1e28 RD |
10993 | PyObject * obj0 = 0 ; |
10994 | PyObject * obj1 = 0 ; | |
10995 | char *kwnames[] = { | |
10996 | (char *) "self",(char *) "name", NULL | |
10997 | }; | |
10998 | ||
10999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11002 | { |
11003 | arg2 = wxString_in_helper(obj1); | |
11004 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11005 | temp2 = True; |
d14a1e28 RD |
11006 | } |
11007 | { | |
11008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11009 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11010 | ||
11011 | wxPyEndAllowThreads(__tstate); | |
11012 | if (PyErr_Occurred()) SWIG_fail; | |
11013 | } | |
15afbcd0 | 11014 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11015 | { |
11016 | if (temp2) | |
11017 | delete arg2; | |
11018 | } | |
11019 | return resultobj; | |
11020 | fail: | |
11021 | { | |
11022 | if (temp2) | |
11023 | delete arg2; | |
11024 | } | |
11025 | return NULL; | |
11026 | } | |
11027 | ||
11028 | ||
11029 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11030 | PyObject *resultobj; | |
11031 | wxImage *arg1 = (wxImage *) 0 ; | |
11032 | wxString *arg2 = 0 ; | |
11033 | bool result; | |
e811c8ce | 11034 | bool temp2 = False ; |
d14a1e28 RD |
11035 | PyObject * obj0 = 0 ; |
11036 | PyObject * obj1 = 0 ; | |
11037 | char *kwnames[] = { | |
11038 | (char *) "self",(char *) "name", NULL | |
11039 | }; | |
11040 | ||
11041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11044 | { |
11045 | arg2 = wxString_in_helper(obj1); | |
11046 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11047 | temp2 = True; |
d14a1e28 RD |
11048 | } |
11049 | { | |
11050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11051 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11052 | ||
11053 | wxPyEndAllowThreads(__tstate); | |
11054 | if (PyErr_Occurred()) SWIG_fail; | |
11055 | } | |
4f89f6a3 RD |
11056 | { |
11057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11058 | } | |
d14a1e28 RD |
11059 | { |
11060 | if (temp2) | |
11061 | delete arg2; | |
11062 | } | |
11063 | return resultobj; | |
11064 | fail: | |
11065 | { | |
11066 | if (temp2) | |
11067 | delete arg2; | |
11068 | } | |
11069 | return NULL; | |
11070 | } | |
11071 | ||
11072 | ||
11073 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11074 | PyObject *resultobj; | |
11075 | wxImage *arg1 = (wxImage *) 0 ; | |
11076 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11077 | unsigned long result; | |
11078 | PyObject * obj0 = 0 ; | |
11079 | PyObject * obj1 = 0 ; | |
11080 | char *kwnames[] = { | |
11081 | (char *) "self",(char *) "stopafter", NULL | |
11082 | }; | |
11083 | ||
11084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11087 | if (obj1) { |
15afbcd0 RD |
11088 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
11089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11090 | } |
11091 | { | |
11092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11093 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11094 | ||
11095 | wxPyEndAllowThreads(__tstate); | |
11096 | if (PyErr_Occurred()) SWIG_fail; | |
11097 | } | |
15afbcd0 | 11098 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11099 | return resultobj; |
11100 | fail: | |
11101 | return NULL; | |
11102 | } | |
11103 | ||
11104 | ||
11105 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11106 | PyObject *resultobj; | |
11107 | wxImage *arg1 = (wxImage *) 0 ; | |
11108 | wxImageHistogram *arg2 = 0 ; | |
11109 | unsigned long result; | |
11110 | PyObject * obj0 = 0 ; | |
11111 | PyObject * obj1 = 0 ; | |
11112 | char *kwnames[] = { | |
11113 | (char *) "self",(char *) "h", NULL | |
11114 | }; | |
11115 | ||
11116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11120 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11121 | SWIG_fail; | |
d14a1e28 | 11122 | if (arg2 == NULL) { |
15afbcd0 RD |
11123 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11124 | SWIG_fail; | |
d14a1e28 RD |
11125 | } |
11126 | { | |
11127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11128 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11129 | ||
11130 | wxPyEndAllowThreads(__tstate); | |
11131 | if (PyErr_Occurred()) SWIG_fail; | |
11132 | } | |
15afbcd0 | 11133 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11134 | return resultobj; |
11135 | fail: | |
11136 | return NULL; | |
11137 | } | |
11138 | ||
11139 | ||
11140 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11141 | PyObject *resultobj; | |
11142 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11143 | PyObject * obj0 = 0 ; | |
11144 | char *kwnames[] = { | |
11145 | (char *) "handler", NULL | |
11146 | }; | |
11147 | ||
11148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11151 | { |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11153 | wxImage::AddHandler(arg1); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
11156 | if (PyErr_Occurred()) SWIG_fail; | |
11157 | } | |
11158 | Py_INCREF(Py_None); resultobj = Py_None; | |
11159 | return resultobj; | |
11160 | fail: | |
11161 | return NULL; | |
11162 | } | |
11163 | ||
11164 | ||
11165 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11166 | PyObject *resultobj; | |
11167 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11168 | PyObject * obj0 = 0 ; | |
11169 | char *kwnames[] = { | |
11170 | (char *) "handler", NULL | |
11171 | }; | |
11172 | ||
11173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11176 | { |
11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11178 | wxImage::InsertHandler(arg1); | |
11179 | ||
11180 | wxPyEndAllowThreads(__tstate); | |
11181 | if (PyErr_Occurred()) SWIG_fail; | |
11182 | } | |
11183 | Py_INCREF(Py_None); resultobj = Py_None; | |
11184 | return resultobj; | |
11185 | fail: | |
11186 | return NULL; | |
11187 | } | |
11188 | ||
11189 | ||
11190 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11191 | PyObject *resultobj; | |
11192 | wxString *arg1 = 0 ; | |
11193 | bool result; | |
e811c8ce | 11194 | bool temp1 = False ; |
d14a1e28 RD |
11195 | PyObject * obj0 = 0 ; |
11196 | char *kwnames[] = { | |
11197 | (char *) "name", NULL | |
11198 | }; | |
11199 | ||
11200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11201 | { | |
11202 | arg1 = wxString_in_helper(obj0); | |
11203 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11204 | temp1 = True; |
d14a1e28 RD |
11205 | } |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11209 | ||
11210 | wxPyEndAllowThreads(__tstate); | |
11211 | if (PyErr_Occurred()) SWIG_fail; | |
11212 | } | |
4f89f6a3 RD |
11213 | { |
11214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11215 | } | |
d14a1e28 RD |
11216 | { |
11217 | if (temp1) | |
11218 | delete arg1; | |
11219 | } | |
11220 | return resultobj; | |
11221 | fail: | |
11222 | { | |
11223 | if (temp1) | |
11224 | delete arg1; | |
11225 | } | |
11226 | return NULL; | |
11227 | } | |
11228 | ||
11229 | ||
11230 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11231 | PyObject *resultobj; | |
11232 | wxString result; | |
11233 | char *kwnames[] = { | |
11234 | NULL | |
11235 | }; | |
11236 | ||
11237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11238 | { | |
11239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11240 | result = wxImage::GetImageExtWildcard(); | |
11241 | ||
11242 | wxPyEndAllowThreads(__tstate); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | { | |
11246 | #if wxUSE_UNICODE | |
11247 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11248 | #else | |
11249 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11250 | #endif | |
11251 | } | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | return NULL; | |
11255 | } | |
11256 | ||
11257 | ||
11258 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11259 | PyObject *resultobj; | |
11260 | wxImage *arg1 = (wxImage *) 0 ; | |
11261 | wxBitmap result; | |
11262 | PyObject * obj0 = 0 ; | |
11263 | char *kwnames[] = { | |
11264 | (char *) "self", NULL | |
11265 | }; | |
11266 | ||
11267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11270 | { |
e3b71cb8 | 11271 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11273 | result = wxImage_ConvertToBitmap(arg1); | |
11274 | ||
11275 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11276 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11277 | } |
11278 | { | |
11279 | wxBitmap * resultptr; | |
11280 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11281 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11282 | } |
11283 | return resultobj; | |
11284 | fail: | |
11285 | return NULL; | |
11286 | } | |
11287 | ||
11288 | ||
11289 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11290 | PyObject *resultobj; | |
11291 | wxImage *arg1 = (wxImage *) 0 ; | |
11292 | unsigned char arg2 ; | |
11293 | unsigned char arg3 ; | |
11294 | unsigned char arg4 ; | |
11295 | wxBitmap result; | |
11296 | PyObject * obj0 = 0 ; | |
11297 | PyObject * obj1 = 0 ; | |
11298 | PyObject * obj2 = 0 ; | |
11299 | PyObject * obj3 = 0 ; | |
11300 | char *kwnames[] = { | |
11301 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11302 | }; | |
11303 | ||
11304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11307 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11308 | if (PyErr_Occurred()) SWIG_fail; | |
11309 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11310 | if (PyErr_Occurred()) SWIG_fail; | |
11311 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11313 | { |
e3b71cb8 | 11314 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11316 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11317 | ||
11318 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11319 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
11320 | } |
11321 | { | |
11322 | wxBitmap * resultptr; | |
11323 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11325 | } |
11326 | return resultobj; | |
11327 | fail: | |
11328 | return NULL; | |
11329 | } | |
11330 | ||
11331 | ||
11332 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11333 | PyObject *obj; | |
11334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11335 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11336 | Py_INCREF(obj); | |
11337 | return Py_BuildValue((char *)""); | |
11338 | } | |
d14a1e28 RD |
11339 | static int _wrap_NullImage_set(PyObject *_val) { |
11340 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11341 | return 1; | |
11342 | } | |
11343 | ||
11344 | ||
11345 | static PyObject *_wrap_NullImage_get() { | |
11346 | PyObject *pyobj; | |
11347 | ||
15afbcd0 | 11348 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11349 | return pyobj; |
11350 | } | |
11351 | ||
11352 | ||
11353 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11354 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11355 | return 1; | |
11356 | } | |
11357 | ||
11358 | ||
11359 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11360 | PyObject *pyobj; | |
11361 | ||
11362 | { | |
11363 | #if wxUSE_UNICODE | |
11364 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11365 | #else | |
11366 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11367 | #endif | |
11368 | } | |
11369 | return pyobj; | |
11370 | } | |
11371 | ||
11372 | ||
11373 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11374 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11375 | return 1; | |
11376 | } | |
11377 | ||
11378 | ||
11379 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11380 | PyObject *pyobj; | |
11381 | ||
11382 | { | |
11383 | #if wxUSE_UNICODE | |
11384 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11385 | #else | |
11386 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11387 | #endif | |
11388 | } | |
11389 | return pyobj; | |
11390 | } | |
11391 | ||
11392 | ||
11393 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11394 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11395 | return 1; | |
11396 | } | |
11397 | ||
11398 | ||
11399 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11400 | PyObject *pyobj; | |
11401 | ||
11402 | { | |
11403 | #if wxUSE_UNICODE | |
11404 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11405 | #else | |
11406 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11407 | #endif | |
11408 | } | |
11409 | return pyobj; | |
11410 | } | |
11411 | ||
11412 | ||
11413 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11414 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11415 | return 1; | |
11416 | } | |
11417 | ||
11418 | ||
11419 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11420 | PyObject *pyobj; | |
11421 | ||
11422 | { | |
11423 | #if wxUSE_UNICODE | |
11424 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11425 | #else | |
11426 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11427 | #endif | |
11428 | } | |
11429 | return pyobj; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11434 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11435 | return 1; | |
11436 | } | |
11437 | ||
11438 | ||
11439 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11440 | PyObject *pyobj; | |
11441 | ||
11442 | { | |
11443 | #if wxUSE_UNICODE | |
11444 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11445 | #else | |
11446 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11447 | #endif | |
11448 | } | |
11449 | return pyobj; | |
11450 | } | |
11451 | ||
11452 | ||
11453 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11454 | PyObject *resultobj; | |
11455 | wxBMPHandler *result; | |
11456 | char *kwnames[] = { | |
11457 | NULL | |
11458 | }; | |
11459 | ||
11460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11461 | { | |
11462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11463 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11464 | ||
11465 | wxPyEndAllowThreads(__tstate); | |
11466 | if (PyErr_Occurred()) SWIG_fail; | |
11467 | } | |
15afbcd0 | 11468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11469 | return resultobj; |
11470 | fail: | |
11471 | return NULL; | |
11472 | } | |
11473 | ||
11474 | ||
11475 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11476 | PyObject *obj; | |
11477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11478 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11479 | Py_INCREF(obj); | |
11480 | return Py_BuildValue((char *)""); | |
11481 | } | |
11482 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11483 | PyObject *resultobj; | |
11484 | wxICOHandler *result; | |
11485 | char *kwnames[] = { | |
11486 | NULL | |
11487 | }; | |
11488 | ||
11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11490 | { | |
11491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11492 | result = (wxICOHandler *)new wxICOHandler(); | |
11493 | ||
11494 | wxPyEndAllowThreads(__tstate); | |
11495 | if (PyErr_Occurred()) SWIG_fail; | |
11496 | } | |
15afbcd0 | 11497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11498 | return resultobj; |
11499 | fail: | |
11500 | return NULL; | |
11501 | } | |
11502 | ||
11503 | ||
11504 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11505 | PyObject *obj; | |
11506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11507 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11508 | Py_INCREF(obj); | |
11509 | return Py_BuildValue((char *)""); | |
11510 | } | |
11511 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11512 | PyObject *resultobj; | |
11513 | wxCURHandler *result; | |
11514 | char *kwnames[] = { | |
11515 | NULL | |
11516 | }; | |
11517 | ||
11518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11519 | { | |
11520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11521 | result = (wxCURHandler *)new wxCURHandler(); | |
11522 | ||
11523 | wxPyEndAllowThreads(__tstate); | |
11524 | if (PyErr_Occurred()) SWIG_fail; | |
11525 | } | |
15afbcd0 | 11526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11527 | return resultobj; |
11528 | fail: | |
11529 | return NULL; | |
11530 | } | |
11531 | ||
11532 | ||
11533 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11534 | PyObject *obj; | |
11535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11536 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11537 | Py_INCREF(obj); | |
11538 | return Py_BuildValue((char *)""); | |
11539 | } | |
11540 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11541 | PyObject *resultobj; | |
11542 | wxANIHandler *result; | |
11543 | char *kwnames[] = { | |
11544 | NULL | |
11545 | }; | |
11546 | ||
11547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11548 | { | |
11549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11550 | result = (wxANIHandler *)new wxANIHandler(); | |
11551 | ||
11552 | wxPyEndAllowThreads(__tstate); | |
11553 | if (PyErr_Occurred()) SWIG_fail; | |
11554 | } | |
15afbcd0 | 11555 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11556 | return resultobj; |
11557 | fail: | |
11558 | return NULL; | |
11559 | } | |
11560 | ||
11561 | ||
11562 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11563 | PyObject *obj; | |
11564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11565 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11566 | Py_INCREF(obj); | |
11567 | return Py_BuildValue((char *)""); | |
11568 | } | |
11569 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11570 | PyObject *resultobj; | |
11571 | wxPNGHandler *result; | |
11572 | char *kwnames[] = { | |
11573 | NULL | |
11574 | }; | |
11575 | ||
11576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11577 | { | |
11578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11579 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11580 | ||
11581 | wxPyEndAllowThreads(__tstate); | |
11582 | if (PyErr_Occurred()) SWIG_fail; | |
11583 | } | |
15afbcd0 | 11584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11585 | return resultobj; |
11586 | fail: | |
11587 | return NULL; | |
11588 | } | |
11589 | ||
11590 | ||
11591 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11592 | PyObject *obj; | |
11593 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11594 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11595 | Py_INCREF(obj); | |
11596 | return Py_BuildValue((char *)""); | |
11597 | } | |
11598 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11599 | PyObject *resultobj; | |
11600 | wxGIFHandler *result; | |
11601 | char *kwnames[] = { | |
11602 | NULL | |
11603 | }; | |
11604 | ||
11605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11606 | { | |
11607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11608 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11609 | ||
11610 | wxPyEndAllowThreads(__tstate); | |
11611 | if (PyErr_Occurred()) SWIG_fail; | |
11612 | } | |
15afbcd0 | 11613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11614 | return resultobj; |
11615 | fail: | |
11616 | return NULL; | |
11617 | } | |
11618 | ||
11619 | ||
11620 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11621 | PyObject *obj; | |
11622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11623 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11624 | Py_INCREF(obj); | |
11625 | return Py_BuildValue((char *)""); | |
11626 | } | |
11627 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11628 | PyObject *resultobj; | |
11629 | wxPCXHandler *result; | |
11630 | char *kwnames[] = { | |
11631 | NULL | |
11632 | }; | |
11633 | ||
11634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11635 | { | |
11636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11637 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11638 | ||
11639 | wxPyEndAllowThreads(__tstate); | |
11640 | if (PyErr_Occurred()) SWIG_fail; | |
11641 | } | |
15afbcd0 | 11642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11643 | return resultobj; |
11644 | fail: | |
11645 | return NULL; | |
11646 | } | |
11647 | ||
11648 | ||
11649 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11650 | PyObject *obj; | |
11651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11652 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11653 | Py_INCREF(obj); | |
11654 | return Py_BuildValue((char *)""); | |
11655 | } | |
11656 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11657 | PyObject *resultobj; | |
11658 | wxJPEGHandler *result; | |
11659 | char *kwnames[] = { | |
11660 | NULL | |
11661 | }; | |
11662 | ||
11663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11664 | { | |
11665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11666 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11667 | ||
11668 | wxPyEndAllowThreads(__tstate); | |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
11670 | } | |
15afbcd0 | 11671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11672 | return resultobj; |
11673 | fail: | |
11674 | return NULL; | |
11675 | } | |
11676 | ||
11677 | ||
11678 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11679 | PyObject *obj; | |
11680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11681 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11682 | Py_INCREF(obj); | |
11683 | return Py_BuildValue((char *)""); | |
11684 | } | |
11685 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11686 | PyObject *resultobj; | |
11687 | wxPNMHandler *result; | |
11688 | char *kwnames[] = { | |
11689 | NULL | |
11690 | }; | |
11691 | ||
11692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11693 | { | |
11694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11695 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11696 | ||
11697 | wxPyEndAllowThreads(__tstate); | |
11698 | if (PyErr_Occurred()) SWIG_fail; | |
11699 | } | |
15afbcd0 | 11700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11701 | return resultobj; |
11702 | fail: | |
11703 | return NULL; | |
11704 | } | |
11705 | ||
11706 | ||
11707 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11708 | PyObject *obj; | |
11709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11710 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11711 | Py_INCREF(obj); | |
11712 | return Py_BuildValue((char *)""); | |
11713 | } | |
11714 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11715 | PyObject *resultobj; | |
11716 | wxXPMHandler *result; | |
11717 | char *kwnames[] = { | |
11718 | NULL | |
11719 | }; | |
11720 | ||
11721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
15afbcd0 | 11729 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11730 | return resultobj; |
11731 | fail: | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
11736 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11737 | PyObject *obj; | |
11738 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11739 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11740 | Py_INCREF(obj); | |
11741 | return Py_BuildValue((char *)""); | |
11742 | } | |
11743 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11744 | PyObject *resultobj; | |
11745 | wxTIFFHandler *result; | |
11746 | char *kwnames[] = { | |
11747 | NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11751 | { | |
11752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11753 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11754 | ||
11755 | wxPyEndAllowThreads(__tstate); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | } | |
15afbcd0 | 11758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11759 | return resultobj; |
11760 | fail: | |
11761 | return NULL; | |
11762 | } | |
11763 | ||
11764 | ||
11765 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11766 | PyObject *obj; | |
11767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11768 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11769 | Py_INCREF(obj); | |
11770 | return Py_BuildValue((char *)""); | |
11771 | } | |
11772 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11773 | PyObject *resultobj; | |
11774 | wxEvtHandler *result; | |
11775 | char *kwnames[] = { | |
11776 | NULL | |
11777 | }; | |
11778 | ||
11779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11783 | ||
11784 | wxPyEndAllowThreads(__tstate); | |
11785 | if (PyErr_Occurred()) SWIG_fail; | |
11786 | } | |
b0f7404b | 11787 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d14a1e28 RD |
11788 | return resultobj; |
11789 | fail: | |
11790 | return NULL; | |
11791 | } | |
11792 | ||
11793 | ||
11794 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11795 | PyObject *resultobj; | |
11796 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11797 | wxEvtHandler *result; | |
11798 | PyObject * obj0 = 0 ; | |
11799 | char *kwnames[] = { | |
11800 | (char *) "self", NULL | |
11801 | }; | |
11802 | ||
11803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11806 | { |
11807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11808 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11809 | ||
11810 | wxPyEndAllowThreads(__tstate); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | } | |
11813 | { | |
412d302d | 11814 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
11815 | } |
11816 | return resultobj; | |
11817 | fail: | |
11818 | return NULL; | |
11819 | } | |
11820 | ||
11821 | ||
11822 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11823 | PyObject *resultobj; | |
11824 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11825 | wxEvtHandler *result; | |
11826 | PyObject * obj0 = 0 ; | |
11827 | char *kwnames[] = { | |
11828 | (char *) "self", NULL | |
11829 | }; | |
11830 | ||
11831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11834 | { |
11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11836 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11837 | ||
11838 | wxPyEndAllowThreads(__tstate); | |
11839 | if (PyErr_Occurred()) SWIG_fail; | |
11840 | } | |
11841 | { | |
412d302d | 11842 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
11843 | } |
11844 | return resultobj; | |
11845 | fail: | |
11846 | return NULL; | |
11847 | } | |
11848 | ||
11849 | ||
11850 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11851 | PyObject *resultobj; | |
11852 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11853 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11854 | PyObject * obj0 = 0 ; | |
11855 | PyObject * obj1 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "self",(char *) "handler", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11863 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11865 | { |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | (arg1)->SetNextHandler(arg2); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
11872 | Py_INCREF(Py_None); resultobj = Py_None; | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
11876 | } | |
11877 | ||
11878 | ||
11879 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11880 | PyObject *resultobj; | |
11881 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11882 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11883 | PyObject * obj0 = 0 ; | |
11884 | PyObject * obj1 = 0 ; | |
11885 | char *kwnames[] = { | |
11886 | (char *) "self",(char *) "handler", NULL | |
11887 | }; | |
11888 | ||
11889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11894 | { |
11895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11896 | (arg1)->SetPreviousHandler(arg2); | |
11897 | ||
11898 | wxPyEndAllowThreads(__tstate); | |
11899 | if (PyErr_Occurred()) SWIG_fail; | |
11900 | } | |
11901 | Py_INCREF(Py_None); resultobj = Py_None; | |
11902 | return resultobj; | |
11903 | fail: | |
11904 | return NULL; | |
11905 | } | |
11906 | ||
11907 | ||
11908 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11909 | PyObject *resultobj; | |
11910 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11911 | bool result; | |
11912 | PyObject * obj0 = 0 ; | |
11913 | char *kwnames[] = { | |
11914 | (char *) "self", NULL | |
11915 | }; | |
11916 | ||
11917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11920 | { |
11921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11922 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11923 | ||
11924 | wxPyEndAllowThreads(__tstate); | |
11925 | if (PyErr_Occurred()) SWIG_fail; | |
11926 | } | |
4f89f6a3 RD |
11927 | { |
11928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11929 | } | |
d14a1e28 RD |
11930 | return resultobj; |
11931 | fail: | |
11932 | return NULL; | |
11933 | } | |
11934 | ||
11935 | ||
11936 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11937 | PyObject *resultobj; | |
11938 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11939 | bool arg2 ; | |
11940 | PyObject * obj0 = 0 ; | |
11941 | PyObject * obj1 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "self",(char *) "enabled", NULL | |
11944 | }; | |
11945 | ||
11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11949 | arg2 = (bool) SWIG_AsBool(obj1); | |
11950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11951 | { |
11952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11953 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11954 | ||
11955 | wxPyEndAllowThreads(__tstate); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
11957 | } | |
11958 | Py_INCREF(Py_None); resultobj = Py_None; | |
11959 | return resultobj; | |
11960 | fail: | |
11961 | return NULL; | |
11962 | } | |
11963 | ||
11964 | ||
11965 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11966 | PyObject *resultobj; | |
11967 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11968 | wxEvent *arg2 = 0 ; | |
11969 | bool result; | |
11970 | PyObject * obj0 = 0 ; | |
11971 | PyObject * obj1 = 0 ; | |
11972 | char *kwnames[] = { | |
11973 | (char *) "self",(char *) "event", NULL | |
11974 | }; | |
11975 | ||
11976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11980 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11981 | SWIG_fail; | |
d14a1e28 | 11982 | if (arg2 == NULL) { |
15afbcd0 RD |
11983 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11984 | SWIG_fail; | |
d14a1e28 RD |
11985 | } |
11986 | { | |
11987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11988 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11989 | ||
11990 | wxPyEndAllowThreads(__tstate); | |
11991 | if (PyErr_Occurred()) SWIG_fail; | |
11992 | } | |
4f89f6a3 RD |
11993 | { |
11994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11995 | } | |
d14a1e28 RD |
11996 | return resultobj; |
11997 | fail: | |
11998 | return NULL; | |
11999 | } | |
12000 | ||
12001 | ||
12002 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12003 | PyObject *resultobj; | |
12004 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12005 | wxEvent *arg2 = 0 ; | |
12006 | PyObject * obj0 = 0 ; | |
12007 | PyObject * obj1 = 0 ; | |
12008 | char *kwnames[] = { | |
12009 | (char *) "self",(char *) "event", NULL | |
12010 | }; | |
12011 | ||
12012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12017 | SWIG_fail; | |
d14a1e28 | 12018 | if (arg2 == NULL) { |
15afbcd0 RD |
12019 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12020 | SWIG_fail; | |
d14a1e28 RD |
12021 | } |
12022 | { | |
12023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12024 | (arg1)->AddPendingEvent(*arg2); | |
12025 | ||
12026 | wxPyEndAllowThreads(__tstate); | |
12027 | if (PyErr_Occurred()) SWIG_fail; | |
12028 | } | |
12029 | Py_INCREF(Py_None); resultobj = Py_None; | |
12030 | return resultobj; | |
12031 | fail: | |
12032 | return NULL; | |
12033 | } | |
12034 | ||
12035 | ||
12036 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12037 | PyObject *resultobj; | |
12038 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12039 | PyObject * obj0 = 0 ; | |
12040 | char *kwnames[] = { | |
12041 | (char *) "self", NULL | |
12042 | }; | |
12043 | ||
12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12047 | { |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | (arg1)->ProcessPendingEvents(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | Py_INCREF(Py_None); resultobj = Py_None; | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
12061 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12062 | PyObject *resultobj; | |
12063 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12064 | int arg2 ; | |
12065 | int arg3 ; | |
12066 | int arg4 ; | |
12067 | PyObject *arg5 = (PyObject *) 0 ; | |
12068 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12069 | PyObject * obj1 = 0 ; |
12070 | PyObject * obj2 = 0 ; | |
12071 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12072 | PyObject * obj4 = 0 ; |
12073 | char *kwnames[] = { | |
12074 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12075 | }; | |
12076 | ||
994141e6 | 12077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12080 | arg2 = (int) SWIG_AsInt(obj1); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | arg3 = (int) SWIG_AsInt(obj2); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | arg4 = (int) SWIG_AsInt(obj3); | |
12085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12086 | arg5 = obj4; |
12087 | { | |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12090 | ||
12091 | wxPyEndAllowThreads(__tstate); | |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
12093 | } | |
12094 | Py_INCREF(Py_None); resultobj = Py_None; | |
12095 | return resultobj; | |
12096 | fail: | |
12097 | return NULL; | |
12098 | } | |
12099 | ||
12100 | ||
12101 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12102 | PyObject *resultobj; | |
12103 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12104 | int arg2 ; | |
12105 | int arg3 = (int) -1 ; | |
12106 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12107 | bool result; | |
12108 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12109 | PyObject * obj1 = 0 ; |
12110 | PyObject * obj2 = 0 ; | |
12111 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12112 | char *kwnames[] = { |
12113 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12114 | }; | |
12115 | ||
994141e6 | 12116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12119 | arg2 = (int) SWIG_AsInt(obj1); | |
12120 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12121 | if (obj2) { |
15afbcd0 RD |
12122 | arg3 = (int) SWIG_AsInt(obj2); |
12123 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12124 | } |
12125 | if (obj3) { | |
15afbcd0 RD |
12126 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
12127 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12128 | } |
d14a1e28 RD |
12129 | { |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12132 | ||
12133 | wxPyEndAllowThreads(__tstate); | |
12134 | if (PyErr_Occurred()) SWIG_fail; | |
12135 | } | |
4f89f6a3 RD |
12136 | { |
12137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12138 | } | |
d14a1e28 RD |
12139 | return resultobj; |
12140 | fail: | |
12141 | return NULL; | |
12142 | } | |
12143 | ||
12144 | ||
12145 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12146 | PyObject *resultobj; | |
12147 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12148 | PyObject *arg2 = (PyObject *) 0 ; | |
12149 | PyObject * obj0 = 0 ; | |
12150 | PyObject * obj1 = 0 ; | |
12151 | char *kwnames[] = { | |
12152 | (char *) "self",(char *) "_self", NULL | |
12153 | }; | |
12154 | ||
12155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12158 | arg2 = obj1; |
12159 | { | |
12160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12161 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12162 | ||
12163 | wxPyEndAllowThreads(__tstate); | |
12164 | if (PyErr_Occurred()) SWIG_fail; | |
12165 | } | |
12166 | Py_INCREF(Py_None); resultobj = Py_None; | |
12167 | return resultobj; | |
12168 | fail: | |
12169 | return NULL; | |
12170 | } | |
12171 | ||
12172 | ||
12173 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12174 | PyObject *obj; | |
12175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12176 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12177 | Py_INCREF(obj); | |
12178 | return Py_BuildValue((char *)""); | |
12179 | } | |
12180 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12181 | PyObject *resultobj; | |
12182 | wxEventType result; | |
12183 | char *kwnames[] = { | |
12184 | NULL | |
12185 | }; | |
12186 | ||
12187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12188 | { | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | result = (wxEventType)wxNewEventType(); | |
12191 | ||
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
15afbcd0 | 12195 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12196 | return resultobj; |
12197 | fail: | |
12198 | return NULL; | |
12199 | } | |
12200 | ||
12201 | ||
12202 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12203 | PyObject *resultobj; | |
12204 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | char *kwnames[] = { | |
12207 | (char *) "self", NULL | |
12208 | }; | |
12209 | ||
12210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12213 | { |
12214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12215 | delete arg1; | |
12216 | ||
12217 | wxPyEndAllowThreads(__tstate); | |
12218 | if (PyErr_Occurred()) SWIG_fail; | |
12219 | } | |
12220 | Py_INCREF(Py_None); resultobj = Py_None; | |
12221 | return resultobj; | |
12222 | fail: | |
12223 | return NULL; | |
12224 | } | |
12225 | ||
12226 | ||
12227 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12228 | PyObject *resultobj; | |
12229 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12230 | wxEventType arg2 ; | |
12231 | PyObject * obj0 = 0 ; | |
994141e6 | 12232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12233 | char *kwnames[] = { |
12234 | (char *) "self",(char *) "typ", NULL | |
12235 | }; | |
12236 | ||
994141e6 | 12237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12240 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12242 | { |
12243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12244 | (arg1)->SetEventType(arg2); | |
12245 | ||
12246 | wxPyEndAllowThreads(__tstate); | |
12247 | if (PyErr_Occurred()) SWIG_fail; | |
12248 | } | |
12249 | Py_INCREF(Py_None); resultobj = Py_None; | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | return NULL; | |
12253 | } | |
12254 | ||
12255 | ||
12256 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12257 | PyObject *resultobj; | |
12258 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12259 | wxEventType result; | |
12260 | PyObject * obj0 = 0 ; | |
12261 | char *kwnames[] = { | |
12262 | (char *) "self", NULL | |
12263 | }; | |
12264 | ||
12265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12268 | { |
12269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12270 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12271 | ||
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
15afbcd0 | 12275 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12276 | return resultobj; |
12277 | fail: | |
12278 | return NULL; | |
12279 | } | |
12280 | ||
12281 | ||
12282 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12283 | PyObject *resultobj; | |
12284 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12285 | wxObject *result; | |
12286 | PyObject * obj0 = 0 ; | |
12287 | char *kwnames[] = { | |
12288 | (char *) "self", NULL | |
12289 | }; | |
12290 | ||
12291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12294 | { |
12295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12296 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12297 | ||
12298 | wxPyEndAllowThreads(__tstate); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | } | |
12301 | { | |
412d302d | 12302 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
12303 | } |
12304 | return resultobj; | |
12305 | fail: | |
12306 | return NULL; | |
12307 | } | |
12308 | ||
12309 | ||
12310 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12311 | PyObject *resultobj; | |
12312 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12313 | wxObject *arg2 = (wxObject *) 0 ; | |
12314 | PyObject * obj0 = 0 ; | |
12315 | PyObject * obj1 = 0 ; | |
12316 | char *kwnames[] = { | |
12317 | (char *) "self",(char *) "obj", NULL | |
12318 | }; | |
12319 | ||
12320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12325 | { |
12326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12327 | (arg1)->SetEventObject(arg2); | |
12328 | ||
12329 | wxPyEndAllowThreads(__tstate); | |
12330 | if (PyErr_Occurred()) SWIG_fail; | |
12331 | } | |
12332 | Py_INCREF(Py_None); resultobj = Py_None; | |
12333 | return resultobj; | |
12334 | fail: | |
12335 | return NULL; | |
12336 | } | |
12337 | ||
12338 | ||
12339 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12340 | PyObject *resultobj; | |
12341 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12342 | long result; | |
12343 | PyObject * obj0 = 0 ; | |
12344 | char *kwnames[] = { | |
12345 | (char *) "self", NULL | |
12346 | }; | |
12347 | ||
12348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12351 | { |
12352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12353 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12354 | ||
12355 | wxPyEndAllowThreads(__tstate); | |
12356 | if (PyErr_Occurred()) SWIG_fail; | |
12357 | } | |
15afbcd0 | 12358 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12359 | return resultobj; |
12360 | fail: | |
12361 | return NULL; | |
12362 | } | |
12363 | ||
12364 | ||
12365 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12366 | PyObject *resultobj; | |
12367 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12368 | long arg2 = (long) 0 ; | |
12369 | PyObject * obj0 = 0 ; | |
994141e6 | 12370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12371 | char *kwnames[] = { |
12372 | (char *) "self",(char *) "ts", NULL | |
12373 | }; | |
12374 | ||
994141e6 | 12375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 12378 | if (obj1) { |
15afbcd0 RD |
12379 | arg2 = (long) SWIG_AsLong(obj1); |
12380 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12381 | } |
d14a1e28 RD |
12382 | { |
12383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12384 | (arg1)->SetTimestamp(arg2); | |
12385 | ||
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
12389 | Py_INCREF(Py_None); resultobj = Py_None; | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
12396 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12397 | PyObject *resultobj; | |
12398 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12399 | int result; | |
12400 | PyObject * obj0 = 0 ; | |
12401 | char *kwnames[] = { | |
12402 | (char *) "self", NULL | |
12403 | }; | |
12404 | ||
12405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12408 | { |
12409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12410 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12411 | ||
12412 | wxPyEndAllowThreads(__tstate); | |
12413 | if (PyErr_Occurred()) SWIG_fail; | |
12414 | } | |
15afbcd0 | 12415 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12416 | return resultobj; |
12417 | fail: | |
12418 | return NULL; | |
12419 | } | |
12420 | ||
12421 | ||
12422 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12423 | PyObject *resultobj; | |
12424 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12425 | int arg2 ; | |
12426 | PyObject * obj0 = 0 ; | |
994141e6 | 12427 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12428 | char *kwnames[] = { |
12429 | (char *) "self",(char *) "Id", NULL | |
12430 | }; | |
12431 | ||
994141e6 | 12432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12435 | arg2 = (int) SWIG_AsInt(obj1); | |
12436 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12437 | { |
12438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12439 | (arg1)->SetId(arg2); | |
12440 | ||
12441 | wxPyEndAllowThreads(__tstate); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
12444 | Py_INCREF(Py_None); resultobj = Py_None; | |
12445 | return resultobj; | |
12446 | fail: | |
12447 | return NULL; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12452 | PyObject *resultobj; | |
12453 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12454 | bool result; | |
12455 | PyObject * obj0 = 0 ; | |
12456 | char *kwnames[] = { | |
12457 | (char *) "self", NULL | |
12458 | }; | |
12459 | ||
12460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12463 | { |
12464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12465 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12466 | ||
12467 | wxPyEndAllowThreads(__tstate); | |
12468 | if (PyErr_Occurred()) SWIG_fail; | |
12469 | } | |
4f89f6a3 RD |
12470 | { |
12471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12472 | } | |
d14a1e28 RD |
12473 | return resultobj; |
12474 | fail: | |
12475 | return NULL; | |
12476 | } | |
12477 | ||
12478 | ||
12479 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12480 | PyObject *resultobj; | |
12481 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 12482 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12483 | PyObject * obj0 = 0 ; |
12484 | PyObject * obj1 = 0 ; | |
12485 | char *kwnames[] = { | |
12486 | (char *) "self",(char *) "skip", NULL | |
12487 | }; | |
12488 | ||
12489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12492 | if (obj1) { |
15afbcd0 RD |
12493 | arg2 = (bool) SWIG_AsBool(obj1); |
12494 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12495 | } |
12496 | { | |
12497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12498 | (arg1)->Skip(arg2); | |
12499 | ||
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | Py_INCREF(Py_None); resultobj = Py_None; | |
12504 | return resultobj; | |
12505 | fail: | |
12506 | return NULL; | |
12507 | } | |
12508 | ||
12509 | ||
12510 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12511 | PyObject *resultobj; | |
12512 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12513 | bool result; | |
12514 | PyObject * obj0 = 0 ; | |
12515 | char *kwnames[] = { | |
12516 | (char *) "self", NULL | |
12517 | }; | |
12518 | ||
12519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12522 | { |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
4f89f6a3 RD |
12529 | { |
12530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12531 | } | |
d14a1e28 RD |
12532 | return resultobj; |
12533 | fail: | |
12534 | return NULL; | |
12535 | } | |
12536 | ||
12537 | ||
12538 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12539 | PyObject *resultobj; | |
12540 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12541 | bool result; | |
12542 | PyObject * obj0 = 0 ; | |
12543 | char *kwnames[] = { | |
12544 | (char *) "self", NULL | |
12545 | }; | |
12546 | ||
12547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12550 | { |
12551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12552 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12553 | ||
12554 | wxPyEndAllowThreads(__tstate); | |
12555 | if (PyErr_Occurred()) SWIG_fail; | |
12556 | } | |
4f89f6a3 RD |
12557 | { |
12558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12559 | } | |
d14a1e28 RD |
12560 | return resultobj; |
12561 | fail: | |
12562 | return NULL; | |
12563 | } | |
12564 | ||
12565 | ||
12566 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12567 | PyObject *resultobj; | |
12568 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12569 | int result; | |
12570 | PyObject * obj0 = 0 ; | |
12571 | char *kwnames[] = { | |
12572 | (char *) "self", NULL | |
12573 | }; | |
12574 | ||
12575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12578 | { |
12579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12580 | result = (int)(arg1)->StopPropagation(); | |
12581 | ||
12582 | wxPyEndAllowThreads(__tstate); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
15afbcd0 | 12585 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12586 | return resultobj; |
12587 | fail: | |
12588 | return NULL; | |
12589 | } | |
12590 | ||
12591 | ||
12592 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12593 | PyObject *resultobj; | |
12594 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12595 | int arg2 ; | |
12596 | PyObject * obj0 = 0 ; | |
994141e6 | 12597 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12598 | char *kwnames[] = { |
12599 | (char *) "self",(char *) "propagationLevel", NULL | |
12600 | }; | |
12601 | ||
994141e6 | 12602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12605 | arg2 = (int) SWIG_AsInt(obj1); | |
12606 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12607 | { |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | (arg1)->ResumePropagation(arg2); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
12614 | Py_INCREF(Py_None); resultobj = Py_None; | |
12615 | return resultobj; | |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
12621 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12622 | PyObject *resultobj; | |
12623 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12624 | wxEvent *result; | |
12625 | PyObject * obj0 = 0 ; | |
12626 | char *kwnames[] = { | |
12627 | (char *) "self", NULL | |
12628 | }; | |
12629 | ||
12630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12633 | { |
12634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12635 | result = (wxEvent *)(arg1)->Clone(); | |
12636 | ||
12637 | wxPyEndAllowThreads(__tstate); | |
12638 | if (PyErr_Occurred()) SWIG_fail; | |
12639 | } | |
15afbcd0 | 12640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12641 | return resultobj; |
12642 | fail: | |
12643 | return NULL; | |
12644 | } | |
12645 | ||
12646 | ||
12647 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12648 | PyObject *obj; | |
12649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12650 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12651 | Py_INCREF(obj); | |
12652 | return Py_BuildValue((char *)""); | |
12653 | } | |
12654 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12655 | PyObject *resultobj; | |
12656 | wxEvent *arg1 = 0 ; | |
12657 | wxPropagationDisabler *result; | |
12658 | PyObject * obj0 = 0 ; | |
12659 | char *kwnames[] = { | |
12660 | (char *) "event", NULL | |
12661 | }; | |
12662 | ||
12663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12665 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12666 | SWIG_fail; | |
d14a1e28 | 12667 | if (arg1 == NULL) { |
15afbcd0 RD |
12668 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12669 | SWIG_fail; | |
d14a1e28 RD |
12670 | } |
12671 | { | |
12672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12673 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12674 | ||
12675 | wxPyEndAllowThreads(__tstate); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | } | |
15afbcd0 | 12678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12679 | return resultobj; |
12680 | fail: | |
12681 | return NULL; | |
12682 | } | |
12683 | ||
12684 | ||
12685 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12686 | PyObject *resultobj; | |
12687 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12688 | PyObject * obj0 = 0 ; | |
12689 | char *kwnames[] = { | |
12690 | (char *) "self", NULL | |
12691 | }; | |
12692 | ||
12693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12696 | { |
12697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12698 | delete arg1; | |
12699 | ||
12700 | wxPyEndAllowThreads(__tstate); | |
12701 | if (PyErr_Occurred()) SWIG_fail; | |
12702 | } | |
12703 | Py_INCREF(Py_None); resultobj = Py_None; | |
12704 | return resultobj; | |
12705 | fail: | |
12706 | return NULL; | |
12707 | } | |
12708 | ||
12709 | ||
12710 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12711 | PyObject *obj; | |
12712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12713 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12714 | Py_INCREF(obj); | |
12715 | return Py_BuildValue((char *)""); | |
12716 | } | |
12717 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12718 | PyObject *resultobj; | |
12719 | wxEvent *arg1 = 0 ; | |
12720 | wxPropagateOnce *result; | |
12721 | PyObject * obj0 = 0 ; | |
12722 | char *kwnames[] = { | |
12723 | (char *) "event", NULL | |
12724 | }; | |
12725 | ||
12726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12728 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12729 | SWIG_fail; | |
d14a1e28 | 12730 | if (arg1 == NULL) { |
15afbcd0 RD |
12731 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12732 | SWIG_fail; | |
d14a1e28 RD |
12733 | } |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12737 | ||
12738 | wxPyEndAllowThreads(__tstate); | |
12739 | if (PyErr_Occurred()) SWIG_fail; | |
12740 | } | |
15afbcd0 | 12741 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12742 | return resultobj; |
12743 | fail: | |
12744 | return NULL; | |
12745 | } | |
12746 | ||
12747 | ||
12748 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12749 | PyObject *resultobj; | |
12750 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12751 | PyObject * obj0 = 0 ; | |
12752 | char *kwnames[] = { | |
12753 | (char *) "self", NULL | |
12754 | }; | |
12755 | ||
12756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12759 | { |
12760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12761 | delete arg1; | |
12762 | ||
12763 | wxPyEndAllowThreads(__tstate); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
12766 | Py_INCREF(Py_None); resultobj = Py_None; | |
12767 | return resultobj; | |
12768 | fail: | |
12769 | return NULL; | |
12770 | } | |
12771 | ||
12772 | ||
12773 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12774 | PyObject *obj; | |
12775 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12776 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12777 | Py_INCREF(obj); | |
12778 | return Py_BuildValue((char *)""); | |
12779 | } | |
12780 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12781 | PyObject *resultobj; | |
12782 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12783 | int arg2 = (int) 0 ; | |
12784 | wxCommandEvent *result; | |
994141e6 RD |
12785 | PyObject * obj0 = 0 ; |
12786 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12787 | char *kwnames[] = { |
12788 | (char *) "commandType",(char *) "winid", NULL | |
12789 | }; | |
12790 | ||
994141e6 RD |
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12792 | if (obj0) { | |
15afbcd0 RD |
12793 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12795 | } |
12796 | if (obj1) { | |
15afbcd0 RD |
12797 | arg2 = (int) SWIG_AsInt(obj1); |
12798 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12799 | } |
d14a1e28 RD |
12800 | { |
12801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12802 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12803 | ||
12804 | wxPyEndAllowThreads(__tstate); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
15afbcd0 | 12807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12808 | return resultobj; |
12809 | fail: | |
12810 | return NULL; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12815 | PyObject *resultobj; | |
12816 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12817 | int result; | |
12818 | PyObject * obj0 = 0 ; | |
12819 | char *kwnames[] = { | |
12820 | (char *) "self", NULL | |
12821 | }; | |
12822 | ||
12823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12826 | { |
12827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12828 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12829 | ||
12830 | wxPyEndAllowThreads(__tstate); | |
12831 | if (PyErr_Occurred()) SWIG_fail; | |
12832 | } | |
15afbcd0 | 12833 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12834 | return resultobj; |
12835 | fail: | |
12836 | return NULL; | |
12837 | } | |
12838 | ||
12839 | ||
12840 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12841 | PyObject *resultobj; | |
12842 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12843 | wxString *arg2 = 0 ; | |
e811c8ce | 12844 | bool temp2 = False ; |
d14a1e28 RD |
12845 | PyObject * obj0 = 0 ; |
12846 | PyObject * obj1 = 0 ; | |
12847 | char *kwnames[] = { | |
12848 | (char *) "self",(char *) "s", NULL | |
12849 | }; | |
12850 | ||
12851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12854 | { |
12855 | arg2 = wxString_in_helper(obj1); | |
12856 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12857 | temp2 = True; |
d14a1e28 RD |
12858 | } |
12859 | { | |
12860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12861 | (arg1)->SetString((wxString const &)*arg2); | |
12862 | ||
12863 | wxPyEndAllowThreads(__tstate); | |
12864 | if (PyErr_Occurred()) SWIG_fail; | |
12865 | } | |
12866 | Py_INCREF(Py_None); resultobj = Py_None; | |
12867 | { | |
12868 | if (temp2) | |
12869 | delete arg2; | |
12870 | } | |
12871 | return resultobj; | |
12872 | fail: | |
12873 | { | |
12874 | if (temp2) | |
12875 | delete arg2; | |
12876 | } | |
12877 | return NULL; | |
12878 | } | |
12879 | ||
12880 | ||
12881 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12882 | PyObject *resultobj; | |
12883 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12884 | wxString result; | |
12885 | PyObject * obj0 = 0 ; | |
12886 | char *kwnames[] = { | |
12887 | (char *) "self", NULL | |
12888 | }; | |
12889 | ||
12890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12893 | { |
12894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12895 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12896 | ||
12897 | wxPyEndAllowThreads(__tstate); | |
12898 | if (PyErr_Occurred()) SWIG_fail; | |
12899 | } | |
12900 | { | |
12901 | #if wxUSE_UNICODE | |
12902 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12903 | #else | |
12904 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12905 | #endif | |
12906 | } | |
12907 | return resultobj; | |
12908 | fail: | |
12909 | return NULL; | |
12910 | } | |
12911 | ||
12912 | ||
12913 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12914 | PyObject *resultobj; | |
12915 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12916 | bool result; | |
12917 | PyObject * obj0 = 0 ; | |
12918 | char *kwnames[] = { | |
12919 | (char *) "self", NULL | |
12920 | }; | |
12921 | ||
12922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12925 | { |
12926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12927 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12928 | ||
12929 | wxPyEndAllowThreads(__tstate); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | } | |
4f89f6a3 RD |
12932 | { |
12933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12934 | } | |
d14a1e28 RD |
12935 | return resultobj; |
12936 | fail: | |
12937 | return NULL; | |
12938 | } | |
12939 | ||
12940 | ||
12941 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12942 | PyObject *resultobj; | |
12943 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12944 | bool result; | |
12945 | PyObject * obj0 = 0 ; | |
12946 | char *kwnames[] = { | |
12947 | (char *) "self", NULL | |
12948 | }; | |
12949 | ||
12950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12953 | { |
12954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12955 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12956 | ||
12957 | wxPyEndAllowThreads(__tstate); | |
12958 | if (PyErr_Occurred()) SWIG_fail; | |
12959 | } | |
4f89f6a3 RD |
12960 | { |
12961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12962 | } | |
d14a1e28 RD |
12963 | return resultobj; |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12970 | PyObject *resultobj; | |
12971 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12972 | long arg2 ; | |
12973 | PyObject * obj0 = 0 ; | |
994141e6 | 12974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12975 | char *kwnames[] = { |
12976 | (char *) "self",(char *) "extraLong", NULL | |
12977 | }; | |
12978 | ||
994141e6 | 12979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12982 | arg2 = (long) SWIG_AsLong(obj1); | |
12983 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12984 | { |
12985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12986 | (arg1)->SetExtraLong(arg2); | |
12987 | ||
12988 | wxPyEndAllowThreads(__tstate); | |
12989 | if (PyErr_Occurred()) SWIG_fail; | |
12990 | } | |
12991 | Py_INCREF(Py_None); resultobj = Py_None; | |
12992 | return resultobj; | |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
12998 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12999 | PyObject *resultobj; | |
13000 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13001 | long result; | |
13002 | PyObject * obj0 = 0 ; | |
13003 | char *kwnames[] = { | |
13004 | (char *) "self", NULL | |
13005 | }; | |
13006 | ||
13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13010 | { |
13011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13012 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13013 | ||
13014 | wxPyEndAllowThreads(__tstate); | |
13015 | if (PyErr_Occurred()) SWIG_fail; | |
13016 | } | |
15afbcd0 | 13017 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13018 | return resultobj; |
13019 | fail: | |
13020 | return NULL; | |
13021 | } | |
13022 | ||
13023 | ||
13024 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13025 | PyObject *resultobj; | |
13026 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13027 | int arg2 ; | |
13028 | PyObject * obj0 = 0 ; | |
994141e6 | 13029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13030 | char *kwnames[] = { |
13031 | (char *) "self",(char *) "i", NULL | |
13032 | }; | |
13033 | ||
994141e6 | 13034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13037 | arg2 = (int) SWIG_AsInt(obj1); | |
13038 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13039 | { |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | (arg1)->SetInt(arg2); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | Py_INCREF(Py_None); resultobj = Py_None; | |
13047 | return resultobj; | |
13048 | fail: | |
13049 | return NULL; | |
13050 | } | |
13051 | ||
13052 | ||
13053 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13054 | PyObject *resultobj; | |
13055 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13056 | long result; | |
13057 | PyObject * obj0 = 0 ; | |
13058 | char *kwnames[] = { | |
13059 | (char *) "self", NULL | |
13060 | }; | |
13061 | ||
13062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13065 | { |
13066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13067 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13068 | ||
13069 | wxPyEndAllowThreads(__tstate); | |
13070 | if (PyErr_Occurred()) SWIG_fail; | |
13071 | } | |
15afbcd0 | 13072 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13073 | return resultobj; |
13074 | fail: | |
13075 | return NULL; | |
13076 | } | |
13077 | ||
13078 | ||
13079 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13080 | PyObject *resultobj; | |
13081 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13082 | wxEvent *result; | |
13083 | PyObject * obj0 = 0 ; | |
13084 | char *kwnames[] = { | |
13085 | (char *) "self", NULL | |
13086 | }; | |
13087 | ||
13088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13091 | { |
13092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13093 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13094 | ||
13095 | wxPyEndAllowThreads(__tstate); | |
13096 | if (PyErr_Occurred()) SWIG_fail; | |
13097 | } | |
15afbcd0 | 13098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13099 | return resultobj; |
13100 | fail: | |
13101 | return NULL; | |
13102 | } | |
13103 | ||
13104 | ||
13105 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13106 | PyObject *obj; | |
13107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13108 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13109 | Py_INCREF(obj); | |
13110 | return Py_BuildValue((char *)""); | |
13111 | } | |
13112 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13113 | PyObject *resultobj; | |
13114 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13115 | int arg2 = (int) 0 ; | |
13116 | wxNotifyEvent *result; | |
994141e6 RD |
13117 | PyObject * obj0 = 0 ; |
13118 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13119 | char *kwnames[] = { |
13120 | (char *) "commandType",(char *) "winid", NULL | |
13121 | }; | |
13122 | ||
994141e6 RD |
13123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
13124 | if (obj0) { | |
15afbcd0 RD |
13125 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13127 | } |
13128 | if (obj1) { | |
15afbcd0 RD |
13129 | arg2 = (int) SWIG_AsInt(obj1); |
13130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13131 | } |
d14a1e28 RD |
13132 | { |
13133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13134 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13135 | ||
13136 | wxPyEndAllowThreads(__tstate); | |
13137 | if (PyErr_Occurred()) SWIG_fail; | |
13138 | } | |
15afbcd0 | 13139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
13140 | return resultobj; |
13141 | fail: | |
13142 | return NULL; | |
13143 | } | |
13144 | ||
13145 | ||
13146 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13147 | PyObject *resultobj; | |
13148 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13149 | PyObject * obj0 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self", NULL | |
13152 | }; | |
13153 | ||
13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13157 | { |
13158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13159 | (arg1)->Veto(); | |
13160 | ||
13161 | wxPyEndAllowThreads(__tstate); | |
13162 | if (PyErr_Occurred()) SWIG_fail; | |
13163 | } | |
13164 | Py_INCREF(Py_None); resultobj = Py_None; | |
13165 | return resultobj; | |
13166 | fail: | |
13167 | return NULL; | |
13168 | } | |
13169 | ||
13170 | ||
13171 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13172 | PyObject *resultobj; | |
13173 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13174 | PyObject * obj0 = 0 ; | |
13175 | char *kwnames[] = { | |
13176 | (char *) "self", NULL | |
13177 | }; | |
13178 | ||
13179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13182 | { |
13183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13184 | (arg1)->Allow(); | |
13185 | ||
13186 | wxPyEndAllowThreads(__tstate); | |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
13189 | Py_INCREF(Py_None); resultobj = Py_None; | |
13190 | return resultobj; | |
13191 | fail: | |
13192 | return NULL; | |
13193 | } | |
13194 | ||
13195 | ||
13196 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13197 | PyObject *resultobj; | |
13198 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13199 | bool result; | |
13200 | PyObject * obj0 = 0 ; | |
13201 | char *kwnames[] = { | |
13202 | (char *) "self", NULL | |
13203 | }; | |
13204 | ||
13205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13208 | { |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | result = (bool)(arg1)->IsAllowed(); | |
13211 | ||
13212 | wxPyEndAllowThreads(__tstate); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
4f89f6a3 RD |
13215 | { |
13216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13217 | } | |
d14a1e28 RD |
13218 | return resultobj; |
13219 | fail: | |
13220 | return NULL; | |
13221 | } | |
13222 | ||
13223 | ||
13224 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13225 | PyObject *obj; | |
13226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13227 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13228 | Py_INCREF(obj); | |
13229 | return Py_BuildValue((char *)""); | |
13230 | } | |
13231 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13232 | PyObject *resultobj; | |
13233 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13234 | int arg2 = (int) 0 ; | |
13235 | int arg3 = (int) 0 ; | |
13236 | int arg4 = (int) 0 ; | |
13237 | wxScrollEvent *result; | |
994141e6 RD |
13238 | PyObject * obj0 = 0 ; |
13239 | PyObject * obj1 = 0 ; | |
13240 | PyObject * obj2 = 0 ; | |
13241 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13242 | char *kwnames[] = { |
13243 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13244 | }; | |
13245 | ||
994141e6 RD |
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13247 | if (obj0) { | |
15afbcd0 RD |
13248 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13249 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13250 | } |
13251 | if (obj1) { | |
15afbcd0 RD |
13252 | arg2 = (int) SWIG_AsInt(obj1); |
13253 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13254 | } |
13255 | if (obj2) { | |
15afbcd0 RD |
13256 | arg3 = (int) SWIG_AsInt(obj2); |
13257 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13258 | } |
13259 | if (obj3) { | |
15afbcd0 RD |
13260 | arg4 = (int) SWIG_AsInt(obj3); |
13261 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13262 | } |
d14a1e28 RD |
13263 | { |
13264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13265 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13266 | ||
13267 | wxPyEndAllowThreads(__tstate); | |
13268 | if (PyErr_Occurred()) SWIG_fail; | |
13269 | } | |
15afbcd0 | 13270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13271 | return resultobj; |
13272 | fail: | |
13273 | return NULL; | |
13274 | } | |
13275 | ||
13276 | ||
13277 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13278 | PyObject *resultobj; | |
13279 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13280 | int result; | |
13281 | PyObject * obj0 = 0 ; | |
13282 | char *kwnames[] = { | |
13283 | (char *) "self", NULL | |
13284 | }; | |
13285 | ||
13286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13289 | { |
13290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13291 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13292 | ||
13293 | wxPyEndAllowThreads(__tstate); | |
13294 | if (PyErr_Occurred()) SWIG_fail; | |
13295 | } | |
15afbcd0 | 13296 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13297 | return resultobj; |
13298 | fail: | |
13299 | return NULL; | |
13300 | } | |
13301 | ||
13302 | ||
13303 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13304 | PyObject *resultobj; | |
13305 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13306 | int result; | |
13307 | PyObject * obj0 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13315 | { |
13316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13317 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13318 | ||
13319 | wxPyEndAllowThreads(__tstate); | |
13320 | if (PyErr_Occurred()) SWIG_fail; | |
13321 | } | |
15afbcd0 | 13322 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13323 | return resultobj; |
13324 | fail: | |
13325 | return NULL; | |
13326 | } | |
13327 | ||
13328 | ||
13329 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13330 | PyObject *resultobj; | |
13331 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13332 | int arg2 ; | |
13333 | PyObject * obj0 = 0 ; | |
994141e6 | 13334 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13335 | char *kwnames[] = { |
13336 | (char *) "self",(char *) "orient", NULL | |
13337 | }; | |
13338 | ||
994141e6 | 13339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13342 | arg2 = (int) SWIG_AsInt(obj1); | |
13343 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13344 | { |
13345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13346 | (arg1)->SetOrientation(arg2); | |
13347 | ||
13348 | wxPyEndAllowThreads(__tstate); | |
13349 | if (PyErr_Occurred()) SWIG_fail; | |
13350 | } | |
13351 | Py_INCREF(Py_None); resultobj = Py_None; | |
13352 | return resultobj; | |
13353 | fail: | |
13354 | return NULL; | |
13355 | } | |
13356 | ||
13357 | ||
13358 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13359 | PyObject *resultobj; | |
13360 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13361 | int arg2 ; | |
13362 | PyObject * obj0 = 0 ; | |
994141e6 | 13363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13364 | char *kwnames[] = { |
13365 | (char *) "self",(char *) "pos", NULL | |
13366 | }; | |
13367 | ||
994141e6 | 13368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13371 | arg2 = (int) SWIG_AsInt(obj1); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13373 | { |
13374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13375 | (arg1)->SetPosition(arg2); | |
13376 | ||
13377 | wxPyEndAllowThreads(__tstate); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | Py_INCREF(Py_None); resultobj = Py_None; | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13388 | PyObject *obj; | |
13389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13390 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13391 | Py_INCREF(obj); | |
13392 | return Py_BuildValue((char *)""); | |
13393 | } | |
13394 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13397 | int arg2 = (int) 0 ; | |
13398 | int arg3 = (int) 0 ; | |
13399 | wxScrollWinEvent *result; | |
994141e6 RD |
13400 | PyObject * obj0 = 0 ; |
13401 | PyObject * obj1 = 0 ; | |
13402 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13403 | char *kwnames[] = { |
13404 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13405 | }; | |
13406 | ||
994141e6 RD |
13407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13408 | if (obj0) { | |
15afbcd0 RD |
13409 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13410 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13411 | } |
13412 | if (obj1) { | |
15afbcd0 RD |
13413 | arg2 = (int) SWIG_AsInt(obj1); |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13415 | } |
13416 | if (obj2) { | |
15afbcd0 RD |
13417 | arg3 = (int) SWIG_AsInt(obj2); |
13418 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13419 | } |
d14a1e28 RD |
13420 | { |
13421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13422 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13423 | ||
13424 | wxPyEndAllowThreads(__tstate); | |
13425 | if (PyErr_Occurred()) SWIG_fail; | |
13426 | } | |
15afbcd0 | 13427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13428 | return resultobj; |
13429 | fail: | |
13430 | return NULL; | |
13431 | } | |
13432 | ||
13433 | ||
13434 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13435 | PyObject *resultobj; | |
13436 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13437 | int result; | |
13438 | PyObject * obj0 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13446 | { |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13449 | ||
13450 | wxPyEndAllowThreads(__tstate); | |
13451 | if (PyErr_Occurred()) SWIG_fail; | |
13452 | } | |
15afbcd0 | 13453 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13454 | return resultobj; |
13455 | fail: | |
13456 | return NULL; | |
13457 | } | |
13458 | ||
13459 | ||
13460 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13461 | PyObject *resultobj; | |
13462 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13463 | int result; | |
13464 | PyObject * obj0 = 0 ; | |
13465 | char *kwnames[] = { | |
13466 | (char *) "self", NULL | |
13467 | }; | |
13468 | ||
13469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13472 | { |
13473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13474 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13475 | ||
13476 | wxPyEndAllowThreads(__tstate); | |
13477 | if (PyErr_Occurred()) SWIG_fail; | |
13478 | } | |
15afbcd0 | 13479 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13480 | return resultobj; |
13481 | fail: | |
13482 | return NULL; | |
13483 | } | |
13484 | ||
13485 | ||
13486 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13487 | PyObject *resultobj; | |
13488 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13489 | int arg2 ; | |
13490 | PyObject * obj0 = 0 ; | |
994141e6 | 13491 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13492 | char *kwnames[] = { |
13493 | (char *) "self",(char *) "orient", NULL | |
13494 | }; | |
13495 | ||
994141e6 | 13496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13499 | arg2 = (int) SWIG_AsInt(obj1); | |
13500 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13501 | { |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | (arg1)->SetOrientation(arg2); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
13508 | Py_INCREF(Py_None); resultobj = Py_None; | |
13509 | return resultobj; | |
13510 | fail: | |
13511 | return NULL; | |
13512 | } | |
13513 | ||
13514 | ||
13515 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13516 | PyObject *resultobj; | |
13517 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13518 | int arg2 ; | |
13519 | PyObject * obj0 = 0 ; | |
994141e6 | 13520 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13521 | char *kwnames[] = { |
13522 | (char *) "self",(char *) "pos", NULL | |
13523 | }; | |
13524 | ||
994141e6 | 13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13528 | arg2 = (int) SWIG_AsInt(obj1); | |
13529 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13530 | { |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13532 | (arg1)->SetPosition(arg2); | |
13533 | ||
13534 | wxPyEndAllowThreads(__tstate); | |
13535 | if (PyErr_Occurred()) SWIG_fail; | |
13536 | } | |
13537 | Py_INCREF(Py_None); resultobj = Py_None; | |
13538 | return resultobj; | |
13539 | fail: | |
13540 | return NULL; | |
13541 | } | |
13542 | ||
13543 | ||
13544 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13545 | PyObject *obj; | |
13546 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13547 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13548 | Py_INCREF(obj); | |
13549 | return Py_BuildValue((char *)""); | |
13550 | } | |
13551 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13552 | PyObject *resultobj; | |
13553 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13554 | wxMouseEvent *result; | |
994141e6 | 13555 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13556 | char *kwnames[] = { |
13557 | (char *) "mouseType", NULL | |
13558 | }; | |
13559 | ||
994141e6 RD |
13560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13561 | if (obj0) { | |
15afbcd0 RD |
13562 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13563 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13564 | } |
d14a1e28 RD |
13565 | { |
13566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13567 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13568 | ||
13569 | wxPyEndAllowThreads(__tstate); | |
13570 | if (PyErr_Occurred()) SWIG_fail; | |
13571 | } | |
13572 | { | |
412d302d | 13573 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
13574 | } |
13575 | return resultobj; | |
13576 | fail: | |
13577 | return NULL; | |
13578 | } | |
13579 | ||
13580 | ||
13581 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13582 | PyObject *resultobj; | |
13583 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13584 | bool result; | |
13585 | PyObject * obj0 = 0 ; | |
13586 | char *kwnames[] = { | |
13587 | (char *) "self", NULL | |
13588 | }; | |
13589 | ||
13590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13593 | { |
13594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13595 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13596 | ||
13597 | wxPyEndAllowThreads(__tstate); | |
13598 | if (PyErr_Occurred()) SWIG_fail; | |
13599 | } | |
4f89f6a3 RD |
13600 | { |
13601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13602 | } | |
d14a1e28 RD |
13603 | return resultobj; |
13604 | fail: | |
13605 | return NULL; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj; | |
13611 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13612 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13613 | bool result; | |
13614 | PyObject * obj0 = 0 ; | |
994141e6 | 13615 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13616 | char *kwnames[] = { |
13617 | (char *) "self",(char *) "but", NULL | |
13618 | }; | |
13619 | ||
994141e6 | 13620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13623 | if (obj1) { |
15afbcd0 RD |
13624 | arg2 = (int) SWIG_AsInt(obj1); |
13625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13626 | } |
d14a1e28 RD |
13627 | { |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13629 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13630 | ||
13631 | wxPyEndAllowThreads(__tstate); | |
13632 | if (PyErr_Occurred()) SWIG_fail; | |
13633 | } | |
4f89f6a3 RD |
13634 | { |
13635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13636 | } | |
d14a1e28 RD |
13637 | return resultobj; |
13638 | fail: | |
13639 | return NULL; | |
13640 | } | |
13641 | ||
13642 | ||
13643 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13644 | PyObject *resultobj; | |
13645 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13646 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13647 | bool result; | |
13648 | PyObject * obj0 = 0 ; | |
994141e6 | 13649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13650 | char *kwnames[] = { |
13651 | (char *) "self",(char *) "but", NULL | |
13652 | }; | |
13653 | ||
994141e6 | 13654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13657 | if (obj1) { |
15afbcd0 RD |
13658 | arg2 = (int) SWIG_AsInt(obj1); |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13660 | } |
d14a1e28 RD |
13661 | { |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13664 | ||
13665 | wxPyEndAllowThreads(__tstate); | |
13666 | if (PyErr_Occurred()) SWIG_fail; | |
13667 | } | |
4f89f6a3 RD |
13668 | { |
13669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13670 | } | |
d14a1e28 RD |
13671 | return resultobj; |
13672 | fail: | |
13673 | return NULL; | |
13674 | } | |
13675 | ||
13676 | ||
13677 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13678 | PyObject *resultobj; | |
13679 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13680 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13681 | bool result; | |
13682 | PyObject * obj0 = 0 ; | |
994141e6 | 13683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13684 | char *kwnames[] = { |
13685 | (char *) "self",(char *) "but", NULL | |
13686 | }; | |
13687 | ||
994141e6 | 13688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13691 | if (obj1) { |
15afbcd0 RD |
13692 | arg2 = (int) SWIG_AsInt(obj1); |
13693 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13694 | } |
d14a1e28 RD |
13695 | { |
13696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13697 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13698 | ||
13699 | wxPyEndAllowThreads(__tstate); | |
13700 | if (PyErr_Occurred()) SWIG_fail; | |
13701 | } | |
4f89f6a3 RD |
13702 | { |
13703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13704 | } | |
d14a1e28 RD |
13705 | return resultobj; |
13706 | fail: | |
13707 | return NULL; | |
13708 | } | |
13709 | ||
13710 | ||
13711 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13712 | PyObject *resultobj; | |
13713 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13714 | int arg2 ; | |
13715 | bool result; | |
13716 | PyObject * obj0 = 0 ; | |
994141e6 | 13717 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13718 | char *kwnames[] = { |
13719 | (char *) "self",(char *) "but", NULL | |
13720 | }; | |
13721 | ||
994141e6 | 13722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13725 | arg2 = (int) SWIG_AsInt(obj1); | |
13726 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13727 | { |
13728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13729 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13730 | ||
13731 | wxPyEndAllowThreads(__tstate); | |
13732 | if (PyErr_Occurred()) SWIG_fail; | |
13733 | } | |
4f89f6a3 RD |
13734 | { |
13735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13736 | } | |
d14a1e28 RD |
13737 | return resultobj; |
13738 | fail: | |
13739 | return NULL; | |
13740 | } | |
13741 | ||
13742 | ||
13743 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13744 | PyObject *resultobj; | |
13745 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13746 | int arg2 ; | |
13747 | bool result; | |
13748 | PyObject * obj0 = 0 ; | |
994141e6 | 13749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13750 | char *kwnames[] = { |
13751 | (char *) "self",(char *) "but", NULL | |
13752 | }; | |
13753 | ||
994141e6 | 13754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13757 | arg2 = (int) SWIG_AsInt(obj1); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13759 | { |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
4f89f6a3 RD |
13766 | { |
13767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13768 | } | |
d14a1e28 RD |
13769 | return resultobj; |
13770 | fail: | |
13771 | return NULL; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13776 | PyObject *resultobj; | |
13777 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13778 | int result; | |
13779 | PyObject * obj0 = 0 ; | |
13780 | char *kwnames[] = { | |
13781 | (char *) "self", NULL | |
13782 | }; | |
13783 | ||
13784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13787 | { |
13788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13789 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13790 | ||
13791 | wxPyEndAllowThreads(__tstate); | |
13792 | if (PyErr_Occurred()) SWIG_fail; | |
13793 | } | |
15afbcd0 | 13794 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13795 | return resultobj; |
13796 | fail: | |
13797 | return NULL; | |
13798 | } | |
13799 | ||
13800 | ||
13801 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13802 | PyObject *resultobj; | |
13803 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13804 | bool result; | |
13805 | PyObject * obj0 = 0 ; | |
13806 | char *kwnames[] = { | |
13807 | (char *) "self", NULL | |
13808 | }; | |
13809 | ||
13810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13813 | { |
13814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13815 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13816 | ||
13817 | wxPyEndAllowThreads(__tstate); | |
13818 | if (PyErr_Occurred()) SWIG_fail; | |
13819 | } | |
4f89f6a3 RD |
13820 | { |
13821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13822 | } | |
d14a1e28 RD |
13823 | return resultobj; |
13824 | fail: | |
13825 | return NULL; | |
13826 | } | |
13827 | ||
13828 | ||
13829 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13830 | PyObject *resultobj; | |
13831 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13832 | bool result; | |
13833 | PyObject * obj0 = 0 ; | |
13834 | char *kwnames[] = { | |
13835 | (char *) "self", NULL | |
13836 | }; | |
13837 | ||
13838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13841 | { |
13842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13843 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13844 | ||
13845 | wxPyEndAllowThreads(__tstate); | |
13846 | if (PyErr_Occurred()) SWIG_fail; | |
13847 | } | |
4f89f6a3 RD |
13848 | { |
13849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13850 | } | |
d14a1e28 RD |
13851 | return resultobj; |
13852 | fail: | |
13853 | return NULL; | |
13854 | } | |
13855 | ||
13856 | ||
13857 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13858 | PyObject *resultobj; | |
13859 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13860 | bool result; | |
13861 | PyObject * obj0 = 0 ; | |
13862 | char *kwnames[] = { | |
13863 | (char *) "self", NULL | |
13864 | }; | |
13865 | ||
13866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13869 | { |
13870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13871 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13872 | ||
13873 | wxPyEndAllowThreads(__tstate); | |
13874 | if (PyErr_Occurred()) SWIG_fail; | |
13875 | } | |
4f89f6a3 RD |
13876 | { |
13877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13878 | } | |
d14a1e28 RD |
13879 | return resultobj; |
13880 | fail: | |
13881 | return NULL; | |
13882 | } | |
13883 | ||
13884 | ||
13885 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13886 | PyObject *resultobj; | |
13887 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13888 | bool result; | |
13889 | PyObject * obj0 = 0 ; | |
13890 | char *kwnames[] = { | |
13891 | (char *) "self", NULL | |
13892 | }; | |
13893 | ||
13894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13897 | { |
13898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13899 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13900 | ||
13901 | wxPyEndAllowThreads(__tstate); | |
13902 | if (PyErr_Occurred()) SWIG_fail; | |
13903 | } | |
4f89f6a3 RD |
13904 | { |
13905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13906 | } | |
d14a1e28 RD |
13907 | return resultobj; |
13908 | fail: | |
13909 | return NULL; | |
13910 | } | |
13911 | ||
13912 | ||
412d302d RD |
13913 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
13914 | PyObject *resultobj; | |
13915 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13916 | bool result; | |
13917 | PyObject * obj0 = 0 ; | |
13918 | char *kwnames[] = { | |
13919 | (char *) "self", NULL | |
13920 | }; | |
13921 | ||
13922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
13923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13925 | { | |
13926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13927 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
13928 | ||
13929 | wxPyEndAllowThreads(__tstate); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | { | |
13933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13934 | } | |
13935 | return resultobj; | |
13936 | fail: | |
13937 | return NULL; | |
13938 | } | |
13939 | ||
13940 | ||
d14a1e28 RD |
13941 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
13942 | PyObject *resultobj; | |
13943 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13944 | bool result; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | char *kwnames[] = { | |
13947 | (char *) "self", NULL | |
13948 | }; | |
13949 | ||
13950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13953 | { |
13954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13955 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13956 | ||
13957 | wxPyEndAllowThreads(__tstate); | |
13958 | if (PyErr_Occurred()) SWIG_fail; | |
13959 | } | |
4f89f6a3 RD |
13960 | { |
13961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13962 | } | |
d14a1e28 RD |
13963 | return resultobj; |
13964 | fail: | |
13965 | return NULL; | |
13966 | } | |
13967 | ||
13968 | ||
13969 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13970 | PyObject *resultobj; | |
13971 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13972 | bool result; | |
13973 | PyObject * obj0 = 0 ; | |
13974 | char *kwnames[] = { | |
13975 | (char *) "self", NULL | |
13976 | }; | |
13977 | ||
13978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13981 | { |
13982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13983 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13984 | ||
13985 | wxPyEndAllowThreads(__tstate); | |
13986 | if (PyErr_Occurred()) SWIG_fail; | |
13987 | } | |
4f89f6a3 RD |
13988 | { |
13989 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13990 | } | |
d14a1e28 RD |
13991 | return resultobj; |
13992 | fail: | |
13993 | return NULL; | |
13994 | } | |
13995 | ||
13996 | ||
13997 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13998 | PyObject *resultobj; | |
13999 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14000 | bool result; | |
14001 | PyObject * obj0 = 0 ; | |
14002 | char *kwnames[] = { | |
14003 | (char *) "self", NULL | |
14004 | }; | |
14005 | ||
14006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14009 | { |
14010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14011 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14012 | ||
14013 | wxPyEndAllowThreads(__tstate); | |
14014 | if (PyErr_Occurred()) SWIG_fail; | |
14015 | } | |
4f89f6a3 RD |
14016 | { |
14017 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14018 | } | |
d14a1e28 RD |
14019 | return resultobj; |
14020 | fail: | |
14021 | return NULL; | |
14022 | } | |
14023 | ||
14024 | ||
14025 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14026 | PyObject *resultobj; | |
14027 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14028 | bool result; | |
14029 | PyObject * obj0 = 0 ; | |
14030 | char *kwnames[] = { | |
14031 | (char *) "self", NULL | |
14032 | }; | |
14033 | ||
14034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14037 | { |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14040 | ||
14041 | wxPyEndAllowThreads(__tstate); | |
14042 | if (PyErr_Occurred()) SWIG_fail; | |
14043 | } | |
4f89f6a3 RD |
14044 | { |
14045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14046 | } | |
d14a1e28 RD |
14047 | return resultobj; |
14048 | fail: | |
14049 | return NULL; | |
14050 | } | |
14051 | ||
14052 | ||
14053 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14054 | PyObject *resultobj; | |
14055 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14056 | bool result; | |
14057 | PyObject * obj0 = 0 ; | |
14058 | char *kwnames[] = { | |
14059 | (char *) "self", NULL | |
14060 | }; | |
14061 | ||
14062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14065 | { |
14066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14067 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14068 | ||
14069 | wxPyEndAllowThreads(__tstate); | |
14070 | if (PyErr_Occurred()) SWIG_fail; | |
14071 | } | |
4f89f6a3 RD |
14072 | { |
14073 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14074 | } | |
d14a1e28 RD |
14075 | return resultobj; |
14076 | fail: | |
14077 | return NULL; | |
14078 | } | |
14079 | ||
14080 | ||
14081 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14082 | PyObject *resultobj; | |
14083 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14084 | bool result; | |
14085 | PyObject * obj0 = 0 ; | |
14086 | char *kwnames[] = { | |
14087 | (char *) "self", NULL | |
14088 | }; | |
14089 | ||
14090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14093 | { |
14094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14095 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14096 | ||
14097 | wxPyEndAllowThreads(__tstate); | |
14098 | if (PyErr_Occurred()) SWIG_fail; | |
14099 | } | |
4f89f6a3 RD |
14100 | { |
14101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14102 | } | |
d14a1e28 RD |
14103 | return resultobj; |
14104 | fail: | |
14105 | return NULL; | |
14106 | } | |
14107 | ||
14108 | ||
14109 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14110 | PyObject *resultobj; | |
14111 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14112 | bool result; | |
14113 | PyObject * obj0 = 0 ; | |
14114 | char *kwnames[] = { | |
14115 | (char *) "self", NULL | |
14116 | }; | |
14117 | ||
14118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14121 | { |
14122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14123 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14124 | ||
14125 | wxPyEndAllowThreads(__tstate); | |
14126 | if (PyErr_Occurred()) SWIG_fail; | |
14127 | } | |
4f89f6a3 RD |
14128 | { |
14129 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14130 | } | |
d14a1e28 RD |
14131 | return resultobj; |
14132 | fail: | |
14133 | return NULL; | |
14134 | } | |
14135 | ||
14136 | ||
14137 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14138 | PyObject *resultobj; | |
14139 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14140 | bool result; | |
14141 | PyObject * obj0 = 0 ; | |
14142 | char *kwnames[] = { | |
14143 | (char *) "self", NULL | |
14144 | }; | |
14145 | ||
14146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14149 | { |
14150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14151 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14152 | ||
14153 | wxPyEndAllowThreads(__tstate); | |
14154 | if (PyErr_Occurred()) SWIG_fail; | |
14155 | } | |
4f89f6a3 RD |
14156 | { |
14157 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14158 | } | |
d14a1e28 RD |
14159 | return resultobj; |
14160 | fail: | |
14161 | return NULL; | |
14162 | } | |
14163 | ||
14164 | ||
14165 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14166 | PyObject *resultobj; | |
14167 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14168 | bool result; | |
14169 | PyObject * obj0 = 0 ; | |
14170 | char *kwnames[] = { | |
14171 | (char *) "self", NULL | |
14172 | }; | |
14173 | ||
14174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14177 | { |
14178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14179 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14180 | ||
14181 | wxPyEndAllowThreads(__tstate); | |
14182 | if (PyErr_Occurred()) SWIG_fail; | |
14183 | } | |
4f89f6a3 RD |
14184 | { |
14185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14186 | } | |
d14a1e28 RD |
14187 | return resultobj; |
14188 | fail: | |
14189 | return NULL; | |
14190 | } | |
14191 | ||
14192 | ||
14193 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14194 | PyObject *resultobj; | |
14195 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14196 | bool result; | |
14197 | PyObject * obj0 = 0 ; | |
14198 | char *kwnames[] = { | |
14199 | (char *) "self", NULL | |
14200 | }; | |
14201 | ||
14202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14205 | { |
14206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14207 | result = (bool)(arg1)->LeftIsDown(); | |
14208 | ||
14209 | wxPyEndAllowThreads(__tstate); | |
14210 | if (PyErr_Occurred()) SWIG_fail; | |
14211 | } | |
4f89f6a3 RD |
14212 | { |
14213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14214 | } | |
d14a1e28 RD |
14215 | return resultobj; |
14216 | fail: | |
14217 | return NULL; | |
14218 | } | |
14219 | ||
14220 | ||
14221 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14222 | PyObject *resultobj; | |
14223 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14224 | bool result; | |
14225 | PyObject * obj0 = 0 ; | |
14226 | char *kwnames[] = { | |
14227 | (char *) "self", NULL | |
14228 | }; | |
14229 | ||
14230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14233 | { |
14234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14235 | result = (bool)(arg1)->MiddleIsDown(); | |
14236 | ||
14237 | wxPyEndAllowThreads(__tstate); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | } | |
4f89f6a3 RD |
14240 | { |
14241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14242 | } | |
d14a1e28 RD |
14243 | return resultobj; |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14250 | PyObject *resultobj; | |
14251 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14252 | bool result; | |
14253 | PyObject * obj0 = 0 ; | |
14254 | char *kwnames[] = { | |
14255 | (char *) "self", NULL | |
14256 | }; | |
14257 | ||
14258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14261 | { |
14262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14263 | result = (bool)(arg1)->RightIsDown(); | |
14264 | ||
14265 | wxPyEndAllowThreads(__tstate); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
4f89f6a3 RD |
14268 | { |
14269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14270 | } | |
d14a1e28 RD |
14271 | return resultobj; |
14272 | fail: | |
14273 | return NULL; | |
14274 | } | |
14275 | ||
14276 | ||
14277 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14278 | PyObject *resultobj; | |
14279 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14280 | bool result; | |
14281 | PyObject * obj0 = 0 ; | |
14282 | char *kwnames[] = { | |
14283 | (char *) "self", NULL | |
14284 | }; | |
14285 | ||
14286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14289 | { |
14290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14291 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14292 | ||
14293 | wxPyEndAllowThreads(__tstate); | |
14294 | if (PyErr_Occurred()) SWIG_fail; | |
14295 | } | |
4f89f6a3 RD |
14296 | { |
14297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14298 | } | |
d14a1e28 RD |
14299 | return resultobj; |
14300 | fail: | |
14301 | return NULL; | |
14302 | } | |
14303 | ||
14304 | ||
14305 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14306 | PyObject *resultobj; | |
14307 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14308 | bool result; | |
14309 | PyObject * obj0 = 0 ; | |
14310 | char *kwnames[] = { | |
14311 | (char *) "self", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14317 | { |
14318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14319 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14320 | ||
14321 | wxPyEndAllowThreads(__tstate); | |
14322 | if (PyErr_Occurred()) SWIG_fail; | |
14323 | } | |
4f89f6a3 RD |
14324 | { |
14325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14326 | } | |
d14a1e28 RD |
14327 | return resultobj; |
14328 | fail: | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14334 | PyObject *resultobj; | |
14335 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14336 | bool result; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | char *kwnames[] = { | |
14339 | (char *) "self", NULL | |
14340 | }; | |
14341 | ||
14342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14345 | { |
14346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14347 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14348 | ||
14349 | wxPyEndAllowThreads(__tstate); | |
14350 | if (PyErr_Occurred()) SWIG_fail; | |
14351 | } | |
4f89f6a3 RD |
14352 | { |
14353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14354 | } | |
d14a1e28 RD |
14355 | return resultobj; |
14356 | fail: | |
14357 | return NULL; | |
14358 | } | |
14359 | ||
14360 | ||
14361 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14362 | PyObject *resultobj; | |
14363 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14364 | bool result; | |
14365 | PyObject * obj0 = 0 ; | |
14366 | char *kwnames[] = { | |
14367 | (char *) "self", NULL | |
14368 | }; | |
14369 | ||
14370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14373 | { |
14374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14375 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14376 | ||
14377 | wxPyEndAllowThreads(__tstate); | |
14378 | if (PyErr_Occurred()) SWIG_fail; | |
14379 | } | |
4f89f6a3 RD |
14380 | { |
14381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14382 | } | |
d14a1e28 RD |
14383 | return resultobj; |
14384 | fail: | |
14385 | return NULL; | |
14386 | } | |
14387 | ||
14388 | ||
14389 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14390 | PyObject *resultobj; | |
14391 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14392 | wxPoint result; | |
14393 | PyObject * obj0 = 0 ; | |
14394 | char *kwnames[] = { | |
14395 | (char *) "self", NULL | |
14396 | }; | |
14397 | ||
14398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14401 | { |
14402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14403 | result = (arg1)->GetPosition(); | |
14404 | ||
14405 | wxPyEndAllowThreads(__tstate); | |
14406 | if (PyErr_Occurred()) SWIG_fail; | |
14407 | } | |
14408 | { | |
14409 | wxPoint * resultptr; | |
14410 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14411 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14412 | } |
14413 | return resultobj; | |
14414 | fail: | |
14415 | return NULL; | |
14416 | } | |
14417 | ||
14418 | ||
14419 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14420 | PyObject *resultobj; | |
14421 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14422 | long *arg2 = (long *) 0 ; | |
14423 | long *arg3 = (long *) 0 ; | |
14424 | long temp2 ; | |
14425 | long temp3 ; | |
14426 | PyObject * obj0 = 0 ; | |
14427 | char *kwnames[] = { | |
14428 | (char *) "self", NULL | |
14429 | }; | |
14430 | ||
14431 | arg2 = &temp2; | |
14432 | arg3 = &temp3; | |
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14436 | { |
14437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14438 | (arg1)->GetPosition(arg2,arg3); | |
14439 | ||
14440 | wxPyEndAllowThreads(__tstate); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | } | |
14443 | Py_INCREF(Py_None); resultobj = Py_None; | |
14444 | { | |
14445 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14446 | resultobj = t_output_helper(resultobj,o); | |
14447 | } | |
14448 | { | |
14449 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14450 | resultobj = t_output_helper(resultobj,o); | |
14451 | } | |
14452 | return resultobj; | |
14453 | fail: | |
14454 | return NULL; | |
14455 | } | |
14456 | ||
14457 | ||
14458 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14459 | PyObject *resultobj; | |
14460 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14461 | wxDC *arg2 = 0 ; | |
14462 | wxPoint result; | |
14463 | PyObject * obj0 = 0 ; | |
14464 | PyObject * obj1 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "self",(char *) "dc", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14474 | SWIG_fail; | |
d14a1e28 | 14475 | if (arg2 == NULL) { |
15afbcd0 RD |
14476 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14477 | SWIG_fail; | |
d14a1e28 RD |
14478 | } |
14479 | { | |
14480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14481 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14482 | ||
14483 | wxPyEndAllowThreads(__tstate); | |
14484 | if (PyErr_Occurred()) SWIG_fail; | |
14485 | } | |
14486 | { | |
14487 | wxPoint * resultptr; | |
14488 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14489 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14490 | } |
14491 | return resultobj; | |
14492 | fail: | |
14493 | return NULL; | |
14494 | } | |
14495 | ||
14496 | ||
14497 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14498 | PyObject *resultobj; | |
14499 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14500 | int result; |
d14a1e28 RD |
14501 | PyObject * obj0 = 0 ; |
14502 | char *kwnames[] = { | |
14503 | (char *) "self", NULL | |
14504 | }; | |
14505 | ||
14506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14509 | { |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14511 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14512 | |
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
15afbcd0 | 14516 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14517 | return resultobj; |
14518 | fail: | |
14519 | return NULL; | |
14520 | } | |
14521 | ||
14522 | ||
14523 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14524 | PyObject *resultobj; | |
14525 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14526 | int result; |
d14a1e28 RD |
14527 | PyObject * obj0 = 0 ; |
14528 | char *kwnames[] = { | |
14529 | (char *) "self", NULL | |
14530 | }; | |
14531 | ||
14532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14535 | { |
14536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14537 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14538 | |
14539 | wxPyEndAllowThreads(__tstate); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | } | |
15afbcd0 | 14542 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14543 | return resultobj; |
14544 | fail: | |
14545 | return NULL; | |
14546 | } | |
14547 | ||
14548 | ||
14549 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14550 | PyObject *resultobj; | |
14551 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14552 | int result; | |
14553 | PyObject * obj0 = 0 ; | |
14554 | char *kwnames[] = { | |
14555 | (char *) "self", NULL | |
14556 | }; | |
14557 | ||
14558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14561 | { |
14562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14563 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14564 | ||
14565 | wxPyEndAllowThreads(__tstate); | |
14566 | if (PyErr_Occurred()) SWIG_fail; | |
14567 | } | |
15afbcd0 | 14568 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14569 | return resultobj; |
14570 | fail: | |
14571 | return NULL; | |
14572 | } | |
14573 | ||
14574 | ||
14575 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14576 | PyObject *resultobj; | |
14577 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14578 | int result; | |
14579 | PyObject * obj0 = 0 ; | |
14580 | char *kwnames[] = { | |
14581 | (char *) "self", NULL | |
14582 | }; | |
14583 | ||
14584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14587 | { |
14588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14589 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14590 | ||
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
15afbcd0 | 14594 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14595 | return resultobj; |
14596 | fail: | |
14597 | return NULL; | |
14598 | } | |
14599 | ||
14600 | ||
14601 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14602 | PyObject *resultobj; | |
14603 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14604 | int result; | |
14605 | PyObject * obj0 = 0 ; | |
14606 | char *kwnames[] = { | |
14607 | (char *) "self", NULL | |
14608 | }; | |
14609 | ||
14610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14613 | { |
14614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14615 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14616 | ||
14617 | wxPyEndAllowThreads(__tstate); | |
14618 | if (PyErr_Occurred()) SWIG_fail; | |
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_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14628 | PyObject *resultobj; | |
14629 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14630 | bool result; | |
14631 | PyObject * obj0 = 0 ; | |
14632 | char *kwnames[] = { | |
14633 | (char *) "self", NULL | |
14634 | }; | |
14635 | ||
14636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14639 | { |
14640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14641 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14642 | ||
14643 | wxPyEndAllowThreads(__tstate); | |
14644 | if (PyErr_Occurred()) SWIG_fail; | |
14645 | } | |
4f89f6a3 RD |
14646 | { |
14647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14648 | } | |
d14a1e28 RD |
14649 | return resultobj; |
14650 | fail: | |
14651 | return NULL; | |
14652 | } | |
14653 | ||
14654 | ||
14655 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14656 | PyObject *resultobj; | |
14657 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14658 | int arg2 ; |
d14a1e28 | 14659 | PyObject * obj0 = 0 ; |
994141e6 | 14660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14661 | char *kwnames[] = { |
14662 | (char *) "self",(char *) "m_x", NULL | |
14663 | }; | |
14664 | ||
994141e6 | 14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14668 | arg2 = (int) SWIG_AsInt(obj1); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14670 | if (arg1) (arg1)->m_x = arg2; |
14671 | ||
14672 | Py_INCREF(Py_None); resultobj = Py_None; | |
14673 | return resultobj; | |
14674 | fail: | |
14675 | return NULL; | |
14676 | } | |
14677 | ||
14678 | ||
14679 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14680 | PyObject *resultobj; | |
14681 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14682 | int result; |
d14a1e28 RD |
14683 | PyObject * obj0 = 0 ; |
14684 | char *kwnames[] = { | |
14685 | (char *) "self", NULL | |
14686 | }; | |
14687 | ||
14688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14691 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14692 | |
15afbcd0 | 14693 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14694 | return resultobj; |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
14700 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14701 | PyObject *resultobj; | |
14702 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14703 | int arg2 ; |
d14a1e28 | 14704 | PyObject * obj0 = 0 ; |
994141e6 | 14705 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14706 | char *kwnames[] = { |
14707 | (char *) "self",(char *) "m_y", NULL | |
14708 | }; | |
14709 | ||
994141e6 | 14710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14713 | arg2 = (int) SWIG_AsInt(obj1); | |
14714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14715 | if (arg1) (arg1)->m_y = arg2; |
14716 | ||
14717 | Py_INCREF(Py_None); resultobj = Py_None; | |
14718 | return resultobj; | |
14719 | fail: | |
14720 | return NULL; | |
14721 | } | |
14722 | ||
14723 | ||
14724 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14725 | PyObject *resultobj; | |
14726 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14727 | int result; |
d14a1e28 RD |
14728 | PyObject * obj0 = 0 ; |
14729 | char *kwnames[] = { | |
14730 | (char *) "self", NULL | |
14731 | }; | |
14732 | ||
14733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14736 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14737 | |
15afbcd0 | 14738 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14739 | return resultobj; |
14740 | fail: | |
14741 | return NULL; | |
14742 | } | |
14743 | ||
14744 | ||
14745 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14746 | PyObject *resultobj; | |
14747 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14748 | bool arg2 ; | |
14749 | PyObject * obj0 = 0 ; | |
14750 | PyObject * obj1 = 0 ; | |
14751 | char *kwnames[] = { | |
14752 | (char *) "self",(char *) "m_leftDown", NULL | |
14753 | }; | |
14754 | ||
14755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14758 | arg2 = (bool) SWIG_AsBool(obj1); | |
14759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14760 | if (arg1) (arg1)->m_leftDown = arg2; |
14761 | ||
14762 | Py_INCREF(Py_None); resultobj = Py_None; | |
14763 | return resultobj; | |
14764 | fail: | |
14765 | return NULL; | |
14766 | } | |
14767 | ||
14768 | ||
14769 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14770 | PyObject *resultobj; | |
14771 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14772 | bool result; | |
14773 | PyObject * obj0 = 0 ; | |
14774 | char *kwnames[] = { | |
14775 | (char *) "self", NULL | |
14776 | }; | |
14777 | ||
14778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14781 | result = (bool) ((arg1)->m_leftDown); |
14782 | ||
4f89f6a3 RD |
14783 | { |
14784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14785 | } | |
d14a1e28 RD |
14786 | return resultobj; |
14787 | fail: | |
14788 | return NULL; | |
14789 | } | |
14790 | ||
14791 | ||
14792 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14793 | PyObject *resultobj; | |
14794 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14795 | bool arg2 ; | |
14796 | PyObject * obj0 = 0 ; | |
14797 | PyObject * obj1 = 0 ; | |
14798 | char *kwnames[] = { | |
14799 | (char *) "self",(char *) "m_middleDown", NULL | |
14800 | }; | |
14801 | ||
14802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14805 | arg2 = (bool) SWIG_AsBool(obj1); | |
14806 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14807 | if (arg1) (arg1)->m_middleDown = arg2; |
14808 | ||
14809 | Py_INCREF(Py_None); resultobj = Py_None; | |
14810 | return resultobj; | |
14811 | fail: | |
14812 | return NULL; | |
14813 | } | |
14814 | ||
14815 | ||
14816 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14817 | PyObject *resultobj; | |
14818 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14819 | bool result; | |
14820 | PyObject * obj0 = 0 ; | |
14821 | char *kwnames[] = { | |
14822 | (char *) "self", NULL | |
14823 | }; | |
14824 | ||
14825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14828 | result = (bool) ((arg1)->m_middleDown); |
14829 | ||
4f89f6a3 RD |
14830 | { |
14831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14832 | } | |
d14a1e28 RD |
14833 | return resultobj; |
14834 | fail: | |
14835 | return NULL; | |
14836 | } | |
14837 | ||
14838 | ||
14839 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14840 | PyObject *resultobj; | |
14841 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14842 | bool arg2 ; | |
14843 | PyObject * obj0 = 0 ; | |
14844 | PyObject * obj1 = 0 ; | |
14845 | char *kwnames[] = { | |
14846 | (char *) "self",(char *) "m_rightDown", NULL | |
14847 | }; | |
14848 | ||
14849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14852 | arg2 = (bool) SWIG_AsBool(obj1); | |
14853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14854 | if (arg1) (arg1)->m_rightDown = arg2; |
14855 | ||
14856 | Py_INCREF(Py_None); resultobj = Py_None; | |
14857 | return resultobj; | |
14858 | fail: | |
14859 | return NULL; | |
14860 | } | |
14861 | ||
14862 | ||
14863 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14864 | PyObject *resultobj; | |
14865 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14866 | bool result; | |
14867 | PyObject * obj0 = 0 ; | |
14868 | char *kwnames[] = { | |
14869 | (char *) "self", NULL | |
14870 | }; | |
14871 | ||
14872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14875 | result = (bool) ((arg1)->m_rightDown); |
14876 | ||
4f89f6a3 RD |
14877 | { |
14878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14879 | } | |
d14a1e28 RD |
14880 | return resultobj; |
14881 | fail: | |
14882 | return NULL; | |
14883 | } | |
14884 | ||
14885 | ||
14886 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14887 | PyObject *resultobj; | |
14888 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14889 | bool arg2 ; | |
14890 | PyObject * obj0 = 0 ; | |
14891 | PyObject * obj1 = 0 ; | |
14892 | char *kwnames[] = { | |
14893 | (char *) "self",(char *) "m_controlDown", NULL | |
14894 | }; | |
14895 | ||
14896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14899 | arg2 = (bool) SWIG_AsBool(obj1); | |
14900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14901 | if (arg1) (arg1)->m_controlDown = arg2; |
14902 | ||
14903 | Py_INCREF(Py_None); resultobj = Py_None; | |
14904 | return resultobj; | |
14905 | fail: | |
14906 | return NULL; | |
14907 | } | |
14908 | ||
14909 | ||
14910 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14911 | PyObject *resultobj; | |
14912 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14913 | bool result; | |
14914 | PyObject * obj0 = 0 ; | |
14915 | char *kwnames[] = { | |
14916 | (char *) "self", NULL | |
14917 | }; | |
14918 | ||
14919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14922 | result = (bool) ((arg1)->m_controlDown); |
14923 | ||
4f89f6a3 RD |
14924 | { |
14925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14926 | } | |
d14a1e28 RD |
14927 | return resultobj; |
14928 | fail: | |
14929 | return NULL; | |
14930 | } | |
14931 | ||
14932 | ||
14933 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14934 | PyObject *resultobj; | |
14935 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14936 | bool arg2 ; | |
14937 | PyObject * obj0 = 0 ; | |
14938 | PyObject * obj1 = 0 ; | |
14939 | char *kwnames[] = { | |
14940 | (char *) "self",(char *) "m_shiftDown", NULL | |
14941 | }; | |
14942 | ||
14943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14946 | arg2 = (bool) SWIG_AsBool(obj1); | |
14947 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14948 | if (arg1) (arg1)->m_shiftDown = arg2; |
14949 | ||
14950 | Py_INCREF(Py_None); resultobj = Py_None; | |
14951 | return resultobj; | |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14960 | bool result; | |
14961 | PyObject * obj0 = 0 ; | |
14962 | char *kwnames[] = { | |
14963 | (char *) "self", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14969 | result = (bool) ((arg1)->m_shiftDown); |
14970 | ||
4f89f6a3 RD |
14971 | { |
14972 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14973 | } | |
d14a1e28 RD |
14974 | return resultobj; |
14975 | fail: | |
14976 | return NULL; | |
14977 | } | |
14978 | ||
14979 | ||
14980 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14981 | PyObject *resultobj; | |
14982 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14983 | bool arg2 ; | |
14984 | PyObject * obj0 = 0 ; | |
14985 | PyObject * obj1 = 0 ; | |
14986 | char *kwnames[] = { | |
14987 | (char *) "self",(char *) "m_altDown", NULL | |
14988 | }; | |
14989 | ||
14990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14993 | arg2 = (bool) SWIG_AsBool(obj1); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14995 | if (arg1) (arg1)->m_altDown = arg2; |
14996 | ||
14997 | Py_INCREF(Py_None); resultobj = Py_None; | |
14998 | return resultobj; | |
14999 | fail: | |
15000 | return NULL; | |
15001 | } | |
15002 | ||
15003 | ||
15004 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15005 | PyObject *resultobj; | |
15006 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15007 | bool result; | |
15008 | PyObject * obj0 = 0 ; | |
15009 | char *kwnames[] = { | |
15010 | (char *) "self", NULL | |
15011 | }; | |
15012 | ||
15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15016 | result = (bool) ((arg1)->m_altDown); |
15017 | ||
4f89f6a3 RD |
15018 | { |
15019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15020 | } | |
d14a1e28 RD |
15021 | return resultobj; |
15022 | fail: | |
15023 | return NULL; | |
15024 | } | |
15025 | ||
15026 | ||
15027 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15028 | PyObject *resultobj; | |
15029 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15030 | bool arg2 ; | |
15031 | PyObject * obj0 = 0 ; | |
15032 | PyObject * obj1 = 0 ; | |
15033 | char *kwnames[] = { | |
15034 | (char *) "self",(char *) "m_metaDown", NULL | |
15035 | }; | |
15036 | ||
15037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15040 | arg2 = (bool) SWIG_AsBool(obj1); | |
15041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15042 | if (arg1) (arg1)->m_metaDown = arg2; |
15043 | ||
15044 | Py_INCREF(Py_None); resultobj = Py_None; | |
15045 | return resultobj; | |
15046 | fail: | |
15047 | return NULL; | |
15048 | } | |
15049 | ||
15050 | ||
15051 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15052 | PyObject *resultobj; | |
15053 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15054 | bool result; | |
15055 | PyObject * obj0 = 0 ; | |
15056 | char *kwnames[] = { | |
15057 | (char *) "self", NULL | |
15058 | }; | |
15059 | ||
15060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15063 | result = (bool) ((arg1)->m_metaDown); |
15064 | ||
4f89f6a3 RD |
15065 | { |
15066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15067 | } | |
d14a1e28 RD |
15068 | return resultobj; |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
15074 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15075 | PyObject *resultobj; | |
15076 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15077 | int arg2 ; | |
15078 | PyObject * obj0 = 0 ; | |
994141e6 | 15079 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15080 | char *kwnames[] = { |
15081 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15082 | }; | |
15083 | ||
994141e6 | 15084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15087 | arg2 = (int) SWIG_AsInt(obj1); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15089 | if (arg1) (arg1)->m_wheelRotation = arg2; |
15090 | ||
15091 | Py_INCREF(Py_None); resultobj = Py_None; | |
15092 | return resultobj; | |
15093 | fail: | |
15094 | return NULL; | |
15095 | } | |
15096 | ||
15097 | ||
15098 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15099 | PyObject *resultobj; | |
15100 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15101 | int result; | |
15102 | PyObject * obj0 = 0 ; | |
15103 | char *kwnames[] = { | |
15104 | (char *) "self", NULL | |
15105 | }; | |
15106 | ||
15107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15110 | result = (int) ((arg1)->m_wheelRotation); |
15111 | ||
15afbcd0 | 15112 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15113 | return resultobj; |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15122 | int arg2 ; | |
15123 | PyObject * obj0 = 0 ; | |
994141e6 | 15124 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15125 | char *kwnames[] = { |
15126 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15127 | }; | |
15128 | ||
994141e6 | 15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | arg2 = (int) SWIG_AsInt(obj1); | |
15133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15134 | if (arg1) (arg1)->m_wheelDelta = arg2; |
15135 | ||
15136 | Py_INCREF(Py_None); resultobj = Py_None; | |
15137 | return resultobj; | |
15138 | fail: | |
15139 | return NULL; | |
15140 | } | |
15141 | ||
15142 | ||
15143 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15144 | PyObject *resultobj; | |
15145 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15146 | int result; | |
15147 | PyObject * obj0 = 0 ; | |
15148 | char *kwnames[] = { | |
15149 | (char *) "self", NULL | |
15150 | }; | |
15151 | ||
15152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15155 | result = (int) ((arg1)->m_wheelDelta); |
15156 | ||
15afbcd0 | 15157 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15158 | return resultobj; |
15159 | fail: | |
15160 | return NULL; | |
15161 | } | |
15162 | ||
15163 | ||
15164 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15165 | PyObject *resultobj; | |
15166 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15167 | int arg2 ; | |
15168 | PyObject * obj0 = 0 ; | |
994141e6 | 15169 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15170 | char *kwnames[] = { |
15171 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15172 | }; | |
15173 | ||
994141e6 | 15174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15177 | arg2 = (int) SWIG_AsInt(obj1); | |
15178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15179 | if (arg1) (arg1)->m_linesPerAction = arg2; |
15180 | ||
15181 | Py_INCREF(Py_None); resultobj = Py_None; | |
15182 | return resultobj; | |
15183 | fail: | |
15184 | return NULL; | |
15185 | } | |
15186 | ||
15187 | ||
15188 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15189 | PyObject *resultobj; | |
15190 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15191 | int result; | |
15192 | PyObject * obj0 = 0 ; | |
15193 | char *kwnames[] = { | |
15194 | (char *) "self", NULL | |
15195 | }; | |
15196 | ||
15197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15200 | result = (int) ((arg1)->m_linesPerAction); |
15201 | ||
15afbcd0 | 15202 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15203 | return resultobj; |
15204 | fail: | |
15205 | return NULL; | |
15206 | } | |
15207 | ||
15208 | ||
15209 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15210 | PyObject *obj; | |
15211 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15212 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15213 | Py_INCREF(obj); | |
15214 | return Py_BuildValue((char *)""); | |
15215 | } | |
15216 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15217 | PyObject *resultobj; | |
e811c8ce RD |
15218 | int arg1 = (int) 0 ; |
15219 | int arg2 = (int) 0 ; | |
d14a1e28 | 15220 | wxSetCursorEvent *result; |
994141e6 RD |
15221 | PyObject * obj0 = 0 ; |
15222 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15223 | char *kwnames[] = { |
15224 | (char *) "x",(char *) "y", NULL | |
15225 | }; | |
15226 | ||
994141e6 RD |
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15228 | if (obj0) { | |
15afbcd0 RD |
15229 | arg1 = (int) SWIG_AsInt(obj0); |
15230 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15231 | } |
15232 | if (obj1) { | |
15afbcd0 RD |
15233 | arg2 = (int) SWIG_AsInt(obj1); |
15234 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15235 | } |
d14a1e28 RD |
15236 | { |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15239 | ||
15240 | wxPyEndAllowThreads(__tstate); | |
15241 | if (PyErr_Occurred()) SWIG_fail; | |
15242 | } | |
15afbcd0 | 15243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15244 | return resultobj; |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15253 | int result; |
d14a1e28 RD |
15254 | PyObject * obj0 = 0 ; |
15255 | char *kwnames[] = { | |
15256 | (char *) "self", NULL | |
15257 | }; | |
15258 | ||
15259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",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(); | |
e811c8ce | 15264 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15265 | |
15266 | wxPyEndAllowThreads(__tstate); | |
15267 | if (PyErr_Occurred()) SWIG_fail; | |
15268 | } | |
15afbcd0 | 15269 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15270 | return resultobj; |
15271 | fail: | |
15272 | return NULL; | |
15273 | } | |
15274 | ||
15275 | ||
15276 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15277 | PyObject *resultobj; | |
15278 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15279 | int result; |
d14a1e28 RD |
15280 | PyObject * obj0 = 0 ; |
15281 | char *kwnames[] = { | |
15282 | (char *) "self", NULL | |
15283 | }; | |
15284 | ||
15285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15288 | { |
15289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15290 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15291 | |
15292 | wxPyEndAllowThreads(__tstate); | |
15293 | if (PyErr_Occurred()) SWIG_fail; | |
15294 | } | |
15afbcd0 | 15295 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15296 | return resultobj; |
15297 | fail: | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
15302 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15303 | PyObject *resultobj; | |
15304 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15305 | wxCursor *arg2 = 0 ; | |
15306 | PyObject * obj0 = 0 ; | |
15307 | PyObject * obj1 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self",(char *) "cursor", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15316 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15317 | SWIG_fail; | |
d14a1e28 | 15318 | if (arg2 == NULL) { |
15afbcd0 RD |
15319 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15320 | SWIG_fail; | |
d14a1e28 RD |
15321 | } |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15325 | ||
15326 | wxPyEndAllowThreads(__tstate); | |
15327 | if (PyErr_Occurred()) SWIG_fail; | |
15328 | } | |
15329 | Py_INCREF(Py_None); resultobj = Py_None; | |
15330 | return resultobj; | |
15331 | fail: | |
15332 | return NULL; | |
15333 | } | |
15334 | ||
15335 | ||
15336 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15337 | PyObject *resultobj; | |
15338 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15339 | wxCursor *result; | |
15340 | PyObject * obj0 = 0 ; | |
15341 | char *kwnames[] = { | |
15342 | (char *) "self", NULL | |
15343 | }; | |
15344 | ||
15345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15348 | { |
15349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15350 | { | |
15351 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15352 | result = (wxCursor *) &_result_ref; | |
15353 | } | |
15354 | ||
15355 | wxPyEndAllowThreads(__tstate); | |
15356 | if (PyErr_Occurred()) SWIG_fail; | |
15357 | } | |
4276dc52 RD |
15358 | { |
15359 | wxCursor* resultptr = new wxCursor(*result); | |
15360 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15361 | } | |
d14a1e28 RD |
15362 | return resultobj; |
15363 | fail: | |
15364 | return NULL; | |
15365 | } | |
15366 | ||
15367 | ||
15368 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15369 | PyObject *resultobj; | |
15370 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15371 | bool result; | |
15372 | PyObject * obj0 = 0 ; | |
15373 | char *kwnames[] = { | |
15374 | (char *) "self", NULL | |
15375 | }; | |
15376 | ||
15377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15380 | { |
15381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15382 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15383 | ||
15384 | wxPyEndAllowThreads(__tstate); | |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
15386 | } | |
4f89f6a3 RD |
15387 | { |
15388 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15389 | } | |
d14a1e28 RD |
15390 | return resultobj; |
15391 | fail: | |
15392 | return NULL; | |
15393 | } | |
15394 | ||
15395 | ||
15396 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15397 | PyObject *obj; | |
15398 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15399 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15400 | Py_INCREF(obj); | |
15401 | return Py_BuildValue((char *)""); | |
15402 | } | |
15403 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15404 | PyObject *resultobj; | |
15405 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15406 | wxKeyEvent *result; | |
994141e6 | 15407 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15408 | char *kwnames[] = { |
15409 | (char *) "keyType", NULL | |
15410 | }; | |
15411 | ||
994141e6 RD |
15412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15413 | if (obj0) { | |
15afbcd0 RD |
15414 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15415 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15416 | } |
d14a1e28 RD |
15417 | { |
15418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15419 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15420 | ||
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15afbcd0 | 15424 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15425 | return resultobj; |
15426 | fail: | |
15427 | return NULL; | |
15428 | } | |
15429 | ||
15430 | ||
15431 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15432 | PyObject *resultobj; | |
15433 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15434 | bool result; | |
15435 | PyObject * obj0 = 0 ; | |
15436 | char *kwnames[] = { | |
15437 | (char *) "self", NULL | |
15438 | }; | |
15439 | ||
15440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15443 | { |
15444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15445 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15446 | ||
15447 | wxPyEndAllowThreads(__tstate); | |
15448 | if (PyErr_Occurred()) SWIG_fail; | |
15449 | } | |
4f89f6a3 RD |
15450 | { |
15451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15452 | } | |
d14a1e28 RD |
15453 | return resultobj; |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
15459 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15460 | PyObject *resultobj; | |
15461 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15462 | bool result; | |
15463 | PyObject * obj0 = 0 ; | |
15464 | char *kwnames[] = { | |
15465 | (char *) "self", NULL | |
15466 | }; | |
15467 | ||
15468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15471 | { |
15472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15473 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15474 | ||
15475 | wxPyEndAllowThreads(__tstate); | |
15476 | if (PyErr_Occurred()) SWIG_fail; | |
15477 | } | |
4f89f6a3 RD |
15478 | { |
15479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15480 | } | |
d14a1e28 RD |
15481 | return resultobj; |
15482 | fail: | |
15483 | return NULL; | |
15484 | } | |
15485 | ||
15486 | ||
15487 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15490 | bool result; | |
15491 | PyObject * obj0 = 0 ; | |
15492 | char *kwnames[] = { | |
15493 | (char *) "self", NULL | |
15494 | }; | |
15495 | ||
15496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15499 | { |
15500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15501 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15502 | ||
15503 | wxPyEndAllowThreads(__tstate); | |
15504 | if (PyErr_Occurred()) SWIG_fail; | |
15505 | } | |
4f89f6a3 RD |
15506 | { |
15507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15508 | } | |
d14a1e28 RD |
15509 | return resultobj; |
15510 | fail: | |
15511 | return NULL; | |
15512 | } | |
15513 | ||
15514 | ||
15515 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15516 | PyObject *resultobj; | |
15517 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15518 | bool result; | |
15519 | PyObject * obj0 = 0 ; | |
15520 | char *kwnames[] = { | |
15521 | (char *) "self", NULL | |
15522 | }; | |
15523 | ||
15524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15527 | { |
15528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15529 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15530 | ||
15531 | wxPyEndAllowThreads(__tstate); | |
15532 | if (PyErr_Occurred()) SWIG_fail; | |
15533 | } | |
4f89f6a3 RD |
15534 | { |
15535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15536 | } | |
d14a1e28 RD |
15537 | return resultobj; |
15538 | fail: | |
15539 | return NULL; | |
15540 | } | |
15541 | ||
15542 | ||
412d302d RD |
15543 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) { |
15544 | PyObject *resultobj; | |
15545 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15546 | bool result; | |
15547 | PyObject * obj0 = 0 ; | |
15548 | char *kwnames[] = { | |
15549 | (char *) "self", NULL | |
15550 | }; | |
15551 | ||
15552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15555 | { | |
15556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15557 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
15558 | ||
15559 | wxPyEndAllowThreads(__tstate); | |
15560 | if (PyErr_Occurred()) SWIG_fail; | |
15561 | } | |
15562 | { | |
15563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15564 | } | |
15565 | return resultobj; | |
15566 | fail: | |
15567 | return NULL; | |
15568 | } | |
15569 | ||
15570 | ||
d14a1e28 RD |
15571 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { |
15572 | PyObject *resultobj; | |
15573 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15574 | bool result; | |
15575 | PyObject * obj0 = 0 ; | |
15576 | char *kwnames[] = { | |
15577 | (char *) "self", NULL | |
15578 | }; | |
15579 | ||
15580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15583 | { |
15584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15585 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15586 | ||
15587 | wxPyEndAllowThreads(__tstate); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | } | |
4f89f6a3 RD |
15590 | { |
15591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15592 | } | |
d14a1e28 RD |
15593 | return resultobj; |
15594 | fail: | |
15595 | return NULL; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15600 | PyObject *resultobj; | |
15601 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15602 | int result; | |
15603 | PyObject * obj0 = 0 ; | |
15604 | char *kwnames[] = { | |
15605 | (char *) "self", NULL | |
15606 | }; | |
15607 | ||
15608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15611 | { |
15612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15613 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15614 | ||
15615 | wxPyEndAllowThreads(__tstate); | |
15616 | if (PyErr_Occurred()) SWIG_fail; | |
15617 | } | |
15afbcd0 | 15618 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15619 | return resultobj; |
15620 | fail: | |
15621 | return NULL; | |
15622 | } | |
15623 | ||
15624 | ||
19272049 | 15625 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
15626 | PyObject *resultobj; |
15627 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15628 | int result; | |
15629 | PyObject * obj0 = 0 ; | |
15630 | char *kwnames[] = { | |
15631 | (char *) "self", NULL | |
15632 | }; | |
15633 | ||
19272049 | 15634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
15635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15637 | { |
15638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272049 | 15639 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d14a1e28 RD |
15640 | |
15641 | wxPyEndAllowThreads(__tstate); | |
15642 | if (PyErr_Occurred()) SWIG_fail; | |
15643 | } | |
15afbcd0 | 15644 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15645 | return resultobj; |
15646 | fail: | |
15647 | return NULL; | |
15648 | } | |
15649 | ||
15650 | ||
15651 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15654 | unsigned int result; |
d14a1e28 RD |
15655 | PyObject * obj0 = 0 ; |
15656 | char *kwnames[] = { | |
15657 | (char *) "self", NULL | |
15658 | }; | |
15659 | ||
15660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15663 | { |
15664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15665 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15666 | |
15667 | wxPyEndAllowThreads(__tstate); | |
15668 | if (PyErr_Occurred()) SWIG_fail; | |
15669 | } | |
15afbcd0 | 15670 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15671 | return resultobj; |
15672 | fail: | |
15673 | return NULL; | |
15674 | } | |
15675 | ||
15676 | ||
15677 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15678 | PyObject *resultobj; | |
15679 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15680 | unsigned int result; |
d14a1e28 RD |
15681 | PyObject * obj0 = 0 ; |
15682 | char *kwnames[] = { | |
15683 | (char *) "self", NULL | |
15684 | }; | |
15685 | ||
15686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15689 | { |
15690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15691 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15692 | |
15693 | wxPyEndAllowThreads(__tstate); | |
15694 | if (PyErr_Occurred()) SWIG_fail; | |
15695 | } | |
15afbcd0 | 15696 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15697 | return resultobj; |
15698 | fail: | |
15699 | return NULL; | |
15700 | } | |
15701 | ||
15702 | ||
15703 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15704 | PyObject *resultobj; | |
15705 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15706 | wxPoint result; | |
15707 | PyObject * obj0 = 0 ; | |
15708 | char *kwnames[] = { | |
15709 | (char *) "self", NULL | |
15710 | }; | |
15711 | ||
15712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15715 | { |
15716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15717 | result = (arg1)->GetPosition(); | |
15718 | ||
15719 | wxPyEndAllowThreads(__tstate); | |
15720 | if (PyErr_Occurred()) SWIG_fail; | |
15721 | } | |
15722 | { | |
15723 | wxPoint * resultptr; | |
15724 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 15725 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15726 | } |
15727 | return resultobj; | |
15728 | fail: | |
15729 | return NULL; | |
15730 | } | |
15731 | ||
15732 | ||
15733 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15734 | PyObject *resultobj; | |
15735 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15736 | long *arg2 = (long *) 0 ; | |
15737 | long *arg3 = (long *) 0 ; | |
15738 | long temp2 ; | |
15739 | long temp3 ; | |
15740 | PyObject * obj0 = 0 ; | |
15741 | char *kwnames[] = { | |
15742 | (char *) "self", NULL | |
15743 | }; | |
15744 | ||
15745 | arg2 = &temp2; | |
15746 | arg3 = &temp3; | |
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15750 | { |
15751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15752 | (arg1)->GetPosition(arg2,arg3); | |
15753 | ||
15754 | wxPyEndAllowThreads(__tstate); | |
15755 | if (PyErr_Occurred()) SWIG_fail; | |
15756 | } | |
15757 | Py_INCREF(Py_None); resultobj = Py_None; | |
15758 | { | |
15759 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15760 | resultobj = t_output_helper(resultobj,o); | |
15761 | } | |
15762 | { | |
15763 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15764 | resultobj = t_output_helper(resultobj,o); | |
15765 | } | |
15766 | return resultobj; | |
15767 | fail: | |
15768 | return NULL; | |
15769 | } | |
15770 | ||
15771 | ||
15772 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15773 | PyObject *resultobj; | |
15774 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15775 | int result; |
d14a1e28 RD |
15776 | PyObject * obj0 = 0 ; |
15777 | char *kwnames[] = { | |
15778 | (char *) "self", NULL | |
15779 | }; | |
15780 | ||
15781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15784 | { |
15785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15786 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15787 | |
15788 | wxPyEndAllowThreads(__tstate); | |
15789 | if (PyErr_Occurred()) SWIG_fail; | |
15790 | } | |
15afbcd0 | 15791 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15792 | return resultobj; |
15793 | fail: | |
15794 | return NULL; | |
15795 | } | |
15796 | ||
15797 | ||
15798 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15799 | PyObject *resultobj; | |
15800 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15801 | int result; |
d14a1e28 RD |
15802 | PyObject * obj0 = 0 ; |
15803 | char *kwnames[] = { | |
15804 | (char *) "self", NULL | |
15805 | }; | |
15806 | ||
15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15810 | { |
15811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15812 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15813 | |
15814 | wxPyEndAllowThreads(__tstate); | |
15815 | if (PyErr_Occurred()) SWIG_fail; | |
15816 | } | |
15afbcd0 | 15817 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15818 | return resultobj; |
15819 | fail: | |
15820 | return NULL; | |
15821 | } | |
15822 | ||
15823 | ||
15824 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15825 | PyObject *resultobj; | |
15826 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15827 | int arg2 ; |
d14a1e28 | 15828 | PyObject * obj0 = 0 ; |
994141e6 | 15829 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15830 | char *kwnames[] = { |
15831 | (char *) "self",(char *) "m_x", NULL | |
15832 | }; | |
15833 | ||
994141e6 | 15834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15837 | arg2 = (int) SWIG_AsInt(obj1); | |
15838 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15839 | if (arg1) (arg1)->m_x = arg2; |
15840 | ||
15841 | Py_INCREF(Py_None); resultobj = Py_None; | |
15842 | return resultobj; | |
15843 | fail: | |
15844 | return NULL; | |
15845 | } | |
15846 | ||
15847 | ||
15848 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15849 | PyObject *resultobj; | |
15850 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15851 | int result; |
d14a1e28 RD |
15852 | PyObject * obj0 = 0 ; |
15853 | char *kwnames[] = { | |
15854 | (char *) "self", NULL | |
15855 | }; | |
15856 | ||
15857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15860 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15861 | |
15afbcd0 | 15862 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15863 | return resultobj; |
15864 | fail: | |
15865 | return NULL; | |
15866 | } | |
15867 | ||
15868 | ||
15869 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15870 | PyObject *resultobj; | |
15871 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15872 | int arg2 ; |
d14a1e28 | 15873 | PyObject * obj0 = 0 ; |
994141e6 | 15874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15875 | char *kwnames[] = { |
15876 | (char *) "self",(char *) "m_y", NULL | |
15877 | }; | |
15878 | ||
994141e6 | 15879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15882 | arg2 = (int) SWIG_AsInt(obj1); | |
15883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15884 | if (arg1) (arg1)->m_y = arg2; |
15885 | ||
15886 | Py_INCREF(Py_None); resultobj = Py_None; | |
15887 | return resultobj; | |
15888 | fail: | |
15889 | return NULL; | |
15890 | } | |
15891 | ||
15892 | ||
15893 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15894 | PyObject *resultobj; | |
15895 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15896 | int result; |
d14a1e28 RD |
15897 | PyObject * obj0 = 0 ; |
15898 | char *kwnames[] = { | |
15899 | (char *) "self", NULL | |
15900 | }; | |
15901 | ||
15902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15905 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15906 | |
15afbcd0 | 15907 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15908 | return resultobj; |
15909 | fail: | |
15910 | return NULL; | |
15911 | } | |
15912 | ||
15913 | ||
15914 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15915 | PyObject *resultobj; | |
15916 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15917 | long arg2 ; | |
15918 | PyObject * obj0 = 0 ; | |
994141e6 | 15919 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15920 | char *kwnames[] = { |
15921 | (char *) "self",(char *) "m_keyCode", NULL | |
15922 | }; | |
15923 | ||
994141e6 | 15924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15927 | arg2 = (long) SWIG_AsLong(obj1); | |
15928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15929 | if (arg1) (arg1)->m_keyCode = arg2; |
15930 | ||
15931 | Py_INCREF(Py_None); resultobj = Py_None; | |
15932 | return resultobj; | |
15933 | fail: | |
15934 | return NULL; | |
15935 | } | |
15936 | ||
15937 | ||
15938 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15939 | PyObject *resultobj; | |
15940 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15941 | long result; | |
15942 | PyObject * obj0 = 0 ; | |
15943 | char *kwnames[] = { | |
15944 | (char *) "self", NULL | |
15945 | }; | |
15946 | ||
15947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15950 | result = (long) ((arg1)->m_keyCode); |
15951 | ||
15afbcd0 | 15952 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15953 | return resultobj; |
15954 | fail: | |
15955 | return NULL; | |
15956 | } | |
15957 | ||
15958 | ||
15959 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15960 | PyObject *resultobj; | |
15961 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15962 | bool arg2 ; | |
15963 | PyObject * obj0 = 0 ; | |
15964 | PyObject * obj1 = 0 ; | |
15965 | char *kwnames[] = { | |
15966 | (char *) "self",(char *) "m_controlDown", NULL | |
15967 | }; | |
15968 | ||
15969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15972 | arg2 = (bool) SWIG_AsBool(obj1); | |
15973 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15974 | if (arg1) (arg1)->m_controlDown = arg2; |
15975 | ||
15976 | Py_INCREF(Py_None); resultobj = Py_None; | |
15977 | return resultobj; | |
15978 | fail: | |
15979 | return NULL; | |
15980 | } | |
15981 | ||
15982 | ||
15983 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15984 | PyObject *resultobj; | |
15985 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15986 | bool result; | |
15987 | PyObject * obj0 = 0 ; | |
15988 | char *kwnames[] = { | |
15989 | (char *) "self", NULL | |
15990 | }; | |
15991 | ||
15992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15995 | result = (bool) ((arg1)->m_controlDown); |
15996 | ||
4f89f6a3 RD |
15997 | { |
15998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15999 | } | |
d14a1e28 RD |
16000 | return resultobj; |
16001 | fail: | |
16002 | return NULL; | |
16003 | } | |
16004 | ||
16005 | ||
16006 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16007 | PyObject *resultobj; | |
16008 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16009 | bool arg2 ; | |
16010 | PyObject * obj0 = 0 ; | |
16011 | PyObject * obj1 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self",(char *) "m_shiftDown", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16019 | arg2 = (bool) SWIG_AsBool(obj1); | |
16020 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16021 | if (arg1) (arg1)->m_shiftDown = arg2; |
16022 | ||
16023 | Py_INCREF(Py_None); resultobj = Py_None; | |
16024 | return resultobj; | |
16025 | fail: | |
16026 | return NULL; | |
16027 | } | |
16028 | ||
16029 | ||
16030 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16031 | PyObject *resultobj; | |
16032 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16033 | bool result; | |
16034 | PyObject * obj0 = 0 ; | |
16035 | char *kwnames[] = { | |
16036 | (char *) "self", NULL | |
16037 | }; | |
16038 | ||
16039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16042 | result = (bool) ((arg1)->m_shiftDown); |
16043 | ||
4f89f6a3 RD |
16044 | { |
16045 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16046 | } | |
d14a1e28 RD |
16047 | return resultobj; |
16048 | fail: | |
16049 | return NULL; | |
16050 | } | |
16051 | ||
16052 | ||
16053 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16054 | PyObject *resultobj; | |
16055 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16056 | bool arg2 ; | |
16057 | PyObject * obj0 = 0 ; | |
16058 | PyObject * obj1 = 0 ; | |
16059 | char *kwnames[] = { | |
16060 | (char *) "self",(char *) "m_altDown", NULL | |
16061 | }; | |
16062 | ||
16063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16066 | arg2 = (bool) SWIG_AsBool(obj1); | |
16067 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16068 | if (arg1) (arg1)->m_altDown = arg2; |
16069 | ||
16070 | Py_INCREF(Py_None); resultobj = Py_None; | |
16071 | return resultobj; | |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16078 | PyObject *resultobj; | |
16079 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16080 | bool result; | |
16081 | PyObject * obj0 = 0 ; | |
16082 | char *kwnames[] = { | |
16083 | (char *) "self", NULL | |
16084 | }; | |
16085 | ||
16086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16089 | result = (bool) ((arg1)->m_altDown); |
16090 | ||
4f89f6a3 RD |
16091 | { |
16092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16093 | } | |
d14a1e28 RD |
16094 | return resultobj; |
16095 | fail: | |
16096 | return NULL; | |
16097 | } | |
16098 | ||
16099 | ||
16100 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16101 | PyObject *resultobj; | |
16102 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16103 | bool arg2 ; | |
16104 | PyObject * obj0 = 0 ; | |
16105 | PyObject * obj1 = 0 ; | |
16106 | char *kwnames[] = { | |
16107 | (char *) "self",(char *) "m_metaDown", NULL | |
16108 | }; | |
16109 | ||
16110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16113 | arg2 = (bool) SWIG_AsBool(obj1); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16115 | if (arg1) (arg1)->m_metaDown = arg2; |
16116 | ||
16117 | Py_INCREF(Py_None); resultobj = Py_None; | |
16118 | return resultobj; | |
16119 | fail: | |
16120 | return NULL; | |
16121 | } | |
16122 | ||
16123 | ||
16124 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16125 | PyObject *resultobj; | |
16126 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16127 | bool result; | |
16128 | PyObject * obj0 = 0 ; | |
16129 | char *kwnames[] = { | |
16130 | (char *) "self", NULL | |
16131 | }; | |
16132 | ||
16133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16136 | result = (bool) ((arg1)->m_metaDown); |
16137 | ||
4f89f6a3 RD |
16138 | { |
16139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16140 | } | |
d14a1e28 RD |
16141 | return resultobj; |
16142 | fail: | |
16143 | return NULL; | |
16144 | } | |
16145 | ||
16146 | ||
16147 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16148 | PyObject *resultobj; | |
16149 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16150 | bool arg2 ; | |
16151 | PyObject * obj0 = 0 ; | |
16152 | PyObject * obj1 = 0 ; | |
16153 | char *kwnames[] = { | |
16154 | (char *) "self",(char *) "m_scanCode", NULL | |
16155 | }; | |
16156 | ||
16157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16160 | arg2 = (bool) SWIG_AsBool(obj1); | |
16161 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16162 | if (arg1) (arg1)->m_scanCode = arg2; |
16163 | ||
16164 | Py_INCREF(Py_None); resultobj = Py_None; | |
16165 | return resultobj; | |
16166 | fail: | |
16167 | return NULL; | |
16168 | } | |
16169 | ||
16170 | ||
16171 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16172 | PyObject *resultobj; | |
16173 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16174 | bool result; | |
16175 | PyObject * obj0 = 0 ; | |
16176 | char *kwnames[] = { | |
16177 | (char *) "self", NULL | |
16178 | }; | |
16179 | ||
16180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16183 | result = (bool) ((arg1)->m_scanCode); |
16184 | ||
4f89f6a3 RD |
16185 | { |
16186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16187 | } | |
d14a1e28 RD |
16188 | return resultobj; |
16189 | fail: | |
16190 | return NULL; | |
16191 | } | |
16192 | ||
16193 | ||
16194 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16195 | PyObject *resultobj; | |
16196 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16197 | unsigned int arg2 ; |
d14a1e28 RD |
16198 | PyObject * obj0 = 0 ; |
16199 | PyObject * obj1 = 0 ; | |
16200 | char *kwnames[] = { | |
16201 | (char *) "self",(char *) "m_rawCode", NULL | |
16202 | }; | |
16203 | ||
16204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16207 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16209 | if (arg1) (arg1)->m_rawCode = arg2; |
16210 | ||
16211 | Py_INCREF(Py_None); resultobj = Py_None; | |
16212 | return resultobj; | |
16213 | fail: | |
16214 | return NULL; | |
16215 | } | |
16216 | ||
16217 | ||
16218 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16219 | PyObject *resultobj; | |
16220 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16221 | unsigned int result; |
d14a1e28 RD |
16222 | PyObject * obj0 = 0 ; |
16223 | char *kwnames[] = { | |
16224 | (char *) "self", NULL | |
16225 | }; | |
16226 | ||
16227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16230 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16231 | |
15afbcd0 | 16232 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16233 | return resultobj; |
16234 | fail: | |
16235 | return NULL; | |
16236 | } | |
16237 | ||
16238 | ||
16239 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16240 | PyObject *resultobj; | |
16241 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16242 | unsigned int arg2 ; |
d14a1e28 RD |
16243 | PyObject * obj0 = 0 ; |
16244 | PyObject * obj1 = 0 ; | |
16245 | char *kwnames[] = { | |
16246 | (char *) "self",(char *) "m_rawFlags", NULL | |
16247 | }; | |
16248 | ||
16249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16252 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16253 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16254 | if (arg1) (arg1)->m_rawFlags = arg2; |
16255 | ||
16256 | Py_INCREF(Py_None); resultobj = Py_None; | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj; | |
16265 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16266 | unsigned int result; |
d14a1e28 RD |
16267 | PyObject * obj0 = 0 ; |
16268 | char *kwnames[] = { | |
16269 | (char *) "self", NULL | |
16270 | }; | |
16271 | ||
16272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16275 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16276 | |
15afbcd0 | 16277 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16278 | return resultobj; |
16279 | fail: | |
16280 | return NULL; | |
16281 | } | |
16282 | ||
16283 | ||
16284 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16285 | PyObject *obj; | |
16286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16287 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16288 | Py_INCREF(obj); | |
16289 | return Py_BuildValue((char *)""); | |
16290 | } | |
16291 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16292 | PyObject *resultobj; | |
16293 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16294 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16295 | int arg2 = (int) 0 ; | |
16296 | wxSizeEvent *result; | |
16297 | wxSize temp1 ; | |
16298 | PyObject * obj0 = 0 ; | |
994141e6 | 16299 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16300 | char *kwnames[] = { |
16301 | (char *) "sz",(char *) "winid", NULL | |
16302 | }; | |
16303 | ||
994141e6 | 16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16305 | if (obj0) { |
16306 | { | |
16307 | arg1 = &temp1; | |
16308 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16309 | } | |
16310 | } | |
994141e6 | 16311 | if (obj1) { |
15afbcd0 RD |
16312 | arg2 = (int) SWIG_AsInt(obj1); |
16313 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16314 | } |
d14a1e28 RD |
16315 | { |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16318 | ||
16319 | wxPyEndAllowThreads(__tstate); | |
16320 | if (PyErr_Occurred()) SWIG_fail; | |
16321 | } | |
15afbcd0 | 16322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16323 | return resultobj; |
16324 | fail: | |
16325 | return NULL; | |
16326 | } | |
16327 | ||
16328 | ||
16329 | static PyObject *_wrap_SizeEvent_GetSize(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_GetSize",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 | { |
16342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16343 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16344 | ||
16345 | wxPyEndAllowThreads(__tstate); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
16348 | { | |
16349 | wxSize * resultptr; | |
16350 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16352 | } |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
16359 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16360 | PyObject *resultobj; | |
16361 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16362 | wxRect result; | |
16363 | PyObject * obj0 = 0 ; | |
16364 | char *kwnames[] = { | |
16365 | (char *) "self", NULL | |
16366 | }; | |
16367 | ||
16368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16371 | { |
16372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16373 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16374 | ||
16375 | wxPyEndAllowThreads(__tstate); | |
16376 | if (PyErr_Occurred()) SWIG_fail; | |
16377 | } | |
16378 | { | |
16379 | wxRect * resultptr; | |
16380 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16382 | } |
16383 | return resultobj; | |
16384 | fail: | |
16385 | return NULL; | |
16386 | } | |
16387 | ||
16388 | ||
16389 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16390 | PyObject *resultobj; | |
16391 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16392 | wxRect arg2 ; | |
16393 | wxRect *argp2 ; | |
16394 | PyObject * obj0 = 0 ; | |
16395 | PyObject * obj1 = 0 ; | |
16396 | char *kwnames[] = { | |
16397 | (char *) "self",(char *) "rect", NULL | |
16398 | }; | |
16399 | ||
16400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16403 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16404 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16405 | arg2 = *argp2; | |
d14a1e28 RD |
16406 | { |
16407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16408 | (arg1)->SetRect(arg2); | |
16409 | ||
16410 | wxPyEndAllowThreads(__tstate); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
16413 | Py_INCREF(Py_None); resultobj = Py_None; | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16423 | wxSize arg2 ; | |
16424 | wxSize *argp2 ; | |
16425 | PyObject * obj0 = 0 ; | |
16426 | PyObject * obj1 = 0 ; | |
16427 | char *kwnames[] = { | |
16428 | (char *) "self",(char *) "size", NULL | |
16429 | }; | |
16430 | ||
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16434 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16435 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16436 | arg2 = *argp2; | |
d14a1e28 RD |
16437 | { |
16438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16439 | wxSizeEvent_SetSize(arg1,arg2); | |
16440 | ||
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
16444 | Py_INCREF(Py_None); resultobj = Py_None; | |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
16451 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16452 | PyObject *resultobj; | |
16453 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16454 | wxSize *arg2 = (wxSize *) 0 ; | |
16455 | PyObject * obj0 = 0 ; | |
16456 | PyObject * obj1 = 0 ; | |
16457 | char *kwnames[] = { | |
16458 | (char *) "self",(char *) "m_size", NULL | |
16459 | }; | |
16460 | ||
16461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16464 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16466 | if (arg1) (arg1)->m_size = *arg2; |
16467 | ||
16468 | Py_INCREF(Py_None); resultobj = Py_None; | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16476 | PyObject *resultobj; | |
16477 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16478 | wxSize *result; | |
16479 | PyObject * obj0 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16487 | result = (wxSize *)& ((arg1)->m_size); |
16488 | ||
15afbcd0 | 16489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16490 | return resultobj; |
16491 | fail: | |
16492 | return NULL; | |
16493 | } | |
16494 | ||
16495 | ||
16496 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16497 | PyObject *resultobj; | |
16498 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16499 | wxRect *arg2 = (wxRect *) 0 ; | |
16500 | PyObject * obj0 = 0 ; | |
16501 | PyObject * obj1 = 0 ; | |
16502 | char *kwnames[] = { | |
16503 | (char *) "self",(char *) "m_rect", NULL | |
16504 | }; | |
16505 | ||
16506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16511 | if (arg1) (arg1)->m_rect = *arg2; |
16512 | ||
16513 | Py_INCREF(Py_None); resultobj = Py_None; | |
16514 | return resultobj; | |
16515 | fail: | |
16516 | return NULL; | |
16517 | } | |
16518 | ||
16519 | ||
16520 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16521 | PyObject *resultobj; | |
16522 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16523 | wxRect *result; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | char *kwnames[] = { | |
16526 | (char *) "self", NULL | |
16527 | }; | |
16528 | ||
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16532 | result = (wxRect *)& ((arg1)->m_rect); |
16533 | ||
15afbcd0 | 16534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16535 | return resultobj; |
16536 | fail: | |
16537 | return NULL; | |
16538 | } | |
16539 | ||
16540 | ||
16541 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16542 | PyObject *obj; | |
16543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16544 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16545 | Py_INCREF(obj); | |
16546 | return Py_BuildValue((char *)""); | |
16547 | } | |
16548 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16549 | PyObject *resultobj; | |
16550 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16551 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16552 | int arg2 = (int) 0 ; | |
16553 | wxMoveEvent *result; | |
16554 | wxPoint temp1 ; | |
16555 | PyObject * obj0 = 0 ; | |
994141e6 | 16556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16557 | char *kwnames[] = { |
16558 | (char *) "pos",(char *) "winid", NULL | |
16559 | }; | |
16560 | ||
994141e6 | 16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16562 | if (obj0) { |
16563 | { | |
16564 | arg1 = &temp1; | |
16565 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16566 | } | |
16567 | } | |
994141e6 | 16568 | if (obj1) { |
15afbcd0 RD |
16569 | arg2 = (int) SWIG_AsInt(obj1); |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16571 | } |
d14a1e28 RD |
16572 | { |
16573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16574 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16575 | ||
16576 | wxPyEndAllowThreads(__tstate); | |
16577 | if (PyErr_Occurred()) SWIG_fail; | |
16578 | } | |
15afbcd0 | 16579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16580 | return resultobj; |
16581 | fail: | |
16582 | return NULL; | |
16583 | } | |
16584 | ||
16585 | ||
16586 | static PyObject *_wrap_MoveEvent_GetPosition(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_GetPosition",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 | { |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | { | |
16606 | wxPoint * resultptr; | |
16607 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 16608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16609 | } |
16610 | return resultobj; | |
16611 | fail: | |
16612 | return NULL; | |
16613 | } | |
16614 | ||
16615 | ||
16616 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16617 | PyObject *resultobj; | |
16618 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16619 | wxRect result; | |
16620 | PyObject * obj0 = 0 ; | |
16621 | char *kwnames[] = { | |
16622 | (char *) "self", NULL | |
16623 | }; | |
16624 | ||
16625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16628 | { |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16630 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16631 | ||
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | wxRect * resultptr; | |
16637 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16639 | } |
16640 | return resultobj; | |
16641 | fail: | |
16642 | return NULL; | |
16643 | } | |
16644 | ||
16645 | ||
16646 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16647 | PyObject *resultobj; | |
16648 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16649 | wxRect arg2 ; | |
16650 | wxRect *argp2 ; | |
16651 | PyObject * obj0 = 0 ; | |
16652 | PyObject * obj1 = 0 ; | |
16653 | char *kwnames[] = { | |
16654 | (char *) "self",(char *) "rect", NULL | |
16655 | }; | |
16656 | ||
16657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16660 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16661 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16662 | arg2 = *argp2; | |
d14a1e28 RD |
16663 | { |
16664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16665 | (arg1)->SetRect(arg2); | |
16666 | ||
16667 | wxPyEndAllowThreads(__tstate); | |
16668 | if (PyErr_Occurred()) SWIG_fail; | |
16669 | } | |
16670 | Py_INCREF(Py_None); resultobj = Py_None; | |
16671 | return resultobj; | |
16672 | fail: | |
16673 | return NULL; | |
16674 | } | |
16675 | ||
16676 | ||
16677 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16678 | PyObject *resultobj; | |
16679 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16680 | wxPoint arg2 ; | |
16681 | wxPoint *argp2 ; | |
16682 | PyObject * obj0 = 0 ; | |
16683 | PyObject * obj1 = 0 ; | |
16684 | char *kwnames[] = { | |
16685 | (char *) "self",(char *) "pos", NULL | |
16686 | }; | |
16687 | ||
16688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16691 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16692 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16693 | arg2 = *argp2; | |
d14a1e28 RD |
16694 | { |
16695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16696 | wxMoveEvent_SetPosition(arg1,arg2); | |
16697 | ||
16698 | wxPyEndAllowThreads(__tstate); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
16700 | } | |
16701 | Py_INCREF(Py_None); resultobj = Py_None; | |
16702 | return resultobj; | |
16703 | fail: | |
16704 | return NULL; | |
16705 | } | |
16706 | ||
16707 | ||
16708 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16709 | PyObject *resultobj; | |
16710 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16711 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16712 | PyObject * obj0 = 0 ; | |
16713 | PyObject * obj1 = 0 ; | |
16714 | char *kwnames[] = { | |
16715 | (char *) "self",(char *) "m_pos", NULL | |
16716 | }; | |
16717 | ||
16718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16723 | if (arg1) (arg1)->m_pos = *arg2; |
16724 | ||
16725 | Py_INCREF(Py_None); resultobj = Py_None; | |
16726 | return resultobj; | |
16727 | fail: | |
16728 | return NULL; | |
16729 | } | |
16730 | ||
16731 | ||
16732 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16733 | PyObject *resultobj; | |
16734 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16735 | wxPoint *result; | |
16736 | PyObject * obj0 = 0 ; | |
16737 | char *kwnames[] = { | |
16738 | (char *) "self", NULL | |
16739 | }; | |
16740 | ||
16741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16744 | result = (wxPoint *)& ((arg1)->m_pos); |
16745 | ||
15afbcd0 | 16746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16747 | return resultobj; |
16748 | fail: | |
16749 | return NULL; | |
16750 | } | |
16751 | ||
16752 | ||
16753 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16754 | PyObject *resultobj; | |
16755 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16756 | wxRect *arg2 = (wxRect *) 0 ; | |
16757 | PyObject * obj0 = 0 ; | |
16758 | PyObject * obj1 = 0 ; | |
16759 | char *kwnames[] = { | |
16760 | (char *) "self",(char *) "m_rect", NULL | |
16761 | }; | |
16762 | ||
16763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16768 | if (arg1) (arg1)->m_rect = *arg2; |
16769 | ||
16770 | Py_INCREF(Py_None); resultobj = Py_None; | |
16771 | return resultobj; | |
16772 | fail: | |
16773 | return NULL; | |
16774 | } | |
16775 | ||
16776 | ||
16777 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16778 | PyObject *resultobj; | |
16779 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16780 | wxRect *result; | |
16781 | PyObject * obj0 = 0 ; | |
16782 | char *kwnames[] = { | |
16783 | (char *) "self", NULL | |
16784 | }; | |
16785 | ||
16786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16789 | result = (wxRect *)& ((arg1)->m_rect); |
16790 | ||
15afbcd0 | 16791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16792 | return resultobj; |
16793 | fail: | |
16794 | return NULL; | |
16795 | } | |
16796 | ||
16797 | ||
16798 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16799 | PyObject *obj; | |
16800 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16801 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16802 | Py_INCREF(obj); | |
16803 | return Py_BuildValue((char *)""); | |
16804 | } | |
16805 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16806 | PyObject *resultobj; | |
16807 | int arg1 = (int) 0 ; | |
16808 | wxPaintEvent *result; | |
994141e6 | 16809 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16810 | char *kwnames[] = { |
16811 | (char *) "Id", NULL | |
16812 | }; | |
16813 | ||
994141e6 RD |
16814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16815 | if (obj0) { | |
15afbcd0 RD |
16816 | arg1 = (int) SWIG_AsInt(obj0); |
16817 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16818 | } |
d14a1e28 RD |
16819 | { |
16820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16821 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16822 | ||
16823 | wxPyEndAllowThreads(__tstate); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | } | |
15afbcd0 | 16826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16827 | return resultobj; |
16828 | fail: | |
16829 | return NULL; | |
16830 | } | |
16831 | ||
16832 | ||
16833 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16834 | PyObject *obj; | |
16835 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16836 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16837 | Py_INCREF(obj); | |
16838 | return Py_BuildValue((char *)""); | |
16839 | } | |
16840 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16841 | PyObject *resultobj; | |
16842 | int arg1 = (int) 0 ; | |
16843 | wxNcPaintEvent *result; | |
994141e6 | 16844 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16845 | char *kwnames[] = { |
16846 | (char *) "winid", NULL | |
16847 | }; | |
16848 | ||
994141e6 RD |
16849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16850 | if (obj0) { | |
15afbcd0 RD |
16851 | arg1 = (int) SWIG_AsInt(obj0); |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16853 | } |
d14a1e28 RD |
16854 | { |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16857 | ||
16858 | wxPyEndAllowThreads(__tstate); | |
16859 | if (PyErr_Occurred()) SWIG_fail; | |
16860 | } | |
15afbcd0 | 16861 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16862 | return resultobj; |
16863 | fail: | |
16864 | return NULL; | |
16865 | } | |
16866 | ||
16867 | ||
16868 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16869 | PyObject *obj; | |
16870 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16871 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16872 | Py_INCREF(obj); | |
16873 | return Py_BuildValue((char *)""); | |
16874 | } | |
16875 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16876 | PyObject *resultobj; | |
16877 | int arg1 = (int) 0 ; | |
16878 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16879 | wxEraseEvent *result; | |
994141e6 | 16880 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16881 | PyObject * obj1 = 0 ; |
16882 | char *kwnames[] = { | |
16883 | (char *) "Id",(char *) "dc", NULL | |
16884 | }; | |
16885 | ||
994141e6 RD |
16886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16887 | if (obj0) { | |
15afbcd0 RD |
16888 | arg1 = (int) SWIG_AsInt(obj0); |
16889 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16890 | } |
d14a1e28 | 16891 | if (obj1) { |
15afbcd0 RD |
16892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16894 | } |
16895 | { | |
16896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16897 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16898 | ||
16899 | wxPyEndAllowThreads(__tstate); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
16901 | } | |
15afbcd0 | 16902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16903 | return resultobj; |
16904 | fail: | |
16905 | return NULL; | |
16906 | } | |
16907 | ||
16908 | ||
16909 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16910 | PyObject *resultobj; | |
16911 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16912 | wxDC *result; | |
16913 | PyObject * obj0 = 0 ; | |
16914 | char *kwnames[] = { | |
16915 | (char *) "self", NULL | |
16916 | }; | |
16917 | ||
16918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16921 | { |
16922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16923 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16924 | ||
16925 | wxPyEndAllowThreads(__tstate); | |
16926 | if (PyErr_Occurred()) SWIG_fail; | |
16927 | } | |
16928 | { | |
412d302d | 16929 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16930 | } |
16931 | return resultobj; | |
16932 | fail: | |
16933 | return NULL; | |
16934 | } | |
16935 | ||
16936 | ||
16937 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16938 | PyObject *obj; | |
16939 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16940 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16941 | Py_INCREF(obj); | |
16942 | return Py_BuildValue((char *)""); | |
16943 | } | |
16944 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16945 | PyObject *resultobj; | |
16946 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16947 | int arg2 = (int) 0 ; | |
16948 | wxFocusEvent *result; | |
994141e6 RD |
16949 | PyObject * obj0 = 0 ; |
16950 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16951 | char *kwnames[] = { |
16952 | (char *) "type",(char *) "winid", NULL | |
16953 | }; | |
16954 | ||
994141e6 RD |
16955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16956 | if (obj0) { | |
15afbcd0 RD |
16957 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16958 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16959 | } |
16960 | if (obj1) { | |
15afbcd0 RD |
16961 | arg2 = (int) SWIG_AsInt(obj1); |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16963 | } |
d14a1e28 RD |
16964 | { |
16965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16966 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16967 | ||
16968 | wxPyEndAllowThreads(__tstate); | |
16969 | if (PyErr_Occurred()) SWIG_fail; | |
16970 | } | |
15afbcd0 | 16971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16972 | return resultobj; |
16973 | fail: | |
16974 | return NULL; | |
16975 | } | |
16976 | ||
16977 | ||
16978 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16979 | PyObject *resultobj; | |
16980 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16981 | wxWindow *result; | |
16982 | PyObject * obj0 = 0 ; | |
16983 | char *kwnames[] = { | |
16984 | (char *) "self", NULL | |
16985 | }; | |
16986 | ||
16987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16990 | { |
16991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16992 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16993 | ||
16994 | wxPyEndAllowThreads(__tstate); | |
16995 | if (PyErr_Occurred()) SWIG_fail; | |
16996 | } | |
16997 | { | |
412d302d | 16998 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16999 | } |
17000 | return resultobj; | |
17001 | fail: | |
17002 | return NULL; | |
17003 | } | |
17004 | ||
17005 | ||
17006 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17007 | PyObject *resultobj; | |
17008 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17009 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17010 | PyObject * obj0 = 0 ; | |
17011 | PyObject * obj1 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "self",(char *) "win", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
17018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17021 | { |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | (arg1)->SetWindow(arg2); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | Py_INCREF(Py_None); resultobj = Py_None; | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
17035 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17036 | PyObject *obj; | |
17037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17038 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17039 | Py_INCREF(obj); | |
17040 | return Py_BuildValue((char *)""); | |
17041 | } | |
17042 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17043 | PyObject *resultobj; | |
17044 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17045 | wxChildFocusEvent *result; | |
17046 | PyObject * obj0 = 0 ; | |
17047 | char *kwnames[] = { | |
17048 | (char *) "win", NULL | |
17049 | }; | |
17050 | ||
17051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17052 | if (obj0) { | |
15afbcd0 RD |
17053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17055 | } |
17056 | { | |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17059 | ||
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
15afbcd0 | 17063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
17064 | return resultobj; |
17065 | fail: | |
17066 | return NULL; | |
17067 | } | |
17068 | ||
17069 | ||
17070 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17071 | PyObject *resultobj; | |
17072 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17073 | wxWindow *result; | |
17074 | PyObject * obj0 = 0 ; | |
17075 | char *kwnames[] = { | |
17076 | (char *) "self", NULL | |
17077 | }; | |
17078 | ||
17079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
17081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17082 | { |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
17089 | { | |
412d302d | 17090 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17091 | } |
17092 | return resultobj; | |
17093 | fail: | |
17094 | return NULL; | |
17095 | } | |
17096 | ||
17097 | ||
17098 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17099 | PyObject *obj; | |
17100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17101 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17102 | Py_INCREF(obj); | |
17103 | return Py_BuildValue((char *)""); | |
17104 | } | |
17105 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17106 | PyObject *resultobj; | |
17107 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 17108 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17109 | int arg3 = (int) 0 ; |
17110 | wxActivateEvent *result; | |
994141e6 | 17111 | PyObject * obj0 = 0 ; |
d14a1e28 | 17112 | PyObject * obj1 = 0 ; |
994141e6 | 17113 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17114 | char *kwnames[] = { |
17115 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17116 | }; | |
17117 | ||
994141e6 RD |
17118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17119 | if (obj0) { | |
15afbcd0 RD |
17120 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17121 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17122 | } |
d14a1e28 | 17123 | if (obj1) { |
15afbcd0 RD |
17124 | arg2 = (bool) SWIG_AsBool(obj1); |
17125 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17126 | } |
17127 | if (obj2) { | |
15afbcd0 RD |
17128 | arg3 = (int) SWIG_AsInt(obj2); |
17129 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17130 | } |
17131 | { | |
17132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17133 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17134 | ||
17135 | wxPyEndAllowThreads(__tstate); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | } | |
15afbcd0 | 17138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
17139 | return resultobj; |
17140 | fail: | |
17141 | return NULL; | |
17142 | } | |
17143 | ||
17144 | ||
17145 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17146 | PyObject *resultobj; | |
17147 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17148 | bool result; | |
17149 | PyObject * obj0 = 0 ; | |
17150 | char *kwnames[] = { | |
17151 | (char *) "self", NULL | |
17152 | }; | |
17153 | ||
17154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
17156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17157 | { |
17158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17159 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17160 | ||
17161 | wxPyEndAllowThreads(__tstate); | |
17162 | if (PyErr_Occurred()) SWIG_fail; | |
17163 | } | |
4f89f6a3 RD |
17164 | { |
17165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17166 | } | |
d14a1e28 RD |
17167 | return resultobj; |
17168 | fail: | |
17169 | return NULL; | |
17170 | } | |
17171 | ||
17172 | ||
17173 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17174 | PyObject *obj; | |
17175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17176 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17177 | Py_INCREF(obj); | |
17178 | return Py_BuildValue((char *)""); | |
17179 | } | |
17180 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17181 | PyObject *resultobj; | |
17182 | int arg1 = (int) 0 ; | |
17183 | wxInitDialogEvent *result; | |
994141e6 | 17184 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17185 | char *kwnames[] = { |
17186 | (char *) "Id", NULL | |
17187 | }; | |
17188 | ||
994141e6 RD |
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
17190 | if (obj0) { | |
15afbcd0 RD |
17191 | arg1 = (int) SWIG_AsInt(obj0); |
17192 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17193 | } |
d14a1e28 RD |
17194 | { |
17195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17196 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17197 | ||
17198 | wxPyEndAllowThreads(__tstate); | |
17199 | if (PyErr_Occurred()) SWIG_fail; | |
17200 | } | |
15afbcd0 | 17201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
17202 | return resultobj; |
17203 | fail: | |
17204 | return NULL; | |
17205 | } | |
17206 | ||
17207 | ||
17208 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17209 | PyObject *obj; | |
17210 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17211 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17212 | Py_INCREF(obj); | |
17213 | return Py_BuildValue((char *)""); | |
17214 | } | |
17215 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17216 | PyObject *resultobj; | |
17217 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17218 | int arg2 = (int) 0 ; | |
17219 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17220 | wxMenuEvent *result; | |
994141e6 RD |
17221 | PyObject * obj0 = 0 ; |
17222 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17223 | PyObject * obj2 = 0 ; |
17224 | char *kwnames[] = { | |
17225 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17226 | }; | |
17227 | ||
994141e6 RD |
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17229 | if (obj0) { | |
15afbcd0 RD |
17230 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17232 | } |
17233 | if (obj1) { | |
15afbcd0 RD |
17234 | arg2 = (int) SWIG_AsInt(obj1); |
17235 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17236 | } |
d14a1e28 | 17237 | if (obj2) { |
15afbcd0 RD |
17238 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17240 | } |
17241 | { | |
17242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17243 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17244 | ||
17245 | wxPyEndAllowThreads(__tstate); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | } | |
15afbcd0 | 17248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17249 | return resultobj; |
17250 | fail: | |
17251 | return NULL; | |
17252 | } | |
17253 | ||
17254 | ||
17255 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17256 | PyObject *resultobj; | |
17257 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17258 | int result; | |
17259 | PyObject * obj0 = 0 ; | |
17260 | char *kwnames[] = { | |
17261 | (char *) "self", NULL | |
17262 | }; | |
17263 | ||
17264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17267 | { |
17268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17269 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17270 | ||
17271 | wxPyEndAllowThreads(__tstate); | |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
17273 | } | |
15afbcd0 | 17274 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17275 | return resultobj; |
17276 | fail: | |
17277 | return NULL; | |
17278 | } | |
17279 | ||
17280 | ||
17281 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17282 | PyObject *resultobj; | |
17283 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17284 | bool result; | |
17285 | PyObject * obj0 = 0 ; | |
17286 | char *kwnames[] = { | |
17287 | (char *) "self", NULL | |
17288 | }; | |
17289 | ||
17290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17293 | { |
17294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17295 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17296 | ||
17297 | wxPyEndAllowThreads(__tstate); | |
17298 | if (PyErr_Occurred()) SWIG_fail; | |
17299 | } | |
4f89f6a3 RD |
17300 | { |
17301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17302 | } | |
d14a1e28 RD |
17303 | return resultobj; |
17304 | fail: | |
17305 | return NULL; | |
17306 | } | |
17307 | ||
17308 | ||
17309 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17310 | PyObject *resultobj; | |
17311 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17312 | wxMenu *result; | |
17313 | PyObject * obj0 = 0 ; | |
17314 | char *kwnames[] = { | |
17315 | (char *) "self", NULL | |
17316 | }; | |
17317 | ||
17318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17321 | { |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
17328 | { | |
412d302d | 17329 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17330 | } |
17331 | return resultobj; | |
17332 | fail: | |
17333 | return NULL; | |
17334 | } | |
17335 | ||
17336 | ||
17337 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17338 | PyObject *obj; | |
17339 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17340 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17341 | Py_INCREF(obj); | |
17342 | return Py_BuildValue((char *)""); | |
17343 | } | |
17344 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17345 | PyObject *resultobj; | |
17346 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17347 | int arg2 = (int) 0 ; | |
17348 | wxCloseEvent *result; | |
994141e6 RD |
17349 | PyObject * obj0 = 0 ; |
17350 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17351 | char *kwnames[] = { |
17352 | (char *) "type",(char *) "winid", NULL | |
17353 | }; | |
17354 | ||
994141e6 RD |
17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17356 | if (obj0) { | |
15afbcd0 RD |
17357 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17358 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17359 | } |
17360 | if (obj1) { | |
15afbcd0 RD |
17361 | arg2 = (int) SWIG_AsInt(obj1); |
17362 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17363 | } |
d14a1e28 RD |
17364 | { |
17365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17366 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17367 | ||
17368 | wxPyEndAllowThreads(__tstate); | |
17369 | if (PyErr_Occurred()) SWIG_fail; | |
17370 | } | |
15afbcd0 | 17371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17372 | return resultobj; |
17373 | fail: | |
17374 | return NULL; | |
17375 | } | |
17376 | ||
17377 | ||
17378 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17379 | PyObject *resultobj; | |
17380 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17381 | bool arg2 ; | |
17382 | PyObject * obj0 = 0 ; | |
17383 | PyObject * obj1 = 0 ; | |
17384 | char *kwnames[] = { | |
17385 | (char *) "self",(char *) "logOff", NULL | |
17386 | }; | |
17387 | ||
17388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17391 | arg2 = (bool) SWIG_AsBool(obj1); | |
17392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17393 | { |
17394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17395 | (arg1)->SetLoggingOff(arg2); | |
17396 | ||
17397 | wxPyEndAllowThreads(__tstate); | |
17398 | if (PyErr_Occurred()) SWIG_fail; | |
17399 | } | |
17400 | Py_INCREF(Py_None); resultobj = Py_None; | |
17401 | return resultobj; | |
17402 | fail: | |
17403 | return NULL; | |
17404 | } | |
17405 | ||
17406 | ||
17407 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17408 | PyObject *resultobj; | |
17409 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17410 | bool result; | |
17411 | PyObject * obj0 = 0 ; | |
17412 | char *kwnames[] = { | |
17413 | (char *) "self", NULL | |
17414 | }; | |
17415 | ||
17416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17419 | { |
17420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17421 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17422 | ||
17423 | wxPyEndAllowThreads(__tstate); | |
17424 | if (PyErr_Occurred()) SWIG_fail; | |
17425 | } | |
4f89f6a3 RD |
17426 | { |
17427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17428 | } | |
d14a1e28 RD |
17429 | return resultobj; |
17430 | fail: | |
17431 | return NULL; | |
17432 | } | |
17433 | ||
17434 | ||
17435 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17436 | PyObject *resultobj; | |
17437 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 17438 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17439 | PyObject * obj0 = 0 ; |
17440 | PyObject * obj1 = 0 ; | |
17441 | char *kwnames[] = { | |
17442 | (char *) "self",(char *) "veto", NULL | |
17443 | }; | |
17444 | ||
17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17448 | if (obj1) { |
15afbcd0 RD |
17449 | arg2 = (bool) SWIG_AsBool(obj1); |
17450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17451 | } |
17452 | { | |
17453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17454 | (arg1)->Veto(arg2); | |
17455 | ||
17456 | wxPyEndAllowThreads(__tstate); | |
17457 | if (PyErr_Occurred()) SWIG_fail; | |
17458 | } | |
17459 | Py_INCREF(Py_None); resultobj = Py_None; | |
17460 | return resultobj; | |
17461 | fail: | |
17462 | return NULL; | |
17463 | } | |
17464 | ||
17465 | ||
17466 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17467 | PyObject *resultobj; | |
17468 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17469 | bool arg2 ; | |
17470 | PyObject * obj0 = 0 ; | |
17471 | PyObject * obj1 = 0 ; | |
17472 | char *kwnames[] = { | |
17473 | (char *) "self",(char *) "canVeto", NULL | |
17474 | }; | |
17475 | ||
17476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17479 | arg2 = (bool) SWIG_AsBool(obj1); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17481 | { |
17482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17483 | (arg1)->SetCanVeto(arg2); | |
17484 | ||
17485 | wxPyEndAllowThreads(__tstate); | |
17486 | if (PyErr_Occurred()) SWIG_fail; | |
17487 | } | |
17488 | Py_INCREF(Py_None); resultobj = Py_None; | |
17489 | return resultobj; | |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17498 | bool result; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | char *kwnames[] = { | |
17501 | (char *) "self", NULL | |
17502 | }; | |
17503 | ||
17504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17507 | { |
17508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17509 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17510 | ||
17511 | wxPyEndAllowThreads(__tstate); | |
17512 | if (PyErr_Occurred()) SWIG_fail; | |
17513 | } | |
4f89f6a3 RD |
17514 | { |
17515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17516 | } | |
d14a1e28 RD |
17517 | return resultobj; |
17518 | fail: | |
17519 | return NULL; | |
17520 | } | |
17521 | ||
17522 | ||
17523 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17524 | PyObject *resultobj; | |
17525 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17526 | bool result; | |
17527 | PyObject * obj0 = 0 ; | |
17528 | char *kwnames[] = { | |
17529 | (char *) "self", NULL | |
17530 | }; | |
17531 | ||
17532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17535 | { |
17536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17537 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17538 | ||
17539 | wxPyEndAllowThreads(__tstate); | |
17540 | if (PyErr_Occurred()) SWIG_fail; | |
17541 | } | |
4f89f6a3 RD |
17542 | { |
17543 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17544 | } | |
d14a1e28 RD |
17545 | return resultobj; |
17546 | fail: | |
17547 | return NULL; | |
17548 | } | |
17549 | ||
17550 | ||
17551 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17552 | PyObject *obj; | |
17553 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17554 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17555 | Py_INCREF(obj); | |
17556 | return Py_BuildValue((char *)""); | |
17557 | } | |
17558 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17559 | PyObject *resultobj; | |
17560 | int arg1 = (int) 0 ; | |
e811c8ce | 17561 | bool arg2 = (bool) False ; |
d14a1e28 | 17562 | wxShowEvent *result; |
994141e6 | 17563 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17564 | PyObject * obj1 = 0 ; |
17565 | char *kwnames[] = { | |
17566 | (char *) "winid",(char *) "show", NULL | |
17567 | }; | |
17568 | ||
994141e6 RD |
17569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17570 | if (obj0) { | |
15afbcd0 RD |
17571 | arg1 = (int) SWIG_AsInt(obj0); |
17572 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17573 | } |
d14a1e28 | 17574 | if (obj1) { |
15afbcd0 RD |
17575 | arg2 = (bool) SWIG_AsBool(obj1); |
17576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17577 | } |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
15afbcd0 | 17585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17586 | return resultobj; |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17595 | bool arg2 ; | |
17596 | PyObject * obj0 = 0 ; | |
17597 | PyObject * obj1 = 0 ; | |
17598 | char *kwnames[] = { | |
17599 | (char *) "self",(char *) "show", NULL | |
17600 | }; | |
17601 | ||
17602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17605 | arg2 = (bool) SWIG_AsBool(obj1); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17607 | { |
17608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17609 | (arg1)->SetShow(arg2); | |
17610 | ||
17611 | wxPyEndAllowThreads(__tstate); | |
17612 | if (PyErr_Occurred()) SWIG_fail; | |
17613 | } | |
17614 | Py_INCREF(Py_None); resultobj = Py_None; | |
17615 | return resultobj; | |
17616 | fail: | |
17617 | return NULL; | |
17618 | } | |
17619 | ||
17620 | ||
17621 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17622 | PyObject *resultobj; | |
17623 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17624 | bool result; | |
17625 | PyObject * obj0 = 0 ; | |
17626 | char *kwnames[] = { | |
17627 | (char *) "self", NULL | |
17628 | }; | |
17629 | ||
17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17633 | { |
17634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17635 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17636 | ||
17637 | wxPyEndAllowThreads(__tstate); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | } | |
4f89f6a3 RD |
17640 | { |
17641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17642 | } | |
d14a1e28 RD |
17643 | return resultobj; |
17644 | fail: | |
17645 | return NULL; | |
17646 | } | |
17647 | ||
17648 | ||
17649 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17650 | PyObject *obj; | |
17651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17652 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17653 | Py_INCREF(obj); | |
17654 | return Py_BuildValue((char *)""); | |
17655 | } | |
17656 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17657 | PyObject *resultobj; | |
17658 | int arg1 = (int) 0 ; | |
e811c8ce | 17659 | bool arg2 = (bool) True ; |
d14a1e28 | 17660 | wxIconizeEvent *result; |
994141e6 | 17661 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17662 | PyObject * obj1 = 0 ; |
17663 | char *kwnames[] = { | |
17664 | (char *) "id",(char *) "iconized", NULL | |
17665 | }; | |
17666 | ||
994141e6 RD |
17667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17668 | if (obj0) { | |
15afbcd0 RD |
17669 | arg1 = (int) SWIG_AsInt(obj0); |
17670 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17671 | } |
d14a1e28 | 17672 | if (obj1) { |
15afbcd0 RD |
17673 | arg2 = (bool) SWIG_AsBool(obj1); |
17674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17675 | } |
17676 | { | |
17677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17678 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17679 | ||
17680 | wxPyEndAllowThreads(__tstate); | |
17681 | if (PyErr_Occurred()) SWIG_fail; | |
17682 | } | |
15afbcd0 | 17683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17684 | return resultobj; |
17685 | fail: | |
17686 | return NULL; | |
17687 | } | |
17688 | ||
17689 | ||
17690 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17691 | PyObject *resultobj; | |
17692 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17693 | bool result; | |
17694 | PyObject * obj0 = 0 ; | |
17695 | char *kwnames[] = { | |
17696 | (char *) "self", NULL | |
17697 | }; | |
17698 | ||
17699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17702 | { |
17703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17704 | result = (bool)(arg1)->Iconized(); | |
17705 | ||
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
4f89f6a3 RD |
17709 | { |
17710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17711 | } | |
d14a1e28 RD |
17712 | return resultobj; |
17713 | fail: | |
17714 | return NULL; | |
17715 | } | |
17716 | ||
17717 | ||
17718 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17719 | PyObject *obj; | |
17720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17721 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17722 | Py_INCREF(obj); | |
17723 | return Py_BuildValue((char *)""); | |
17724 | } | |
17725 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17726 | PyObject *resultobj; | |
17727 | int arg1 = (int) 0 ; | |
17728 | wxMaximizeEvent *result; | |
994141e6 | 17729 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17730 | char *kwnames[] = { |
17731 | (char *) "id", NULL | |
17732 | }; | |
17733 | ||
994141e6 RD |
17734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17735 | if (obj0) { | |
15afbcd0 RD |
17736 | arg1 = (int) SWIG_AsInt(obj0); |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17738 | } |
d14a1e28 RD |
17739 | { |
17740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17741 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17742 | ||
17743 | wxPyEndAllowThreads(__tstate); | |
17744 | if (PyErr_Occurred()) SWIG_fail; | |
17745 | } | |
15afbcd0 | 17746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17747 | return resultobj; |
17748 | fail: | |
17749 | return NULL; | |
17750 | } | |
17751 | ||
17752 | ||
17753 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17754 | PyObject *obj; | |
17755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17756 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17757 | Py_INCREF(obj); | |
17758 | return Py_BuildValue((char *)""); | |
17759 | } | |
17760 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17761 | PyObject *resultobj; | |
17762 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17763 | wxPoint result; | |
17764 | PyObject * obj0 = 0 ; | |
17765 | char *kwnames[] = { | |
17766 | (char *) "self", NULL | |
17767 | }; | |
17768 | ||
17769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17772 | { |
17773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17774 | result = (arg1)->GetPosition(); | |
17775 | ||
17776 | wxPyEndAllowThreads(__tstate); | |
17777 | if (PyErr_Occurred()) SWIG_fail; | |
17778 | } | |
17779 | { | |
17780 | wxPoint * resultptr; | |
17781 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 17782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17783 | } |
17784 | return resultobj; | |
17785 | fail: | |
17786 | return NULL; | |
17787 | } | |
17788 | ||
17789 | ||
17790 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17791 | PyObject *resultobj; | |
17792 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17793 | int result; | |
17794 | PyObject * obj0 = 0 ; | |
17795 | char *kwnames[] = { | |
17796 | (char *) "self", NULL | |
17797 | }; | |
17798 | ||
17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17802 | { |
17803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17804 | result = (int)(arg1)->GetNumberOfFiles(); | |
17805 | ||
17806 | wxPyEndAllowThreads(__tstate); | |
17807 | if (PyErr_Occurred()) SWIG_fail; | |
17808 | } | |
15afbcd0 | 17809 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17810 | return resultobj; |
17811 | fail: | |
17812 | return NULL; | |
17813 | } | |
17814 | ||
17815 | ||
17816 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17817 | PyObject *resultobj; | |
17818 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17819 | PyObject *result; | |
17820 | PyObject * obj0 = 0 ; | |
17821 | char *kwnames[] = { | |
17822 | (char *) "self", NULL | |
17823 | }; | |
17824 | ||
17825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17828 | { |
17829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17830 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17831 | ||
17832 | wxPyEndAllowThreads(__tstate); | |
17833 | if (PyErr_Occurred()) SWIG_fail; | |
17834 | } | |
17835 | resultobj = result; | |
17836 | return resultobj; | |
17837 | fail: | |
17838 | return NULL; | |
17839 | } | |
17840 | ||
17841 | ||
17842 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17843 | PyObject *obj; | |
17844 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17845 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17846 | Py_INCREF(obj); | |
17847 | return Py_BuildValue((char *)""); | |
17848 | } | |
17849 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17850 | PyObject *resultobj; | |
e811c8ce | 17851 | int arg1 = (int) 0 ; |
d14a1e28 | 17852 | wxUpdateUIEvent *result; |
994141e6 | 17853 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17854 | char *kwnames[] = { |
17855 | (char *) "commandId", NULL | |
17856 | }; | |
17857 | ||
994141e6 RD |
17858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17859 | if (obj0) { | |
15afbcd0 RD |
17860 | arg1 = (int) SWIG_AsInt(obj0); |
17861 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17862 | } |
d14a1e28 RD |
17863 | { |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
15afbcd0 | 17870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17871 | return resultobj; |
17872 | fail: | |
17873 | return NULL; | |
17874 | } | |
17875 | ||
17876 | ||
17877 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17878 | PyObject *resultobj; | |
17879 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17880 | bool result; | |
17881 | PyObject * obj0 = 0 ; | |
17882 | char *kwnames[] = { | |
17883 | (char *) "self", NULL | |
17884 | }; | |
17885 | ||
17886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17889 | { |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
4f89f6a3 RD |
17896 | { |
17897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17898 | } | |
d14a1e28 RD |
17899 | return resultobj; |
17900 | fail: | |
17901 | return NULL; | |
17902 | } | |
17903 | ||
17904 | ||
17905 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17906 | PyObject *resultobj; | |
17907 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17908 | bool result; | |
17909 | PyObject * obj0 = 0 ; | |
17910 | char *kwnames[] = { | |
17911 | (char *) "self", NULL | |
17912 | }; | |
17913 | ||
17914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17917 | { |
17918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17919 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17920 | ||
17921 | wxPyEndAllowThreads(__tstate); | |
17922 | if (PyErr_Occurred()) SWIG_fail; | |
17923 | } | |
4f89f6a3 RD |
17924 | { |
17925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17926 | } | |
d14a1e28 RD |
17927 | return resultobj; |
17928 | fail: | |
17929 | return NULL; | |
17930 | } | |
17931 | ||
17932 | ||
17933 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17934 | PyObject *resultobj; | |
17935 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17936 | wxString result; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | char *kwnames[] = { | |
17939 | (char *) "self", NULL | |
17940 | }; | |
17941 | ||
17942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17945 | { |
17946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17947 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17948 | ||
17949 | wxPyEndAllowThreads(__tstate); | |
17950 | if (PyErr_Occurred()) SWIG_fail; | |
17951 | } | |
17952 | { | |
17953 | #if wxUSE_UNICODE | |
17954 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17955 | #else | |
17956 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17957 | #endif | |
17958 | } | |
17959 | return resultobj; | |
17960 | fail: | |
17961 | return NULL; | |
17962 | } | |
17963 | ||
17964 | ||
17965 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17966 | PyObject *resultobj; | |
17967 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17968 | bool result; | |
17969 | PyObject * obj0 = 0 ; | |
17970 | char *kwnames[] = { | |
17971 | (char *) "self", NULL | |
17972 | }; | |
17973 | ||
17974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17977 | { |
17978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17979 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17980 | ||
17981 | wxPyEndAllowThreads(__tstate); | |
17982 | if (PyErr_Occurred()) SWIG_fail; | |
17983 | } | |
4f89f6a3 RD |
17984 | { |
17985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17986 | } | |
d14a1e28 RD |
17987 | return resultobj; |
17988 | fail: | |
17989 | return NULL; | |
17990 | } | |
17991 | ||
17992 | ||
17993 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17994 | PyObject *resultobj; | |
17995 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17996 | bool result; | |
17997 | PyObject * obj0 = 0 ; | |
17998 | char *kwnames[] = { | |
17999 | (char *) "self", NULL | |
18000 | }; | |
18001 | ||
18002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18005 | { |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
4f89f6a3 RD |
18012 | { |
18013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18014 | } | |
d14a1e28 RD |
18015 | return resultobj; |
18016 | fail: | |
18017 | return NULL; | |
18018 | } | |
18019 | ||
18020 | ||
18021 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18022 | PyObject *resultobj; | |
18023 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18024 | bool result; | |
18025 | PyObject * obj0 = 0 ; | |
18026 | char *kwnames[] = { | |
18027 | (char *) "self", NULL | |
18028 | }; | |
18029 | ||
18030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18033 | { |
18034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18035 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18036 | ||
18037 | wxPyEndAllowThreads(__tstate); | |
18038 | if (PyErr_Occurred()) SWIG_fail; | |
18039 | } | |
4f89f6a3 RD |
18040 | { |
18041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18042 | } | |
d14a1e28 RD |
18043 | return resultobj; |
18044 | fail: | |
18045 | return NULL; | |
18046 | } | |
18047 | ||
18048 | ||
18049 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18050 | PyObject *resultobj; | |
18051 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18052 | bool arg2 ; | |
18053 | PyObject * obj0 = 0 ; | |
18054 | PyObject * obj1 = 0 ; | |
18055 | char *kwnames[] = { | |
18056 | (char *) "self",(char *) "check", NULL | |
18057 | }; | |
18058 | ||
18059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18062 | arg2 = (bool) SWIG_AsBool(obj1); | |
18063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18064 | { |
18065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18066 | (arg1)->Check(arg2); | |
18067 | ||
18068 | wxPyEndAllowThreads(__tstate); | |
18069 | if (PyErr_Occurred()) SWIG_fail; | |
18070 | } | |
18071 | Py_INCREF(Py_None); resultobj = Py_None; | |
18072 | return resultobj; | |
18073 | fail: | |
18074 | return NULL; | |
18075 | } | |
18076 | ||
18077 | ||
18078 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18079 | PyObject *resultobj; | |
18080 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18081 | bool arg2 ; | |
18082 | PyObject * obj0 = 0 ; | |
18083 | PyObject * obj1 = 0 ; | |
18084 | char *kwnames[] = { | |
18085 | (char *) "self",(char *) "enable", NULL | |
18086 | }; | |
18087 | ||
18088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18091 | arg2 = (bool) SWIG_AsBool(obj1); | |
18092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18093 | { |
18094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18095 | (arg1)->Enable(arg2); | |
18096 | ||
18097 | wxPyEndAllowThreads(__tstate); | |
18098 | if (PyErr_Occurred()) SWIG_fail; | |
18099 | } | |
18100 | Py_INCREF(Py_None); resultobj = Py_None; | |
18101 | return resultobj; | |
18102 | fail: | |
18103 | return NULL; | |
18104 | } | |
18105 | ||
18106 | ||
18107 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18108 | PyObject *resultobj; | |
18109 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18110 | wxString *arg2 = 0 ; | |
e811c8ce | 18111 | bool temp2 = False ; |
d14a1e28 RD |
18112 | PyObject * obj0 = 0 ; |
18113 | PyObject * obj1 = 0 ; | |
18114 | char *kwnames[] = { | |
18115 | (char *) "self",(char *) "text", NULL | |
18116 | }; | |
18117 | ||
18118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18121 | { |
18122 | arg2 = wxString_in_helper(obj1); | |
18123 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18124 | temp2 = True; |
d14a1e28 RD |
18125 | } |
18126 | { | |
18127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18128 | (arg1)->SetText((wxString const &)*arg2); | |
18129 | ||
18130 | wxPyEndAllowThreads(__tstate); | |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
18132 | } | |
18133 | Py_INCREF(Py_None); resultobj = Py_None; | |
18134 | { | |
18135 | if (temp2) | |
18136 | delete arg2; | |
18137 | } | |
18138 | return resultobj; | |
18139 | fail: | |
18140 | { | |
18141 | if (temp2) | |
18142 | delete arg2; | |
18143 | } | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | long arg1 ; | |
994141e6 | 18151 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18152 | char *kwnames[] = { |
18153 | (char *) "updateInterval", NULL | |
18154 | }; | |
18155 | ||
994141e6 | 18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18157 | arg1 = (long) SWIG_AsLong(obj0); |
18158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18159 | { |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | Py_INCREF(Py_None); resultobj = Py_None; | |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
18173 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18174 | PyObject *resultobj; | |
18175 | long result; | |
18176 | char *kwnames[] = { | |
18177 | NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18181 | { | |
18182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18183 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18184 | ||
18185 | wxPyEndAllowThreads(__tstate); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
15afbcd0 | 18188 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18189 | return resultobj; |
18190 | fail: | |
18191 | return NULL; | |
18192 | } | |
18193 | ||
18194 | ||
18195 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18196 | PyObject *resultobj; | |
18197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18198 | bool result; | |
18199 | PyObject * obj0 = 0 ; | |
18200 | char *kwnames[] = { | |
18201 | (char *) "win", NULL | |
18202 | }; | |
18203 | ||
18204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18207 | { |
18208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18209 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18210 | ||
18211 | wxPyEndAllowThreads(__tstate); | |
18212 | if (PyErr_Occurred()) SWIG_fail; | |
18213 | } | |
4f89f6a3 RD |
18214 | { |
18215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18216 | } | |
d14a1e28 RD |
18217 | return resultobj; |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18224 | PyObject *resultobj; | |
18225 | char *kwnames[] = { | |
18226 | NULL | |
18227 | }; | |
18228 | ||
18229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18230 | { | |
18231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18232 | wxUpdateUIEvent::ResetUpdateTime(); | |
18233 | ||
18234 | wxPyEndAllowThreads(__tstate); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | Py_INCREF(Py_None); resultobj = Py_None; | |
18238 | return resultobj; | |
18239 | fail: | |
18240 | return NULL; | |
18241 | } | |
18242 | ||
18243 | ||
18244 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18245 | PyObject *resultobj; | |
18246 | int arg1 ; | |
994141e6 | 18247 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18248 | char *kwnames[] = { |
18249 | (char *) "mode", NULL | |
18250 | }; | |
18251 | ||
994141e6 | 18252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18253 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18255 | { |
18256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18257 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18258 | ||
18259 | wxPyEndAllowThreads(__tstate); | |
18260 | if (PyErr_Occurred()) SWIG_fail; | |
18261 | } | |
18262 | Py_INCREF(Py_None); resultobj = Py_None; | |
18263 | return resultobj; | |
18264 | fail: | |
18265 | return NULL; | |
18266 | } | |
18267 | ||
18268 | ||
18269 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18270 | PyObject *resultobj; | |
18271 | int result; | |
18272 | char *kwnames[] = { | |
18273 | NULL | |
18274 | }; | |
18275 | ||
18276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | result = (int)wxUpdateUIEvent::GetMode(); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
15afbcd0 | 18284 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18285 | return resultobj; |
18286 | fail: | |
18287 | return NULL; | |
18288 | } | |
18289 | ||
18290 | ||
18291 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18292 | PyObject *obj; | |
18293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18294 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18295 | Py_INCREF(obj); | |
18296 | return Py_BuildValue((char *)""); | |
18297 | } | |
18298 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18299 | PyObject *resultobj; | |
18300 | wxSysColourChangedEvent *result; | |
18301 | char *kwnames[] = { | |
18302 | NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18306 | { | |
18307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18308 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18309 | ||
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
15afbcd0 | 18313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18314 | return resultobj; |
18315 | fail: | |
18316 | return NULL; | |
18317 | } | |
18318 | ||
18319 | ||
18320 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18321 | PyObject *obj; | |
18322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18323 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18324 | Py_INCREF(obj); | |
18325 | return Py_BuildValue((char *)""); | |
18326 | } | |
18327 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18328 | PyObject *resultobj; | |
e811c8ce | 18329 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18330 | wxWindow *arg2 = (wxWindow *) NULL ; |
18331 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 18332 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18333 | PyObject * obj1 = 0 ; |
18334 | char *kwnames[] = { | |
18335 | (char *) "winid",(char *) "gainedCapture", NULL | |
18336 | }; | |
18337 | ||
994141e6 RD |
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18339 | if (obj0) { | |
15afbcd0 RD |
18340 | arg1 = (int) SWIG_AsInt(obj0); |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18342 | } |
d14a1e28 | 18343 | if (obj1) { |
15afbcd0 RD |
18344 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18346 | } |
18347 | { | |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18349 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18350 | ||
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
15afbcd0 | 18354 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18355 | return resultobj; |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
18361 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18362 | PyObject *resultobj; | |
18363 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18364 | wxWindow *result; | |
18365 | PyObject * obj0 = 0 ; | |
18366 | char *kwnames[] = { | |
18367 | (char *) "self", NULL | |
18368 | }; | |
18369 | ||
18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18373 | { |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18376 | ||
18377 | wxPyEndAllowThreads(__tstate); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
18379 | } | |
18380 | { | |
412d302d | 18381 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18382 | } |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
18389 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18390 | PyObject *obj; | |
18391 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18392 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18393 | Py_INCREF(obj); | |
18394 | return Py_BuildValue((char *)""); | |
18395 | } | |
18396 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18397 | PyObject *resultobj; | |
18398 | wxDisplayChangedEvent *result; | |
18399 | char *kwnames[] = { | |
18400 | NULL | |
18401 | }; | |
18402 | ||
18403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18404 | { | |
18405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18406 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18407 | ||
18408 | wxPyEndAllowThreads(__tstate); | |
18409 | if (PyErr_Occurred()) SWIG_fail; | |
18410 | } | |
15afbcd0 | 18411 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18412 | return resultobj; |
18413 | fail: | |
18414 | return NULL; | |
18415 | } | |
18416 | ||
18417 | ||
18418 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18419 | PyObject *obj; | |
18420 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18421 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18422 | Py_INCREF(obj); | |
18423 | return Py_BuildValue((char *)""); | |
18424 | } | |
18425 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18426 | PyObject *resultobj; | |
e811c8ce | 18427 | int arg1 = (int) 0 ; |
d14a1e28 | 18428 | wxPaletteChangedEvent *result; |
994141e6 | 18429 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18430 | char *kwnames[] = { |
18431 | (char *) "id", NULL | |
18432 | }; | |
18433 | ||
994141e6 RD |
18434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18435 | if (obj0) { | |
15afbcd0 RD |
18436 | arg1 = (int) SWIG_AsInt(obj0); |
18437 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18438 | } |
d14a1e28 RD |
18439 | { |
18440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18441 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18442 | ||
18443 | wxPyEndAllowThreads(__tstate); | |
18444 | if (PyErr_Occurred()) SWIG_fail; | |
18445 | } | |
15afbcd0 | 18446 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18447 | return resultobj; |
18448 | fail: | |
18449 | return NULL; | |
18450 | } | |
18451 | ||
18452 | ||
18453 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18454 | PyObject *resultobj; | |
18455 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18456 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18457 | PyObject * obj0 = 0 ; | |
18458 | PyObject * obj1 = 0 ; | |
18459 | char *kwnames[] = { | |
18460 | (char *) "self",(char *) "win", NULL | |
18461 | }; | |
18462 | ||
18463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18468 | { |
18469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18470 | (arg1)->SetChangedWindow(arg2); | |
18471 | ||
18472 | wxPyEndAllowThreads(__tstate); | |
18473 | if (PyErr_Occurred()) SWIG_fail; | |
18474 | } | |
18475 | Py_INCREF(Py_None); resultobj = Py_None; | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | return NULL; | |
18479 | } | |
18480 | ||
18481 | ||
18482 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18483 | PyObject *resultobj; | |
18484 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18485 | wxWindow *result; | |
18486 | PyObject * obj0 = 0 ; | |
18487 | char *kwnames[] = { | |
18488 | (char *) "self", NULL | |
18489 | }; | |
18490 | ||
18491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18494 | { |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18497 | ||
18498 | wxPyEndAllowThreads(__tstate); | |
18499 | if (PyErr_Occurred()) SWIG_fail; | |
18500 | } | |
18501 | { | |
412d302d | 18502 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18503 | } |
18504 | return resultobj; | |
18505 | fail: | |
18506 | return NULL; | |
18507 | } | |
18508 | ||
18509 | ||
18510 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18511 | PyObject *obj; | |
18512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18513 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18514 | Py_INCREF(obj); | |
18515 | return Py_BuildValue((char *)""); | |
18516 | } | |
18517 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18518 | PyObject *resultobj; | |
e811c8ce | 18519 | int arg1 = (int) 0 ; |
d14a1e28 | 18520 | wxQueryNewPaletteEvent *result; |
994141e6 | 18521 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18522 | char *kwnames[] = { |
18523 | (char *) "winid", NULL | |
18524 | }; | |
18525 | ||
994141e6 RD |
18526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18527 | if (obj0) { | |
15afbcd0 RD |
18528 | arg1 = (int) SWIG_AsInt(obj0); |
18529 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18530 | } |
d14a1e28 RD |
18531 | { |
18532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18533 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18534 | ||
18535 | wxPyEndAllowThreads(__tstate); | |
18536 | if (PyErr_Occurred()) SWIG_fail; | |
18537 | } | |
15afbcd0 | 18538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18539 | return resultobj; |
18540 | fail: | |
18541 | return NULL; | |
18542 | } | |
18543 | ||
18544 | ||
18545 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18546 | PyObject *resultobj; | |
18547 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18548 | bool arg2 ; | |
18549 | PyObject * obj0 = 0 ; | |
18550 | PyObject * obj1 = 0 ; | |
18551 | char *kwnames[] = { | |
18552 | (char *) "self",(char *) "realized", NULL | |
18553 | }; | |
18554 | ||
18555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18558 | arg2 = (bool) SWIG_AsBool(obj1); | |
18559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18560 | { |
18561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18562 | (arg1)->SetPaletteRealized(arg2); | |
18563 | ||
18564 | wxPyEndAllowThreads(__tstate); | |
18565 | if (PyErr_Occurred()) SWIG_fail; | |
18566 | } | |
18567 | Py_INCREF(Py_None); resultobj = Py_None; | |
18568 | return resultobj; | |
18569 | fail: | |
18570 | return NULL; | |
18571 | } | |
18572 | ||
18573 | ||
18574 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18575 | PyObject *resultobj; | |
18576 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18577 | bool result; | |
18578 | PyObject * obj0 = 0 ; | |
18579 | char *kwnames[] = { | |
18580 | (char *) "self", NULL | |
18581 | }; | |
18582 | ||
18583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18586 | { |
18587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18588 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18589 | ||
18590 | wxPyEndAllowThreads(__tstate); | |
18591 | if (PyErr_Occurred()) SWIG_fail; | |
18592 | } | |
4f89f6a3 RD |
18593 | { |
18594 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18595 | } | |
d14a1e28 RD |
18596 | return resultobj; |
18597 | fail: | |
18598 | return NULL; | |
18599 | } | |
18600 | ||
18601 | ||
18602 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18603 | PyObject *obj; | |
18604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18605 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18606 | Py_INCREF(obj); | |
18607 | return Py_BuildValue((char *)""); | |
18608 | } | |
18609 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18610 | PyObject *resultobj; | |
18611 | wxNavigationKeyEvent *result; | |
18612 | char *kwnames[] = { | |
18613 | NULL | |
18614 | }; | |
18615 | ||
18616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18617 | { | |
18618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18619 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18620 | ||
18621 | wxPyEndAllowThreads(__tstate); | |
18622 | if (PyErr_Occurred()) SWIG_fail; | |
18623 | } | |
15afbcd0 | 18624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18625 | return resultobj; |
18626 | fail: | |
18627 | return NULL; | |
18628 | } | |
18629 | ||
18630 | ||
18631 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18632 | PyObject *resultobj; | |
18633 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18634 | bool result; | |
18635 | PyObject * obj0 = 0 ; | |
18636 | char *kwnames[] = { | |
18637 | (char *) "self", NULL | |
18638 | }; | |
18639 | ||
18640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18643 | { |
18644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18645 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18646 | ||
18647 | wxPyEndAllowThreads(__tstate); | |
18648 | if (PyErr_Occurred()) SWIG_fail; | |
18649 | } | |
4f89f6a3 RD |
18650 | { |
18651 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18652 | } | |
d14a1e28 RD |
18653 | return resultobj; |
18654 | fail: | |
18655 | return NULL; | |
18656 | } | |
18657 | ||
18658 | ||
18659 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18660 | PyObject *resultobj; | |
18661 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18662 | bool arg2 ; | |
18663 | PyObject * obj0 = 0 ; | |
18664 | PyObject * obj1 = 0 ; | |
18665 | char *kwnames[] = { | |
908b74cd | 18666 | (char *) "self",(char *) "forward", NULL |
d14a1e28 RD |
18667 | }; |
18668 | ||
18669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18672 | arg2 = (bool) SWIG_AsBool(obj1); | |
18673 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18674 | { |
18675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18676 | (arg1)->SetDirection(arg2); | |
18677 | ||
18678 | wxPyEndAllowThreads(__tstate); | |
18679 | if (PyErr_Occurred()) SWIG_fail; | |
18680 | } | |
18681 | Py_INCREF(Py_None); resultobj = Py_None; | |
18682 | return resultobj; | |
18683 | fail: | |
18684 | return NULL; | |
18685 | } | |
18686 | ||
18687 | ||
18688 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18689 | PyObject *resultobj; | |
18690 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18691 | bool result; | |
18692 | PyObject * obj0 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "self", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18700 | { |
18701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18702 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18703 | ||
18704 | wxPyEndAllowThreads(__tstate); | |
18705 | if (PyErr_Occurred()) SWIG_fail; | |
18706 | } | |
4f89f6a3 RD |
18707 | { |
18708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18709 | } | |
d14a1e28 RD |
18710 | return resultobj; |
18711 | fail: | |
18712 | return NULL; | |
18713 | } | |
18714 | ||
18715 | ||
18716 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18717 | PyObject *resultobj; | |
18718 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18719 | bool arg2 ; | |
18720 | PyObject * obj0 = 0 ; | |
18721 | PyObject * obj1 = 0 ; | |
18722 | char *kwnames[] = { | |
908b74cd | 18723 | (char *) "self",(char *) "ischange", NULL |
d14a1e28 RD |
18724 | }; |
18725 | ||
18726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18729 | arg2 = (bool) SWIG_AsBool(obj1); | |
18730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18731 | { |
18732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18733 | (arg1)->SetWindowChange(arg2); | |
18734 | ||
18735 | wxPyEndAllowThreads(__tstate); | |
18736 | if (PyErr_Occurred()) SWIG_fail; | |
18737 | } | |
18738 | Py_INCREF(Py_None); resultobj = Py_None; | |
18739 | return resultobj; | |
18740 | fail: | |
18741 | return NULL; | |
18742 | } | |
18743 | ||
18744 | ||
908b74cd RD |
18745 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
18746 | PyObject *resultobj; | |
18747 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18748 | long arg2 ; | |
18749 | PyObject * obj0 = 0 ; | |
18750 | PyObject * obj1 = 0 ; | |
18751 | char *kwnames[] = { | |
18752 | (char *) "self",(char *) "flags", NULL | |
18753 | }; | |
18754 | ||
18755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
18756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18758 | arg2 = (long) SWIG_AsLong(obj1); | |
18759 | if (PyErr_Occurred()) SWIG_fail; | |
18760 | { | |
18761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18762 | (arg1)->SetFlags(arg2); | |
18763 | ||
18764 | wxPyEndAllowThreads(__tstate); | |
18765 | if (PyErr_Occurred()) SWIG_fail; | |
18766 | } | |
18767 | Py_INCREF(Py_None); resultobj = Py_None; | |
18768 | return resultobj; | |
18769 | fail: | |
18770 | return NULL; | |
18771 | } | |
18772 | ||
18773 | ||
d14a1e28 RD |
18774 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
18775 | PyObject *resultobj; | |
18776 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18777 | wxWindow *result; | |
18778 | PyObject * obj0 = 0 ; | |
18779 | char *kwnames[] = { | |
18780 | (char *) "self", NULL | |
18781 | }; | |
18782 | ||
18783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18786 | { |
18787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18788 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18789 | ||
18790 | wxPyEndAllowThreads(__tstate); | |
18791 | if (PyErr_Occurred()) SWIG_fail; | |
18792 | } | |
18793 | { | |
412d302d | 18794 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18795 | } |
18796 | return resultobj; | |
18797 | fail: | |
18798 | return NULL; | |
18799 | } | |
18800 | ||
18801 | ||
18802 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18803 | PyObject *resultobj; | |
18804 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18805 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18806 | PyObject * obj0 = 0 ; | |
18807 | PyObject * obj1 = 0 ; | |
18808 | char *kwnames[] = { | |
18809 | (char *) "self",(char *) "win", NULL | |
18810 | }; | |
18811 | ||
18812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18817 | { |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | (arg1)->SetCurrentFocus(arg2); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | Py_INCREF(Py_None); resultobj = Py_None; | |
18825 | return resultobj; | |
18826 | fail: | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18832 | PyObject *obj; | |
18833 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18834 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18835 | Py_INCREF(obj); | |
18836 | return Py_BuildValue((char *)""); | |
18837 | } | |
18838 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18839 | PyObject *resultobj; | |
18840 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18841 | wxWindowCreateEvent *result; | |
18842 | PyObject * obj0 = 0 ; | |
18843 | char *kwnames[] = { | |
18844 | (char *) "win", NULL | |
18845 | }; | |
18846 | ||
18847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18848 | if (obj0) { | |
15afbcd0 RD |
18849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18851 | } |
18852 | { | |
18853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18854 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18855 | ||
18856 | wxPyEndAllowThreads(__tstate); | |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
18858 | } | |
15afbcd0 | 18859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18860 | return resultobj; |
18861 | fail: | |
18862 | return NULL; | |
18863 | } | |
18864 | ||
18865 | ||
18866 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18867 | PyObject *resultobj; | |
18868 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18869 | wxWindow *result; | |
18870 | PyObject * obj0 = 0 ; | |
18871 | char *kwnames[] = { | |
18872 | (char *) "self", NULL | |
18873 | }; | |
18874 | ||
18875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18878 | { |
18879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18880 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18881 | ||
18882 | wxPyEndAllowThreads(__tstate); | |
18883 | if (PyErr_Occurred()) SWIG_fail; | |
18884 | } | |
18885 | { | |
412d302d | 18886 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18887 | } |
18888 | return resultobj; | |
18889 | fail: | |
18890 | return NULL; | |
18891 | } | |
18892 | ||
18893 | ||
18894 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18895 | PyObject *obj; | |
18896 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18897 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18898 | Py_INCREF(obj); | |
18899 | return Py_BuildValue((char *)""); | |
18900 | } | |
18901 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18904 | wxWindowDestroyEvent *result; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "win", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18911 | if (obj0) { | |
15afbcd0 RD |
18912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18914 | } |
18915 | { | |
18916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18917 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18918 | ||
18919 | wxPyEndAllowThreads(__tstate); | |
18920 | if (PyErr_Occurred()) SWIG_fail; | |
18921 | } | |
15afbcd0 | 18922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18923 | return resultobj; |
18924 | fail: | |
18925 | return NULL; | |
18926 | } | |
18927 | ||
18928 | ||
18929 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18930 | PyObject *resultobj; | |
18931 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18932 | wxWindow *result; | |
18933 | PyObject * obj0 = 0 ; | |
18934 | char *kwnames[] = { | |
18935 | (char *) "self", NULL | |
18936 | }; | |
18937 | ||
18938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18941 | { |
18942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18943 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18944 | ||
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | { | |
412d302d | 18949 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18950 | } |
18951 | return resultobj; | |
18952 | fail: | |
18953 | return NULL; | |
18954 | } | |
18955 | ||
18956 | ||
18957 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18958 | PyObject *obj; | |
18959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18960 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18961 | Py_INCREF(obj); | |
18962 | return Py_BuildValue((char *)""); | |
18963 | } | |
18964 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18965 | PyObject *resultobj; | |
18966 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 18967 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18968 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18969 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18970 | wxContextMenuEvent *result; | |
18971 | wxPoint temp3 ; | |
994141e6 RD |
18972 | PyObject * obj0 = 0 ; |
18973 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18974 | PyObject * obj2 = 0 ; |
18975 | char *kwnames[] = { | |
18976 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18977 | }; | |
18978 | ||
994141e6 RD |
18979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18980 | if (obj0) { | |
15afbcd0 RD |
18981 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18982 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18983 | } |
18984 | if (obj1) { | |
15afbcd0 RD |
18985 | arg2 = (int) SWIG_AsInt(obj1); |
18986 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18987 | } |
d14a1e28 RD |
18988 | if (obj2) { |
18989 | { | |
18990 | arg3 = &temp3; | |
18991 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18992 | } | |
18993 | } | |
18994 | { | |
18995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18996 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18997 | ||
18998 | wxPyEndAllowThreads(__tstate); | |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
15afbcd0 | 19001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
19002 | return resultobj; |
19003 | fail: | |
19004 | return NULL; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19009 | PyObject *resultobj; | |
19010 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19011 | wxPoint *result; | |
19012 | PyObject * obj0 = 0 ; | |
19013 | char *kwnames[] = { | |
19014 | (char *) "self", NULL | |
19015 | }; | |
19016 | ||
19017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
19019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19020 | { |
19021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19022 | { | |
19023 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19024 | result = (wxPoint *) &_result_ref; | |
19025 | } | |
19026 | ||
19027 | wxPyEndAllowThreads(__tstate); | |
19028 | if (PyErr_Occurred()) SWIG_fail; | |
19029 | } | |
15afbcd0 | 19030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
19031 | return resultobj; |
19032 | fail: | |
19033 | return NULL; | |
19034 | } | |
19035 | ||
19036 | ||
19037 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19038 | PyObject *resultobj; | |
19039 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19040 | wxPoint *arg2 = 0 ; | |
19041 | wxPoint temp2 ; | |
19042 | PyObject * obj0 = 0 ; | |
19043 | PyObject * obj1 = 0 ; | |
19044 | char *kwnames[] = { | |
19045 | (char *) "self",(char *) "pos", NULL | |
19046 | }; | |
19047 | ||
19048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
19050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19051 | { |
19052 | arg2 = &temp2; | |
19053 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19054 | } | |
19055 | { | |
19056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19057 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19058 | ||
19059 | wxPyEndAllowThreads(__tstate); | |
19060 | if (PyErr_Occurred()) SWIG_fail; | |
19061 | } | |
19062 | Py_INCREF(Py_None); resultobj = Py_None; | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
19069 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
19070 | PyObject *obj; | |
19071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19072 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19073 | Py_INCREF(obj); | |
19074 | return Py_BuildValue((char *)""); | |
19075 | } | |
19076 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19077 | PyObject *resultobj; | |
19078 | wxIdleEvent *result; | |
19079 | char *kwnames[] = { | |
19080 | NULL | |
19081 | }; | |
19082 | ||
19083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19084 | { | |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
15afbcd0 | 19091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
19092 | return resultobj; |
19093 | fail: | |
19094 | return NULL; | |
19095 | } | |
19096 | ||
19097 | ||
19098 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19099 | PyObject *resultobj; | |
19100 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 19101 | bool arg2 = (bool) True ; |
d14a1e28 RD |
19102 | PyObject * obj0 = 0 ; |
19103 | PyObject * obj1 = 0 ; | |
19104 | char *kwnames[] = { | |
19105 | (char *) "self",(char *) "needMore", NULL | |
19106 | }; | |
19107 | ||
19108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19111 | if (obj1) { |
15afbcd0 RD |
19112 | arg2 = (bool) SWIG_AsBool(obj1); |
19113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19114 | } |
19115 | { | |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | (arg1)->RequestMore(arg2); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | Py_INCREF(Py_None); resultobj = Py_None; | |
19123 | return resultobj; | |
19124 | fail: | |
19125 | return NULL; | |
19126 | } | |
19127 | ||
19128 | ||
19129 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19130 | PyObject *resultobj; | |
19131 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19132 | bool result; | |
19133 | PyObject * obj0 = 0 ; | |
19134 | char *kwnames[] = { | |
19135 | (char *) "self", NULL | |
19136 | }; | |
19137 | ||
19138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19141 | { |
19142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19143 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19144 | ||
19145 | wxPyEndAllowThreads(__tstate); | |
19146 | if (PyErr_Occurred()) SWIG_fail; | |
19147 | } | |
4f89f6a3 RD |
19148 | { |
19149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19150 | } | |
d14a1e28 RD |
19151 | return resultobj; |
19152 | fail: | |
19153 | return NULL; | |
19154 | } | |
19155 | ||
19156 | ||
19157 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19158 | PyObject *resultobj; | |
19159 | int arg1 ; | |
994141e6 | 19160 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19161 | char *kwnames[] = { |
19162 | (char *) "mode", NULL | |
19163 | }; | |
19164 | ||
994141e6 | 19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
19166 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
19167 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19168 | { |
19169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19170 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19171 | ||
19172 | wxPyEndAllowThreads(__tstate); | |
19173 | if (PyErr_Occurred()) SWIG_fail; | |
19174 | } | |
19175 | Py_INCREF(Py_None); resultobj = Py_None; | |
19176 | return resultobj; | |
19177 | fail: | |
19178 | return NULL; | |
19179 | } | |
19180 | ||
19181 | ||
19182 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19183 | PyObject *resultobj; | |
19184 | int result; | |
19185 | char *kwnames[] = { | |
19186 | NULL | |
19187 | }; | |
19188 | ||
19189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19190 | { | |
19191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19192 | result = (int)wxIdleEvent::GetMode(); | |
19193 | ||
19194 | wxPyEndAllowThreads(__tstate); | |
19195 | if (PyErr_Occurred()) SWIG_fail; | |
19196 | } | |
15afbcd0 | 19197 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19198 | return resultobj; |
19199 | fail: | |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19207 | bool result; | |
19208 | PyObject * obj0 = 0 ; | |
19209 | char *kwnames[] = { | |
19210 | (char *) "win", NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19216 | { |
19217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19218 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19219 | ||
19220 | wxPyEndAllowThreads(__tstate); | |
19221 | if (PyErr_Occurred()) SWIG_fail; | |
19222 | } | |
4f89f6a3 RD |
19223 | { |
19224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19225 | } | |
d14a1e28 RD |
19226 | return resultobj; |
19227 | fail: | |
19228 | return NULL; | |
19229 | } | |
19230 | ||
19231 | ||
19232 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19233 | PyObject *obj; | |
19234 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19235 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19236 | Py_INCREF(obj); | |
19237 | return Py_BuildValue((char *)""); | |
19238 | } | |
19239 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19240 | PyObject *resultobj; | |
19241 | int arg1 = (int) 0 ; | |
19242 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19243 | wxPyEvent *result; | |
994141e6 RD |
19244 | PyObject * obj0 = 0 ; |
19245 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19246 | char *kwnames[] = { |
19247 | (char *) "winid",(char *) "commandType", NULL | |
19248 | }; | |
19249 | ||
994141e6 RD |
19250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19251 | if (obj0) { | |
15afbcd0 RD |
19252 | arg1 = (int) SWIG_AsInt(obj0); |
19253 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19254 | } |
19255 | if (obj1) { | |
15afbcd0 RD |
19256 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19257 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19258 | } |
d14a1e28 RD |
19259 | { |
19260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19261 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19262 | ||
19263 | wxPyEndAllowThreads(__tstate); | |
19264 | if (PyErr_Occurred()) SWIG_fail; | |
19265 | } | |
15afbcd0 | 19266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19267 | return resultobj; |
19268 | fail: | |
19269 | return NULL; | |
19270 | } | |
19271 | ||
19272 | ||
19273 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19274 | PyObject *resultobj; | |
19275 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19276 | PyObject * obj0 = 0 ; | |
19277 | char *kwnames[] = { | |
19278 | (char *) "self", NULL | |
19279 | }; | |
19280 | ||
19281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19284 | { |
19285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19286 | delete arg1; | |
19287 | ||
19288 | wxPyEndAllowThreads(__tstate); | |
19289 | if (PyErr_Occurred()) SWIG_fail; | |
19290 | } | |
19291 | Py_INCREF(Py_None); resultobj = Py_None; | |
19292 | return resultobj; | |
19293 | fail: | |
19294 | return NULL; | |
19295 | } | |
19296 | ||
19297 | ||
19298 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19299 | PyObject *resultobj; | |
19300 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19301 | PyObject *arg2 = (PyObject *) 0 ; | |
19302 | PyObject * obj0 = 0 ; | |
19303 | PyObject * obj1 = 0 ; | |
19304 | char *kwnames[] = { | |
19305 | (char *) "self",(char *) "self", NULL | |
19306 | }; | |
19307 | ||
19308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19311 | arg2 = obj1; |
19312 | { | |
19313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19314 | (arg1)->SetSelf(arg2); | |
19315 | ||
19316 | wxPyEndAllowThreads(__tstate); | |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
19318 | } | |
19319 | Py_INCREF(Py_None); resultobj = Py_None; | |
19320 | return resultobj; | |
19321 | fail: | |
19322 | return NULL; | |
19323 | } | |
19324 | ||
19325 | ||
19326 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19327 | PyObject *resultobj; | |
19328 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19329 | PyObject *result; | |
19330 | PyObject * obj0 = 0 ; | |
19331 | char *kwnames[] = { | |
19332 | (char *) "self", NULL | |
19333 | }; | |
19334 | ||
19335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19338 | { |
19339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19340 | result = (PyObject *)(arg1)->GetSelf(); | |
19341 | ||
19342 | wxPyEndAllowThreads(__tstate); | |
19343 | if (PyErr_Occurred()) SWIG_fail; | |
19344 | } | |
19345 | resultobj = result; | |
19346 | return resultobj; | |
19347 | fail: | |
19348 | return NULL; | |
19349 | } | |
19350 | ||
19351 | ||
19352 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19353 | PyObject *obj; | |
19354 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19355 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19356 | Py_INCREF(obj); | |
19357 | return Py_BuildValue((char *)""); | |
19358 | } | |
19359 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19360 | PyObject *resultobj; | |
19361 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19362 | int arg2 = (int) 0 ; | |
19363 | wxPyCommandEvent *result; | |
994141e6 RD |
19364 | PyObject * obj0 = 0 ; |
19365 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19366 | char *kwnames[] = { |
19367 | (char *) "commandType",(char *) "id", NULL | |
19368 | }; | |
19369 | ||
994141e6 RD |
19370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19371 | if (obj0) { | |
15afbcd0 RD |
19372 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19373 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19374 | } |
19375 | if (obj1) { | |
15afbcd0 RD |
19376 | arg2 = (int) SWIG_AsInt(obj1); |
19377 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19378 | } |
d14a1e28 RD |
19379 | { |
19380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19381 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19382 | ||
19383 | wxPyEndAllowThreads(__tstate); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | } | |
15afbcd0 | 19386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19387 | return resultobj; |
19388 | fail: | |
19389 | return NULL; | |
19390 | } | |
19391 | ||
19392 | ||
19393 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19394 | PyObject *resultobj; | |
19395 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "self", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19404 | { |
19405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19406 | delete arg1; | |
19407 | ||
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | Py_INCREF(Py_None); resultobj = Py_None; | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj; | |
19420 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19421 | PyObject *arg2 = (PyObject *) 0 ; | |
19422 | PyObject * obj0 = 0 ; | |
19423 | PyObject * obj1 = 0 ; | |
19424 | char *kwnames[] = { | |
19425 | (char *) "self",(char *) "self", NULL | |
19426 | }; | |
19427 | ||
19428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19431 | arg2 = obj1; |
19432 | { | |
19433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19434 | (arg1)->SetSelf(arg2); | |
19435 | ||
19436 | wxPyEndAllowThreads(__tstate); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
19438 | } | |
19439 | Py_INCREF(Py_None); resultobj = Py_None; | |
19440 | return resultobj; | |
19441 | fail: | |
19442 | return NULL; | |
19443 | } | |
19444 | ||
19445 | ||
19446 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19447 | PyObject *resultobj; | |
19448 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19449 | PyObject *result; | |
19450 | PyObject * obj0 = 0 ; | |
19451 | char *kwnames[] = { | |
19452 | (char *) "self", NULL | |
19453 | }; | |
19454 | ||
19455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19458 | { |
19459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19460 | result = (PyObject *)(arg1)->GetSelf(); | |
19461 | ||
19462 | wxPyEndAllowThreads(__tstate); | |
19463 | if (PyErr_Occurred()) SWIG_fail; | |
19464 | } | |
19465 | resultobj = result; | |
19466 | return resultobj; | |
19467 | fail: | |
19468 | return NULL; | |
19469 | } | |
19470 | ||
19471 | ||
19472 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19473 | PyObject *obj; | |
19474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19475 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19476 | Py_INCREF(obj); | |
19477 | return Py_BuildValue((char *)""); | |
19478 | } | |
19479 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19480 | PyObject *resultobj; | |
19481 | wxPyApp *result; | |
19482 | char *kwnames[] = { | |
19483 | NULL | |
19484 | }; | |
19485 | ||
19486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19487 | { | |
19488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19489 | result = (wxPyApp *)new_wxPyApp(); | |
19490 | ||
19491 | wxPyEndAllowThreads(__tstate); | |
19492 | if (PyErr_Occurred()) SWIG_fail; | |
19493 | } | |
b0f7404b | 19494 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d14a1e28 RD |
19495 | return resultobj; |
19496 | fail: | |
19497 | return NULL; | |
19498 | } | |
19499 | ||
19500 | ||
19501 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19502 | PyObject *resultobj; | |
19503 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19504 | PyObject * obj0 = 0 ; | |
19505 | char *kwnames[] = { | |
19506 | (char *) "self", NULL | |
19507 | }; | |
19508 | ||
19509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19512 | { |
19513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19514 | delete arg1; | |
19515 | ||
19516 | wxPyEndAllowThreads(__tstate); | |
19517 | if (PyErr_Occurred()) SWIG_fail; | |
19518 | } | |
19519 | Py_INCREF(Py_None); resultobj = Py_None; | |
19520 | return resultobj; | |
19521 | fail: | |
19522 | return NULL; | |
19523 | } | |
19524 | ||
19525 | ||
19526 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19527 | PyObject *resultobj; | |
19528 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19529 | PyObject *arg2 = (PyObject *) 0 ; | |
19530 | PyObject *arg3 = (PyObject *) 0 ; | |
19531 | PyObject * obj0 = 0 ; | |
19532 | PyObject * obj1 = 0 ; | |
19533 | PyObject * obj2 = 0 ; | |
19534 | char *kwnames[] = { | |
19535 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19536 | }; | |
19537 | ||
19538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19541 | arg2 = obj1; |
19542 | arg3 = obj2; | |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | Py_INCREF(Py_None); resultobj = Py_None; | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj; | |
19559 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19560 | wxString result; | |
19561 | PyObject * obj0 = 0 ; | |
19562 | char *kwnames[] = { | |
19563 | (char *) "self", NULL | |
19564 | }; | |
19565 | ||
19566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19569 | { |
19570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19571 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19572 | ||
19573 | wxPyEndAllowThreads(__tstate); | |
19574 | if (PyErr_Occurred()) SWIG_fail; | |
19575 | } | |
19576 | { | |
19577 | #if wxUSE_UNICODE | |
19578 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19579 | #else | |
19580 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19581 | #endif | |
19582 | } | |
19583 | return resultobj; | |
19584 | fail: | |
19585 | return NULL; | |
19586 | } | |
19587 | ||
19588 | ||
19589 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19590 | PyObject *resultobj; | |
19591 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19592 | wxString *arg2 = 0 ; | |
e811c8ce | 19593 | bool temp2 = False ; |
d14a1e28 RD |
19594 | PyObject * obj0 = 0 ; |
19595 | PyObject * obj1 = 0 ; | |
19596 | char *kwnames[] = { | |
19597 | (char *) "self",(char *) "name", NULL | |
19598 | }; | |
19599 | ||
19600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19603 | { |
19604 | arg2 = wxString_in_helper(obj1); | |
19605 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19606 | temp2 = True; |
d14a1e28 RD |
19607 | } |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | (arg1)->SetAppName((wxString const &)*arg2); | |
19611 | ||
19612 | wxPyEndAllowThreads(__tstate); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
19614 | } | |
19615 | Py_INCREF(Py_None); resultobj = Py_None; | |
19616 | { | |
19617 | if (temp2) | |
19618 | delete arg2; | |
19619 | } | |
19620 | return resultobj; | |
19621 | fail: | |
19622 | { | |
19623 | if (temp2) | |
19624 | delete arg2; | |
19625 | } | |
19626 | return NULL; | |
19627 | } | |
19628 | ||
19629 | ||
19630 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19631 | PyObject *resultobj; | |
19632 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19633 | wxString result; | |
19634 | PyObject * obj0 = 0 ; | |
19635 | char *kwnames[] = { | |
19636 | (char *) "self", NULL | |
19637 | }; | |
19638 | ||
19639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19642 | { |
19643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19644 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19645 | ||
19646 | wxPyEndAllowThreads(__tstate); | |
19647 | if (PyErr_Occurred()) SWIG_fail; | |
19648 | } | |
19649 | { | |
19650 | #if wxUSE_UNICODE | |
19651 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19652 | #else | |
19653 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19654 | #endif | |
19655 | } | |
19656 | return resultobj; | |
19657 | fail: | |
19658 | return NULL; | |
19659 | } | |
19660 | ||
19661 | ||
19662 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19663 | PyObject *resultobj; | |
19664 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19665 | wxString *arg2 = 0 ; | |
e811c8ce | 19666 | bool temp2 = False ; |
d14a1e28 RD |
19667 | PyObject * obj0 = 0 ; |
19668 | PyObject * obj1 = 0 ; | |
19669 | char *kwnames[] = { | |
19670 | (char *) "self",(char *) "name", NULL | |
19671 | }; | |
19672 | ||
19673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19676 | { |
19677 | arg2 = wxString_in_helper(obj1); | |
19678 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19679 | temp2 = True; |
d14a1e28 RD |
19680 | } |
19681 | { | |
19682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19683 | (arg1)->SetClassName((wxString const &)*arg2); | |
19684 | ||
19685 | wxPyEndAllowThreads(__tstate); | |
19686 | if (PyErr_Occurred()) SWIG_fail; | |
19687 | } | |
19688 | Py_INCREF(Py_None); resultobj = Py_None; | |
19689 | { | |
19690 | if (temp2) | |
19691 | delete arg2; | |
19692 | } | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | { | |
19696 | if (temp2) | |
19697 | delete arg2; | |
19698 | } | |
19699 | return NULL; | |
19700 | } | |
19701 | ||
19702 | ||
19703 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19704 | PyObject *resultobj; | |
19705 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19706 | wxString *result; | |
19707 | PyObject * obj0 = 0 ; | |
19708 | char *kwnames[] = { | |
19709 | (char *) "self", NULL | |
19710 | }; | |
19711 | ||
19712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19715 | { |
19716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19717 | { | |
19718 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19719 | result = (wxString *) &_result_ref; | |
19720 | } | |
19721 | ||
19722 | wxPyEndAllowThreads(__tstate); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
cc6dd355 RD |
19725 | { |
19726 | #if wxUSE_UNICODE | |
19727 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19728 | #else | |
19729 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19730 | #endif | |
19731 | } | |
d14a1e28 RD |
19732 | return resultobj; |
19733 | fail: | |
19734 | return NULL; | |
19735 | } | |
19736 | ||
19737 | ||
19738 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19739 | PyObject *resultobj; | |
19740 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19741 | wxString *arg2 = 0 ; | |
e811c8ce | 19742 | bool temp2 = False ; |
d14a1e28 RD |
19743 | PyObject * obj0 = 0 ; |
19744 | PyObject * obj1 = 0 ; | |
19745 | char *kwnames[] = { | |
19746 | (char *) "self",(char *) "name", NULL | |
19747 | }; | |
19748 | ||
19749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19752 | { |
19753 | arg2 = wxString_in_helper(obj1); | |
19754 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19755 | temp2 = True; |
d14a1e28 RD |
19756 | } |
19757 | { | |
19758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19759 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19760 | ||
19761 | wxPyEndAllowThreads(__tstate); | |
19762 | if (PyErr_Occurred()) SWIG_fail; | |
19763 | } | |
19764 | Py_INCREF(Py_None); resultobj = Py_None; | |
19765 | { | |
19766 | if (temp2) | |
19767 | delete arg2; | |
19768 | } | |
19769 | return resultobj; | |
19770 | fail: | |
19771 | { | |
19772 | if (temp2) | |
19773 | delete arg2; | |
19774 | } | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19782 | wxAppTraits *result; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19791 | { |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19794 | ||
19795 | wxPyEndAllowThreads(__tstate); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
15afbcd0 | 19798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19799 | return resultobj; |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
19805 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19806 | PyObject *resultobj; | |
19807 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19808 | PyObject * obj0 = 0 ; | |
19809 | char *kwnames[] = { | |
19810 | (char *) "self", NULL | |
19811 | }; | |
19812 | ||
19813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19816 | { |
19817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19818 | (arg1)->ProcessPendingEvents(); | |
19819 | ||
19820 | wxPyEndAllowThreads(__tstate); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
19823 | Py_INCREF(Py_None); resultobj = Py_None; | |
19824 | return resultobj; | |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
19830 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19831 | PyObject *resultobj; | |
19832 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 19833 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19834 | bool result; |
19835 | PyObject * obj0 = 0 ; | |
19836 | PyObject * obj1 = 0 ; | |
19837 | char *kwnames[] = { | |
19838 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19839 | }; | |
19840 | ||
19841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19844 | if (obj1) { |
15afbcd0 RD |
19845 | arg2 = (bool) SWIG_AsBool(obj1); |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19847 | } |
19848 | { | |
19849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19850 | result = (bool)(arg1)->Yield(arg2); | |
19851 | ||
19852 | wxPyEndAllowThreads(__tstate); | |
19853 | if (PyErr_Occurred()) SWIG_fail; | |
19854 | } | |
4f89f6a3 RD |
19855 | { |
19856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19857 | } | |
d14a1e28 RD |
19858 | return resultobj; |
19859 | fail: | |
19860 | return NULL; | |
19861 | } | |
19862 | ||
19863 | ||
19864 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19865 | PyObject *resultobj; | |
19866 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | char *kwnames[] = { | |
19869 | (char *) "self", NULL | |
19870 | }; | |
19871 | ||
19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19875 | { |
19876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19877 | (arg1)->WakeUpIdle(); | |
19878 | ||
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
19882 | Py_INCREF(Py_None); resultobj = Py_None; | |
19883 | return resultobj; | |
19884 | fail: | |
19885 | return NULL; | |
19886 | } | |
19887 | ||
19888 | ||
19889 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19890 | PyObject *resultobj; | |
19891 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19892 | int result; | |
19893 | PyObject * obj0 = 0 ; | |
19894 | char *kwnames[] = { | |
19895 | (char *) "self", NULL | |
19896 | }; | |
19897 | ||
19898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19901 | { |
19902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19903 | result = (int)(arg1)->MainLoop(); | |
19904 | ||
19905 | wxPyEndAllowThreads(__tstate); | |
19906 | if (PyErr_Occurred()) SWIG_fail; | |
19907 | } | |
15afbcd0 | 19908 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19909 | return resultobj; |
19910 | fail: | |
19911 | return NULL; | |
19912 | } | |
19913 | ||
19914 | ||
19915 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19916 | PyObject *resultobj; | |
19917 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19918 | PyObject * obj0 = 0 ; | |
19919 | char *kwnames[] = { | |
19920 | (char *) "self", NULL | |
19921 | }; | |
19922 | ||
19923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19926 | { |
19927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19928 | (arg1)->Exit(); | |
19929 | ||
19930 | wxPyEndAllowThreads(__tstate); | |
19931 | if (PyErr_Occurred()) SWIG_fail; | |
19932 | } | |
19933 | Py_INCREF(Py_None); resultobj = Py_None; | |
19934 | return resultobj; | |
19935 | fail: | |
19936 | return NULL; | |
19937 | } | |
19938 | ||
19939 | ||
19940 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19941 | PyObject *resultobj; | |
19942 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19951 | { |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | (arg1)->ExitMainLoop(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | Py_INCREF(Py_None); resultobj = Py_None; | |
19959 | return resultobj; | |
19960 | fail: | |
19961 | return NULL; | |
19962 | } | |
19963 | ||
19964 | ||
19965 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19966 | PyObject *resultobj; | |
19967 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19968 | bool result; | |
19969 | PyObject * obj0 = 0 ; | |
19970 | char *kwnames[] = { | |
19971 | (char *) "self", NULL | |
19972 | }; | |
19973 | ||
19974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19977 | { |
19978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19979 | result = (bool)(arg1)->Pending(); | |
19980 | ||
19981 | wxPyEndAllowThreads(__tstate); | |
19982 | if (PyErr_Occurred()) SWIG_fail; | |
19983 | } | |
4f89f6a3 RD |
19984 | { |
19985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19986 | } | |
d14a1e28 RD |
19987 | return resultobj; |
19988 | fail: | |
19989 | return NULL; | |
19990 | } | |
19991 | ||
19992 | ||
19993 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19994 | PyObject *resultobj; | |
19995 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19996 | bool result; | |
19997 | PyObject * obj0 = 0 ; | |
19998 | char *kwnames[] = { | |
19999 | (char *) "self", NULL | |
20000 | }; | |
20001 | ||
20002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20005 | { |
20006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20007 | result = (bool)(arg1)->Dispatch(); | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
4f89f6a3 RD |
20012 | { |
20013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20014 | } | |
d14a1e28 RD |
20015 | return resultobj; |
20016 | fail: | |
20017 | return NULL; | |
20018 | } | |
20019 | ||
20020 | ||
20021 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20022 | PyObject *resultobj; | |
20023 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20024 | bool result; | |
20025 | PyObject * obj0 = 0 ; | |
20026 | char *kwnames[] = { | |
20027 | (char *) "self", NULL | |
20028 | }; | |
20029 | ||
20030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20033 | { |
20034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20035 | result = (bool)(arg1)->ProcessIdle(); | |
20036 | ||
20037 | wxPyEndAllowThreads(__tstate); | |
20038 | if (PyErr_Occurred()) SWIG_fail; | |
20039 | } | |
4f89f6a3 RD |
20040 | { |
20041 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20042 | } | |
d14a1e28 RD |
20043 | return resultobj; |
20044 | fail: | |
20045 | return NULL; | |
20046 | } | |
20047 | ||
20048 | ||
20049 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20050 | PyObject *resultobj; | |
20051 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20052 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20053 | wxIdleEvent *arg3 = 0 ; | |
20054 | bool result; | |
20055 | PyObject * obj0 = 0 ; | |
20056 | PyObject * obj1 = 0 ; | |
20057 | PyObject * obj2 = 0 ; | |
20058 | char *kwnames[] = { | |
20059 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20060 | }; | |
20061 | ||
20062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20067 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20068 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20069 | SWIG_fail; | |
d14a1e28 | 20070 | if (arg3 == NULL) { |
15afbcd0 RD |
20071 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20072 | SWIG_fail; | |
d14a1e28 RD |
20073 | } |
20074 | { | |
20075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20076 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20077 | ||
20078 | wxPyEndAllowThreads(__tstate); | |
20079 | if (PyErr_Occurred()) SWIG_fail; | |
20080 | } | |
4f89f6a3 RD |
20081 | { |
20082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20083 | } | |
d14a1e28 RD |
20084 | return resultobj; |
20085 | fail: | |
20086 | return NULL; | |
20087 | } | |
20088 | ||
20089 | ||
d14a1e28 RD |
20090 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
20091 | PyObject *resultobj; | |
20092 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20093 | bool result; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | char *kwnames[] = { | |
20096 | (char *) "self", NULL | |
20097 | }; | |
20098 | ||
20099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20102 | { |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20105 | ||
20106 | wxPyEndAllowThreads(__tstate); | |
20107 | if (PyErr_Occurred()) SWIG_fail; | |
20108 | } | |
4f89f6a3 RD |
20109 | { |
20110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20111 | } | |
d14a1e28 RD |
20112 | return resultobj; |
20113 | fail: | |
20114 | return NULL; | |
20115 | } | |
20116 | ||
20117 | ||
20118 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20119 | PyObject *resultobj; | |
20120 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20121 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20122 | PyObject * obj0 = 0 ; | |
20123 | PyObject * obj1 = 0 ; | |
20124 | char *kwnames[] = { | |
20125 | (char *) "self",(char *) "win", NULL | |
20126 | }; | |
20127 | ||
20128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20133 | { |
20134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20135 | (arg1)->SetTopWindow(arg2); | |
20136 | ||
20137 | wxPyEndAllowThreads(__tstate); | |
20138 | if (PyErr_Occurred()) SWIG_fail; | |
20139 | } | |
20140 | Py_INCREF(Py_None); resultobj = Py_None; | |
20141 | return resultobj; | |
20142 | fail: | |
20143 | return NULL; | |
20144 | } | |
20145 | ||
20146 | ||
20147 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20148 | PyObject *resultobj; | |
20149 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20150 | wxWindow *result; | |
20151 | PyObject * obj0 = 0 ; | |
20152 | char *kwnames[] = { | |
20153 | (char *) "self", NULL | |
20154 | }; | |
20155 | ||
20156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20159 | { |
20160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20161 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20162 | ||
20163 | wxPyEndAllowThreads(__tstate); | |
20164 | if (PyErr_Occurred()) SWIG_fail; | |
20165 | } | |
20166 | { | |
412d302d | 20167 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20168 | } |
20169 | return resultobj; | |
20170 | fail: | |
20171 | return NULL; | |
20172 | } | |
20173 | ||
20174 | ||
20175 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20176 | PyObject *resultobj; | |
20177 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20178 | bool arg2 ; | |
20179 | PyObject * obj0 = 0 ; | |
20180 | PyObject * obj1 = 0 ; | |
20181 | char *kwnames[] = { | |
20182 | (char *) "self",(char *) "flag", NULL | |
20183 | }; | |
20184 | ||
20185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20188 | arg2 = (bool) SWIG_AsBool(obj1); | |
20189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20190 | { |
20191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20192 | (arg1)->SetExitOnFrameDelete(arg2); | |
20193 | ||
20194 | wxPyEndAllowThreads(__tstate); | |
20195 | if (PyErr_Occurred()) SWIG_fail; | |
20196 | } | |
20197 | Py_INCREF(Py_None); resultobj = Py_None; | |
20198 | return resultobj; | |
20199 | fail: | |
20200 | return NULL; | |
20201 | } | |
20202 | ||
20203 | ||
20204 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20205 | PyObject *resultobj; | |
20206 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20207 | bool result; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | char *kwnames[] = { | |
20210 | (char *) "self", NULL | |
20211 | }; | |
20212 | ||
20213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20216 | { |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20219 | ||
20220 | wxPyEndAllowThreads(__tstate); | |
20221 | if (PyErr_Occurred()) SWIG_fail; | |
20222 | } | |
4f89f6a3 RD |
20223 | { |
20224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20225 | } | |
d14a1e28 RD |
20226 | return resultobj; |
20227 | fail: | |
20228 | return NULL; | |
20229 | } | |
20230 | ||
20231 | ||
20232 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20233 | PyObject *resultobj; | |
20234 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20235 | bool arg2 ; | |
20236 | PyObject * obj0 = 0 ; | |
20237 | PyObject * obj1 = 0 ; | |
20238 | char *kwnames[] = { | |
20239 | (char *) "self",(char *) "flag", NULL | |
20240 | }; | |
20241 | ||
20242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20245 | arg2 = (bool) SWIG_AsBool(obj1); | |
20246 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20247 | { |
20248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20249 | (arg1)->SetUseBestVisual(arg2); | |
20250 | ||
20251 | wxPyEndAllowThreads(__tstate); | |
20252 | if (PyErr_Occurred()) SWIG_fail; | |
20253 | } | |
20254 | Py_INCREF(Py_None); resultobj = Py_None; | |
20255 | return resultobj; | |
20256 | fail: | |
20257 | return NULL; | |
20258 | } | |
20259 | ||
20260 | ||
20261 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20262 | PyObject *resultobj; | |
20263 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20264 | bool result; | |
20265 | PyObject * obj0 = 0 ; | |
20266 | char *kwnames[] = { | |
20267 | (char *) "self", NULL | |
20268 | }; | |
20269 | ||
20270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20273 | { |
20274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20275 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20276 | ||
20277 | wxPyEndAllowThreads(__tstate); | |
20278 | if (PyErr_Occurred()) SWIG_fail; | |
20279 | } | |
4f89f6a3 RD |
20280 | { |
20281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20282 | } | |
d14a1e28 RD |
20283 | return resultobj; |
20284 | fail: | |
20285 | return NULL; | |
20286 | } | |
20287 | ||
20288 | ||
20289 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20290 | PyObject *resultobj; | |
20291 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20292 | int arg2 ; | |
20293 | PyObject * obj0 = 0 ; | |
994141e6 | 20294 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20295 | char *kwnames[] = { |
20296 | (char *) "self",(char *) "mode", NULL | |
20297 | }; | |
20298 | ||
994141e6 | 20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20302 | arg2 = (int) SWIG_AsInt(obj1); | |
20303 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20304 | { |
20305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20306 | (arg1)->SetPrintMode(arg2); | |
20307 | ||
20308 | wxPyEndAllowThreads(__tstate); | |
20309 | if (PyErr_Occurred()) SWIG_fail; | |
20310 | } | |
20311 | Py_INCREF(Py_None); resultobj = Py_None; | |
20312 | return resultobj; | |
20313 | fail: | |
20314 | return NULL; | |
20315 | } | |
20316 | ||
20317 | ||
20318 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20319 | PyObject *resultobj; | |
20320 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20321 | int result; | |
20322 | PyObject * obj0 = 0 ; | |
20323 | char *kwnames[] = { | |
20324 | (char *) "self", NULL | |
20325 | }; | |
20326 | ||
20327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20330 | { |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
15afbcd0 | 20337 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20338 | return resultobj; |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
6c3b4aae | 20344 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20345 | PyObject *resultobj; |
20346 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20347 | int arg2 ; |
d14a1e28 | 20348 | PyObject * obj0 = 0 ; |
994141e6 | 20349 | PyObject * obj1 = 0 ; |
d14a1e28 | 20350 | char *kwnames[] = { |
6c3b4aae | 20351 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20352 | }; |
20353 | ||
994141e6 | 20354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20357 | arg2 = (int) SWIG_AsInt(obj1); | |
20358 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20359 | { |
20360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20361 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20362 | |
20363 | wxPyEndAllowThreads(__tstate); | |
20364 | if (PyErr_Occurred()) SWIG_fail; | |
20365 | } | |
6c3b4aae | 20366 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20367 | return resultobj; |
20368 | fail: | |
20369 | return NULL; | |
20370 | } | |
20371 | ||
20372 | ||
6c3b4aae | 20373 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20374 | PyObject *resultobj; |
20375 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20376 | int result; |
d14a1e28 RD |
20377 | PyObject * obj0 = 0 ; |
20378 | char *kwnames[] = { | |
6c3b4aae | 20379 | (char *) "self", NULL |
d14a1e28 RD |
20380 | }; |
20381 | ||
6c3b4aae | 20382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20385 | { |
20386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20387 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20388 | |
20389 | wxPyEndAllowThreads(__tstate); | |
20390 | if (PyErr_Occurred()) SWIG_fail; | |
20391 | } | |
15afbcd0 | 20392 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20393 | return resultobj; |
20394 | fail: | |
20395 | return NULL; | |
20396 | } | |
20397 | ||
20398 | ||
20399 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20400 | PyObject *resultobj; | |
20401 | bool result; | |
20402 | char *kwnames[] = { | |
20403 | NULL | |
20404 | }; | |
20405 | ||
20406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20407 | { | |
20408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20409 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20410 | ||
20411 | wxPyEndAllowThreads(__tstate); | |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
20413 | } | |
4f89f6a3 RD |
20414 | { |
20415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20416 | } | |
d14a1e28 RD |
20417 | return resultobj; |
20418 | fail: | |
20419 | return NULL; | |
20420 | } | |
20421 | ||
20422 | ||
20423 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20424 | PyObject *resultobj; | |
20425 | long result; | |
20426 | char *kwnames[] = { | |
20427 | NULL | |
20428 | }; | |
20429 | ||
20430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
15afbcd0 | 20438 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20439 | return resultobj; |
20440 | fail: | |
20441 | return NULL; | |
20442 | } | |
20443 | ||
20444 | ||
20445 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20446 | PyObject *resultobj; | |
20447 | long result; | |
20448 | char *kwnames[] = { | |
20449 | NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20453 | { | |
20454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20455 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20456 | ||
20457 | wxPyEndAllowThreads(__tstate); | |
20458 | if (PyErr_Occurred()) SWIG_fail; | |
20459 | } | |
15afbcd0 | 20460 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20461 | return resultobj; |
20462 | fail: | |
20463 | return NULL; | |
20464 | } | |
20465 | ||
20466 | ||
20467 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20468 | PyObject *resultobj; | |
20469 | long result; | |
20470 | char *kwnames[] = { | |
20471 | NULL | |
20472 | }; | |
20473 | ||
20474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20475 | { | |
20476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20477 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20478 | ||
20479 | wxPyEndAllowThreads(__tstate); | |
20480 | if (PyErr_Occurred()) SWIG_fail; | |
20481 | } | |
15afbcd0 | 20482 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20483 | return resultobj; |
20484 | fail: | |
20485 | return NULL; | |
20486 | } | |
20487 | ||
20488 | ||
20489 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20490 | PyObject *resultobj; | |
20491 | wxString result; | |
20492 | char *kwnames[] = { | |
20493 | NULL | |
20494 | }; | |
20495 | ||
20496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20497 | { | |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20500 | ||
20501 | wxPyEndAllowThreads(__tstate); | |
20502 | if (PyErr_Occurred()) SWIG_fail; | |
20503 | } | |
20504 | { | |
20505 | #if wxUSE_UNICODE | |
20506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20507 | #else | |
20508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20509 | #endif | |
20510 | } | |
20511 | return resultobj; | |
20512 | fail: | |
20513 | return NULL; | |
20514 | } | |
20515 | ||
20516 | ||
20517 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20518 | PyObject *resultobj; | |
20519 | bool arg1 ; | |
20520 | PyObject * obj0 = 0 ; | |
20521 | char *kwnames[] = { | |
20522 | (char *) "val", NULL | |
20523 | }; | |
20524 | ||
20525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20526 | arg1 = (bool) SWIG_AsBool(obj0); |
20527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20528 | { |
20529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20530 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20531 | ||
20532 | wxPyEndAllowThreads(__tstate); | |
20533 | if (PyErr_Occurred()) SWIG_fail; | |
20534 | } | |
20535 | Py_INCREF(Py_None); resultobj = Py_None; | |
20536 | return resultobj; | |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
20542 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20543 | PyObject *resultobj; | |
20544 | long arg1 ; | |
994141e6 | 20545 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20546 | char *kwnames[] = { |
20547 | (char *) "val", NULL | |
20548 | }; | |
20549 | ||
994141e6 | 20550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20551 | arg1 = (long) SWIG_AsLong(obj0); |
20552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20553 | { |
20554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20555 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20556 | ||
20557 | wxPyEndAllowThreads(__tstate); | |
20558 | if (PyErr_Occurred()) SWIG_fail; | |
20559 | } | |
20560 | Py_INCREF(Py_None); resultobj = Py_None; | |
20561 | return resultobj; | |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20568 | PyObject *resultobj; | |
20569 | long arg1 ; | |
994141e6 | 20570 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20571 | char *kwnames[] = { |
20572 | (char *) "val", NULL | |
20573 | }; | |
20574 | ||
994141e6 | 20575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20576 | arg1 = (long) SWIG_AsLong(obj0); |
20577 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20578 | { |
20579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20580 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20581 | ||
20582 | wxPyEndAllowThreads(__tstate); | |
20583 | if (PyErr_Occurred()) SWIG_fail; | |
20584 | } | |
20585 | Py_INCREF(Py_None); resultobj = Py_None; | |
20586 | return resultobj; | |
20587 | fail: | |
20588 | return NULL; | |
20589 | } | |
20590 | ||
20591 | ||
20592 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20593 | PyObject *resultobj; | |
20594 | long arg1 ; | |
994141e6 | 20595 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20596 | char *kwnames[] = { |
20597 | (char *) "val", NULL | |
20598 | }; | |
20599 | ||
994141e6 | 20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20601 | arg1 = (long) SWIG_AsLong(obj0); |
20602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20603 | { |
20604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20605 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20606 | ||
20607 | wxPyEndAllowThreads(__tstate); | |
20608 | if (PyErr_Occurred()) SWIG_fail; | |
20609 | } | |
20610 | Py_INCREF(Py_None); resultobj = Py_None; | |
20611 | return resultobj; | |
20612 | fail: | |
20613 | return NULL; | |
20614 | } | |
20615 | ||
20616 | ||
20617 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20618 | PyObject *resultobj; | |
20619 | wxString *arg1 = 0 ; | |
e811c8ce | 20620 | bool temp1 = False ; |
d14a1e28 RD |
20621 | PyObject * obj0 = 0 ; |
20622 | char *kwnames[] = { | |
20623 | (char *) "val", NULL | |
20624 | }; | |
20625 | ||
20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20627 | { | |
20628 | arg1 = wxString_in_helper(obj0); | |
20629 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 20630 | temp1 = True; |
d14a1e28 RD |
20631 | } |
20632 | { | |
20633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20634 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20635 | ||
20636 | wxPyEndAllowThreads(__tstate); | |
20637 | if (PyErr_Occurred()) SWIG_fail; | |
20638 | } | |
20639 | Py_INCREF(Py_None); resultobj = Py_None; | |
20640 | { | |
20641 | if (temp1) | |
20642 | delete arg1; | |
20643 | } | |
20644 | return resultobj; | |
20645 | fail: | |
20646 | { | |
20647 | if (temp1) | |
20648 | delete arg1; | |
20649 | } | |
20650 | return NULL; | |
20651 | } | |
20652 | ||
20653 | ||
20654 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj; | |
20656 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20657 | PyObject * obj0 = 0 ; | |
20658 | char *kwnames[] = { | |
20659 | (char *) "self", NULL | |
20660 | }; | |
20661 | ||
20662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20665 | { |
20666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20667 | (arg1)->_BootstrapApp(); | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
20672 | Py_INCREF(Py_None); resultobj = Py_None; | |
20673 | return resultobj; | |
20674 | fail: | |
20675 | return NULL; | |
20676 | } | |
20677 | ||
20678 | ||
20679 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20680 | PyObject *resultobj; | |
20681 | int result; | |
20682 | char *kwnames[] = { | |
20683 | NULL | |
20684 | }; | |
20685 | ||
20686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20687 | { | |
20688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20689 | result = (int)PyApp_GetComCtl32Version(); | |
20690 | ||
20691 | wxPyEndAllowThreads(__tstate); | |
20692 | if (PyErr_Occurred()) SWIG_fail; | |
20693 | } | |
15afbcd0 | 20694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20695 | return resultobj; |
20696 | fail: | |
20697 | return NULL; | |
20698 | } | |
20699 | ||
20700 | ||
20701 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20702 | PyObject *obj; | |
20703 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20704 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20705 | Py_INCREF(obj); | |
20706 | return Py_BuildValue((char *)""); | |
20707 | } | |
20708 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20709 | PyObject *resultobj; | |
20710 | char *kwnames[] = { | |
20711 | NULL | |
20712 | }; | |
20713 | ||
20714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20715 | { | |
20716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20717 | wxExit(); | |
20718 | ||
20719 | wxPyEndAllowThreads(__tstate); | |
20720 | if (PyErr_Occurred()) SWIG_fail; | |
20721 | } | |
20722 | Py_INCREF(Py_None); resultobj = Py_None; | |
20723 | return resultobj; | |
20724 | fail: | |
20725 | return NULL; | |
20726 | } | |
20727 | ||
20728 | ||
20729 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20730 | PyObject *resultobj; | |
20731 | bool result; | |
20732 | char *kwnames[] = { | |
20733 | NULL | |
20734 | }; | |
20735 | ||
20736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20737 | { | |
20738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20739 | result = (bool)wxYield(); | |
20740 | ||
20741 | wxPyEndAllowThreads(__tstate); | |
20742 | if (PyErr_Occurred()) SWIG_fail; | |
20743 | } | |
4f89f6a3 RD |
20744 | { |
20745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20746 | } | |
d14a1e28 RD |
20747 | return resultobj; |
20748 | fail: | |
20749 | return NULL; | |
20750 | } | |
20751 | ||
20752 | ||
20753 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20754 | PyObject *resultobj; | |
20755 | bool result; | |
20756 | char *kwnames[] = { | |
20757 | NULL | |
20758 | }; | |
20759 | ||
20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20761 | { | |
20762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20763 | result = (bool)wxYieldIfNeeded(); | |
20764 | ||
20765 | wxPyEndAllowThreads(__tstate); | |
20766 | if (PyErr_Occurred()) SWIG_fail; | |
20767 | } | |
4f89f6a3 RD |
20768 | { |
20769 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20770 | } | |
d14a1e28 RD |
20771 | return resultobj; |
20772 | fail: | |
20773 | return NULL; | |
20774 | } | |
20775 | ||
20776 | ||
20777 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20778 | PyObject *resultobj; | |
20779 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 20780 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20781 | bool result; |
20782 | PyObject * obj0 = 0 ; | |
20783 | PyObject * obj1 = 0 ; | |
20784 | char *kwnames[] = { | |
20785 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20786 | }; | |
20787 | ||
20788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20789 | if (obj0) { | |
15afbcd0 RD |
20790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20792 | } |
20793 | if (obj1) { | |
15afbcd0 RD |
20794 | arg2 = (bool) SWIG_AsBool(obj1); |
20795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20796 | } |
20797 | { | |
20798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20799 | result = (bool)wxSafeYield(arg1,arg2); | |
20800 | ||
20801 | wxPyEndAllowThreads(__tstate); | |
20802 | if (PyErr_Occurred()) SWIG_fail; | |
20803 | } | |
4f89f6a3 RD |
20804 | { |
20805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20806 | } | |
d14a1e28 RD |
20807 | return resultobj; |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | char *kwnames[] = { | |
20816 | NULL | |
20817 | }; | |
20818 | ||
20819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20820 | { | |
20821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20822 | wxWakeUpIdle(); | |
20823 | ||
20824 | wxPyEndAllowThreads(__tstate); | |
20825 | if (PyErr_Occurred()) SWIG_fail; | |
20826 | } | |
20827 | Py_INCREF(Py_None); resultobj = Py_None; | |
20828 | return resultobj; | |
20829 | fail: | |
20830 | return NULL; | |
20831 | } | |
20832 | ||
20833 | ||
20834 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20835 | PyObject *resultobj; | |
20836 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20837 | wxEvent *arg2 = 0 ; | |
20838 | PyObject * obj0 = 0 ; | |
20839 | PyObject * obj1 = 0 ; | |
20840 | char *kwnames[] = { | |
20841 | (char *) "dest",(char *) "event", NULL | |
20842 | }; | |
20843 | ||
20844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20849 | SWIG_fail; | |
d14a1e28 | 20850 | if (arg2 == NULL) { |
15afbcd0 RD |
20851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20852 | SWIG_fail; | |
d14a1e28 RD |
20853 | } |
20854 | { | |
20855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20856 | wxPostEvent(arg1,*arg2); | |
20857 | ||
20858 | wxPyEndAllowThreads(__tstate); | |
20859 | if (PyErr_Occurred()) SWIG_fail; | |
20860 | } | |
20861 | Py_INCREF(Py_None); resultobj = Py_None; | |
20862 | return resultobj; | |
20863 | fail: | |
20864 | return NULL; | |
20865 | } | |
20866 | ||
20867 | ||
20868 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20869 | PyObject *resultobj; | |
20870 | char *kwnames[] = { | |
20871 | NULL | |
20872 | }; | |
20873 | ||
20874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20875 | { | |
20876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20877 | wxApp_CleanUp(); | |
20878 | ||
20879 | wxPyEndAllowThreads(__tstate); | |
20880 | if (PyErr_Occurred()) SWIG_fail; | |
20881 | } | |
20882 | Py_INCREF(Py_None); resultobj = Py_None; | |
20883 | return resultobj; | |
20884 | fail: | |
20885 | return NULL; | |
20886 | } | |
20887 | ||
20888 | ||
20889 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20890 | PyObject *resultobj; | |
20891 | wxPyApp *result; | |
20892 | char *kwnames[] = { | |
20893 | NULL | |
20894 | }; | |
20895 | ||
20896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20897 | { | |
20898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 20899 | result = (wxPyApp *)wxPyGetApp(); |
d14a1e28 RD |
20900 | |
20901 | wxPyEndAllowThreads(__tstate); | |
20902 | if (PyErr_Occurred()) SWIG_fail; | |
20903 | } | |
20904 | { | |
412d302d | 20905 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20906 | } |
20907 | return resultobj; | |
20908 | fail: | |
20909 | return NULL; | |
20910 | } | |
20911 | ||
20912 | ||
1e0c8722 RD |
20913 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20914 | PyObject *resultobj; | |
20915 | int arg1 = (int) 0 ; | |
20916 | int arg2 = (int) 0 ; | |
20917 | int arg3 = (int) 0 ; | |
1e0c8722 | 20918 | wxAcceleratorEntry *result; |
994141e6 RD |
20919 | PyObject * obj0 = 0 ; |
20920 | PyObject * obj1 = 0 ; | |
20921 | PyObject * obj2 = 0 ; | |
1e0c8722 | 20922 | char *kwnames[] = { |
66c033b4 | 20923 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
1e0c8722 RD |
20924 | }; |
20925 | ||
66c033b4 | 20926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 20927 | if (obj0) { |
15afbcd0 RD |
20928 | arg1 = (int) SWIG_AsInt(obj0); |
20929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20930 | } |
20931 | if (obj1) { | |
15afbcd0 RD |
20932 | arg2 = (int) SWIG_AsInt(obj1); |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20934 | } |
20935 | if (obj2) { | |
15afbcd0 RD |
20936 | arg3 = (int) SWIG_AsInt(obj2); |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20938 | } |
1e0c8722 RD |
20939 | { |
20940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 20941 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
1e0c8722 RD |
20942 | |
20943 | wxPyEndAllowThreads(__tstate); | |
20944 | if (PyErr_Occurred()) SWIG_fail; | |
20945 | } | |
15afbcd0 | 20946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
20947 | return resultobj; |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20956 | PyObject * obj0 = 0 ; | |
20957 | char *kwnames[] = { | |
20958 | (char *) "self", NULL | |
20959 | }; | |
20960 | ||
20961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20964 | { |
20965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20966 | delete arg1; | |
20967 | ||
20968 | wxPyEndAllowThreads(__tstate); | |
20969 | if (PyErr_Occurred()) SWIG_fail; | |
20970 | } | |
20971 | Py_INCREF(Py_None); resultobj = Py_None; | |
20972 | return resultobj; | |
20973 | fail: | |
20974 | return NULL; | |
20975 | } | |
20976 | ||
20977 | ||
20978 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20979 | PyObject *resultobj; | |
20980 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20981 | int arg2 ; | |
20982 | int arg3 ; | |
20983 | int arg4 ; | |
1e0c8722 | 20984 | PyObject * obj0 = 0 ; |
994141e6 RD |
20985 | PyObject * obj1 = 0 ; |
20986 | PyObject * obj2 = 0 ; | |
20987 | PyObject * obj3 = 0 ; | |
1e0c8722 | 20988 | char *kwnames[] = { |
66c033b4 | 20989 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
1e0c8722 RD |
20990 | }; |
20991 | ||
66c033b4 | 20992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
20993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20995 | arg2 = (int) SWIG_AsInt(obj1); | |
20996 | if (PyErr_Occurred()) SWIG_fail; | |
20997 | arg3 = (int) SWIG_AsInt(obj2); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | arg4 = (int) SWIG_AsInt(obj3); | |
21000 | if (PyErr_Occurred()) SWIG_fail; | |
1e0c8722 RD |
21001 | { |
21002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
66c033b4 | 21003 | (arg1)->Set(arg2,arg3,arg4); |
1e0c8722 RD |
21004 | |
21005 | wxPyEndAllowThreads(__tstate); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
21007 | } | |
21008 | Py_INCREF(Py_None); resultobj = Py_None; | |
21009 | return resultobj; | |
21010 | fail: | |
21011 | return NULL; | |
21012 | } | |
21013 | ||
21014 | ||
1e0c8722 RD |
21015 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
21016 | PyObject *resultobj; | |
21017 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21018 | int result; | |
21019 | PyObject * obj0 = 0 ; | |
21020 | char *kwnames[] = { | |
21021 | (char *) "self", NULL | |
21022 | }; | |
21023 | ||
21024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21027 | { |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | result = (int)(arg1)->GetFlags(); | |
21030 | ||
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
15afbcd0 | 21034 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21035 | return resultobj; |
21036 | fail: | |
21037 | return NULL; | |
21038 | } | |
21039 | ||
21040 | ||
21041 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21042 | PyObject *resultobj; | |
21043 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21044 | int result; | |
21045 | PyObject * obj0 = 0 ; | |
21046 | char *kwnames[] = { | |
21047 | (char *) "self", NULL | |
21048 | }; | |
21049 | ||
21050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21053 | { |
21054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21055 | result = (int)(arg1)->GetKeyCode(); | |
21056 | ||
21057 | wxPyEndAllowThreads(__tstate); | |
21058 | if (PyErr_Occurred()) SWIG_fail; | |
21059 | } | |
15afbcd0 | 21060 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21061 | return resultobj; |
21062 | fail: | |
21063 | return NULL; | |
21064 | } | |
21065 | ||
21066 | ||
21067 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21068 | PyObject *resultobj; | |
21069 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21070 | int result; | |
21071 | PyObject * obj0 = 0 ; | |
21072 | char *kwnames[] = { | |
21073 | (char *) "self", NULL | |
21074 | }; | |
21075 | ||
21076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21079 | { |
21080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21081 | result = (int)(arg1)->GetCommand(); | |
21082 | ||
21083 | wxPyEndAllowThreads(__tstate); | |
21084 | if (PyErr_Occurred()) SWIG_fail; | |
21085 | } | |
15afbcd0 | 21086 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21087 | return resultobj; |
21088 | fail: | |
21089 | return NULL; | |
21090 | } | |
21091 | ||
21092 | ||
21093 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
21094 | PyObject *obj; | |
21095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21096 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21097 | Py_INCREF(obj); | |
21098 | return Py_BuildValue((char *)""); | |
21099 | } | |
21100 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21101 | PyObject *resultobj; | |
21102 | int arg1 ; | |
21103 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21104 | wxAcceleratorTable *result; | |
21105 | PyObject * obj0 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "n", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21111 | { | |
21112 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21113 | if (arg2) arg1 = PyList_Size(obj0); | |
21114 | else arg1 = 0; | |
21115 | } | |
21116 | { | |
21117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21118 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21119 | ||
21120 | wxPyEndAllowThreads(__tstate); | |
21121 | if (PyErr_Occurred()) SWIG_fail; | |
21122 | } | |
15afbcd0 | 21123 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
21124 | { |
21125 | delete [] arg2; | |
21126 | } | |
21127 | return resultobj; | |
21128 | fail: | |
21129 | { | |
21130 | delete [] arg2; | |
21131 | } | |
21132 | return NULL; | |
21133 | } | |
21134 | ||
21135 | ||
21136 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21139 | PyObject * obj0 = 0 ; | |
21140 | char *kwnames[] = { | |
21141 | (char *) "self", NULL | |
21142 | }; | |
21143 | ||
21144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21147 | { |
21148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21149 | delete arg1; | |
21150 | ||
21151 | wxPyEndAllowThreads(__tstate); | |
21152 | if (PyErr_Occurred()) SWIG_fail; | |
21153 | } | |
21154 | Py_INCREF(Py_None); resultobj = Py_None; | |
21155 | return resultobj; | |
21156 | fail: | |
21157 | return NULL; | |
21158 | } | |
21159 | ||
21160 | ||
21161 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21162 | PyObject *resultobj; | |
21163 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21164 | bool result; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "self", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21173 | { |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
4f89f6a3 RD |
21180 | { |
21181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21182 | } | |
1e0c8722 RD |
21183 | return resultobj; |
21184 | fail: | |
21185 | return NULL; | |
21186 | } | |
21187 | ||
21188 | ||
21189 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21190 | PyObject *obj; | |
21191 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21192 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21193 | Py_INCREF(obj); | |
21194 | return Py_BuildValue((char *)""); | |
21195 | } | |
21196 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21197 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21198 | return 1; | |
21199 | } | |
21200 | ||
21201 | ||
21202 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21203 | PyObject *pyobj; | |
21204 | ||
15afbcd0 | 21205 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
21206 | return pyobj; |
21207 | } | |
21208 | ||
21209 | ||
21210 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21211 | PyObject *resultobj; | |
21212 | wxString *arg1 = 0 ; | |
21213 | wxAcceleratorEntry *result; | |
21214 | bool temp1 = False ; | |
21215 | PyObject * obj0 = 0 ; | |
21216 | char *kwnames[] = { | |
21217 | (char *) "label", NULL | |
21218 | }; | |
21219 | ||
21220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21221 | { | |
21222 | arg1 = wxString_in_helper(obj0); | |
21223 | if (arg1 == NULL) SWIG_fail; | |
21224 | temp1 = True; | |
21225 | } | |
21226 | { | |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21228 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21229 | ||
21230 | wxPyEndAllowThreads(__tstate); | |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
21232 | } | |
15afbcd0 | 21233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
21234 | { |
21235 | if (temp1) | |
21236 | delete arg1; | |
21237 | } | |
21238 | return resultobj; | |
21239 | fail: | |
21240 | { | |
21241 | if (temp1) | |
21242 | delete arg1; | |
21243 | } | |
21244 | return NULL; | |
21245 | } | |
21246 | ||
21247 | ||
e811c8ce RD |
21248 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
21249 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21250 | return 1; | |
21251 | } | |
21252 | ||
21253 | ||
21254 | static PyObject *_wrap_PanelNameStr_get() { | |
21255 | PyObject *pyobj; | |
21256 | ||
21257 | { | |
21258 | #if wxUSE_UNICODE | |
21259 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21260 | #else | |
21261 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21262 | #endif | |
21263 | } | |
21264 | return pyobj; | |
21265 | } | |
21266 | ||
21267 | ||
74a57fcd RD |
21268 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
21269 | PyObject *resultobj; | |
21270 | wxVisualAttributes *result; | |
21271 | char *kwnames[] = { | |
21272 | NULL | |
21273 | }; | |
21274 | ||
21275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21276 | { | |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21278 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
21283 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21284 | return resultobj; | |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21293 | PyObject * obj0 = 0 ; | |
21294 | char *kwnames[] = { | |
21295 | (char *) "self", NULL | |
21296 | }; | |
21297 | ||
21298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21301 | { | |
21302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21303 | delete_wxVisualAttributes(arg1); | |
21304 | ||
21305 | wxPyEndAllowThreads(__tstate); | |
21306 | if (PyErr_Occurred()) SWIG_fail; | |
21307 | } | |
21308 | Py_INCREF(Py_None); resultobj = Py_None; | |
21309 | return resultobj; | |
21310 | fail: | |
21311 | return NULL; | |
21312 | } | |
21313 | ||
21314 | ||
21315 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21316 | PyObject *resultobj; | |
21317 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21318 | wxFont *arg2 = (wxFont *) 0 ; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | PyObject * obj1 = 0 ; | |
21321 | char *kwnames[] = { | |
21322 | (char *) "self",(char *) "font", NULL | |
21323 | }; | |
21324 | ||
21325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21328 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21330 | if (arg1) (arg1)->font = *arg2; | |
21331 | ||
21332 | Py_INCREF(Py_None); resultobj = Py_None; | |
21333 | return resultobj; | |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
21339 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21340 | PyObject *resultobj; | |
21341 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21342 | wxFont *result; | |
21343 | PyObject * obj0 = 0 ; | |
21344 | char *kwnames[] = { | |
21345 | (char *) "self", NULL | |
21346 | }; | |
21347 | ||
21348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21351 | result = (wxFont *)& ((arg1)->font); | |
21352 | ||
21353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21354 | return resultobj; | |
21355 | fail: | |
21356 | return NULL; | |
21357 | } | |
21358 | ||
21359 | ||
21360 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21361 | PyObject *resultobj; | |
21362 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21363 | wxColour *arg2 = (wxColour *) 0 ; | |
21364 | PyObject * obj0 = 0 ; | |
21365 | PyObject * obj1 = 0 ; | |
21366 | char *kwnames[] = { | |
21367 | (char *) "self",(char *) "colFg", NULL | |
21368 | }; | |
21369 | ||
21370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21375 | if (arg1) (arg1)->colFg = *arg2; | |
21376 | ||
21377 | Py_INCREF(Py_None); resultobj = Py_None; | |
21378 | return resultobj; | |
21379 | fail: | |
21380 | return NULL; | |
21381 | } | |
21382 | ||
21383 | ||
21384 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21385 | PyObject *resultobj; | |
21386 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21387 | wxColour *result; | |
21388 | PyObject * obj0 = 0 ; | |
21389 | char *kwnames[] = { | |
21390 | (char *) "self", NULL | |
21391 | }; | |
21392 | ||
21393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21396 | result = (wxColour *)& ((arg1)->colFg); | |
21397 | ||
21398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21399 | return resultobj; | |
21400 | fail: | |
21401 | return NULL; | |
21402 | } | |
21403 | ||
21404 | ||
21405 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21406 | PyObject *resultobj; | |
21407 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21408 | wxColour *arg2 = (wxColour *) 0 ; | |
21409 | PyObject * obj0 = 0 ; | |
21410 | PyObject * obj1 = 0 ; | |
21411 | char *kwnames[] = { | |
21412 | (char *) "self",(char *) "colBg", NULL | |
21413 | }; | |
21414 | ||
21415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21420 | if (arg1) (arg1)->colBg = *arg2; | |
21421 | ||
21422 | Py_INCREF(Py_None); resultobj = Py_None; | |
21423 | return resultobj; | |
21424 | fail: | |
21425 | return NULL; | |
21426 | } | |
21427 | ||
21428 | ||
21429 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21430 | PyObject *resultobj; | |
21431 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21432 | wxColour *result; | |
21433 | PyObject * obj0 = 0 ; | |
21434 | char *kwnames[] = { | |
21435 | (char *) "self", NULL | |
21436 | }; | |
21437 | ||
21438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21441 | result = (wxColour *)& ((arg1)->colBg); | |
21442 | ||
21443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21444 | return resultobj; | |
21445 | fail: | |
21446 | return NULL; | |
21447 | } | |
21448 | ||
21449 | ||
21450 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21451 | PyObject *obj; | |
21452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21453 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21454 | Py_INCREF(obj); | |
21455 | return Py_BuildValue((char *)""); | |
21456 | } | |
d14a1e28 RD |
21457 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21458 | PyObject *resultobj; | |
21459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 21460 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
21461 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21462 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21463 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21464 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21465 | long arg5 = (long) 0 ; | |
21466 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21467 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21468 | wxWindow *result; | |
21469 | wxPoint temp3 ; | |
21470 | wxSize temp4 ; | |
e811c8ce | 21471 | bool temp6 = False ; |
d14a1e28 | 21472 | PyObject * obj0 = 0 ; |
994141e6 | 21473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21474 | PyObject * obj2 = 0 ; |
21475 | PyObject * obj3 = 0 ; | |
994141e6 | 21476 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21477 | PyObject * obj5 = 0 ; |
21478 | char *kwnames[] = { | |
21479 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21480 | }; | |
21481 | ||
74a57fcd | 21482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
21483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21485 | if (obj1) { |
21486 | arg2 = (int const) SWIG_AsInt(obj1); | |
21487 | if (PyErr_Occurred()) SWIG_fail; | |
21488 | } | |
d14a1e28 RD |
21489 | if (obj2) { |
21490 | { | |
21491 | arg3 = &temp3; | |
21492 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21493 | } | |
21494 | } | |
21495 | if (obj3) { | |
21496 | { | |
21497 | arg4 = &temp4; | |
21498 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21499 | } | |
21500 | } | |
994141e6 | 21501 | if (obj4) { |
15afbcd0 RD |
21502 | arg5 = (long) SWIG_AsLong(obj4); |
21503 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21504 | } |
d14a1e28 RD |
21505 | if (obj5) { |
21506 | { | |
21507 | arg6 = wxString_in_helper(obj5); | |
21508 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 21509 | temp6 = True; |
d14a1e28 RD |
21510 | } |
21511 | } | |
21512 | { | |
e3b71cb8 | 21513 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21515 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21516 | ||
21517 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21518 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21519 | } |
b0f7404b | 21520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
21521 | { |
21522 | if (temp6) | |
21523 | delete arg6; | |
21524 | } | |
21525 | return resultobj; | |
21526 | fail: | |
21527 | { | |
21528 | if (temp6) | |
21529 | delete arg6; | |
21530 | } | |
21531 | return NULL; | |
21532 | } | |
21533 | ||
21534 | ||
21535 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21536 | PyObject *resultobj; | |
21537 | wxWindow *result; | |
21538 | char *kwnames[] = { | |
21539 | NULL | |
21540 | }; | |
21541 | ||
21542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21543 | { | |
e3b71cb8 | 21544 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21546 | result = (wxWindow *)new wxWindow(); | |
21547 | ||
21548 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21549 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21550 | } |
b0f7404b | 21551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d14a1e28 RD |
21552 | return resultobj; |
21553 | fail: | |
21554 | return NULL; | |
21555 | } | |
21556 | ||
21557 | ||
21558 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21559 | PyObject *resultobj; | |
21560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21561 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 21562 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
21563 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21564 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21565 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21566 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21567 | long arg6 = (long) 0 ; | |
21568 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21569 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21570 | bool result; | |
21571 | wxPoint temp4 ; | |
21572 | wxSize temp5 ; | |
e811c8ce | 21573 | bool temp7 = False ; |
d14a1e28 RD |
21574 | PyObject * obj0 = 0 ; |
21575 | PyObject * obj1 = 0 ; | |
994141e6 | 21576 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21577 | PyObject * obj3 = 0 ; |
21578 | PyObject * obj4 = 0 ; | |
994141e6 | 21579 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21580 | PyObject * obj6 = 0 ; |
21581 | char *kwnames[] = { | |
21582 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21583 | }; | |
21584 | ||
74a57fcd | 21585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21590 | if (obj2) { |
21591 | arg3 = (int const) SWIG_AsInt(obj2); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
d14a1e28 RD |
21594 | if (obj3) { |
21595 | { | |
21596 | arg4 = &temp4; | |
21597 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21598 | } | |
21599 | } | |
21600 | if (obj4) { | |
21601 | { | |
21602 | arg5 = &temp5; | |
21603 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21604 | } | |
21605 | } | |
994141e6 | 21606 | if (obj5) { |
15afbcd0 RD |
21607 | arg6 = (long) SWIG_AsLong(obj5); |
21608 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21609 | } |
d14a1e28 RD |
21610 | if (obj6) { |
21611 | { | |
21612 | arg7 = wxString_in_helper(obj6); | |
21613 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21614 | temp7 = True; |
d14a1e28 RD |
21615 | } |
21616 | } | |
21617 | { | |
21618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21619 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21620 | ||
21621 | wxPyEndAllowThreads(__tstate); | |
21622 | if (PyErr_Occurred()) SWIG_fail; | |
21623 | } | |
4f89f6a3 RD |
21624 | { |
21625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21626 | } | |
d14a1e28 RD |
21627 | { |
21628 | if (temp7) | |
21629 | delete arg7; | |
21630 | } | |
21631 | return resultobj; | |
21632 | fail: | |
21633 | { | |
21634 | if (temp7) | |
21635 | delete arg7; | |
21636 | } | |
21637 | return NULL; | |
21638 | } | |
21639 | ||
21640 | ||
21641 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21642 | PyObject *resultobj; | |
21643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21644 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21645 | bool result; |
21646 | PyObject * obj0 = 0 ; | |
21647 | PyObject * obj1 = 0 ; | |
21648 | char *kwnames[] = { | |
21649 | (char *) "self",(char *) "force", NULL | |
21650 | }; | |
21651 | ||
21652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21655 | if (obj1) { |
15afbcd0 RD |
21656 | arg2 = (bool) SWIG_AsBool(obj1); |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21658 | } |
21659 | { | |
21660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21661 | result = (bool)(arg1)->Close(arg2); | |
21662 | ||
21663 | wxPyEndAllowThreads(__tstate); | |
21664 | if (PyErr_Occurred()) SWIG_fail; | |
21665 | } | |
4f89f6a3 RD |
21666 | { |
21667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21668 | } | |
d14a1e28 RD |
21669 | return resultobj; |
21670 | fail: | |
21671 | return NULL; | |
21672 | } | |
21673 | ||
21674 | ||
21675 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21676 | PyObject *resultobj; | |
21677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21678 | bool result; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21687 | { |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | result = (bool)(arg1)->Destroy(); | |
21690 | ||
21691 | wxPyEndAllowThreads(__tstate); | |
21692 | if (PyErr_Occurred()) SWIG_fail; | |
21693 | } | |
4f89f6a3 RD |
21694 | { |
21695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21696 | } | |
d14a1e28 RD |
21697 | return resultobj; |
21698 | fail: | |
21699 | return NULL; | |
21700 | } | |
21701 | ||
21702 | ||
21703 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21704 | PyObject *resultobj; | |
21705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21706 | bool result; | |
21707 | PyObject * obj0 = 0 ; | |
21708 | char *kwnames[] = { | |
21709 | (char *) "self", NULL | |
21710 | }; | |
21711 | ||
21712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21715 | { |
21716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21717 | result = (bool)(arg1)->DestroyChildren(); | |
21718 | ||
21719 | wxPyEndAllowThreads(__tstate); | |
21720 | if (PyErr_Occurred()) SWIG_fail; | |
21721 | } | |
4f89f6a3 RD |
21722 | { |
21723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21724 | } | |
d14a1e28 RD |
21725 | return resultobj; |
21726 | fail: | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
21731 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21732 | PyObject *resultobj; | |
21733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21734 | bool result; | |
21735 | PyObject * obj0 = 0 ; | |
21736 | char *kwnames[] = { | |
21737 | (char *) "self", NULL | |
21738 | }; | |
21739 | ||
21740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21743 | { |
21744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21745 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21746 | ||
21747 | wxPyEndAllowThreads(__tstate); | |
21748 | if (PyErr_Occurred()) SWIG_fail; | |
21749 | } | |
4f89f6a3 RD |
21750 | { |
21751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21752 | } | |
d14a1e28 RD |
21753 | return resultobj; |
21754 | fail: | |
21755 | return NULL; | |
21756 | } | |
21757 | ||
21758 | ||
21759 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21760 | PyObject *resultobj; | |
21761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21762 | wxString *arg2 = 0 ; | |
e811c8ce | 21763 | bool temp2 = False ; |
d14a1e28 RD |
21764 | PyObject * obj0 = 0 ; |
21765 | PyObject * obj1 = 0 ; | |
21766 | char *kwnames[] = { | |
21767 | (char *) "self",(char *) "title", NULL | |
21768 | }; | |
21769 | ||
21770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21773 | { |
21774 | arg2 = wxString_in_helper(obj1); | |
21775 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21776 | temp2 = True; |
d14a1e28 RD |
21777 | } |
21778 | { | |
21779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21780 | (arg1)->SetTitle((wxString const &)*arg2); | |
21781 | ||
21782 | wxPyEndAllowThreads(__tstate); | |
21783 | if (PyErr_Occurred()) SWIG_fail; | |
21784 | } | |
21785 | Py_INCREF(Py_None); resultobj = Py_None; | |
21786 | { | |
21787 | if (temp2) | |
21788 | delete arg2; | |
21789 | } | |
21790 | return resultobj; | |
21791 | fail: | |
21792 | { | |
21793 | if (temp2) | |
21794 | delete arg2; | |
21795 | } | |
21796 | return NULL; | |
21797 | } | |
21798 | ||
21799 | ||
21800 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21801 | PyObject *resultobj; | |
21802 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21803 | wxString result; | |
21804 | PyObject * obj0 = 0 ; | |
21805 | char *kwnames[] = { | |
21806 | (char *) "self", NULL | |
21807 | }; | |
21808 | ||
21809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21812 | { |
21813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21814 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21815 | ||
21816 | wxPyEndAllowThreads(__tstate); | |
21817 | if (PyErr_Occurred()) SWIG_fail; | |
21818 | } | |
21819 | { | |
21820 | #if wxUSE_UNICODE | |
21821 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21822 | #else | |
21823 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21824 | #endif | |
21825 | } | |
21826 | return resultobj; | |
21827 | fail: | |
21828 | return NULL; | |
21829 | } | |
21830 | ||
21831 | ||
21832 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21833 | PyObject *resultobj; | |
21834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21835 | wxString *arg2 = 0 ; | |
e811c8ce | 21836 | bool temp2 = False ; |
d14a1e28 RD |
21837 | PyObject * obj0 = 0 ; |
21838 | PyObject * obj1 = 0 ; | |
21839 | char *kwnames[] = { | |
21840 | (char *) "self",(char *) "label", NULL | |
21841 | }; | |
21842 | ||
21843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21846 | { |
21847 | arg2 = wxString_in_helper(obj1); | |
21848 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21849 | temp2 = True; |
d14a1e28 RD |
21850 | } |
21851 | { | |
21852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21853 | (arg1)->SetLabel((wxString const &)*arg2); | |
21854 | ||
21855 | wxPyEndAllowThreads(__tstate); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | } | |
21858 | Py_INCREF(Py_None); resultobj = Py_None; | |
21859 | { | |
21860 | if (temp2) | |
21861 | delete arg2; | |
21862 | } | |
21863 | return resultobj; | |
21864 | fail: | |
21865 | { | |
21866 | if (temp2) | |
21867 | delete arg2; | |
21868 | } | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21876 | wxString result; | |
21877 | PyObject * obj0 = 0 ; | |
21878 | char *kwnames[] = { | |
21879 | (char *) "self", NULL | |
21880 | }; | |
21881 | ||
21882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21885 | { |
21886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21887 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21888 | ||
21889 | wxPyEndAllowThreads(__tstate); | |
21890 | if (PyErr_Occurred()) SWIG_fail; | |
21891 | } | |
21892 | { | |
21893 | #if wxUSE_UNICODE | |
21894 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21895 | #else | |
21896 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21897 | #endif | |
21898 | } | |
21899 | return resultobj; | |
21900 | fail: | |
21901 | return NULL; | |
21902 | } | |
21903 | ||
21904 | ||
21905 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21906 | PyObject *resultobj; | |
21907 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21908 | wxString *arg2 = 0 ; | |
e811c8ce | 21909 | bool temp2 = False ; |
d14a1e28 RD |
21910 | PyObject * obj0 = 0 ; |
21911 | PyObject * obj1 = 0 ; | |
21912 | char *kwnames[] = { | |
21913 | (char *) "self",(char *) "name", NULL | |
21914 | }; | |
21915 | ||
21916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21919 | { |
21920 | arg2 = wxString_in_helper(obj1); | |
21921 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21922 | temp2 = True; |
d14a1e28 RD |
21923 | } |
21924 | { | |
21925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21926 | (arg1)->SetName((wxString const &)*arg2); | |
21927 | ||
21928 | wxPyEndAllowThreads(__tstate); | |
21929 | if (PyErr_Occurred()) SWIG_fail; | |
21930 | } | |
21931 | Py_INCREF(Py_None); resultobj = Py_None; | |
21932 | { | |
21933 | if (temp2) | |
21934 | delete arg2; | |
21935 | } | |
21936 | return resultobj; | |
21937 | fail: | |
21938 | { | |
21939 | if (temp2) | |
21940 | delete arg2; | |
21941 | } | |
21942 | return NULL; | |
21943 | } | |
21944 | ||
21945 | ||
21946 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21947 | PyObject *resultobj; | |
21948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21949 | wxString result; | |
21950 | PyObject * obj0 = 0 ; | |
21951 | char *kwnames[] = { | |
21952 | (char *) "self", NULL | |
21953 | }; | |
21954 | ||
21955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21958 | { |
21959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21960 | result = ((wxWindow const *)arg1)->GetName(); | |
21961 | ||
21962 | wxPyEndAllowThreads(__tstate); | |
21963 | if (PyErr_Occurred()) SWIG_fail; | |
21964 | } | |
21965 | { | |
21966 | #if wxUSE_UNICODE | |
21967 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21968 | #else | |
21969 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21970 | #endif | |
21971 | } | |
21972 | return resultobj; | |
21973 | fail: | |
21974 | return NULL; | |
21975 | } | |
21976 | ||
21977 | ||
4276dc52 RD |
21978 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21979 | PyObject *resultobj; | |
21980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21981 | int arg2 ; | |
21982 | PyObject * obj0 = 0 ; | |
21983 | PyObject * obj1 = 0 ; | |
21984 | char *kwnames[] = { | |
21985 | (char *) "self",(char *) "variant", NULL | |
21986 | }; | |
21987 | ||
21988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21991 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21992 | if (PyErr_Occurred()) SWIG_fail; | |
21993 | { | |
21994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21995 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21996 | ||
21997 | wxPyEndAllowThreads(__tstate); | |
21998 | if (PyErr_Occurred()) SWIG_fail; | |
21999 | } | |
22000 | Py_INCREF(Py_None); resultobj = Py_None; | |
22001 | return resultobj; | |
22002 | fail: | |
22003 | return NULL; | |
22004 | } | |
22005 | ||
22006 | ||
22007 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22008 | PyObject *resultobj; | |
22009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22010 | int result; | |
22011 | PyObject * obj0 = 0 ; | |
22012 | char *kwnames[] = { | |
22013 | (char *) "self", NULL | |
22014 | }; | |
22015 | ||
22016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22019 | { | |
22020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22021 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22022 | ||
22023 | wxPyEndAllowThreads(__tstate); | |
22024 | if (PyErr_Occurred()) SWIG_fail; | |
22025 | } | |
22026 | resultobj = SWIG_FromInt((int)result); | |
22027 | return resultobj; | |
22028 | fail: | |
22029 | return NULL; | |
22030 | } | |
22031 | ||
22032 | ||
d14a1e28 RD |
22033 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22034 | PyObject *resultobj; | |
22035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22036 | int arg2 ; |
d14a1e28 | 22037 | PyObject * obj0 = 0 ; |
994141e6 | 22038 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22039 | char *kwnames[] = { |
22040 | (char *) "self",(char *) "winid", NULL | |
22041 | }; | |
22042 | ||
994141e6 | 22043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22046 | arg2 = (int) SWIG_AsInt(obj1); | |
22047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22048 | { |
22049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22050 | (arg1)->SetId(arg2); | |
22051 | ||
22052 | wxPyEndAllowThreads(__tstate); | |
22053 | if (PyErr_Occurred()) SWIG_fail; | |
22054 | } | |
22055 | Py_INCREF(Py_None); resultobj = Py_None; | |
22056 | return resultobj; | |
22057 | fail: | |
22058 | return NULL; | |
22059 | } | |
22060 | ||
22061 | ||
22062 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22063 | PyObject *resultobj; | |
22064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22065 | int result; |
d14a1e28 RD |
22066 | PyObject * obj0 = 0 ; |
22067 | char *kwnames[] = { | |
22068 | (char *) "self", NULL | |
22069 | }; | |
22070 | ||
22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22076 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
22077 | |
22078 | wxPyEndAllowThreads(__tstate); | |
22079 | if (PyErr_Occurred()) SWIG_fail; | |
22080 | } | |
15afbcd0 | 22081 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22082 | return resultobj; |
22083 | fail: | |
22084 | return NULL; | |
22085 | } | |
22086 | ||
22087 | ||
22088 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22089 | PyObject *resultobj; | |
22090 | int result; | |
22091 | char *kwnames[] = { | |
22092 | NULL | |
22093 | }; | |
22094 | ||
22095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (int)wxWindow::NewControlId(); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
15afbcd0 | 22103 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22104 | return resultobj; |
22105 | fail: | |
22106 | return NULL; | |
22107 | } | |
22108 | ||
22109 | ||
22110 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22111 | PyObject *resultobj; | |
22112 | int arg1 ; | |
22113 | int result; | |
994141e6 | 22114 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22115 | char *kwnames[] = { |
22116 | (char *) "winid", NULL | |
22117 | }; | |
22118 | ||
994141e6 | 22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22120 | arg1 = (int) SWIG_AsInt(obj0); |
22121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22122 | { |
22123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22124 | result = (int)wxWindow::NextControlId(arg1); | |
22125 | ||
22126 | wxPyEndAllowThreads(__tstate); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | } | |
15afbcd0 | 22129 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22130 | return resultobj; |
22131 | fail: | |
22132 | return NULL; | |
22133 | } | |
22134 | ||
22135 | ||
22136 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22137 | PyObject *resultobj; | |
22138 | int arg1 ; | |
22139 | int result; | |
994141e6 | 22140 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22141 | char *kwnames[] = { |
22142 | (char *) "winid", NULL | |
22143 | }; | |
22144 | ||
994141e6 | 22145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22146 | arg1 = (int) SWIG_AsInt(obj0); |
22147 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22148 | { |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | result = (int)wxWindow::PrevControlId(arg1); | |
22151 | ||
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
15afbcd0 | 22155 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22156 | return resultobj; |
22157 | fail: | |
22158 | return NULL; | |
22159 | } | |
22160 | ||
22161 | ||
22162 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22163 | PyObject *resultobj; | |
22164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22165 | wxSize *arg2 = 0 ; | |
22166 | wxSize temp2 ; | |
22167 | PyObject * obj0 = 0 ; | |
22168 | PyObject * obj1 = 0 ; | |
22169 | char *kwnames[] = { | |
22170 | (char *) "self",(char *) "size", NULL | |
22171 | }; | |
22172 | ||
22173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22176 | { |
22177 | arg2 = &temp2; | |
22178 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22179 | } | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | (arg1)->SetSize((wxSize const &)*arg2); | |
22183 | ||
22184 | wxPyEndAllowThreads(__tstate); | |
22185 | if (PyErr_Occurred()) SWIG_fail; | |
22186 | } | |
22187 | Py_INCREF(Py_None); resultobj = Py_None; | |
22188 | return resultobj; | |
22189 | fail: | |
22190 | return NULL; | |
22191 | } | |
22192 | ||
22193 | ||
22194 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22195 | PyObject *resultobj; | |
22196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22197 | int arg2 ; | |
22198 | int arg3 ; | |
22199 | int arg4 ; | |
22200 | int arg5 ; | |
22201 | int arg6 = (int) wxSIZE_AUTO ; | |
22202 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22203 | PyObject * obj1 = 0 ; |
22204 | PyObject * obj2 = 0 ; | |
22205 | PyObject * obj3 = 0 ; | |
22206 | PyObject * obj4 = 0 ; | |
22207 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
22208 | char *kwnames[] = { |
22209 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22210 | }; | |
22211 | ||
994141e6 | 22212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22215 | arg2 = (int) SWIG_AsInt(obj1); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | arg3 = (int) SWIG_AsInt(obj2); | |
22218 | if (PyErr_Occurred()) SWIG_fail; | |
22219 | arg4 = (int) SWIG_AsInt(obj3); | |
22220 | if (PyErr_Occurred()) SWIG_fail; | |
22221 | arg5 = (int) SWIG_AsInt(obj4); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22223 | if (obj5) { |
15afbcd0 RD |
22224 | arg6 = (int) SWIG_AsInt(obj5); |
22225 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22226 | } |
d14a1e28 RD |
22227 | { |
22228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22229 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22230 | ||
22231 | wxPyEndAllowThreads(__tstate); | |
22232 | if (PyErr_Occurred()) SWIG_fail; | |
22233 | } | |
22234 | Py_INCREF(Py_None); resultobj = Py_None; | |
22235 | return resultobj; | |
22236 | fail: | |
22237 | return NULL; | |
22238 | } | |
22239 | ||
22240 | ||
22241 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22242 | PyObject *resultobj; | |
22243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22244 | wxRect *arg2 = 0 ; | |
22245 | int arg3 = (int) wxSIZE_AUTO ; | |
22246 | wxRect temp2 ; | |
22247 | PyObject * obj0 = 0 ; | |
22248 | PyObject * obj1 = 0 ; | |
994141e6 | 22249 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22250 | char *kwnames[] = { |
22251 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22252 | }; | |
22253 | ||
994141e6 | 22254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22257 | { |
22258 | arg2 = &temp2; | |
22259 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22260 | } | |
994141e6 | 22261 | if (obj2) { |
15afbcd0 RD |
22262 | arg3 = (int) SWIG_AsInt(obj2); |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22264 | } |
d14a1e28 RD |
22265 | { |
22266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22267 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22268 | ||
22269 | wxPyEndAllowThreads(__tstate); | |
22270 | if (PyErr_Occurred()) SWIG_fail; | |
22271 | } | |
22272 | Py_INCREF(Py_None); resultobj = Py_None; | |
22273 | return resultobj; | |
22274 | fail: | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22282 | int arg2 ; | |
22283 | int arg3 ; | |
22284 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22285 | PyObject * obj1 = 0 ; |
22286 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22287 | char *kwnames[] = { |
22288 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22289 | }; | |
22290 | ||
994141e6 | 22291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22294 | arg2 = (int) SWIG_AsInt(obj1); | |
22295 | if (PyErr_Occurred()) SWIG_fail; | |
22296 | arg3 = (int) SWIG_AsInt(obj2); | |
22297 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22298 | { |
22299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22300 | (arg1)->SetSize(arg2,arg3); | |
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_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22313 | PyObject *resultobj; | |
22314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22315 | wxPoint *arg2 = 0 ; | |
22316 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22317 | wxPoint temp2 ; | |
22318 | PyObject * obj0 = 0 ; | |
22319 | PyObject * obj1 = 0 ; | |
994141e6 | 22320 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22321 | char *kwnames[] = { |
22322 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22323 | }; | |
22324 | ||
994141e6 | 22325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22328 | { |
22329 | arg2 = &temp2; | |
22330 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22331 | } | |
994141e6 | 22332 | if (obj2) { |
15afbcd0 RD |
22333 | arg3 = (int) SWIG_AsInt(obj2); |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22335 | } |
d14a1e28 RD |
22336 | { |
22337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22338 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22339 | ||
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | Py_INCREF(Py_None); resultobj = Py_None; | |
22344 | return resultobj; | |
22345 | fail: | |
22346 | return NULL; | |
22347 | } | |
22348 | ||
22349 | ||
22350 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22351 | PyObject *resultobj; | |
22352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22353 | int arg2 ; | |
22354 | int arg3 ; | |
22355 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22356 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22357 | PyObject * obj1 = 0 ; |
22358 | PyObject * obj2 = 0 ; | |
22359 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22360 | char *kwnames[] = { |
22361 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22362 | }; | |
22363 | ||
994141e6 | 22364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22367 | arg2 = (int) SWIG_AsInt(obj1); | |
22368 | if (PyErr_Occurred()) SWIG_fail; | |
22369 | arg3 = (int) SWIG_AsInt(obj2); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22371 | if (obj3) { |
15afbcd0 RD |
22372 | arg4 = (int) SWIG_AsInt(obj3); |
22373 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22374 | } |
d14a1e28 RD |
22375 | { |
22376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22377 | (arg1)->Move(arg2,arg3,arg4); | |
22378 | ||
22379 | wxPyEndAllowThreads(__tstate); | |
22380 | if (PyErr_Occurred()) SWIG_fail; | |
22381 | } | |
22382 | Py_INCREF(Py_None); resultobj = Py_None; | |
22383 | return resultobj; | |
22384 | fail: | |
22385 | return NULL; | |
22386 | } | |
22387 | ||
22388 | ||
f8167d6e RD |
22389 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
22390 | PyObject *resultobj; | |
22391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22392 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
22393 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
22394 | wxSize temp2 ; | |
22395 | PyObject * obj0 = 0 ; | |
22396 | PyObject * obj1 = 0 ; | |
22397 | char *kwnames[] = { | |
22398 | (char *) "self",(char *) "size", NULL | |
22399 | }; | |
22400 | ||
22401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
22402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22404 | if (obj1) { | |
22405 | { | |
22406 | arg2 = &temp2; | |
22407 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22408 | } | |
22409 | } | |
22410 | { | |
22411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22412 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
22413 | ||
22414 | wxPyEndAllowThreads(__tstate); | |
22415 | if (PyErr_Occurred()) SWIG_fail; | |
22416 | } | |
22417 | Py_INCREF(Py_None); resultobj = Py_None; | |
22418 | return resultobj; | |
22419 | fail: | |
22420 | return NULL; | |
22421 | } | |
22422 | ||
22423 | ||
d14a1e28 RD |
22424 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
22425 | PyObject *resultobj; | |
22426 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22427 | PyObject * obj0 = 0 ; | |
22428 | char *kwnames[] = { | |
22429 | (char *) "self", NULL | |
22430 | }; | |
22431 | ||
22432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22435 | { |
22436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22437 | (arg1)->Raise(); | |
22438 | ||
22439 | wxPyEndAllowThreads(__tstate); | |
22440 | if (PyErr_Occurred()) SWIG_fail; | |
22441 | } | |
22442 | Py_INCREF(Py_None); resultobj = Py_None; | |
22443 | return resultobj; | |
22444 | fail: | |
22445 | return NULL; | |
22446 | } | |
22447 | ||
22448 | ||
22449 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22450 | PyObject *resultobj; | |
22451 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22452 | PyObject * obj0 = 0 ; | |
22453 | char *kwnames[] = { | |
22454 | (char *) "self", NULL | |
22455 | }; | |
22456 | ||
22457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22460 | { |
22461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22462 | (arg1)->Lower(); | |
22463 | ||
22464 | wxPyEndAllowThreads(__tstate); | |
22465 | if (PyErr_Occurred()) SWIG_fail; | |
22466 | } | |
22467 | Py_INCREF(Py_None); resultobj = Py_None; | |
22468 | return resultobj; | |
22469 | fail: | |
22470 | return NULL; | |
22471 | } | |
22472 | ||
22473 | ||
22474 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22475 | PyObject *resultobj; | |
22476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22477 | wxSize *arg2 = 0 ; | |
22478 | wxSize temp2 ; | |
22479 | PyObject * obj0 = 0 ; | |
22480 | PyObject * obj1 = 0 ; | |
22481 | char *kwnames[] = { | |
22482 | (char *) "self",(char *) "size", NULL | |
22483 | }; | |
22484 | ||
22485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22488 | { |
22489 | arg2 = &temp2; | |
22490 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22491 | } | |
22492 | { | |
22493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22494 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22495 | ||
22496 | wxPyEndAllowThreads(__tstate); | |
22497 | if (PyErr_Occurred()) SWIG_fail; | |
22498 | } | |
22499 | Py_INCREF(Py_None); resultobj = Py_None; | |
22500 | return resultobj; | |
22501 | fail: | |
22502 | return NULL; | |
22503 | } | |
22504 | ||
22505 | ||
22506 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22507 | PyObject *resultobj; | |
22508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22509 | int arg2 ; | |
22510 | int arg3 ; | |
22511 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22512 | PyObject * obj1 = 0 ; |
22513 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22514 | char *kwnames[] = { |
22515 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22516 | }; | |
22517 | ||
994141e6 | 22518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22521 | arg2 = (int) SWIG_AsInt(obj1); | |
22522 | if (PyErr_Occurred()) SWIG_fail; | |
22523 | arg3 = (int) SWIG_AsInt(obj2); | |
22524 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22525 | { |
22526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22527 | (arg1)->SetClientSize(arg2,arg3); | |
22528 | ||
22529 | wxPyEndAllowThreads(__tstate); | |
22530 | if (PyErr_Occurred()) SWIG_fail; | |
22531 | } | |
22532 | Py_INCREF(Py_None); resultobj = Py_None; | |
22533 | return resultobj; | |
22534 | fail: | |
22535 | return NULL; | |
22536 | } | |
22537 | ||
22538 | ||
22539 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22540 | PyObject *resultobj; | |
22541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22542 | wxRect *arg2 = 0 ; | |
22543 | wxRect temp2 ; | |
22544 | PyObject * obj0 = 0 ; | |
22545 | PyObject * obj1 = 0 ; | |
22546 | char *kwnames[] = { | |
22547 | (char *) "self",(char *) "rect", NULL | |
22548 | }; | |
22549 | ||
22550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22553 | { |
22554 | arg2 = &temp2; | |
22555 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22556 | } | |
22557 | { | |
22558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22559 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22560 | ||
22561 | wxPyEndAllowThreads(__tstate); | |
22562 | if (PyErr_Occurred()) SWIG_fail; | |
22563 | } | |
22564 | Py_INCREF(Py_None); resultobj = Py_None; | |
22565 | return resultobj; | |
22566 | fail: | |
22567 | return NULL; | |
22568 | } | |
22569 | ||
22570 | ||
22571 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22572 | PyObject *resultobj; | |
22573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22574 | wxPoint result; | |
22575 | PyObject * obj0 = 0 ; | |
22576 | char *kwnames[] = { | |
22577 | (char *) "self", NULL | |
22578 | }; | |
22579 | ||
22580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22583 | { |
22584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22585 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22586 | |
22587 | wxPyEndAllowThreads(__tstate); | |
22588 | if (PyErr_Occurred()) SWIG_fail; | |
22589 | } | |
22590 | { | |
22591 | wxPoint * resultptr; | |
22592 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22593 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22594 | } |
22595 | return resultobj; | |
22596 | fail: | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22602 | PyObject *resultobj; | |
22603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22604 | int *arg2 = (int *) 0 ; | |
22605 | int *arg3 = (int *) 0 ; | |
22606 | int temp2 ; | |
22607 | int temp3 ; | |
22608 | PyObject * obj0 = 0 ; | |
22609 | char *kwnames[] = { | |
22610 | (char *) "self", NULL | |
22611 | }; | |
22612 | ||
22613 | arg2 = &temp2; | |
22614 | arg3 = &temp3; | |
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22618 | { |
22619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22620 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22621 | |
22622 | wxPyEndAllowThreads(__tstate); | |
22623 | if (PyErr_Occurred()) SWIG_fail; | |
22624 | } | |
22625 | Py_INCREF(Py_None); resultobj = Py_None; | |
22626 | { | |
22627 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22628 | resultobj = t_output_helper(resultobj,o); | |
22629 | } | |
22630 | { | |
22631 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22632 | resultobj = t_output_helper(resultobj,o); | |
22633 | } | |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
22640 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22641 | PyObject *resultobj; | |
22642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22643 | wxSize result; | |
22644 | PyObject * obj0 = 0 ; | |
22645 | char *kwnames[] = { | |
22646 | (char *) "self", NULL | |
22647 | }; | |
22648 | ||
22649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22652 | { |
22653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22654 | result = ((wxWindow const *)arg1)->GetSize(); | |
22655 | ||
22656 | wxPyEndAllowThreads(__tstate); | |
22657 | if (PyErr_Occurred()) SWIG_fail; | |
22658 | } | |
22659 | { | |
22660 | wxSize * resultptr; | |
22661 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22663 | } |
22664 | return resultobj; | |
22665 | fail: | |
22666 | return NULL; | |
22667 | } | |
22668 | ||
22669 | ||
22670 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22671 | PyObject *resultobj; | |
22672 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22673 | int *arg2 = (int *) 0 ; | |
22674 | int *arg3 = (int *) 0 ; | |
22675 | int temp2 ; | |
22676 | int temp3 ; | |
22677 | PyObject * obj0 = 0 ; | |
22678 | char *kwnames[] = { | |
22679 | (char *) "self", NULL | |
22680 | }; | |
22681 | ||
22682 | arg2 = &temp2; | |
22683 | arg3 = &temp3; | |
22684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22687 | { |
22688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22689 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22690 | ||
22691 | wxPyEndAllowThreads(__tstate); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
22693 | } | |
22694 | Py_INCREF(Py_None); resultobj = Py_None; | |
22695 | { | |
22696 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22697 | resultobj = t_output_helper(resultobj,o); | |
22698 | } | |
22699 | { | |
22700 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22701 | resultobj = t_output_helper(resultobj,o); | |
22702 | } | |
22703 | return resultobj; | |
22704 | fail: | |
22705 | return NULL; | |
22706 | } | |
22707 | ||
22708 | ||
22709 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22710 | PyObject *resultobj; | |
22711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22712 | wxRect result; | |
22713 | PyObject * obj0 = 0 ; | |
22714 | char *kwnames[] = { | |
22715 | (char *) "self", NULL | |
22716 | }; | |
22717 | ||
22718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22721 | { |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | result = ((wxWindow const *)arg1)->GetRect(); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
22728 | { | |
22729 | wxRect * resultptr; | |
22730 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22732 | } |
22733 | return resultobj; | |
22734 | fail: | |
22735 | return NULL; | |
22736 | } | |
22737 | ||
22738 | ||
22739 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22740 | PyObject *resultobj; | |
22741 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22742 | wxSize result; | |
22743 | PyObject * obj0 = 0 ; | |
22744 | char *kwnames[] = { | |
22745 | (char *) "self", NULL | |
22746 | }; | |
22747 | ||
22748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22751 | { |
22752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22753 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22754 | ||
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | { | |
22759 | wxSize * resultptr; | |
22760 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22761 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22762 | } |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj; | |
22771 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22772 | int *arg2 = (int *) 0 ; | |
22773 | int *arg3 = (int *) 0 ; | |
22774 | int temp2 ; | |
22775 | int temp3 ; | |
22776 | PyObject * obj0 = 0 ; | |
22777 | char *kwnames[] = { | |
22778 | (char *) "self", NULL | |
22779 | }; | |
22780 | ||
22781 | arg2 = &temp2; | |
22782 | arg3 = &temp3; | |
22783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22786 | { |
22787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22788 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22789 | ||
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | Py_INCREF(Py_None); resultobj = Py_None; | |
22794 | { | |
22795 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22796 | resultobj = t_output_helper(resultobj,o); | |
22797 | } | |
22798 | { | |
22799 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22800 | resultobj = t_output_helper(resultobj,o); | |
22801 | } | |
22802 | return resultobj; | |
22803 | fail: | |
22804 | return NULL; | |
22805 | } | |
22806 | ||
22807 | ||
22808 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22809 | PyObject *resultobj; | |
22810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22811 | wxPoint result; | |
22812 | PyObject * obj0 = 0 ; | |
22813 | char *kwnames[] = { | |
22814 | (char *) "self", NULL | |
22815 | }; | |
22816 | ||
22817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22820 | { |
22821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22822 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22823 | ||
22824 | wxPyEndAllowThreads(__tstate); | |
22825 | if (PyErr_Occurred()) SWIG_fail; | |
22826 | } | |
22827 | { | |
22828 | wxPoint * resultptr; | |
22829 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22830 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22831 | } |
22832 | return resultobj; | |
22833 | fail: | |
22834 | return NULL; | |
22835 | } | |
22836 | ||
22837 | ||
22838 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22839 | PyObject *resultobj; | |
22840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22841 | wxRect result; | |
22842 | PyObject * obj0 = 0 ; | |
22843 | char *kwnames[] = { | |
22844 | (char *) "self", NULL | |
22845 | }; | |
22846 | ||
22847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22850 | { |
22851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22852 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22853 | ||
22854 | wxPyEndAllowThreads(__tstate); | |
22855 | if (PyErr_Occurred()) SWIG_fail; | |
22856 | } | |
22857 | { | |
22858 | wxRect * resultptr; | |
22859 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22860 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22861 | } |
22862 | return resultobj; | |
22863 | fail: | |
22864 | return NULL; | |
22865 | } | |
22866 | ||
22867 | ||
22868 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22869 | PyObject *resultobj; | |
22870 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22871 | wxSize result; | |
22872 | PyObject * obj0 = 0 ; | |
22873 | char *kwnames[] = { | |
22874 | (char *) "self", NULL | |
22875 | }; | |
22876 | ||
22877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22880 | { |
22881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22882 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22883 | ||
22884 | wxPyEndAllowThreads(__tstate); | |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
22886 | } | |
22887 | { | |
22888 | wxSize * resultptr; | |
22889 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22890 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22891 | } |
22892 | return resultobj; | |
22893 | fail: | |
22894 | return NULL; | |
22895 | } | |
22896 | ||
22897 | ||
22898 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22899 | PyObject *resultobj; | |
22900 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22901 | int *arg2 = (int *) 0 ; | |
22902 | int *arg3 = (int *) 0 ; | |
22903 | int temp2 ; | |
22904 | int temp3 ; | |
22905 | PyObject * obj0 = 0 ; | |
22906 | char *kwnames[] = { | |
22907 | (char *) "self", NULL | |
22908 | }; | |
22909 | ||
22910 | arg2 = &temp2; | |
22911 | arg3 = &temp3; | |
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22915 | { |
22916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22917 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22918 | ||
22919 | wxPyEndAllowThreads(__tstate); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | } | |
22922 | Py_INCREF(Py_None); resultobj = Py_None; | |
22923 | { | |
22924 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22925 | resultobj = t_output_helper(resultobj,o); | |
22926 | } | |
22927 | { | |
22928 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22929 | resultobj = t_output_helper(resultobj,o); | |
22930 | } | |
22931 | return resultobj; | |
22932 | fail: | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
dfbb5885 RD |
22937 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
22938 | PyObject *resultobj; | |
22939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22940 | PyObject * obj0 = 0 ; | |
22941 | char *kwnames[] = { | |
22942 | (char *) "self", NULL | |
22943 | }; | |
22944 | ||
22945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
22946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22948 | { | |
22949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22950 | (arg1)->InvalidateBestSize(); | |
22951 | ||
22952 | wxPyEndAllowThreads(__tstate); | |
22953 | if (PyErr_Occurred()) SWIG_fail; | |
22954 | } | |
22955 | Py_INCREF(Py_None); resultobj = Py_None; | |
22956 | return resultobj; | |
22957 | fail: | |
22958 | return NULL; | |
22959 | } | |
22960 | ||
22961 | ||
22962 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22963 | PyObject *resultobj; | |
22964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22965 | wxSize result; | |
22966 | PyObject * obj0 = 0 ; | |
22967 | char *kwnames[] = { | |
22968 | (char *) "self", NULL | |
22969 | }; | |
22970 | ||
22971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
22972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22974 | { | |
22975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22976 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
22977 | ||
22978 | wxPyEndAllowThreads(__tstate); | |
22979 | if (PyErr_Occurred()) SWIG_fail; | |
22980 | } | |
22981 | { | |
22982 | wxSize * resultptr; | |
22983 | resultptr = new wxSize((wxSize &) result); | |
22984 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22985 | } | |
22986 | return resultobj; | |
22987 | fail: | |
22988 | return NULL; | |
22989 | } | |
22990 | ||
22991 | ||
d14a1e28 RD |
22992 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
22993 | PyObject *resultobj; | |
22994 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22995 | wxSize result; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23004 | { |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23007 | ||
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
23011 | { | |
23012 | wxSize * resultptr; | |
23013 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23014 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23015 | } |
23016 | return resultobj; | |
23017 | fail: | |
23018 | return NULL; | |
23019 | } | |
23020 | ||
23021 | ||
23022 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23023 | PyObject *resultobj; | |
23024 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23025 | int arg2 = (int) wxBOTH ; | |
23026 | PyObject * obj0 = 0 ; | |
994141e6 | 23027 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23028 | char *kwnames[] = { |
23029 | (char *) "self",(char *) "direction", NULL | |
23030 | }; | |
23031 | ||
994141e6 | 23032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23035 | if (obj1) { |
15afbcd0 RD |
23036 | arg2 = (int) SWIG_AsInt(obj1); |
23037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23038 | } |
d14a1e28 RD |
23039 | { |
23040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23041 | (arg1)->Center(arg2); | |
23042 | ||
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | Py_INCREF(Py_None); resultobj = Py_None; | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23054 | PyObject *resultobj; | |
23055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23056 | int arg2 = (int) wxBOTH ; | |
23057 | PyObject * obj0 = 0 ; | |
994141e6 | 23058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23059 | char *kwnames[] = { |
23060 | (char *) "self",(char *) "dir", NULL | |
23061 | }; | |
23062 | ||
994141e6 | 23063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23066 | if (obj1) { |
15afbcd0 RD |
23067 | arg2 = (int) SWIG_AsInt(obj1); |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23069 | } |
d14a1e28 RD |
23070 | { |
23071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23072 | (arg1)->CenterOnScreen(arg2); | |
23073 | ||
23074 | wxPyEndAllowThreads(__tstate); | |
23075 | if (PyErr_Occurred()) SWIG_fail; | |
23076 | } | |
23077 | Py_INCREF(Py_None); resultobj = Py_None; | |
23078 | return resultobj; | |
23079 | fail: | |
23080 | return NULL; | |
23081 | } | |
23082 | ||
23083 | ||
23084 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23085 | PyObject *resultobj; | |
23086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23087 | int arg2 = (int) wxBOTH ; | |
23088 | PyObject * obj0 = 0 ; | |
994141e6 | 23089 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23090 | char *kwnames[] = { |
23091 | (char *) "self",(char *) "dir", NULL | |
23092 | }; | |
23093 | ||
994141e6 | 23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23097 | if (obj1) { |
15afbcd0 RD |
23098 | arg2 = (int) SWIG_AsInt(obj1); |
23099 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23100 | } |
d14a1e28 RD |
23101 | { |
23102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23103 | (arg1)->CenterOnParent(arg2); | |
23104 | ||
23105 | wxPyEndAllowThreads(__tstate); | |
23106 | if (PyErr_Occurred()) SWIG_fail; | |
23107 | } | |
23108 | Py_INCREF(Py_None); resultobj = Py_None; | |
23109 | return resultobj; | |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23118 | PyObject * obj0 = 0 ; | |
23119 | char *kwnames[] = { | |
23120 | (char *) "self", NULL | |
23121 | }; | |
23122 | ||
23123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23126 | { |
23127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23128 | (arg1)->Fit(); | |
23129 | ||
23130 | wxPyEndAllowThreads(__tstate); | |
23131 | if (PyErr_Occurred()) SWIG_fail; | |
23132 | } | |
23133 | Py_INCREF(Py_None); resultobj = Py_None; | |
23134 | return resultobj; | |
23135 | fail: | |
23136 | return NULL; | |
23137 | } | |
23138 | ||
23139 | ||
23140 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23141 | PyObject *resultobj; | |
23142 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23143 | PyObject * obj0 = 0 ; | |
23144 | char *kwnames[] = { | |
23145 | (char *) "self", NULL | |
23146 | }; | |
23147 | ||
23148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23151 | { |
23152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23153 | (arg1)->FitInside(); | |
23154 | ||
23155 | wxPyEndAllowThreads(__tstate); | |
23156 | if (PyErr_Occurred()) SWIG_fail; | |
23157 | } | |
23158 | Py_INCREF(Py_None); resultobj = Py_None; | |
23159 | return resultobj; | |
23160 | fail: | |
23161 | return NULL; | |
23162 | } | |
23163 | ||
23164 | ||
74a57fcd | 23165 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { |
908b74cd RD |
23166 | PyObject *resultobj; |
23167 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23168 | wxSize *arg2 = 0 ; | |
23169 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23170 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23171 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23172 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23173 | wxSize temp2 ; | |
23174 | wxSize temp3 ; | |
23175 | wxSize temp4 ; | |
23176 | PyObject * obj0 = 0 ; | |
23177 | PyObject * obj1 = 0 ; | |
23178 | PyObject * obj2 = 0 ; | |
23179 | PyObject * obj3 = 0 ; | |
23180 | ||
23181 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23184 | { | |
23185 | arg2 = &temp2; | |
23186 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23187 | } | |
23188 | if (obj2) { | |
23189 | { | |
23190 | arg3 = &temp3; | |
23191 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23192 | } | |
23193 | } | |
23194 | if (obj3) { | |
23195 | { | |
23196 | arg4 = &temp4; | |
23197 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23198 | } | |
23199 | } | |
23200 | { | |
23201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23202 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
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 | ||
23214 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
23215 | PyObject *resultobj; |
23216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23217 | int arg2 ; | |
23218 | int arg3 ; | |
23219 | int arg4 = (int) -1 ; | |
23220 | int arg5 = (int) -1 ; | |
23221 | int arg6 = (int) -1 ; | |
23222 | int arg7 = (int) -1 ; | |
23223 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23224 | PyObject * obj1 = 0 ; |
23225 | PyObject * obj2 = 0 ; | |
23226 | PyObject * obj3 = 0 ; | |
23227 | PyObject * obj4 = 0 ; | |
23228 | PyObject * obj5 = 0 ; | |
23229 | PyObject * obj6 = 0 ; | |
d14a1e28 | 23230 | |
74a57fcd | 23231 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23234 | arg2 = (int) SWIG_AsInt(obj1); | |
23235 | if (PyErr_Occurred()) SWIG_fail; | |
23236 | arg3 = (int) SWIG_AsInt(obj2); | |
23237 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23238 | if (obj3) { |
15afbcd0 RD |
23239 | arg4 = (int) SWIG_AsInt(obj3); |
23240 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23241 | } |
23242 | if (obj4) { | |
15afbcd0 RD |
23243 | arg5 = (int) SWIG_AsInt(obj4); |
23244 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23245 | } |
23246 | if (obj5) { | |
15afbcd0 RD |
23247 | arg6 = (int) SWIG_AsInt(obj5); |
23248 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23249 | } |
23250 | if (obj6) { | |
15afbcd0 RD |
23251 | arg7 = (int) SWIG_AsInt(obj6); |
23252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23253 | } |
d14a1e28 RD |
23254 | { |
23255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23256 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23257 | ||
23258 | wxPyEndAllowThreads(__tstate); | |
23259 | if (PyErr_Occurred()) SWIG_fail; | |
23260 | } | |
23261 | Py_INCREF(Py_None); resultobj = Py_None; | |
23262 | return resultobj; | |
23263 | fail: | |
23264 | return NULL; | |
23265 | } | |
23266 | ||
23267 | ||
74a57fcd RD |
23268 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { |
23269 | int argc; | |
23270 | PyObject *argv[8]; | |
23271 | int ii; | |
23272 | ||
23273 | argc = PyObject_Length(args); | |
23274 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23275 | argv[ii] = PyTuple_GetItem(args,ii); | |
23276 | } | |
23277 | if ((argc >= 2) && (argc <= 4)) { | |
23278 | int _v; | |
23279 | { | |
23280 | void *ptr; | |
23281 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23282 | _v = 0; | |
23283 | PyErr_Clear(); | |
23284 | } else { | |
23285 | _v = 1; | |
23286 | } | |
23287 | } | |
23288 | if (_v) { | |
23289 | { | |
23290 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23291 | } | |
23292 | if (_v) { | |
23293 | if (argc <= 2) { | |
908b74cd | 23294 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); |
74a57fcd RD |
23295 | } |
23296 | { | |
23297 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23298 | } | |
23299 | if (_v) { | |
23300 | if (argc <= 3) { | |
908b74cd | 23301 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); |
74a57fcd RD |
23302 | } |
23303 | { | |
23304 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23305 | } | |
23306 | if (_v) { | |
908b74cd | 23307 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); |
74a57fcd RD |
23308 | } |
23309 | } | |
23310 | } | |
23311 | } | |
23312 | } | |
23313 | if ((argc >= 3) && (argc <= 7)) { | |
23314 | int _v; | |
23315 | { | |
23316 | void *ptr; | |
23317 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23318 | _v = 0; | |
23319 | PyErr_Clear(); | |
23320 | } else { | |
23321 | _v = 1; | |
23322 | } | |
23323 | } | |
23324 | if (_v) { | |
23325 | _v = SWIG_CheckInt(argv[1]); | |
23326 | if (_v) { | |
23327 | _v = SWIG_CheckInt(argv[2]); | |
23328 | if (_v) { | |
23329 | if (argc <= 3) { | |
908b74cd | 23330 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23331 | } |
23332 | _v = SWIG_CheckInt(argv[3]); | |
23333 | if (_v) { | |
23334 | if (argc <= 4) { | |
908b74cd | 23335 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23336 | } |
23337 | _v = SWIG_CheckInt(argv[4]); | |
23338 | if (_v) { | |
23339 | if (argc <= 5) { | |
908b74cd | 23340 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23341 | } |
23342 | _v = SWIG_CheckInt(argv[5]); | |
23343 | if (_v) { | |
23344 | if (argc <= 6) { | |
908b74cd | 23345 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23346 | } |
23347 | _v = SWIG_CheckInt(argv[6]); | |
23348 | if (_v) { | |
908b74cd | 23349 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23350 | } |
23351 | } | |
23352 | } | |
23353 | } | |
23354 | } | |
23355 | } | |
23356 | } | |
23357 | } | |
23358 | ||
23359 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23360 | return NULL; | |
23361 | } | |
23362 | ||
23363 | ||
23364 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
23365 | PyObject *resultobj; |
23366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23367 | wxSize *arg2 = 0 ; |
23368 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23369 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23370 | wxSize temp2 ; | |
23371 | wxSize temp3 ; | |
d14a1e28 | 23372 | PyObject * obj0 = 0 ; |
994141e6 RD |
23373 | PyObject * obj1 = 0 ; |
23374 | PyObject * obj2 = 0 ; | |
d14a1e28 | 23375 | |
908b74cd | 23376 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23379 | { |
23380 | arg2 = &temp2; | |
23381 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
994141e6 | 23382 | } |
908b74cd RD |
23383 | if (obj2) { |
23384 | { | |
23385 | arg3 = &temp3; | |
23386 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23387 | } | |
994141e6 | 23388 | } |
d14a1e28 RD |
23389 | { |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23391 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
23392 | |
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
23396 | Py_INCREF(Py_None); resultobj = Py_None; | |
23397 | return resultobj; | |
23398 | fail: | |
23399 | return NULL; | |
23400 | } | |
23401 | ||
23402 | ||
74a57fcd RD |
23403 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23404 | PyObject *resultobj; | |
23405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23406 | int arg2 ; |
23407 | int arg3 ; | |
23408 | int arg4 = (int) -1 ; | |
23409 | int arg5 = (int) -1 ; | |
74a57fcd RD |
23410 | PyObject * obj0 = 0 ; |
23411 | PyObject * obj1 = 0 ; | |
23412 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23413 | PyObject * obj3 = 0 ; |
23414 | PyObject * obj4 = 0 ; | |
74a57fcd | 23415 | |
908b74cd | 23416 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
74a57fcd RD |
23417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23419 | arg2 = (int) SWIG_AsInt(obj1); |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | arg3 = (int) SWIG_AsInt(obj2); | |
23422 | if (PyErr_Occurred()) SWIG_fail; | |
23423 | if (obj3) { | |
23424 | arg4 = (int) SWIG_AsInt(obj3); | |
23425 | if (PyErr_Occurred()) SWIG_fail; | |
74a57fcd | 23426 | } |
908b74cd RD |
23427 | if (obj4) { |
23428 | arg5 = (int) SWIG_AsInt(obj4); | |
23429 | if (PyErr_Occurred()) SWIG_fail; | |
74a57fcd RD |
23430 | } |
23431 | { | |
23432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23433 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
74a57fcd RD |
23434 | |
23435 | wxPyEndAllowThreads(__tstate); | |
23436 | if (PyErr_Occurred()) SWIG_fail; | |
23437 | } | |
23438 | Py_INCREF(Py_None); resultobj = Py_None; | |
23439 | return resultobj; | |
23440 | fail: | |
23441 | return NULL; | |
23442 | } | |
23443 | ||
23444 | ||
23445 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23446 | int argc; | |
23447 | PyObject *argv[6]; | |
23448 | int ii; | |
23449 | ||
23450 | argc = PyObject_Length(args); | |
23451 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23452 | argv[ii] = PyTuple_GetItem(args,ii); | |
23453 | } | |
23454 | if ((argc >= 2) && (argc <= 3)) { | |
23455 | int _v; | |
23456 | { | |
23457 | void *ptr; | |
23458 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23459 | _v = 0; | |
23460 | PyErr_Clear(); | |
23461 | } else { | |
23462 | _v = 1; | |
23463 | } | |
23464 | } | |
23465 | if (_v) { | |
23466 | { | |
23467 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23468 | } | |
23469 | if (_v) { | |
23470 | if (argc <= 2) { | |
908b74cd | 23471 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); |
74a57fcd RD |
23472 | } |
23473 | { | |
23474 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23475 | } | |
23476 | if (_v) { | |
908b74cd | 23477 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); |
74a57fcd RD |
23478 | } |
23479 | } | |
23480 | } | |
23481 | } | |
23482 | if ((argc >= 3) && (argc <= 5)) { | |
23483 | int _v; | |
23484 | { | |
23485 | void *ptr; | |
23486 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23487 | _v = 0; | |
23488 | PyErr_Clear(); | |
23489 | } else { | |
23490 | _v = 1; | |
23491 | } | |
23492 | } | |
23493 | if (_v) { | |
23494 | _v = SWIG_CheckInt(argv[1]); | |
23495 | if (_v) { | |
23496 | _v = SWIG_CheckInt(argv[2]); | |
23497 | if (_v) { | |
23498 | if (argc <= 3) { | |
908b74cd | 23499 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23500 | } |
23501 | _v = SWIG_CheckInt(argv[3]); | |
23502 | if (_v) { | |
23503 | if (argc <= 4) { | |
908b74cd | 23504 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23505 | } |
23506 | _v = SWIG_CheckInt(argv[4]); | |
23507 | if (_v) { | |
908b74cd | 23508 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); |
74a57fcd RD |
23509 | } |
23510 | } | |
23511 | } | |
23512 | } | |
23513 | } | |
23514 | } | |
23515 | ||
23516 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23517 | return NULL; | |
23518 | } | |
23519 | ||
23520 | ||
908b74cd | 23521 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23522 | PyObject *resultobj; |
23523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23524 | wxSize result; |
d14a1e28 RD |
23525 | PyObject * obj0 = 0 ; |
23526 | char *kwnames[] = { | |
23527 | (char *) "self", NULL | |
23528 | }; | |
23529 | ||
908b74cd | 23530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23533 | { |
23534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23535 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d14a1e28 RD |
23536 | |
23537 | wxPyEndAllowThreads(__tstate); | |
23538 | if (PyErr_Occurred()) SWIG_fail; | |
23539 | } | |
908b74cd RD |
23540 | { |
23541 | wxSize * resultptr; | |
23542 | resultptr = new wxSize((wxSize &) result); | |
23543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23544 | } | |
d14a1e28 RD |
23545 | return resultobj; |
23546 | fail: | |
23547 | return NULL; | |
23548 | } | |
23549 | ||
23550 | ||
908b74cd | 23551 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23552 | PyObject *resultobj; |
23553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23554 | wxSize result; |
d14a1e28 RD |
23555 | PyObject * obj0 = 0 ; |
23556 | char *kwnames[] = { | |
23557 | (char *) "self", NULL | |
23558 | }; | |
23559 | ||
908b74cd | 23560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23563 | { |
23564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23565 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d14a1e28 RD |
23566 | |
23567 | wxPyEndAllowThreads(__tstate); | |
23568 | if (PyErr_Occurred()) SWIG_fail; | |
23569 | } | |
908b74cd RD |
23570 | { |
23571 | wxSize * resultptr; | |
23572 | resultptr = new wxSize((wxSize &) result); | |
23573 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23574 | } | |
d14a1e28 RD |
23575 | return resultobj; |
23576 | fail: | |
23577 | return NULL; | |
23578 | } | |
23579 | ||
23580 | ||
908b74cd RD |
23581 | static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23582 | PyObject *resultobj; | |
23583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23584 | wxSize *arg2 = 0 ; | |
23585 | wxSize temp2 ; | |
23586 | PyObject * obj0 = 0 ; | |
23587 | PyObject * obj1 = 0 ; | |
23588 | char *kwnames[] = { | |
23589 | (char *) "self",(char *) "minSize", NULL | |
23590 | }; | |
23591 | ||
23592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
23593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23595 | { | |
23596 | arg2 = &temp2; | |
23597 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23598 | } | |
23599 | { | |
23600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23601 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
23602 | ||
23603 | wxPyEndAllowThreads(__tstate); | |
23604 | if (PyErr_Occurred()) SWIG_fail; | |
23605 | } | |
23606 | Py_INCREF(Py_None); resultobj = Py_None; | |
23607 | return resultobj; | |
23608 | fail: | |
23609 | return NULL; | |
23610 | } | |
23611 | ||
23612 | ||
23613 | static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23614 | PyObject *resultobj; | |
23615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23616 | wxSize *arg2 = 0 ; | |
23617 | wxSize temp2 ; | |
23618 | PyObject * obj0 = 0 ; | |
23619 | PyObject * obj1 = 0 ; | |
23620 | char *kwnames[] = { | |
23621 | (char *) "self",(char *) "maxSize", NULL | |
23622 | }; | |
23623 | ||
23624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
23625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23627 | { | |
23628 | arg2 = &temp2; | |
23629 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23630 | } | |
23631 | { | |
23632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23633 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
23634 | ||
23635 | wxPyEndAllowThreads(__tstate); | |
23636 | if (PyErr_Occurred()) SWIG_fail; | |
23637 | } | |
23638 | Py_INCREF(Py_None); resultobj = Py_None; | |
23639 | return resultobj; | |
23640 | fail: | |
23641 | return NULL; | |
23642 | } | |
23643 | ||
23644 | ||
23645 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
23646 | PyObject *resultobj; |
23647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23648 | int result; | |
23649 | PyObject * obj0 = 0 ; | |
23650 | char *kwnames[] = { | |
23651 | (char *) "self", NULL | |
23652 | }; | |
23653 | ||
908b74cd | 23654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23657 | { |
23658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23659 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d14a1e28 RD |
23660 | |
23661 | wxPyEndAllowThreads(__tstate); | |
23662 | if (PyErr_Occurred()) SWIG_fail; | |
23663 | } | |
15afbcd0 | 23664 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23665 | return resultobj; |
23666 | fail: | |
23667 | return NULL; | |
23668 | } | |
23669 | ||
23670 | ||
908b74cd | 23671 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23672 | PyObject *resultobj; |
23673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23674 | int result; | |
23675 | PyObject * obj0 = 0 ; | |
23676 | char *kwnames[] = { | |
23677 | (char *) "self", NULL | |
23678 | }; | |
23679 | ||
908b74cd | 23680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23683 | { |
23684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23685 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d14a1e28 RD |
23686 | |
23687 | wxPyEndAllowThreads(__tstate); | |
23688 | if (PyErr_Occurred()) SWIG_fail; | |
23689 | } | |
15afbcd0 | 23690 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23691 | return resultobj; |
23692 | fail: | |
23693 | return NULL; | |
23694 | } | |
23695 | ||
23696 | ||
908b74cd | 23697 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
23698 | PyObject *resultobj; |
23699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23700 | int result; |
d14a1e28 RD |
23701 | PyObject * obj0 = 0 ; |
23702 | char *kwnames[] = { | |
23703 | (char *) "self", NULL | |
23704 | }; | |
23705 | ||
908b74cd | 23706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
23707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23709 | { |
23710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23711 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d14a1e28 RD |
23712 | |
23713 | wxPyEndAllowThreads(__tstate); | |
23714 | if (PyErr_Occurred()) SWIG_fail; | |
23715 | } | |
908b74cd | 23716 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23717 | return resultobj; |
23718 | fail: | |
23719 | return NULL; | |
23720 | } | |
23721 | ||
23722 | ||
908b74cd | 23723 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
74a57fcd RD |
23724 | PyObject *resultobj; |
23725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23726 | int result; |
74a57fcd RD |
23727 | PyObject * obj0 = 0 ; |
23728 | char *kwnames[] = { | |
23729 | (char *) "self", NULL | |
23730 | }; | |
23731 | ||
908b74cd | 23732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
74a57fcd RD |
23733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23735 | { | |
23736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23737 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
74a57fcd RD |
23738 | |
23739 | wxPyEndAllowThreads(__tstate); | |
23740 | if (PyErr_Occurred()) SWIG_fail; | |
23741 | } | |
908b74cd | 23742 | resultobj = SWIG_FromInt((int)result); |
74a57fcd RD |
23743 | return resultobj; |
23744 | fail: | |
23745 | return NULL; | |
23746 | } | |
23747 | ||
23748 | ||
d14a1e28 RD |
23749 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23750 | PyObject *resultobj; | |
23751 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23752 | wxSize *arg2 = 0 ; | |
23753 | wxSize temp2 ; | |
23754 | PyObject * obj0 = 0 ; | |
23755 | PyObject * obj1 = 0 ; | |
23756 | char *kwnames[] = { | |
23757 | (char *) "self",(char *) "size", NULL | |
23758 | }; | |
23759 | ||
23760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23763 | { |
23764 | arg2 = &temp2; | |
23765 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23766 | } | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | Py_INCREF(Py_None); resultobj = Py_None; | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23784 | int arg2 ; | |
23785 | int arg3 ; | |
23786 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23787 | PyObject * obj1 = 0 ; |
23788 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23789 | char *kwnames[] = { |
23790 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23791 | }; | |
23792 | ||
994141e6 | 23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23796 | arg2 = (int) SWIG_AsInt(obj1); | |
23797 | if (PyErr_Occurred()) SWIG_fail; | |
23798 | arg3 = (int) SWIG_AsInt(obj2); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23800 | { |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | (arg1)->SetVirtualSize(arg2,arg3); | |
23803 | ||
23804 | wxPyEndAllowThreads(__tstate); | |
23805 | if (PyErr_Occurred()) SWIG_fail; | |
23806 | } | |
23807 | Py_INCREF(Py_None); resultobj = Py_None; | |
23808 | return resultobj; | |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj; | |
23816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23817 | wxSize result; | |
23818 | PyObject * obj0 = 0 ; | |
23819 | char *kwnames[] = { | |
23820 | (char *) "self", NULL | |
23821 | }; | |
23822 | ||
23823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23826 | { |
23827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23828 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23829 | ||
23830 | wxPyEndAllowThreads(__tstate); | |
23831 | if (PyErr_Occurred()) SWIG_fail; | |
23832 | } | |
23833 | { | |
23834 | wxSize * resultptr; | |
23835 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23837 | } |
23838 | return resultobj; | |
23839 | fail: | |
23840 | return NULL; | |
23841 | } | |
23842 | ||
23843 | ||
23844 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23845 | PyObject *resultobj; | |
23846 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23847 | int *arg2 = (int *) 0 ; | |
23848 | int *arg3 = (int *) 0 ; | |
23849 | int temp2 ; | |
23850 | int temp3 ; | |
23851 | PyObject * obj0 = 0 ; | |
23852 | char *kwnames[] = { | |
23853 | (char *) "self", NULL | |
23854 | }; | |
23855 | ||
23856 | arg2 = &temp2; | |
23857 | arg3 = &temp3; | |
23858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23861 | { |
23862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23863 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23864 | ||
23865 | wxPyEndAllowThreads(__tstate); | |
23866 | if (PyErr_Occurred()) SWIG_fail; | |
23867 | } | |
23868 | Py_INCREF(Py_None); resultobj = Py_None; | |
23869 | { | |
23870 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23871 | resultobj = t_output_helper(resultobj,o); | |
23872 | } | |
23873 | { | |
23874 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23875 | resultobj = t_output_helper(resultobj,o); | |
23876 | } | |
23877 | return resultobj; | |
23878 | fail: | |
23879 | return NULL; | |
23880 | } | |
23881 | ||
23882 | ||
23883 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23884 | PyObject *resultobj; | |
23885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23886 | wxSize result; | |
23887 | PyObject * obj0 = 0 ; | |
23888 | char *kwnames[] = { | |
23889 | (char *) "self", NULL | |
23890 | }; | |
23891 | ||
23892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23895 | { |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
23902 | { | |
23903 | wxSize * resultptr; | |
23904 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23906 | } |
23907 | return resultobj; | |
23908 | fail: | |
23909 | return NULL; | |
23910 | } | |
23911 | ||
23912 | ||
23913 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23914 | PyObject *resultobj; | |
23915 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23916 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23917 | bool result; |
23918 | PyObject * obj0 = 0 ; | |
23919 | PyObject * obj1 = 0 ; | |
23920 | char *kwnames[] = { | |
23921 | (char *) "self",(char *) "show", NULL | |
23922 | }; | |
23923 | ||
23924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23927 | if (obj1) { |
15afbcd0 RD |
23928 | arg2 = (bool) SWIG_AsBool(obj1); |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23930 | } |
23931 | { | |
23932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23933 | result = (bool)(arg1)->Show(arg2); | |
23934 | ||
23935 | wxPyEndAllowThreads(__tstate); | |
23936 | if (PyErr_Occurred()) SWIG_fail; | |
23937 | } | |
4f89f6a3 RD |
23938 | { |
23939 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23940 | } | |
d14a1e28 RD |
23941 | return resultobj; |
23942 | fail: | |
23943 | return NULL; | |
23944 | } | |
23945 | ||
23946 | ||
23947 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23948 | PyObject *resultobj; | |
23949 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23950 | bool result; | |
23951 | PyObject * obj0 = 0 ; | |
23952 | char *kwnames[] = { | |
23953 | (char *) "self", NULL | |
23954 | }; | |
23955 | ||
23956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23959 | { |
23960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23961 | result = (bool)(arg1)->Hide(); | |
23962 | ||
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
4f89f6a3 RD |
23966 | { |
23967 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23968 | } | |
d14a1e28 RD |
23969 | return resultobj; |
23970 | fail: | |
23971 | return NULL; | |
23972 | } | |
23973 | ||
23974 | ||
23975 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23976 | PyObject *resultobj; | |
23977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23978 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23979 | bool result; |
23980 | PyObject * obj0 = 0 ; | |
23981 | PyObject * obj1 = 0 ; | |
23982 | char *kwnames[] = { | |
23983 | (char *) "self",(char *) "enable", NULL | |
23984 | }; | |
23985 | ||
23986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23989 | if (obj1) { |
15afbcd0 RD |
23990 | arg2 = (bool) SWIG_AsBool(obj1); |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23992 | } |
23993 | { | |
23994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23995 | result = (bool)(arg1)->Enable(arg2); | |
23996 | ||
23997 | wxPyEndAllowThreads(__tstate); | |
23998 | if (PyErr_Occurred()) SWIG_fail; | |
23999 | } | |
4f89f6a3 RD |
24000 | { |
24001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24002 | } | |
d14a1e28 RD |
24003 | return resultobj; |
24004 | fail: | |
24005 | return NULL; | |
24006 | } | |
24007 | ||
24008 | ||
24009 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24010 | PyObject *resultobj; | |
24011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24012 | bool result; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | char *kwnames[] = { | |
24015 | (char *) "self", NULL | |
24016 | }; | |
24017 | ||
24018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24021 | { |
24022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24023 | result = (bool)(arg1)->Disable(); | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
4f89f6a3 RD |
24028 | { |
24029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24030 | } | |
d14a1e28 RD |
24031 | return resultobj; |
24032 | fail: | |
24033 | return NULL; | |
24034 | } | |
24035 | ||
24036 | ||
24037 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24038 | PyObject *resultobj; | |
24039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24040 | bool result; | |
24041 | PyObject * obj0 = 0 ; | |
24042 | char *kwnames[] = { | |
24043 | (char *) "self", NULL | |
24044 | }; | |
24045 | ||
24046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24049 | { |
24050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24051 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24052 | ||
24053 | wxPyEndAllowThreads(__tstate); | |
24054 | if (PyErr_Occurred()) SWIG_fail; | |
24055 | } | |
4f89f6a3 RD |
24056 | { |
24057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24058 | } | |
d14a1e28 RD |
24059 | return resultobj; |
24060 | fail: | |
24061 | return NULL; | |
24062 | } | |
24063 | ||
24064 | ||
24065 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24066 | PyObject *resultobj; | |
24067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24068 | bool result; | |
24069 | PyObject * obj0 = 0 ; | |
24070 | char *kwnames[] = { | |
24071 | (char *) "self", NULL | |
24072 | }; | |
24073 | ||
24074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24077 | { |
24078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24079 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24080 | ||
24081 | wxPyEndAllowThreads(__tstate); | |
24082 | if (PyErr_Occurred()) SWIG_fail; | |
24083 | } | |
4f89f6a3 RD |
24084 | { |
24085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24086 | } | |
d14a1e28 RD |
24087 | return resultobj; |
24088 | fail: | |
24089 | return NULL; | |
24090 | } | |
24091 | ||
24092 | ||
24093 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24094 | PyObject *resultobj; | |
24095 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24096 | long arg2 ; | |
24097 | PyObject * obj0 = 0 ; | |
994141e6 | 24098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24099 | char *kwnames[] = { |
24100 | (char *) "self",(char *) "style", NULL | |
24101 | }; | |
24102 | ||
994141e6 | 24103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24106 | arg2 = (long) SWIG_AsLong(obj1); | |
24107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24108 | { |
24109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24110 | (arg1)->SetWindowStyleFlag(arg2); | |
24111 | ||
24112 | wxPyEndAllowThreads(__tstate); | |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
24114 | } | |
24115 | Py_INCREF(Py_None); resultobj = Py_None; | |
24116 | return resultobj; | |
24117 | fail: | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24125 | long result; | |
24126 | PyObject * obj0 = 0 ; | |
24127 | char *kwnames[] = { | |
24128 | (char *) "self", NULL | |
24129 | }; | |
24130 | ||
24131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24134 | { |
24135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24136 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24137 | ||
24138 | wxPyEndAllowThreads(__tstate); | |
24139 | if (PyErr_Occurred()) SWIG_fail; | |
24140 | } | |
15afbcd0 | 24141 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24142 | return resultobj; |
24143 | fail: | |
24144 | return NULL; | |
24145 | } | |
24146 | ||
24147 | ||
24148 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24149 | PyObject *resultobj; | |
24150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24151 | int arg2 ; | |
24152 | bool result; | |
24153 | PyObject * obj0 = 0 ; | |
994141e6 | 24154 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24155 | char *kwnames[] = { |
24156 | (char *) "self",(char *) "flag", NULL | |
24157 | }; | |
24158 | ||
994141e6 | 24159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24162 | arg2 = (int) SWIG_AsInt(obj1); | |
24163 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24164 | { |
24165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24166 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24167 | ||
24168 | wxPyEndAllowThreads(__tstate); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | } | |
4f89f6a3 RD |
24171 | { |
24172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24173 | } | |
d14a1e28 RD |
24174 | return resultobj; |
24175 | fail: | |
24176 | return NULL; | |
24177 | } | |
24178 | ||
24179 | ||
24180 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24181 | PyObject *resultobj; | |
24182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24183 | bool result; | |
24184 | PyObject * obj0 = 0 ; | |
24185 | char *kwnames[] = { | |
24186 | (char *) "self", NULL | |
24187 | }; | |
24188 | ||
24189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24192 | { |
24193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24194 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24195 | ||
24196 | wxPyEndAllowThreads(__tstate); | |
24197 | if (PyErr_Occurred()) SWIG_fail; | |
24198 | } | |
4f89f6a3 RD |
24199 | { |
24200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24201 | } | |
d14a1e28 RD |
24202 | return resultobj; |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
24208 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24209 | PyObject *resultobj; | |
24210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24211 | long arg2 ; | |
24212 | PyObject * obj0 = 0 ; | |
994141e6 | 24213 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24214 | char *kwnames[] = { |
24215 | (char *) "self",(char *) "exStyle", NULL | |
24216 | }; | |
24217 | ||
994141e6 | 24218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24221 | arg2 = (long) SWIG_AsLong(obj1); | |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24223 | { |
24224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24225 | (arg1)->SetExtraStyle(arg2); | |
24226 | ||
24227 | wxPyEndAllowThreads(__tstate); | |
24228 | if (PyErr_Occurred()) SWIG_fail; | |
24229 | } | |
24230 | Py_INCREF(Py_None); resultobj = Py_None; | |
24231 | return resultobj; | |
24232 | fail: | |
24233 | return NULL; | |
24234 | } | |
24235 | ||
24236 | ||
24237 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24238 | PyObject *resultobj; | |
24239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24240 | long result; | |
24241 | PyObject * obj0 = 0 ; | |
24242 | char *kwnames[] = { | |
24243 | (char *) "self", NULL | |
24244 | }; | |
24245 | ||
24246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24249 | { |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
15afbcd0 | 24256 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24257 | return resultobj; |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24264 | PyObject *resultobj; | |
24265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24266 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24267 | PyObject * obj0 = 0 ; |
24268 | PyObject * obj1 = 0 ; | |
24269 | char *kwnames[] = { | |
24270 | (char *) "self",(char *) "modal", NULL | |
24271 | }; | |
24272 | ||
24273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24276 | if (obj1) { |
15afbcd0 RD |
24277 | arg2 = (bool) SWIG_AsBool(obj1); |
24278 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24279 | } |
24280 | { | |
24281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24282 | (arg1)->MakeModal(arg2); | |
24283 | ||
24284 | wxPyEndAllowThreads(__tstate); | |
24285 | if (PyErr_Occurred()) SWIG_fail; | |
24286 | } | |
24287 | Py_INCREF(Py_None); resultobj = Py_None; | |
24288 | return resultobj; | |
24289 | fail: | |
24290 | return NULL; | |
24291 | } | |
24292 | ||
24293 | ||
24294 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24295 | PyObject *resultobj; | |
24296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24297 | bool arg2 ; | |
24298 | PyObject * obj0 = 0 ; | |
24299 | PyObject * obj1 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self",(char *) "enableTheme", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24307 | arg2 = (bool) SWIG_AsBool(obj1); | |
24308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24309 | { |
24310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24311 | (arg1)->SetThemeEnabled(arg2); | |
24312 | ||
24313 | wxPyEndAllowThreads(__tstate); | |
24314 | if (PyErr_Occurred()) SWIG_fail; | |
24315 | } | |
24316 | Py_INCREF(Py_None); resultobj = Py_None; | |
24317 | return resultobj; | |
24318 | fail: | |
24319 | return NULL; | |
24320 | } | |
24321 | ||
24322 | ||
24323 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24324 | PyObject *resultobj; | |
24325 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24326 | bool result; | |
24327 | PyObject * obj0 = 0 ; | |
24328 | char *kwnames[] = { | |
24329 | (char *) "self", NULL | |
24330 | }; | |
24331 | ||
24332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24335 | { |
24336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24337 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24338 | ||
24339 | wxPyEndAllowThreads(__tstate); | |
24340 | if (PyErr_Occurred()) SWIG_fail; | |
24341 | } | |
4f89f6a3 RD |
24342 | { |
24343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24344 | } | |
d14a1e28 RD |
24345 | return resultobj; |
24346 | fail: | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
d14a1e28 RD |
24351 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
24352 | PyObject *resultobj; | |
24353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24354 | PyObject * obj0 = 0 ; | |
24355 | char *kwnames[] = { | |
24356 | (char *) "self", NULL | |
24357 | }; | |
24358 | ||
24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24362 | { |
24363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24364 | (arg1)->SetFocus(); | |
24365 | ||
24366 | wxPyEndAllowThreads(__tstate); | |
24367 | if (PyErr_Occurred()) SWIG_fail; | |
24368 | } | |
24369 | Py_INCREF(Py_None); resultobj = Py_None; | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
24376 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24377 | PyObject *resultobj; | |
24378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24379 | PyObject * obj0 = 0 ; | |
24380 | char *kwnames[] = { | |
24381 | (char *) "self", NULL | |
24382 | }; | |
24383 | ||
24384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24387 | { |
24388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24389 | (arg1)->SetFocusFromKbd(); | |
24390 | ||
24391 | wxPyEndAllowThreads(__tstate); | |
24392 | if (PyErr_Occurred()) SWIG_fail; | |
24393 | } | |
24394 | Py_INCREF(Py_None); resultobj = Py_None; | |
24395 | return resultobj; | |
24396 | fail: | |
24397 | return NULL; | |
24398 | } | |
24399 | ||
24400 | ||
24401 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24402 | PyObject *resultobj; | |
24403 | wxWindow *result; | |
24404 | char *kwnames[] = { | |
24405 | NULL | |
24406 | }; | |
24407 | ||
24408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24409 | { | |
e3b71cb8 | 24410 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
24411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24412 | result = (wxWindow *)wxWindow::FindFocus(); | |
24413 | ||
24414 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24415 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
24416 | } |
24417 | { | |
412d302d | 24418 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24419 | } |
24420 | return resultobj; | |
24421 | fail: | |
24422 | return NULL; | |
24423 | } | |
24424 | ||
24425 | ||
24426 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24427 | PyObject *resultobj; | |
24428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24429 | bool result; | |
24430 | PyObject * obj0 = 0 ; | |
24431 | char *kwnames[] = { | |
24432 | (char *) "self", NULL | |
24433 | }; | |
24434 | ||
24435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24438 | { |
24439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24440 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24441 | ||
24442 | wxPyEndAllowThreads(__tstate); | |
24443 | if (PyErr_Occurred()) SWIG_fail; | |
24444 | } | |
4f89f6a3 RD |
24445 | { |
24446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24447 | } | |
d14a1e28 RD |
24448 | return resultobj; |
24449 | fail: | |
24450 | return NULL; | |
24451 | } | |
24452 | ||
24453 | ||
24454 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24455 | PyObject *resultobj; | |
24456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24457 | bool result; | |
24458 | PyObject * obj0 = 0 ; | |
24459 | char *kwnames[] = { | |
24460 | (char *) "self", NULL | |
24461 | }; | |
24462 | ||
24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24466 | { |
24467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24468 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24469 | ||
24470 | wxPyEndAllowThreads(__tstate); | |
24471 | if (PyErr_Occurred()) SWIG_fail; | |
24472 | } | |
4f89f6a3 RD |
24473 | { |
24474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24475 | } | |
d14a1e28 RD |
24476 | return resultobj; |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24483 | PyObject *resultobj; | |
24484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24485 | wxWindow *result; | |
24486 | PyObject * obj0 = 0 ; | |
24487 | char *kwnames[] = { | |
24488 | (char *) "self", NULL | |
24489 | }; | |
24490 | ||
24491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24494 | { |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24497 | ||
24498 | wxPyEndAllowThreads(__tstate); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | } | |
24501 | { | |
412d302d | 24502 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24503 | } |
24504 | return resultobj; | |
24505 | fail: | |
24506 | return NULL; | |
24507 | } | |
24508 | ||
24509 | ||
24510 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24511 | PyObject *resultobj; | |
24512 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24513 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24514 | wxWindow *result; | |
24515 | PyObject * obj0 = 0 ; | |
24516 | PyObject * obj1 = 0 ; | |
24517 | char *kwnames[] = { | |
24518 | (char *) "self",(char *) "child", NULL | |
24519 | }; | |
24520 | ||
24521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24526 | { |
24527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24528 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24529 | ||
24530 | wxPyEndAllowThreads(__tstate); | |
24531 | if (PyErr_Occurred()) SWIG_fail; | |
24532 | } | |
24533 | { | |
412d302d | 24534 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24535 | } |
24536 | return resultobj; | |
24537 | fail: | |
24538 | return NULL; | |
24539 | } | |
24540 | ||
24541 | ||
24542 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24543 | PyObject *resultobj; | |
24544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24546 | PyObject * obj0 = 0 ; | |
24547 | PyObject * obj1 = 0 ; | |
24548 | char *kwnames[] = { | |
24549 | (char *) "self",(char *) "win", NULL | |
24550 | }; | |
24551 | ||
24552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24557 | { |
24558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24559 | (arg1)->SetTmpDefaultItem(arg2); | |
24560 | ||
24561 | wxPyEndAllowThreads(__tstate); | |
24562 | if (PyErr_Occurred()) SWIG_fail; | |
24563 | } | |
24564 | Py_INCREF(Py_None); resultobj = Py_None; | |
24565 | return resultobj; | |
24566 | fail: | |
24567 | return NULL; | |
24568 | } | |
24569 | ||
24570 | ||
908b74cd RD |
24571 | static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) { |
24572 | PyObject *resultobj; | |
24573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24574 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
24575 | bool result; | |
24576 | PyObject * obj0 = 0 ; | |
24577 | PyObject * obj1 = 0 ; | |
24578 | char *kwnames[] = { | |
24579 | (char *) "self",(char *) "flags", NULL | |
24580 | }; | |
24581 | ||
24582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
24583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24585 | if (obj1) { | |
24586 | arg2 = (int) SWIG_AsInt(obj1); | |
24587 | if (PyErr_Occurred()) SWIG_fail; | |
24588 | } | |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | result = (bool)(arg1)->Navigate(arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | { | |
24597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24598 | } | |
24599 | return resultobj; | |
24600 | fail: | |
24601 | return NULL; | |
24602 | } | |
24603 | ||
24604 | ||
7f98d120 RD |
24605 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) { |
24606 | PyObject *resultobj; | |
24607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24608 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24609 | PyObject * obj0 = 0 ; | |
24610 | PyObject * obj1 = 0 ; | |
24611 | char *kwnames[] = { | |
24612 | (char *) "self",(char *) "win", NULL | |
24613 | }; | |
24614 | ||
24615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
24616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24620 | { | |
24621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24622 | (arg1)->MoveAfterInTabOrder(arg2); | |
24623 | ||
24624 | wxPyEndAllowThreads(__tstate); | |
24625 | if (PyErr_Occurred()) SWIG_fail; | |
24626 | } | |
24627 | Py_INCREF(Py_None); resultobj = Py_None; | |
24628 | return resultobj; | |
24629 | fail: | |
24630 | return NULL; | |
24631 | } | |
24632 | ||
24633 | ||
24634 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24635 | PyObject *resultobj; | |
24636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24637 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24638 | PyObject * obj0 = 0 ; | |
24639 | PyObject * obj1 = 0 ; | |
24640 | char *kwnames[] = { | |
24641 | (char *) "self",(char *) "win", NULL | |
24642 | }; | |
24643 | ||
24644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
24645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24649 | { | |
24650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24651 | (arg1)->MoveBeforeInTabOrder(arg2); | |
24652 | ||
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
24656 | Py_INCREF(Py_None); resultobj = Py_None; | |
24657 | return resultobj; | |
24658 | fail: | |
24659 | return NULL; | |
24660 | } | |
24661 | ||
24662 | ||
d14a1e28 RD |
24663 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
24664 | PyObject *resultobj; | |
24665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24666 | PyObject *result; | |
24667 | PyObject * obj0 = 0 ; | |
24668 | char *kwnames[] = { | |
24669 | (char *) "self", NULL | |
24670 | }; | |
24671 | ||
24672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24675 | { |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24678 | ||
24679 | wxPyEndAllowThreads(__tstate); | |
24680 | if (PyErr_Occurred()) SWIG_fail; | |
24681 | } | |
24682 | resultobj = result; | |
24683 | return resultobj; | |
24684 | fail: | |
24685 | return NULL; | |
24686 | } | |
24687 | ||
24688 | ||
24689 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24690 | PyObject *resultobj; | |
24691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24692 | wxWindow *result; | |
24693 | PyObject * obj0 = 0 ; | |
24694 | char *kwnames[] = { | |
24695 | (char *) "self", NULL | |
24696 | }; | |
24697 | ||
24698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24701 | { |
24702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24703 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24704 | ||
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | { | |
412d302d | 24709 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24710 | } |
24711 | return resultobj; | |
24712 | fail: | |
24713 | return NULL; | |
24714 | } | |
24715 | ||
24716 | ||
24717 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24718 | PyObject *resultobj; | |
24719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24720 | wxWindow *result; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | char *kwnames[] = { | |
24723 | (char *) "self", NULL | |
24724 | }; | |
24725 | ||
24726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24729 | { |
24730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24731 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24732 | ||
24733 | wxPyEndAllowThreads(__tstate); | |
24734 | if (PyErr_Occurred()) SWIG_fail; | |
24735 | } | |
24736 | { | |
412d302d | 24737 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24738 | } |
24739 | return resultobj; | |
24740 | fail: | |
24741 | return NULL; | |
24742 | } | |
24743 | ||
24744 | ||
24745 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24746 | PyObject *resultobj; | |
24747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24748 | bool result; | |
24749 | PyObject * obj0 = 0 ; | |
24750 | char *kwnames[] = { | |
24751 | (char *) "self", NULL | |
24752 | }; | |
24753 | ||
24754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24757 | { |
24758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24759 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24760 | ||
24761 | wxPyEndAllowThreads(__tstate); | |
24762 | if (PyErr_Occurred()) SWIG_fail; | |
24763 | } | |
4f89f6a3 RD |
24764 | { |
24765 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24766 | } | |
d14a1e28 RD |
24767 | return resultobj; |
24768 | fail: | |
24769 | return NULL; | |
24770 | } | |
24771 | ||
24772 | ||
24773 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24774 | PyObject *resultobj; | |
24775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24776 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24777 | bool result; | |
24778 | PyObject * obj0 = 0 ; | |
24779 | PyObject * obj1 = 0 ; | |
24780 | char *kwnames[] = { | |
24781 | (char *) "self",(char *) "newParent", NULL | |
24782 | }; | |
24783 | ||
24784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24787 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24789 | { |
24790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24791 | result = (bool)(arg1)->Reparent(arg2); | |
24792 | ||
24793 | wxPyEndAllowThreads(__tstate); | |
24794 | if (PyErr_Occurred()) SWIG_fail; | |
24795 | } | |
4f89f6a3 RD |
24796 | { |
24797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24798 | } | |
d14a1e28 RD |
24799 | return resultobj; |
24800 | fail: | |
24801 | return NULL; | |
24802 | } | |
24803 | ||
24804 | ||
24805 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24806 | PyObject *resultobj; | |
24807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24808 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24809 | PyObject * obj0 = 0 ; | |
24810 | PyObject * obj1 = 0 ; | |
24811 | char *kwnames[] = { | |
24812 | (char *) "self",(char *) "child", NULL | |
24813 | }; | |
24814 | ||
24815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24820 | { |
24821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24822 | (arg1)->AddChild(arg2); | |
24823 | ||
24824 | wxPyEndAllowThreads(__tstate); | |
24825 | if (PyErr_Occurred()) SWIG_fail; | |
24826 | } | |
24827 | Py_INCREF(Py_None); resultobj = Py_None; | |
24828 | return resultobj; | |
24829 | fail: | |
24830 | return NULL; | |
24831 | } | |
24832 | ||
24833 | ||
24834 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24835 | PyObject *resultobj; | |
24836 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24837 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | PyObject * obj1 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self",(char *) "child", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24849 | { |
24850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24851 | (arg1)->RemoveChild(arg2); | |
24852 | ||
24853 | wxPyEndAllowThreads(__tstate); | |
24854 | if (PyErr_Occurred()) SWIG_fail; | |
24855 | } | |
24856 | Py_INCREF(Py_None); resultobj = Py_None; | |
24857 | return resultobj; | |
24858 | fail: | |
24859 | return NULL; | |
24860 | } | |
24861 | ||
24862 | ||
24863 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24864 | PyObject *resultobj; | |
24865 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24866 | long arg2 ; | |
24867 | wxWindow *result; | |
24868 | PyObject * obj0 = 0 ; | |
994141e6 | 24869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24870 | char *kwnames[] = { |
24871 | (char *) "self",(char *) "winid", NULL | |
24872 | }; | |
24873 | ||
994141e6 | 24874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24877 | arg2 = (long) SWIG_AsLong(obj1); | |
24878 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24879 | { |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24882 | ||
24883 | wxPyEndAllowThreads(__tstate); | |
24884 | if (PyErr_Occurred()) SWIG_fail; | |
24885 | } | |
24886 | { | |
412d302d | 24887 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24888 | } |
24889 | return resultobj; | |
24890 | fail: | |
24891 | return NULL; | |
24892 | } | |
24893 | ||
24894 | ||
24895 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj; | |
24897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24898 | wxString *arg2 = 0 ; | |
24899 | wxWindow *result; | |
e811c8ce | 24900 | bool temp2 = False ; |
d14a1e28 RD |
24901 | PyObject * obj0 = 0 ; |
24902 | PyObject * obj1 = 0 ; | |
24903 | char *kwnames[] = { | |
24904 | (char *) "self",(char *) "name", NULL | |
24905 | }; | |
24906 | ||
24907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24910 | { |
24911 | arg2 = wxString_in_helper(obj1); | |
24912 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24913 | temp2 = True; |
d14a1e28 RD |
24914 | } |
24915 | { | |
24916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24917 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24918 | ||
24919 | wxPyEndAllowThreads(__tstate); | |
24920 | if (PyErr_Occurred()) SWIG_fail; | |
24921 | } | |
24922 | { | |
412d302d | 24923 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24924 | } |
24925 | { | |
24926 | if (temp2) | |
24927 | delete arg2; | |
24928 | } | |
24929 | return resultobj; | |
24930 | fail: | |
24931 | { | |
24932 | if (temp2) | |
24933 | delete arg2; | |
24934 | } | |
24935 | return NULL; | |
24936 | } | |
24937 | ||
24938 | ||
24939 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24940 | PyObject *resultobj; | |
24941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24942 | wxEvtHandler *result; | |
24943 | PyObject * obj0 = 0 ; | |
24944 | char *kwnames[] = { | |
24945 | (char *) "self", NULL | |
24946 | }; | |
24947 | ||
24948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24951 | { |
24952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24953 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24954 | ||
24955 | wxPyEndAllowThreads(__tstate); | |
24956 | if (PyErr_Occurred()) SWIG_fail; | |
24957 | } | |
24958 | { | |
412d302d | 24959 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
24960 | } |
24961 | return resultobj; | |
24962 | fail: | |
24963 | return NULL; | |
24964 | } | |
24965 | ||
24966 | ||
24967 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24968 | PyObject *resultobj; | |
24969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24970 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24971 | PyObject * obj0 = 0 ; | |
24972 | PyObject * obj1 = 0 ; | |
24973 | char *kwnames[] = { | |
24974 | (char *) "self",(char *) "handler", NULL | |
24975 | }; | |
24976 | ||
24977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24982 | { |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | (arg1)->SetEventHandler(arg2); | |
24985 | ||
24986 | wxPyEndAllowThreads(__tstate); | |
24987 | if (PyErr_Occurred()) SWIG_fail; | |
24988 | } | |
24989 | Py_INCREF(Py_None); resultobj = Py_None; | |
24990 | return resultobj; | |
24991 | fail: | |
24992 | return NULL; | |
24993 | } | |
24994 | ||
24995 | ||
24996 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24997 | PyObject *resultobj; | |
24998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24999 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25000 | PyObject * obj0 = 0 ; | |
25001 | PyObject * obj1 = 0 ; | |
25002 | char *kwnames[] = { | |
25003 | (char *) "self",(char *) "handler", NULL | |
25004 | }; | |
25005 | ||
25006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25009 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25011 | { |
25012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25013 | (arg1)->PushEventHandler(arg2); | |
25014 | ||
25015 | wxPyEndAllowThreads(__tstate); | |
25016 | if (PyErr_Occurred()) SWIG_fail; | |
25017 | } | |
25018 | Py_INCREF(Py_None); resultobj = Py_None; | |
25019 | return resultobj; | |
25020 | fail: | |
25021 | return NULL; | |
25022 | } | |
25023 | ||
25024 | ||
25025 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25026 | PyObject *resultobj; | |
25027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25028 | bool arg2 = (bool) False ; |
d14a1e28 RD |
25029 | wxEvtHandler *result; |
25030 | PyObject * obj0 = 0 ; | |
25031 | PyObject * obj1 = 0 ; | |
25032 | char *kwnames[] = { | |
25033 | (char *) "self",(char *) "deleteHandler", NULL | |
25034 | }; | |
25035 | ||
25036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25039 | if (obj1) { |
15afbcd0 RD |
25040 | arg2 = (bool) SWIG_AsBool(obj1); |
25041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25042 | } |
25043 | { | |
25044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25045 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25046 | ||
25047 | wxPyEndAllowThreads(__tstate); | |
25048 | if (PyErr_Occurred()) SWIG_fail; | |
25049 | } | |
25050 | { | |
412d302d | 25051 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25052 | } |
25053 | return resultobj; | |
25054 | fail: | |
25055 | return NULL; | |
25056 | } | |
25057 | ||
25058 | ||
25059 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25060 | PyObject *resultobj; | |
25061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25062 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25063 | bool result; | |
25064 | PyObject * obj0 = 0 ; | |
25065 | PyObject * obj1 = 0 ; | |
25066 | char *kwnames[] = { | |
25067 | (char *) "self",(char *) "handler", NULL | |
25068 | }; | |
25069 | ||
25070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25075 | { |
25076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25077 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25078 | ||
25079 | wxPyEndAllowThreads(__tstate); | |
25080 | if (PyErr_Occurred()) SWIG_fail; | |
25081 | } | |
4f89f6a3 RD |
25082 | { |
25083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25084 | } | |
d14a1e28 RD |
25085 | return resultobj; |
25086 | fail: | |
25087 | return NULL; | |
25088 | } | |
25089 | ||
25090 | ||
25091 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25092 | PyObject *resultobj; | |
25093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25094 | wxValidator *arg2 = 0 ; | |
25095 | PyObject * obj0 = 0 ; | |
25096 | PyObject * obj1 = 0 ; | |
25097 | char *kwnames[] = { | |
25098 | (char *) "self",(char *) "validator", NULL | |
25099 | }; | |
25100 | ||
25101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25105 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25106 | SWIG_fail; | |
d14a1e28 | 25107 | if (arg2 == NULL) { |
15afbcd0 RD |
25108 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25109 | SWIG_fail; | |
d14a1e28 RD |
25110 | } |
25111 | { | |
25112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25113 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25114 | ||
25115 | wxPyEndAllowThreads(__tstate); | |
25116 | if (PyErr_Occurred()) SWIG_fail; | |
25117 | } | |
25118 | Py_INCREF(Py_None); resultobj = Py_None; | |
25119 | return resultobj; | |
25120 | fail: | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
25125 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25126 | PyObject *resultobj; | |
25127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25128 | wxValidator *result; | |
25129 | PyObject * obj0 = 0 ; | |
25130 | char *kwnames[] = { | |
25131 | (char *) "self", NULL | |
25132 | }; | |
25133 | ||
25134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25137 | { |
25138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25139 | result = (wxValidator *)(arg1)->GetValidator(); | |
25140 | ||
25141 | wxPyEndAllowThreads(__tstate); | |
25142 | if (PyErr_Occurred()) SWIG_fail; | |
25143 | } | |
25144 | { | |
412d302d | 25145 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25146 | } |
25147 | return resultobj; | |
25148 | fail: | |
25149 | return NULL; | |
25150 | } | |
25151 | ||
25152 | ||
74a57fcd RD |
25153 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
25154 | PyObject *resultobj; | |
25155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25156 | bool result; | |
25157 | PyObject * obj0 = 0 ; | |
25158 | char *kwnames[] = { | |
25159 | (char *) "self", NULL | |
25160 | }; | |
25161 | ||
25162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25165 | { | |
25166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25167 | result = (bool)(arg1)->Validate(); | |
25168 | ||
25169 | wxPyEndAllowThreads(__tstate); | |
25170 | if (PyErr_Occurred()) SWIG_fail; | |
25171 | } | |
25172 | { | |
25173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25174 | } | |
25175 | return resultobj; | |
25176 | fail: | |
25177 | return NULL; | |
25178 | } | |
25179 | ||
25180 | ||
25181 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25182 | PyObject *resultobj; | |
25183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25184 | bool result; | |
25185 | PyObject * obj0 = 0 ; | |
25186 | char *kwnames[] = { | |
25187 | (char *) "self", NULL | |
25188 | }; | |
25189 | ||
25190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25193 | { | |
25194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25195 | result = (bool)(arg1)->TransferDataToWindow(); | |
25196 | ||
25197 | wxPyEndAllowThreads(__tstate); | |
25198 | if (PyErr_Occurred()) SWIG_fail; | |
25199 | } | |
25200 | { | |
25201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25202 | } | |
25203 | return resultobj; | |
25204 | fail: | |
25205 | return NULL; | |
25206 | } | |
25207 | ||
25208 | ||
25209 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25210 | PyObject *resultobj; | |
25211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25212 | bool result; | |
25213 | PyObject * obj0 = 0 ; | |
25214 | char *kwnames[] = { | |
25215 | (char *) "self", NULL | |
25216 | }; | |
25217 | ||
25218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25221 | { | |
25222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25223 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25224 | ||
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
25228 | { | |
25229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25230 | } | |
25231 | return resultobj; | |
25232 | fail: | |
25233 | return NULL; | |
25234 | } | |
25235 | ||
25236 | ||
25237 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25238 | PyObject *resultobj; | |
25239 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25240 | PyObject * obj0 = 0 ; | |
25241 | char *kwnames[] = { | |
25242 | (char *) "self", NULL | |
25243 | }; | |
25244 | ||
25245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25248 | { | |
25249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25250 | (arg1)->InitDialog(); | |
25251 | ||
25252 | wxPyEndAllowThreads(__tstate); | |
25253 | if (PyErr_Occurred()) SWIG_fail; | |
25254 | } | |
25255 | Py_INCREF(Py_None); resultobj = Py_None; | |
25256 | return resultobj; | |
25257 | fail: | |
25258 | return NULL; | |
25259 | } | |
25260 | ||
25261 | ||
d14a1e28 RD |
25262 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
25263 | PyObject *resultobj; | |
25264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25265 | wxAcceleratorTable *arg2 = 0 ; | |
25266 | PyObject * obj0 = 0 ; | |
25267 | PyObject * obj1 = 0 ; | |
25268 | char *kwnames[] = { | |
25269 | (char *) "self",(char *) "accel", NULL | |
25270 | }; | |
25271 | ||
25272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25275 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25277 | SWIG_fail; | |
d14a1e28 | 25278 | if (arg2 == NULL) { |
15afbcd0 RD |
25279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25280 | SWIG_fail; | |
d14a1e28 RD |
25281 | } |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
25289 | Py_INCREF(Py_None); resultobj = Py_None; | |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25297 | PyObject *resultobj; | |
25298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25299 | wxAcceleratorTable *result; | |
25300 | PyObject * obj0 = 0 ; | |
25301 | char *kwnames[] = { | |
25302 | (char *) "self", NULL | |
25303 | }; | |
25304 | ||
25305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25308 | { |
25309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25310 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25311 | ||
25312 | wxPyEndAllowThreads(__tstate); | |
25313 | if (PyErr_Occurred()) SWIG_fail; | |
25314 | } | |
15afbcd0 | 25315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
25316 | return resultobj; |
25317 | fail: | |
25318 | return NULL; | |
25319 | } | |
25320 | ||
25321 | ||
25322 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25323 | PyObject *resultobj; | |
25324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25325 | int arg2 ; | |
25326 | int arg3 ; | |
25327 | int arg4 ; | |
25328 | bool result; | |
25329 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25330 | PyObject * obj1 = 0 ; |
25331 | PyObject * obj2 = 0 ; | |
25332 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25333 | char *kwnames[] = { |
25334 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25335 | }; | |
25336 | ||
994141e6 | 25337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25340 | arg2 = (int) SWIG_AsInt(obj1); | |
25341 | if (PyErr_Occurred()) SWIG_fail; | |
25342 | arg3 = (int) SWIG_AsInt(obj2); | |
25343 | if (PyErr_Occurred()) SWIG_fail; | |
25344 | arg4 = (int) SWIG_AsInt(obj3); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25346 | { |
25347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25348 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25349 | ||
25350 | wxPyEndAllowThreads(__tstate); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
4f89f6a3 RD |
25353 | { |
25354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25355 | } | |
d14a1e28 RD |
25356 | return resultobj; |
25357 | fail: | |
25358 | return NULL; | |
25359 | } | |
25360 | ||
25361 | ||
25362 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25363 | PyObject *resultobj; | |
25364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25365 | int arg2 ; | |
25366 | bool result; | |
25367 | PyObject * obj0 = 0 ; | |
994141e6 | 25368 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25369 | char *kwnames[] = { |
25370 | (char *) "self",(char *) "hotkeyId", NULL | |
25371 | }; | |
25372 | ||
994141e6 | 25373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25376 | arg2 = (int) SWIG_AsInt(obj1); | |
25377 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25378 | { |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25380 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25381 | ||
25382 | wxPyEndAllowThreads(__tstate); | |
25383 | if (PyErr_Occurred()) SWIG_fail; | |
25384 | } | |
4f89f6a3 RD |
25385 | { |
25386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25387 | } | |
d14a1e28 RD |
25388 | return resultobj; |
25389 | fail: | |
25390 | return NULL; | |
25391 | } | |
25392 | ||
25393 | ||
25394 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25395 | PyObject *resultobj; | |
25396 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25397 | wxPoint *arg2 = 0 ; | |
25398 | wxPoint result; | |
25399 | wxPoint temp2 ; | |
25400 | PyObject * obj0 = 0 ; | |
25401 | PyObject * obj1 = 0 ; | |
25402 | char *kwnames[] = { | |
25403 | (char *) "self",(char *) "pt", NULL | |
25404 | }; | |
25405 | ||
25406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25409 | { |
25410 | arg2 = &temp2; | |
25411 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25412 | } | |
25413 | { | |
25414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25415 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25416 | ||
25417 | wxPyEndAllowThreads(__tstate); | |
25418 | if (PyErr_Occurred()) SWIG_fail; | |
25419 | } | |
25420 | { | |
25421 | wxPoint * resultptr; | |
25422 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25423 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25424 | } |
25425 | return resultobj; | |
25426 | fail: | |
25427 | return NULL; | |
25428 | } | |
25429 | ||
25430 | ||
25431 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25432 | PyObject *resultobj; | |
25433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25434 | wxSize *arg2 = 0 ; | |
25435 | wxSize result; | |
25436 | wxSize temp2 ; | |
25437 | PyObject * obj0 = 0 ; | |
25438 | PyObject * obj1 = 0 ; | |
25439 | char *kwnames[] = { | |
25440 | (char *) "self",(char *) "sz", NULL | |
25441 | }; | |
25442 | ||
25443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25446 | { |
25447 | arg2 = &temp2; | |
25448 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25449 | } | |
25450 | { | |
25451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25452 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25453 | ||
25454 | wxPyEndAllowThreads(__tstate); | |
25455 | if (PyErr_Occurred()) SWIG_fail; | |
25456 | } | |
25457 | { | |
25458 | wxSize * resultptr; | |
25459 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25460 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25461 | } |
25462 | return resultobj; | |
25463 | fail: | |
25464 | return NULL; | |
25465 | } | |
25466 | ||
25467 | ||
25468 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25469 | PyObject *resultobj; | |
25470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25471 | wxPoint *arg2 = 0 ; | |
25472 | wxPoint result; | |
25473 | wxPoint temp2 ; | |
25474 | PyObject * obj0 = 0 ; | |
25475 | PyObject * obj1 = 0 ; | |
25476 | char *kwnames[] = { | |
25477 | (char *) "self",(char *) "pt", NULL | |
25478 | }; | |
25479 | ||
25480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25483 | { |
25484 | arg2 = &temp2; | |
25485 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25486 | } | |
25487 | { | |
25488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25489 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25490 | ||
25491 | wxPyEndAllowThreads(__tstate); | |
25492 | if (PyErr_Occurred()) SWIG_fail; | |
25493 | } | |
25494 | { | |
25495 | wxPoint * resultptr; | |
25496 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25497 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25498 | } |
25499 | return resultobj; | |
25500 | fail: | |
25501 | return NULL; | |
25502 | } | |
25503 | ||
25504 | ||
25505 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25506 | PyObject *resultobj; | |
25507 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25508 | wxSize *arg2 = 0 ; | |
25509 | wxSize result; | |
25510 | wxSize temp2 ; | |
25511 | PyObject * obj0 = 0 ; | |
25512 | PyObject * obj1 = 0 ; | |
25513 | char *kwnames[] = { | |
25514 | (char *) "self",(char *) "sz", NULL | |
25515 | }; | |
25516 | ||
25517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25520 | { |
25521 | arg2 = &temp2; | |
25522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25523 | } | |
25524 | { | |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25527 | ||
25528 | wxPyEndAllowThreads(__tstate); | |
25529 | if (PyErr_Occurred()) SWIG_fail; | |
25530 | } | |
25531 | { | |
25532 | wxSize * resultptr; | |
25533 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25535 | } |
25536 | return resultobj; | |
25537 | fail: | |
25538 | return NULL; | |
25539 | } | |
25540 | ||
25541 | ||
25542 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25543 | PyObject *resultobj; | |
25544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25545 | wxPoint *arg2 = 0 ; | |
25546 | wxPoint result; | |
25547 | wxPoint temp2 ; | |
25548 | PyObject * obj0 = 0 ; | |
25549 | PyObject * obj1 = 0 ; | |
25550 | char *kwnames[] = { | |
25551 | (char *) "self",(char *) "pt", NULL | |
25552 | }; | |
25553 | ||
25554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) 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 | arg2 = &temp2; | |
25559 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25560 | } | |
25561 | { | |
25562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25563 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25564 | ||
25565 | wxPyEndAllowThreads(__tstate); | |
25566 | if (PyErr_Occurred()) SWIG_fail; | |
25567 | } | |
25568 | { | |
25569 | wxPoint * resultptr; | |
25570 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25572 | } |
25573 | return resultobj; | |
25574 | fail: | |
25575 | return NULL; | |
25576 | } | |
25577 | ||
25578 | ||
25579 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25580 | PyObject *resultobj; | |
25581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25582 | wxSize *arg2 = 0 ; | |
25583 | wxSize result; | |
25584 | wxSize temp2 ; | |
25585 | PyObject * obj0 = 0 ; | |
25586 | PyObject * obj1 = 0 ; | |
25587 | char *kwnames[] = { | |
25588 | (char *) "self",(char *) "sz", NULL | |
25589 | }; | |
25590 | ||
25591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25594 | { |
25595 | arg2 = &temp2; | |
25596 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25597 | } | |
25598 | { | |
25599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25600 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25601 | ||
25602 | wxPyEndAllowThreads(__tstate); | |
25603 | if (PyErr_Occurred()) SWIG_fail; | |
25604 | } | |
25605 | { | |
25606 | wxSize * resultptr; | |
25607 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25609 | } |
25610 | return resultobj; | |
25611 | fail: | |
25612 | return NULL; | |
25613 | } | |
25614 | ||
25615 | ||
25616 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25617 | PyObject *resultobj; | |
25618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25619 | int arg2 ; | |
25620 | int arg3 ; | |
25621 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25622 | PyObject * obj1 = 0 ; |
25623 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25624 | char *kwnames[] = { |
25625 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25626 | }; | |
25627 | ||
994141e6 | 25628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25631 | arg2 = (int) SWIG_AsInt(obj1); | |
25632 | if (PyErr_Occurred()) SWIG_fail; | |
25633 | arg3 = (int) SWIG_AsInt(obj2); | |
25634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25635 | { |
25636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25637 | (arg1)->WarpPointer(arg2,arg3); | |
25638 | ||
25639 | wxPyEndAllowThreads(__tstate); | |
25640 | if (PyErr_Occurred()) SWIG_fail; | |
25641 | } | |
25642 | Py_INCREF(Py_None); resultobj = Py_None; | |
25643 | return resultobj; | |
25644 | fail: | |
25645 | return NULL; | |
25646 | } | |
25647 | ||
25648 | ||
25649 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25650 | PyObject *resultobj; | |
25651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25652 | PyObject * obj0 = 0 ; | |
25653 | char *kwnames[] = { | |
25654 | (char *) "self", NULL | |
25655 | }; | |
25656 | ||
25657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25660 | { |
25661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25662 | (arg1)->CaptureMouse(); | |
25663 | ||
25664 | wxPyEndAllowThreads(__tstate); | |
25665 | if (PyErr_Occurred()) SWIG_fail; | |
25666 | } | |
25667 | Py_INCREF(Py_None); resultobj = Py_None; | |
25668 | return resultobj; | |
25669 | fail: | |
25670 | return NULL; | |
25671 | } | |
25672 | ||
25673 | ||
25674 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25675 | PyObject *resultobj; | |
25676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25677 | PyObject * obj0 = 0 ; | |
25678 | char *kwnames[] = { | |
25679 | (char *) "self", NULL | |
25680 | }; | |
25681 | ||
25682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25685 | { |
25686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25687 | (arg1)->ReleaseMouse(); | |
25688 | ||
25689 | wxPyEndAllowThreads(__tstate); | |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
25691 | } | |
25692 | Py_INCREF(Py_None); resultobj = Py_None; | |
25693 | return resultobj; | |
25694 | fail: | |
25695 | return NULL; | |
25696 | } | |
25697 | ||
25698 | ||
25699 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25700 | PyObject *resultobj; | |
25701 | wxWindow *result; | |
25702 | char *kwnames[] = { | |
25703 | NULL | |
25704 | }; | |
25705 | ||
25706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25707 | { | |
e3b71cb8 | 25708 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25710 | result = (wxWindow *)wxWindow::GetCapture(); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25713 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
25714 | } |
25715 | { | |
412d302d | 25716 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25717 | } |
25718 | return resultobj; | |
25719 | fail: | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
25724 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25725 | PyObject *resultobj; | |
25726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25727 | bool result; | |
25728 | PyObject * obj0 = 0 ; | |
25729 | char *kwnames[] = { | |
25730 | (char *) "self", NULL | |
25731 | }; | |
25732 | ||
25733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25736 | { |
25737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25738 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25739 | ||
25740 | wxPyEndAllowThreads(__tstate); | |
25741 | if (PyErr_Occurred()) SWIG_fail; | |
25742 | } | |
4f89f6a3 RD |
25743 | { |
25744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25745 | } | |
d14a1e28 RD |
25746 | return resultobj; |
25747 | fail: | |
25748 | return NULL; | |
25749 | } | |
25750 | ||
25751 | ||
25752 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25753 | PyObject *resultobj; | |
25754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25755 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25756 | wxRect *arg3 = (wxRect *) NULL ; |
25757 | PyObject * obj0 = 0 ; | |
25758 | PyObject * obj1 = 0 ; | |
25759 | PyObject * obj2 = 0 ; | |
25760 | char *kwnames[] = { | |
25761 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25762 | }; | |
25763 | ||
25764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25767 | if (obj1) { |
15afbcd0 RD |
25768 | arg2 = (bool) SWIG_AsBool(obj1); |
25769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25770 | } |
25771 | if (obj2) { | |
15afbcd0 RD |
25772 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
25773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25774 | } |
25775 | { | |
25776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25777 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25778 | ||
25779 | wxPyEndAllowThreads(__tstate); | |
25780 | if (PyErr_Occurred()) SWIG_fail; | |
25781 | } | |
25782 | Py_INCREF(Py_None); resultobj = Py_None; | |
25783 | return resultobj; | |
25784 | fail: | |
25785 | return NULL; | |
25786 | } | |
25787 | ||
25788 | ||
25789 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25790 | PyObject *resultobj; | |
25791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25792 | wxRect *arg2 = 0 ; | |
25793 | wxRect temp2 ; | |
25794 | PyObject * obj0 = 0 ; | |
25795 | PyObject * obj1 = 0 ; | |
25796 | char *kwnames[] = { | |
25797 | (char *) "self",(char *) "rect", NULL | |
25798 | }; | |
25799 | ||
25800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25803 | { |
25804 | arg2 = &temp2; | |
25805 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25806 | } | |
25807 | { | |
25808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25809 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25810 | ||
25811 | wxPyEndAllowThreads(__tstate); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | } | |
25814 | Py_INCREF(Py_None); resultobj = Py_None; | |
25815 | return resultobj; | |
25816 | fail: | |
25817 | return NULL; | |
25818 | } | |
25819 | ||
25820 | ||
25821 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25822 | PyObject *resultobj; | |
25823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25824 | PyObject * obj0 = 0 ; | |
25825 | char *kwnames[] = { | |
25826 | (char *) "self", NULL | |
25827 | }; | |
25828 | ||
25829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25832 | { |
25833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25834 | (arg1)->Update(); | |
25835 | ||
25836 | wxPyEndAllowThreads(__tstate); | |
25837 | if (PyErr_Occurred()) SWIG_fail; | |
25838 | } | |
25839 | Py_INCREF(Py_None); resultobj = Py_None; | |
25840 | return resultobj; | |
25841 | fail: | |
25842 | return NULL; | |
25843 | } | |
25844 | ||
25845 | ||
25846 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25847 | PyObject *resultobj; | |
25848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25849 | PyObject * obj0 = 0 ; | |
25850 | char *kwnames[] = { | |
25851 | (char *) "self", NULL | |
25852 | }; | |
25853 | ||
25854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25857 | { |
25858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25859 | (arg1)->ClearBackground(); | |
25860 | ||
25861 | wxPyEndAllowThreads(__tstate); | |
25862 | if (PyErr_Occurred()) SWIG_fail; | |
25863 | } | |
25864 | Py_INCREF(Py_None); resultobj = Py_None; | |
25865 | return resultobj; | |
25866 | fail: | |
25867 | return NULL; | |
25868 | } | |
25869 | ||
25870 | ||
25871 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25872 | PyObject *resultobj; | |
25873 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25874 | PyObject * obj0 = 0 ; | |
25875 | char *kwnames[] = { | |
25876 | (char *) "self", NULL | |
25877 | }; | |
25878 | ||
25879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25882 | { |
25883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25884 | (arg1)->Freeze(); | |
25885 | ||
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | Py_INCREF(Py_None); resultobj = Py_None; | |
25890 | return resultobj; | |
25891 | fail: | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
25896 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25897 | PyObject *resultobj; | |
25898 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25899 | PyObject * obj0 = 0 ; | |
25900 | char *kwnames[] = { | |
25901 | (char *) "self", NULL | |
25902 | }; | |
25903 | ||
25904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25907 | { |
25908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25909 | (arg1)->Thaw(); | |
25910 | ||
25911 | wxPyEndAllowThreads(__tstate); | |
25912 | if (PyErr_Occurred()) SWIG_fail; | |
25913 | } | |
25914 | Py_INCREF(Py_None); resultobj = Py_None; | |
25915 | return resultobj; | |
25916 | fail: | |
25917 | return NULL; | |
25918 | } | |
25919 | ||
25920 | ||
25921 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25922 | PyObject *resultobj; | |
25923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25924 | wxDC *arg2 = 0 ; | |
25925 | PyObject * obj0 = 0 ; | |
25926 | PyObject * obj1 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self",(char *) "dc", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25935 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25936 | SWIG_fail; | |
d14a1e28 | 25937 | if (arg2 == NULL) { |
15afbcd0 RD |
25938 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25939 | SWIG_fail; | |
d14a1e28 RD |
25940 | } |
25941 | { | |
25942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25943 | (arg1)->PrepareDC(*arg2); | |
25944 | ||
25945 | wxPyEndAllowThreads(__tstate); | |
25946 | if (PyErr_Occurred()) SWIG_fail; | |
25947 | } | |
25948 | Py_INCREF(Py_None); resultobj = Py_None; | |
25949 | return resultobj; | |
25950 | fail: | |
25951 | return NULL; | |
25952 | } | |
25953 | ||
25954 | ||
25955 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25956 | PyObject *resultobj; | |
25957 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25958 | wxRegion *result; | |
25959 | PyObject * obj0 = 0 ; | |
25960 | char *kwnames[] = { | |
25961 | (char *) "self", NULL | |
25962 | }; | |
25963 | ||
25964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25967 | { |
25968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25969 | { | |
25970 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25971 | result = (wxRegion *) &_result_ref; | |
25972 | } | |
25973 | ||
25974 | wxPyEndAllowThreads(__tstate); | |
25975 | if (PyErr_Occurred()) SWIG_fail; | |
25976 | } | |
15afbcd0 | 25977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
25978 | return resultobj; |
25979 | fail: | |
25980 | return NULL; | |
25981 | } | |
25982 | ||
25983 | ||
25984 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25985 | PyObject *resultobj; | |
25986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25987 | wxRect result; | |
25988 | PyObject * obj0 = 0 ; | |
25989 | char *kwnames[] = { | |
25990 | (char *) "self", NULL | |
25991 | }; | |
25992 | ||
25993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25996 | { |
25997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25998 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25999 | ||
26000 | wxPyEndAllowThreads(__tstate); | |
26001 | if (PyErr_Occurred()) SWIG_fail; | |
26002 | } | |
26003 | { | |
26004 | wxRect * resultptr; | |
26005 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 26006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
26007 | } |
26008 | return resultobj; | |
26009 | fail: | |
26010 | return NULL; | |
26011 | } | |
26012 | ||
26013 | ||
26014 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26015 | PyObject *resultobj; | |
26016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26017 | int arg2 ; | |
26018 | int arg3 ; | |
26019 | int arg4 = (int) 1 ; | |
26020 | int arg5 = (int) 1 ; | |
26021 | bool result; | |
26022 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26023 | PyObject * obj1 = 0 ; |
26024 | PyObject * obj2 = 0 ; | |
26025 | PyObject * obj3 = 0 ; | |
26026 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26027 | char *kwnames[] = { |
26028 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26029 | }; | |
26030 | ||
994141e6 | 26031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26034 | arg2 = (int) SWIG_AsInt(obj1); | |
26035 | if (PyErr_Occurred()) SWIG_fail; | |
26036 | arg3 = (int) SWIG_AsInt(obj2); | |
26037 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26038 | if (obj3) { |
15afbcd0 RD |
26039 | arg4 = (int) SWIG_AsInt(obj3); |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26041 | } |
26042 | if (obj4) { | |
15afbcd0 RD |
26043 | arg5 = (int) SWIG_AsInt(obj4); |
26044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26045 | } |
d14a1e28 RD |
26046 | { |
26047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26048 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26049 | ||
26050 | wxPyEndAllowThreads(__tstate); | |
26051 | if (PyErr_Occurred()) SWIG_fail; | |
26052 | } | |
4f89f6a3 RD |
26053 | { |
26054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26055 | } | |
d14a1e28 RD |
26056 | return resultobj; |
26057 | fail: | |
26058 | return NULL; | |
26059 | } | |
26060 | ||
26061 | ||
26062 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26063 | PyObject *resultobj; | |
26064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26065 | wxPoint *arg2 = 0 ; | |
26066 | bool result; | |
26067 | wxPoint temp2 ; | |
26068 | PyObject * obj0 = 0 ; | |
26069 | PyObject * obj1 = 0 ; | |
26070 | char *kwnames[] = { | |
26071 | (char *) "self",(char *) "pt", NULL | |
26072 | }; | |
26073 | ||
26074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26077 | { |
26078 | arg2 = &temp2; | |
26079 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26080 | } | |
26081 | { | |
26082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26083 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26084 | ||
26085 | wxPyEndAllowThreads(__tstate); | |
26086 | if (PyErr_Occurred()) SWIG_fail; | |
26087 | } | |
4f89f6a3 RD |
26088 | { |
26089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26090 | } | |
d14a1e28 RD |
26091 | return resultobj; |
26092 | fail: | |
26093 | return NULL; | |
26094 | } | |
26095 | ||
26096 | ||
4276dc52 | 26097 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
26098 | PyObject *resultobj; |
26099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26100 | wxRect *arg2 = 0 ; | |
26101 | bool result; | |
26102 | wxRect temp2 ; | |
26103 | PyObject * obj0 = 0 ; | |
26104 | PyObject * obj1 = 0 ; | |
26105 | char *kwnames[] = { | |
26106 | (char *) "self",(char *) "rect", NULL | |
26107 | }; | |
26108 | ||
4276dc52 | 26109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26112 | { |
26113 | arg2 = &temp2; | |
26114 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26115 | } | |
26116 | { | |
26117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26118 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26119 | ||
26120 | wxPyEndAllowThreads(__tstate); | |
26121 | if (PyErr_Occurred()) SWIG_fail; | |
26122 | } | |
4f89f6a3 RD |
26123 | { |
26124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26125 | } | |
d14a1e28 RD |
26126 | return resultobj; |
26127 | fail: | |
26128 | return NULL; | |
26129 | } | |
26130 | ||
26131 | ||
74a57fcd RD |
26132 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
26133 | PyObject *resultobj; | |
26134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26135 | wxVisualAttributes result; | |
26136 | PyObject * obj0 = 0 ; | |
26137 | char *kwnames[] = { | |
26138 | (char *) "self", NULL | |
26139 | }; | |
26140 | ||
26141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26144 | { | |
26145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26146 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26147 | ||
26148 | wxPyEndAllowThreads(__tstate); | |
26149 | if (PyErr_Occurred()) SWIG_fail; | |
26150 | } | |
26151 | { | |
26152 | wxVisualAttributes * resultptr; | |
26153 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26154 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26155 | } | |
26156 | return resultobj; | |
26157 | fail: | |
26158 | return NULL; | |
26159 | } | |
26160 | ||
26161 | ||
26162 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26163 | PyObject *resultobj; | |
26164 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26165 | wxVisualAttributes result; | |
26166 | PyObject * obj0 = 0 ; | |
26167 | char *kwnames[] = { | |
26168 | (char *) "variant", NULL | |
26169 | }; | |
26170 | ||
26171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26172 | if (obj0) { | |
26173 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
26174 | if (PyErr_Occurred()) SWIG_fail; | |
26175 | } | |
26176 | { | |
e3b71cb8 | 26177 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
26178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26179 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26180 | ||
26181 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26182 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
26183 | } |
26184 | { | |
26185 | wxVisualAttributes * resultptr; | |
26186 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26188 | } | |
26189 | return resultobj; | |
26190 | fail: | |
26191 | return NULL; | |
26192 | } | |
26193 | ||
26194 | ||
d14a1e28 RD |
26195 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26196 | PyObject *resultobj; | |
26197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26198 | wxColour *arg2 = 0 ; | |
26199 | bool result; | |
26200 | wxColour temp2 ; | |
26201 | PyObject * obj0 = 0 ; | |
26202 | PyObject * obj1 = 0 ; | |
26203 | char *kwnames[] = { | |
26204 | (char *) "self",(char *) "colour", NULL | |
26205 | }; | |
26206 | ||
26207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26210 | { |
26211 | arg2 = &temp2; | |
26212 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26213 | } | |
26214 | { | |
26215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26216 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26217 | ||
26218 | wxPyEndAllowThreads(__tstate); | |
26219 | if (PyErr_Occurred()) SWIG_fail; | |
26220 | } | |
4f89f6a3 RD |
26221 | { |
26222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26223 | } | |
d14a1e28 RD |
26224 | return resultobj; |
26225 | fail: | |
26226 | return NULL; | |
26227 | } | |
26228 | ||
26229 | ||
412d302d | 26230 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
26231 | PyObject *resultobj; |
26232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26233 | wxColour *arg2 = 0 ; | |
26234 | wxColour temp2 ; | |
26235 | PyObject * obj0 = 0 ; | |
26236 | PyObject * obj1 = 0 ; | |
26237 | char *kwnames[] = { | |
26238 | (char *) "self",(char *) "colour", NULL | |
26239 | }; | |
26240 | ||
412d302d | 26241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
26242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26244 | { | |
26245 | arg2 = &temp2; | |
26246 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26247 | } | |
26248 | { | |
26249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26250 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
b2df227b RD |
26251 | |
26252 | wxPyEndAllowThreads(__tstate); | |
26253 | if (PyErr_Occurred()) SWIG_fail; | |
26254 | } | |
26255 | Py_INCREF(Py_None); resultobj = Py_None; | |
26256 | return resultobj; | |
26257 | fail: | |
26258 | return NULL; | |
26259 | } | |
26260 | ||
26261 | ||
d14a1e28 RD |
26262 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26263 | PyObject *resultobj; | |
26264 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26265 | wxColour *arg2 = 0 ; | |
26266 | bool result; | |
26267 | wxColour temp2 ; | |
26268 | PyObject * obj0 = 0 ; | |
26269 | PyObject * obj1 = 0 ; | |
26270 | char *kwnames[] = { | |
26271 | (char *) "self",(char *) "colour", NULL | |
26272 | }; | |
26273 | ||
26274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26277 | { |
26278 | arg2 = &temp2; | |
26279 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26280 | } | |
26281 | { | |
26282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26283 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26284 | ||
26285 | wxPyEndAllowThreads(__tstate); | |
26286 | if (PyErr_Occurred()) SWIG_fail; | |
26287 | } | |
4f89f6a3 RD |
26288 | { |
26289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26290 | } | |
d14a1e28 RD |
26291 | return resultobj; |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
fa47d7a7 | 26297 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
26298 | PyObject *resultobj; |
26299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26300 | wxColour *arg2 = 0 ; | |
26301 | wxColour temp2 ; | |
26302 | PyObject * obj0 = 0 ; | |
26303 | PyObject * obj1 = 0 ; | |
26304 | char *kwnames[] = { | |
26305 | (char *) "self",(char *) "colour", NULL | |
26306 | }; | |
26307 | ||
fa47d7a7 | 26308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
26309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26311 | { | |
26312 | arg2 = &temp2; | |
26313 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26314 | } | |
26315 | { | |
26316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26317 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
b2df227b RD |
26318 | |
26319 | wxPyEndAllowThreads(__tstate); | |
26320 | if (PyErr_Occurred()) SWIG_fail; | |
26321 | } | |
26322 | Py_INCREF(Py_None); resultobj = Py_None; | |
26323 | return resultobj; | |
26324 | fail: | |
26325 | return NULL; | |
26326 | } | |
26327 | ||
26328 | ||
d14a1e28 RD |
26329 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26330 | PyObject *resultobj; | |
26331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26332 | wxColour result; | |
26333 | PyObject * obj0 = 0 ; | |
26334 | char *kwnames[] = { | |
26335 | (char *) "self", NULL | |
26336 | }; | |
26337 | ||
26338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26341 | { |
26342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26343 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26344 | ||
26345 | wxPyEndAllowThreads(__tstate); | |
26346 | if (PyErr_Occurred()) SWIG_fail; | |
26347 | } | |
26348 | { | |
26349 | wxColour * resultptr; | |
26350 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26352 | } |
26353 | return resultobj; | |
26354 | fail: | |
26355 | return NULL; | |
26356 | } | |
26357 | ||
26358 | ||
26359 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26360 | PyObject *resultobj; | |
26361 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26362 | wxColour result; | |
26363 | PyObject * obj0 = 0 ; | |
26364 | char *kwnames[] = { | |
26365 | (char *) "self", NULL | |
26366 | }; | |
26367 | ||
26368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26371 | { |
26372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26373 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26374 | ||
26375 | wxPyEndAllowThreads(__tstate); | |
26376 | if (PyErr_Occurred()) SWIG_fail; | |
26377 | } | |
26378 | { | |
26379 | wxColour * resultptr; | |
26380 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26382 | } |
26383 | return resultobj; | |
26384 | fail: | |
26385 | return NULL; | |
26386 | } | |
26387 | ||
26388 | ||
26389 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26390 | PyObject *resultobj; | |
26391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26392 | wxCursor *arg2 = 0 ; | |
26393 | bool result; | |
26394 | PyObject * obj0 = 0 ; | |
26395 | PyObject * obj1 = 0 ; | |
26396 | char *kwnames[] = { | |
26397 | (char *) "self",(char *) "cursor", NULL | |
26398 | }; | |
26399 | ||
26400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26405 | SWIG_fail; | |
d14a1e28 | 26406 | if (arg2 == NULL) { |
15afbcd0 RD |
26407 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26408 | SWIG_fail; | |
d14a1e28 RD |
26409 | } |
26410 | { | |
26411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26412 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26413 | ||
26414 | wxPyEndAllowThreads(__tstate); | |
26415 | if (PyErr_Occurred()) SWIG_fail; | |
26416 | } | |
4f89f6a3 RD |
26417 | { |
26418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26419 | } | |
d14a1e28 RD |
26420 | return resultobj; |
26421 | fail: | |
26422 | return NULL; | |
26423 | } | |
26424 | ||
26425 | ||
26426 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26427 | PyObject *resultobj; | |
26428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 26429 | wxCursor result; |
d14a1e28 RD |
26430 | PyObject * obj0 = 0 ; |
26431 | char *kwnames[] = { | |
26432 | (char *) "self", NULL | |
26433 | }; | |
26434 | ||
26435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26438 | { |
26439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 26440 | result = (arg1)->GetCursor(); |
d14a1e28 RD |
26441 | |
26442 | wxPyEndAllowThreads(__tstate); | |
26443 | if (PyErr_Occurred()) SWIG_fail; | |
26444 | } | |
4276dc52 | 26445 | { |
dfbb5885 RD |
26446 | wxCursor * resultptr; |
26447 | resultptr = new wxCursor((wxCursor &) result); | |
26448 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
4276dc52 | 26449 | } |
d14a1e28 RD |
26450 | return resultobj; |
26451 | fail: | |
26452 | return NULL; | |
26453 | } | |
26454 | ||
26455 | ||
26456 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26457 | PyObject *resultobj; | |
26458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26459 | wxFont *arg2 = 0 ; | |
26460 | bool result; | |
26461 | PyObject * obj0 = 0 ; | |
26462 | PyObject * obj1 = 0 ; | |
26463 | char *kwnames[] = { | |
26464 | (char *) "self",(char *) "font", NULL | |
26465 | }; | |
26466 | ||
26467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26472 | SWIG_fail; | |
d14a1e28 | 26473 | if (arg2 == NULL) { |
15afbcd0 RD |
26474 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26475 | SWIG_fail; | |
d14a1e28 RD |
26476 | } |
26477 | { | |
26478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26479 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26480 | ||
26481 | wxPyEndAllowThreads(__tstate); | |
26482 | if (PyErr_Occurred()) SWIG_fail; | |
26483 | } | |
4f89f6a3 RD |
26484 | { |
26485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26486 | } | |
d14a1e28 RD |
26487 | return resultobj; |
26488 | fail: | |
26489 | return NULL; | |
26490 | } | |
26491 | ||
26492 | ||
fa47d7a7 | 26493 | static PyObject *_wrap_Window_SetOwnFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
b2df227b RD |
26494 | PyObject *resultobj; |
26495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26496 | wxFont *arg2 = 0 ; | |
26497 | PyObject * obj0 = 0 ; | |
26498 | PyObject * obj1 = 0 ; | |
26499 | char *kwnames[] = { | |
26500 | (char *) "self",(char *) "font", NULL | |
26501 | }; | |
26502 | ||
fa47d7a7 | 26503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
b2df227b RD |
26504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26508 | SWIG_fail; | |
26509 | if (arg2 == NULL) { | |
26510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26511 | SWIG_fail; | |
26512 | } | |
26513 | { | |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26515 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
b2df227b RD |
26516 | |
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
26520 | Py_INCREF(Py_None); resultobj = Py_None; | |
26521 | return resultobj; | |
26522 | fail: | |
26523 | return NULL; | |
26524 | } | |
26525 | ||
26526 | ||
d14a1e28 RD |
26527 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
26528 | PyObject *resultobj; | |
26529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
dfbb5885 | 26530 | wxFont result; |
d14a1e28 RD |
26531 | PyObject * obj0 = 0 ; |
26532 | char *kwnames[] = { | |
26533 | (char *) "self", NULL | |
26534 | }; | |
26535 | ||
26536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26539 | { |
26540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
dfbb5885 | 26541 | result = (arg1)->GetFont(); |
d14a1e28 RD |
26542 | |
26543 | wxPyEndAllowThreads(__tstate); | |
26544 | if (PyErr_Occurred()) SWIG_fail; | |
26545 | } | |
4276dc52 | 26546 | { |
dfbb5885 RD |
26547 | wxFont * resultptr; |
26548 | resultptr = new wxFont((wxFont &) result); | |
26549 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
4276dc52 | 26550 | } |
d14a1e28 RD |
26551 | return resultobj; |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
26557 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26558 | PyObject *resultobj; | |
26559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26560 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26561 | PyObject * obj0 = 0 ; | |
26562 | PyObject * obj1 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self",(char *) "caret", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",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; | |
26570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26572 | { |
26573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26574 | (arg1)->SetCaret(arg2); | |
26575 | ||
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
26579 | Py_INCREF(Py_None); resultobj = Py_None; | |
26580 | return resultobj; | |
26581 | fail: | |
26582 | return NULL; | |
26583 | } | |
26584 | ||
26585 | ||
26586 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26587 | PyObject *resultobj; | |
26588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26589 | wxCaret *result; | |
26590 | PyObject * obj0 = 0 ; | |
26591 | char *kwnames[] = { | |
26592 | (char *) "self", NULL | |
26593 | }; | |
26594 | ||
26595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26598 | { |
26599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26600 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26601 | ||
26602 | wxPyEndAllowThreads(__tstate); | |
26603 | if (PyErr_Occurred()) SWIG_fail; | |
26604 | } | |
15afbcd0 | 26605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
26606 | return resultobj; |
26607 | fail: | |
26608 | return NULL; | |
26609 | } | |
26610 | ||
26611 | ||
26612 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26613 | PyObject *resultobj; | |
26614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26615 | int result; | |
26616 | PyObject * obj0 = 0 ; | |
26617 | char *kwnames[] = { | |
26618 | (char *) "self", NULL | |
26619 | }; | |
26620 | ||
26621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26624 | { |
26625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26626 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
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 | ||
26638 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26639 | PyObject *resultobj; | |
26640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26641 | int result; | |
26642 | PyObject * obj0 = 0 ; | |
26643 | char *kwnames[] = { | |
26644 | (char *) "self", NULL | |
26645 | }; | |
26646 | ||
26647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26650 | { |
26651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26652 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26653 | ||
26654 | wxPyEndAllowThreads(__tstate); | |
26655 | if (PyErr_Occurred()) SWIG_fail; | |
26656 | } | |
15afbcd0 | 26657 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26658 | return resultobj; |
26659 | fail: | |
26660 | return NULL; | |
26661 | } | |
26662 | ||
26663 | ||
26664 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26665 | PyObject *resultobj; | |
26666 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26667 | wxString *arg2 = 0 ; | |
26668 | int *arg3 = (int *) 0 ; | |
26669 | int *arg4 = (int *) 0 ; | |
e811c8ce | 26670 | bool temp2 = False ; |
d14a1e28 RD |
26671 | int temp3 ; |
26672 | int temp4 ; | |
26673 | PyObject * obj0 = 0 ; | |
26674 | PyObject * obj1 = 0 ; | |
26675 | char *kwnames[] = { | |
26676 | (char *) "self",(char *) "string", NULL | |
26677 | }; | |
26678 | ||
26679 | arg3 = &temp3; | |
26680 | arg4 = &temp4; | |
26681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26684 | { |
26685 | arg2 = wxString_in_helper(obj1); | |
26686 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26687 | temp2 = True; |
d14a1e28 RD |
26688 | } |
26689 | { | |
26690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26691 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26692 | ||
26693 | wxPyEndAllowThreads(__tstate); | |
26694 | if (PyErr_Occurred()) SWIG_fail; | |
26695 | } | |
26696 | Py_INCREF(Py_None); resultobj = Py_None; | |
26697 | { | |
26698 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26699 | resultobj = t_output_helper(resultobj,o); | |
26700 | } | |
26701 | { | |
26702 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26703 | resultobj = t_output_helper(resultobj,o); | |
26704 | } | |
26705 | { | |
26706 | if (temp2) | |
26707 | delete arg2; | |
26708 | } | |
26709 | return resultobj; | |
26710 | fail: | |
26711 | { | |
26712 | if (temp2) | |
26713 | delete arg2; | |
26714 | } | |
26715 | return NULL; | |
26716 | } | |
26717 | ||
26718 | ||
26719 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26720 | PyObject *resultobj; | |
26721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26722 | wxString *arg2 = 0 ; | |
26723 | int *arg3 = (int *) 0 ; | |
26724 | int *arg4 = (int *) 0 ; | |
26725 | int *arg5 = (int *) 0 ; | |
26726 | int *arg6 = (int *) 0 ; | |
26727 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 26728 | bool temp2 = False ; |
d14a1e28 RD |
26729 | int temp3 ; |
26730 | int temp4 ; | |
26731 | int temp5 ; | |
26732 | int temp6 ; | |
26733 | PyObject * obj0 = 0 ; | |
26734 | PyObject * obj1 = 0 ; | |
26735 | PyObject * obj2 = 0 ; | |
26736 | char *kwnames[] = { | |
26737 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26738 | }; | |
26739 | ||
26740 | arg3 = &temp3; | |
26741 | arg4 = &temp4; | |
26742 | arg5 = &temp5; | |
26743 | arg6 = &temp6; | |
26744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26747 | { |
26748 | arg2 = wxString_in_helper(obj1); | |
26749 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26750 | temp2 = True; |
d14a1e28 RD |
26751 | } |
26752 | if (obj2) { | |
15afbcd0 RD |
26753 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
26754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26755 | } |
26756 | { | |
26757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26758 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26759 | ||
26760 | wxPyEndAllowThreads(__tstate); | |
26761 | if (PyErr_Occurred()) SWIG_fail; | |
26762 | } | |
26763 | Py_INCREF(Py_None); resultobj = Py_None; | |
26764 | { | |
26765 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26766 | resultobj = t_output_helper(resultobj,o); | |
26767 | } | |
26768 | { | |
26769 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26770 | resultobj = t_output_helper(resultobj,o); | |
26771 | } | |
26772 | { | |
26773 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26774 | resultobj = t_output_helper(resultobj,o); | |
26775 | } | |
26776 | { | |
26777 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26778 | resultobj = t_output_helper(resultobj,o); | |
26779 | } | |
26780 | { | |
26781 | if (temp2) | |
26782 | delete arg2; | |
26783 | } | |
26784 | return resultobj; | |
26785 | fail: | |
26786 | { | |
26787 | if (temp2) | |
26788 | delete arg2; | |
26789 | } | |
26790 | return NULL; | |
26791 | } | |
26792 | ||
26793 | ||
26794 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26795 | PyObject *resultobj; | |
26796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26797 | int *arg2 = (int *) 0 ; | |
26798 | int *arg3 = (int *) 0 ; | |
26799 | int temp2 ; | |
26800 | int temp3 ; | |
26801 | PyObject * obj0 = 0 ; | |
26802 | PyObject * obj1 = 0 ; | |
26803 | PyObject * obj2 = 0 ; | |
26804 | char *kwnames[] = { | |
26805 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26806 | }; | |
26807 | ||
26808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26811 | { |
26812 | temp2 = PyInt_AsLong(obj1); | |
26813 | if (PyErr_Occurred()) SWIG_fail; | |
26814 | arg2 = &temp2; | |
26815 | } | |
26816 | { | |
26817 | temp3 = PyInt_AsLong(obj2); | |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
26819 | arg3 = &temp3; | |
26820 | } | |
26821 | { | |
26822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26823 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26824 | ||
26825 | wxPyEndAllowThreads(__tstate); | |
26826 | if (PyErr_Occurred()) SWIG_fail; | |
26827 | } | |
26828 | Py_INCREF(Py_None); resultobj = Py_None; | |
26829 | { | |
26830 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26831 | resultobj = t_output_helper(resultobj,o); | |
26832 | } | |
26833 | { | |
26834 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26835 | resultobj = t_output_helper(resultobj,o); | |
26836 | } | |
26837 | return resultobj; | |
26838 | fail: | |
26839 | return NULL; | |
26840 | } | |
26841 | ||
26842 | ||
26843 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26844 | PyObject *resultobj; | |
26845 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26846 | int *arg2 = (int *) 0 ; | |
26847 | int *arg3 = (int *) 0 ; | |
26848 | int temp2 ; | |
26849 | int temp3 ; | |
26850 | PyObject * obj0 = 0 ; | |
26851 | PyObject * obj1 = 0 ; | |
26852 | PyObject * obj2 = 0 ; | |
26853 | char *kwnames[] = { | |
26854 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26855 | }; | |
26856 | ||
26857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26860 | { |
26861 | temp2 = PyInt_AsLong(obj1); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | arg2 = &temp2; | |
26864 | } | |
26865 | { | |
26866 | temp3 = PyInt_AsLong(obj2); | |
26867 | if (PyErr_Occurred()) SWIG_fail; | |
26868 | arg3 = &temp3; | |
26869 | } | |
26870 | { | |
26871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26872 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26873 | ||
26874 | wxPyEndAllowThreads(__tstate); | |
26875 | if (PyErr_Occurred()) SWIG_fail; | |
26876 | } | |
26877 | Py_INCREF(Py_None); resultobj = Py_None; | |
26878 | { | |
26879 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26880 | resultobj = t_output_helper(resultobj,o); | |
26881 | } | |
26882 | { | |
26883 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26884 | resultobj = t_output_helper(resultobj,o); | |
26885 | } | |
26886 | return resultobj; | |
26887 | fail: | |
26888 | return NULL; | |
26889 | } | |
26890 | ||
26891 | ||
26892 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26893 | PyObject *resultobj; | |
26894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26895 | wxPoint *arg2 = 0 ; | |
26896 | wxPoint result; | |
26897 | wxPoint temp2 ; | |
26898 | PyObject * obj0 = 0 ; | |
26899 | PyObject * obj1 = 0 ; | |
26900 | char *kwnames[] = { | |
26901 | (char *) "self",(char *) "pt", NULL | |
26902 | }; | |
26903 | ||
26904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26907 | { |
26908 | arg2 = &temp2; | |
26909 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26910 | } | |
26911 | { | |
26912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26913 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26914 | ||
26915 | wxPyEndAllowThreads(__tstate); | |
26916 | if (PyErr_Occurred()) SWIG_fail; | |
26917 | } | |
26918 | { | |
26919 | wxPoint * resultptr; | |
26920 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26921 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26922 | } |
26923 | return resultobj; | |
26924 | fail: | |
26925 | return NULL; | |
26926 | } | |
26927 | ||
26928 | ||
26929 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26930 | PyObject *resultobj; | |
26931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26932 | wxPoint *arg2 = 0 ; | |
26933 | wxPoint result; | |
26934 | wxPoint temp2 ; | |
26935 | PyObject * obj0 = 0 ; | |
26936 | PyObject * obj1 = 0 ; | |
26937 | char *kwnames[] = { | |
26938 | (char *) "self",(char *) "pt", NULL | |
26939 | }; | |
26940 | ||
26941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26944 | { |
26945 | arg2 = &temp2; | |
26946 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26947 | } | |
26948 | { | |
26949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26950 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26951 | ||
26952 | wxPyEndAllowThreads(__tstate); | |
26953 | if (PyErr_Occurred()) SWIG_fail; | |
26954 | } | |
26955 | { | |
26956 | wxPoint * resultptr; | |
26957 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26958 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26959 | } |
26960 | return resultobj; | |
26961 | fail: | |
26962 | return NULL; | |
26963 | } | |
26964 | ||
26965 | ||
26966 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26967 | PyObject *resultobj; | |
26968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
26969 | int arg2 ; |
26970 | int arg3 ; | |
d14a1e28 RD |
26971 | int result; |
26972 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26973 | PyObject * obj1 = 0 ; |
26974 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26975 | char *kwnames[] = { |
26976 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26977 | }; | |
26978 | ||
994141e6 | 26979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26982 | arg2 = (int) SWIG_AsInt(obj1); | |
26983 | if (PyErr_Occurred()) SWIG_fail; | |
26984 | arg3 = (int) SWIG_AsInt(obj2); | |
26985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26986 | { |
26987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26988 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
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_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27001 | PyObject *resultobj; | |
27002 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27003 | wxPoint *arg2 = 0 ; | |
27004 | int result; | |
27005 | wxPoint temp2 ; | |
27006 | PyObject * obj0 = 0 ; | |
27007 | PyObject * obj1 = 0 ; | |
27008 | char *kwnames[] = { | |
27009 | (char *) "self",(char *) "pt", NULL | |
27010 | }; | |
27011 | ||
27012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27015 | { |
27016 | arg2 = &temp2; | |
27017 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27018 | } | |
27019 | { | |
27020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27021 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27022 | ||
27023 | wxPyEndAllowThreads(__tstate); | |
27024 | if (PyErr_Occurred()) SWIG_fail; | |
27025 | } | |
15afbcd0 | 27026 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27027 | return resultobj; |
27028 | fail: | |
27029 | return NULL; | |
27030 | } | |
27031 | ||
27032 | ||
15afbcd0 | 27033 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
27034 | PyObject *resultobj; |
27035 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27036 | long arg2 ; | |
27037 | int result; | |
27038 | PyObject * obj0 = 0 ; | |
994141e6 | 27039 | PyObject * obj1 = 0 ; |
d14a1e28 | 27040 | |
15afbcd0 RD |
27041 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
27042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27044 | arg2 = (long) SWIG_AsLong(obj1); | |
27045 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27046 | { |
27047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27048 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27049 | ||
27050 | wxPyEndAllowThreads(__tstate); | |
27051 | if (PyErr_Occurred()) SWIG_fail; | |
27052 | } | |
15afbcd0 | 27053 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27054 | return resultobj; |
27055 | fail: | |
27056 | return NULL; | |
27057 | } | |
27058 | ||
27059 | ||
15afbcd0 | 27060 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
27061 | PyObject *resultobj; |
27062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27063 | int result; | |
27064 | PyObject * obj0 = 0 ; | |
d14a1e28 | 27065 | |
15afbcd0 RD |
27066 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
27067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27069 | { |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
15afbcd0 | 27076 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27077 | return resultobj; |
27078 | fail: | |
27079 | return NULL; | |
27080 | } | |
27081 | ||
27082 | ||
15afbcd0 RD |
27083 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
27084 | int argc; | |
27085 | PyObject *argv[3]; | |
27086 | int ii; | |
27087 | ||
27088 | argc = PyObject_Length(args); | |
27089 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27090 | argv[ii] = PyTuple_GetItem(args,ii); | |
27091 | } | |
27092 | if (argc == 1) { | |
27093 | int _v; | |
27094 | { | |
27095 | void *ptr; | |
27096 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27097 | _v = 0; | |
27098 | PyErr_Clear(); | |
27099 | } else { | |
27100 | _v = 1; | |
27101 | } | |
27102 | } | |
27103 | if (_v) { | |
27104 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27105 | } | |
27106 | } | |
27107 | if (argc == 2) { | |
27108 | int _v; | |
27109 | { | |
27110 | void *ptr; | |
27111 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27112 | _v = 0; | |
27113 | PyErr_Clear(); | |
27114 | } else { | |
27115 | _v = 1; | |
27116 | } | |
27117 | } | |
27118 | if (_v) { | |
27119 | _v = SWIG_CheckLong(argv[1]); | |
27120 | if (_v) { | |
27121 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27122 | } | |
27123 | } | |
27124 | } | |
27125 | ||
27126 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27127 | return NULL; | |
27128 | } | |
27129 | ||
27130 | ||
d14a1e28 RD |
27131 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
27132 | PyObject *resultobj; | |
27133 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27134 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27135 | PyObject * obj0 = 0 ; | |
994141e6 | 27136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27137 | char *kwnames[] = { |
27138 | (char *) "self",(char *) "flags", NULL | |
27139 | }; | |
27140 | ||
994141e6 | 27141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27144 | if (obj1) { |
15afbcd0 RD |
27145 | arg2 = (long) SWIG_AsLong(obj1); |
27146 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27147 | } |
d14a1e28 RD |
27148 | { |
27149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27150 | (arg1)->UpdateWindowUI(arg2); | |
27151 | ||
27152 | wxPyEndAllowThreads(__tstate); | |
27153 | if (PyErr_Occurred()) SWIG_fail; | |
27154 | } | |
27155 | Py_INCREF(Py_None); resultobj = Py_None; | |
27156 | return resultobj; | |
27157 | fail: | |
27158 | return NULL; | |
27159 | } | |
27160 | ||
27161 | ||
27162 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27163 | PyObject *resultobj; | |
27164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27165 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27166 | int arg3 = (int) -1 ; |
27167 | int arg4 = (int) -1 ; | |
d14a1e28 RD |
27168 | bool result; |
27169 | PyObject * obj0 = 0 ; | |
27170 | PyObject * obj1 = 0 ; | |
994141e6 RD |
27171 | PyObject * obj2 = 0 ; |
27172 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
27173 | char *kwnames[] = { |
27174 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27175 | }; | |
27176 | ||
b0503257 | 27177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27182 | if (obj2) { |
27183 | arg3 = (int) SWIG_AsInt(obj2); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
27186 | if (obj3) { | |
27187 | arg4 = (int) SWIG_AsInt(obj3); | |
27188 | if (PyErr_Occurred()) SWIG_fail; | |
27189 | } | |
d14a1e28 RD |
27190 | { |
27191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27192 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27193 | ||
27194 | wxPyEndAllowThreads(__tstate); | |
27195 | if (PyErr_Occurred()) SWIG_fail; | |
27196 | } | |
4f89f6a3 RD |
27197 | { |
27198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27199 | } | |
d14a1e28 RD |
27200 | return resultobj; |
27201 | fail: | |
27202 | return NULL; | |
27203 | } | |
27204 | ||
27205 | ||
27206 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27207 | PyObject *resultobj; | |
27208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27209 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27210 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27211 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d14a1e28 RD |
27212 | bool result; |
27213 | wxPoint temp3 ; | |
27214 | PyObject * obj0 = 0 ; | |
27215 | PyObject * obj1 = 0 ; | |
27216 | PyObject * obj2 = 0 ; | |
27217 | char *kwnames[] = { | |
27218 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27219 | }; | |
27220 | ||
b0503257 | 27221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
27222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27224 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27226 | if (obj2) { |
27227 | { | |
27228 | arg3 = &temp3; | |
27229 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27230 | } | |
d14a1e28 RD |
27231 | } |
27232 | { | |
27233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27234 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27235 | ||
27236 | wxPyEndAllowThreads(__tstate); | |
27237 | if (PyErr_Occurred()) SWIG_fail; | |
27238 | } | |
4f89f6a3 RD |
27239 | { |
27240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27241 | } | |
d14a1e28 RD |
27242 | return resultobj; |
27243 | fail: | |
27244 | return NULL; | |
27245 | } | |
27246 | ||
27247 | ||
27248 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27249 | PyObject *resultobj; | |
27250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27251 | long result; | |
27252 | PyObject * obj0 = 0 ; | |
27253 | char *kwnames[] = { | |
27254 | (char *) "self", NULL | |
27255 | }; | |
27256 | ||
27257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27260 | { |
27261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27262 | result = (long)wxWindow_GetHandle(arg1); | |
27263 | ||
27264 | wxPyEndAllowThreads(__tstate); | |
27265 | if (PyErr_Occurred()) SWIG_fail; | |
27266 | } | |
15afbcd0 | 27267 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
27268 | return resultobj; |
27269 | fail: | |
27270 | return NULL; | |
27271 | } | |
27272 | ||
27273 | ||
27274 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27275 | PyObject *resultobj; | |
27276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27277 | int arg2 ; | |
27278 | bool result; | |
27279 | PyObject * obj0 = 0 ; | |
994141e6 | 27280 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27281 | char *kwnames[] = { |
27282 | (char *) "self",(char *) "orient", NULL | |
27283 | }; | |
27284 | ||
994141e6 | 27285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27288 | arg2 = (int) SWIG_AsInt(obj1); | |
27289 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27290 | { |
27291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27292 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27293 | ||
27294 | wxPyEndAllowThreads(__tstate); | |
27295 | if (PyErr_Occurred()) SWIG_fail; | |
27296 | } | |
4f89f6a3 RD |
27297 | { |
27298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27299 | } | |
d14a1e28 RD |
27300 | return resultobj; |
27301 | fail: | |
27302 | return NULL; | |
27303 | } | |
27304 | ||
27305 | ||
27306 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27307 | PyObject *resultobj; | |
27308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27309 | int arg2 ; | |
27310 | int arg3 ; | |
27311 | int arg4 ; | |
27312 | int arg5 ; | |
e811c8ce | 27313 | bool arg6 = (bool) True ; |
d14a1e28 | 27314 | PyObject * obj0 = 0 ; |
994141e6 RD |
27315 | PyObject * obj1 = 0 ; |
27316 | PyObject * obj2 = 0 ; | |
27317 | PyObject * obj3 = 0 ; | |
27318 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27319 | PyObject * obj5 = 0 ; |
27320 | char *kwnames[] = { | |
41e2b43e | 27321 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
27322 | }; |
27323 | ||
994141e6 | 27324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27327 | arg2 = (int) SWIG_AsInt(obj1); | |
27328 | if (PyErr_Occurred()) SWIG_fail; | |
27329 | arg3 = (int) SWIG_AsInt(obj2); | |
27330 | if (PyErr_Occurred()) SWIG_fail; | |
27331 | arg4 = (int) SWIG_AsInt(obj3); | |
27332 | if (PyErr_Occurred()) SWIG_fail; | |
27333 | arg5 = (int) SWIG_AsInt(obj4); | |
27334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27335 | if (obj5) { |
15afbcd0 RD |
27336 | arg6 = (bool) SWIG_AsBool(obj5); |
27337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27338 | } |
27339 | { | |
27340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27341 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27342 | ||
27343 | wxPyEndAllowThreads(__tstate); | |
27344 | if (PyErr_Occurred()) SWIG_fail; | |
27345 | } | |
27346 | Py_INCREF(Py_None); resultobj = Py_None; | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
27353 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27354 | PyObject *resultobj; | |
27355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27356 | int arg2 ; | |
27357 | int arg3 ; | |
e811c8ce | 27358 | bool arg4 = (bool) True ; |
d14a1e28 | 27359 | PyObject * obj0 = 0 ; |
994141e6 RD |
27360 | PyObject * obj1 = 0 ; |
27361 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27362 | PyObject * obj3 = 0 ; |
27363 | char *kwnames[] = { | |
15afbcd0 | 27364 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
27365 | }; |
27366 | ||
994141e6 | 27367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27370 | arg2 = (int) SWIG_AsInt(obj1); | |
27371 | if (PyErr_Occurred()) SWIG_fail; | |
27372 | arg3 = (int) SWIG_AsInt(obj2); | |
27373 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27374 | if (obj3) { |
15afbcd0 RD |
27375 | arg4 = (bool) SWIG_AsBool(obj3); |
27376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27377 | } |
27378 | { | |
27379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27380 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27381 | ||
27382 | wxPyEndAllowThreads(__tstate); | |
27383 | if (PyErr_Occurred()) SWIG_fail; | |
27384 | } | |
27385 | Py_INCREF(Py_None); resultobj = Py_None; | |
27386 | return resultobj; | |
27387 | fail: | |
27388 | return NULL; | |
27389 | } | |
27390 | ||
27391 | ||
27392 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27393 | PyObject *resultobj; | |
27394 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27395 | int arg2 ; | |
27396 | int result; | |
27397 | PyObject * obj0 = 0 ; | |
994141e6 | 27398 | PyObject * obj1 = 0 ; |
d14a1e28 | 27399 | char *kwnames[] = { |
15afbcd0 | 27400 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27401 | }; |
27402 | ||
994141e6 | 27403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27406 | arg2 = (int) SWIG_AsInt(obj1); | |
27407 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27408 | { |
27409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27410 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27411 | ||
27412 | wxPyEndAllowThreads(__tstate); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
15afbcd0 | 27415 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27416 | return resultobj; |
27417 | fail: | |
27418 | return NULL; | |
27419 | } | |
27420 | ||
27421 | ||
27422 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27423 | PyObject *resultobj; | |
27424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27425 | int arg2 ; | |
27426 | int result; | |
27427 | PyObject * obj0 = 0 ; | |
994141e6 | 27428 | PyObject * obj1 = 0 ; |
d14a1e28 | 27429 | char *kwnames[] = { |
15afbcd0 | 27430 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27431 | }; |
27432 | ||
994141e6 | 27433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27436 | arg2 = (int) SWIG_AsInt(obj1); | |
27437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27438 | { |
27439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27440 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27441 | ||
27442 | wxPyEndAllowThreads(__tstate); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | } | |
15afbcd0 | 27445 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27446 | return resultobj; |
27447 | fail: | |
27448 | return NULL; | |
27449 | } | |
27450 | ||
27451 | ||
27452 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27453 | PyObject *resultobj; | |
27454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27455 | int arg2 ; | |
27456 | int result; | |
27457 | PyObject * obj0 = 0 ; | |
994141e6 | 27458 | PyObject * obj1 = 0 ; |
d14a1e28 | 27459 | char *kwnames[] = { |
15afbcd0 | 27460 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27461 | }; |
27462 | ||
994141e6 | 27463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27466 | arg2 = (int) SWIG_AsInt(obj1); | |
27467 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27468 | { |
27469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27470 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27471 | ||
27472 | wxPyEndAllowThreads(__tstate); | |
27473 | if (PyErr_Occurred()) SWIG_fail; | |
27474 | } | |
15afbcd0 | 27475 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27476 | return resultobj; |
27477 | fail: | |
27478 | return NULL; | |
27479 | } | |
27480 | ||
27481 | ||
27482 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27483 | PyObject *resultobj; | |
27484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27485 | int arg2 ; | |
27486 | int arg3 ; | |
27487 | wxRect *arg4 = (wxRect *) NULL ; | |
27488 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27489 | PyObject * obj1 = 0 ; |
27490 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27491 | PyObject * obj3 = 0 ; |
27492 | char *kwnames[] = { | |
27493 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27494 | }; | |
27495 | ||
994141e6 | 27496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27499 | arg2 = (int) SWIG_AsInt(obj1); | |
27500 | if (PyErr_Occurred()) SWIG_fail; | |
27501 | arg3 = (int) SWIG_AsInt(obj2); | |
27502 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27503 | if (obj3) { |
15afbcd0 RD |
27504 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
27505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27506 | } |
27507 | { | |
27508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27509 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27510 | ||
27511 | wxPyEndAllowThreads(__tstate); | |
27512 | if (PyErr_Occurred()) SWIG_fail; | |
27513 | } | |
27514 | Py_INCREF(Py_None); resultobj = Py_None; | |
27515 | return resultobj; | |
27516 | fail: | |
27517 | return NULL; | |
27518 | } | |
27519 | ||
27520 | ||
27521 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27522 | PyObject *resultobj; | |
27523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27524 | int arg2 ; | |
27525 | bool result; | |
27526 | PyObject * obj0 = 0 ; | |
994141e6 | 27527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27528 | char *kwnames[] = { |
27529 | (char *) "self",(char *) "lines", NULL | |
27530 | }; | |
27531 | ||
994141e6 | 27532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27535 | arg2 = (int) SWIG_AsInt(obj1); | |
27536 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27537 | { |
27538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27539 | result = (bool)(arg1)->ScrollLines(arg2); | |
27540 | ||
27541 | wxPyEndAllowThreads(__tstate); | |
27542 | if (PyErr_Occurred()) SWIG_fail; | |
27543 | } | |
4f89f6a3 RD |
27544 | { |
27545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27546 | } | |
d14a1e28 RD |
27547 | return resultobj; |
27548 | fail: | |
27549 | return NULL; | |
27550 | } | |
27551 | ||
27552 | ||
27553 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27554 | PyObject *resultobj; | |
27555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27556 | int arg2 ; | |
27557 | bool result; | |
27558 | PyObject * obj0 = 0 ; | |
994141e6 | 27559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27560 | char *kwnames[] = { |
27561 | (char *) "self",(char *) "pages", NULL | |
27562 | }; | |
27563 | ||
994141e6 | 27564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27567 | arg2 = (int) SWIG_AsInt(obj1); | |
27568 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27569 | { |
27570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27571 | result = (bool)(arg1)->ScrollPages(arg2); | |
27572 | ||
27573 | wxPyEndAllowThreads(__tstate); | |
27574 | if (PyErr_Occurred()) SWIG_fail; | |
27575 | } | |
4f89f6a3 RD |
27576 | { |
27577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27578 | } | |
d14a1e28 RD |
27579 | return resultobj; |
27580 | fail: | |
27581 | return NULL; | |
27582 | } | |
27583 | ||
27584 | ||
27585 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27586 | PyObject *resultobj; | |
27587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27588 | bool result; | |
27589 | PyObject * obj0 = 0 ; | |
27590 | char *kwnames[] = { | |
27591 | (char *) "self", NULL | |
27592 | }; | |
27593 | ||
27594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27597 | { |
27598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27599 | result = (bool)(arg1)->LineUp(); | |
27600 | ||
27601 | wxPyEndAllowThreads(__tstate); | |
27602 | if (PyErr_Occurred()) SWIG_fail; | |
27603 | } | |
4f89f6a3 RD |
27604 | { |
27605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27606 | } | |
d14a1e28 RD |
27607 | return resultobj; |
27608 | fail: | |
27609 | return NULL; | |
27610 | } | |
27611 | ||
27612 | ||
27613 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27614 | PyObject *resultobj; | |
27615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27616 | bool result; | |
27617 | PyObject * obj0 = 0 ; | |
27618 | char *kwnames[] = { | |
27619 | (char *) "self", NULL | |
27620 | }; | |
27621 | ||
27622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27625 | { |
27626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27627 | result = (bool)(arg1)->LineDown(); | |
27628 | ||
27629 | wxPyEndAllowThreads(__tstate); | |
27630 | if (PyErr_Occurred()) SWIG_fail; | |
27631 | } | |
4f89f6a3 RD |
27632 | { |
27633 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27634 | } | |
d14a1e28 RD |
27635 | return resultobj; |
27636 | fail: | |
27637 | return NULL; | |
27638 | } | |
27639 | ||
27640 | ||
27641 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27642 | PyObject *resultobj; | |
27643 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27644 | bool result; | |
27645 | PyObject * obj0 = 0 ; | |
27646 | char *kwnames[] = { | |
27647 | (char *) "self", NULL | |
27648 | }; | |
27649 | ||
27650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27653 | { |
27654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27655 | result = (bool)(arg1)->PageUp(); | |
27656 | ||
27657 | wxPyEndAllowThreads(__tstate); | |
27658 | if (PyErr_Occurred()) SWIG_fail; | |
27659 | } | |
4f89f6a3 RD |
27660 | { |
27661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27662 | } | |
d14a1e28 RD |
27663 | return resultobj; |
27664 | fail: | |
27665 | return NULL; | |
27666 | } | |
27667 | ||
27668 | ||
27669 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27670 | PyObject *resultobj; | |
27671 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27672 | bool result; | |
27673 | PyObject * obj0 = 0 ; | |
27674 | char *kwnames[] = { | |
27675 | (char *) "self", NULL | |
27676 | }; | |
27677 | ||
27678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27681 | { |
27682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27683 | result = (bool)(arg1)->PageDown(); | |
27684 | ||
27685 | wxPyEndAllowThreads(__tstate); | |
27686 | if (PyErr_Occurred()) SWIG_fail; | |
27687 | } | |
4f89f6a3 RD |
27688 | { |
27689 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27690 | } | |
d14a1e28 RD |
27691 | return resultobj; |
27692 | fail: | |
27693 | return NULL; | |
27694 | } | |
27695 | ||
27696 | ||
27697 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27698 | PyObject *resultobj; | |
27699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27700 | wxString *arg2 = 0 ; | |
e811c8ce | 27701 | bool temp2 = False ; |
d14a1e28 RD |
27702 | PyObject * obj0 = 0 ; |
27703 | PyObject * obj1 = 0 ; | |
27704 | char *kwnames[] = { | |
27705 | (char *) "self",(char *) "text", NULL | |
27706 | }; | |
27707 | ||
27708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27711 | { |
27712 | arg2 = wxString_in_helper(obj1); | |
27713 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27714 | temp2 = True; |
d14a1e28 RD |
27715 | } |
27716 | { | |
27717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27718 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27719 | ||
27720 | wxPyEndAllowThreads(__tstate); | |
27721 | if (PyErr_Occurred()) SWIG_fail; | |
27722 | } | |
27723 | Py_INCREF(Py_None); resultobj = Py_None; | |
27724 | { | |
27725 | if (temp2) | |
27726 | delete arg2; | |
27727 | } | |
27728 | return resultobj; | |
27729 | fail: | |
27730 | { | |
27731 | if (temp2) | |
27732 | delete arg2; | |
27733 | } | |
27734 | return NULL; | |
27735 | } | |
27736 | ||
27737 | ||
27738 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27739 | PyObject *resultobj; | |
27740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27741 | wxString *arg2 = 0 ; | |
e811c8ce | 27742 | bool temp2 = False ; |
d14a1e28 RD |
27743 | PyObject * obj0 = 0 ; |
27744 | PyObject * obj1 = 0 ; | |
27745 | char *kwnames[] = { | |
27746 | (char *) "self",(char *) "text", NULL | |
27747 | }; | |
27748 | ||
27749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27752 | { |
27753 | arg2 = wxString_in_helper(obj1); | |
27754 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27755 | temp2 = True; |
d14a1e28 RD |
27756 | } |
27757 | { | |
27758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27759 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27760 | ||
27761 | wxPyEndAllowThreads(__tstate); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
27764 | Py_INCREF(Py_None); resultobj = Py_None; | |
27765 | { | |
27766 | if (temp2) | |
27767 | delete arg2; | |
27768 | } | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | { | |
27772 | if (temp2) | |
27773 | delete arg2; | |
27774 | } | |
27775 | return NULL; | |
27776 | } | |
27777 | ||
27778 | ||
27779 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27780 | PyObject *resultobj; | |
27781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27782 | wxString result; | |
27783 | PyObject * obj0 = 0 ; | |
27784 | char *kwnames[] = { | |
27785 | (char *) "self", NULL | |
27786 | }; | |
27787 | ||
27788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",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 = ((wxWindow const *)arg1)->GetHelpText(); | |
27794 | ||
27795 | wxPyEndAllowThreads(__tstate); | |
27796 | if (PyErr_Occurred()) SWIG_fail; | |
27797 | } | |
27798 | { | |
27799 | #if wxUSE_UNICODE | |
27800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27801 | #else | |
27802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27803 | #endif | |
27804 | } | |
27805 | return resultobj; | |
27806 | fail: | |
27807 | return NULL; | |
27808 | } | |
27809 | ||
27810 | ||
27811 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27812 | PyObject *resultobj; | |
27813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27814 | wxString *arg2 = 0 ; | |
e811c8ce | 27815 | bool temp2 = False ; |
d14a1e28 RD |
27816 | PyObject * obj0 = 0 ; |
27817 | PyObject * obj1 = 0 ; | |
27818 | char *kwnames[] = { | |
27819 | (char *) "self",(char *) "tip", NULL | |
27820 | }; | |
27821 | ||
27822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27825 | { |
27826 | arg2 = wxString_in_helper(obj1); | |
27827 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27828 | temp2 = True; |
d14a1e28 RD |
27829 | } |
27830 | { | |
27831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27832 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27833 | ||
27834 | wxPyEndAllowThreads(__tstate); | |
27835 | if (PyErr_Occurred()) SWIG_fail; | |
27836 | } | |
27837 | Py_INCREF(Py_None); resultobj = Py_None; | |
27838 | { | |
27839 | if (temp2) | |
27840 | delete arg2; | |
27841 | } | |
27842 | return resultobj; | |
27843 | fail: | |
27844 | { | |
27845 | if (temp2) | |
27846 | delete arg2; | |
27847 | } | |
27848 | return NULL; | |
27849 | } | |
27850 | ||
27851 | ||
27852 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27853 | PyObject *resultobj; | |
27854 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27855 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27856 | PyObject * obj0 = 0 ; | |
27857 | PyObject * obj1 = 0 ; | |
27858 | char *kwnames[] = { | |
27859 | (char *) "self",(char *) "tip", NULL | |
27860 | }; | |
27861 | ||
27862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27867 | { |
27868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27869 | (arg1)->SetToolTip(arg2); | |
27870 | ||
27871 | wxPyEndAllowThreads(__tstate); | |
27872 | if (PyErr_Occurred()) SWIG_fail; | |
27873 | } | |
27874 | Py_INCREF(Py_None); resultobj = Py_None; | |
27875 | return resultobj; | |
27876 | fail: | |
27877 | return NULL; | |
27878 | } | |
27879 | ||
27880 | ||
27881 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27882 | PyObject *resultobj; | |
27883 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27884 | wxToolTip *result; | |
27885 | PyObject * obj0 = 0 ; | |
27886 | char *kwnames[] = { | |
27887 | (char *) "self", NULL | |
27888 | }; | |
27889 | ||
27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27893 | { |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27896 | ||
27897 | wxPyEndAllowThreads(__tstate); | |
27898 | if (PyErr_Occurred()) SWIG_fail; | |
27899 | } | |
27900 | { | |
412d302d | 27901 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27902 | } |
27903 | return resultobj; | |
27904 | fail: | |
27905 | return NULL; | |
27906 | } | |
27907 | ||
27908 | ||
27909 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27910 | PyObject *resultobj; | |
27911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27912 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
27913 | PyObject * obj0 = 0 ; |
27914 | PyObject * obj1 = 0 ; | |
27915 | char *kwnames[] = { | |
27916 | (char *) "self",(char *) "dropTarget", NULL | |
27917 | }; | |
27918 | ||
27919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27923 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27924 | { |
27925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27926 | (arg1)->SetDropTarget(arg2); | |
27927 | ||
27928 | wxPyEndAllowThreads(__tstate); | |
27929 | if (PyErr_Occurred()) SWIG_fail; | |
27930 | } | |
27931 | Py_INCREF(Py_None); resultobj = Py_None; | |
27932 | return resultobj; | |
27933 | fail: | |
27934 | return NULL; | |
27935 | } | |
27936 | ||
27937 | ||
27938 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27939 | PyObject *resultobj; | |
27940 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27941 | wxPyDropTarget *result; |
d14a1e28 RD |
27942 | PyObject * obj0 = 0 ; |
27943 | char *kwnames[] = { | |
27944 | (char *) "self", NULL | |
27945 | }; | |
27946 | ||
27947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27950 | { |
27951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 27952 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
27953 | |
27954 | wxPyEndAllowThreads(__tstate); | |
27955 | if (PyErr_Occurred()) SWIG_fail; | |
27956 | } | |
15afbcd0 | 27957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
27958 | return resultobj; |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj; | |
27966 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27967 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27968 | PyObject * obj0 = 0 ; | |
27969 | PyObject * obj1 = 0 ; | |
27970 | char *kwnames[] = { | |
27971 | (char *) "self",(char *) "constraints", NULL | |
27972 | }; | |
27973 | ||
27974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27979 | { |
27980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27981 | (arg1)->SetConstraints(arg2); | |
27982 | ||
27983 | wxPyEndAllowThreads(__tstate); | |
27984 | if (PyErr_Occurred()) SWIG_fail; | |
27985 | } | |
27986 | Py_INCREF(Py_None); resultobj = Py_None; | |
27987 | return resultobj; | |
27988 | fail: | |
27989 | return NULL; | |
27990 | } | |
27991 | ||
27992 | ||
27993 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27994 | PyObject *resultobj; | |
27995 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27996 | wxLayoutConstraints *result; | |
27997 | PyObject * obj0 = 0 ; | |
27998 | char *kwnames[] = { | |
27999 | (char *) "self", NULL | |
28000 | }; | |
28001 | ||
28002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28005 | { |
28006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28007 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28008 | ||
28009 | wxPyEndAllowThreads(__tstate); | |
28010 | if (PyErr_Occurred()) SWIG_fail; | |
28011 | } | |
15afbcd0 | 28012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
28013 | return resultobj; |
28014 | fail: | |
28015 | return NULL; | |
28016 | } | |
28017 | ||
28018 | ||
28019 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28020 | PyObject *resultobj; | |
28021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28022 | bool arg2 ; | |
28023 | PyObject * obj0 = 0 ; | |
28024 | PyObject * obj1 = 0 ; | |
28025 | char *kwnames[] = { | |
28026 | (char *) "self",(char *) "autoLayout", NULL | |
28027 | }; | |
28028 | ||
28029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28032 | arg2 = (bool) SWIG_AsBool(obj1); | |
28033 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28034 | { |
28035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28036 | (arg1)->SetAutoLayout(arg2); | |
28037 | ||
28038 | wxPyEndAllowThreads(__tstate); | |
28039 | if (PyErr_Occurred()) SWIG_fail; | |
28040 | } | |
28041 | Py_INCREF(Py_None); resultobj = Py_None; | |
28042 | return resultobj; | |
28043 | fail: | |
28044 | return NULL; | |
28045 | } | |
28046 | ||
28047 | ||
28048 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28049 | PyObject *resultobj; | |
28050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28051 | bool result; | |
28052 | PyObject * obj0 = 0 ; | |
28053 | char *kwnames[] = { | |
28054 | (char *) "self", NULL | |
28055 | }; | |
28056 | ||
28057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28060 | { |
28061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28062 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28063 | ||
28064 | wxPyEndAllowThreads(__tstate); | |
28065 | if (PyErr_Occurred()) SWIG_fail; | |
28066 | } | |
4f89f6a3 RD |
28067 | { |
28068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28069 | } | |
d14a1e28 RD |
28070 | return resultobj; |
28071 | fail: | |
28072 | return NULL; | |
28073 | } | |
28074 | ||
28075 | ||
28076 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28077 | PyObject *resultobj; | |
28078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28079 | bool result; | |
28080 | PyObject * obj0 = 0 ; | |
28081 | char *kwnames[] = { | |
28082 | (char *) "self", NULL | |
28083 | }; | |
28084 | ||
28085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28088 | { |
28089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28090 | result = (bool)(arg1)->Layout(); | |
28091 | ||
28092 | wxPyEndAllowThreads(__tstate); | |
28093 | if (PyErr_Occurred()) SWIG_fail; | |
28094 | } | |
4f89f6a3 RD |
28095 | { |
28096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28097 | } | |
d14a1e28 RD |
28098 | return resultobj; |
28099 | fail: | |
28100 | return NULL; | |
28101 | } | |
28102 | ||
28103 | ||
28104 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28105 | PyObject *resultobj; | |
28106 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28107 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 28108 | bool arg3 = (bool) True ; |
d14a1e28 RD |
28109 | PyObject * obj0 = 0 ; |
28110 | PyObject * obj1 = 0 ; | |
28111 | PyObject * obj2 = 0 ; | |
28112 | char *kwnames[] = { | |
28113 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28114 | }; | |
28115 | ||
28116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 28121 | if (obj2) { |
15afbcd0 RD |
28122 | arg3 = (bool) SWIG_AsBool(obj2); |
28123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28124 | } |
28125 | { | |
28126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28127 | (arg1)->SetSizer(arg2,arg3); | |
28128 | ||
28129 | wxPyEndAllowThreads(__tstate); | |
28130 | if (PyErr_Occurred()) SWIG_fail; | |
28131 | } | |
28132 | Py_INCREF(Py_None); resultobj = Py_None; | |
28133 | return resultobj; | |
28134 | fail: | |
28135 | return NULL; | |
28136 | } | |
28137 | ||
28138 | ||
28139 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28140 | PyObject *resultobj; | |
28141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28142 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 28143 | bool arg3 = (bool) True ; |
d14a1e28 RD |
28144 | PyObject * obj0 = 0 ; |
28145 | PyObject * obj1 = 0 ; | |
28146 | PyObject * obj2 = 0 ; | |
28147 | char *kwnames[] = { | |
28148 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28149 | }; | |
28150 | ||
28151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28154 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 28156 | if (obj2) { |
15afbcd0 RD |
28157 | arg3 = (bool) SWIG_AsBool(obj2); |
28158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28159 | } |
28160 | { | |
28161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28162 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28163 | ||
28164 | wxPyEndAllowThreads(__tstate); | |
28165 | if (PyErr_Occurred()) SWIG_fail; | |
28166 | } | |
28167 | Py_INCREF(Py_None); resultobj = Py_None; | |
28168 | return resultobj; | |
28169 | fail: | |
28170 | return NULL; | |
28171 | } | |
28172 | ||
28173 | ||
28174 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28175 | PyObject *resultobj; | |
28176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28177 | wxSizer *result; | |
28178 | PyObject * obj0 = 0 ; | |
28179 | char *kwnames[] = { | |
28180 | (char *) "self", NULL | |
28181 | }; | |
28182 | ||
28183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28186 | { |
28187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28188 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28189 | ||
28190 | wxPyEndAllowThreads(__tstate); | |
28191 | if (PyErr_Occurred()) SWIG_fail; | |
28192 | } | |
28193 | { | |
412d302d | 28194 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
28195 | } |
28196 | return resultobj; | |
28197 | fail: | |
28198 | return NULL; | |
28199 | } | |
28200 | ||
28201 | ||
28202 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28203 | PyObject *resultobj; | |
28204 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28205 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28206 | PyObject * obj0 = 0 ; | |
28207 | PyObject * obj1 = 0 ; | |
28208 | char *kwnames[] = { | |
28209 | (char *) "self",(char *) "sizer", NULL | |
28210 | }; | |
28211 | ||
28212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28215 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28217 | { |
28218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28219 | (arg1)->SetContainingSizer(arg2); | |
28220 | ||
28221 | wxPyEndAllowThreads(__tstate); | |
28222 | if (PyErr_Occurred()) SWIG_fail; | |
28223 | } | |
28224 | Py_INCREF(Py_None); resultobj = Py_None; | |
28225 | return resultobj; | |
28226 | fail: | |
28227 | return NULL; | |
28228 | } | |
28229 | ||
28230 | ||
28231 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28232 | PyObject *resultobj; | |
28233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28234 | wxSizer *result; | |
28235 | PyObject * obj0 = 0 ; | |
28236 | char *kwnames[] = { | |
28237 | (char *) "self", NULL | |
28238 | }; | |
28239 | ||
28240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28243 | { |
28244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28245 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28246 | ||
28247 | wxPyEndAllowThreads(__tstate); | |
28248 | if (PyErr_Occurred()) SWIG_fail; | |
28249 | } | |
28250 | { | |
412d302d | 28251 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
28252 | } |
28253 | return resultobj; | |
28254 | fail: | |
28255 | return NULL; | |
28256 | } | |
28257 | ||
28258 | ||
a95a7133 RD |
28259 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
28260 | PyObject *resultobj; | |
28261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28262 | PyObject * obj0 = 0 ; | |
28263 | char *kwnames[] = { | |
28264 | (char *) "self", NULL | |
28265 | }; | |
28266 | ||
28267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28270 | { | |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | (arg1)->InheritAttributes(); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
28277 | Py_INCREF(Py_None); resultobj = Py_None; | |
28278 | return resultobj; | |
28279 | fail: | |
28280 | return NULL; | |
28281 | } | |
28282 | ||
28283 | ||
28284 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28285 | PyObject *resultobj; | |
28286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28287 | bool result; | |
28288 | PyObject * obj0 = 0 ; | |
28289 | char *kwnames[] = { | |
28290 | (char *) "self", NULL | |
28291 | }; | |
28292 | ||
28293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28296 | { | |
28297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28298 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28299 | ||
28300 | wxPyEndAllowThreads(__tstate); | |
28301 | if (PyErr_Occurred()) SWIG_fail; | |
28302 | } | |
28303 | { | |
28304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28305 | } | |
28306 | return resultobj; | |
28307 | fail: | |
28308 | return NULL; | |
28309 | } | |
28310 | ||
28311 | ||
d14a1e28 RD |
28312 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { |
28313 | PyObject *obj; | |
28314 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28315 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28316 | Py_INCREF(obj); | |
28317 | return Py_BuildValue((char *)""); | |
28318 | } | |
28319 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28320 | PyObject *resultobj; | |
28321 | long arg1 ; | |
28322 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28323 | wxWindow *result; | |
994141e6 | 28324 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28325 | PyObject * obj1 = 0 ; |
28326 | char *kwnames[] = { | |
28327 | (char *) "id",(char *) "parent", NULL | |
28328 | }; | |
28329 | ||
994141e6 | 28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28331 | arg1 = (long) SWIG_AsLong(obj0); |
28332 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 28333 | if (obj1) { |
15afbcd0 RD |
28334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28336 | } |
28337 | { | |
e3b71cb8 | 28338 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28340 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28341 | ||
28342 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28343 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28344 | } |
28345 | { | |
412d302d | 28346 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28347 | } |
28348 | return resultobj; | |
28349 | fail: | |
28350 | return NULL; | |
28351 | } | |
28352 | ||
28353 | ||
28354 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28355 | PyObject *resultobj; | |
28356 | wxString *arg1 = 0 ; | |
28357 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28358 | wxWindow *result; | |
e811c8ce | 28359 | bool temp1 = False ; |
d14a1e28 RD |
28360 | PyObject * obj0 = 0 ; |
28361 | PyObject * obj1 = 0 ; | |
28362 | char *kwnames[] = { | |
28363 | (char *) "name",(char *) "parent", NULL | |
28364 | }; | |
28365 | ||
28366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28367 | { | |
28368 | arg1 = wxString_in_helper(obj0); | |
28369 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28370 | temp1 = True; |
d14a1e28 RD |
28371 | } |
28372 | if (obj1) { | |
15afbcd0 RD |
28373 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28375 | } |
28376 | { | |
e3b71cb8 | 28377 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28379 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28380 | ||
28381 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28382 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28383 | } |
28384 | { | |
412d302d | 28385 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28386 | } |
28387 | { | |
28388 | if (temp1) | |
28389 | delete arg1; | |
28390 | } | |
28391 | return resultobj; | |
28392 | fail: | |
28393 | { | |
28394 | if (temp1) | |
28395 | delete arg1; | |
28396 | } | |
28397 | return NULL; | |
28398 | } | |
28399 | ||
28400 | ||
28401 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28402 | PyObject *resultobj; | |
28403 | wxString *arg1 = 0 ; | |
28404 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28405 | wxWindow *result; | |
e811c8ce | 28406 | bool temp1 = False ; |
d14a1e28 RD |
28407 | PyObject * obj0 = 0 ; |
28408 | PyObject * obj1 = 0 ; | |
28409 | char *kwnames[] = { | |
28410 | (char *) "label",(char *) "parent", NULL | |
28411 | }; | |
28412 | ||
28413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28414 | { | |
28415 | arg1 = wxString_in_helper(obj0); | |
28416 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28417 | temp1 = True; |
d14a1e28 RD |
28418 | } |
28419 | if (obj1) { | |
15afbcd0 RD |
28420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28422 | } |
28423 | { | |
e3b71cb8 | 28424 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28426 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28427 | ||
28428 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28429 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28430 | } |
28431 | { | |
412d302d | 28432 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28433 | } |
28434 | { | |
28435 | if (temp1) | |
28436 | delete arg1; | |
28437 | } | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | { | |
28441 | if (temp1) | |
28442 | delete arg1; | |
28443 | } | |
28444 | return NULL; | |
28445 | } | |
28446 | ||
28447 | ||
28448 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28449 | PyObject *resultobj; | |
4276dc52 RD |
28450 | wxWindow *arg1 = (wxWindow *) 0 ; |
28451 | unsigned long arg2 ; | |
d14a1e28 RD |
28452 | wxWindow *result; |
28453 | PyObject * obj0 = 0 ; | |
4276dc52 | 28454 | PyObject * obj1 = 0 ; |
d14a1e28 | 28455 | char *kwnames[] = { |
4276dc52 | 28456 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
28457 | }; |
28458 | ||
4276dc52 RD |
28459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
28460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28462 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
15afbcd0 | 28463 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28464 | { |
28465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 28466 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
28467 | |
28468 | wxPyEndAllowThreads(__tstate); | |
28469 | if (PyErr_Occurred()) SWIG_fail; | |
28470 | } | |
28471 | { | |
412d302d | 28472 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28473 | } |
28474 | return resultobj; | |
28475 | fail: | |
28476 | return NULL; | |
28477 | } | |
28478 | ||
28479 | ||
28480 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28481 | PyObject *resultobj; | |
28482 | wxValidator *result; | |
28483 | char *kwnames[] = { | |
28484 | NULL | |
28485 | }; | |
28486 | ||
28487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28488 | { | |
28489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28490 | result = (wxValidator *)new wxValidator(); | |
28491 | ||
28492 | wxPyEndAllowThreads(__tstate); | |
28493 | if (PyErr_Occurred()) SWIG_fail; | |
28494 | } | |
b0f7404b | 28495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d14a1e28 RD |
28496 | return resultobj; |
28497 | fail: | |
28498 | return NULL; | |
28499 | } | |
28500 | ||
28501 | ||
28502 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28503 | PyObject *resultobj; | |
28504 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28505 | wxValidator *result; | |
28506 | PyObject * obj0 = 0 ; | |
28507 | char *kwnames[] = { | |
28508 | (char *) "self", NULL | |
28509 | }; | |
28510 | ||
28511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28514 | { |
28515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28516 | result = (wxValidator *)(arg1)->Clone(); | |
28517 | ||
28518 | wxPyEndAllowThreads(__tstate); | |
28519 | if (PyErr_Occurred()) SWIG_fail; | |
28520 | } | |
28521 | { | |
412d302d | 28522 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28523 | } |
28524 | return resultobj; | |
28525 | fail: | |
28526 | return NULL; | |
28527 | } | |
28528 | ||
28529 | ||
28530 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28531 | PyObject *resultobj; | |
28532 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28533 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28534 | bool result; | |
28535 | PyObject * obj0 = 0 ; | |
28536 | PyObject * obj1 = 0 ; | |
28537 | char *kwnames[] = { | |
28538 | (char *) "self",(char *) "parent", NULL | |
28539 | }; | |
28540 | ||
28541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28546 | { |
28547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28548 | result = (bool)(arg1)->Validate(arg2); | |
28549 | ||
28550 | wxPyEndAllowThreads(__tstate); | |
28551 | if (PyErr_Occurred()) SWIG_fail; | |
28552 | } | |
4f89f6a3 RD |
28553 | { |
28554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28555 | } | |
d14a1e28 RD |
28556 | return resultobj; |
28557 | fail: | |
28558 | return NULL; | |
28559 | } | |
28560 | ||
28561 | ||
28562 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28563 | PyObject *resultobj; | |
28564 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28565 | bool result; | |
28566 | PyObject * obj0 = 0 ; | |
28567 | char *kwnames[] = { | |
28568 | (char *) "self", NULL | |
28569 | }; | |
28570 | ||
28571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28574 | { |
28575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28576 | result = (bool)(arg1)->TransferToWindow(); | |
28577 | ||
28578 | wxPyEndAllowThreads(__tstate); | |
28579 | if (PyErr_Occurred()) SWIG_fail; | |
28580 | } | |
4f89f6a3 RD |
28581 | { |
28582 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28583 | } | |
d14a1e28 RD |
28584 | return resultobj; |
28585 | fail: | |
28586 | return NULL; | |
28587 | } | |
28588 | ||
28589 | ||
28590 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28591 | PyObject *resultobj; | |
28592 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28593 | bool result; | |
28594 | PyObject * obj0 = 0 ; | |
28595 | char *kwnames[] = { | |
28596 | (char *) "self", NULL | |
28597 | }; | |
28598 | ||
28599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28602 | { |
28603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28604 | result = (bool)(arg1)->TransferFromWindow(); | |
28605 | ||
28606 | wxPyEndAllowThreads(__tstate); | |
28607 | if (PyErr_Occurred()) SWIG_fail; | |
28608 | } | |
4f89f6a3 RD |
28609 | { |
28610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28611 | } | |
d14a1e28 RD |
28612 | return resultobj; |
28613 | fail: | |
28614 | return NULL; | |
28615 | } | |
28616 | ||
28617 | ||
28618 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28619 | PyObject *resultobj; | |
28620 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28621 | wxWindow *result; | |
28622 | PyObject * obj0 = 0 ; | |
28623 | char *kwnames[] = { | |
28624 | (char *) "self", NULL | |
28625 | }; | |
28626 | ||
28627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28630 | { |
28631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28632 | result = (wxWindow *)(arg1)->GetWindow(); | |
28633 | ||
28634 | wxPyEndAllowThreads(__tstate); | |
28635 | if (PyErr_Occurred()) SWIG_fail; | |
28636 | } | |
28637 | { | |
412d302d | 28638 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28639 | } |
28640 | return resultobj; | |
28641 | fail: | |
28642 | return NULL; | |
28643 | } | |
28644 | ||
28645 | ||
28646 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28647 | PyObject *resultobj; | |
28648 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28650 | PyObject * obj0 = 0 ; | |
28651 | PyObject * obj1 = 0 ; | |
28652 | char *kwnames[] = { | |
28653 | (char *) "self",(char *) "window", NULL | |
28654 | }; | |
28655 | ||
28656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28659 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28661 | { |
28662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28663 | (arg1)->SetWindow(arg2); | |
28664 | ||
28665 | wxPyEndAllowThreads(__tstate); | |
28666 | if (PyErr_Occurred()) SWIG_fail; | |
28667 | } | |
28668 | Py_INCREF(Py_None); resultobj = Py_None; | |
28669 | return resultobj; | |
28670 | fail: | |
28671 | return NULL; | |
28672 | } | |
28673 | ||
28674 | ||
28675 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28676 | PyObject *resultobj; | |
28677 | bool result; | |
28678 | char *kwnames[] = { | |
28679 | NULL | |
28680 | }; | |
28681 | ||
28682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28683 | { | |
28684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28685 | result = (bool)wxValidator::IsSilent(); | |
28686 | ||
28687 | wxPyEndAllowThreads(__tstate); | |
28688 | if (PyErr_Occurred()) SWIG_fail; | |
28689 | } | |
4f89f6a3 RD |
28690 | { |
28691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28692 | } | |
d14a1e28 RD |
28693 | return resultobj; |
28694 | fail: | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
28699 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28700 | PyObject *resultobj; | |
e811c8ce | 28701 | int arg1 = (int) True ; |
994141e6 | 28702 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28703 | char *kwnames[] = { |
28704 | (char *) "doIt", NULL | |
28705 | }; | |
28706 | ||
994141e6 RD |
28707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
28708 | if (obj0) { | |
15afbcd0 RD |
28709 | arg1 = (int) SWIG_AsInt(obj0); |
28710 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28711 | } |
d14a1e28 RD |
28712 | { |
28713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28714 | wxValidator::SetBellOnError(arg1); | |
28715 | ||
28716 | wxPyEndAllowThreads(__tstate); | |
28717 | if (PyErr_Occurred()) SWIG_fail; | |
28718 | } | |
28719 | Py_INCREF(Py_None); resultobj = Py_None; | |
28720 | return resultobj; | |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
28726 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28727 | PyObject *obj; | |
28728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28729 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28730 | Py_INCREF(obj); | |
28731 | return Py_BuildValue((char *)""); | |
28732 | } | |
28733 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28734 | PyObject *resultobj; | |
28735 | wxPyValidator *result; | |
28736 | char *kwnames[] = { | |
28737 | NULL | |
28738 | }; | |
28739 | ||
28740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28741 | { | |
28742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28743 | result = (wxPyValidator *)new wxPyValidator(); | |
28744 | ||
28745 | wxPyEndAllowThreads(__tstate); | |
28746 | if (PyErr_Occurred()) SWIG_fail; | |
28747 | } | |
15afbcd0 | 28748 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
28749 | return resultobj; |
28750 | fail: | |
28751 | return NULL; | |
28752 | } | |
28753 | ||
28754 | ||
28755 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28756 | PyObject *resultobj; | |
28757 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28758 | PyObject *arg2 = (PyObject *) 0 ; | |
28759 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 28760 | int arg4 = (int) True ; |
d14a1e28 RD |
28761 | PyObject * obj0 = 0 ; |
28762 | PyObject * obj1 = 0 ; | |
28763 | PyObject * obj2 = 0 ; | |
994141e6 | 28764 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
28765 | char *kwnames[] = { |
28766 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28767 | }; | |
28768 | ||
994141e6 | 28769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
28771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28772 | arg2 = obj1; |
28773 | arg3 = obj2; | |
994141e6 | 28774 | if (obj3) { |
15afbcd0 RD |
28775 | arg4 = (int) SWIG_AsInt(obj3); |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28777 | } |
d14a1e28 RD |
28778 | { |
28779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28780 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28781 | ||
28782 | wxPyEndAllowThreads(__tstate); | |
28783 | if (PyErr_Occurred()) SWIG_fail; | |
28784 | } | |
28785 | Py_INCREF(Py_None); resultobj = Py_None; | |
28786 | return resultobj; | |
28787 | fail: | |
28788 | return NULL; | |
28789 | } | |
28790 | ||
28791 | ||
28792 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28793 | PyObject *obj; | |
28794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28795 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28796 | Py_INCREF(obj); | |
28797 | return Py_BuildValue((char *)""); | |
28798 | } | |
28799 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28800 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28801 | return 1; | |
28802 | } | |
28803 | ||
28804 | ||
28805 | static PyObject *_wrap_DefaultValidator_get() { | |
28806 | PyObject *pyobj; | |
28807 | ||
15afbcd0 | 28808 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
28809 | return pyobj; |
28810 | } | |
28811 | ||
28812 | ||
28813 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28814 | PyObject *resultobj; | |
28815 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28816 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28817 | long arg2 = (long) 0 ; | |
28818 | wxMenu *result; | |
e811c8ce | 28819 | bool temp1 = False ; |
d14a1e28 | 28820 | PyObject * obj0 = 0 ; |
994141e6 | 28821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28822 | char *kwnames[] = { |
28823 | (char *) "title",(char *) "style", NULL | |
28824 | }; | |
28825 | ||
994141e6 | 28826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
28827 | if (obj0) { |
28828 | { | |
28829 | arg1 = wxString_in_helper(obj0); | |
28830 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28831 | temp1 = True; |
d14a1e28 RD |
28832 | } |
28833 | } | |
994141e6 | 28834 | if (obj1) { |
15afbcd0 RD |
28835 | arg2 = (long) SWIG_AsLong(obj1); |
28836 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28837 | } |
d14a1e28 | 28838 | { |
e3b71cb8 | 28839 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28841 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28842 | ||
28843 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28844 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28845 | } |
b0f7404b | 28846 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d14a1e28 RD |
28847 | { |
28848 | if (temp1) | |
28849 | delete arg1; | |
28850 | } | |
28851 | return resultobj; | |
28852 | fail: | |
28853 | { | |
28854 | if (temp1) | |
28855 | delete arg1; | |
28856 | } | |
28857 | return NULL; | |
28858 | } | |
28859 | ||
28860 | ||
28861 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28862 | PyObject *resultobj; | |
28863 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28864 | int arg2 ; | |
28865 | wxString *arg3 = 0 ; | |
28866 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28867 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28868 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28869 | wxMenuItem *result; |
e811c8ce RD |
28870 | bool temp3 = False ; |
28871 | bool temp4 = False ; | |
d14a1e28 | 28872 | PyObject * obj0 = 0 ; |
994141e6 | 28873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28874 | PyObject * obj2 = 0 ; |
28875 | PyObject * obj3 = 0 ; | |
994141e6 | 28876 | PyObject * obj4 = 0 ; |
d14a1e28 | 28877 | char *kwnames[] = { |
242b7b46 | 28878 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28879 | }; |
28880 | ||
994141e6 | 28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28884 | arg2 = (int) SWIG_AsInt(obj1); | |
28885 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28886 | { |
28887 | arg3 = wxString_in_helper(obj2); | |
28888 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28889 | temp3 = True; |
d14a1e28 RD |
28890 | } |
28891 | if (obj3) { | |
28892 | { | |
28893 | arg4 = wxString_in_helper(obj3); | |
28894 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28895 | temp4 = True; |
d14a1e28 RD |
28896 | } |
28897 | } | |
994141e6 | 28898 | if (obj4) { |
15afbcd0 RD |
28899 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28900 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28901 | } |
d14a1e28 RD |
28902 | { |
28903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28904 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28905 | |
28906 | wxPyEndAllowThreads(__tstate); | |
28907 | if (PyErr_Occurred()) SWIG_fail; | |
28908 | } | |
a41e16b6 | 28909 | { |
412d302d | 28910 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 28911 | } |
d14a1e28 RD |
28912 | { |
28913 | if (temp3) | |
28914 | delete arg3; | |
28915 | } | |
28916 | { | |
28917 | if (temp4) | |
28918 | delete arg4; | |
28919 | } | |
28920 | return resultobj; | |
28921 | fail: | |
28922 | { | |
28923 | if (temp3) | |
28924 | delete arg3; | |
28925 | } | |
28926 | { | |
28927 | if (temp4) | |
28928 | delete arg4; | |
28929 | } | |
28930 | return NULL; | |
28931 | } | |
28932 | ||
28933 | ||
28934 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28935 | PyObject *resultobj; | |
28936 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 28937 | wxMenuItem *result; |
d14a1e28 RD |
28938 | PyObject * obj0 = 0 ; |
28939 | char *kwnames[] = { | |
28940 | (char *) "self", NULL | |
28941 | }; | |
28942 | ||
28943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28946 | { |
28947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28948 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
28949 | |
28950 | wxPyEndAllowThreads(__tstate); | |
28951 | if (PyErr_Occurred()) SWIG_fail; | |
28952 | } | |
a41e16b6 | 28953 | { |
412d302d | 28954 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 28955 | } |
d14a1e28 RD |
28956 | return resultobj; |
28957 | fail: | |
28958 | return NULL; | |
28959 | } | |
28960 | ||
28961 | ||
28962 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28963 | PyObject *resultobj; | |
28964 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28965 | int arg2 ; | |
28966 | wxString *arg3 = 0 ; | |
28967 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28968 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28969 | wxMenuItem *result; |
e811c8ce RD |
28970 | bool temp3 = False ; |
28971 | bool temp4 = False ; | |
d14a1e28 | 28972 | PyObject * obj0 = 0 ; |
994141e6 | 28973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28974 | PyObject * obj2 = 0 ; |
28975 | PyObject * obj3 = 0 ; | |
28976 | char *kwnames[] = { | |
242b7b46 | 28977 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28978 | }; |
28979 | ||
994141e6 | 28980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28983 | arg2 = (int) SWIG_AsInt(obj1); | |
28984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28985 | { |
28986 | arg3 = wxString_in_helper(obj2); | |
28987 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28988 | temp3 = True; |
d14a1e28 RD |
28989 | } |
28990 | if (obj3) { | |
28991 | { | |
28992 | arg4 = wxString_in_helper(obj3); | |
28993 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28994 | temp4 = True; |
d14a1e28 RD |
28995 | } |
28996 | } | |
28997 | { | |
28998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28999 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29000 | |
29001 | wxPyEndAllowThreads(__tstate); | |
29002 | if (PyErr_Occurred()) SWIG_fail; | |
29003 | } | |
a41e16b6 | 29004 | { |
412d302d | 29005 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29006 | } |
d14a1e28 RD |
29007 | { |
29008 | if (temp3) | |
29009 | delete arg3; | |
29010 | } | |
29011 | { | |
29012 | if (temp4) | |
29013 | delete arg4; | |
29014 | } | |
29015 | return resultobj; | |
29016 | fail: | |
29017 | { | |
29018 | if (temp3) | |
29019 | delete arg3; | |
29020 | } | |
29021 | { | |
29022 | if (temp4) | |
29023 | delete arg4; | |
29024 | } | |
29025 | return NULL; | |
29026 | } | |
29027 | ||
29028 | ||
29029 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29030 | PyObject *resultobj; | |
29031 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29032 | int arg2 ; | |
29033 | wxString *arg3 = 0 ; | |
29034 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29035 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29036 | wxMenuItem *result; |
e811c8ce RD |
29037 | bool temp3 = False ; |
29038 | bool temp4 = False ; | |
d14a1e28 | 29039 | PyObject * obj0 = 0 ; |
994141e6 | 29040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29041 | PyObject * obj2 = 0 ; |
29042 | PyObject * obj3 = 0 ; | |
29043 | char *kwnames[] = { | |
242b7b46 | 29044 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29045 | }; |
29046 | ||
994141e6 | 29047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29050 | arg2 = (int) SWIG_AsInt(obj1); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29052 | { |
29053 | arg3 = wxString_in_helper(obj2); | |
29054 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29055 | temp3 = True; |
d14a1e28 RD |
29056 | } |
29057 | if (obj3) { | |
29058 | { | |
29059 | arg4 = wxString_in_helper(obj3); | |
29060 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29061 | temp4 = True; |
d14a1e28 RD |
29062 | } |
29063 | } | |
29064 | { | |
29065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29066 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29067 | |
29068 | wxPyEndAllowThreads(__tstate); | |
29069 | if (PyErr_Occurred()) SWIG_fail; | |
29070 | } | |
a41e16b6 | 29071 | { |
412d302d | 29072 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29073 | } |
d14a1e28 RD |
29074 | { |
29075 | if (temp3) | |
29076 | delete arg3; | |
29077 | } | |
29078 | { | |
29079 | if (temp4) | |
29080 | delete arg4; | |
29081 | } | |
29082 | return resultobj; | |
29083 | fail: | |
29084 | { | |
29085 | if (temp3) | |
29086 | delete arg3; | |
29087 | } | |
29088 | { | |
29089 | if (temp4) | |
29090 | delete arg4; | |
29091 | } | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
29096 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29097 | PyObject *resultobj; | |
29098 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29099 | int arg2 ; | |
29100 | wxString *arg3 = 0 ; | |
29101 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29102 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29103 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29104 | wxMenuItem *result; |
e811c8ce RD |
29105 | bool temp3 = False ; |
29106 | bool temp5 = False ; | |
d14a1e28 | 29107 | PyObject * obj0 = 0 ; |
994141e6 | 29108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29109 | PyObject * obj2 = 0 ; |
29110 | PyObject * obj3 = 0 ; | |
29111 | PyObject * obj4 = 0 ; | |
29112 | char *kwnames[] = { | |
242b7b46 | 29113 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29114 | }; |
29115 | ||
994141e6 | 29116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29119 | arg2 = (int) SWIG_AsInt(obj1); | |
29120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29121 | { |
29122 | arg3 = wxString_in_helper(obj2); | |
29123 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29124 | temp3 = True; |
d14a1e28 | 29125 | } |
15afbcd0 RD |
29126 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29128 | if (obj4) { |
29129 | { | |
29130 | arg5 = wxString_in_helper(obj4); | |
29131 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29132 | temp5 = True; |
d14a1e28 RD |
29133 | } |
29134 | } | |
29135 | { | |
29136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29137 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29138 | |
29139 | wxPyEndAllowThreads(__tstate); | |
29140 | if (PyErr_Occurred()) SWIG_fail; | |
29141 | } | |
a41e16b6 | 29142 | { |
412d302d | 29143 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29144 | } |
d14a1e28 RD |
29145 | { |
29146 | if (temp3) | |
29147 | delete arg3; | |
29148 | } | |
29149 | { | |
29150 | if (temp5) | |
29151 | delete arg5; | |
29152 | } | |
29153 | return resultobj; | |
29154 | fail: | |
29155 | { | |
29156 | if (temp3) | |
29157 | delete arg3; | |
29158 | } | |
29159 | { | |
29160 | if (temp5) | |
29161 | delete arg5; | |
29162 | } | |
29163 | return NULL; | |
29164 | } | |
29165 | ||
29166 | ||
29167 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29168 | PyObject *resultobj; | |
29169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29170 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29171 | wxMenuItem *result; |
d14a1e28 RD |
29172 | PyObject * obj0 = 0 ; |
29173 | PyObject * obj1 = 0 ; | |
29174 | char *kwnames[] = { | |
29175 | (char *) "self",(char *) "item", NULL | |
29176 | }; | |
29177 | ||
29178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29181 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29183 | { |
29184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29185 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
29186 | |
29187 | wxPyEndAllowThreads(__tstate); | |
29188 | if (PyErr_Occurred()) SWIG_fail; | |
29189 | } | |
a41e16b6 | 29190 | { |
412d302d | 29191 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29192 | } |
d14a1e28 RD |
29193 | return resultobj; |
29194 | fail: | |
29195 | return NULL; | |
29196 | } | |
29197 | ||
29198 | ||
29199 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29200 | PyObject *resultobj; | |
29201 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29202 | PyObject * obj0 = 0 ; | |
29203 | char *kwnames[] = { | |
29204 | (char *) "self", NULL | |
29205 | }; | |
29206 | ||
29207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29210 | { |
29211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29212 | (arg1)->Break(); | |
29213 | ||
29214 | wxPyEndAllowThreads(__tstate); | |
29215 | if (PyErr_Occurred()) SWIG_fail; | |
29216 | } | |
29217 | Py_INCREF(Py_None); resultobj = Py_None; | |
29218 | return resultobj; | |
29219 | fail: | |
29220 | return NULL; | |
29221 | } | |
29222 | ||
29223 | ||
29224 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29225 | PyObject *resultobj; | |
29226 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29227 | size_t arg2 ; | |
29228 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29229 | wxMenuItem *result; |
d14a1e28 RD |
29230 | PyObject * obj0 = 0 ; |
29231 | PyObject * obj1 = 0 ; | |
29232 | PyObject * obj2 = 0 ; | |
29233 | char *kwnames[] = { | |
29234 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29235 | }; | |
29236 | ||
29237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29240 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29241 | if (PyErr_Occurred()) SWIG_fail; | |
29242 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29244 | { |
29245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29246 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
29247 | |
29248 | wxPyEndAllowThreads(__tstate); | |
29249 | if (PyErr_Occurred()) SWIG_fail; | |
29250 | } | |
a41e16b6 | 29251 | { |
412d302d | 29252 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29253 | } |
d14a1e28 RD |
29254 | return resultobj; |
29255 | fail: | |
29256 | return NULL; | |
29257 | } | |
29258 | ||
29259 | ||
29260 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29261 | PyObject *resultobj; | |
29262 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29263 | size_t arg2 ; | |
29264 | int arg3 ; | |
29265 | wxString *arg4 = 0 ; | |
29266 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29267 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29268 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29269 | wxMenuItem *result; |
e811c8ce RD |
29270 | bool temp4 = False ; |
29271 | bool temp5 = False ; | |
d14a1e28 RD |
29272 | PyObject * obj0 = 0 ; |
29273 | PyObject * obj1 = 0 ; | |
994141e6 | 29274 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29275 | PyObject * obj3 = 0 ; |
29276 | PyObject * obj4 = 0 ; | |
994141e6 | 29277 | PyObject * obj5 = 0 ; |
d14a1e28 | 29278 | char *kwnames[] = { |
242b7b46 | 29279 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29280 | }; |
29281 | ||
994141e6 | 29282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29285 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | arg3 = (int) SWIG_AsInt(obj2); | |
29288 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29289 | { |
29290 | arg4 = wxString_in_helper(obj3); | |
29291 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29292 | temp4 = True; |
d14a1e28 RD |
29293 | } |
29294 | if (obj4) { | |
29295 | { | |
29296 | arg5 = wxString_in_helper(obj4); | |
29297 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29298 | temp5 = True; |
d14a1e28 RD |
29299 | } |
29300 | } | |
994141e6 | 29301 | if (obj5) { |
15afbcd0 RD |
29302 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
29303 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29304 | } |
d14a1e28 RD |
29305 | { |
29306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29307 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
29308 | |
29309 | wxPyEndAllowThreads(__tstate); | |
29310 | if (PyErr_Occurred()) SWIG_fail; | |
29311 | } | |
a41e16b6 | 29312 | { |
412d302d | 29313 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29314 | } |
d14a1e28 RD |
29315 | { |
29316 | if (temp4) | |
29317 | delete arg4; | |
29318 | } | |
29319 | { | |
29320 | if (temp5) | |
29321 | delete arg5; | |
29322 | } | |
29323 | return resultobj; | |
29324 | fail: | |
29325 | { | |
29326 | if (temp4) | |
29327 | delete arg4; | |
29328 | } | |
29329 | { | |
29330 | if (temp5) | |
29331 | delete arg5; | |
29332 | } | |
29333 | return NULL; | |
29334 | } | |
29335 | ||
29336 | ||
29337 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29338 | PyObject *resultobj; | |
29339 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29340 | size_t arg2 ; | |
a41e16b6 | 29341 | wxMenuItem *result; |
d14a1e28 RD |
29342 | PyObject * obj0 = 0 ; |
29343 | PyObject * obj1 = 0 ; | |
29344 | char *kwnames[] = { | |
29345 | (char *) "self",(char *) "pos", NULL | |
29346 | }; | |
29347 | ||
29348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29351 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29353 | { |
29354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29355 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
29356 | |
29357 | wxPyEndAllowThreads(__tstate); | |
29358 | if (PyErr_Occurred()) SWIG_fail; | |
29359 | } | |
a41e16b6 | 29360 | { |
412d302d | 29361 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29362 | } |
d14a1e28 RD |
29363 | return resultobj; |
29364 | fail: | |
29365 | return NULL; | |
29366 | } | |
29367 | ||
29368 | ||
29369 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29370 | PyObject *resultobj; | |
29371 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29372 | size_t arg2 ; | |
29373 | int arg3 ; | |
29374 | wxString *arg4 = 0 ; | |
29375 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29376 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29377 | wxMenuItem *result; |
e811c8ce RD |
29378 | bool temp4 = False ; |
29379 | bool temp5 = False ; | |
d14a1e28 RD |
29380 | PyObject * obj0 = 0 ; |
29381 | PyObject * obj1 = 0 ; | |
994141e6 | 29382 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29383 | PyObject * obj3 = 0 ; |
29384 | PyObject * obj4 = 0 ; | |
29385 | char *kwnames[] = { | |
242b7b46 | 29386 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29387 | }; |
29388 | ||
994141e6 | 29389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29392 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29393 | if (PyErr_Occurred()) SWIG_fail; | |
29394 | arg3 = (int) SWIG_AsInt(obj2); | |
29395 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29396 | { |
29397 | arg4 = wxString_in_helper(obj3); | |
29398 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29399 | temp4 = True; |
d14a1e28 RD |
29400 | } |
29401 | if (obj4) { | |
29402 | { | |
29403 | arg5 = wxString_in_helper(obj4); | |
29404 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29405 | temp5 = True; |
d14a1e28 RD |
29406 | } |
29407 | } | |
29408 | { | |
29409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29410 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29411 | |
29412 | wxPyEndAllowThreads(__tstate); | |
29413 | if (PyErr_Occurred()) SWIG_fail; | |
29414 | } | |
a41e16b6 | 29415 | { |
412d302d | 29416 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29417 | } |
d14a1e28 RD |
29418 | { |
29419 | if (temp4) | |
29420 | delete arg4; | |
29421 | } | |
29422 | { | |
29423 | if (temp5) | |
29424 | delete arg5; | |
29425 | } | |
29426 | return resultobj; | |
29427 | fail: | |
29428 | { | |
29429 | if (temp4) | |
29430 | delete arg4; | |
29431 | } | |
29432 | { | |
29433 | if (temp5) | |
29434 | delete arg5; | |
29435 | } | |
29436 | return NULL; | |
29437 | } | |
29438 | ||
29439 | ||
29440 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29441 | PyObject *resultobj; | |
29442 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29443 | size_t arg2 ; | |
29444 | int arg3 ; | |
29445 | wxString *arg4 = 0 ; | |
29446 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29447 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29448 | wxMenuItem *result; |
e811c8ce RD |
29449 | bool temp4 = False ; |
29450 | bool temp5 = False ; | |
d14a1e28 RD |
29451 | PyObject * obj0 = 0 ; |
29452 | PyObject * obj1 = 0 ; | |
994141e6 | 29453 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29454 | PyObject * obj3 = 0 ; |
29455 | PyObject * obj4 = 0 ; | |
29456 | char *kwnames[] = { | |
242b7b46 | 29457 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29458 | }; |
29459 | ||
994141e6 | 29460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29463 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29464 | if (PyErr_Occurred()) SWIG_fail; | |
29465 | arg3 = (int) SWIG_AsInt(obj2); | |
29466 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29467 | { |
29468 | arg4 = wxString_in_helper(obj3); | |
29469 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29470 | temp4 = True; |
d14a1e28 RD |
29471 | } |
29472 | if (obj4) { | |
29473 | { | |
29474 | arg5 = wxString_in_helper(obj4); | |
29475 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29476 | temp5 = True; |
d14a1e28 RD |
29477 | } |
29478 | } | |
29479 | { | |
29480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29481 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29482 | |
29483 | wxPyEndAllowThreads(__tstate); | |
29484 | if (PyErr_Occurred()) SWIG_fail; | |
29485 | } | |
a41e16b6 | 29486 | { |
412d302d | 29487 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29488 | } |
d14a1e28 RD |
29489 | { |
29490 | if (temp4) | |
29491 | delete arg4; | |
29492 | } | |
29493 | { | |
29494 | if (temp5) | |
29495 | delete arg5; | |
29496 | } | |
29497 | return resultobj; | |
29498 | fail: | |
29499 | { | |
29500 | if (temp4) | |
29501 | delete arg4; | |
29502 | } | |
29503 | { | |
29504 | if (temp5) | |
29505 | delete arg5; | |
29506 | } | |
29507 | return NULL; | |
29508 | } | |
29509 | ||
29510 | ||
29511 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29512 | PyObject *resultobj; | |
29513 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29514 | size_t arg2 ; | |
29515 | int arg3 ; | |
29516 | wxString *arg4 = 0 ; | |
29517 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29518 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29519 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 29520 | wxMenuItem *result; |
e811c8ce RD |
29521 | bool temp4 = False ; |
29522 | bool temp6 = False ; | |
d14a1e28 RD |
29523 | PyObject * obj0 = 0 ; |
29524 | PyObject * obj1 = 0 ; | |
994141e6 | 29525 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29526 | PyObject * obj3 = 0 ; |
29527 | PyObject * obj4 = 0 ; | |
29528 | PyObject * obj5 = 0 ; | |
29529 | char *kwnames[] = { | |
242b7b46 | 29530 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29531 | }; |
29532 | ||
994141e6 | 29533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29536 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29537 | if (PyErr_Occurred()) SWIG_fail; | |
29538 | arg3 = (int) SWIG_AsInt(obj2); | |
29539 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29540 | { |
29541 | arg4 = wxString_in_helper(obj3); | |
29542 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29543 | temp4 = True; |
d14a1e28 | 29544 | } |
15afbcd0 RD |
29545 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
29546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29547 | if (obj5) { |
29548 | { | |
29549 | arg6 = wxString_in_helper(obj5); | |
29550 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 29551 | temp6 = True; |
d14a1e28 RD |
29552 | } |
29553 | } | |
29554 | { | |
29555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29556 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
29557 | |
29558 | wxPyEndAllowThreads(__tstate); | |
29559 | if (PyErr_Occurred()) SWIG_fail; | |
29560 | } | |
a41e16b6 | 29561 | { |
412d302d | 29562 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29563 | } |
d14a1e28 RD |
29564 | { |
29565 | if (temp4) | |
29566 | delete arg4; | |
29567 | } | |
29568 | { | |
29569 | if (temp6) | |
29570 | delete arg6; | |
29571 | } | |
29572 | return resultobj; | |
29573 | fail: | |
29574 | { | |
29575 | if (temp4) | |
29576 | delete arg4; | |
29577 | } | |
29578 | { | |
29579 | if (temp6) | |
29580 | delete arg6; | |
29581 | } | |
29582 | return NULL; | |
29583 | } | |
29584 | ||
29585 | ||
29586 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29587 | PyObject *resultobj; | |
29588 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29589 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29590 | wxMenuItem *result; |
d14a1e28 RD |
29591 | PyObject * obj0 = 0 ; |
29592 | PyObject * obj1 = 0 ; | |
29593 | char *kwnames[] = { | |
29594 | (char *) "self",(char *) "item", NULL | |
29595 | }; | |
29596 | ||
29597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29600 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29602 | { |
29603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29604 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
29605 | |
29606 | wxPyEndAllowThreads(__tstate); | |
29607 | if (PyErr_Occurred()) SWIG_fail; | |
29608 | } | |
a41e16b6 | 29609 | { |
412d302d | 29610 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29611 | } |
d14a1e28 RD |
29612 | return resultobj; |
29613 | fail: | |
29614 | return NULL; | |
29615 | } | |
29616 | ||
29617 | ||
29618 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29619 | PyObject *resultobj; | |
29620 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29621 | int arg2 ; | |
29622 | wxString *arg3 = 0 ; | |
29623 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29624 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29625 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29626 | wxMenuItem *result; |
e811c8ce RD |
29627 | bool temp3 = False ; |
29628 | bool temp4 = False ; | |
d14a1e28 | 29629 | PyObject * obj0 = 0 ; |
994141e6 | 29630 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29631 | PyObject * obj2 = 0 ; |
29632 | PyObject * obj3 = 0 ; | |
994141e6 | 29633 | PyObject * obj4 = 0 ; |
d14a1e28 | 29634 | char *kwnames[] = { |
242b7b46 | 29635 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29636 | }; |
29637 | ||
994141e6 | 29638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29641 | arg2 = (int) SWIG_AsInt(obj1); | |
29642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29643 | { |
29644 | arg3 = wxString_in_helper(obj2); | |
29645 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29646 | temp3 = True; |
d14a1e28 RD |
29647 | } |
29648 | if (obj3) { | |
29649 | { | |
29650 | arg4 = wxString_in_helper(obj3); | |
29651 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29652 | temp4 = True; |
d14a1e28 RD |
29653 | } |
29654 | } | |
994141e6 | 29655 | if (obj4) { |
15afbcd0 RD |
29656 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
29657 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29658 | } |
d14a1e28 RD |
29659 | { |
29660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29661 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
29662 | |
29663 | wxPyEndAllowThreads(__tstate); | |
29664 | if (PyErr_Occurred()) SWIG_fail; | |
29665 | } | |
a41e16b6 | 29666 | { |
412d302d | 29667 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29668 | } |
d14a1e28 RD |
29669 | { |
29670 | if (temp3) | |
29671 | delete arg3; | |
29672 | } | |
29673 | { | |
29674 | if (temp4) | |
29675 | delete arg4; | |
29676 | } | |
29677 | return resultobj; | |
29678 | fail: | |
29679 | { | |
29680 | if (temp3) | |
29681 | delete arg3; | |
29682 | } | |
29683 | { | |
29684 | if (temp4) | |
29685 | delete arg4; | |
29686 | } | |
29687 | return NULL; | |
29688 | } | |
29689 | ||
29690 | ||
29691 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29692 | PyObject *resultobj; | |
29693 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 29694 | wxMenuItem *result; |
d14a1e28 RD |
29695 | PyObject * obj0 = 0 ; |
29696 | char *kwnames[] = { | |
29697 | (char *) "self", NULL | |
29698 | }; | |
29699 | ||
29700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29705 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
29706 | |
29707 | wxPyEndAllowThreads(__tstate); | |
29708 | if (PyErr_Occurred()) SWIG_fail; | |
29709 | } | |
a41e16b6 | 29710 | { |
412d302d | 29711 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29712 | } |
d14a1e28 RD |
29713 | return resultobj; |
29714 | fail: | |
29715 | return NULL; | |
29716 | } | |
29717 | ||
29718 | ||
29719 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29720 | PyObject *resultobj; | |
29721 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29722 | int arg2 ; | |
29723 | wxString *arg3 = 0 ; | |
29724 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29725 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29726 | wxMenuItem *result; |
e811c8ce RD |
29727 | bool temp3 = False ; |
29728 | bool temp4 = False ; | |
d14a1e28 | 29729 | PyObject * obj0 = 0 ; |
994141e6 | 29730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29731 | PyObject * obj2 = 0 ; |
29732 | PyObject * obj3 = 0 ; | |
29733 | char *kwnames[] = { | |
242b7b46 | 29734 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29735 | }; |
29736 | ||
994141e6 | 29737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29740 | arg2 = (int) SWIG_AsInt(obj1); | |
29741 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29742 | { |
29743 | arg3 = wxString_in_helper(obj2); | |
29744 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29745 | temp3 = True; |
d14a1e28 RD |
29746 | } |
29747 | if (obj3) { | |
29748 | { | |
29749 | arg4 = wxString_in_helper(obj3); | |
29750 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29751 | temp4 = True; |
d14a1e28 RD |
29752 | } |
29753 | } | |
29754 | { | |
29755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29756 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29757 | |
29758 | wxPyEndAllowThreads(__tstate); | |
29759 | if (PyErr_Occurred()) SWIG_fail; | |
29760 | } | |
a41e16b6 | 29761 | { |
412d302d | 29762 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29763 | } |
d14a1e28 RD |
29764 | { |
29765 | if (temp3) | |
29766 | delete arg3; | |
29767 | } | |
29768 | { | |
29769 | if (temp4) | |
29770 | delete arg4; | |
29771 | } | |
29772 | return resultobj; | |
29773 | fail: | |
29774 | { | |
29775 | if (temp3) | |
29776 | delete arg3; | |
29777 | } | |
29778 | { | |
29779 | if (temp4) | |
29780 | delete arg4; | |
29781 | } | |
29782 | return NULL; | |
29783 | } | |
29784 | ||
29785 | ||
29786 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29787 | PyObject *resultobj; | |
29788 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29789 | int arg2 ; | |
29790 | wxString *arg3 = 0 ; | |
29791 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29792 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29793 | wxMenuItem *result; |
e811c8ce RD |
29794 | bool temp3 = False ; |
29795 | bool temp4 = False ; | |
d14a1e28 | 29796 | PyObject * obj0 = 0 ; |
994141e6 | 29797 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29798 | PyObject * obj2 = 0 ; |
29799 | PyObject * obj3 = 0 ; | |
29800 | char *kwnames[] = { | |
242b7b46 | 29801 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29802 | }; |
29803 | ||
994141e6 | 29804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29807 | arg2 = (int) SWIG_AsInt(obj1); | |
29808 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29809 | { |
29810 | arg3 = wxString_in_helper(obj2); | |
29811 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29812 | temp3 = True; |
d14a1e28 RD |
29813 | } |
29814 | if (obj3) { | |
29815 | { | |
29816 | arg4 = wxString_in_helper(obj3); | |
29817 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29818 | temp4 = True; |
d14a1e28 RD |
29819 | } |
29820 | } | |
29821 | { | |
29822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29823 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29824 | |
29825 | wxPyEndAllowThreads(__tstate); | |
29826 | if (PyErr_Occurred()) SWIG_fail; | |
29827 | } | |
a41e16b6 | 29828 | { |
412d302d | 29829 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29830 | } |
d14a1e28 RD |
29831 | { |
29832 | if (temp3) | |
29833 | delete arg3; | |
29834 | } | |
29835 | { | |
29836 | if (temp4) | |
29837 | delete arg4; | |
29838 | } | |
29839 | return resultobj; | |
29840 | fail: | |
29841 | { | |
29842 | if (temp3) | |
29843 | delete arg3; | |
29844 | } | |
29845 | { | |
29846 | if (temp4) | |
29847 | delete arg4; | |
29848 | } | |
29849 | return NULL; | |
29850 | } | |
29851 | ||
29852 | ||
29853 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29854 | PyObject *resultobj; | |
29855 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29856 | int arg2 ; | |
29857 | wxString *arg3 = 0 ; | |
29858 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29859 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29860 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29861 | wxMenuItem *result; |
e811c8ce RD |
29862 | bool temp3 = False ; |
29863 | bool temp5 = False ; | |
d14a1e28 | 29864 | PyObject * obj0 = 0 ; |
994141e6 | 29865 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29866 | PyObject * obj2 = 0 ; |
29867 | PyObject * obj3 = 0 ; | |
29868 | PyObject * obj4 = 0 ; | |
29869 | char *kwnames[] = { | |
242b7b46 | 29870 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29871 | }; |
29872 | ||
994141e6 | 29873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29876 | arg2 = (int) SWIG_AsInt(obj1); | |
29877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29878 | { |
29879 | arg3 = wxString_in_helper(obj2); | |
29880 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29881 | temp3 = True; |
d14a1e28 | 29882 | } |
15afbcd0 RD |
29883 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29885 | if (obj4) { |
29886 | { | |
29887 | arg5 = wxString_in_helper(obj4); | |
29888 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29889 | temp5 = True; |
d14a1e28 RD |
29890 | } |
29891 | } | |
29892 | { | |
29893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29894 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29895 | |
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
a41e16b6 | 29899 | { |
412d302d | 29900 | resultobj = wxPyMake_wxObject(result, 0); |
a41e16b6 | 29901 | } |
d14a1e28 RD |
29902 | { |
29903 | if (temp3) | |
29904 | delete arg3; | |
29905 | } | |
29906 | { | |
29907 | if (temp5) | |
29908 | delete arg5; | |
29909 | } | |
29910 | return resultobj; | |
29911 | fail: | |
29912 | { | |
29913 | if (temp3) | |
29914 | delete arg3; | |
29915 | } | |
29916 | { | |
29917 | if (temp5) | |
29918 | delete arg5; | |
29919 | } | |
29920 | return NULL; | |
29921 | } | |
29922 | ||
29923 | ||
29924 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29925 | PyObject *resultobj; | |
29926 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29927 | int arg2 ; | |
29928 | wxMenuItem *result; | |
29929 | PyObject * obj0 = 0 ; | |
994141e6 | 29930 | PyObject * obj1 = 0 ; |
d14a1e28 | 29931 | char *kwnames[] = { |
242b7b46 | 29932 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29933 | }; |
29934 | ||
994141e6 | 29935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29938 | arg2 = (int) SWIG_AsInt(obj1); | |
29939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29940 | { |
29941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29942 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29943 | ||
29944 | wxPyEndAllowThreads(__tstate); | |
29945 | if (PyErr_Occurred()) SWIG_fail; | |
29946 | } | |
29947 | { | |
412d302d | 29948 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29949 | } |
29950 | return resultobj; | |
29951 | fail: | |
29952 | return NULL; | |
29953 | } | |
29954 | ||
29955 | ||
29956 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29957 | PyObject *resultobj; | |
29958 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29959 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29960 | wxMenuItem *result; | |
29961 | PyObject * obj0 = 0 ; | |
29962 | PyObject * obj1 = 0 ; | |
29963 | char *kwnames[] = { | |
29964 | (char *) "self",(char *) "item", NULL | |
29965 | }; | |
29966 | ||
29967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29970 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29972 | { |
29973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29974 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29975 | ||
29976 | wxPyEndAllowThreads(__tstate); | |
29977 | if (PyErr_Occurred()) SWIG_fail; | |
29978 | } | |
29979 | { | |
412d302d | 29980 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
29981 | } |
29982 | return resultobj; | |
29983 | fail: | |
29984 | return NULL; | |
29985 | } | |
29986 | ||
29987 | ||
29988 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29989 | PyObject *resultobj; | |
29990 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29991 | int arg2 ; | |
29992 | bool result; | |
29993 | PyObject * obj0 = 0 ; | |
994141e6 | 29994 | PyObject * obj1 = 0 ; |
d14a1e28 | 29995 | char *kwnames[] = { |
242b7b46 | 29996 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29997 | }; |
29998 | ||
994141e6 | 29999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30002 | arg2 = (int) SWIG_AsInt(obj1); | |
30003 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30004 | { |
30005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30006 | result = (bool)(arg1)->Delete(arg2); | |
30007 | ||
30008 | wxPyEndAllowThreads(__tstate); | |
30009 | if (PyErr_Occurred()) SWIG_fail; | |
30010 | } | |
4f89f6a3 RD |
30011 | { |
30012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30013 | } | |
d14a1e28 RD |
30014 | return resultobj; |
30015 | fail: | |
30016 | return NULL; | |
30017 | } | |
30018 | ||
30019 | ||
30020 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30021 | PyObject *resultobj; | |
30022 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30023 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30024 | bool result; | |
30025 | PyObject * obj0 = 0 ; | |
30026 | PyObject * obj1 = 0 ; | |
30027 | char *kwnames[] = { | |
30028 | (char *) "self",(char *) "item", NULL | |
30029 | }; | |
30030 | ||
30031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30036 | { |
30037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30038 | result = (bool)(arg1)->Delete(arg2); | |
30039 | ||
30040 | wxPyEndAllowThreads(__tstate); | |
30041 | if (PyErr_Occurred()) SWIG_fail; | |
30042 | } | |
4f89f6a3 RD |
30043 | { |
30044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30045 | } | |
d14a1e28 RD |
30046 | return resultobj; |
30047 | fail: | |
30048 | return NULL; | |
30049 | } | |
30050 | ||
30051 | ||
30052 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30053 | PyObject *resultobj; | |
30054 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30055 | PyObject * obj0 = 0 ; | |
30056 | char *kwnames[] = { | |
30057 | (char *) "self", NULL | |
30058 | }; | |
30059 | ||
30060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30063 | { |
30064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30065 | wxMenu_Destroy(arg1); | |
30066 | ||
30067 | wxPyEndAllowThreads(__tstate); | |
30068 | if (PyErr_Occurred()) SWIG_fail; | |
30069 | } | |
30070 | Py_INCREF(Py_None); resultobj = Py_None; | |
30071 | return resultobj; | |
30072 | fail: | |
30073 | return NULL; | |
30074 | } | |
30075 | ||
30076 | ||
30077 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30078 | PyObject *resultobj; | |
30079 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30080 | int arg2 ; | |
30081 | bool result; | |
30082 | PyObject * obj0 = 0 ; | |
994141e6 | 30083 | PyObject * obj1 = 0 ; |
d14a1e28 | 30084 | char *kwnames[] = { |
242b7b46 | 30085 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30086 | }; |
30087 | ||
994141e6 | 30088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30091 | arg2 = (int) SWIG_AsInt(obj1); | |
30092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30093 | { |
30094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30095 | result = (bool)(arg1)->Destroy(arg2); | |
30096 | ||
30097 | wxPyEndAllowThreads(__tstate); | |
30098 | if (PyErr_Occurred()) SWIG_fail; | |
30099 | } | |
4f89f6a3 RD |
30100 | { |
30101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30102 | } | |
d14a1e28 RD |
30103 | return resultobj; |
30104 | fail: | |
30105 | return NULL; | |
30106 | } | |
30107 | ||
30108 | ||
30109 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30110 | PyObject *resultobj; | |
30111 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30112 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30113 | bool result; | |
30114 | PyObject * obj0 = 0 ; | |
30115 | PyObject * obj1 = 0 ; | |
30116 | char *kwnames[] = { | |
30117 | (char *) "self",(char *) "item", NULL | |
30118 | }; | |
30119 | ||
30120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30125 | { |
30126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30127 | result = (bool)(arg1)->Destroy(arg2); | |
30128 | ||
30129 | wxPyEndAllowThreads(__tstate); | |
30130 | if (PyErr_Occurred()) SWIG_fail; | |
30131 | } | |
4f89f6a3 RD |
30132 | { |
30133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30134 | } | |
d14a1e28 RD |
30135 | return resultobj; |
30136 | fail: | |
30137 | return NULL; | |
30138 | } | |
30139 | ||
30140 | ||
30141 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30142 | PyObject *resultobj; | |
30143 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30144 | size_t result; | |
30145 | PyObject * obj0 = 0 ; | |
30146 | char *kwnames[] = { | |
30147 | (char *) "self", NULL | |
30148 | }; | |
30149 | ||
30150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30153 | { |
30154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30155 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30156 | ||
30157 | wxPyEndAllowThreads(__tstate); | |
30158 | if (PyErr_Occurred()) SWIG_fail; | |
30159 | } | |
15afbcd0 | 30160 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
30161 | return resultobj; |
30162 | fail: | |
30163 | return NULL; | |
30164 | } | |
30165 | ||
30166 | ||
30167 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30168 | PyObject *resultobj; | |
30169 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30170 | PyObject *result; | |
30171 | PyObject * obj0 = 0 ; | |
30172 | char *kwnames[] = { | |
30173 | (char *) "self", NULL | |
30174 | }; | |
30175 | ||
30176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30179 | { |
30180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30181 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30182 | ||
30183 | wxPyEndAllowThreads(__tstate); | |
30184 | if (PyErr_Occurred()) SWIG_fail; | |
30185 | } | |
30186 | resultobj = result; | |
30187 | return resultobj; | |
30188 | fail: | |
30189 | return NULL; | |
30190 | } | |
30191 | ||
30192 | ||
30193 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30194 | PyObject *resultobj; | |
30195 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30196 | wxString *arg2 = 0 ; | |
30197 | int result; | |
e811c8ce | 30198 | bool temp2 = False ; |
d14a1e28 RD |
30199 | PyObject * obj0 = 0 ; |
30200 | PyObject * obj1 = 0 ; | |
30201 | char *kwnames[] = { | |
30202 | (char *) "self",(char *) "item", NULL | |
30203 | }; | |
30204 | ||
30205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30208 | { |
30209 | arg2 = wxString_in_helper(obj1); | |
30210 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30211 | temp2 = True; |
d14a1e28 RD |
30212 | } |
30213 | { | |
30214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30215 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30216 | ||
30217 | wxPyEndAllowThreads(__tstate); | |
30218 | if (PyErr_Occurred()) SWIG_fail; | |
30219 | } | |
15afbcd0 | 30220 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
30221 | { |
30222 | if (temp2) | |
30223 | delete arg2; | |
30224 | } | |
30225 | return resultobj; | |
30226 | fail: | |
30227 | { | |
30228 | if (temp2) | |
30229 | delete arg2; | |
30230 | } | |
30231 | return NULL; | |
30232 | } | |
30233 | ||
30234 | ||
30235 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30236 | PyObject *resultobj; | |
30237 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30238 | int arg2 ; | |
30239 | wxMenuItem *result; | |
30240 | PyObject * obj0 = 0 ; | |
994141e6 | 30241 | PyObject * obj1 = 0 ; |
d14a1e28 | 30242 | char *kwnames[] = { |
242b7b46 | 30243 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30244 | }; |
30245 | ||
994141e6 | 30246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30249 | arg2 = (int) SWIG_AsInt(obj1); | |
30250 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30251 | { |
30252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30253 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30254 | ||
30255 | wxPyEndAllowThreads(__tstate); | |
30256 | if (PyErr_Occurred()) SWIG_fail; | |
30257 | } | |
30258 | { | |
412d302d | 30259 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30260 | } |
30261 | return resultobj; | |
30262 | fail: | |
30263 | return NULL; | |
30264 | } | |
30265 | ||
30266 | ||
30267 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30268 | PyObject *resultobj; | |
30269 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30270 | size_t arg2 ; | |
30271 | wxMenuItem *result; | |
30272 | PyObject * obj0 = 0 ; | |
30273 | PyObject * obj1 = 0 ; | |
30274 | char *kwnames[] = { | |
30275 | (char *) "self",(char *) "position", NULL | |
30276 | }; | |
30277 | ||
30278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30281 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30283 | { |
30284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30285 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30286 | ||
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
30290 | { | |
412d302d | 30291 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30292 | } |
30293 | return resultobj; | |
30294 | fail: | |
30295 | return NULL; | |
30296 | } | |
30297 | ||
30298 | ||
30299 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30300 | PyObject *resultobj; | |
30301 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30302 | int arg2 ; | |
30303 | bool arg3 ; | |
30304 | PyObject * obj0 = 0 ; | |
994141e6 | 30305 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30306 | PyObject * obj2 = 0 ; |
30307 | char *kwnames[] = { | |
242b7b46 | 30308 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
30309 | }; |
30310 | ||
994141e6 | 30311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30314 | arg2 = (int) SWIG_AsInt(obj1); | |
30315 | if (PyErr_Occurred()) SWIG_fail; | |
30316 | arg3 = (bool) SWIG_AsBool(obj2); | |
30317 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30318 | { |
30319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30320 | (arg1)->Enable(arg2,arg3); | |
30321 | ||
30322 | wxPyEndAllowThreads(__tstate); | |
30323 | if (PyErr_Occurred()) SWIG_fail; | |
30324 | } | |
30325 | Py_INCREF(Py_None); resultobj = Py_None; | |
30326 | return resultobj; | |
30327 | fail: | |
30328 | return NULL; | |
30329 | } | |
30330 | ||
30331 | ||
30332 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30333 | PyObject *resultobj; | |
30334 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30335 | int arg2 ; | |
30336 | bool result; | |
30337 | PyObject * obj0 = 0 ; | |
994141e6 | 30338 | PyObject * obj1 = 0 ; |
d14a1e28 | 30339 | char *kwnames[] = { |
242b7b46 | 30340 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30341 | }; |
30342 | ||
994141e6 | 30343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30346 | arg2 = (int) SWIG_AsInt(obj1); | |
30347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30348 | { |
30349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30350 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30351 | ||
30352 | wxPyEndAllowThreads(__tstate); | |
30353 | if (PyErr_Occurred()) SWIG_fail; | |
30354 | } | |
4f89f6a3 RD |
30355 | { |
30356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30357 | } | |
d14a1e28 RD |
30358 | return resultobj; |
30359 | fail: | |
30360 | return NULL; | |
30361 | } | |
30362 | ||
30363 | ||
30364 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30365 | PyObject *resultobj; | |
30366 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30367 | int arg2 ; | |
30368 | bool arg3 ; | |
30369 | PyObject * obj0 = 0 ; | |
994141e6 | 30370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30371 | PyObject * obj2 = 0 ; |
30372 | char *kwnames[] = { | |
242b7b46 | 30373 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30374 | }; |
30375 | ||
994141e6 | 30376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30379 | arg2 = (int) SWIG_AsInt(obj1); | |
30380 | if (PyErr_Occurred()) SWIG_fail; | |
30381 | arg3 = (bool) SWIG_AsBool(obj2); | |
30382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30383 | { |
30384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30385 | (arg1)->Check(arg2,arg3); | |
30386 | ||
30387 | wxPyEndAllowThreads(__tstate); | |
30388 | if (PyErr_Occurred()) SWIG_fail; | |
30389 | } | |
30390 | Py_INCREF(Py_None); resultobj = Py_None; | |
30391 | return resultobj; | |
30392 | fail: | |
30393 | return NULL; | |
30394 | } | |
30395 | ||
30396 | ||
30397 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30398 | PyObject *resultobj; | |
30399 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30400 | int arg2 ; | |
30401 | bool result; | |
30402 | PyObject * obj0 = 0 ; | |
994141e6 | 30403 | PyObject * obj1 = 0 ; |
d14a1e28 | 30404 | char *kwnames[] = { |
242b7b46 | 30405 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30406 | }; |
30407 | ||
994141e6 | 30408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30411 | arg2 = (int) SWIG_AsInt(obj1); | |
30412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30413 | { |
30414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30415 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30416 | ||
30417 | wxPyEndAllowThreads(__tstate); | |
30418 | if (PyErr_Occurred()) SWIG_fail; | |
30419 | } | |
4f89f6a3 RD |
30420 | { |
30421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30422 | } | |
d14a1e28 RD |
30423 | return resultobj; |
30424 | fail: | |
30425 | return NULL; | |
30426 | } | |
30427 | ||
30428 | ||
30429 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30430 | PyObject *resultobj; | |
30431 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30432 | int arg2 ; | |
30433 | wxString *arg3 = 0 ; | |
e811c8ce | 30434 | bool temp3 = False ; |
d14a1e28 | 30435 | PyObject * obj0 = 0 ; |
994141e6 | 30436 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30437 | PyObject * obj2 = 0 ; |
30438 | char *kwnames[] = { | |
242b7b46 | 30439 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30440 | }; |
30441 | ||
994141e6 | 30442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30445 | arg2 = (int) SWIG_AsInt(obj1); | |
30446 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30447 | { |
30448 | arg3 = wxString_in_helper(obj2); | |
30449 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30450 | temp3 = True; |
d14a1e28 RD |
30451 | } |
30452 | { | |
30453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30454 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30455 | ||
30456 | wxPyEndAllowThreads(__tstate); | |
30457 | if (PyErr_Occurred()) SWIG_fail; | |
30458 | } | |
30459 | Py_INCREF(Py_None); resultobj = Py_None; | |
30460 | { | |
30461 | if (temp3) | |
30462 | delete arg3; | |
30463 | } | |
30464 | return resultobj; | |
30465 | fail: | |
30466 | { | |
30467 | if (temp3) | |
30468 | delete arg3; | |
30469 | } | |
30470 | return NULL; | |
30471 | } | |
30472 | ||
30473 | ||
30474 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30475 | PyObject *resultobj; | |
30476 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30477 | int arg2 ; | |
30478 | wxString result; | |
30479 | PyObject * obj0 = 0 ; | |
994141e6 | 30480 | PyObject * obj1 = 0 ; |
d14a1e28 | 30481 | char *kwnames[] = { |
242b7b46 | 30482 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30483 | }; |
30484 | ||
994141e6 | 30485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30488 | arg2 = (int) SWIG_AsInt(obj1); | |
30489 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30490 | { |
30491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30492 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30493 | ||
30494 | wxPyEndAllowThreads(__tstate); | |
30495 | if (PyErr_Occurred()) SWIG_fail; | |
30496 | } | |
30497 | { | |
30498 | #if wxUSE_UNICODE | |
30499 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30500 | #else | |
30501 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30502 | #endif | |
30503 | } | |
30504 | return resultobj; | |
30505 | fail: | |
30506 | return NULL; | |
30507 | } | |
30508 | ||
30509 | ||
30510 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30511 | PyObject *resultobj; | |
30512 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30513 | int arg2 ; | |
30514 | wxString *arg3 = 0 ; | |
e811c8ce | 30515 | bool temp3 = False ; |
d14a1e28 | 30516 | PyObject * obj0 = 0 ; |
994141e6 | 30517 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30518 | PyObject * obj2 = 0 ; |
30519 | char *kwnames[] = { | |
242b7b46 | 30520 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30521 | }; |
30522 | ||
994141e6 | 30523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30526 | arg2 = (int) SWIG_AsInt(obj1); | |
30527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30528 | { |
30529 | arg3 = wxString_in_helper(obj2); | |
30530 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30531 | temp3 = True; |
d14a1e28 RD |
30532 | } |
30533 | { | |
30534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30535 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30536 | ||
30537 | wxPyEndAllowThreads(__tstate); | |
30538 | if (PyErr_Occurred()) SWIG_fail; | |
30539 | } | |
30540 | Py_INCREF(Py_None); resultobj = Py_None; | |
30541 | { | |
30542 | if (temp3) | |
30543 | delete arg3; | |
30544 | } | |
30545 | return resultobj; | |
30546 | fail: | |
30547 | { | |
30548 | if (temp3) | |
30549 | delete arg3; | |
30550 | } | |
30551 | return NULL; | |
30552 | } | |
30553 | ||
30554 | ||
30555 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30556 | PyObject *resultobj; | |
30557 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30558 | int arg2 ; | |
30559 | wxString result; | |
30560 | PyObject * obj0 = 0 ; | |
994141e6 | 30561 | PyObject * obj1 = 0 ; |
d14a1e28 | 30562 | char *kwnames[] = { |
242b7b46 | 30563 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30564 | }; |
30565 | ||
994141e6 | 30566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30569 | arg2 = (int) SWIG_AsInt(obj1); | |
30570 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30571 | { |
30572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30573 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30574 | ||
30575 | wxPyEndAllowThreads(__tstate); | |
30576 | if (PyErr_Occurred()) SWIG_fail; | |
30577 | } | |
30578 | { | |
30579 | #if wxUSE_UNICODE | |
30580 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30581 | #else | |
30582 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30583 | #endif | |
30584 | } | |
30585 | return resultobj; | |
30586 | fail: | |
30587 | return NULL; | |
30588 | } | |
30589 | ||
30590 | ||
30591 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30592 | PyObject *resultobj; | |
30593 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30594 | wxString *arg2 = 0 ; | |
e811c8ce | 30595 | bool temp2 = False ; |
d14a1e28 RD |
30596 | PyObject * obj0 = 0 ; |
30597 | PyObject * obj1 = 0 ; | |
30598 | char *kwnames[] = { | |
30599 | (char *) "self",(char *) "title", NULL | |
30600 | }; | |
30601 | ||
30602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30605 | { |
30606 | arg2 = wxString_in_helper(obj1); | |
30607 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30608 | temp2 = True; |
d14a1e28 RD |
30609 | } |
30610 | { | |
30611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30612 | (arg1)->SetTitle((wxString const &)*arg2); | |
30613 | ||
30614 | wxPyEndAllowThreads(__tstate); | |
30615 | if (PyErr_Occurred()) SWIG_fail; | |
30616 | } | |
30617 | Py_INCREF(Py_None); resultobj = Py_None; | |
30618 | { | |
30619 | if (temp2) | |
30620 | delete arg2; | |
30621 | } | |
30622 | return resultobj; | |
30623 | fail: | |
30624 | { | |
30625 | if (temp2) | |
30626 | delete arg2; | |
30627 | } | |
30628 | return NULL; | |
30629 | } | |
30630 | ||
30631 | ||
30632 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30633 | PyObject *resultobj; | |
30634 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30635 | wxString result; | |
30636 | PyObject * obj0 = 0 ; | |
30637 | char *kwnames[] = { | |
30638 | (char *) "self", NULL | |
30639 | }; | |
30640 | ||
30641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30644 | { |
30645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30646 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30647 | ||
30648 | wxPyEndAllowThreads(__tstate); | |
30649 | if (PyErr_Occurred()) SWIG_fail; | |
30650 | } | |
30651 | { | |
30652 | #if wxUSE_UNICODE | |
30653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30654 | #else | |
30655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30656 | #endif | |
30657 | } | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
30664 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30665 | PyObject *resultobj; | |
30666 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30667 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30668 | PyObject * obj0 = 0 ; | |
30669 | PyObject * obj1 = 0 ; | |
30670 | char *kwnames[] = { | |
30671 | (char *) "self",(char *) "handler", NULL | |
30672 | }; | |
30673 | ||
30674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30679 | { |
30680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30681 | (arg1)->SetEventHandler(arg2); | |
30682 | ||
30683 | wxPyEndAllowThreads(__tstate); | |
30684 | if (PyErr_Occurred()) SWIG_fail; | |
30685 | } | |
30686 | Py_INCREF(Py_None); resultobj = Py_None; | |
30687 | return resultobj; | |
30688 | fail: | |
30689 | return NULL; | |
30690 | } | |
30691 | ||
30692 | ||
30693 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30694 | PyObject *resultobj; | |
30695 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30696 | wxEvtHandler *result; | |
30697 | PyObject * obj0 = 0 ; | |
30698 | char *kwnames[] = { | |
30699 | (char *) "self", NULL | |
30700 | }; | |
30701 | ||
30702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30705 | { |
30706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30707 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30708 | ||
30709 | wxPyEndAllowThreads(__tstate); | |
30710 | if (PyErr_Occurred()) SWIG_fail; | |
30711 | } | |
30712 | { | |
412d302d | 30713 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30714 | } |
30715 | return resultobj; | |
30716 | fail: | |
30717 | return NULL; | |
30718 | } | |
30719 | ||
30720 | ||
30721 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30722 | PyObject *resultobj; | |
30723 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30725 | PyObject * obj0 = 0 ; | |
30726 | PyObject * obj1 = 0 ; | |
30727 | char *kwnames[] = { | |
30728 | (char *) "self",(char *) "win", NULL | |
30729 | }; | |
30730 | ||
30731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30736 | { |
30737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30738 | (arg1)->SetInvokingWindow(arg2); | |
30739 | ||
30740 | wxPyEndAllowThreads(__tstate); | |
30741 | if (PyErr_Occurred()) SWIG_fail; | |
30742 | } | |
30743 | Py_INCREF(Py_None); resultobj = Py_None; | |
30744 | return resultobj; | |
30745 | fail: | |
30746 | return NULL; | |
30747 | } | |
30748 | ||
30749 | ||
30750 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30751 | PyObject *resultobj; | |
30752 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30753 | wxWindow *result; | |
30754 | PyObject * obj0 = 0 ; | |
30755 | char *kwnames[] = { | |
30756 | (char *) "self", NULL | |
30757 | }; | |
30758 | ||
30759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30762 | { |
30763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30764 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30765 | ||
30766 | wxPyEndAllowThreads(__tstate); | |
30767 | if (PyErr_Occurred()) SWIG_fail; | |
30768 | } | |
30769 | { | |
412d302d | 30770 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30771 | } |
30772 | return resultobj; | |
30773 | fail: | |
30774 | return NULL; | |
30775 | } | |
30776 | ||
30777 | ||
30778 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30779 | PyObject *resultobj; | |
30780 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30781 | long result; | |
30782 | PyObject * obj0 = 0 ; | |
30783 | char *kwnames[] = { | |
30784 | (char *) "self", NULL | |
30785 | }; | |
30786 | ||
30787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30790 | { |
30791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30792 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30793 | ||
30794 | wxPyEndAllowThreads(__tstate); | |
30795 | if (PyErr_Occurred()) SWIG_fail; | |
30796 | } | |
15afbcd0 | 30797 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
30798 | return resultobj; |
30799 | fail: | |
30800 | return NULL; | |
30801 | } | |
30802 | ||
30803 | ||
30804 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30805 | PyObject *resultobj; | |
30806 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30807 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30808 | PyObject * obj0 = 0 ; | |
30809 | PyObject * obj1 = 0 ; | |
30810 | char *kwnames[] = { | |
30811 | (char *) "self",(char *) "source", NULL | |
30812 | }; | |
30813 | ||
30814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30817 | if (obj1) { |
15afbcd0 RD |
30818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
30819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30820 | } |
30821 | { | |
30822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30823 | (arg1)->UpdateUI(arg2); | |
30824 | ||
30825 | wxPyEndAllowThreads(__tstate); | |
30826 | if (PyErr_Occurred()) SWIG_fail; | |
30827 | } | |
30828 | Py_INCREF(Py_None); resultobj = Py_None; | |
30829 | return resultobj; | |
30830 | fail: | |
30831 | return NULL; | |
30832 | } | |
30833 | ||
30834 | ||
30835 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30836 | PyObject *resultobj; | |
30837 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30838 | wxMenuBar *result; | |
30839 | PyObject * obj0 = 0 ; | |
30840 | char *kwnames[] = { | |
30841 | (char *) "self", NULL | |
30842 | }; | |
30843 | ||
30844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30847 | { |
30848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30849 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30850 | ||
30851 | wxPyEndAllowThreads(__tstate); | |
30852 | if (PyErr_Occurred()) SWIG_fail; | |
30853 | } | |
30854 | { | |
412d302d | 30855 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30856 | } |
30857 | return resultobj; | |
30858 | fail: | |
30859 | return NULL; | |
30860 | } | |
30861 | ||
30862 | ||
30863 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30864 | PyObject *resultobj; | |
30865 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30866 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30867 | PyObject * obj0 = 0 ; | |
30868 | PyObject * obj1 = 0 ; | |
30869 | char *kwnames[] = { | |
30870 | (char *) "self",(char *) "menubar", NULL | |
30871 | }; | |
30872 | ||
30873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30878 | { |
30879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30880 | (arg1)->Attach(arg2); | |
30881 | ||
30882 | wxPyEndAllowThreads(__tstate); | |
30883 | if (PyErr_Occurred()) SWIG_fail; | |
30884 | } | |
30885 | Py_INCREF(Py_None); resultobj = Py_None; | |
30886 | return resultobj; | |
30887 | fail: | |
30888 | return NULL; | |
30889 | } | |
30890 | ||
30891 | ||
30892 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30893 | PyObject *resultobj; | |
30894 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30895 | PyObject * obj0 = 0 ; | |
30896 | char *kwnames[] = { | |
30897 | (char *) "self", NULL | |
30898 | }; | |
30899 | ||
30900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30903 | { |
30904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30905 | (arg1)->Detach(); | |
30906 | ||
30907 | wxPyEndAllowThreads(__tstate); | |
30908 | if (PyErr_Occurred()) SWIG_fail; | |
30909 | } | |
30910 | Py_INCREF(Py_None); resultobj = Py_None; | |
30911 | return resultobj; | |
30912 | fail: | |
30913 | return NULL; | |
30914 | } | |
30915 | ||
30916 | ||
30917 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30918 | PyObject *resultobj; | |
30919 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30920 | bool result; | |
30921 | PyObject * obj0 = 0 ; | |
30922 | char *kwnames[] = { | |
30923 | (char *) "self", NULL | |
30924 | }; | |
30925 | ||
30926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30929 | { |
30930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30931 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30932 | ||
30933 | wxPyEndAllowThreads(__tstate); | |
30934 | if (PyErr_Occurred()) SWIG_fail; | |
30935 | } | |
4f89f6a3 RD |
30936 | { |
30937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30938 | } | |
d14a1e28 RD |
30939 | return resultobj; |
30940 | fail: | |
30941 | return NULL; | |
30942 | } | |
30943 | ||
30944 | ||
30945 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30946 | PyObject *resultobj; | |
30947 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30948 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30949 | PyObject * obj0 = 0 ; | |
30950 | PyObject * obj1 = 0 ; | |
30951 | char *kwnames[] = { | |
30952 | (char *) "self",(char *) "parent", NULL | |
30953 | }; | |
30954 | ||
30955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30960 | { |
30961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30962 | (arg1)->SetParent(arg2); | |
30963 | ||
30964 | wxPyEndAllowThreads(__tstate); | |
30965 | if (PyErr_Occurred()) SWIG_fail; | |
30966 | } | |
30967 | Py_INCREF(Py_None); resultobj = Py_None; | |
30968 | return resultobj; | |
30969 | fail: | |
30970 | return NULL; | |
30971 | } | |
30972 | ||
30973 | ||
30974 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30975 | PyObject *resultobj; | |
30976 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30977 | wxMenu *result; | |
30978 | PyObject * obj0 = 0 ; | |
30979 | char *kwnames[] = { | |
30980 | (char *) "self", NULL | |
30981 | }; | |
30982 | ||
30983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30986 | { |
30987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30988 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30989 | ||
30990 | wxPyEndAllowThreads(__tstate); | |
30991 | if (PyErr_Occurred()) SWIG_fail; | |
30992 | } | |
30993 | { | |
412d302d | 30994 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
30995 | } |
30996 | return resultobj; | |
30997 | fail: | |
30998 | return NULL; | |
30999 | } | |
31000 | ||
31001 | ||
31002 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
31003 | PyObject *obj; | |
31004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31005 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31006 | Py_INCREF(obj); | |
31007 | return Py_BuildValue((char *)""); | |
31008 | } | |
31009 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31010 | PyObject *resultobj; | |
31011 | long arg1 = (long) 0 ; | |
31012 | wxMenuBar *result; | |
994141e6 | 31013 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
31014 | char *kwnames[] = { |
31015 | (char *) "style", NULL | |
31016 | }; | |
31017 | ||
994141e6 RD |
31018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
31019 | if (obj0) { | |
15afbcd0 RD |
31020 | arg1 = (long) SWIG_AsLong(obj0); |
31021 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31022 | } |
d14a1e28 | 31023 | { |
e3b71cb8 | 31024 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
31025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31026 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31027 | ||
31028 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31029 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 31030 | } |
b0f7404b | 31031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d14a1e28 RD |
31032 | return resultobj; |
31033 | fail: | |
31034 | return NULL; | |
31035 | } | |
31036 | ||
31037 | ||
31038 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31039 | PyObject *resultobj; | |
31040 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31041 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31042 | wxString *arg3 = 0 ; | |
31043 | bool result; | |
e811c8ce | 31044 | bool temp3 = False ; |
d14a1e28 RD |
31045 | PyObject * obj0 = 0 ; |
31046 | PyObject * obj1 = 0 ; | |
31047 | PyObject * obj2 = 0 ; | |
31048 | char *kwnames[] = { | |
31049 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31050 | }; | |
31051 | ||
31052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31055 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31057 | { |
31058 | arg3 = wxString_in_helper(obj2); | |
31059 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31060 | temp3 = True; |
d14a1e28 RD |
31061 | } |
31062 | { | |
31063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31064 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31065 | ||
31066 | wxPyEndAllowThreads(__tstate); | |
31067 | if (PyErr_Occurred()) SWIG_fail; | |
31068 | } | |
4f89f6a3 RD |
31069 | { |
31070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31071 | } | |
d14a1e28 RD |
31072 | { |
31073 | if (temp3) | |
31074 | delete arg3; | |
31075 | } | |
31076 | return resultobj; | |
31077 | fail: | |
31078 | { | |
31079 | if (temp3) | |
31080 | delete arg3; | |
31081 | } | |
31082 | return NULL; | |
31083 | } | |
31084 | ||
31085 | ||
31086 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31087 | PyObject *resultobj; | |
31088 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31089 | size_t arg2 ; | |
31090 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31091 | wxString *arg4 = 0 ; | |
31092 | bool result; | |
e811c8ce | 31093 | bool temp4 = False ; |
d14a1e28 RD |
31094 | PyObject * obj0 = 0 ; |
31095 | PyObject * obj1 = 0 ; | |
31096 | PyObject * obj2 = 0 ; | |
31097 | PyObject * obj3 = 0 ; | |
31098 | char *kwnames[] = { | |
31099 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31100 | }; | |
31101 | ||
31102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31105 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31106 | if (PyErr_Occurred()) SWIG_fail; | |
31107 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31109 | { |
31110 | arg4 = wxString_in_helper(obj3); | |
31111 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 31112 | temp4 = True; |
d14a1e28 RD |
31113 | } |
31114 | { | |
31115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31116 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31117 | ||
31118 | wxPyEndAllowThreads(__tstate); | |
31119 | if (PyErr_Occurred()) SWIG_fail; | |
31120 | } | |
4f89f6a3 RD |
31121 | { |
31122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31123 | } | |
d14a1e28 RD |
31124 | { |
31125 | if (temp4) | |
31126 | delete arg4; | |
31127 | } | |
31128 | return resultobj; | |
31129 | fail: | |
31130 | { | |
31131 | if (temp4) | |
31132 | delete arg4; | |
31133 | } | |
31134 | return NULL; | |
31135 | } | |
31136 | ||
31137 | ||
31138 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31139 | PyObject *resultobj; | |
31140 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31141 | size_t result; | |
31142 | PyObject * obj0 = 0 ; | |
31143 | char *kwnames[] = { | |
31144 | (char *) "self", NULL | |
31145 | }; | |
31146 | ||
31147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31150 | { |
31151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31152 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31153 | ||
31154 | wxPyEndAllowThreads(__tstate); | |
31155 | if (PyErr_Occurred()) SWIG_fail; | |
31156 | } | |
15afbcd0 | 31157 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
31158 | return resultobj; |
31159 | fail: | |
31160 | return NULL; | |
31161 | } | |
31162 | ||
31163 | ||
31164 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31165 | PyObject *resultobj; | |
31166 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31167 | size_t arg2 ; | |
31168 | wxMenu *result; | |
31169 | PyObject * obj0 = 0 ; | |
31170 | PyObject * obj1 = 0 ; | |
31171 | char *kwnames[] = { | |
31172 | (char *) "self",(char *) "pos", NULL | |
31173 | }; | |
31174 | ||
31175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31178 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31180 | { |
31181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31182 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31183 | ||
31184 | wxPyEndAllowThreads(__tstate); | |
31185 | if (PyErr_Occurred()) SWIG_fail; | |
31186 | } | |
31187 | { | |
412d302d | 31188 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31189 | } |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
31196 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31197 | PyObject *resultobj; | |
31198 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31199 | size_t arg2 ; | |
31200 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31201 | wxString *arg4 = 0 ; | |
31202 | wxMenu *result; | |
e811c8ce | 31203 | bool temp4 = False ; |
d14a1e28 RD |
31204 | PyObject * obj0 = 0 ; |
31205 | PyObject * obj1 = 0 ; | |
31206 | PyObject * obj2 = 0 ; | |
31207 | PyObject * obj3 = 0 ; | |
31208 | char *kwnames[] = { | |
31209 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31210 | }; | |
31211 | ||
31212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
31213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31215 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31216 | if (PyErr_Occurred()) SWIG_fail; | |
31217 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31219 | { |
31220 | arg4 = wxString_in_helper(obj3); | |
31221 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 31222 | temp4 = True; |
d14a1e28 RD |
31223 | } |
31224 | { | |
31225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31226 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31227 | ||
31228 | wxPyEndAllowThreads(__tstate); | |
31229 | if (PyErr_Occurred()) SWIG_fail; | |
31230 | } | |
31231 | { | |
412d302d | 31232 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31233 | } |
31234 | { | |
31235 | if (temp4) | |
31236 | delete arg4; | |
31237 | } | |
31238 | return resultobj; | |
31239 | fail: | |
31240 | { | |
31241 | if (temp4) | |
31242 | delete arg4; | |
31243 | } | |
31244 | return NULL; | |
31245 | } | |
31246 | ||
31247 | ||
31248 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31249 | PyObject *resultobj; | |
31250 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31251 | size_t arg2 ; | |
31252 | wxMenu *result; | |
31253 | PyObject * obj0 = 0 ; | |
31254 | PyObject * obj1 = 0 ; | |
31255 | char *kwnames[] = { | |
31256 | (char *) "self",(char *) "pos", NULL | |
31257 | }; | |
31258 | ||
31259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31262 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31263 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31264 | { |
31265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31266 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31267 | ||
31268 | wxPyEndAllowThreads(__tstate); | |
31269 | if (PyErr_Occurred()) SWIG_fail; | |
31270 | } | |
31271 | { | |
412d302d | 31272 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31273 | } |
31274 | return resultobj; | |
31275 | fail: | |
31276 | return NULL; | |
31277 | } | |
31278 | ||
31279 | ||
31280 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31281 | PyObject *resultobj; | |
31282 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31283 | size_t arg2 ; | |
31284 | bool arg3 ; | |
31285 | PyObject * obj0 = 0 ; | |
31286 | PyObject * obj1 = 0 ; | |
31287 | PyObject * obj2 = 0 ; | |
31288 | char *kwnames[] = { | |
31289 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31290 | }; | |
31291 | ||
31292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31295 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31296 | if (PyErr_Occurred()) SWIG_fail; | |
31297 | arg3 = (bool) SWIG_AsBool(obj2); | |
31298 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31299 | { |
31300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31301 | (arg1)->EnableTop(arg2,arg3); | |
31302 | ||
31303 | wxPyEndAllowThreads(__tstate); | |
31304 | if (PyErr_Occurred()) SWIG_fail; | |
31305 | } | |
31306 | Py_INCREF(Py_None); resultobj = Py_None; | |
31307 | return resultobj; | |
31308 | fail: | |
31309 | return NULL; | |
31310 | } | |
31311 | ||
31312 | ||
31313 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31314 | PyObject *resultobj; | |
31315 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31316 | size_t arg2 ; | |
31317 | bool result; | |
31318 | PyObject * obj0 = 0 ; | |
31319 | PyObject * obj1 = 0 ; | |
31320 | char *kwnames[] = { | |
31321 | (char *) "self",(char *) "pos", NULL | |
31322 | }; | |
31323 | ||
31324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31327 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31328 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31329 | { |
31330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31331 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31332 | ||
31333 | wxPyEndAllowThreads(__tstate); | |
31334 | if (PyErr_Occurred()) SWIG_fail; | |
31335 | } | |
4f89f6a3 RD |
31336 | { |
31337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31338 | } | |
d14a1e28 RD |
31339 | return resultobj; |
31340 | fail: | |
31341 | return NULL; | |
31342 | } | |
31343 | ||
31344 | ||
31345 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31346 | PyObject *resultobj; | |
31347 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31348 | size_t arg2 ; | |
31349 | wxString *arg3 = 0 ; | |
e811c8ce | 31350 | bool temp3 = False ; |
d14a1e28 RD |
31351 | PyObject * obj0 = 0 ; |
31352 | PyObject * obj1 = 0 ; | |
31353 | PyObject * obj2 = 0 ; | |
31354 | char *kwnames[] = { | |
31355 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31356 | }; | |
31357 | ||
31358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31361 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31362 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31363 | { |
31364 | arg3 = wxString_in_helper(obj2); | |
31365 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31366 | temp3 = True; |
d14a1e28 RD |
31367 | } |
31368 | { | |
31369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31370 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31371 | ||
31372 | wxPyEndAllowThreads(__tstate); | |
31373 | if (PyErr_Occurred()) SWIG_fail; | |
31374 | } | |
31375 | Py_INCREF(Py_None); resultobj = Py_None; | |
31376 | { | |
31377 | if (temp3) | |
31378 | delete arg3; | |
31379 | } | |
31380 | return resultobj; | |
31381 | fail: | |
31382 | { | |
31383 | if (temp3) | |
31384 | delete arg3; | |
31385 | } | |
31386 | return NULL; | |
31387 | } | |
31388 | ||
31389 | ||
31390 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31391 | PyObject *resultobj; | |
31392 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31393 | size_t arg2 ; | |
31394 | wxString result; | |
31395 | PyObject * obj0 = 0 ; | |
31396 | PyObject * obj1 = 0 ; | |
31397 | char *kwnames[] = { | |
31398 | (char *) "self",(char *) "pos", NULL | |
31399 | }; | |
31400 | ||
31401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31404 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31406 | { |
31407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31408 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31409 | ||
31410 | wxPyEndAllowThreads(__tstate); | |
31411 | if (PyErr_Occurred()) SWIG_fail; | |
31412 | } | |
31413 | { | |
31414 | #if wxUSE_UNICODE | |
31415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31416 | #else | |
31417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31418 | #endif | |
31419 | } | |
31420 | return resultobj; | |
31421 | fail: | |
31422 | return NULL; | |
31423 | } | |
31424 | ||
31425 | ||
31426 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31427 | PyObject *resultobj; | |
31428 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31429 | wxString *arg2 = 0 ; | |
31430 | wxString *arg3 = 0 ; | |
31431 | int result; | |
e811c8ce RD |
31432 | bool temp2 = False ; |
31433 | bool temp3 = False ; | |
d14a1e28 RD |
31434 | PyObject * obj0 = 0 ; |
31435 | PyObject * obj1 = 0 ; | |
31436 | PyObject * obj2 = 0 ; | |
31437 | char *kwnames[] = { | |
31438 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31439 | }; | |
31440 | ||
31441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31444 | { |
31445 | arg2 = wxString_in_helper(obj1); | |
31446 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31447 | temp2 = True; |
d14a1e28 RD |
31448 | } |
31449 | { | |
31450 | arg3 = wxString_in_helper(obj2); | |
31451 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31452 | temp3 = True; |
d14a1e28 RD |
31453 | } |
31454 | { | |
31455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31456 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31457 | ||
31458 | wxPyEndAllowThreads(__tstate); | |
31459 | if (PyErr_Occurred()) SWIG_fail; | |
31460 | } | |
15afbcd0 | 31461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31462 | { |
31463 | if (temp2) | |
31464 | delete arg2; | |
31465 | } | |
31466 | { | |
31467 | if (temp3) | |
31468 | delete arg3; | |
31469 | } | |
31470 | return resultobj; | |
31471 | fail: | |
31472 | { | |
31473 | if (temp2) | |
31474 | delete arg2; | |
31475 | } | |
31476 | { | |
31477 | if (temp3) | |
31478 | delete arg3; | |
31479 | } | |
31480 | return NULL; | |
31481 | } | |
31482 | ||
31483 | ||
31484 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31485 | PyObject *resultobj; | |
31486 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31487 | int arg2 ; | |
31488 | wxMenuItem *result; | |
31489 | PyObject * obj0 = 0 ; | |
994141e6 | 31490 | PyObject * obj1 = 0 ; |
d14a1e28 | 31491 | char *kwnames[] = { |
242b7b46 | 31492 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31493 | }; |
31494 | ||
994141e6 | 31495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31498 | arg2 = (int) SWIG_AsInt(obj1); | |
31499 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31500 | { |
31501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31502 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31503 | ||
31504 | wxPyEndAllowThreads(__tstate); | |
31505 | if (PyErr_Occurred()) SWIG_fail; | |
31506 | } | |
31507 | { | |
412d302d | 31508 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31509 | } |
31510 | return resultobj; | |
31511 | fail: | |
31512 | return NULL; | |
31513 | } | |
31514 | ||
31515 | ||
31516 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31517 | PyObject *resultobj; | |
31518 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31519 | wxString *arg2 = 0 ; | |
31520 | int result; | |
e811c8ce | 31521 | bool temp2 = False ; |
d14a1e28 RD |
31522 | PyObject * obj0 = 0 ; |
31523 | PyObject * obj1 = 0 ; | |
31524 | char *kwnames[] = { | |
31525 | (char *) "self",(char *) "title", NULL | |
31526 | }; | |
31527 | ||
31528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31531 | { |
31532 | arg2 = wxString_in_helper(obj1); | |
31533 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31534 | temp2 = True; |
d14a1e28 RD |
31535 | } |
31536 | { | |
31537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31538 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31539 | ||
31540 | wxPyEndAllowThreads(__tstate); | |
31541 | if (PyErr_Occurred()) SWIG_fail; | |
31542 | } | |
15afbcd0 | 31543 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31544 | { |
31545 | if (temp2) | |
31546 | delete arg2; | |
31547 | } | |
31548 | return resultobj; | |
31549 | fail: | |
31550 | { | |
31551 | if (temp2) | |
31552 | delete arg2; | |
31553 | } | |
31554 | return NULL; | |
31555 | } | |
31556 | ||
31557 | ||
31558 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31559 | PyObject *resultobj; | |
31560 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31561 | int arg2 ; | |
31562 | bool arg3 ; | |
31563 | PyObject * obj0 = 0 ; | |
994141e6 | 31564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31565 | PyObject * obj2 = 0 ; |
31566 | char *kwnames[] = { | |
242b7b46 | 31567 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
31568 | }; |
31569 | ||
994141e6 | 31570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31573 | arg2 = (int) SWIG_AsInt(obj1); | |
31574 | if (PyErr_Occurred()) SWIG_fail; | |
31575 | arg3 = (bool) SWIG_AsBool(obj2); | |
31576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31577 | { |
31578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31579 | (arg1)->Enable(arg2,arg3); | |
31580 | ||
31581 | wxPyEndAllowThreads(__tstate); | |
31582 | if (PyErr_Occurred()) SWIG_fail; | |
31583 | } | |
31584 | Py_INCREF(Py_None); resultobj = Py_None; | |
31585 | return resultobj; | |
31586 | fail: | |
31587 | return NULL; | |
31588 | } | |
31589 | ||
31590 | ||
31591 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31592 | PyObject *resultobj; | |
31593 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31594 | int arg2 ; | |
31595 | bool arg3 ; | |
31596 | PyObject * obj0 = 0 ; | |
994141e6 | 31597 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31598 | PyObject * obj2 = 0 ; |
31599 | char *kwnames[] = { | |
242b7b46 | 31600 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
31601 | }; |
31602 | ||
994141e6 | 31603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31606 | arg2 = (int) SWIG_AsInt(obj1); | |
31607 | if (PyErr_Occurred()) SWIG_fail; | |
31608 | arg3 = (bool) SWIG_AsBool(obj2); | |
31609 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31610 | { |
31611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31612 | (arg1)->Check(arg2,arg3); | |
31613 | ||
31614 | wxPyEndAllowThreads(__tstate); | |
31615 | if (PyErr_Occurred()) SWIG_fail; | |
31616 | } | |
31617 | Py_INCREF(Py_None); resultobj = Py_None; | |
31618 | return resultobj; | |
31619 | fail: | |
31620 | return NULL; | |
31621 | } | |
31622 | ||
31623 | ||
31624 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31625 | PyObject *resultobj; | |
31626 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31627 | int arg2 ; | |
31628 | bool result; | |
31629 | PyObject * obj0 = 0 ; | |
994141e6 | 31630 | PyObject * obj1 = 0 ; |
d14a1e28 | 31631 | char *kwnames[] = { |
242b7b46 | 31632 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31633 | }; |
31634 | ||
994141e6 | 31635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31638 | arg2 = (int) SWIG_AsInt(obj1); | |
31639 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31640 | { |
31641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31642 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31643 | ||
31644 | wxPyEndAllowThreads(__tstate); | |
31645 | if (PyErr_Occurred()) SWIG_fail; | |
31646 | } | |
4f89f6a3 RD |
31647 | { |
31648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31649 | } | |
d14a1e28 RD |
31650 | return resultobj; |
31651 | fail: | |
31652 | return NULL; | |
31653 | } | |
31654 | ||
31655 | ||
31656 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31657 | PyObject *resultobj; | |
31658 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31659 | int arg2 ; | |
31660 | bool result; | |
31661 | PyObject * obj0 = 0 ; | |
994141e6 | 31662 | PyObject * obj1 = 0 ; |
d14a1e28 | 31663 | char *kwnames[] = { |
242b7b46 | 31664 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31665 | }; |
31666 | ||
994141e6 | 31667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31670 | arg2 = (int) SWIG_AsInt(obj1); | |
31671 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31672 | { |
31673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31674 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31675 | ||
31676 | wxPyEndAllowThreads(__tstate); | |
31677 | if (PyErr_Occurred()) SWIG_fail; | |
31678 | } | |
4f89f6a3 RD |
31679 | { |
31680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31681 | } | |
d14a1e28 RD |
31682 | return resultobj; |
31683 | fail: | |
31684 | return NULL; | |
31685 | } | |
31686 | ||
31687 | ||
31688 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31689 | PyObject *resultobj; | |
31690 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31691 | int arg2 ; | |
31692 | wxString *arg3 = 0 ; | |
e811c8ce | 31693 | bool temp3 = False ; |
d14a1e28 | 31694 | PyObject * obj0 = 0 ; |
994141e6 | 31695 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31696 | PyObject * obj2 = 0 ; |
31697 | char *kwnames[] = { | |
242b7b46 | 31698 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
31699 | }; |
31700 | ||
994141e6 | 31701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31704 | arg2 = (int) SWIG_AsInt(obj1); | |
31705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31706 | { |
31707 | arg3 = wxString_in_helper(obj2); | |
31708 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31709 | temp3 = True; |
d14a1e28 RD |
31710 | } |
31711 | { | |
31712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31713 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31714 | ||
31715 | wxPyEndAllowThreads(__tstate); | |
31716 | if (PyErr_Occurred()) SWIG_fail; | |
31717 | } | |
31718 | Py_INCREF(Py_None); resultobj = Py_None; | |
31719 | { | |
31720 | if (temp3) | |
31721 | delete arg3; | |
31722 | } | |
31723 | return resultobj; | |
31724 | fail: | |
31725 | { | |
31726 | if (temp3) | |
31727 | delete arg3; | |
31728 | } | |
31729 | return NULL; | |
31730 | } | |
31731 | ||
31732 | ||
31733 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31734 | PyObject *resultobj; | |
31735 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31736 | int arg2 ; | |
31737 | wxString result; | |
31738 | PyObject * obj0 = 0 ; | |
994141e6 | 31739 | PyObject * obj1 = 0 ; |
d14a1e28 | 31740 | char *kwnames[] = { |
242b7b46 | 31741 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31742 | }; |
31743 | ||
994141e6 | 31744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31747 | arg2 = (int) SWIG_AsInt(obj1); | |
31748 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31749 | { |
31750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31751 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31752 | ||
31753 | wxPyEndAllowThreads(__tstate); | |
31754 | if (PyErr_Occurred()) SWIG_fail; | |
31755 | } | |
31756 | { | |
31757 | #if wxUSE_UNICODE | |
31758 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31759 | #else | |
31760 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31761 | #endif | |
31762 | } | |
31763 | return resultobj; | |
31764 | fail: | |
31765 | return NULL; | |
31766 | } | |
31767 | ||
31768 | ||
31769 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31770 | PyObject *resultobj; | |
31771 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31772 | int arg2 ; | |
31773 | wxString *arg3 = 0 ; | |
e811c8ce | 31774 | bool temp3 = False ; |
d14a1e28 | 31775 | PyObject * obj0 = 0 ; |
994141e6 | 31776 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31777 | PyObject * obj2 = 0 ; |
31778 | char *kwnames[] = { | |
242b7b46 | 31779 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
31780 | }; |
31781 | ||
994141e6 | 31782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31785 | arg2 = (int) SWIG_AsInt(obj1); | |
31786 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31787 | { |
31788 | arg3 = wxString_in_helper(obj2); | |
31789 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31790 | temp3 = True; |
d14a1e28 RD |
31791 | } |
31792 | { | |
31793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31794 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31795 | ||
31796 | wxPyEndAllowThreads(__tstate); | |
31797 | if (PyErr_Occurred()) SWIG_fail; | |
31798 | } | |
31799 | Py_INCREF(Py_None); resultobj = Py_None; | |
31800 | { | |
31801 | if (temp3) | |
31802 | delete arg3; | |
31803 | } | |
31804 | return resultobj; | |
31805 | fail: | |
31806 | { | |
31807 | if (temp3) | |
31808 | delete arg3; | |
31809 | } | |
31810 | return NULL; | |
31811 | } | |
31812 | ||
31813 | ||
31814 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31815 | PyObject *resultobj; | |
31816 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31817 | int arg2 ; | |
31818 | wxString result; | |
31819 | PyObject * obj0 = 0 ; | |
994141e6 | 31820 | PyObject * obj1 = 0 ; |
d14a1e28 | 31821 | char *kwnames[] = { |
242b7b46 | 31822 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31823 | }; |
31824 | ||
994141e6 | 31825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31828 | arg2 = (int) SWIG_AsInt(obj1); | |
31829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31830 | { |
31831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31832 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31833 | ||
31834 | wxPyEndAllowThreads(__tstate); | |
31835 | if (PyErr_Occurred()) SWIG_fail; | |
31836 | } | |
31837 | { | |
31838 | #if wxUSE_UNICODE | |
31839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31840 | #else | |
31841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31842 | #endif | |
31843 | } | |
31844 | return resultobj; | |
31845 | fail: | |
31846 | return NULL; | |
31847 | } | |
31848 | ||
31849 | ||
31850 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31851 | PyObject *resultobj; | |
31852 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31853 | wxFrame *result; | |
31854 | PyObject * obj0 = 0 ; | |
31855 | char *kwnames[] = { | |
31856 | (char *) "self", NULL | |
31857 | }; | |
31858 | ||
31859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31862 | { |
31863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31864 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31865 | ||
31866 | wxPyEndAllowThreads(__tstate); | |
31867 | if (PyErr_Occurred()) SWIG_fail; | |
31868 | } | |
31869 | { | |
412d302d | 31870 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
31871 | } |
31872 | return resultobj; | |
31873 | fail: | |
31874 | return NULL; | |
31875 | } | |
31876 | ||
31877 | ||
31878 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31879 | PyObject *resultobj; | |
31880 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31881 | bool result; | |
31882 | PyObject * obj0 = 0 ; | |
31883 | char *kwnames[] = { | |
31884 | (char *) "self", NULL | |
31885 | }; | |
31886 | ||
31887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31890 | { |
31891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31892 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31893 | ||
31894 | wxPyEndAllowThreads(__tstate); | |
31895 | if (PyErr_Occurred()) SWIG_fail; | |
31896 | } | |
4f89f6a3 RD |
31897 | { |
31898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31899 | } | |
d14a1e28 RD |
31900 | return resultobj; |
31901 | fail: | |
31902 | return NULL; | |
31903 | } | |
31904 | ||
31905 | ||
31906 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31907 | PyObject *resultobj; | |
31908 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31909 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31910 | PyObject * obj0 = 0 ; | |
31911 | PyObject * obj1 = 0 ; | |
31912 | char *kwnames[] = { | |
31913 | (char *) "self",(char *) "frame", NULL | |
31914 | }; | |
31915 | ||
31916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31921 | { |
31922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31923 | (arg1)->Attach(arg2); | |
31924 | ||
31925 | wxPyEndAllowThreads(__tstate); | |
31926 | if (PyErr_Occurred()) SWIG_fail; | |
31927 | } | |
31928 | Py_INCREF(Py_None); resultobj = Py_None; | |
31929 | return resultobj; | |
31930 | fail: | |
31931 | return NULL; | |
31932 | } | |
31933 | ||
31934 | ||
31935 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31936 | PyObject *resultobj; | |
31937 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31938 | PyObject * obj0 = 0 ; | |
31939 | char *kwnames[] = { | |
31940 | (char *) "self", NULL | |
31941 | }; | |
31942 | ||
31943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31946 | { |
31947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31948 | (arg1)->Detach(); | |
31949 | ||
31950 | wxPyEndAllowThreads(__tstate); | |
31951 | if (PyErr_Occurred()) SWIG_fail; | |
31952 | } | |
31953 | Py_INCREF(Py_None); resultobj = Py_None; | |
31954 | return resultobj; | |
31955 | fail: | |
31956 | return NULL; | |
31957 | } | |
31958 | ||
31959 | ||
31960 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31961 | PyObject *obj; | |
31962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31963 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31964 | Py_INCREF(obj); | |
31965 | return Py_BuildValue((char *)""); | |
31966 | } | |
31967 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31968 | PyObject *resultobj; | |
31969 | wxMenu *arg1 = (wxMenu *) NULL ; | |
a95a7133 | 31970 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
31971 | wxString const &arg3_defvalue = wxPyEmptyString ; |
31972 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31973 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31974 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31975 | int arg5 = (int) wxITEM_NORMAL ; | |
31976 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31977 | wxMenuItem *result; | |
e811c8ce RD |
31978 | bool temp3 = False ; |
31979 | bool temp4 = False ; | |
d14a1e28 | 31980 | PyObject * obj0 = 0 ; |
994141e6 | 31981 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31982 | PyObject * obj2 = 0 ; |
31983 | PyObject * obj3 = 0 ; | |
994141e6 | 31984 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31985 | PyObject * obj5 = 0 ; |
31986 | char *kwnames[] = { | |
31987 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31988 | }; | |
31989 | ||
994141e6 | 31990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 31991 | if (obj0) { |
15afbcd0 RD |
31992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31994 | } |
994141e6 | 31995 | if (obj1) { |
15afbcd0 RD |
31996 | arg2 = (int) SWIG_AsInt(obj1); |
31997 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31998 | } |
d14a1e28 RD |
31999 | if (obj2) { |
32000 | { | |
32001 | arg3 = wxString_in_helper(obj2); | |
32002 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 32003 | temp3 = True; |
d14a1e28 RD |
32004 | } |
32005 | } | |
32006 | if (obj3) { | |
32007 | { | |
32008 | arg4 = wxString_in_helper(obj3); | |
32009 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 32010 | temp4 = True; |
d14a1e28 RD |
32011 | } |
32012 | } | |
994141e6 | 32013 | if (obj4) { |
15afbcd0 RD |
32014 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
32015 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32016 | } |
d14a1e28 | 32017 | if (obj5) { |
15afbcd0 RD |
32018 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
32019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32020 | } |
32021 | { | |
32022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32023 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32024 | ||
32025 | wxPyEndAllowThreads(__tstate); | |
32026 | if (PyErr_Occurred()) SWIG_fail; | |
32027 | } | |
32028 | { | |
412d302d | 32029 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
32030 | } |
32031 | { | |
32032 | if (temp3) | |
32033 | delete arg3; | |
32034 | } | |
32035 | { | |
32036 | if (temp4) | |
32037 | delete arg4; | |
32038 | } | |
32039 | return resultobj; | |
32040 | fail: | |
32041 | { | |
32042 | if (temp3) | |
32043 | delete arg3; | |
32044 | } | |
32045 | { | |
32046 | if (temp4) | |
32047 | delete arg4; | |
32048 | } | |
32049 | return NULL; | |
32050 | } | |
32051 | ||
32052 | ||
32053 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32054 | PyObject *resultobj; | |
32055 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32056 | wxMenu *result; | |
32057 | PyObject * obj0 = 0 ; | |
32058 | char *kwnames[] = { | |
32059 | (char *) "self", NULL | |
32060 | }; | |
32061 | ||
32062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32065 | { |
32066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32067 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32068 | ||
32069 | wxPyEndAllowThreads(__tstate); | |
32070 | if (PyErr_Occurred()) SWIG_fail; | |
32071 | } | |
32072 | { | |
412d302d | 32073 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32074 | } |
32075 | return resultobj; | |
32076 | fail: | |
32077 | return NULL; | |
32078 | } | |
32079 | ||
32080 | ||
32081 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32082 | PyObject *resultobj; | |
32083 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32084 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32085 | PyObject * obj0 = 0 ; | |
32086 | PyObject * obj1 = 0 ; | |
32087 | char *kwnames[] = { | |
32088 | (char *) "self",(char *) "menu", NULL | |
32089 | }; | |
32090 | ||
32091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32094 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32096 | { |
32097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32098 | (arg1)->SetMenu(arg2); | |
32099 | ||
32100 | wxPyEndAllowThreads(__tstate); | |
32101 | if (PyErr_Occurred()) SWIG_fail; | |
32102 | } | |
32103 | Py_INCREF(Py_None); resultobj = Py_None; | |
32104 | return resultobj; | |
32105 | fail: | |
32106 | return NULL; | |
32107 | } | |
32108 | ||
32109 | ||
32110 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32111 | PyObject *resultobj; | |
32112 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32113 | int arg2 ; | |
32114 | PyObject * obj0 = 0 ; | |
994141e6 | 32115 | PyObject * obj1 = 0 ; |
d14a1e28 | 32116 | char *kwnames[] = { |
242b7b46 | 32117 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
32118 | }; |
32119 | ||
994141e6 | 32120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
32121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32123 | arg2 = (int) SWIG_AsInt(obj1); | |
32124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32125 | { |
32126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32127 | (arg1)->SetId(arg2); | |
32128 | ||
32129 | wxPyEndAllowThreads(__tstate); | |
32130 | if (PyErr_Occurred()) SWIG_fail; | |
32131 | } | |
32132 | Py_INCREF(Py_None); resultobj = Py_None; | |
32133 | return resultobj; | |
32134 | fail: | |
32135 | return NULL; | |
32136 | } | |
32137 | ||
32138 | ||
32139 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32140 | PyObject *resultobj; | |
32141 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32142 | int result; | |
32143 | PyObject * obj0 = 0 ; | |
32144 | char *kwnames[] = { | |
32145 | (char *) "self", NULL | |
32146 | }; | |
32147 | ||
32148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32151 | { |
32152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32153 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32154 | ||
32155 | wxPyEndAllowThreads(__tstate); | |
32156 | if (PyErr_Occurred()) SWIG_fail; | |
32157 | } | |
15afbcd0 | 32158 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32159 | return resultobj; |
32160 | fail: | |
32161 | return NULL; | |
32162 | } | |
32163 | ||
32164 | ||
32165 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32166 | PyObject *resultobj; | |
32167 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32168 | bool result; | |
32169 | PyObject * obj0 = 0 ; | |
32170 | char *kwnames[] = { | |
32171 | (char *) "self", NULL | |
32172 | }; | |
32173 | ||
32174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32177 | { |
32178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32179 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32180 | ||
32181 | wxPyEndAllowThreads(__tstate); | |
32182 | if (PyErr_Occurred()) SWIG_fail; | |
32183 | } | |
4f89f6a3 RD |
32184 | { |
32185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32186 | } | |
d14a1e28 RD |
32187 | return resultobj; |
32188 | fail: | |
32189 | return NULL; | |
32190 | } | |
32191 | ||
32192 | ||
32193 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32194 | PyObject *resultobj; | |
32195 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32196 | wxString *arg2 = 0 ; | |
e811c8ce | 32197 | bool temp2 = False ; |
d14a1e28 RD |
32198 | PyObject * obj0 = 0 ; |
32199 | PyObject * obj1 = 0 ; | |
32200 | char *kwnames[] = { | |
32201 | (char *) "self",(char *) "str", NULL | |
32202 | }; | |
32203 | ||
32204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32207 | { |
32208 | arg2 = wxString_in_helper(obj1); | |
32209 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32210 | temp2 = True; |
d14a1e28 RD |
32211 | } |
32212 | { | |
32213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32214 | (arg1)->SetText((wxString const &)*arg2); | |
32215 | ||
32216 | wxPyEndAllowThreads(__tstate); | |
32217 | if (PyErr_Occurred()) SWIG_fail; | |
32218 | } | |
32219 | Py_INCREF(Py_None); resultobj = Py_None; | |
32220 | { | |
32221 | if (temp2) | |
32222 | delete arg2; | |
32223 | } | |
32224 | return resultobj; | |
32225 | fail: | |
32226 | { | |
32227 | if (temp2) | |
32228 | delete arg2; | |
32229 | } | |
32230 | return NULL; | |
32231 | } | |
32232 | ||
32233 | ||
32234 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32235 | PyObject *resultobj; | |
32236 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32237 | wxString result; | |
32238 | PyObject * obj0 = 0 ; | |
32239 | char *kwnames[] = { | |
32240 | (char *) "self", NULL | |
32241 | }; | |
32242 | ||
32243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32246 | { |
32247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32248 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32249 | ||
32250 | wxPyEndAllowThreads(__tstate); | |
32251 | if (PyErr_Occurred()) SWIG_fail; | |
32252 | } | |
32253 | { | |
32254 | #if wxUSE_UNICODE | |
32255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32256 | #else | |
32257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32258 | #endif | |
32259 | } | |
32260 | return resultobj; | |
32261 | fail: | |
32262 | return NULL; | |
32263 | } | |
32264 | ||
32265 | ||
32266 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32267 | PyObject *resultobj; | |
32268 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32269 | wxString *result; | |
32270 | PyObject * obj0 = 0 ; | |
32271 | char *kwnames[] = { | |
32272 | (char *) "self", NULL | |
32273 | }; | |
32274 | ||
32275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32278 | { |
32279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32280 | { | |
32281 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32282 | result = (wxString *) &_result_ref; | |
32283 | } | |
32284 | ||
32285 | wxPyEndAllowThreads(__tstate); | |
32286 | if (PyErr_Occurred()) SWIG_fail; | |
32287 | } | |
cc6dd355 RD |
32288 | { |
32289 | #if wxUSE_UNICODE | |
32290 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32291 | #else | |
32292 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32293 | #endif | |
32294 | } | |
d14a1e28 RD |
32295 | return resultobj; |
32296 | fail: | |
32297 | return NULL; | |
32298 | } | |
32299 | ||
32300 | ||
32301 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32302 | PyObject *resultobj; | |
32303 | wxString *arg1 = 0 ; | |
32304 | wxString result; | |
e811c8ce | 32305 | bool temp1 = False ; |
d14a1e28 RD |
32306 | PyObject * obj0 = 0 ; |
32307 | char *kwnames[] = { | |
32308 | (char *) "text", NULL | |
32309 | }; | |
32310 | ||
32311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32312 | { | |
32313 | arg1 = wxString_in_helper(obj0); | |
32314 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 32315 | temp1 = True; |
d14a1e28 RD |
32316 | } |
32317 | { | |
32318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32319 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32320 | ||
32321 | wxPyEndAllowThreads(__tstate); | |
32322 | if (PyErr_Occurred()) SWIG_fail; | |
32323 | } | |
32324 | { | |
32325 | #if wxUSE_UNICODE | |
32326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32327 | #else | |
32328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32329 | #endif | |
32330 | } | |
32331 | { | |
32332 | if (temp1) | |
32333 | delete arg1; | |
32334 | } | |
32335 | return resultobj; | |
32336 | fail: | |
32337 | { | |
32338 | if (temp1) | |
32339 | delete arg1; | |
32340 | } | |
32341 | return NULL; | |
32342 | } | |
32343 | ||
32344 | ||
32345 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32346 | PyObject *resultobj; | |
32347 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32348 | int result; | |
32349 | PyObject * obj0 = 0 ; | |
32350 | char *kwnames[] = { | |
32351 | (char *) "self", NULL | |
32352 | }; | |
32353 | ||
32354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32357 | { |
32358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32359 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32360 | ||
32361 | wxPyEndAllowThreads(__tstate); | |
32362 | if (PyErr_Occurred()) SWIG_fail; | |
32363 | } | |
15afbcd0 | 32364 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32365 | return resultobj; |
32366 | fail: | |
32367 | return NULL; | |
32368 | } | |
32369 | ||
32370 | ||
a95a7133 RD |
32371 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { |
32372 | PyObject *resultobj; | |
32373 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32374 | int arg2 ; | |
32375 | PyObject * obj0 = 0 ; | |
32376 | PyObject * obj1 = 0 ; | |
32377 | char *kwnames[] = { | |
32378 | (char *) "self",(char *) "kind", NULL | |
32379 | }; | |
32380 | ||
32381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32384 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32385 | if (PyErr_Occurred()) SWIG_fail; | |
32386 | { | |
32387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32388 | (arg1)->SetKind((wxItemKind )arg2); | |
32389 | ||
32390 | wxPyEndAllowThreads(__tstate); | |
32391 | if (PyErr_Occurred()) SWIG_fail; | |
32392 | } | |
32393 | Py_INCREF(Py_None); resultobj = Py_None; | |
32394 | return resultobj; | |
32395 | fail: | |
32396 | return NULL; | |
32397 | } | |
32398 | ||
32399 | ||
d14a1e28 RD |
32400 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
32401 | PyObject *resultobj; | |
32402 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32403 | bool arg2 ; | |
32404 | PyObject * obj0 = 0 ; | |
32405 | PyObject * obj1 = 0 ; | |
32406 | char *kwnames[] = { | |
32407 | (char *) "self",(char *) "checkable", NULL | |
32408 | }; | |
32409 | ||
32410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32413 | arg2 = (bool) SWIG_AsBool(obj1); | |
32414 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32415 | { |
32416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32417 | (arg1)->SetCheckable(arg2); | |
32418 | ||
32419 | wxPyEndAllowThreads(__tstate); | |
32420 | if (PyErr_Occurred()) SWIG_fail; | |
32421 | } | |
32422 | Py_INCREF(Py_None); resultobj = Py_None; | |
32423 | return resultobj; | |
32424 | fail: | |
32425 | return NULL; | |
32426 | } | |
32427 | ||
32428 | ||
32429 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32430 | PyObject *resultobj; | |
32431 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32432 | bool result; | |
32433 | PyObject * obj0 = 0 ; | |
32434 | char *kwnames[] = { | |
32435 | (char *) "self", NULL | |
32436 | }; | |
32437 | ||
32438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32441 | { |
32442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32443 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32444 | ||
32445 | wxPyEndAllowThreads(__tstate); | |
32446 | if (PyErr_Occurred()) SWIG_fail; | |
32447 | } | |
4f89f6a3 RD |
32448 | { |
32449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32450 | } | |
d14a1e28 RD |
32451 | return resultobj; |
32452 | fail: | |
32453 | return NULL; | |
32454 | } | |
32455 | ||
32456 | ||
32457 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32458 | PyObject *resultobj; | |
32459 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32460 | bool result; | |
32461 | PyObject * obj0 = 0 ; | |
32462 | char *kwnames[] = { | |
32463 | (char *) "self", NULL | |
32464 | }; | |
32465 | ||
32466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32469 | { |
32470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32471 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32472 | ||
32473 | wxPyEndAllowThreads(__tstate); | |
32474 | if (PyErr_Occurred()) SWIG_fail; | |
32475 | } | |
4f89f6a3 RD |
32476 | { |
32477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32478 | } | |
d14a1e28 RD |
32479 | return resultobj; |
32480 | fail: | |
32481 | return NULL; | |
32482 | } | |
32483 | ||
32484 | ||
32485 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32486 | PyObject *resultobj; | |
32487 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32488 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32489 | PyObject * obj0 = 0 ; | |
32490 | PyObject * obj1 = 0 ; | |
32491 | char *kwnames[] = { | |
32492 | (char *) "self",(char *) "menu", NULL | |
32493 | }; | |
32494 | ||
32495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32500 | { |
32501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32502 | (arg1)->SetSubMenu(arg2); | |
32503 | ||
32504 | wxPyEndAllowThreads(__tstate); | |
32505 | if (PyErr_Occurred()) SWIG_fail; | |
32506 | } | |
32507 | Py_INCREF(Py_None); resultobj = Py_None; | |
32508 | return resultobj; | |
32509 | fail: | |
32510 | return NULL; | |
32511 | } | |
32512 | ||
32513 | ||
32514 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32515 | PyObject *resultobj; | |
32516 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32517 | wxMenu *result; | |
32518 | PyObject * obj0 = 0 ; | |
32519 | char *kwnames[] = { | |
32520 | (char *) "self", NULL | |
32521 | }; | |
32522 | ||
32523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32526 | { |
32527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32528 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32529 | ||
32530 | wxPyEndAllowThreads(__tstate); | |
32531 | if (PyErr_Occurred()) SWIG_fail; | |
32532 | } | |
32533 | { | |
412d302d | 32534 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
32535 | } |
32536 | return resultobj; | |
32537 | fail: | |
32538 | return NULL; | |
32539 | } | |
32540 | ||
32541 | ||
32542 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32543 | PyObject *resultobj; | |
32544 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32545 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32546 | PyObject * obj0 = 0 ; |
32547 | PyObject * obj1 = 0 ; | |
32548 | char *kwnames[] = { | |
32549 | (char *) "self",(char *) "enable", NULL | |
32550 | }; | |
32551 | ||
32552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32555 | if (obj1) { |
15afbcd0 RD |
32556 | arg2 = (bool) SWIG_AsBool(obj1); |
32557 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32558 | } |
32559 | { | |
32560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32561 | (arg1)->Enable(arg2); | |
32562 | ||
32563 | wxPyEndAllowThreads(__tstate); | |
32564 | if (PyErr_Occurred()) SWIG_fail; | |
32565 | } | |
32566 | Py_INCREF(Py_None); resultobj = Py_None; | |
32567 | return resultobj; | |
32568 | fail: | |
32569 | return NULL; | |
32570 | } | |
32571 | ||
32572 | ||
32573 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32574 | PyObject *resultobj; | |
32575 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32576 | bool result; | |
32577 | PyObject * obj0 = 0 ; | |
32578 | char *kwnames[] = { | |
32579 | (char *) "self", NULL | |
32580 | }; | |
32581 | ||
32582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32585 | { |
32586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32587 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32588 | ||
32589 | wxPyEndAllowThreads(__tstate); | |
32590 | if (PyErr_Occurred()) SWIG_fail; | |
32591 | } | |
4f89f6a3 RD |
32592 | { |
32593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32594 | } | |
d14a1e28 RD |
32595 | return resultobj; |
32596 | fail: | |
32597 | return NULL; | |
32598 | } | |
32599 | ||
32600 | ||
32601 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32602 | PyObject *resultobj; | |
32603 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32604 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32605 | PyObject * obj0 = 0 ; |
32606 | PyObject * obj1 = 0 ; | |
32607 | char *kwnames[] = { | |
32608 | (char *) "self",(char *) "check", NULL | |
32609 | }; | |
32610 | ||
32611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32614 | if (obj1) { |
15afbcd0 RD |
32615 | arg2 = (bool) SWIG_AsBool(obj1); |
32616 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32617 | } |
32618 | { | |
32619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32620 | (arg1)->Check(arg2); | |
32621 | ||
32622 | wxPyEndAllowThreads(__tstate); | |
32623 | if (PyErr_Occurred()) SWIG_fail; | |
32624 | } | |
32625 | Py_INCREF(Py_None); resultobj = Py_None; | |
32626 | return resultobj; | |
32627 | fail: | |
32628 | return NULL; | |
32629 | } | |
32630 | ||
32631 | ||
32632 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32633 | PyObject *resultobj; | |
32634 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32635 | bool result; | |
32636 | PyObject * obj0 = 0 ; | |
32637 | char *kwnames[] = { | |
32638 | (char *) "self", NULL | |
32639 | }; | |
32640 | ||
32641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32644 | { |
32645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32646 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32647 | ||
32648 | wxPyEndAllowThreads(__tstate); | |
32649 | if (PyErr_Occurred()) SWIG_fail; | |
32650 | } | |
4f89f6a3 RD |
32651 | { |
32652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32653 | } | |
d14a1e28 RD |
32654 | return resultobj; |
32655 | fail: | |
32656 | return NULL; | |
32657 | } | |
32658 | ||
32659 | ||
32660 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32661 | PyObject *resultobj; | |
32662 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32663 | PyObject * obj0 = 0 ; | |
32664 | char *kwnames[] = { | |
32665 | (char *) "self", NULL | |
32666 | }; | |
32667 | ||
32668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32671 | { |
32672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32673 | (arg1)->Toggle(); | |
32674 | ||
32675 | wxPyEndAllowThreads(__tstate); | |
32676 | if (PyErr_Occurred()) SWIG_fail; | |
32677 | } | |
32678 | Py_INCREF(Py_None); resultobj = Py_None; | |
32679 | return resultobj; | |
32680 | fail: | |
32681 | return NULL; | |
32682 | } | |
32683 | ||
32684 | ||
32685 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32686 | PyObject *resultobj; | |
32687 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32688 | wxString *arg2 = 0 ; | |
e811c8ce | 32689 | bool temp2 = False ; |
d14a1e28 RD |
32690 | PyObject * obj0 = 0 ; |
32691 | PyObject * obj1 = 0 ; | |
32692 | char *kwnames[] = { | |
32693 | (char *) "self",(char *) "str", NULL | |
32694 | }; | |
32695 | ||
32696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32699 | { |
32700 | arg2 = wxString_in_helper(obj1); | |
32701 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32702 | temp2 = True; |
d14a1e28 RD |
32703 | } |
32704 | { | |
32705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32706 | (arg1)->SetHelp((wxString const &)*arg2); | |
32707 | ||
32708 | wxPyEndAllowThreads(__tstate); | |
32709 | if (PyErr_Occurred()) SWIG_fail; | |
32710 | } | |
32711 | Py_INCREF(Py_None); resultobj = Py_None; | |
32712 | { | |
32713 | if (temp2) | |
32714 | delete arg2; | |
32715 | } | |
32716 | return resultobj; | |
32717 | fail: | |
32718 | { | |
32719 | if (temp2) | |
32720 | delete arg2; | |
32721 | } | |
32722 | return NULL; | |
32723 | } | |
32724 | ||
32725 | ||
32726 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32727 | PyObject *resultobj; | |
32728 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32729 | wxString *result; | |
32730 | PyObject * obj0 = 0 ; | |
32731 | char *kwnames[] = { | |
32732 | (char *) "self", NULL | |
32733 | }; | |
32734 | ||
32735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32738 | { |
32739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32740 | { | |
32741 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32742 | result = (wxString *) &_result_ref; | |
32743 | } | |
32744 | ||
32745 | wxPyEndAllowThreads(__tstate); | |
32746 | if (PyErr_Occurred()) SWIG_fail; | |
32747 | } | |
cc6dd355 RD |
32748 | { |
32749 | #if wxUSE_UNICODE | |
32750 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32751 | #else | |
32752 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32753 | #endif | |
32754 | } | |
d14a1e28 RD |
32755 | return resultobj; |
32756 | fail: | |
32757 | return NULL; | |
32758 | } | |
32759 | ||
32760 | ||
32761 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32762 | PyObject *resultobj; | |
32763 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32764 | wxAcceleratorEntry *result; | |
32765 | PyObject * obj0 = 0 ; | |
32766 | char *kwnames[] = { | |
32767 | (char *) "self", NULL | |
32768 | }; | |
32769 | ||
32770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32773 | { |
32774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32775 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32776 | ||
32777 | wxPyEndAllowThreads(__tstate); | |
32778 | if (PyErr_Occurred()) SWIG_fail; | |
32779 | } | |
15afbcd0 | 32780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
32781 | return resultobj; |
32782 | fail: | |
32783 | return NULL; | |
32784 | } | |
32785 | ||
32786 | ||
32787 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32788 | PyObject *resultobj; | |
32789 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32790 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32791 | PyObject * obj0 = 0 ; | |
32792 | PyObject * obj1 = 0 ; | |
32793 | char *kwnames[] = { | |
32794 | (char *) "self",(char *) "accel", NULL | |
32795 | }; | |
32796 | ||
32797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32802 | { |
32803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32804 | (arg1)->SetAccel(arg2); | |
32805 | ||
32806 | wxPyEndAllowThreads(__tstate); | |
32807 | if (PyErr_Occurred()) SWIG_fail; | |
32808 | } | |
32809 | Py_INCREF(Py_None); resultobj = Py_None; | |
32810 | return resultobj; | |
32811 | fail: | |
32812 | return NULL; | |
32813 | } | |
32814 | ||
32815 | ||
32816 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32817 | PyObject *resultobj; | |
32818 | int result; | |
32819 | char *kwnames[] = { | |
32820 | NULL | |
32821 | }; | |
32822 | ||
32823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32824 | { | |
32825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32826 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
32827 | ||
32828 | wxPyEndAllowThreads(__tstate); | |
32829 | if (PyErr_Occurred()) SWIG_fail; | |
32830 | } | |
15afbcd0 | 32831 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32832 | return resultobj; |
32833 | fail: | |
32834 | return NULL; | |
32835 | } | |
32836 | ||
32837 | ||
32838 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32839 | PyObject *resultobj; | |
32840 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32841 | wxBitmap *arg2 = 0 ; | |
32842 | PyObject * obj0 = 0 ; | |
32843 | PyObject * obj1 = 0 ; | |
32844 | char *kwnames[] = { | |
32845 | (char *) "self",(char *) "bitmap", NULL | |
32846 | }; | |
32847 | ||
32848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32853 | SWIG_fail; | |
d14a1e28 | 32854 | if (arg2 == NULL) { |
15afbcd0 RD |
32855 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32856 | SWIG_fail; | |
d14a1e28 RD |
32857 | } |
32858 | { | |
32859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32860 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32861 | ||
32862 | wxPyEndAllowThreads(__tstate); | |
32863 | if (PyErr_Occurred()) SWIG_fail; | |
32864 | } | |
32865 | Py_INCREF(Py_None); resultobj = Py_None; | |
32866 | return resultobj; | |
32867 | fail: | |
32868 | return NULL; | |
32869 | } | |
32870 | ||
32871 | ||
32872 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32873 | PyObject *resultobj; | |
32874 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32875 | wxBitmap *result; | |
32876 | PyObject * obj0 = 0 ; | |
32877 | char *kwnames[] = { | |
32878 | (char *) "self", NULL | |
32879 | }; | |
32880 | ||
32881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32884 | { |
32885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32886 | { | |
32887 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32888 | result = (wxBitmap *) &_result_ref; | |
32889 | } | |
32890 | ||
32891 | wxPyEndAllowThreads(__tstate); | |
32892 | if (PyErr_Occurred()) SWIG_fail; | |
32893 | } | |
4276dc52 RD |
32894 | { |
32895 | wxBitmap* resultptr = new wxBitmap(*result); | |
32896 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32897 | } | |
d14a1e28 RD |
32898 | return resultobj; |
32899 | fail: | |
32900 | return NULL; | |
32901 | } | |
32902 | ||
32903 | ||
32904 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32905 | PyObject *obj; | |
32906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32907 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32908 | Py_INCREF(obj); | |
32909 | return Py_BuildValue((char *)""); | |
32910 | } | |
b2dc1044 RD |
32911 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
32912 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
32913 | return 1; | |
32914 | } | |
32915 | ||
32916 | ||
32917 | static PyObject *_wrap_ControlNameStr_get() { | |
32918 | PyObject *pyobj; | |
32919 | ||
32920 | { | |
32921 | #if wxUSE_UNICODE | |
32922 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32923 | #else | |
32924 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32925 | #endif | |
32926 | } | |
32927 | return pyobj; | |
32928 | } | |
32929 | ||
32930 | ||
d14a1e28 RD |
32931 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32932 | PyObject *resultobj; | |
32933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 32934 | int arg2 = (int) -1 ; |
d14a1e28 RD |
32935 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32936 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32937 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32938 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32939 | long arg5 = (long) 0 ; | |
32940 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32941 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32942 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32943 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32944 | wxControl *result; | |
32945 | wxPoint temp3 ; | |
32946 | wxSize temp4 ; | |
e811c8ce | 32947 | bool temp7 = False ; |
d14a1e28 | 32948 | PyObject * obj0 = 0 ; |
994141e6 | 32949 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32950 | PyObject * obj2 = 0 ; |
32951 | PyObject * obj3 = 0 ; | |
994141e6 | 32952 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32953 | PyObject * obj5 = 0 ; |
32954 | PyObject * obj6 = 0 ; | |
32955 | char *kwnames[] = { | |
32956 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32957 | }; | |
32958 | ||
248ed943 | 32959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
32960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
32962 | if (obj1) { |
32963 | arg2 = (int) SWIG_AsInt(obj1); | |
32964 | if (PyErr_Occurred()) SWIG_fail; | |
32965 | } | |
d14a1e28 RD |
32966 | if (obj2) { |
32967 | { | |
32968 | arg3 = &temp3; | |
32969 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32970 | } | |
32971 | } | |
32972 | if (obj3) { | |
32973 | { | |
32974 | arg4 = &temp4; | |
32975 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32976 | } | |
32977 | } | |
994141e6 | 32978 | if (obj4) { |
15afbcd0 RD |
32979 | arg5 = (long) SWIG_AsLong(obj4); |
32980 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32981 | } |
d14a1e28 | 32982 | if (obj5) { |
15afbcd0 RD |
32983 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32985 | SWIG_fail; | |
d14a1e28 | 32986 | if (arg6 == NULL) { |
15afbcd0 RD |
32987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32988 | SWIG_fail; | |
d14a1e28 RD |
32989 | } |
32990 | } | |
32991 | if (obj6) { | |
32992 | { | |
32993 | arg7 = wxString_in_helper(obj6); | |
32994 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 32995 | temp7 = True; |
d14a1e28 RD |
32996 | } |
32997 | } | |
32998 | { | |
e3b71cb8 | 32999 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33001 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33002 | ||
33003 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33004 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33005 | } |
b0f7404b | 33006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
33007 | { |
33008 | if (temp7) | |
33009 | delete arg7; | |
33010 | } | |
33011 | return resultobj; | |
33012 | fail: | |
33013 | { | |
33014 | if (temp7) | |
33015 | delete arg7; | |
33016 | } | |
33017 | return NULL; | |
33018 | } | |
33019 | ||
33020 | ||
33021 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33022 | PyObject *resultobj; | |
33023 | wxControl *result; | |
33024 | char *kwnames[] = { | |
33025 | NULL | |
33026 | }; | |
33027 | ||
33028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33029 | { | |
e3b71cb8 | 33030 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
33031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33032 | result = (wxControl *)new wxControl(); | |
33033 | ||
33034 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33035 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 33036 | } |
b0f7404b | 33037 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d14a1e28 RD |
33038 | return resultobj; |
33039 | fail: | |
33040 | return NULL; | |
33041 | } | |
33042 | ||
33043 | ||
33044 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33045 | PyObject *resultobj; | |
33046 | wxControl *arg1 = (wxControl *) 0 ; | |
33047 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 33048 | int arg3 = (int) -1 ; |
d14a1e28 RD |
33049 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33050 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33051 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33052 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33053 | long arg6 = (long) 0 ; | |
33054 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33055 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33056 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33057 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33058 | bool result; | |
33059 | wxPoint temp4 ; | |
33060 | wxSize temp5 ; | |
e811c8ce | 33061 | bool temp8 = False ; |
d14a1e28 RD |
33062 | PyObject * obj0 = 0 ; |
33063 | PyObject * obj1 = 0 ; | |
994141e6 | 33064 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33065 | PyObject * obj3 = 0 ; |
33066 | PyObject * obj4 = 0 ; | |
994141e6 | 33067 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
33068 | PyObject * obj6 = 0 ; |
33069 | PyObject * obj7 = 0 ; | |
33070 | char *kwnames[] = { | |
33071 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33072 | }; | |
33073 | ||
248ed943 | 33074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
33075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
33079 | if (obj2) { |
33080 | arg3 = (int) SWIG_AsInt(obj2); | |
33081 | if (PyErr_Occurred()) SWIG_fail; | |
33082 | } | |
d14a1e28 RD |
33083 | if (obj3) { |
33084 | { | |
33085 | arg4 = &temp4; | |
33086 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33087 | } | |
33088 | } | |
33089 | if (obj4) { | |
33090 | { | |
33091 | arg5 = &temp5; | |
33092 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33093 | } | |
33094 | } | |
994141e6 | 33095 | if (obj5) { |
15afbcd0 RD |
33096 | arg6 = (long) SWIG_AsLong(obj5); |
33097 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 33098 | } |
d14a1e28 | 33099 | if (obj6) { |
15afbcd0 RD |
33100 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
33101 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33102 | SWIG_fail; | |
d14a1e28 | 33103 | if (arg7 == NULL) { |
15afbcd0 RD |
33104 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33105 | SWIG_fail; | |
d14a1e28 RD |
33106 | } |
33107 | } | |
33108 | if (obj7) { | |
33109 | { | |
33110 | arg8 = wxString_in_helper(obj7); | |
33111 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 33112 | temp8 = True; |
d14a1e28 RD |
33113 | } |
33114 | } | |
33115 | { | |
33116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33117 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33118 | ||
33119 | wxPyEndAllowThreads(__tstate); | |
33120 | if (PyErr_Occurred()) SWIG_fail; | |
33121 | } | |
4f89f6a3 RD |
33122 | { |
33123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33124 | } | |
d14a1e28 RD |
33125 | { |
33126 | if (temp8) | |
33127 | delete arg8; | |
33128 | } | |
33129 | return resultobj; | |
33130 | fail: | |
33131 | { | |
33132 | if (temp8) | |
33133 | delete arg8; | |
33134 | } | |
33135 | return NULL; | |
33136 | } | |
33137 | ||
33138 | ||
33139 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33140 | PyObject *resultobj; | |
33141 | wxControl *arg1 = (wxControl *) 0 ; | |
33142 | wxCommandEvent *arg2 = 0 ; | |
33143 | PyObject * obj0 = 0 ; | |
33144 | PyObject * obj1 = 0 ; | |
33145 | char *kwnames[] = { | |
33146 | (char *) "self",(char *) "event", NULL | |
33147 | }; | |
33148 | ||
33149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33152 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33153 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33154 | SWIG_fail; | |
d14a1e28 | 33155 | if (arg2 == NULL) { |
15afbcd0 RD |
33156 | PyErr_SetString(PyExc_TypeError,"null reference"); |
33157 | SWIG_fail; | |
d14a1e28 RD |
33158 | } |
33159 | { | |
33160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33161 | (arg1)->Command(*arg2); | |
33162 | ||
33163 | wxPyEndAllowThreads(__tstate); | |
33164 | if (PyErr_Occurred()) SWIG_fail; | |
33165 | } | |
33166 | Py_INCREF(Py_None); resultobj = Py_None; | |
33167 | return resultobj; | |
33168 | fail: | |
33169 | return NULL; | |
33170 | } | |
33171 | ||
33172 | ||
33173 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33174 | PyObject *resultobj; | |
33175 | wxControl *arg1 = (wxControl *) 0 ; | |
33176 | wxString result; | |
33177 | PyObject * obj0 = 0 ; | |
33178 | char *kwnames[] = { | |
33179 | (char *) "self", NULL | |
33180 | }; | |
33181 | ||
33182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33185 | { |
33186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33187 | result = (arg1)->GetLabel(); | |
33188 | ||
33189 | wxPyEndAllowThreads(__tstate); | |
33190 | if (PyErr_Occurred()) SWIG_fail; | |
33191 | } | |
33192 | { | |
33193 | #if wxUSE_UNICODE | |
33194 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33195 | #else | |
33196 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33197 | #endif | |
33198 | } | |
33199 | return resultobj; | |
33200 | fail: | |
33201 | return NULL; | |
33202 | } | |
33203 | ||
33204 | ||
33205 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33206 | PyObject *resultobj; | |
33207 | wxControl *arg1 = (wxControl *) 0 ; | |
33208 | wxString *arg2 = 0 ; | |
e811c8ce | 33209 | bool temp2 = False ; |
d14a1e28 RD |
33210 | PyObject * obj0 = 0 ; |
33211 | PyObject * obj1 = 0 ; | |
33212 | char *kwnames[] = { | |
33213 | (char *) "self",(char *) "label", NULL | |
33214 | }; | |
33215 | ||
33216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33219 | { |
33220 | arg2 = wxString_in_helper(obj1); | |
33221 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33222 | temp2 = True; |
d14a1e28 RD |
33223 | } |
33224 | { | |
33225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33226 | (arg1)->SetLabel((wxString const &)*arg2); | |
33227 | ||
33228 | wxPyEndAllowThreads(__tstate); | |
33229 | if (PyErr_Occurred()) SWIG_fail; | |
33230 | } | |
33231 | Py_INCREF(Py_None); resultobj = Py_None; | |
33232 | { | |
33233 | if (temp2) | |
33234 | delete arg2; | |
33235 | } | |
33236 | return resultobj; | |
33237 | fail: | |
33238 | { | |
33239 | if (temp2) | |
33240 | delete arg2; | |
33241 | } | |
33242 | return NULL; | |
33243 | } | |
33244 | ||
33245 | ||
74a57fcd RD |
33246 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
33247 | PyObject *resultobj; | |
33248 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33249 | wxVisualAttributes result; | |
33250 | PyObject * obj0 = 0 ; | |
33251 | char *kwnames[] = { | |
33252 | (char *) "variant", NULL | |
33253 | }; | |
33254 | ||
33255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33256 | if (obj0) { | |
33257 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
33258 | if (PyErr_Occurred()) SWIG_fail; | |
33259 | } | |
33260 | { | |
110da5b0 | 33261 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
33262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33263 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33264 | ||
33265 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 33266 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
33267 | } |
33268 | { | |
33269 | wxVisualAttributes * resultptr; | |
33270 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33271 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33272 | } | |
33273 | return resultobj; | |
33274 | fail: | |
33275 | return NULL; | |
33276 | } | |
33277 | ||
33278 | ||
d14a1e28 RD |
33279 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { |
33280 | PyObject *obj; | |
33281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33282 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33283 | Py_INCREF(obj); | |
33284 | return Py_BuildValue((char *)""); | |
33285 | } | |
33286 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33287 | PyObject *resultobj; | |
33288 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33289 | wxString *arg2 = 0 ; | |
33290 | PyObject *arg3 = (PyObject *) NULL ; | |
33291 | int result; | |
e811c8ce | 33292 | bool temp2 = False ; |
d14a1e28 RD |
33293 | PyObject * obj0 = 0 ; |
33294 | PyObject * obj1 = 0 ; | |
33295 | PyObject * obj2 = 0 ; | |
33296 | char *kwnames[] = { | |
33297 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33298 | }; | |
33299 | ||
33300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
33301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33303 | { |
33304 | arg2 = wxString_in_helper(obj1); | |
33305 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33306 | temp2 = True; |
d14a1e28 RD |
33307 | } |
33308 | if (obj2) { | |
33309 | arg3 = obj2; | |
33310 | } | |
33311 | { | |
33312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33313 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33314 | ||
33315 | wxPyEndAllowThreads(__tstate); | |
33316 | if (PyErr_Occurred()) SWIG_fail; | |
33317 | } | |
15afbcd0 | 33318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33319 | { |
33320 | if (temp2) | |
33321 | delete arg2; | |
33322 | } | |
33323 | return resultobj; | |
33324 | fail: | |
33325 | { | |
33326 | if (temp2) | |
33327 | delete arg2; | |
33328 | } | |
33329 | return NULL; | |
33330 | } | |
33331 | ||
33332 | ||
33333 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33334 | PyObject *resultobj; | |
33335 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33336 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 33337 | bool temp2 = False ; |
d14a1e28 RD |
33338 | PyObject * obj0 = 0 ; |
33339 | PyObject * obj1 = 0 ; | |
33340 | char *kwnames[] = { | |
33341 | (char *) "self",(char *) "strings", NULL | |
33342 | }; | |
33343 | ||
33344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33347 | { |
33348 | if (! PySequence_Check(obj1)) { | |
33349 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33350 | SWIG_fail; | |
33351 | } | |
33352 | arg2 = new wxArrayString; | |
3adfb63b | 33353 | temp2 = True; |
d14a1e28 RD |
33354 | int i, len=PySequence_Length(obj1); |
33355 | for (i=0; i<len; i++) { | |
33356 | PyObject* item = PySequence_GetItem(obj1, i); | |
33357 | #if wxUSE_UNICODE | |
33358 | PyObject* str = PyObject_Unicode(item); | |
33359 | #else | |
33360 | PyObject* str = PyObject_Str(item); | |
33361 | #endif | |
74a57fcd | 33362 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33363 | arg2->Add(Py2wxString(str)); |
33364 | Py_DECREF(item); | |
33365 | Py_DECREF(str); | |
33366 | } | |
33367 | } | |
33368 | { | |
33369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33370 | (arg1)->Append((wxArrayString const &)*arg2); | |
33371 | ||
33372 | wxPyEndAllowThreads(__tstate); | |
33373 | if (PyErr_Occurred()) SWIG_fail; | |
33374 | } | |
33375 | Py_INCREF(Py_None); resultobj = Py_None; | |
33376 | { | |
3adfb63b | 33377 | if (temp2) delete arg2; |
d14a1e28 RD |
33378 | } |
33379 | return resultobj; | |
33380 | fail: | |
33381 | { | |
3adfb63b | 33382 | if (temp2) delete arg2; |
d14a1e28 RD |
33383 | } |
33384 | return NULL; | |
33385 | } | |
33386 | ||
33387 | ||
33388 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33389 | PyObject *resultobj; | |
33390 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33391 | wxString *arg2 = 0 ; | |
33392 | int arg3 ; | |
33393 | PyObject *arg4 = (PyObject *) NULL ; | |
33394 | int result; | |
e811c8ce | 33395 | bool temp2 = False ; |
d14a1e28 RD |
33396 | PyObject * obj0 = 0 ; |
33397 | PyObject * obj1 = 0 ; | |
994141e6 | 33398 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33399 | PyObject * obj3 = 0 ; |
33400 | char *kwnames[] = { | |
33401 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33402 | }; | |
33403 | ||
994141e6 | 33404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
33405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33407 | { |
33408 | arg2 = wxString_in_helper(obj1); | |
33409 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33410 | temp2 = True; |
d14a1e28 | 33411 | } |
15afbcd0 RD |
33412 | arg3 = (int) SWIG_AsInt(obj2); |
33413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33414 | if (obj3) { |
33415 | arg4 = obj3; | |
33416 | } | |
33417 | { | |
33418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33419 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33420 | ||
33421 | wxPyEndAllowThreads(__tstate); | |
33422 | if (PyErr_Occurred()) SWIG_fail; | |
33423 | } | |
15afbcd0 | 33424 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33425 | { |
33426 | if (temp2) | |
33427 | delete arg2; | |
33428 | } | |
33429 | return resultobj; | |
33430 | fail: | |
33431 | { | |
33432 | if (temp2) | |
33433 | delete arg2; | |
33434 | } | |
33435 | return NULL; | |
33436 | } | |
33437 | ||
33438 | ||
33439 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33440 | PyObject *resultobj; | |
33441 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33442 | PyObject * obj0 = 0 ; | |
33443 | char *kwnames[] = { | |
33444 | (char *) "self", NULL | |
33445 | }; | |
33446 | ||
33447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33450 | { |
33451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33452 | (arg1)->Clear(); | |
33453 | ||
33454 | wxPyEndAllowThreads(__tstate); | |
33455 | if (PyErr_Occurred()) SWIG_fail; | |
33456 | } | |
33457 | Py_INCREF(Py_None); resultobj = Py_None; | |
33458 | return resultobj; | |
33459 | fail: | |
33460 | return NULL; | |
33461 | } | |
33462 | ||
33463 | ||
33464 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33465 | PyObject *resultobj; | |
33466 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33467 | int arg2 ; | |
33468 | PyObject * obj0 = 0 ; | |
994141e6 | 33469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33470 | char *kwnames[] = { |
33471 | (char *) "self",(char *) "n", NULL | |
33472 | }; | |
33473 | ||
994141e6 | 33474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33477 | arg2 = (int) SWIG_AsInt(obj1); | |
33478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33479 | { |
33480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33481 | (arg1)->Delete(arg2); | |
33482 | ||
33483 | wxPyEndAllowThreads(__tstate); | |
33484 | if (PyErr_Occurred()) SWIG_fail; | |
33485 | } | |
33486 | Py_INCREF(Py_None); resultobj = Py_None; | |
33487 | return resultobj; | |
33488 | fail: | |
33489 | return NULL; | |
33490 | } | |
33491 | ||
33492 | ||
33493 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33494 | PyObject *resultobj; | |
33495 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33496 | int result; | |
33497 | PyObject * obj0 = 0 ; | |
33498 | char *kwnames[] = { | |
33499 | (char *) "self", NULL | |
33500 | }; | |
33501 | ||
33502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33505 | { |
33506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33507 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33508 | ||
33509 | wxPyEndAllowThreads(__tstate); | |
33510 | if (PyErr_Occurred()) SWIG_fail; | |
33511 | } | |
15afbcd0 | 33512 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33513 | return resultobj; |
33514 | fail: | |
33515 | return NULL; | |
33516 | } | |
33517 | ||
33518 | ||
33519 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33520 | PyObject *resultobj; | |
33521 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33522 | bool result; | |
33523 | PyObject * obj0 = 0 ; | |
33524 | char *kwnames[] = { | |
33525 | (char *) "self", NULL | |
33526 | }; | |
33527 | ||
33528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33531 | { |
33532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33533 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33534 | ||
33535 | wxPyEndAllowThreads(__tstate); | |
33536 | if (PyErr_Occurred()) SWIG_fail; | |
33537 | } | |
4f89f6a3 RD |
33538 | { |
33539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33540 | } | |
d14a1e28 RD |
33541 | return resultobj; |
33542 | fail: | |
33543 | return NULL; | |
33544 | } | |
33545 | ||
33546 | ||
33547 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33548 | PyObject *resultobj; | |
33549 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33550 | int arg2 ; | |
33551 | wxString result; | |
33552 | PyObject * obj0 = 0 ; | |
994141e6 | 33553 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33554 | char *kwnames[] = { |
33555 | (char *) "self",(char *) "n", NULL | |
33556 | }; | |
33557 | ||
994141e6 | 33558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33561 | arg2 = (int) SWIG_AsInt(obj1); | |
33562 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33563 | { |
33564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33565 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33566 | ||
33567 | wxPyEndAllowThreads(__tstate); | |
33568 | if (PyErr_Occurred()) SWIG_fail; | |
33569 | } | |
33570 | { | |
33571 | #if wxUSE_UNICODE | |
33572 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33573 | #else | |
33574 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33575 | #endif | |
33576 | } | |
33577 | return resultobj; | |
33578 | fail: | |
33579 | return NULL; | |
33580 | } | |
33581 | ||
33582 | ||
33583 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33584 | PyObject *resultobj; | |
33585 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33586 | wxArrayString result; | |
33587 | PyObject * obj0 = 0 ; | |
33588 | char *kwnames[] = { | |
33589 | (char *) "self", NULL | |
33590 | }; | |
33591 | ||
33592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33595 | { |
33596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33597 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33598 | ||
33599 | wxPyEndAllowThreads(__tstate); | |
33600 | if (PyErr_Occurred()) SWIG_fail; | |
33601 | } | |
33602 | { | |
33603 | resultobj = wxArrayString2PyList_helper(result); | |
33604 | } | |
33605 | return resultobj; | |
33606 | fail: | |
33607 | return NULL; | |
33608 | } | |
33609 | ||
33610 | ||
33611 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33612 | PyObject *resultobj; | |
33613 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33614 | int arg2 ; | |
33615 | wxString *arg3 = 0 ; | |
e811c8ce | 33616 | bool temp3 = False ; |
d14a1e28 | 33617 | PyObject * obj0 = 0 ; |
994141e6 | 33618 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33619 | PyObject * obj2 = 0 ; |
33620 | char *kwnames[] = { | |
33621 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33622 | }; | |
33623 | ||
994141e6 | 33624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33627 | arg2 = (int) SWIG_AsInt(obj1); | |
33628 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33629 | { |
33630 | arg3 = wxString_in_helper(obj2); | |
33631 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 33632 | temp3 = True; |
d14a1e28 RD |
33633 | } |
33634 | { | |
33635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33636 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33637 | ||
33638 | wxPyEndAllowThreads(__tstate); | |
33639 | if (PyErr_Occurred()) SWIG_fail; | |
33640 | } | |
33641 | Py_INCREF(Py_None); resultobj = Py_None; | |
33642 | { | |
33643 | if (temp3) | |
33644 | delete arg3; | |
33645 | } | |
33646 | return resultobj; | |
33647 | fail: | |
33648 | { | |
33649 | if (temp3) | |
33650 | delete arg3; | |
33651 | } | |
33652 | return NULL; | |
33653 | } | |
33654 | ||
33655 | ||
33656 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33657 | PyObject *resultobj; | |
33658 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33659 | wxString *arg2 = 0 ; | |
33660 | int result; | |
e811c8ce | 33661 | bool temp2 = False ; |
d14a1e28 RD |
33662 | PyObject * obj0 = 0 ; |
33663 | PyObject * obj1 = 0 ; | |
33664 | char *kwnames[] = { | |
33665 | (char *) "self",(char *) "s", NULL | |
33666 | }; | |
33667 | ||
33668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33671 | { |
33672 | arg2 = wxString_in_helper(obj1); | |
33673 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33674 | temp2 = True; |
d14a1e28 RD |
33675 | } |
33676 | { | |
33677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33678 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33679 | ||
33680 | wxPyEndAllowThreads(__tstate); | |
33681 | if (PyErr_Occurred()) SWIG_fail; | |
33682 | } | |
15afbcd0 | 33683 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33684 | { |
33685 | if (temp2) | |
33686 | delete arg2; | |
33687 | } | |
33688 | return resultobj; | |
33689 | fail: | |
33690 | { | |
33691 | if (temp2) | |
33692 | delete arg2; | |
33693 | } | |
33694 | return NULL; | |
33695 | } | |
33696 | ||
33697 | ||
33698 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33699 | PyObject *resultobj; | |
33700 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33701 | int arg2 ; | |
33702 | PyObject * obj0 = 0 ; | |
994141e6 | 33703 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33704 | char *kwnames[] = { |
33705 | (char *) "self",(char *) "n", NULL | |
33706 | }; | |
33707 | ||
994141e6 | 33708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33711 | arg2 = (int) SWIG_AsInt(obj1); | |
33712 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33713 | { |
33714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33715 | (arg1)->Select(arg2); | |
33716 | ||
33717 | wxPyEndAllowThreads(__tstate); | |
33718 | if (PyErr_Occurred()) SWIG_fail; | |
33719 | } | |
33720 | Py_INCREF(Py_None); resultobj = Py_None; | |
33721 | return resultobj; | |
33722 | fail: | |
33723 | return NULL; | |
33724 | } | |
33725 | ||
33726 | ||
33727 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33728 | PyObject *resultobj; | |
33729 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33730 | int result; | |
33731 | PyObject * obj0 = 0 ; | |
33732 | char *kwnames[] = { | |
33733 | (char *) "self", NULL | |
33734 | }; | |
33735 | ||
33736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33739 | { |
33740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33741 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33742 | ||
33743 | wxPyEndAllowThreads(__tstate); | |
33744 | if (PyErr_Occurred()) SWIG_fail; | |
33745 | } | |
15afbcd0 | 33746 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33747 | return resultobj; |
33748 | fail: | |
33749 | return NULL; | |
33750 | } | |
33751 | ||
33752 | ||
33753 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33754 | PyObject *resultobj; | |
33755 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33756 | wxString result; | |
33757 | PyObject * obj0 = 0 ; | |
33758 | char *kwnames[] = { | |
33759 | (char *) "self", NULL | |
33760 | }; | |
33761 | ||
33762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33765 | { |
33766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33767 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33768 | ||
33769 | wxPyEndAllowThreads(__tstate); | |
33770 | if (PyErr_Occurred()) SWIG_fail; | |
33771 | } | |
33772 | { | |
33773 | #if wxUSE_UNICODE | |
33774 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33775 | #else | |
33776 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33777 | #endif | |
33778 | } | |
33779 | return resultobj; | |
33780 | fail: | |
33781 | return NULL; | |
33782 | } | |
33783 | ||
33784 | ||
33785 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33786 | PyObject *resultobj; | |
33787 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33788 | int arg2 ; | |
33789 | PyObject *result; | |
33790 | PyObject * obj0 = 0 ; | |
994141e6 | 33791 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33792 | char *kwnames[] = { |
33793 | (char *) "self",(char *) "n", NULL | |
33794 | }; | |
33795 | ||
994141e6 | 33796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33799 | arg2 = (int) SWIG_AsInt(obj1); | |
33800 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33801 | { |
33802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33803 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33804 | ||
33805 | wxPyEndAllowThreads(__tstate); | |
33806 | if (PyErr_Occurred()) SWIG_fail; | |
33807 | } | |
33808 | resultobj = result; | |
33809 | return resultobj; | |
33810 | fail: | |
33811 | return NULL; | |
33812 | } | |
33813 | ||
33814 | ||
33815 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33816 | PyObject *resultobj; | |
33817 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33818 | int arg2 ; | |
33819 | PyObject *arg3 = (PyObject *) 0 ; | |
33820 | PyObject * obj0 = 0 ; | |
994141e6 | 33821 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33822 | PyObject * obj2 = 0 ; |
33823 | char *kwnames[] = { | |
33824 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33825 | }; | |
33826 | ||
994141e6 | 33827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33830 | arg2 = (int) SWIG_AsInt(obj1); | |
33831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33832 | arg3 = obj2; |
33833 | { | |
33834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33835 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33836 | ||
33837 | wxPyEndAllowThreads(__tstate); | |
33838 | if (PyErr_Occurred()) SWIG_fail; | |
33839 | } | |
33840 | Py_INCREF(Py_None); resultobj = Py_None; | |
33841 | return resultobj; | |
33842 | fail: | |
33843 | return NULL; | |
33844 | } | |
33845 | ||
33846 | ||
33847 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33848 | PyObject *obj; | |
33849 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33850 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33851 | Py_INCREF(obj); | |
33852 | return Py_BuildValue((char *)""); | |
33853 | } | |
33854 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33855 | PyObject *obj; | |
33856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33857 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33858 | Py_INCREF(obj); | |
33859 | return Py_BuildValue((char *)""); | |
33860 | } | |
33861 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33862 | PyObject *resultobj; | |
33863 | wxSizerItem *result; | |
33864 | char *kwnames[] = { | |
33865 | NULL | |
33866 | }; | |
33867 | ||
33868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33869 | { | |
33870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33871 | result = (wxSizerItem *)new wxSizerItem(); | |
33872 | ||
33873 | wxPyEndAllowThreads(__tstate); | |
33874 | if (PyErr_Occurred()) SWIG_fail; | |
33875 | } | |
15afbcd0 | 33876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33877 | return resultobj; |
33878 | fail: | |
33879 | return NULL; | |
33880 | } | |
33881 | ||
33882 | ||
248ed943 | 33883 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 33884 | PyObject *resultobj; |
248ed943 | 33885 | wxWindow *arg1 = (wxWindow *) 0 ; |
d14a1e28 RD |
33886 | int arg2 ; |
33887 | int arg3 ; | |
33888 | int arg4 ; | |
248ed943 | 33889 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 | 33890 | wxSizerItem *result; |
994141e6 RD |
33891 | PyObject * obj0 = 0 ; |
33892 | PyObject * obj1 = 0 ; | |
33893 | PyObject * obj2 = 0 ; | |
33894 | PyObject * obj3 = 0 ; | |
33895 | PyObject * obj4 = 0 ; | |
d14a1e28 | 33896 | char *kwnames[] = { |
248ed943 | 33897 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
33898 | }; |
33899 | ||
248ed943 RD |
33900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
33901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
33902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15afbcd0 RD |
33903 | arg2 = (int) SWIG_AsInt(obj1); |
33904 | if (PyErr_Occurred()) SWIG_fail; | |
33905 | arg3 = (int) SWIG_AsInt(obj2); | |
33906 | if (PyErr_Occurred()) SWIG_fail; | |
33907 | arg4 = (int) SWIG_AsInt(obj3); | |
33908 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33909 | if (obj4) { |
33910 | arg5 = obj4; | |
33911 | } | |
d14a1e28 RD |
33912 | { |
33913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 33914 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
33915 | |
33916 | wxPyEndAllowThreads(__tstate); | |
33917 | if (PyErr_Occurred()) SWIG_fail; | |
33918 | } | |
15afbcd0 | 33919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33920 | return resultobj; |
33921 | fail: | |
33922 | return NULL; | |
33923 | } | |
33924 | ||
33925 | ||
248ed943 | 33926 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 33927 | PyObject *resultobj; |
248ed943 | 33928 | int arg1 ; |
d14a1e28 RD |
33929 | int arg2 ; |
33930 | int arg3 ; | |
33931 | int arg4 ; | |
248ed943 RD |
33932 | int arg5 ; |
33933 | PyObject *arg6 = (PyObject *) NULL ; | |
d14a1e28 RD |
33934 | wxSizerItem *result; |
33935 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33936 | PyObject * obj1 = 0 ; |
33937 | PyObject * obj2 = 0 ; | |
33938 | PyObject * obj3 = 0 ; | |
d14a1e28 | 33939 | PyObject * obj4 = 0 ; |
248ed943 | 33940 | PyObject * obj5 = 0 ; |
d14a1e28 | 33941 | char *kwnames[] = { |
248ed943 | 33942 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d14a1e28 RD |
33943 | }; |
33944 | ||
248ed943 RD |
33945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
33946 | arg1 = (int) SWIG_AsInt(obj0); | |
33947 | if (PyErr_Occurred()) SWIG_fail; | |
15afbcd0 RD |
33948 | arg2 = (int) SWIG_AsInt(obj1); |
33949 | if (PyErr_Occurred()) SWIG_fail; | |
33950 | arg3 = (int) SWIG_AsInt(obj2); | |
33951 | if (PyErr_Occurred()) SWIG_fail; | |
33952 | arg4 = (int) SWIG_AsInt(obj3); | |
33953 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33954 | arg5 = (int) SWIG_AsInt(obj4); |
33955 | if (PyErr_Occurred()) SWIG_fail; | |
33956 | if (obj5) { | |
33957 | arg6 = obj5; | |
33958 | } | |
d14a1e28 RD |
33959 | { |
33960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 33961 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d14a1e28 RD |
33962 | |
33963 | wxPyEndAllowThreads(__tstate); | |
33964 | if (PyErr_Occurred()) SWIG_fail; | |
33965 | } | |
15afbcd0 | 33966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33967 | return resultobj; |
33968 | fail: | |
33969 | return NULL; | |
33970 | } | |
33971 | ||
33972 | ||
33973 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33974 | PyObject *resultobj; | |
33975 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33976 | int arg2 ; | |
33977 | int arg3 ; | |
33978 | int arg4 ; | |
248ed943 | 33979 | PyObject *arg5 = (PyObject *) NULL ; |
d14a1e28 RD |
33980 | wxSizerItem *result; |
33981 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33982 | PyObject * obj1 = 0 ; |
33983 | PyObject * obj2 = 0 ; | |
33984 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33985 | PyObject * obj4 = 0 ; |
33986 | char *kwnames[] = { | |
33987 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33988 | }; | |
33989 | ||
248ed943 | 33990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33993 | arg2 = (int) SWIG_AsInt(obj1); | |
33994 | if (PyErr_Occurred()) SWIG_fail; | |
33995 | arg3 = (int) SWIG_AsInt(obj2); | |
33996 | if (PyErr_Occurred()) SWIG_fail; | |
33997 | arg4 = (int) SWIG_AsInt(obj3); | |
33998 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
33999 | if (obj4) { |
34000 | arg5 = obj4; | |
34001 | } | |
d14a1e28 RD |
34002 | { |
34003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 34004 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d14a1e28 RD |
34005 | |
34006 | wxPyEndAllowThreads(__tstate); | |
34007 | if (PyErr_Occurred()) SWIG_fail; | |
34008 | } | |
15afbcd0 | 34009 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
34010 | return resultobj; |
34011 | fail: | |
34012 | return NULL; | |
34013 | } | |
34014 | ||
34015 | ||
34016 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34017 | PyObject *resultobj; | |
34018 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34019 | PyObject * obj0 = 0 ; | |
34020 | char *kwnames[] = { | |
34021 | (char *) "self", NULL | |
34022 | }; | |
34023 | ||
34024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34027 | { |
34028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34029 | (arg1)->DeleteWindows(); | |
34030 | ||
34031 | wxPyEndAllowThreads(__tstate); | |
34032 | if (PyErr_Occurred()) SWIG_fail; | |
34033 | } | |
34034 | Py_INCREF(Py_None); resultobj = Py_None; | |
34035 | return resultobj; | |
34036 | fail: | |
34037 | return NULL; | |
34038 | } | |
34039 | ||
34040 | ||
34041 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34042 | PyObject *resultobj; | |
34043 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34044 | PyObject * obj0 = 0 ; | |
34045 | char *kwnames[] = { | |
34046 | (char *) "self", NULL | |
34047 | }; | |
34048 | ||
34049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34052 | { |
34053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34054 | (arg1)->DetachSizer(); | |
34055 | ||
34056 | wxPyEndAllowThreads(__tstate); | |
34057 | if (PyErr_Occurred()) SWIG_fail; | |
34058 | } | |
34059 | Py_INCREF(Py_None); resultobj = Py_None; | |
34060 | return resultobj; | |
34061 | fail: | |
34062 | return NULL; | |
34063 | } | |
34064 | ||
34065 | ||
34066 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34067 | PyObject *resultobj; | |
34068 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34069 | wxSize result; | |
34070 | PyObject * obj0 = 0 ; | |
34071 | char *kwnames[] = { | |
34072 | (char *) "self", NULL | |
34073 | }; | |
34074 | ||
34075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34078 | { |
34079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34080 | result = (arg1)->GetSize(); | |
34081 | ||
34082 | wxPyEndAllowThreads(__tstate); | |
34083 | if (PyErr_Occurred()) SWIG_fail; | |
34084 | } | |
34085 | { | |
34086 | wxSize * resultptr; | |
34087 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34088 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34089 | } |
34090 | return resultobj; | |
34091 | fail: | |
34092 | return NULL; | |
34093 | } | |
34094 | ||
34095 | ||
34096 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34097 | PyObject *resultobj; | |
34098 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34099 | wxSize result; | |
34100 | PyObject * obj0 = 0 ; | |
34101 | char *kwnames[] = { | |
34102 | (char *) "self", NULL | |
34103 | }; | |
34104 | ||
34105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34108 | { |
34109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34110 | result = (arg1)->CalcMin(); | |
34111 | ||
34112 | wxPyEndAllowThreads(__tstate); | |
34113 | if (PyErr_Occurred()) SWIG_fail; | |
34114 | } | |
34115 | { | |
34116 | wxSize * resultptr; | |
34117 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34118 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34119 | } |
34120 | return resultobj; | |
34121 | fail: | |
34122 | return NULL; | |
34123 | } | |
34124 | ||
34125 | ||
34126 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34127 | PyObject *resultobj; | |
34128 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34129 | wxPoint arg2 ; | |
34130 | wxSize arg3 ; | |
34131 | wxPoint *argp2 ; | |
34132 | wxSize *argp3 ; | |
34133 | PyObject * obj0 = 0 ; | |
34134 | PyObject * obj1 = 0 ; | |
34135 | PyObject * obj2 = 0 ; | |
34136 | char *kwnames[] = { | |
34137 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34138 | }; | |
34139 | ||
34140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34143 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34144 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34145 | arg2 = *argp2; | |
34146 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34147 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34148 | arg3 = *argp3; | |
d14a1e28 RD |
34149 | { |
34150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34151 | (arg1)->SetDimension(arg2,arg3); | |
34152 | ||
34153 | wxPyEndAllowThreads(__tstate); | |
34154 | if (PyErr_Occurred()) SWIG_fail; | |
34155 | } | |
34156 | Py_INCREF(Py_None); resultobj = Py_None; | |
34157 | return resultobj; | |
34158 | fail: | |
34159 | return NULL; | |
34160 | } | |
34161 | ||
34162 | ||
34163 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34164 | PyObject *resultobj; | |
34165 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34166 | wxSize result; | |
34167 | PyObject * obj0 = 0 ; | |
34168 | char *kwnames[] = { | |
34169 | (char *) "self", NULL | |
34170 | }; | |
34171 | ||
34172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34175 | { |
34176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34177 | result = (arg1)->GetMinSize(); | |
34178 | ||
34179 | wxPyEndAllowThreads(__tstate); | |
34180 | if (PyErr_Occurred()) SWIG_fail; | |
34181 | } | |
34182 | { | |
34183 | wxSize * resultptr; | |
34184 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 34185 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
34186 | } |
34187 | return resultobj; | |
34188 | fail: | |
34189 | return NULL; | |
34190 | } | |
34191 | ||
34192 | ||
dfbb5885 RD |
34193 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *self, PyObject *args, PyObject *kwargs) { |
34194 | PyObject *resultobj; | |
34195 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34196 | wxSize result; | |
34197 | PyObject * obj0 = 0 ; | |
34198 | char *kwnames[] = { | |
34199 | (char *) "self", NULL | |
34200 | }; | |
34201 | ||
34202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
34203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34205 | { | |
34206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34207 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
34208 | ||
34209 | wxPyEndAllowThreads(__tstate); | |
34210 | if (PyErr_Occurred()) SWIG_fail; | |
34211 | } | |
34212 | { | |
34213 | wxSize * resultptr; | |
34214 | resultptr = new wxSize((wxSize &) result); | |
34215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34216 | } | |
34217 | return resultobj; | |
34218 | fail: | |
34219 | return NULL; | |
34220 | } | |
34221 | ||
34222 | ||
d14a1e28 RD |
34223 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
34224 | PyObject *resultobj; | |
34225 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34226 | int arg2 ; | |
34227 | int arg3 ; | |
34228 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34229 | PyObject * obj1 = 0 ; |
34230 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
34231 | char *kwnames[] = { |
34232 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34233 | }; | |
34234 | ||
994141e6 | 34235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34238 | arg2 = (int) SWIG_AsInt(obj1); | |
34239 | if (PyErr_Occurred()) SWIG_fail; | |
34240 | arg3 = (int) SWIG_AsInt(obj2); | |
34241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34242 | { |
34243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34244 | (arg1)->SetInitSize(arg2,arg3); | |
34245 | ||
34246 | wxPyEndAllowThreads(__tstate); | |
34247 | if (PyErr_Occurred()) SWIG_fail; | |
34248 | } | |
34249 | Py_INCREF(Py_None); resultobj = Py_None; | |
34250 | return resultobj; | |
34251 | fail: | |
34252 | return NULL; | |
34253 | } | |
34254 | ||
34255 | ||
34256 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34257 | PyObject *resultobj; | |
34258 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34259 | int arg2 ; | |
34260 | int arg3 ; | |
34261 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34262 | PyObject * obj1 = 0 ; |
34263 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
34264 | char *kwnames[] = { |
34265 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34266 | }; | |
34267 | ||
994141e6 | 34268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
34269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34271 | arg2 = (int) SWIG_AsInt(obj1); | |
34272 | if (PyErr_Occurred()) SWIG_fail; | |
34273 | arg3 = (int) SWIG_AsInt(obj2); | |
34274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34275 | { |
34276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34277 | (arg1)->SetRatio(arg2,arg3); | |
34278 | ||
34279 | wxPyEndAllowThreads(__tstate); | |
34280 | if (PyErr_Occurred()) SWIG_fail; | |
34281 | } | |
34282 | Py_INCREF(Py_None); resultobj = Py_None; | |
34283 | return resultobj; | |
34284 | fail: | |
34285 | return NULL; | |
34286 | } | |
34287 | ||
34288 | ||
34289 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34290 | PyObject *resultobj; | |
34291 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34292 | wxSize arg2 ; | |
34293 | wxSize *argp2 ; | |
34294 | PyObject * obj0 = 0 ; | |
34295 | PyObject * obj1 = 0 ; | |
34296 | char *kwnames[] = { | |
34297 | (char *) "self",(char *) "size", NULL | |
34298 | }; | |
34299 | ||
34300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34303 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34304 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34305 | arg2 = *argp2; | |
d14a1e28 RD |
34306 | { |
34307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34308 | (arg1)->SetRatio(arg2); | |
34309 | ||
34310 | wxPyEndAllowThreads(__tstate); | |
34311 | if (PyErr_Occurred()) SWIG_fail; | |
34312 | } | |
34313 | Py_INCREF(Py_None); resultobj = Py_None; | |
34314 | return resultobj; | |
34315 | fail: | |
34316 | return NULL; | |
34317 | } | |
34318 | ||
34319 | ||
34320 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34321 | PyObject *resultobj; | |
34322 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34323 | float arg2 ; | |
34324 | PyObject * obj0 = 0 ; | |
994141e6 | 34325 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34326 | char *kwnames[] = { |
34327 | (char *) "self",(char *) "ratio", NULL | |
34328 | }; | |
34329 | ||
994141e6 | 34330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34333 | arg2 = (float) SWIG_AsFloat(obj1); | |
34334 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34335 | { |
34336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34337 | (arg1)->SetRatio(arg2); | |
34338 | ||
34339 | wxPyEndAllowThreads(__tstate); | |
34340 | if (PyErr_Occurred()) SWIG_fail; | |
34341 | } | |
34342 | Py_INCREF(Py_None); resultobj = Py_None; | |
34343 | return resultobj; | |
34344 | fail: | |
34345 | return NULL; | |
34346 | } | |
34347 | ||
34348 | ||
34349 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34350 | PyObject *resultobj; | |
34351 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34352 | float result; | |
34353 | PyObject * obj0 = 0 ; | |
34354 | char *kwnames[] = { | |
34355 | (char *) "self", NULL | |
34356 | }; | |
34357 | ||
34358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34361 | { |
34362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34363 | result = (float)(arg1)->GetRatio(); | |
34364 | ||
34365 | wxPyEndAllowThreads(__tstate); | |
34366 | if (PyErr_Occurred()) SWIG_fail; | |
34367 | } | |
15afbcd0 | 34368 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
34369 | return resultobj; |
34370 | fail: | |
34371 | return NULL; | |
34372 | } | |
34373 | ||
34374 | ||
34375 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34376 | PyObject *resultobj; | |
34377 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34378 | bool result; | |
34379 | PyObject * obj0 = 0 ; | |
34380 | char *kwnames[] = { | |
34381 | (char *) "self", NULL | |
34382 | }; | |
34383 | ||
34384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34387 | { |
34388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34389 | result = (bool)(arg1)->IsWindow(); | |
34390 | ||
34391 | wxPyEndAllowThreads(__tstate); | |
34392 | if (PyErr_Occurred()) SWIG_fail; | |
34393 | } | |
4f89f6a3 RD |
34394 | { |
34395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34396 | } | |
d14a1e28 RD |
34397 | return resultobj; |
34398 | fail: | |
34399 | return NULL; | |
34400 | } | |
34401 | ||
34402 | ||
34403 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34404 | PyObject *resultobj; | |
34405 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34406 | bool result; | |
34407 | PyObject * obj0 = 0 ; | |
34408 | char *kwnames[] = { | |
34409 | (char *) "self", NULL | |
34410 | }; | |
34411 | ||
34412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34415 | { |
34416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34417 | result = (bool)(arg1)->IsSizer(); | |
34418 | ||
34419 | wxPyEndAllowThreads(__tstate); | |
34420 | if (PyErr_Occurred()) SWIG_fail; | |
34421 | } | |
4f89f6a3 RD |
34422 | { |
34423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34424 | } | |
d14a1e28 RD |
34425 | return resultobj; |
34426 | fail: | |
34427 | return NULL; | |
34428 | } | |
34429 | ||
34430 | ||
34431 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34432 | PyObject *resultobj; | |
34433 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34434 | bool result; | |
34435 | PyObject * obj0 = 0 ; | |
34436 | char *kwnames[] = { | |
34437 | (char *) "self", NULL | |
34438 | }; | |
34439 | ||
34440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34443 | { |
34444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34445 | result = (bool)(arg1)->IsSpacer(); | |
34446 | ||
34447 | wxPyEndAllowThreads(__tstate); | |
34448 | if (PyErr_Occurred()) SWIG_fail; | |
34449 | } | |
4f89f6a3 RD |
34450 | { |
34451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34452 | } | |
d14a1e28 RD |
34453 | return resultobj; |
34454 | fail: | |
34455 | return NULL; | |
34456 | } | |
34457 | ||
34458 | ||
34459 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34460 | PyObject *resultobj; | |
34461 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34462 | int arg2 ; | |
34463 | PyObject * obj0 = 0 ; | |
994141e6 | 34464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34465 | char *kwnames[] = { |
34466 | (char *) "self",(char *) "proportion", NULL | |
34467 | }; | |
34468 | ||
994141e6 | 34469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34472 | arg2 = (int) SWIG_AsInt(obj1); | |
34473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34474 | { |
34475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34476 | (arg1)->SetProportion(arg2); | |
34477 | ||
34478 | wxPyEndAllowThreads(__tstate); | |
34479 | if (PyErr_Occurred()) SWIG_fail; | |
34480 | } | |
34481 | Py_INCREF(Py_None); resultobj = Py_None; | |
34482 | return resultobj; | |
34483 | fail: | |
34484 | return NULL; | |
34485 | } | |
34486 | ||
34487 | ||
34488 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34489 | PyObject *resultobj; | |
34490 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34491 | int result; | |
34492 | PyObject * obj0 = 0 ; | |
34493 | char *kwnames[] = { | |
34494 | (char *) "self", NULL | |
34495 | }; | |
34496 | ||
34497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34500 | { |
34501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34502 | result = (int)(arg1)->GetProportion(); | |
34503 | ||
34504 | wxPyEndAllowThreads(__tstate); | |
34505 | if (PyErr_Occurred()) SWIG_fail; | |
34506 | } | |
15afbcd0 | 34507 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34508 | return resultobj; |
34509 | fail: | |
34510 | return NULL; | |
34511 | } | |
34512 | ||
34513 | ||
34514 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34515 | PyObject *resultobj; | |
34516 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34517 | int arg2 ; | |
34518 | PyObject * obj0 = 0 ; | |
994141e6 | 34519 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34520 | char *kwnames[] = { |
34521 | (char *) "self",(char *) "flag", NULL | |
34522 | }; | |
34523 | ||
994141e6 | 34524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34527 | arg2 = (int) SWIG_AsInt(obj1); | |
34528 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34529 | { |
34530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34531 | (arg1)->SetFlag(arg2); | |
34532 | ||
34533 | wxPyEndAllowThreads(__tstate); | |
34534 | if (PyErr_Occurred()) SWIG_fail; | |
34535 | } | |
34536 | Py_INCREF(Py_None); resultobj = Py_None; | |
34537 | return resultobj; | |
34538 | fail: | |
34539 | return NULL; | |
34540 | } | |
34541 | ||
34542 | ||
34543 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34544 | PyObject *resultobj; | |
34545 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34546 | int result; | |
34547 | PyObject * obj0 = 0 ; | |
34548 | char *kwnames[] = { | |
34549 | (char *) "self", NULL | |
34550 | }; | |
34551 | ||
34552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34555 | { |
34556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34557 | result = (int)(arg1)->GetFlag(); | |
34558 | ||
34559 | wxPyEndAllowThreads(__tstate); | |
34560 | if (PyErr_Occurred()) SWIG_fail; | |
34561 | } | |
15afbcd0 | 34562 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34563 | return resultobj; |
34564 | fail: | |
34565 | return NULL; | |
34566 | } | |
34567 | ||
34568 | ||
34569 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34570 | PyObject *resultobj; | |
34571 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34572 | int arg2 ; | |
34573 | PyObject * obj0 = 0 ; | |
994141e6 | 34574 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34575 | char *kwnames[] = { |
34576 | (char *) "self",(char *) "border", NULL | |
34577 | }; | |
34578 | ||
994141e6 | 34579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34582 | arg2 = (int) SWIG_AsInt(obj1); | |
34583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34584 | { |
34585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34586 | (arg1)->SetBorder(arg2); | |
34587 | ||
34588 | wxPyEndAllowThreads(__tstate); | |
34589 | if (PyErr_Occurred()) SWIG_fail; | |
34590 | } | |
34591 | Py_INCREF(Py_None); resultobj = Py_None; | |
34592 | return resultobj; | |
34593 | fail: | |
34594 | return NULL; | |
34595 | } | |
34596 | ||
34597 | ||
34598 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34599 | PyObject *resultobj; | |
34600 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34601 | int result; | |
34602 | PyObject * obj0 = 0 ; | |
34603 | char *kwnames[] = { | |
34604 | (char *) "self", NULL | |
34605 | }; | |
34606 | ||
34607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34610 | { |
34611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34612 | result = (int)(arg1)->GetBorder(); | |
34613 | ||
34614 | wxPyEndAllowThreads(__tstate); | |
34615 | if (PyErr_Occurred()) SWIG_fail; | |
34616 | } | |
15afbcd0 | 34617 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34618 | return resultobj; |
34619 | fail: | |
34620 | return NULL; | |
34621 | } | |
34622 | ||
34623 | ||
34624 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34625 | PyObject *resultobj; | |
34626 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34627 | wxWindow *result; | |
34628 | PyObject * obj0 = 0 ; | |
34629 | char *kwnames[] = { | |
34630 | (char *) "self", NULL | |
34631 | }; | |
34632 | ||
34633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34636 | { |
34637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34638 | result = (wxWindow *)(arg1)->GetWindow(); | |
34639 | ||
34640 | wxPyEndAllowThreads(__tstate); | |
34641 | if (PyErr_Occurred()) SWIG_fail; | |
34642 | } | |
34643 | { | |
412d302d | 34644 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
34645 | } |
34646 | return resultobj; | |
34647 | fail: | |
34648 | return NULL; | |
34649 | } | |
34650 | ||
34651 | ||
34652 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34653 | PyObject *resultobj; | |
34654 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34655 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34656 | PyObject * obj0 = 0 ; | |
34657 | PyObject * obj1 = 0 ; | |
34658 | char *kwnames[] = { | |
34659 | (char *) "self",(char *) "window", NULL | |
34660 | }; | |
34661 | ||
34662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34667 | { |
34668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34669 | (arg1)->SetWindow(arg2); | |
34670 | ||
34671 | wxPyEndAllowThreads(__tstate); | |
34672 | if (PyErr_Occurred()) SWIG_fail; | |
34673 | } | |
34674 | Py_INCREF(Py_None); resultobj = Py_None; | |
34675 | return resultobj; | |
34676 | fail: | |
34677 | return NULL; | |
34678 | } | |
34679 | ||
34680 | ||
34681 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34682 | PyObject *resultobj; | |
34683 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34684 | wxSizer *result; | |
34685 | PyObject * obj0 = 0 ; | |
34686 | char *kwnames[] = { | |
34687 | (char *) "self", NULL | |
34688 | }; | |
34689 | ||
34690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34693 | { |
34694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34695 | result = (wxSizer *)(arg1)->GetSizer(); | |
34696 | ||
34697 | wxPyEndAllowThreads(__tstate); | |
34698 | if (PyErr_Occurred()) SWIG_fail; | |
34699 | } | |
34700 | { | |
412d302d | 34701 | resultobj = wxPyMake_wxSizer(result, 0); |
d14a1e28 RD |
34702 | } |
34703 | return resultobj; | |
34704 | fail: | |
34705 | return NULL; | |
34706 | } | |
34707 | ||
34708 | ||
34709 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34710 | PyObject *resultobj; | |
34711 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34712 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34713 | PyObject * obj0 = 0 ; | |
34714 | PyObject * obj1 = 0 ; | |
34715 | char *kwnames[] = { | |
34716 | (char *) "self",(char *) "sizer", NULL | |
34717 | }; | |
34718 | ||
34719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34724 | { |
34725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34726 | (arg1)->SetSizer(arg2); | |
34727 | ||
34728 | wxPyEndAllowThreads(__tstate); | |
34729 | if (PyErr_Occurred()) SWIG_fail; | |
34730 | } | |
34731 | Py_INCREF(Py_None); resultobj = Py_None; | |
34732 | return resultobj; | |
34733 | fail: | |
34734 | return NULL; | |
34735 | } | |
34736 | ||
34737 | ||
34738 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34739 | PyObject *resultobj; | |
34740 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34741 | wxSize *result; | |
34742 | PyObject * obj0 = 0 ; | |
34743 | char *kwnames[] = { | |
34744 | (char *) "self", NULL | |
34745 | }; | |
34746 | ||
34747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34750 | { |
34751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34752 | { | |
34753 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34754 | result = (wxSize *) &_result_ref; | |
34755 | } | |
34756 | ||
34757 | wxPyEndAllowThreads(__tstate); | |
34758 | if (PyErr_Occurred()) SWIG_fail; | |
34759 | } | |
15afbcd0 | 34760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
34761 | return resultobj; |
34762 | fail: | |
34763 | return NULL; | |
34764 | } | |
34765 | ||
34766 | ||
34767 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34768 | PyObject *resultobj; | |
34769 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34770 | wxSize *arg2 = 0 ; | |
34771 | wxSize temp2 ; | |
34772 | PyObject * obj0 = 0 ; | |
34773 | PyObject * obj1 = 0 ; | |
34774 | char *kwnames[] = { | |
34775 | (char *) "self",(char *) "size", NULL | |
34776 | }; | |
34777 | ||
34778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34781 | { |
34782 | arg2 = &temp2; | |
34783 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34784 | } | |
34785 | { | |
34786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34787 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34788 | ||
34789 | wxPyEndAllowThreads(__tstate); | |
34790 | if (PyErr_Occurred()) SWIG_fail; | |
34791 | } | |
34792 | Py_INCREF(Py_None); resultobj = Py_None; | |
34793 | return resultobj; | |
34794 | fail: | |
34795 | return NULL; | |
34796 | } | |
34797 | ||
34798 | ||
34799 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34800 | PyObject *resultobj; | |
34801 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34802 | bool arg2 ; | |
34803 | PyObject * obj0 = 0 ; | |
34804 | PyObject * obj1 = 0 ; | |
34805 | char *kwnames[] = { | |
34806 | (char *) "self",(char *) "show", NULL | |
34807 | }; | |
34808 | ||
34809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34812 | arg2 = (bool) SWIG_AsBool(obj1); | |
34813 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34814 | { |
34815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34816 | (arg1)->Show(arg2); | |
34817 | ||
34818 | wxPyEndAllowThreads(__tstate); | |
34819 | if (PyErr_Occurred()) SWIG_fail; | |
34820 | } | |
34821 | Py_INCREF(Py_None); resultobj = Py_None; | |
34822 | return resultobj; | |
34823 | fail: | |
34824 | return NULL; | |
34825 | } | |
34826 | ||
34827 | ||
34828 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34829 | PyObject *resultobj; | |
34830 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34831 | bool result; | |
34832 | PyObject * obj0 = 0 ; | |
34833 | char *kwnames[] = { | |
34834 | (char *) "self", NULL | |
34835 | }; | |
34836 | ||
34837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34840 | { |
34841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34842 | result = (bool)(arg1)->IsShown(); | |
34843 | ||
34844 | wxPyEndAllowThreads(__tstate); | |
34845 | if (PyErr_Occurred()) SWIG_fail; | |
34846 | } | |
4f89f6a3 RD |
34847 | { |
34848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34849 | } | |
d14a1e28 RD |
34850 | return resultobj; |
34851 | fail: | |
34852 | return NULL; | |
34853 | } | |
34854 | ||
34855 | ||
34856 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34857 | PyObject *resultobj; | |
34858 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34859 | wxPoint result; | |
34860 | PyObject * obj0 = 0 ; | |
34861 | char *kwnames[] = { | |
34862 | (char *) "self", NULL | |
34863 | }; | |
34864 | ||
34865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34868 | { |
34869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34870 | result = (arg1)->GetPosition(); | |
34871 | ||
34872 | wxPyEndAllowThreads(__tstate); | |
34873 | if (PyErr_Occurred()) SWIG_fail; | |
34874 | } | |
34875 | { | |
34876 | wxPoint * resultptr; | |
34877 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 34878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34879 | } |
34880 | return resultobj; | |
34881 | fail: | |
34882 | return NULL; | |
34883 | } | |
34884 | ||
34885 | ||
34886 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34887 | PyObject *resultobj; | |
34888 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34889 | PyObject *result; | |
34890 | PyObject * obj0 = 0 ; | |
34891 | char *kwnames[] = { | |
34892 | (char *) "self", NULL | |
34893 | }; | |
34894 | ||
34895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34898 | { |
34899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34900 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34901 | ||
34902 | wxPyEndAllowThreads(__tstate); | |
34903 | if (PyErr_Occurred()) SWIG_fail; | |
34904 | } | |
34905 | resultobj = result; | |
34906 | return resultobj; | |
34907 | fail: | |
34908 | return NULL; | |
34909 | } | |
34910 | ||
34911 | ||
34912 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34913 | PyObject *obj; | |
34914 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34915 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34916 | Py_INCREF(obj); | |
34917 | return Py_BuildValue((char *)""); | |
34918 | } | |
34919 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34920 | PyObject *resultobj; | |
34921 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34922 | PyObject *arg2 = (PyObject *) 0 ; | |
34923 | PyObject * obj0 = 0 ; | |
34924 | PyObject * obj1 = 0 ; | |
34925 | char *kwnames[] = { | |
34926 | (char *) "self",(char *) "_self", NULL | |
34927 | }; | |
34928 | ||
34929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34932 | arg2 = obj1; |
34933 | { | |
34934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34935 | wxSizer__setOORInfo(arg1,arg2); | |
34936 | ||
34937 | wxPyEndAllowThreads(__tstate); | |
34938 | if (PyErr_Occurred()) SWIG_fail; | |
34939 | } | |
34940 | Py_INCREF(Py_None); resultobj = Py_None; | |
34941 | return resultobj; | |
34942 | fail: | |
34943 | return NULL; | |
34944 | } | |
34945 | ||
34946 | ||
34947 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34948 | PyObject *resultobj; | |
34949 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34950 | PyObject *arg2 = (PyObject *) 0 ; | |
34951 | int arg3 = (int) 0 ; | |
34952 | int arg4 = (int) 0 ; | |
34953 | int arg5 = (int) 0 ; | |
34954 | PyObject *arg6 = (PyObject *) NULL ; | |
34955 | PyObject * obj0 = 0 ; | |
34956 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34957 | PyObject * obj2 = 0 ; |
34958 | PyObject * obj3 = 0 ; | |
34959 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34960 | PyObject * obj5 = 0 ; |
34961 | char *kwnames[] = { | |
34962 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34963 | }; | |
34964 | ||
994141e6 | 34965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34968 | arg2 = obj1; |
994141e6 | 34969 | if (obj2) { |
15afbcd0 RD |
34970 | arg3 = (int) SWIG_AsInt(obj2); |
34971 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34972 | } |
34973 | if (obj3) { | |
15afbcd0 RD |
34974 | arg4 = (int) SWIG_AsInt(obj3); |
34975 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34976 | } |
34977 | if (obj4) { | |
15afbcd0 RD |
34978 | arg5 = (int) SWIG_AsInt(obj4); |
34979 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34980 | } |
d14a1e28 RD |
34981 | if (obj5) { |
34982 | arg6 = obj5; | |
34983 | } | |
34984 | { | |
34985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34986 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
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_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34999 | PyObject *resultobj; | |
35000 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35001 | int arg2 ; | |
35002 | PyObject *arg3 = (PyObject *) 0 ; | |
35003 | int arg4 = (int) 0 ; | |
35004 | int arg5 = (int) 0 ; | |
35005 | int arg6 = (int) 0 ; | |
35006 | PyObject *arg7 = (PyObject *) NULL ; | |
35007 | PyObject * obj0 = 0 ; | |
994141e6 | 35008 | PyObject * obj1 = 0 ; |
d14a1e28 | 35009 | PyObject * obj2 = 0 ; |
994141e6 RD |
35010 | PyObject * obj3 = 0 ; |
35011 | PyObject * obj4 = 0 ; | |
35012 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
35013 | PyObject * obj6 = 0 ; |
35014 | char *kwnames[] = { | |
35015 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35016 | }; | |
35017 | ||
994141e6 | 35018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
35019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35021 | arg2 = (int) SWIG_AsInt(obj1); | |
35022 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 35023 | arg3 = obj2; |
994141e6 | 35024 | if (obj3) { |
15afbcd0 RD |
35025 | arg4 = (int) SWIG_AsInt(obj3); |
35026 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35027 | } |
35028 | if (obj4) { | |
15afbcd0 RD |
35029 | arg5 = (int) SWIG_AsInt(obj4); |
35030 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35031 | } |
35032 | if (obj5) { | |
15afbcd0 RD |
35033 | arg6 = (int) SWIG_AsInt(obj5); |
35034 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35035 | } |
d14a1e28 RD |
35036 | if (obj6) { |
35037 | arg7 = obj6; | |
35038 | } | |
35039 | { | |
35040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35041 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35042 | ||
35043 | wxPyEndAllowThreads(__tstate); | |
35044 | if (PyErr_Occurred()) SWIG_fail; | |
35045 | } | |
35046 | Py_INCREF(Py_None); resultobj = Py_None; | |
35047 | return resultobj; | |
35048 | fail: | |
35049 | return NULL; | |
35050 | } | |
35051 | ||
35052 | ||
35053 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35054 | PyObject *resultobj; | |
35055 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35056 | PyObject *arg2 = (PyObject *) 0 ; | |
35057 | int arg3 = (int) 0 ; | |
35058 | int arg4 = (int) 0 ; | |
35059 | int arg5 = (int) 0 ; | |
35060 | PyObject *arg6 = (PyObject *) NULL ; | |
35061 | PyObject * obj0 = 0 ; | |
35062 | PyObject * obj1 = 0 ; | |
994141e6 RD |
35063 | PyObject * obj2 = 0 ; |
35064 | PyObject * obj3 = 0 ; | |
35065 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35066 | PyObject * obj5 = 0 ; |
35067 | char *kwnames[] = { | |
35068 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35069 | }; | |
35070 | ||
994141e6 | 35071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
35072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35074 | arg2 = obj1; |
994141e6 | 35075 | if (obj2) { |
15afbcd0 RD |
35076 | arg3 = (int) SWIG_AsInt(obj2); |
35077 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35078 | } |
35079 | if (obj3) { | |
15afbcd0 RD |
35080 | arg4 = (int) SWIG_AsInt(obj3); |
35081 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35082 | } |
35083 | if (obj4) { | |
15afbcd0 RD |
35084 | arg5 = (int) SWIG_AsInt(obj4); |
35085 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35086 | } |
d14a1e28 RD |
35087 | if (obj5) { |
35088 | arg6 = obj5; | |
35089 | } | |
35090 | { | |
35091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35092 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35093 | ||
35094 | wxPyEndAllowThreads(__tstate); | |
35095 | if (PyErr_Occurred()) SWIG_fail; | |
35096 | } | |
35097 | Py_INCREF(Py_None); resultobj = Py_None; | |
35098 | return resultobj; | |
35099 | fail: | |
35100 | return NULL; | |
35101 | } | |
35102 | ||
35103 | ||
35104 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35105 | PyObject *resultobj; | |
35106 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35107 | PyObject *arg2 = (PyObject *) 0 ; | |
35108 | bool result; | |
35109 | PyObject * obj0 = 0 ; | |
35110 | PyObject * obj1 = 0 ; | |
35111 | char *kwnames[] = { | |
35112 | (char *) "self",(char *) "item", NULL | |
35113 | }; | |
35114 | ||
35115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35118 | arg2 = obj1; |
35119 | { | |
35120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35121 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35122 | ||
35123 | wxPyEndAllowThreads(__tstate); | |
35124 | if (PyErr_Occurred()) SWIG_fail; | |
35125 | } | |
4f89f6a3 RD |
35126 | { |
35127 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35128 | } | |
d14a1e28 RD |
35129 | return resultobj; |
35130 | fail: | |
35131 | return NULL; | |
35132 | } | |
35133 | ||
35134 | ||
1c0f361b RD |
35135 | static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { |
35136 | PyObject *resultobj; | |
35137 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35138 | PyObject *arg2 = (PyObject *) 0 ; | |
35139 | bool result; | |
35140 | PyObject * obj0 = 0 ; | |
35141 | PyObject * obj1 = 0 ; | |
35142 | char *kwnames[] = { | |
35143 | (char *) "self",(char *) "item", NULL | |
35144 | }; | |
35145 | ||
35146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35149 | arg2 = obj1; | |
35150 | { | |
35151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35152 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35153 | ||
35154 | wxPyEndAllowThreads(__tstate); | |
35155 | if (PyErr_Occurred()) SWIG_fail; | |
35156 | } | |
35157 | { | |
35158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35159 | } | |
35160 | return resultobj; | |
35161 | fail: | |
35162 | return NULL; | |
35163 | } | |
35164 | ||
35165 | ||
d14a1e28 RD |
35166 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
35167 | PyObject *resultobj; | |
35168 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35169 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
35170 | wxSize *arg3 = 0 ; |
35171 | wxSize temp3 ; | |
d14a1e28 RD |
35172 | PyObject * obj0 = 0 ; |
35173 | PyObject * obj1 = 0 ; | |
35174 | PyObject * obj2 = 0 ; | |
35175 | char *kwnames[] = { | |
35176 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35177 | }; | |
35178 | ||
35179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35182 | arg2 = obj1; |
e811c8ce RD |
35183 | { |
35184 | arg3 = &temp3; | |
35185 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35186 | } | |
d14a1e28 RD |
35187 | { |
35188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 35189 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
35190 | |
35191 | wxPyEndAllowThreads(__tstate); | |
35192 | if (PyErr_Occurred()) SWIG_fail; | |
35193 | } | |
35194 | Py_INCREF(Py_None); resultobj = Py_None; | |
35195 | return resultobj; | |
35196 | fail: | |
35197 | return NULL; | |
35198 | } | |
35199 | ||
35200 | ||
35201 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35202 | PyObject *resultobj; | |
35203 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35204 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
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_AddItem",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; | |
35214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35216 | { |
35217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35218 | (arg1)->Add(arg2); | |
35219 | ||
35220 | wxPyEndAllowThreads(__tstate); | |
35221 | if (PyErr_Occurred()) SWIG_fail; | |
35222 | } | |
35223 | Py_INCREF(Py_None); resultobj = Py_None; | |
35224 | return resultobj; | |
35225 | fail: | |
35226 | return NULL; | |
35227 | } | |
35228 | ||
35229 | ||
35230 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35231 | PyObject *resultobj; | |
35232 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35233 | size_t arg2 ; | |
35234 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35235 | PyObject * obj0 = 0 ; | |
35236 | PyObject * obj1 = 0 ; | |
35237 | PyObject * obj2 = 0 ; | |
35238 | char *kwnames[] = { | |
35239 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35240 | }; | |
35241 | ||
35242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35245 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35246 | if (PyErr_Occurred()) SWIG_fail; | |
35247 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35249 | { |
35250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35251 | (arg1)->Insert(arg2,arg3); | |
35252 | ||
35253 | wxPyEndAllowThreads(__tstate); | |
35254 | if (PyErr_Occurred()) SWIG_fail; | |
35255 | } | |
35256 | Py_INCREF(Py_None); resultobj = Py_None; | |
35257 | return resultobj; | |
35258 | fail: | |
35259 | return NULL; | |
35260 | } | |
35261 | ||
35262 | ||
35263 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35264 | PyObject *resultobj; | |
35265 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35266 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35267 | PyObject * obj0 = 0 ; | |
35268 | PyObject * obj1 = 0 ; | |
35269 | char *kwnames[] = { | |
35270 | (char *) "self",(char *) "item", NULL | |
35271 | }; | |
35272 | ||
35273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35278 | { |
35279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35280 | (arg1)->Prepend(arg2); | |
35281 | ||
35282 | wxPyEndAllowThreads(__tstate); | |
35283 | if (PyErr_Occurred()) SWIG_fail; | |
35284 | } | |
35285 | Py_INCREF(Py_None); resultobj = Py_None; | |
35286 | return resultobj; | |
35287 | fail: | |
35288 | return NULL; | |
35289 | } | |
35290 | ||
35291 | ||
35292 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35293 | PyObject *resultobj; | |
35294 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35295 | int arg2 ; | |
35296 | int arg3 ; | |
35297 | int arg4 ; | |
35298 | int arg5 ; | |
35299 | PyObject * obj0 = 0 ; | |
994141e6 RD |
35300 | PyObject * obj1 = 0 ; |
35301 | PyObject * obj2 = 0 ; | |
35302 | PyObject * obj3 = 0 ; | |
35303 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35304 | char *kwnames[] = { |
35305 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35306 | }; | |
35307 | ||
994141e6 | 35308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
35309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35311 | arg2 = (int) SWIG_AsInt(obj1); | |
35312 | if (PyErr_Occurred()) SWIG_fail; | |
35313 | arg3 = (int) SWIG_AsInt(obj2); | |
35314 | if (PyErr_Occurred()) SWIG_fail; | |
35315 | arg4 = (int) SWIG_AsInt(obj3); | |
35316 | if (PyErr_Occurred()) SWIG_fail; | |
35317 | arg5 = (int) SWIG_AsInt(obj4); | |
35318 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35319 | { |
35320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35321 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35322 | ||
35323 | wxPyEndAllowThreads(__tstate); | |
35324 | if (PyErr_Occurred()) SWIG_fail; | |
35325 | } | |
35326 | Py_INCREF(Py_None); resultobj = Py_None; | |
35327 | return resultobj; | |
35328 | fail: | |
35329 | return NULL; | |
35330 | } | |
35331 | ||
35332 | ||
35333 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35334 | PyObject *resultobj; | |
35335 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
35336 | wxSize *arg2 = 0 ; |
35337 | wxSize temp2 ; | |
d14a1e28 RD |
35338 | PyObject * obj0 = 0 ; |
35339 | PyObject * obj1 = 0 ; | |
35340 | char *kwnames[] = { | |
35341 | (char *) "self",(char *) "size", NULL | |
35342 | }; | |
35343 | ||
35344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fc9204a RD |
35347 | { |
35348 | arg2 = &temp2; | |
35349 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35350 | } | |
d14a1e28 RD |
35351 | { |
35352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 35353 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
35354 | |
35355 | wxPyEndAllowThreads(__tstate); | |
35356 | if (PyErr_Occurred()) SWIG_fail; | |
35357 | } | |
35358 | Py_INCREF(Py_None); resultobj = Py_None; | |
35359 | return resultobj; | |
35360 | fail: | |
35361 | return NULL; | |
35362 | } | |
35363 | ||
35364 | ||
35365 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35366 | PyObject *resultobj; | |
35367 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35368 | wxSize result; | |
35369 | PyObject * obj0 = 0 ; | |
35370 | char *kwnames[] = { | |
35371 | (char *) "self", NULL | |
35372 | }; | |
35373 | ||
35374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35377 | { |
35378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35379 | result = (arg1)->GetSize(); | |
35380 | ||
35381 | wxPyEndAllowThreads(__tstate); | |
35382 | if (PyErr_Occurred()) SWIG_fail; | |
35383 | } | |
35384 | { | |
35385 | wxSize * resultptr; | |
35386 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35387 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35388 | } |
35389 | return resultobj; | |
35390 | fail: | |
35391 | return NULL; | |
35392 | } | |
35393 | ||
35394 | ||
35395 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35396 | PyObject *resultobj; | |
35397 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35398 | wxPoint result; | |
35399 | PyObject * obj0 = 0 ; | |
35400 | char *kwnames[] = { | |
35401 | (char *) "self", NULL | |
35402 | }; | |
35403 | ||
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35407 | { |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | result = (arg1)->GetPosition(); | |
35410 | ||
35411 | wxPyEndAllowThreads(__tstate); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | } | |
35414 | { | |
35415 | wxPoint * resultptr; | |
35416 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 35417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
35418 | } |
35419 | return resultobj; | |
35420 | fail: | |
35421 | return NULL; | |
35422 | } | |
35423 | ||
35424 | ||
35425 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35426 | PyObject *resultobj; | |
35427 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35428 | wxSize result; | |
35429 | PyObject * obj0 = 0 ; | |
35430 | char *kwnames[] = { | |
35431 | (char *) "self", NULL | |
35432 | }; | |
35433 | ||
35434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35437 | { |
35438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35439 | result = (arg1)->GetMinSize(); | |
35440 | ||
35441 | wxPyEndAllowThreads(__tstate); | |
35442 | if (PyErr_Occurred()) SWIG_fail; | |
35443 | } | |
35444 | { | |
35445 | wxSize * resultptr; | |
35446 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35448 | } |
35449 | return resultobj; | |
35450 | fail: | |
35451 | return NULL; | |
35452 | } | |
35453 | ||
35454 | ||
35455 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35456 | PyObject *resultobj; | |
35457 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35458 | PyObject * obj0 = 0 ; | |
35459 | char *kwnames[] = { | |
35460 | (char *) "self", NULL | |
35461 | }; | |
35462 | ||
35463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35466 | { |
35467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35468 | (arg1)->RecalcSizes(); | |
35469 | ||
35470 | wxPyEndAllowThreads(__tstate); | |
35471 | if (PyErr_Occurred()) SWIG_fail; | |
35472 | } | |
35473 | Py_INCREF(Py_None); resultobj = Py_None; | |
35474 | return resultobj; | |
35475 | fail: | |
35476 | return NULL; | |
35477 | } | |
35478 | ||
35479 | ||
35480 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35481 | PyObject *resultobj; | |
35482 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35483 | wxSize result; | |
35484 | PyObject * obj0 = 0 ; | |
35485 | char *kwnames[] = { | |
35486 | (char *) "self", NULL | |
35487 | }; | |
35488 | ||
35489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35492 | { |
35493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35494 | result = (arg1)->CalcMin(); | |
35495 | ||
35496 | wxPyEndAllowThreads(__tstate); | |
35497 | if (PyErr_Occurred()) SWIG_fail; | |
35498 | } | |
35499 | { | |
35500 | wxSize * resultptr; | |
35501 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35502 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35503 | } |
35504 | return resultobj; | |
35505 | fail: | |
35506 | return NULL; | |
35507 | } | |
35508 | ||
35509 | ||
35510 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35511 | PyObject *resultobj; | |
35512 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35513 | PyObject * obj0 = 0 ; | |
35514 | char *kwnames[] = { | |
35515 | (char *) "self", NULL | |
35516 | }; | |
35517 | ||
35518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35521 | { |
35522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35523 | (arg1)->Layout(); | |
35524 | ||
35525 | wxPyEndAllowThreads(__tstate); | |
35526 | if (PyErr_Occurred()) SWIG_fail; | |
35527 | } | |
35528 | Py_INCREF(Py_None); resultobj = Py_None; | |
35529 | return resultobj; | |
35530 | fail: | |
35531 | return NULL; | |
35532 | } | |
35533 | ||
35534 | ||
35535 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35536 | PyObject *resultobj; | |
35537 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35538 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35539 | wxSize result; | |
35540 | PyObject * obj0 = 0 ; | |
35541 | PyObject * obj1 = 0 ; | |
35542 | char *kwnames[] = { | |
35543 | (char *) "self",(char *) "window", NULL | |
35544 | }; | |
35545 | ||
35546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35551 | { |
35552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35553 | result = (arg1)->Fit(arg2); | |
35554 | ||
35555 | wxPyEndAllowThreads(__tstate); | |
35556 | if (PyErr_Occurred()) SWIG_fail; | |
35557 | } | |
35558 | { | |
35559 | wxSize * resultptr; | |
35560 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35562 | } |
35563 | return resultobj; | |
35564 | fail: | |
35565 | return NULL; | |
35566 | } | |
35567 | ||
35568 | ||
35569 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35570 | PyObject *resultobj; | |
35571 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35573 | PyObject * obj0 = 0 ; | |
35574 | PyObject * obj1 = 0 ; | |
35575 | char *kwnames[] = { | |
35576 | (char *) "self",(char *) "window", NULL | |
35577 | }; | |
35578 | ||
35579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35584 | { |
35585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35586 | (arg1)->FitInside(arg2); | |
35587 | ||
35588 | wxPyEndAllowThreads(__tstate); | |
35589 | if (PyErr_Occurred()) SWIG_fail; | |
35590 | } | |
35591 | Py_INCREF(Py_None); resultobj = Py_None; | |
35592 | return resultobj; | |
35593 | fail: | |
35594 | return NULL; | |
35595 | } | |
35596 | ||
35597 | ||
35598 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35599 | PyObject *resultobj; | |
35600 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35601 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35602 | PyObject * obj0 = 0 ; | |
35603 | PyObject * obj1 = 0 ; | |
35604 | char *kwnames[] = { | |
35605 | (char *) "self",(char *) "window", NULL | |
35606 | }; | |
35607 | ||
35608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35611 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35613 | { |
35614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35615 | (arg1)->SetSizeHints(arg2); | |
35616 | ||
35617 | wxPyEndAllowThreads(__tstate); | |
35618 | if (PyErr_Occurred()) SWIG_fail; | |
35619 | } | |
35620 | Py_INCREF(Py_None); resultobj = Py_None; | |
35621 | return resultobj; | |
35622 | fail: | |
35623 | return NULL; | |
35624 | } | |
35625 | ||
35626 | ||
35627 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35628 | PyObject *resultobj; | |
35629 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35630 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35631 | PyObject * obj0 = 0 ; | |
35632 | PyObject * obj1 = 0 ; | |
35633 | char *kwnames[] = { | |
35634 | (char *) "self",(char *) "window", NULL | |
35635 | }; | |
35636 | ||
35637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35642 | { |
35643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35644 | (arg1)->SetVirtualSizeHints(arg2); | |
35645 | ||
35646 | wxPyEndAllowThreads(__tstate); | |
35647 | if (PyErr_Occurred()) SWIG_fail; | |
35648 | } | |
35649 | Py_INCREF(Py_None); resultobj = Py_None; | |
35650 | return resultobj; | |
35651 | fail: | |
35652 | return NULL; | |
35653 | } | |
35654 | ||
35655 | ||
35656 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35657 | PyObject *resultobj; | |
35658 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 35659 | bool arg2 = (bool) False ; |
d14a1e28 RD |
35660 | PyObject * obj0 = 0 ; |
35661 | PyObject * obj1 = 0 ; | |
35662 | char *kwnames[] = { | |
248ed943 | 35663 | (char *) "self",(char *) "deleteWindows", NULL |
d14a1e28 RD |
35664 | }; |
35665 | ||
35666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35669 | if (obj1) { |
15afbcd0 RD |
35670 | arg2 = (bool) SWIG_AsBool(obj1); |
35671 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35672 | } |
35673 | { | |
35674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35675 | (arg1)->Clear(arg2); | |
35676 | ||
35677 | wxPyEndAllowThreads(__tstate); | |
35678 | if (PyErr_Occurred()) SWIG_fail; | |
35679 | } | |
35680 | Py_INCREF(Py_None); resultobj = Py_None; | |
35681 | return resultobj; | |
35682 | fail: | |
35683 | return NULL; | |
35684 | } | |
35685 | ||
35686 | ||
35687 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35688 | PyObject *resultobj; | |
35689 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35690 | PyObject * obj0 = 0 ; | |
35691 | char *kwnames[] = { | |
35692 | (char *) "self", NULL | |
35693 | }; | |
35694 | ||
35695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35698 | { |
35699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35700 | (arg1)->DeleteWindows(); | |
35701 | ||
35702 | wxPyEndAllowThreads(__tstate); | |
35703 | if (PyErr_Occurred()) SWIG_fail; | |
35704 | } | |
35705 | Py_INCREF(Py_None); resultobj = Py_None; | |
35706 | return resultobj; | |
35707 | fail: | |
35708 | return NULL; | |
35709 | } | |
35710 | ||
35711 | ||
35712 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35713 | PyObject *resultobj; | |
35714 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35715 | PyObject *result; | |
35716 | PyObject * obj0 = 0 ; | |
35717 | char *kwnames[] = { | |
35718 | (char *) "self", NULL | |
35719 | }; | |
35720 | ||
35721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35724 | { |
35725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35726 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35727 | ||
35728 | wxPyEndAllowThreads(__tstate); | |
35729 | if (PyErr_Occurred()) SWIG_fail; | |
35730 | } | |
35731 | resultobj = result; | |
35732 | return resultobj; | |
35733 | fail: | |
35734 | return NULL; | |
35735 | } | |
35736 | ||
35737 | ||
35738 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35739 | PyObject *resultobj; | |
35740 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35741 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 35742 | bool arg3 = (bool) True ; |
d14a1e28 RD |
35743 | PyObject * obj0 = 0 ; |
35744 | PyObject * obj1 = 0 ; | |
35745 | PyObject * obj2 = 0 ; | |
35746 | char *kwnames[] = { | |
35747 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35748 | }; | |
35749 | ||
35750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35753 | arg2 = obj1; |
35754 | if (obj2) { | |
15afbcd0 RD |
35755 | arg3 = (bool) SWIG_AsBool(obj2); |
35756 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35757 | } |
35758 | { | |
35759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35760 | wxSizer_Show(arg1,arg2,arg3); | |
35761 | ||
35762 | wxPyEndAllowThreads(__tstate); | |
35763 | if (PyErr_Occurred()) SWIG_fail; | |
35764 | } | |
35765 | Py_INCREF(Py_None); resultobj = Py_None; | |
35766 | return resultobj; | |
35767 | fail: | |
35768 | return NULL; | |
35769 | } | |
35770 | ||
35771 | ||
d14a1e28 RD |
35772 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
35773 | PyObject *resultobj; | |
35774 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35775 | PyObject *arg2 = (PyObject *) 0 ; | |
35776 | bool result; | |
35777 | PyObject * obj0 = 0 ; | |
35778 | PyObject * obj1 = 0 ; | |
35779 | char *kwnames[] = { | |
35780 | (char *) "self",(char *) "item", NULL | |
35781 | }; | |
35782 | ||
35783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35786 | arg2 = obj1; |
35787 | { | |
35788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35789 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35790 | ||
35791 | wxPyEndAllowThreads(__tstate); | |
35792 | if (PyErr_Occurred()) SWIG_fail; | |
35793 | } | |
4f89f6a3 RD |
35794 | { |
35795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35796 | } | |
d14a1e28 RD |
35797 | return resultobj; |
35798 | fail: | |
35799 | return NULL; | |
35800 | } | |
35801 | ||
35802 | ||
35803 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35804 | PyObject *resultobj; | |
35805 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35806 | bool arg2 ; | |
35807 | PyObject * obj0 = 0 ; | |
35808 | PyObject * obj1 = 0 ; | |
35809 | char *kwnames[] = { | |
35810 | (char *) "self",(char *) "show", NULL | |
35811 | }; | |
35812 | ||
35813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35816 | arg2 = (bool) SWIG_AsBool(obj1); | |
35817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35818 | { |
35819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35820 | (arg1)->ShowItems(arg2); | |
35821 | ||
35822 | wxPyEndAllowThreads(__tstate); | |
35823 | if (PyErr_Occurred()) SWIG_fail; | |
35824 | } | |
35825 | Py_INCREF(Py_None); resultobj = Py_None; | |
35826 | return resultobj; | |
35827 | fail: | |
35828 | return NULL; | |
35829 | } | |
35830 | ||
35831 | ||
35832 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35833 | PyObject *obj; | |
35834 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35835 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35836 | Py_INCREF(obj); | |
35837 | return Py_BuildValue((char *)""); | |
35838 | } | |
35839 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35840 | PyObject *resultobj; | |
35841 | wxPySizer *result; | |
35842 | char *kwnames[] = { | |
35843 | NULL | |
35844 | }; | |
35845 | ||
35846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35847 | { | |
35848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35849 | result = (wxPySizer *)new wxPySizer(); | |
35850 | ||
35851 | wxPyEndAllowThreads(__tstate); | |
35852 | if (PyErr_Occurred()) SWIG_fail; | |
35853 | } | |
15afbcd0 | 35854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35855 | return resultobj; |
35856 | fail: | |
35857 | return NULL; | |
35858 | } | |
35859 | ||
35860 | ||
35861 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35862 | PyObject *resultobj; | |
35863 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35864 | PyObject *arg2 = (PyObject *) 0 ; | |
35865 | PyObject *arg3 = (PyObject *) 0 ; | |
35866 | PyObject * obj0 = 0 ; | |
35867 | PyObject * obj1 = 0 ; | |
35868 | PyObject * obj2 = 0 ; | |
35869 | char *kwnames[] = { | |
35870 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35871 | }; | |
35872 | ||
35873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35876 | arg2 = obj1; |
35877 | arg3 = obj2; | |
35878 | { | |
35879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35880 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35881 | ||
35882 | wxPyEndAllowThreads(__tstate); | |
35883 | if (PyErr_Occurred()) SWIG_fail; | |
35884 | } | |
35885 | Py_INCREF(Py_None); resultobj = Py_None; | |
35886 | return resultobj; | |
35887 | fail: | |
35888 | return NULL; | |
35889 | } | |
35890 | ||
35891 | ||
35892 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35893 | PyObject *obj; | |
35894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35895 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35896 | Py_INCREF(obj); | |
35897 | return Py_BuildValue((char *)""); | |
35898 | } | |
35899 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35900 | PyObject *resultobj; | |
35901 | int arg1 = (int) wxHORIZONTAL ; | |
35902 | wxBoxSizer *result; | |
994141e6 | 35903 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35904 | char *kwnames[] = { |
35905 | (char *) "orient", NULL | |
35906 | }; | |
35907 | ||
994141e6 RD |
35908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35909 | if (obj0) { | |
15afbcd0 RD |
35910 | arg1 = (int) SWIG_AsInt(obj0); |
35911 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35912 | } |
d14a1e28 RD |
35913 | { |
35914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35915 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35916 | ||
35917 | wxPyEndAllowThreads(__tstate); | |
35918 | if (PyErr_Occurred()) SWIG_fail; | |
35919 | } | |
15afbcd0 | 35920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35921 | return resultobj; |
35922 | fail: | |
35923 | return NULL; | |
35924 | } | |
35925 | ||
35926 | ||
35927 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35928 | PyObject *resultobj; | |
35929 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35930 | int result; | |
35931 | PyObject * obj0 = 0 ; | |
35932 | char *kwnames[] = { | |
35933 | (char *) "self", NULL | |
35934 | }; | |
35935 | ||
35936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35939 | { |
35940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35941 | result = (int)(arg1)->GetOrientation(); | |
35942 | ||
35943 | wxPyEndAllowThreads(__tstate); | |
35944 | if (PyErr_Occurred()) SWIG_fail; | |
35945 | } | |
15afbcd0 | 35946 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35947 | return resultobj; |
35948 | fail: | |
35949 | return NULL; | |
35950 | } | |
35951 | ||
35952 | ||
35953 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35954 | PyObject *resultobj; | |
35955 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35956 | int arg2 ; | |
35957 | PyObject * obj0 = 0 ; | |
994141e6 | 35958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35959 | char *kwnames[] = { |
35960 | (char *) "self",(char *) "orient", NULL | |
35961 | }; | |
35962 | ||
994141e6 | 35963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35966 | arg2 = (int) SWIG_AsInt(obj1); | |
35967 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35968 | { |
35969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35970 | (arg1)->SetOrientation(arg2); | |
35971 | ||
35972 | wxPyEndAllowThreads(__tstate); | |
35973 | if (PyErr_Occurred()) SWIG_fail; | |
35974 | } | |
35975 | Py_INCREF(Py_None); resultobj = Py_None; | |
35976 | return resultobj; | |
35977 | fail: | |
35978 | return NULL; | |
35979 | } | |
35980 | ||
35981 | ||
d14a1e28 RD |
35982 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { |
35983 | PyObject *obj; | |
35984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35985 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35986 | Py_INCREF(obj); | |
35987 | return Py_BuildValue((char *)""); | |
35988 | } | |
35989 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35990 | PyObject *resultobj; | |
35991 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35992 | int arg2 = (int) wxHORIZONTAL ; | |
35993 | wxStaticBoxSizer *result; | |
35994 | PyObject * obj0 = 0 ; | |
994141e6 | 35995 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35996 | char *kwnames[] = { |
35997 | (char *) "box",(char *) "orient", NULL | |
35998 | }; | |
35999 | ||
994141e6 | 36000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
36002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36003 | if (obj1) { |
15afbcd0 RD |
36004 | arg2 = (int) SWIG_AsInt(obj1); |
36005 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36006 | } |
d14a1e28 RD |
36007 | { |
36008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36009 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36010 | ||
36011 | wxPyEndAllowThreads(__tstate); | |
36012 | if (PyErr_Occurred()) SWIG_fail; | |
36013 | } | |
15afbcd0 | 36014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
36015 | return resultobj; |
36016 | fail: | |
36017 | return NULL; | |
36018 | } | |
36019 | ||
36020 | ||
36021 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36022 | PyObject *resultobj; | |
36023 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36024 | wxStaticBox *result; | |
36025 | PyObject * obj0 = 0 ; | |
36026 | char *kwnames[] = { | |
36027 | (char *) "self", NULL | |
36028 | }; | |
36029 | ||
36030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
36032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36033 | { |
36034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36035 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36036 | ||
36037 | wxPyEndAllowThreads(__tstate); | |
36038 | if (PyErr_Occurred()) SWIG_fail; | |
36039 | } | |
36040 | { | |
412d302d | 36041 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
36042 | } |
36043 | return resultobj; | |
36044 | fail: | |
36045 | return NULL; | |
36046 | } | |
36047 | ||
36048 | ||
d14a1e28 RD |
36049 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { |
36050 | PyObject *obj; | |
36051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36052 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36053 | Py_INCREF(obj); | |
36054 | return Py_BuildValue((char *)""); | |
36055 | } | |
36056 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36057 | PyObject *resultobj; | |
36058 | int arg1 = (int) 1 ; | |
36059 | int arg2 = (int) 0 ; | |
36060 | int arg3 = (int) 0 ; | |
36061 | int arg4 = (int) 0 ; | |
36062 | wxGridSizer *result; | |
994141e6 RD |
36063 | PyObject * obj0 = 0 ; |
36064 | PyObject * obj1 = 0 ; | |
36065 | PyObject * obj2 = 0 ; | |
36066 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
36067 | char *kwnames[] = { |
36068 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36069 | }; | |
36070 | ||
994141e6 RD |
36071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
36072 | if (obj0) { | |
15afbcd0 RD |
36073 | arg1 = (int) SWIG_AsInt(obj0); |
36074 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36075 | } |
36076 | if (obj1) { | |
15afbcd0 RD |
36077 | arg2 = (int) SWIG_AsInt(obj1); |
36078 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36079 | } |
36080 | if (obj2) { | |
15afbcd0 RD |
36081 | arg3 = (int) SWIG_AsInt(obj2); |
36082 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36083 | } |
36084 | if (obj3) { | |
15afbcd0 RD |
36085 | arg4 = (int) SWIG_AsInt(obj3); |
36086 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36087 | } |
d14a1e28 RD |
36088 | { |
36089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36090 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36091 | ||
36092 | wxPyEndAllowThreads(__tstate); | |
36093 | if (PyErr_Occurred()) SWIG_fail; | |
36094 | } | |
15afbcd0 | 36095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
36096 | return resultobj; |
36097 | fail: | |
36098 | return NULL; | |
36099 | } | |
36100 | ||
36101 | ||
d14a1e28 RD |
36102 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { |
36103 | PyObject *resultobj; | |
36104 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36105 | int arg2 ; | |
36106 | PyObject * obj0 = 0 ; | |
994141e6 | 36107 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36108 | char *kwnames[] = { |
36109 | (char *) "self",(char *) "cols", NULL | |
36110 | }; | |
36111 | ||
994141e6 | 36112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36115 | arg2 = (int) SWIG_AsInt(obj1); | |
36116 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36117 | { |
36118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36119 | (arg1)->SetCols(arg2); | |
36120 | ||
36121 | wxPyEndAllowThreads(__tstate); | |
36122 | if (PyErr_Occurred()) SWIG_fail; | |
36123 | } | |
36124 | Py_INCREF(Py_None); resultobj = Py_None; | |
36125 | return resultobj; | |
36126 | fail: | |
36127 | return NULL; | |
36128 | } | |
36129 | ||
36130 | ||
36131 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36132 | PyObject *resultobj; | |
36133 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36134 | int arg2 ; | |
36135 | PyObject * obj0 = 0 ; | |
994141e6 | 36136 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36137 | char *kwnames[] = { |
36138 | (char *) "self",(char *) "rows", NULL | |
36139 | }; | |
36140 | ||
994141e6 | 36141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36144 | arg2 = (int) SWIG_AsInt(obj1); | |
36145 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36146 | { |
36147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36148 | (arg1)->SetRows(arg2); | |
36149 | ||
36150 | wxPyEndAllowThreads(__tstate); | |
36151 | if (PyErr_Occurred()) SWIG_fail; | |
36152 | } | |
36153 | Py_INCREF(Py_None); resultobj = Py_None; | |
36154 | return resultobj; | |
36155 | fail: | |
36156 | return NULL; | |
36157 | } | |
36158 | ||
36159 | ||
36160 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36161 | PyObject *resultobj; | |
36162 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36163 | int arg2 ; | |
36164 | PyObject * obj0 = 0 ; | |
994141e6 | 36165 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36166 | char *kwnames[] = { |
36167 | (char *) "self",(char *) "gap", NULL | |
36168 | }; | |
36169 | ||
994141e6 | 36170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36173 | arg2 = (int) SWIG_AsInt(obj1); | |
36174 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36175 | { |
36176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36177 | (arg1)->SetVGap(arg2); | |
36178 | ||
36179 | wxPyEndAllowThreads(__tstate); | |
36180 | if (PyErr_Occurred()) SWIG_fail; | |
36181 | } | |
36182 | Py_INCREF(Py_None); resultobj = Py_None; | |
36183 | return resultobj; | |
36184 | fail: | |
36185 | return NULL; | |
36186 | } | |
36187 | ||
36188 | ||
36189 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36190 | PyObject *resultobj; | |
36191 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36192 | int arg2 ; | |
36193 | PyObject * obj0 = 0 ; | |
994141e6 | 36194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36195 | char *kwnames[] = { |
36196 | (char *) "self",(char *) "gap", NULL | |
36197 | }; | |
36198 | ||
994141e6 | 36199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36202 | arg2 = (int) SWIG_AsInt(obj1); | |
36203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36204 | { |
36205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36206 | (arg1)->SetHGap(arg2); | |
36207 | ||
36208 | wxPyEndAllowThreads(__tstate); | |
36209 | if (PyErr_Occurred()) SWIG_fail; | |
36210 | } | |
36211 | Py_INCREF(Py_None); resultobj = Py_None; | |
36212 | return resultobj; | |
36213 | fail: | |
36214 | return NULL; | |
36215 | } | |
36216 | ||
36217 | ||
36218 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36219 | PyObject *resultobj; | |
36220 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36221 | int result; | |
36222 | PyObject * obj0 = 0 ; | |
36223 | char *kwnames[] = { | |
36224 | (char *) "self", NULL | |
36225 | }; | |
36226 | ||
36227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36230 | { |
36231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36232 | result = (int)(arg1)->GetCols(); | |
36233 | ||
36234 | wxPyEndAllowThreads(__tstate); | |
36235 | if (PyErr_Occurred()) SWIG_fail; | |
36236 | } | |
15afbcd0 | 36237 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36238 | return resultobj; |
36239 | fail: | |
36240 | return NULL; | |
36241 | } | |
36242 | ||
36243 | ||
36244 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36245 | PyObject *resultobj; | |
36246 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36247 | int result; | |
36248 | PyObject * obj0 = 0 ; | |
36249 | char *kwnames[] = { | |
36250 | (char *) "self", NULL | |
36251 | }; | |
36252 | ||
36253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36256 | { |
36257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36258 | result = (int)(arg1)->GetRows(); | |
36259 | ||
36260 | wxPyEndAllowThreads(__tstate); | |
36261 | if (PyErr_Occurred()) SWIG_fail; | |
36262 | } | |
15afbcd0 | 36263 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36264 | return resultobj; |
36265 | fail: | |
36266 | return NULL; | |
36267 | } | |
36268 | ||
36269 | ||
36270 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36271 | PyObject *resultobj; | |
36272 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36273 | int result; | |
36274 | PyObject * obj0 = 0 ; | |
36275 | char *kwnames[] = { | |
36276 | (char *) "self", NULL | |
36277 | }; | |
36278 | ||
36279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36282 | { |
36283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36284 | result = (int)(arg1)->GetVGap(); | |
36285 | ||
36286 | wxPyEndAllowThreads(__tstate); | |
36287 | if (PyErr_Occurred()) SWIG_fail; | |
36288 | } | |
15afbcd0 | 36289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36290 | return resultobj; |
36291 | fail: | |
36292 | return NULL; | |
36293 | } | |
36294 | ||
36295 | ||
36296 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36297 | PyObject *resultobj; | |
36298 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36299 | int result; | |
36300 | PyObject * obj0 = 0 ; | |
36301 | char *kwnames[] = { | |
36302 | (char *) "self", NULL | |
36303 | }; | |
36304 | ||
36305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36308 | { |
36309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36310 | result = (int)(arg1)->GetHGap(); | |
36311 | ||
36312 | wxPyEndAllowThreads(__tstate); | |
36313 | if (PyErr_Occurred()) SWIG_fail; | |
36314 | } | |
15afbcd0 | 36315 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36316 | return resultobj; |
36317 | fail: | |
36318 | return NULL; | |
36319 | } | |
36320 | ||
36321 | ||
36322 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36323 | PyObject *obj; | |
36324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36325 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36326 | Py_INCREF(obj); | |
36327 | return Py_BuildValue((char *)""); | |
36328 | } | |
36329 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36330 | PyObject *resultobj; | |
36331 | int arg1 = (int) 1 ; | |
36332 | int arg2 = (int) 0 ; | |
36333 | int arg3 = (int) 0 ; | |
36334 | int arg4 = (int) 0 ; | |
36335 | wxFlexGridSizer *result; | |
994141e6 RD |
36336 | PyObject * obj0 = 0 ; |
36337 | PyObject * obj1 = 0 ; | |
36338 | PyObject * obj2 = 0 ; | |
36339 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
36340 | char *kwnames[] = { |
36341 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36342 | }; | |
36343 | ||
994141e6 RD |
36344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
36345 | if (obj0) { | |
15afbcd0 RD |
36346 | arg1 = (int) SWIG_AsInt(obj0); |
36347 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36348 | } |
36349 | if (obj1) { | |
15afbcd0 RD |
36350 | arg2 = (int) SWIG_AsInt(obj1); |
36351 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36352 | } |
36353 | if (obj2) { | |
15afbcd0 RD |
36354 | arg3 = (int) SWIG_AsInt(obj2); |
36355 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36356 | } |
36357 | if (obj3) { | |
15afbcd0 RD |
36358 | arg4 = (int) SWIG_AsInt(obj3); |
36359 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36360 | } |
d14a1e28 RD |
36361 | { |
36362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36363 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36364 | ||
36365 | wxPyEndAllowThreads(__tstate); | |
36366 | if (PyErr_Occurred()) SWIG_fail; | |
36367 | } | |
15afbcd0 | 36368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
36369 | return resultobj; |
36370 | fail: | |
36371 | return NULL; | |
36372 | } | |
36373 | ||
36374 | ||
d14a1e28 RD |
36375 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { |
36376 | PyObject *resultobj; | |
36377 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36378 | size_t arg2 ; | |
36379 | int arg3 = (int) 0 ; | |
36380 | PyObject * obj0 = 0 ; | |
36381 | PyObject * obj1 = 0 ; | |
994141e6 | 36382 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36383 | char *kwnames[] = { |
36384 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36385 | }; | |
36386 | ||
994141e6 | 36387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36390 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36391 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36392 | if (obj2) { |
15afbcd0 RD |
36393 | arg3 = (int) SWIG_AsInt(obj2); |
36394 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36395 | } |
d14a1e28 RD |
36396 | { |
36397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36398 | (arg1)->AddGrowableRow(arg2,arg3); | |
36399 | ||
36400 | wxPyEndAllowThreads(__tstate); | |
36401 | if (PyErr_Occurred()) SWIG_fail; | |
36402 | } | |
36403 | Py_INCREF(Py_None); resultobj = Py_None; | |
36404 | return resultobj; | |
36405 | fail: | |
36406 | return NULL; | |
36407 | } | |
36408 | ||
36409 | ||
36410 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36411 | PyObject *resultobj; | |
36412 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36413 | size_t arg2 ; | |
36414 | PyObject * obj0 = 0 ; | |
36415 | PyObject * obj1 = 0 ; | |
36416 | char *kwnames[] = { | |
36417 | (char *) "self",(char *) "idx", NULL | |
36418 | }; | |
36419 | ||
36420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36423 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36425 | { |
36426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36427 | (arg1)->RemoveGrowableRow(arg2); | |
36428 | ||
36429 | wxPyEndAllowThreads(__tstate); | |
36430 | if (PyErr_Occurred()) SWIG_fail; | |
36431 | } | |
36432 | Py_INCREF(Py_None); resultobj = Py_None; | |
36433 | return resultobj; | |
36434 | fail: | |
36435 | return NULL; | |
36436 | } | |
36437 | ||
36438 | ||
36439 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36440 | PyObject *resultobj; | |
36441 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36442 | size_t arg2 ; | |
36443 | int arg3 = (int) 0 ; | |
36444 | PyObject * obj0 = 0 ; | |
36445 | PyObject * obj1 = 0 ; | |
994141e6 | 36446 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36447 | char *kwnames[] = { |
36448 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36449 | }; | |
36450 | ||
994141e6 | 36451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36454 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36455 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36456 | if (obj2) { |
15afbcd0 RD |
36457 | arg3 = (int) SWIG_AsInt(obj2); |
36458 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36459 | } |
d14a1e28 RD |
36460 | { |
36461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36462 | (arg1)->AddGrowableCol(arg2,arg3); | |
36463 | ||
36464 | wxPyEndAllowThreads(__tstate); | |
36465 | if (PyErr_Occurred()) SWIG_fail; | |
36466 | } | |
36467 | Py_INCREF(Py_None); resultobj = Py_None; | |
36468 | return resultobj; | |
36469 | fail: | |
36470 | return NULL; | |
36471 | } | |
36472 | ||
36473 | ||
36474 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36475 | PyObject *resultobj; | |
36476 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36477 | size_t arg2 ; | |
36478 | PyObject * obj0 = 0 ; | |
36479 | PyObject * obj1 = 0 ; | |
36480 | char *kwnames[] = { | |
36481 | (char *) "self",(char *) "idx", NULL | |
36482 | }; | |
36483 | ||
36484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36487 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36488 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36489 | { |
36490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36491 | (arg1)->RemoveGrowableCol(arg2); | |
36492 | ||
36493 | wxPyEndAllowThreads(__tstate); | |
36494 | if (PyErr_Occurred()) SWIG_fail; | |
36495 | } | |
36496 | Py_INCREF(Py_None); resultobj = Py_None; | |
36497 | return resultobj; | |
36498 | fail: | |
36499 | return NULL; | |
36500 | } | |
36501 | ||
36502 | ||
36503 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36504 | PyObject *resultobj; | |
36505 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36506 | int arg2 ; | |
36507 | PyObject * obj0 = 0 ; | |
994141e6 | 36508 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36509 | char *kwnames[] = { |
36510 | (char *) "self",(char *) "direction", NULL | |
36511 | }; | |
36512 | ||
994141e6 | 36513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36516 | arg2 = (int) SWIG_AsInt(obj1); | |
36517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36518 | { |
36519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36520 | (arg1)->SetFlexibleDirection(arg2); | |
36521 | ||
36522 | wxPyEndAllowThreads(__tstate); | |
36523 | if (PyErr_Occurred()) SWIG_fail; | |
36524 | } | |
36525 | Py_INCREF(Py_None); resultobj = Py_None; | |
36526 | return resultobj; | |
36527 | fail: | |
36528 | return NULL; | |
36529 | } | |
36530 | ||
36531 | ||
36532 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36533 | PyObject *resultobj; | |
36534 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36535 | int result; | |
36536 | PyObject * obj0 = 0 ; | |
36537 | char *kwnames[] = { | |
36538 | (char *) "self", NULL | |
36539 | }; | |
36540 | ||
36541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36544 | { |
36545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36546 | result = (int)(arg1)->GetFlexibleDirection(); | |
36547 | ||
36548 | wxPyEndAllowThreads(__tstate); | |
36549 | if (PyErr_Occurred()) SWIG_fail; | |
36550 | } | |
15afbcd0 | 36551 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36552 | return resultobj; |
36553 | fail: | |
36554 | return NULL; | |
36555 | } | |
36556 | ||
36557 | ||
36558 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36559 | PyObject *resultobj; | |
36560 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36561 | int arg2 ; | |
36562 | PyObject * obj0 = 0 ; | |
994141e6 | 36563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36564 | char *kwnames[] = { |
36565 | (char *) "self",(char *) "mode", NULL | |
36566 | }; | |
36567 | ||
994141e6 | 36568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36571 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36572 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36573 | { |
36574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36575 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36576 | ||
36577 | wxPyEndAllowThreads(__tstate); | |
36578 | if (PyErr_Occurred()) SWIG_fail; | |
36579 | } | |
36580 | Py_INCREF(Py_None); resultobj = Py_None; | |
36581 | return resultobj; | |
36582 | fail: | |
36583 | return NULL; | |
36584 | } | |
36585 | ||
36586 | ||
36587 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36588 | PyObject *resultobj; | |
36589 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36590 | int result; | |
36591 | PyObject * obj0 = 0 ; | |
36592 | char *kwnames[] = { | |
36593 | (char *) "self", NULL | |
36594 | }; | |
36595 | ||
36596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36599 | { |
36600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36601 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36602 | ||
36603 | wxPyEndAllowThreads(__tstate); | |
36604 | if (PyErr_Occurred()) SWIG_fail; | |
36605 | } | |
15afbcd0 | 36606 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36607 | return resultobj; |
36608 | fail: | |
36609 | return NULL; | |
36610 | } | |
36611 | ||
36612 | ||
e811c8ce RD |
36613 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36614 | PyObject *resultobj; | |
36615 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36616 | wxArrayInt *result; | |
36617 | PyObject * obj0 = 0 ; | |
36618 | char *kwnames[] = { | |
36619 | (char *) "self", NULL | |
36620 | }; | |
36621 | ||
36622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36625 | { |
36626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36627 | { | |
36628 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36629 | result = (wxArrayInt *) &_result_ref; | |
36630 | } | |
36631 | ||
36632 | wxPyEndAllowThreads(__tstate); | |
36633 | if (PyErr_Occurred()) SWIG_fail; | |
36634 | } | |
36635 | { | |
36636 | resultobj = PyList_New(0); | |
36637 | size_t idx; | |
36638 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36639 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36640 | PyList_Append(resultobj, val); | |
36641 | Py_DECREF(val); | |
36642 | } | |
36643 | } | |
36644 | return resultobj; | |
36645 | fail: | |
36646 | return NULL; | |
36647 | } | |
36648 | ||
36649 | ||
36650 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36651 | PyObject *resultobj; | |
36652 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36653 | wxArrayInt *result; | |
36654 | PyObject * obj0 = 0 ; | |
36655 | char *kwnames[] = { | |
36656 | (char *) "self", NULL | |
36657 | }; | |
36658 | ||
36659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36662 | { |
36663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36664 | { | |
36665 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36666 | result = (wxArrayInt *) &_result_ref; | |
36667 | } | |
36668 | ||
36669 | wxPyEndAllowThreads(__tstate); | |
36670 | if (PyErr_Occurred()) SWIG_fail; | |
36671 | } | |
36672 | { | |
36673 | resultobj = PyList_New(0); | |
36674 | size_t idx; | |
36675 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36676 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36677 | PyList_Append(resultobj, val); | |
36678 | Py_DECREF(val); | |
36679 | } | |
36680 | } | |
36681 | return resultobj; | |
36682 | fail: | |
36683 | return NULL; | |
36684 | } | |
36685 | ||
36686 | ||
d14a1e28 RD |
36687 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36688 | PyObject *obj; | |
36689 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36690 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36691 | Py_INCREF(obj); | |
36692 | return Py_BuildValue((char *)""); | |
36693 | } | |
36694 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36695 | PyObject *resultobj; | |
36696 | int arg1 = (int) 0 ; | |
36697 | int arg2 = (int) 0 ; | |
36698 | wxGBPosition *result; | |
994141e6 RD |
36699 | PyObject * obj0 = 0 ; |
36700 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36701 | char *kwnames[] = { |
36702 | (char *) "row",(char *) "col", NULL | |
36703 | }; | |
36704 | ||
994141e6 RD |
36705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36706 | if (obj0) { | |
15afbcd0 RD |
36707 | arg1 = (int) SWIG_AsInt(obj0); |
36708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36709 | } |
36710 | if (obj1) { | |
15afbcd0 RD |
36711 | arg2 = (int) SWIG_AsInt(obj1); |
36712 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36713 | } |
d14a1e28 RD |
36714 | { |
36715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36716 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36717 | ||
36718 | wxPyEndAllowThreads(__tstate); | |
36719 | if (PyErr_Occurred()) SWIG_fail; | |
36720 | } | |
15afbcd0 | 36721 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36722 | return resultobj; |
36723 | fail: | |
36724 | return NULL; | |
36725 | } | |
36726 | ||
36727 | ||
36728 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36729 | PyObject *resultobj; | |
36730 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36731 | int result; | |
36732 | PyObject * obj0 = 0 ; | |
36733 | char *kwnames[] = { | |
36734 | (char *) "self", NULL | |
36735 | }; | |
36736 | ||
36737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36740 | { |
36741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36742 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36743 | ||
36744 | wxPyEndAllowThreads(__tstate); | |
36745 | if (PyErr_Occurred()) SWIG_fail; | |
36746 | } | |
15afbcd0 | 36747 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36748 | return resultobj; |
36749 | fail: | |
36750 | return NULL; | |
36751 | } | |
36752 | ||
36753 | ||
36754 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36755 | PyObject *resultobj; | |
36756 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36757 | int result; | |
36758 | PyObject * obj0 = 0 ; | |
36759 | char *kwnames[] = { | |
36760 | (char *) "self", NULL | |
36761 | }; | |
36762 | ||
36763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36766 | { |
36767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36768 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36769 | ||
36770 | wxPyEndAllowThreads(__tstate); | |
36771 | if (PyErr_Occurred()) SWIG_fail; | |
36772 | } | |
15afbcd0 | 36773 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36774 | return resultobj; |
36775 | fail: | |
36776 | return NULL; | |
36777 | } | |
36778 | ||
36779 | ||
36780 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36781 | PyObject *resultobj; | |
36782 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36783 | int arg2 ; | |
36784 | PyObject * obj0 = 0 ; | |
994141e6 | 36785 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36786 | char *kwnames[] = { |
36787 | (char *) "self",(char *) "row", NULL | |
36788 | }; | |
36789 | ||
994141e6 | 36790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36793 | arg2 = (int) SWIG_AsInt(obj1); | |
36794 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36795 | { |
36796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36797 | (arg1)->SetRow(arg2); | |
36798 | ||
36799 | wxPyEndAllowThreads(__tstate); | |
36800 | if (PyErr_Occurred()) SWIG_fail; | |
36801 | } | |
36802 | Py_INCREF(Py_None); resultobj = Py_None; | |
36803 | return resultobj; | |
36804 | fail: | |
36805 | return NULL; | |
36806 | } | |
36807 | ||
36808 | ||
36809 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36810 | PyObject *resultobj; | |
36811 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36812 | int arg2 ; | |
36813 | PyObject * obj0 = 0 ; | |
994141e6 | 36814 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36815 | char *kwnames[] = { |
36816 | (char *) "self",(char *) "col", NULL | |
36817 | }; | |
36818 | ||
994141e6 | 36819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36822 | arg2 = (int) SWIG_AsInt(obj1); | |
36823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36824 | { |
36825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36826 | (arg1)->SetCol(arg2); | |
36827 | ||
36828 | wxPyEndAllowThreads(__tstate); | |
36829 | if (PyErr_Occurred()) SWIG_fail; | |
36830 | } | |
36831 | Py_INCREF(Py_None); resultobj = Py_None; | |
36832 | return resultobj; | |
36833 | fail: | |
36834 | return NULL; | |
36835 | } | |
36836 | ||
36837 | ||
36838 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36839 | PyObject *resultobj; | |
36840 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36841 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36842 | bool result; |
4f89f6a3 | 36843 | wxGBPosition temp2 ; |
d14a1e28 RD |
36844 | PyObject * obj0 = 0 ; |
36845 | PyObject * obj1 = 0 ; | |
36846 | char *kwnames[] = { | |
22faec7d | 36847 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36848 | }; |
36849 | ||
36850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36853 | { |
36854 | arg2 = &temp2; | |
36855 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36856 | } | |
d14a1e28 RD |
36857 | { |
36858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36859 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36860 | |
36861 | wxPyEndAllowThreads(__tstate); | |
36862 | if (PyErr_Occurred()) SWIG_fail; | |
36863 | } | |
4f89f6a3 RD |
36864 | { |
36865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36866 | } | |
d14a1e28 RD |
36867 | return resultobj; |
36868 | fail: | |
36869 | return NULL; | |
36870 | } | |
36871 | ||
36872 | ||
36873 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36874 | PyObject *resultobj; | |
36875 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36876 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36877 | bool result; |
4f89f6a3 | 36878 | wxGBPosition temp2 ; |
d14a1e28 RD |
36879 | PyObject * obj0 = 0 ; |
36880 | PyObject * obj1 = 0 ; | |
36881 | char *kwnames[] = { | |
22faec7d | 36882 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36883 | }; |
36884 | ||
36885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36888 | { |
36889 | arg2 = &temp2; | |
36890 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36891 | } | |
d14a1e28 RD |
36892 | { |
36893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36894 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36895 | |
36896 | wxPyEndAllowThreads(__tstate); | |
36897 | if (PyErr_Occurred()) SWIG_fail; | |
36898 | } | |
4f89f6a3 RD |
36899 | { |
36900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36901 | } | |
d14a1e28 RD |
36902 | return resultobj; |
36903 | fail: | |
36904 | return NULL; | |
36905 | } | |
36906 | ||
36907 | ||
e811c8ce RD |
36908 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36909 | PyObject *resultobj; | |
36910 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36911 | int arg2 = (int) 0 ; | |
36912 | int arg3 = (int) 0 ; | |
36913 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36914 | PyObject * obj1 = 0 ; |
36915 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36916 | char *kwnames[] = { |
36917 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36918 | }; | |
36919 | ||
994141e6 | 36920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36923 | if (obj1) { |
15afbcd0 RD |
36924 | arg2 = (int) SWIG_AsInt(obj1); |
36925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36926 | } |
36927 | if (obj2) { | |
15afbcd0 RD |
36928 | arg3 = (int) SWIG_AsInt(obj2); |
36929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36930 | } |
e811c8ce RD |
36931 | { |
36932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36933 | wxGBPosition_Set(arg1,arg2,arg3); | |
36934 | ||
36935 | wxPyEndAllowThreads(__tstate); | |
36936 | if (PyErr_Occurred()) SWIG_fail; | |
36937 | } | |
36938 | Py_INCREF(Py_None); resultobj = Py_None; | |
36939 | return resultobj; | |
36940 | fail: | |
36941 | return NULL; | |
36942 | } | |
36943 | ||
36944 | ||
36945 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36946 | PyObject *resultobj; |
36947 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36948 | PyObject *result; | |
36949 | PyObject * obj0 = 0 ; | |
36950 | char *kwnames[] = { | |
36951 | (char *) "self", NULL | |
36952 | }; | |
36953 | ||
e811c8ce | 36954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36957 | { |
36958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36959 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36960 | |
36961 | wxPyEndAllowThreads(__tstate); | |
36962 | if (PyErr_Occurred()) SWIG_fail; | |
36963 | } | |
36964 | resultobj = result; | |
36965 | return resultobj; | |
36966 | fail: | |
36967 | return NULL; | |
36968 | } | |
36969 | ||
36970 | ||
36971 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36972 | PyObject *obj; | |
36973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36974 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36975 | Py_INCREF(obj); | |
36976 | return Py_BuildValue((char *)""); | |
36977 | } | |
36978 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36979 | PyObject *resultobj; | |
36980 | int arg1 = (int) 1 ; | |
36981 | int arg2 = (int) 1 ; | |
36982 | wxGBSpan *result; | |
994141e6 RD |
36983 | PyObject * obj0 = 0 ; |
36984 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36985 | char *kwnames[] = { |
36986 | (char *) "rowspan",(char *) "colspan", NULL | |
36987 | }; | |
36988 | ||
994141e6 RD |
36989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36990 | if (obj0) { | |
15afbcd0 RD |
36991 | arg1 = (int) SWIG_AsInt(obj0); |
36992 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36993 | } |
36994 | if (obj1) { | |
15afbcd0 RD |
36995 | arg2 = (int) SWIG_AsInt(obj1); |
36996 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36997 | } |
d14a1e28 RD |
36998 | { |
36999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37000 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37001 | ||
37002 | wxPyEndAllowThreads(__tstate); | |
37003 | if (PyErr_Occurred()) SWIG_fail; | |
37004 | } | |
15afbcd0 | 37005 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37006 | return resultobj; |
37007 | fail: | |
37008 | return NULL; | |
37009 | } | |
37010 | ||
37011 | ||
37012 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37013 | PyObject *resultobj; | |
37014 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37015 | int result; | |
37016 | PyObject * obj0 = 0 ; | |
37017 | char *kwnames[] = { | |
37018 | (char *) "self", NULL | |
37019 | }; | |
37020 | ||
37021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37024 | { |
37025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37026 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37027 | ||
37028 | wxPyEndAllowThreads(__tstate); | |
37029 | if (PyErr_Occurred()) SWIG_fail; | |
37030 | } | |
15afbcd0 | 37031 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
37032 | return resultobj; |
37033 | fail: | |
37034 | return NULL; | |
37035 | } | |
37036 | ||
37037 | ||
37038 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37039 | PyObject *resultobj; | |
37040 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37041 | int result; | |
37042 | PyObject * obj0 = 0 ; | |
37043 | char *kwnames[] = { | |
37044 | (char *) "self", NULL | |
37045 | }; | |
37046 | ||
37047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37050 | { |
37051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37052 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37053 | ||
37054 | wxPyEndAllowThreads(__tstate); | |
37055 | if (PyErr_Occurred()) SWIG_fail; | |
37056 | } | |
15afbcd0 | 37057 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
37058 | return resultobj; |
37059 | fail: | |
37060 | return NULL; | |
37061 | } | |
37062 | ||
37063 | ||
37064 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37065 | PyObject *resultobj; | |
37066 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37067 | int arg2 ; | |
37068 | PyObject * obj0 = 0 ; | |
994141e6 | 37069 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37070 | char *kwnames[] = { |
37071 | (char *) "self",(char *) "rowspan", NULL | |
37072 | }; | |
37073 | ||
994141e6 | 37074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37077 | arg2 = (int) SWIG_AsInt(obj1); | |
37078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37079 | { |
37080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37081 | (arg1)->SetRowspan(arg2); | |
37082 | ||
37083 | wxPyEndAllowThreads(__tstate); | |
37084 | if (PyErr_Occurred()) SWIG_fail; | |
37085 | } | |
37086 | Py_INCREF(Py_None); resultobj = Py_None; | |
37087 | return resultobj; | |
37088 | fail: | |
37089 | return NULL; | |
37090 | } | |
37091 | ||
37092 | ||
37093 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37094 | PyObject *resultobj; | |
37095 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37096 | int arg2 ; | |
37097 | PyObject * obj0 = 0 ; | |
994141e6 | 37098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37099 | char *kwnames[] = { |
37100 | (char *) "self",(char *) "colspan", NULL | |
37101 | }; | |
37102 | ||
994141e6 | 37103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37106 | arg2 = (int) SWIG_AsInt(obj1); | |
37107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37108 | { |
37109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37110 | (arg1)->SetColspan(arg2); | |
37111 | ||
37112 | wxPyEndAllowThreads(__tstate); | |
37113 | if (PyErr_Occurred()) SWIG_fail; | |
37114 | } | |
37115 | Py_INCREF(Py_None); resultobj = Py_None; | |
37116 | return resultobj; | |
37117 | fail: | |
37118 | return NULL; | |
37119 | } | |
37120 | ||
37121 | ||
37122 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37123 | PyObject *resultobj; | |
37124 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37125 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37126 | bool result; |
4f89f6a3 | 37127 | wxGBSpan temp2 ; |
d14a1e28 RD |
37128 | PyObject * obj0 = 0 ; |
37129 | PyObject * obj1 = 0 ; | |
37130 | char *kwnames[] = { | |
22faec7d | 37131 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37132 | }; |
37133 | ||
37134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37137 | { |
37138 | arg2 = &temp2; | |
37139 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37140 | } | |
d14a1e28 RD |
37141 | { |
37142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37143 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37144 | |
37145 | wxPyEndAllowThreads(__tstate); | |
37146 | if (PyErr_Occurred()) SWIG_fail; | |
37147 | } | |
4f89f6a3 RD |
37148 | { |
37149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37150 | } | |
d14a1e28 RD |
37151 | return resultobj; |
37152 | fail: | |
37153 | return NULL; | |
37154 | } | |
37155 | ||
37156 | ||
37157 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37158 | PyObject *resultobj; | |
37159 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37160 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37161 | bool result; |
4f89f6a3 | 37162 | wxGBSpan temp2 ; |
d14a1e28 RD |
37163 | PyObject * obj0 = 0 ; |
37164 | PyObject * obj1 = 0 ; | |
37165 | char *kwnames[] = { | |
22faec7d | 37166 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37167 | }; |
37168 | ||
37169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37172 | { |
37173 | arg2 = &temp2; | |
37174 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37175 | } | |
d14a1e28 RD |
37176 | { |
37177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37178 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37179 | |
37180 | wxPyEndAllowThreads(__tstate); | |
37181 | if (PyErr_Occurred()) SWIG_fail; | |
37182 | } | |
4f89f6a3 RD |
37183 | { |
37184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37185 | } | |
d14a1e28 RD |
37186 | return resultobj; |
37187 | fail: | |
37188 | return NULL; | |
37189 | } | |
37190 | ||
37191 | ||
e811c8ce RD |
37192 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
37193 | PyObject *resultobj; | |
37194 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37195 | int arg2 = (int) 1 ; | |
37196 | int arg3 = (int) 1 ; | |
37197 | PyObject * obj0 = 0 ; | |
994141e6 RD |
37198 | PyObject * obj1 = 0 ; |
37199 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
37200 | char *kwnames[] = { |
37201 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37202 | }; | |
37203 | ||
994141e6 | 37204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 37207 | if (obj1) { |
15afbcd0 RD |
37208 | arg2 = (int) SWIG_AsInt(obj1); |
37209 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37210 | } |
37211 | if (obj2) { | |
15afbcd0 RD |
37212 | arg3 = (int) SWIG_AsInt(obj2); |
37213 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37214 | } |
e811c8ce RD |
37215 | { |
37216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37217 | wxGBSpan_Set(arg1,arg2,arg3); | |
37218 | ||
37219 | wxPyEndAllowThreads(__tstate); | |
37220 | if (PyErr_Occurred()) SWIG_fail; | |
37221 | } | |
37222 | Py_INCREF(Py_None); resultobj = Py_None; | |
37223 | return resultobj; | |
37224 | fail: | |
37225 | return NULL; | |
37226 | } | |
37227 | ||
37228 | ||
37229 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
37230 | PyObject *resultobj; |
37231 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37232 | PyObject *result; | |
37233 | PyObject * obj0 = 0 ; | |
37234 | char *kwnames[] = { | |
37235 | (char *) "self", NULL | |
37236 | }; | |
37237 | ||
e811c8ce | 37238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
37239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37241 | { |
37242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 37243 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
37244 | |
37245 | wxPyEndAllowThreads(__tstate); | |
37246 | if (PyErr_Occurred()) SWIG_fail; | |
37247 | } | |
37248 | resultobj = result; | |
37249 | return resultobj; | |
37250 | fail: | |
37251 | return NULL; | |
37252 | } | |
37253 | ||
37254 | ||
37255 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37256 | PyObject *obj; | |
37257 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37258 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37259 | Py_INCREF(obj); | |
37260 | return Py_BuildValue((char *)""); | |
37261 | } | |
37262 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37263 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37264 | return 1; | |
37265 | } | |
37266 | ||
37267 | ||
37268 | static PyObject *_wrap_DefaultSpan_get() { | |
37269 | PyObject *pyobj; | |
37270 | ||
15afbcd0 | 37271 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
37272 | return pyobj; |
37273 | } | |
37274 | ||
37275 | ||
37276 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37277 | PyObject *resultobj; | |
37278 | wxGBSizerItem *result; | |
37279 | char *kwnames[] = { | |
37280 | NULL | |
37281 | }; | |
37282 | ||
37283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37284 | { | |
37285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37286 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37287 | ||
37288 | wxPyEndAllowThreads(__tstate); | |
37289 | if (PyErr_Occurred()) SWIG_fail; | |
37290 | } | |
15afbcd0 | 37291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37292 | return resultobj; |
37293 | fail: | |
37294 | return NULL; | |
37295 | } | |
37296 | ||
37297 | ||
37298 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37299 | PyObject *resultobj; | |
37300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37301 | wxGBPosition *arg2 = 0 ; | |
37302 | wxGBSpan *arg3 = 0 ; | |
37303 | int arg4 ; | |
37304 | int arg5 ; | |
248ed943 | 37305 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
37306 | wxGBSizerItem *result; |
37307 | wxGBPosition temp2 ; | |
37308 | wxGBSpan temp3 ; | |
37309 | PyObject * obj0 = 0 ; | |
37310 | PyObject * obj1 = 0 ; | |
37311 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37312 | PyObject * obj3 = 0 ; |
37313 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37314 | PyObject * obj5 = 0 ; |
37315 | char *kwnames[] = { | |
37316 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37317 | }; | |
37318 | ||
248ed943 | 37319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
37321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37322 | { |
37323 | arg2 = &temp2; | |
37324 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37325 | } | |
37326 | { | |
37327 | arg3 = &temp3; | |
37328 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37329 | } | |
15afbcd0 RD |
37330 | arg4 = (int) SWIG_AsInt(obj3); |
37331 | if (PyErr_Occurred()) SWIG_fail; | |
37332 | arg5 = (int) SWIG_AsInt(obj4); | |
37333 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37334 | if (obj5) { |
37335 | arg6 = obj5; | |
37336 | } | |
d14a1e28 RD |
37337 | { |
37338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37339 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
37340 | |
37341 | wxPyEndAllowThreads(__tstate); | |
37342 | if (PyErr_Occurred()) SWIG_fail; | |
37343 | } | |
15afbcd0 | 37344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37345 | return resultobj; |
37346 | fail: | |
37347 | return NULL; | |
37348 | } | |
37349 | ||
37350 | ||
37351 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37352 | PyObject *resultobj; | |
37353 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37354 | wxGBPosition *arg2 = 0 ; | |
37355 | wxGBSpan *arg3 = 0 ; | |
37356 | int arg4 ; | |
37357 | int arg5 ; | |
248ed943 | 37358 | PyObject *arg6 = (PyObject *) NULL ; |
d14a1e28 RD |
37359 | wxGBSizerItem *result; |
37360 | wxGBPosition temp2 ; | |
37361 | wxGBSpan temp3 ; | |
37362 | PyObject * obj0 = 0 ; | |
37363 | PyObject * obj1 = 0 ; | |
37364 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37365 | PyObject * obj3 = 0 ; |
37366 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37367 | PyObject * obj5 = 0 ; |
37368 | char *kwnames[] = { | |
37369 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37370 | }; | |
37371 | ||
248ed943 | 37372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37375 | { |
37376 | arg2 = &temp2; | |
37377 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37378 | } | |
37379 | { | |
37380 | arg3 = &temp3; | |
37381 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37382 | } | |
15afbcd0 RD |
37383 | arg4 = (int) SWIG_AsInt(obj3); |
37384 | if (PyErr_Occurred()) SWIG_fail; | |
37385 | arg5 = (int) SWIG_AsInt(obj4); | |
37386 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37387 | if (obj5) { |
37388 | arg6 = obj5; | |
37389 | } | |
d14a1e28 RD |
37390 | { |
37391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37392 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d14a1e28 RD |
37393 | |
37394 | wxPyEndAllowThreads(__tstate); | |
37395 | if (PyErr_Occurred()) SWIG_fail; | |
37396 | } | |
15afbcd0 | 37397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37398 | return resultobj; |
37399 | fail: | |
37400 | return NULL; | |
37401 | } | |
37402 | ||
37403 | ||
37404 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37405 | PyObject *resultobj; | |
37406 | int arg1 ; | |
37407 | int arg2 ; | |
37408 | wxGBPosition *arg3 = 0 ; | |
37409 | wxGBSpan *arg4 = 0 ; | |
37410 | int arg5 ; | |
37411 | int arg6 ; | |
248ed943 | 37412 | PyObject *arg7 = (PyObject *) NULL ; |
d14a1e28 RD |
37413 | wxGBSizerItem *result; |
37414 | wxGBPosition temp3 ; | |
37415 | wxGBSpan temp4 ; | |
994141e6 RD |
37416 | PyObject * obj0 = 0 ; |
37417 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37418 | PyObject * obj2 = 0 ; |
37419 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37420 | PyObject * obj4 = 0 ; |
37421 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37422 | PyObject * obj6 = 0 ; |
37423 | char *kwnames[] = { | |
37424 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37425 | }; | |
37426 | ||
248ed943 | 37427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37428 | arg1 = (int) SWIG_AsInt(obj0); |
37429 | if (PyErr_Occurred()) SWIG_fail; | |
37430 | arg2 = (int) SWIG_AsInt(obj1); | |
37431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37432 | { |
37433 | arg3 = &temp3; | |
37434 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37435 | } | |
37436 | { | |
37437 | arg4 = &temp4; | |
37438 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37439 | } | |
15afbcd0 RD |
37440 | arg5 = (int) SWIG_AsInt(obj4); |
37441 | if (PyErr_Occurred()) SWIG_fail; | |
37442 | arg6 = (int) SWIG_AsInt(obj5); | |
37443 | if (PyErr_Occurred()) SWIG_fail; | |
248ed943 RD |
37444 | if (obj6) { |
37445 | arg7 = obj6; | |
37446 | } | |
d14a1e28 RD |
37447 | { |
37448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37449 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d14a1e28 RD |
37450 | |
37451 | wxPyEndAllowThreads(__tstate); | |
37452 | if (PyErr_Occurred()) SWIG_fail; | |
37453 | } | |
15afbcd0 | 37454 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37455 | return resultobj; |
37456 | fail: | |
37457 | return NULL; | |
37458 | } | |
37459 | ||
37460 | ||
37461 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37462 | PyObject *resultobj; | |
37463 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37464 | wxGBPosition result; | |
37465 | PyObject * obj0 = 0 ; | |
37466 | char *kwnames[] = { | |
37467 | (char *) "self", NULL | |
37468 | }; | |
37469 | ||
37470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37473 | { |
37474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37475 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37476 | ||
37477 | wxPyEndAllowThreads(__tstate); | |
37478 | if (PyErr_Occurred()) SWIG_fail; | |
37479 | } | |
37480 | { | |
37481 | wxGBPosition * resultptr; | |
37482 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37483 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37484 | } |
37485 | return resultobj; | |
37486 | fail: | |
37487 | return NULL; | |
37488 | } | |
37489 | ||
37490 | ||
37491 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37492 | PyObject *resultobj; | |
37493 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37494 | wxGBSpan result; | |
37495 | PyObject * obj0 = 0 ; | |
37496 | char *kwnames[] = { | |
37497 | (char *) "self", NULL | |
37498 | }; | |
37499 | ||
37500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37503 | { |
37504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37505 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37506 | ||
37507 | wxPyEndAllowThreads(__tstate); | |
37508 | if (PyErr_Occurred()) SWIG_fail; | |
37509 | } | |
37510 | { | |
37511 | wxGBSpan * resultptr; | |
37512 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 37513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37514 | } |
37515 | return resultobj; | |
37516 | fail: | |
37517 | return NULL; | |
37518 | } | |
37519 | ||
37520 | ||
37521 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37522 | PyObject *resultobj; | |
37523 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37524 | wxGBPosition *arg2 = 0 ; | |
37525 | bool result; | |
37526 | wxGBPosition temp2 ; | |
37527 | PyObject * obj0 = 0 ; | |
37528 | PyObject * obj1 = 0 ; | |
37529 | char *kwnames[] = { | |
37530 | (char *) "self",(char *) "pos", NULL | |
37531 | }; | |
37532 | ||
37533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37536 | { |
37537 | arg2 = &temp2; | |
37538 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37539 | } | |
37540 | { | |
37541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37542 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37543 | ||
37544 | wxPyEndAllowThreads(__tstate); | |
37545 | if (PyErr_Occurred()) SWIG_fail; | |
37546 | } | |
4f89f6a3 RD |
37547 | { |
37548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37549 | } | |
d14a1e28 RD |
37550 | return resultobj; |
37551 | fail: | |
37552 | return NULL; | |
37553 | } | |
37554 | ||
37555 | ||
37556 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37557 | PyObject *resultobj; | |
37558 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37559 | wxGBSpan *arg2 = 0 ; | |
37560 | bool result; | |
37561 | wxGBSpan temp2 ; | |
37562 | PyObject * obj0 = 0 ; | |
37563 | PyObject * obj1 = 0 ; | |
37564 | char *kwnames[] = { | |
37565 | (char *) "self",(char *) "span", NULL | |
37566 | }; | |
37567 | ||
37568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37571 | { |
37572 | arg2 = &temp2; | |
37573 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37574 | } | |
37575 | { | |
37576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37577 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37578 | ||
37579 | wxPyEndAllowThreads(__tstate); | |
37580 | if (PyErr_Occurred()) SWIG_fail; | |
37581 | } | |
4f89f6a3 RD |
37582 | { |
37583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37584 | } | |
d14a1e28 RD |
37585 | return resultobj; |
37586 | fail: | |
37587 | return NULL; | |
37588 | } | |
37589 | ||
37590 | ||
248ed943 | 37591 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37592 | PyObject *resultobj; |
37593 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37594 | wxGBSizerItem *arg2 = 0 ; | |
37595 | bool result; | |
37596 | PyObject * obj0 = 0 ; | |
37597 | PyObject * obj1 = 0 ; | |
248ed943 RD |
37598 | char *kwnames[] = { |
37599 | (char *) "self",(char *) "other", NULL | |
37600 | }; | |
d14a1e28 | 37601 | |
248ed943 | 37602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37607 | SWIG_fail; | |
d14a1e28 | 37608 | if (arg2 == NULL) { |
15afbcd0 RD |
37609 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37610 | SWIG_fail; | |
d14a1e28 RD |
37611 | } |
37612 | { | |
37613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37614 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37615 | ||
37616 | wxPyEndAllowThreads(__tstate); | |
37617 | if (PyErr_Occurred()) SWIG_fail; | |
37618 | } | |
4f89f6a3 RD |
37619 | { |
37620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37621 | } | |
d14a1e28 RD |
37622 | return resultobj; |
37623 | fail: | |
37624 | return NULL; | |
37625 | } | |
37626 | ||
37627 | ||
248ed943 | 37628 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
37629 | PyObject *resultobj; |
37630 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37631 | wxGBPosition *arg2 = 0 ; | |
37632 | wxGBSpan *arg3 = 0 ; | |
37633 | bool result; | |
37634 | wxGBPosition temp2 ; | |
37635 | wxGBSpan temp3 ; | |
37636 | PyObject * obj0 = 0 ; | |
37637 | PyObject * obj1 = 0 ; | |
37638 | PyObject * obj2 = 0 ; | |
248ed943 RD |
37639 | char *kwnames[] = { |
37640 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
37641 | }; | |
d14a1e28 | 37642 | |
248ed943 | 37643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37646 | { |
37647 | arg2 = &temp2; | |
37648 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37649 | } | |
37650 | { | |
37651 | arg3 = &temp3; | |
37652 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37653 | } | |
37654 | { | |
37655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37656 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37657 | ||
37658 | wxPyEndAllowThreads(__tstate); | |
37659 | if (PyErr_Occurred()) SWIG_fail; | |
37660 | } | |
4f89f6a3 RD |
37661 | { |
37662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37663 | } | |
d14a1e28 RD |
37664 | return resultobj; |
37665 | fail: | |
37666 | return NULL; | |
37667 | } | |
37668 | ||
37669 | ||
d14a1e28 RD |
37670 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
37671 | PyObject *resultobj; | |
37672 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
248ed943 | 37673 | wxGBPosition result; |
d14a1e28 | 37674 | PyObject * obj0 = 0 ; |
d14a1e28 | 37675 | char *kwnames[] = { |
248ed943 | 37676 | (char *) "self", NULL |
d14a1e28 RD |
37677 | }; |
37678 | ||
248ed943 | 37679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
37680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37682 | { |
37683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248ed943 | 37684 | result = wxGBSizerItem_GetEndPos(arg1); |
d14a1e28 RD |
37685 | |
37686 | wxPyEndAllowThreads(__tstate); | |
37687 | if (PyErr_Occurred()) SWIG_fail; | |
37688 | } | |
248ed943 RD |
37689 | { |
37690 | wxGBPosition * resultptr; | |
37691 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37693 | } | |
d14a1e28 RD |
37694 | return resultobj; |
37695 | fail: | |
37696 | return NULL; | |
37697 | } | |
37698 | ||
37699 | ||
37700 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37701 | PyObject *resultobj; | |
37702 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37703 | wxGridBagSizer *result; | |
37704 | PyObject * obj0 = 0 ; | |
37705 | char *kwnames[] = { | |
37706 | (char *) "self", NULL | |
37707 | }; | |
37708 | ||
37709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37712 | { |
37713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37714 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37715 | ||
37716 | wxPyEndAllowThreads(__tstate); | |
37717 | if (PyErr_Occurred()) SWIG_fail; | |
37718 | } | |
15afbcd0 | 37719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37720 | return resultobj; |
37721 | fail: | |
37722 | return NULL; | |
37723 | } | |
37724 | ||
37725 | ||
37726 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37727 | PyObject *resultobj; | |
37728 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37729 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37730 | PyObject * obj0 = 0 ; | |
37731 | PyObject * obj1 = 0 ; | |
37732 | char *kwnames[] = { | |
37733 | (char *) "self",(char *) "sizer", NULL | |
37734 | }; | |
37735 | ||
37736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37741 | { |
37742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37743 | (arg1)->SetGBSizer(arg2); | |
37744 | ||
37745 | wxPyEndAllowThreads(__tstate); | |
37746 | if (PyErr_Occurred()) SWIG_fail; | |
37747 | } | |
37748 | Py_INCREF(Py_None); resultobj = Py_None; | |
37749 | return resultobj; | |
37750 | fail: | |
37751 | return NULL; | |
37752 | } | |
37753 | ||
37754 | ||
37755 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37756 | PyObject *obj; | |
37757 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37758 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37759 | Py_INCREF(obj); | |
37760 | return Py_BuildValue((char *)""); | |
37761 | } | |
37762 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37763 | PyObject *resultobj; | |
37764 | int arg1 = (int) 0 ; | |
37765 | int arg2 = (int) 0 ; | |
37766 | wxGridBagSizer *result; | |
994141e6 RD |
37767 | PyObject * obj0 = 0 ; |
37768 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37769 | char *kwnames[] = { |
37770 | (char *) "vgap",(char *) "hgap", NULL | |
37771 | }; | |
37772 | ||
994141e6 RD |
37773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37774 | if (obj0) { | |
15afbcd0 RD |
37775 | arg1 = (int) SWIG_AsInt(obj0); |
37776 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37777 | } |
37778 | if (obj1) { | |
15afbcd0 RD |
37779 | arg2 = (int) SWIG_AsInt(obj1); |
37780 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37781 | } |
d14a1e28 RD |
37782 | { |
37783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37784 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37785 | ||
37786 | wxPyEndAllowThreads(__tstate); | |
37787 | if (PyErr_Occurred()) SWIG_fail; | |
37788 | } | |
15afbcd0 | 37789 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37790 | return resultobj; |
37791 | fail: | |
37792 | return NULL; | |
37793 | } | |
37794 | ||
37795 | ||
37796 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37797 | PyObject *resultobj; | |
37798 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37799 | PyObject *arg2 = (PyObject *) 0 ; | |
37800 | wxGBPosition *arg3 = 0 ; | |
37801 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37802 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37803 | int arg5 = (int) 0 ; | |
37804 | int arg6 = (int) 0 ; | |
37805 | PyObject *arg7 = (PyObject *) NULL ; | |
37806 | bool result; | |
37807 | wxGBPosition temp3 ; | |
37808 | wxGBSpan temp4 ; | |
37809 | PyObject * obj0 = 0 ; | |
37810 | PyObject * obj1 = 0 ; | |
37811 | PyObject * obj2 = 0 ; | |
37812 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37813 | PyObject * obj4 = 0 ; |
37814 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37815 | PyObject * obj6 = 0 ; |
37816 | char *kwnames[] = { | |
37817 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37818 | }; | |
37819 | ||
994141e6 | 37820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37823 | arg2 = obj1; |
37824 | { | |
37825 | arg3 = &temp3; | |
37826 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37827 | } | |
37828 | if (obj3) { | |
37829 | { | |
37830 | arg4 = &temp4; | |
37831 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37832 | } | |
37833 | } | |
994141e6 | 37834 | if (obj4) { |
15afbcd0 RD |
37835 | arg5 = (int) SWIG_AsInt(obj4); |
37836 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37837 | } |
37838 | if (obj5) { | |
15afbcd0 RD |
37839 | arg6 = (int) SWIG_AsInt(obj5); |
37840 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37841 | } |
d14a1e28 RD |
37842 | if (obj6) { |
37843 | arg7 = obj6; | |
37844 | } | |
37845 | { | |
37846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37847 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37848 | ||
37849 | wxPyEndAllowThreads(__tstate); | |
37850 | if (PyErr_Occurred()) SWIG_fail; | |
37851 | } | |
4f89f6a3 RD |
37852 | { |
37853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37854 | } | |
d14a1e28 RD |
37855 | return resultobj; |
37856 | fail: | |
37857 | return NULL; | |
37858 | } | |
37859 | ||
37860 | ||
37861 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37862 | PyObject *resultobj; | |
37863 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37864 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37865 | bool result; | |
37866 | PyObject * obj0 = 0 ; | |
37867 | PyObject * obj1 = 0 ; | |
37868 | char *kwnames[] = { | |
37869 | (char *) "self",(char *) "item", NULL | |
37870 | }; | |
37871 | ||
37872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37877 | { |
37878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37879 | result = (bool)(arg1)->Add(arg2); | |
37880 | ||
37881 | wxPyEndAllowThreads(__tstate); | |
37882 | if (PyErr_Occurred()) SWIG_fail; | |
37883 | } | |
4f89f6a3 RD |
37884 | { |
37885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37886 | } | |
d14a1e28 RD |
37887 | return resultobj; |
37888 | fail: | |
37889 | return NULL; | |
37890 | } | |
37891 | ||
37892 | ||
37893 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37894 | PyObject *resultobj; | |
37895 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37896 | wxSize result; | |
37897 | PyObject * obj0 = 0 ; | |
37898 | char *kwnames[] = { | |
37899 | (char *) "self", NULL | |
37900 | }; | |
37901 | ||
37902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37905 | { |
37906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37907 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37908 | ||
37909 | wxPyEndAllowThreads(__tstate); | |
37910 | if (PyErr_Occurred()) SWIG_fail; | |
37911 | } | |
37912 | { | |
37913 | wxSize * resultptr; | |
37914 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 37915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37916 | } |
37917 | return resultobj; | |
37918 | fail: | |
37919 | return NULL; | |
37920 | } | |
37921 | ||
37922 | ||
37923 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37924 | PyObject *resultobj; | |
37925 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37926 | wxSize *arg2 = 0 ; | |
37927 | wxSize temp2 ; | |
37928 | PyObject * obj0 = 0 ; | |
37929 | PyObject * obj1 = 0 ; | |
37930 | char *kwnames[] = { | |
37931 | (char *) "self",(char *) "sz", NULL | |
37932 | }; | |
37933 | ||
37934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37937 | { |
37938 | arg2 = &temp2; | |
37939 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37940 | } | |
37941 | { | |
37942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37943 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37944 | ||
37945 | wxPyEndAllowThreads(__tstate); | |
37946 | if (PyErr_Occurred()) SWIG_fail; | |
37947 | } | |
37948 | Py_INCREF(Py_None); resultobj = Py_None; | |
37949 | return resultobj; | |
37950 | fail: | |
37951 | return NULL; | |
37952 | } | |
37953 | ||
37954 | ||
37955 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37956 | PyObject *resultobj; | |
37957 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37958 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37959 | wxGBPosition result; | |
37960 | PyObject * obj0 = 0 ; | |
37961 | PyObject * obj1 = 0 ; | |
37962 | ||
37963 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37966 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37968 | { |
37969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37970 | result = (arg1)->GetItemPosition(arg2); | |
37971 | ||
37972 | wxPyEndAllowThreads(__tstate); | |
37973 | if (PyErr_Occurred()) SWIG_fail; | |
37974 | } | |
37975 | { | |
37976 | wxGBPosition * resultptr; | |
37977 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37978 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37979 | } |
37980 | return resultobj; | |
37981 | fail: | |
37982 | return NULL; | |
37983 | } | |
37984 | ||
37985 | ||
37986 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
37987 | PyObject *resultobj; | |
37988 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37989 | wxSizer *arg2 = (wxSizer *) 0 ; | |
37990 | wxGBPosition result; | |
37991 | PyObject * obj0 = 0 ; | |
37992 | PyObject * obj1 = 0 ; | |
37993 | ||
37994 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
37998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37999 | { |
38000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38001 | result = (arg1)->GetItemPosition(arg2); | |
38002 | ||
38003 | wxPyEndAllowThreads(__tstate); | |
38004 | if (PyErr_Occurred()) SWIG_fail; | |
38005 | } | |
38006 | { | |
38007 | wxGBPosition * resultptr; | |
38008 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38010 | } |
38011 | return resultobj; | |
38012 | fail: | |
38013 | return NULL; | |
38014 | } | |
38015 | ||
38016 | ||
38017 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38018 | PyObject *resultobj; | |
38019 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38020 | size_t arg2 ; | |
38021 | wxGBPosition result; | |
38022 | PyObject * obj0 = 0 ; | |
38023 | PyObject * obj1 = 0 ; | |
38024 | ||
38025 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38028 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38030 | { |
38031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38032 | result = (arg1)->GetItemPosition(arg2); | |
38033 | ||
38034 | wxPyEndAllowThreads(__tstate); | |
38035 | if (PyErr_Occurred()) SWIG_fail; | |
38036 | } | |
38037 | { | |
38038 | wxGBPosition * resultptr; | |
38039 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38041 | } |
38042 | return resultobj; | |
38043 | fail: | |
38044 | return NULL; | |
38045 | } | |
38046 | ||
38047 | ||
38048 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38049 | int argc; | |
38050 | PyObject *argv[3]; | |
38051 | int ii; | |
38052 | ||
38053 | argc = PyObject_Length(args); | |
38054 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38055 | argv[ii] = PyTuple_GetItem(args,ii); | |
38056 | } | |
38057 | if (argc == 2) { | |
38058 | int _v; | |
38059 | { | |
38060 | void *ptr; | |
15afbcd0 | 38061 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38062 | _v = 0; |
38063 | PyErr_Clear(); | |
38064 | } else { | |
38065 | _v = 1; | |
38066 | } | |
38067 | } | |
38068 | if (_v) { | |
38069 | { | |
38070 | void *ptr; | |
15afbcd0 | 38071 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38072 | _v = 0; |
38073 | PyErr_Clear(); | |
38074 | } else { | |
38075 | _v = 1; | |
38076 | } | |
38077 | } | |
38078 | if (_v) { | |
38079 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38080 | } | |
38081 | } | |
38082 | } | |
38083 | if (argc == 2) { | |
38084 | int _v; | |
38085 | { | |
38086 | void *ptr; | |
15afbcd0 | 38087 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38088 | _v = 0; |
38089 | PyErr_Clear(); | |
38090 | } else { | |
38091 | _v = 1; | |
38092 | } | |
38093 | } | |
38094 | if (_v) { | |
38095 | { | |
38096 | void *ptr; | |
15afbcd0 | 38097 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38098 | _v = 0; |
38099 | PyErr_Clear(); | |
38100 | } else { | |
38101 | _v = 1; | |
38102 | } | |
38103 | } | |
38104 | if (_v) { | |
38105 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38106 | } | |
38107 | } | |
38108 | } | |
38109 | if (argc == 2) { | |
38110 | int _v; | |
38111 | { | |
38112 | void *ptr; | |
15afbcd0 | 38113 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38114 | _v = 0; |
38115 | PyErr_Clear(); | |
38116 | } else { | |
38117 | _v = 1; | |
38118 | } | |
38119 | } | |
38120 | if (_v) { | |
15afbcd0 | 38121 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38122 | if (_v) { |
38123 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38124 | } | |
38125 | } | |
38126 | } | |
38127 | ||
38128 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38129 | return NULL; | |
38130 | } | |
38131 | ||
38132 | ||
38133 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38134 | PyObject *resultobj; | |
38135 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38136 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38137 | wxGBPosition *arg3 = 0 ; | |
38138 | bool result; | |
38139 | wxGBPosition temp3 ; | |
38140 | PyObject * obj0 = 0 ; | |
38141 | PyObject * obj1 = 0 ; | |
38142 | PyObject * obj2 = 0 ; | |
38143 | ||
38144 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38149 | { |
38150 | arg3 = &temp3; | |
38151 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38152 | } | |
38153 | { | |
38154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38155 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38156 | ||
38157 | wxPyEndAllowThreads(__tstate); | |
38158 | if (PyErr_Occurred()) SWIG_fail; | |
38159 | } | |
4f89f6a3 RD |
38160 | { |
38161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38162 | } | |
d14a1e28 RD |
38163 | return resultobj; |
38164 | fail: | |
38165 | return NULL; | |
38166 | } | |
38167 | ||
38168 | ||
38169 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38170 | PyObject *resultobj; | |
38171 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38172 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38173 | wxGBPosition *arg3 = 0 ; | |
38174 | bool result; | |
38175 | wxGBPosition temp3 ; | |
38176 | PyObject * obj0 = 0 ; | |
38177 | PyObject * obj1 = 0 ; | |
38178 | PyObject * obj2 = 0 ; | |
38179 | ||
38180 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38185 | { |
38186 | arg3 = &temp3; | |
38187 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38188 | } | |
38189 | { | |
38190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38191 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38192 | ||
38193 | wxPyEndAllowThreads(__tstate); | |
38194 | if (PyErr_Occurred()) SWIG_fail; | |
38195 | } | |
4f89f6a3 RD |
38196 | { |
38197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38198 | } | |
d14a1e28 RD |
38199 | return resultobj; |
38200 | fail: | |
38201 | return NULL; | |
38202 | } | |
38203 | ||
38204 | ||
38205 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38206 | PyObject *resultobj; | |
38207 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38208 | size_t arg2 ; | |
38209 | wxGBPosition *arg3 = 0 ; | |
38210 | bool result; | |
38211 | wxGBPosition temp3 ; | |
38212 | PyObject * obj0 = 0 ; | |
38213 | PyObject * obj1 = 0 ; | |
38214 | PyObject * obj2 = 0 ; | |
38215 | ||
38216 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38219 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38220 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38221 | { |
38222 | arg3 = &temp3; | |
38223 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38224 | } | |
38225 | { | |
38226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38227 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38228 | ||
38229 | wxPyEndAllowThreads(__tstate); | |
38230 | if (PyErr_Occurred()) SWIG_fail; | |
38231 | } | |
4f89f6a3 RD |
38232 | { |
38233 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38234 | } | |
d14a1e28 RD |
38235 | return resultobj; |
38236 | fail: | |
38237 | return NULL; | |
38238 | } | |
38239 | ||
38240 | ||
38241 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38242 | int argc; | |
38243 | PyObject *argv[4]; | |
38244 | int ii; | |
38245 | ||
38246 | argc = PyObject_Length(args); | |
38247 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38248 | argv[ii] = PyTuple_GetItem(args,ii); | |
38249 | } | |
38250 | if (argc == 3) { | |
38251 | int _v; | |
38252 | { | |
38253 | void *ptr; | |
15afbcd0 | 38254 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38255 | _v = 0; |
38256 | PyErr_Clear(); | |
38257 | } else { | |
38258 | _v = 1; | |
38259 | } | |
38260 | } | |
38261 | if (_v) { | |
38262 | { | |
38263 | void *ptr; | |
15afbcd0 | 38264 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38265 | _v = 0; |
38266 | PyErr_Clear(); | |
38267 | } else { | |
38268 | _v = 1; | |
38269 | } | |
38270 | } | |
38271 | if (_v) { | |
38272 | { | |
38273 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38274 | } | |
38275 | if (_v) { | |
38276 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38277 | } | |
38278 | } | |
38279 | } | |
38280 | } | |
38281 | if (argc == 3) { | |
38282 | int _v; | |
38283 | { | |
38284 | void *ptr; | |
15afbcd0 | 38285 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38286 | _v = 0; |
38287 | PyErr_Clear(); | |
38288 | } else { | |
38289 | _v = 1; | |
38290 | } | |
38291 | } | |
38292 | if (_v) { | |
38293 | { | |
38294 | void *ptr; | |
15afbcd0 | 38295 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38296 | _v = 0; |
38297 | PyErr_Clear(); | |
38298 | } else { | |
38299 | _v = 1; | |
38300 | } | |
38301 | } | |
38302 | if (_v) { | |
38303 | { | |
38304 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38305 | } | |
38306 | if (_v) { | |
38307 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38308 | } | |
38309 | } | |
38310 | } | |
38311 | } | |
38312 | if (argc == 3) { | |
38313 | int _v; | |
38314 | { | |
38315 | void *ptr; | |
15afbcd0 | 38316 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38317 | _v = 0; |
38318 | PyErr_Clear(); | |
38319 | } else { | |
38320 | _v = 1; | |
38321 | } | |
38322 | } | |
38323 | if (_v) { | |
15afbcd0 | 38324 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38325 | if (_v) { |
38326 | { | |
38327 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38328 | } | |
38329 | if (_v) { | |
38330 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38331 | } | |
38332 | } | |
38333 | } | |
38334 | } | |
38335 | ||
38336 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38337 | return NULL; | |
38338 | } | |
38339 | ||
38340 | ||
38341 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38342 | PyObject *resultobj; | |
38343 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38344 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38345 | wxGBSpan result; | |
38346 | PyObject * obj0 = 0 ; | |
38347 | PyObject * obj1 = 0 ; | |
38348 | ||
38349 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38354 | { |
38355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38356 | result = (arg1)->GetItemSpan(arg2); | |
38357 | ||
38358 | wxPyEndAllowThreads(__tstate); | |
38359 | if (PyErr_Occurred()) SWIG_fail; | |
38360 | } | |
38361 | { | |
38362 | wxGBSpan * resultptr; | |
38363 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38364 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38365 | } |
38366 | return resultobj; | |
38367 | fail: | |
38368 | return NULL; | |
38369 | } | |
38370 | ||
38371 | ||
38372 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38373 | PyObject *resultobj; | |
38374 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38375 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38376 | wxGBSpan result; | |
38377 | PyObject * obj0 = 0 ; | |
38378 | PyObject * obj1 = 0 ; | |
38379 | ||
38380 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38383 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38385 | { |
38386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38387 | result = (arg1)->GetItemSpan(arg2); | |
38388 | ||
38389 | wxPyEndAllowThreads(__tstate); | |
38390 | if (PyErr_Occurred()) SWIG_fail; | |
38391 | } | |
38392 | { | |
38393 | wxGBSpan * resultptr; | |
38394 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38395 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38396 | } |
38397 | return resultobj; | |
38398 | fail: | |
38399 | return NULL; | |
38400 | } | |
38401 | ||
38402 | ||
38403 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38404 | PyObject *resultobj; | |
38405 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38406 | size_t arg2 ; | |
38407 | wxGBSpan result; | |
38408 | PyObject * obj0 = 0 ; | |
38409 | PyObject * obj1 = 0 ; | |
38410 | ||
38411 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38414 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38415 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38416 | { |
38417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38418 | result = (arg1)->GetItemSpan(arg2); | |
38419 | ||
38420 | wxPyEndAllowThreads(__tstate); | |
38421 | if (PyErr_Occurred()) SWIG_fail; | |
38422 | } | |
38423 | { | |
38424 | wxGBSpan * resultptr; | |
38425 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38426 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38427 | } |
38428 | return resultobj; | |
38429 | fail: | |
38430 | return NULL; | |
38431 | } | |
38432 | ||
38433 | ||
38434 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38435 | int argc; | |
38436 | PyObject *argv[3]; | |
38437 | int ii; | |
38438 | ||
38439 | argc = PyObject_Length(args); | |
38440 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38441 | argv[ii] = PyTuple_GetItem(args,ii); | |
38442 | } | |
38443 | if (argc == 2) { | |
38444 | int _v; | |
38445 | { | |
38446 | void *ptr; | |
15afbcd0 | 38447 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38448 | _v = 0; |
38449 | PyErr_Clear(); | |
38450 | } else { | |
38451 | _v = 1; | |
38452 | } | |
38453 | } | |
38454 | if (_v) { | |
38455 | { | |
38456 | void *ptr; | |
15afbcd0 | 38457 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38458 | _v = 0; |
38459 | PyErr_Clear(); | |
38460 | } else { | |
38461 | _v = 1; | |
38462 | } | |
38463 | } | |
38464 | if (_v) { | |
38465 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38466 | } | |
38467 | } | |
38468 | } | |
38469 | if (argc == 2) { | |
38470 | int _v; | |
38471 | { | |
38472 | void *ptr; | |
15afbcd0 | 38473 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38474 | _v = 0; |
38475 | PyErr_Clear(); | |
38476 | } else { | |
38477 | _v = 1; | |
38478 | } | |
38479 | } | |
38480 | if (_v) { | |
38481 | { | |
38482 | void *ptr; | |
15afbcd0 | 38483 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38484 | _v = 0; |
38485 | PyErr_Clear(); | |
38486 | } else { | |
38487 | _v = 1; | |
38488 | } | |
38489 | } | |
38490 | if (_v) { | |
38491 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38492 | } | |
38493 | } | |
38494 | } | |
38495 | if (argc == 2) { | |
38496 | int _v; | |
38497 | { | |
38498 | void *ptr; | |
15afbcd0 | 38499 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38500 | _v = 0; |
38501 | PyErr_Clear(); | |
38502 | } else { | |
38503 | _v = 1; | |
38504 | } | |
38505 | } | |
38506 | if (_v) { | |
15afbcd0 | 38507 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38508 | if (_v) { |
38509 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38510 | } | |
38511 | } | |
38512 | } | |
38513 | ||
38514 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38515 | return NULL; | |
38516 | } | |
38517 | ||
38518 | ||
38519 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38520 | PyObject *resultobj; | |
38521 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38523 | wxGBSpan *arg3 = 0 ; | |
38524 | bool result; | |
38525 | wxGBSpan temp3 ; | |
38526 | PyObject * obj0 = 0 ; | |
38527 | PyObject * obj1 = 0 ; | |
38528 | PyObject * obj2 = 0 ; | |
38529 | ||
38530 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38533 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38535 | { |
38536 | arg3 = &temp3; | |
38537 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38538 | } | |
38539 | { | |
38540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38541 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38542 | ||
38543 | wxPyEndAllowThreads(__tstate); | |
38544 | if (PyErr_Occurred()) SWIG_fail; | |
38545 | } | |
4f89f6a3 RD |
38546 | { |
38547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38548 | } | |
d14a1e28 RD |
38549 | return resultobj; |
38550 | fail: | |
38551 | return NULL; | |
38552 | } | |
38553 | ||
38554 | ||
38555 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38556 | PyObject *resultobj; | |
38557 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38558 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38559 | wxGBSpan *arg3 = 0 ; | |
38560 | bool result; | |
38561 | wxGBSpan temp3 ; | |
38562 | PyObject * obj0 = 0 ; | |
38563 | PyObject * obj1 = 0 ; | |
38564 | PyObject * obj2 = 0 ; | |
38565 | ||
38566 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38571 | { |
38572 | arg3 = &temp3; | |
38573 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38574 | } | |
38575 | { | |
38576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38577 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38578 | ||
38579 | wxPyEndAllowThreads(__tstate); | |
38580 | if (PyErr_Occurred()) SWIG_fail; | |
38581 | } | |
4f89f6a3 RD |
38582 | { |
38583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38584 | } | |
d14a1e28 RD |
38585 | return resultobj; |
38586 | fail: | |
38587 | return NULL; | |
38588 | } | |
38589 | ||
38590 | ||
38591 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38592 | PyObject *resultobj; | |
38593 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38594 | size_t arg2 ; | |
38595 | wxGBSpan *arg3 = 0 ; | |
38596 | bool result; | |
38597 | wxGBSpan temp3 ; | |
38598 | PyObject * obj0 = 0 ; | |
38599 | PyObject * obj1 = 0 ; | |
38600 | PyObject * obj2 = 0 ; | |
38601 | ||
38602 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38605 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38606 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38607 | { |
38608 | arg3 = &temp3; | |
38609 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38610 | } | |
38611 | { | |
38612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38613 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38614 | ||
38615 | wxPyEndAllowThreads(__tstate); | |
38616 | if (PyErr_Occurred()) SWIG_fail; | |
38617 | } | |
4f89f6a3 RD |
38618 | { |
38619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38620 | } | |
d14a1e28 RD |
38621 | return resultobj; |
38622 | fail: | |
38623 | return NULL; | |
38624 | } | |
38625 | ||
38626 | ||
38627 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38628 | int argc; | |
38629 | PyObject *argv[4]; | |
38630 | int ii; | |
38631 | ||
38632 | argc = PyObject_Length(args); | |
38633 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38634 | argv[ii] = PyTuple_GetItem(args,ii); | |
38635 | } | |
38636 | if (argc == 3) { | |
38637 | int _v; | |
38638 | { | |
38639 | void *ptr; | |
15afbcd0 | 38640 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38641 | _v = 0; |
38642 | PyErr_Clear(); | |
38643 | } else { | |
38644 | _v = 1; | |
38645 | } | |
38646 | } | |
38647 | if (_v) { | |
38648 | { | |
38649 | void *ptr; | |
15afbcd0 | 38650 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38651 | _v = 0; |
38652 | PyErr_Clear(); | |
38653 | } else { | |
38654 | _v = 1; | |
38655 | } | |
38656 | } | |
38657 | if (_v) { | |
38658 | { | |
38659 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38660 | } | |
38661 | if (_v) { | |
38662 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38663 | } | |
38664 | } | |
38665 | } | |
38666 | } | |
38667 | if (argc == 3) { | |
38668 | int _v; | |
38669 | { | |
38670 | void *ptr; | |
15afbcd0 | 38671 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38672 | _v = 0; |
38673 | PyErr_Clear(); | |
38674 | } else { | |
38675 | _v = 1; | |
38676 | } | |
38677 | } | |
38678 | if (_v) { | |
38679 | { | |
38680 | void *ptr; | |
15afbcd0 | 38681 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38682 | _v = 0; |
38683 | PyErr_Clear(); | |
38684 | } else { | |
38685 | _v = 1; | |
38686 | } | |
38687 | } | |
38688 | if (_v) { | |
38689 | { | |
38690 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38691 | } | |
38692 | if (_v) { | |
38693 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38694 | } | |
38695 | } | |
38696 | } | |
38697 | } | |
38698 | if (argc == 3) { | |
38699 | int _v; | |
38700 | { | |
38701 | void *ptr; | |
15afbcd0 | 38702 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38703 | _v = 0; |
38704 | PyErr_Clear(); | |
38705 | } else { | |
38706 | _v = 1; | |
38707 | } | |
38708 | } | |
38709 | if (_v) { | |
15afbcd0 | 38710 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38711 | if (_v) { |
38712 | { | |
38713 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38714 | } | |
38715 | if (_v) { | |
38716 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38717 | } | |
38718 | } | |
38719 | } | |
38720 | } | |
38721 | ||
38722 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38723 | return NULL; | |
38724 | } | |
38725 | ||
38726 | ||
38727 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38728 | PyObject *resultobj; | |
38729 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38730 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38731 | wxGBSizerItem *result; | |
38732 | PyObject * obj0 = 0 ; | |
38733 | PyObject * obj1 = 0 ; | |
38734 | ||
38735 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38740 | { |
38741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38742 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38743 | ||
38744 | wxPyEndAllowThreads(__tstate); | |
38745 | if (PyErr_Occurred()) SWIG_fail; | |
38746 | } | |
15afbcd0 | 38747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38748 | return resultobj; |
38749 | fail: | |
38750 | return NULL; | |
38751 | } | |
38752 | ||
38753 | ||
38754 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38755 | PyObject *resultobj; | |
38756 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38757 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38758 | wxGBSizerItem *result; | |
38759 | PyObject * obj0 = 0 ; | |
38760 | PyObject * obj1 = 0 ; | |
38761 | ||
38762 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38767 | { |
38768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38769 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38770 | ||
38771 | wxPyEndAllowThreads(__tstate); | |
38772 | if (PyErr_Occurred()) SWIG_fail; | |
38773 | } | |
15afbcd0 | 38774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38775 | return resultobj; |
38776 | fail: | |
38777 | return NULL; | |
38778 | } | |
38779 | ||
38780 | ||
38781 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38782 | int argc; | |
38783 | PyObject *argv[3]; | |
38784 | int ii; | |
38785 | ||
38786 | argc = PyObject_Length(args); | |
38787 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38788 | argv[ii] = PyTuple_GetItem(args,ii); | |
38789 | } | |
38790 | if (argc == 2) { | |
38791 | int _v; | |
38792 | { | |
38793 | void *ptr; | |
15afbcd0 | 38794 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38795 | _v = 0; |
38796 | PyErr_Clear(); | |
38797 | } else { | |
38798 | _v = 1; | |
38799 | } | |
38800 | } | |
38801 | if (_v) { | |
38802 | { | |
38803 | void *ptr; | |
15afbcd0 | 38804 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38805 | _v = 0; |
38806 | PyErr_Clear(); | |
38807 | } else { | |
38808 | _v = 1; | |
38809 | } | |
38810 | } | |
38811 | if (_v) { | |
38812 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38813 | } | |
38814 | } | |
38815 | } | |
38816 | if (argc == 2) { | |
38817 | int _v; | |
38818 | { | |
38819 | void *ptr; | |
15afbcd0 | 38820 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38821 | _v = 0; |
38822 | PyErr_Clear(); | |
38823 | } else { | |
38824 | _v = 1; | |
38825 | } | |
38826 | } | |
38827 | if (_v) { | |
38828 | { | |
38829 | void *ptr; | |
15afbcd0 | 38830 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38831 | _v = 0; |
38832 | PyErr_Clear(); | |
38833 | } else { | |
38834 | _v = 1; | |
38835 | } | |
38836 | } | |
38837 | if (_v) { | |
38838 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38839 | } | |
38840 | } | |
38841 | } | |
38842 | ||
38843 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38844 | return NULL; | |
38845 | } | |
38846 | ||
38847 | ||
38848 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38849 | PyObject *resultobj; | |
38850 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38851 | wxGBPosition *arg2 = 0 ; | |
38852 | wxGBSizerItem *result; | |
38853 | wxGBPosition temp2 ; | |
38854 | PyObject * obj0 = 0 ; | |
38855 | PyObject * obj1 = 0 ; | |
38856 | char *kwnames[] = { | |
38857 | (char *) "self",(char *) "pos", NULL | |
38858 | }; | |
38859 | ||
38860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38863 | { |
38864 | arg2 = &temp2; | |
38865 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38866 | } | |
38867 | { | |
38868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38869 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38870 | ||
38871 | wxPyEndAllowThreads(__tstate); | |
38872 | if (PyErr_Occurred()) SWIG_fail; | |
38873 | } | |
15afbcd0 | 38874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38875 | return resultobj; |
38876 | fail: | |
38877 | return NULL; | |
38878 | } | |
38879 | ||
38880 | ||
e811c8ce RD |
38881 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38882 | PyObject *resultobj; | |
38883 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38884 | wxPoint *arg2 = 0 ; | |
38885 | wxGBSizerItem *result; | |
38886 | wxPoint temp2 ; | |
38887 | PyObject * obj0 = 0 ; | |
38888 | PyObject * obj1 = 0 ; | |
38889 | char *kwnames[] = { | |
38890 | (char *) "self",(char *) "pt", NULL | |
38891 | }; | |
38892 | ||
38893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
38896 | { |
38897 | arg2 = &temp2; | |
38898 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38899 | } | |
38900 | { | |
38901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38902 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38903 | ||
38904 | wxPyEndAllowThreads(__tstate); | |
38905 | if (PyErr_Occurred()) SWIG_fail; | |
38906 | } | |
15afbcd0 | 38907 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
38908 | return resultobj; |
38909 | fail: | |
38910 | return NULL; | |
38911 | } | |
38912 | ||
38913 | ||
248ed943 | 38914 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38915 | PyObject *resultobj; |
38916 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38917 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38918 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
38919 | bool result; | |
38920 | PyObject * obj0 = 0 ; | |
38921 | PyObject * obj1 = 0 ; | |
38922 | PyObject * obj2 = 0 ; | |
248ed943 RD |
38923 | char *kwnames[] = { |
38924 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
38925 | }; | |
d14a1e28 | 38926 | |
248ed943 | 38927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
38928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38930 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 38932 | if (obj2) { |
15afbcd0 RD |
38933 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
38934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38935 | } |
38936 | { | |
38937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38938 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
38939 | ||
38940 | wxPyEndAllowThreads(__tstate); | |
38941 | if (PyErr_Occurred()) SWIG_fail; | |
38942 | } | |
4f89f6a3 RD |
38943 | { |
38944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38945 | } | |
d14a1e28 RD |
38946 | return resultobj; |
38947 | fail: | |
38948 | return NULL; | |
38949 | } | |
38950 | ||
38951 | ||
248ed943 | 38952 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
38953 | PyObject *resultobj; |
38954 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38955 | wxGBPosition *arg2 = 0 ; | |
38956 | wxGBSpan *arg3 = 0 ; | |
38957 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
38958 | bool result; | |
38959 | wxGBPosition temp2 ; | |
38960 | wxGBSpan temp3 ; | |
38961 | PyObject * obj0 = 0 ; | |
38962 | PyObject * obj1 = 0 ; | |
38963 | PyObject * obj2 = 0 ; | |
38964 | PyObject * obj3 = 0 ; | |
248ed943 RD |
38965 | char *kwnames[] = { |
38966 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
38967 | }; | |
d14a1e28 | 38968 | |
248ed943 | 38969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
38970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38972 | { |
38973 | arg2 = &temp2; | |
38974 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38975 | } | |
38976 | { | |
38977 | arg3 = &temp3; | |
38978 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38979 | } | |
38980 | if (obj3) { | |
15afbcd0 RD |
38981 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
38982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38983 | } |
38984 | { | |
38985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38986 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
38987 | ||
38988 | wxPyEndAllowThreads(__tstate); | |
38989 | if (PyErr_Occurred()) SWIG_fail; | |
38990 | } | |
4f89f6a3 RD |
38991 | { |
38992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38993 | } | |
d14a1e28 RD |
38994 | return resultobj; |
38995 | fail: | |
38996 | return NULL; | |
38997 | } | |
38998 | ||
38999 | ||
d14a1e28 RD |
39000 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { |
39001 | PyObject *obj; | |
39002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39003 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39004 | Py_INCREF(obj); | |
39005 | return Py_BuildValue((char *)""); | |
39006 | } | |
39007 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39008 | PyObject *resultobj; | |
39009 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39010 | int arg2 ; | |
39011 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39012 | int arg4 ; | |
39013 | int arg5 = (int) 0 ; | |
39014 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39015 | PyObject * obj0 = 0 ; | |
994141e6 | 39016 | PyObject * obj1 = 0 ; |
d14a1e28 | 39017 | PyObject * obj2 = 0 ; |
994141e6 RD |
39018 | PyObject * obj3 = 0 ; |
39019 | PyObject * obj4 = 0 ; | |
39020 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
39021 | char *kwnames[] = { |
39022 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39023 | }; | |
39024 | ||
994141e6 | 39025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
39026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39028 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39029 | if (PyErr_Occurred()) SWIG_fail; | |
39030 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39032 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39033 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39034 | if (obj4) { |
15afbcd0 RD |
39035 | arg5 = (int) SWIG_AsInt(obj4); |
39036 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
39037 | } |
39038 | if (obj5) { | |
15afbcd0 RD |
39039 | arg6 = (int) SWIG_AsInt(obj5); |
39040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39041 | } |
d14a1e28 RD |
39042 | { |
39043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39044 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39045 | ||
39046 | wxPyEndAllowThreads(__tstate); | |
39047 | if (PyErr_Occurred()) SWIG_fail; | |
39048 | } | |
39049 | Py_INCREF(Py_None); resultobj = Py_None; | |
39050 | return resultobj; | |
39051 | fail: | |
39052 | return NULL; | |
39053 | } | |
39054 | ||
39055 | ||
39056 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39057 | PyObject *resultobj; | |
39058 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39059 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39060 | int arg3 = (int) 0 ; | |
39061 | PyObject * obj0 = 0 ; | |
39062 | PyObject * obj1 = 0 ; | |
994141e6 | 39063 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39064 | char *kwnames[] = { |
39065 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39066 | }; | |
39067 | ||
994141e6 | 39068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39071 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39073 | if (obj2) { |
15afbcd0 RD |
39074 | arg3 = (int) SWIG_AsInt(obj2); |
39075 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39076 | } |
d14a1e28 RD |
39077 | { |
39078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39079 | (arg1)->LeftOf(arg2,arg3); | |
39080 | ||
39081 | wxPyEndAllowThreads(__tstate); | |
39082 | if (PyErr_Occurred()) SWIG_fail; | |
39083 | } | |
39084 | Py_INCREF(Py_None); resultobj = Py_None; | |
39085 | return resultobj; | |
39086 | fail: | |
39087 | return NULL; | |
39088 | } | |
39089 | ||
39090 | ||
39091 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39092 | PyObject *resultobj; | |
39093 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39094 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39095 | int arg3 = (int) 0 ; | |
39096 | PyObject * obj0 = 0 ; | |
39097 | PyObject * obj1 = 0 ; | |
994141e6 | 39098 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39099 | char *kwnames[] = { |
39100 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39101 | }; | |
39102 | ||
994141e6 | 39103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39108 | if (obj2) { |
15afbcd0 RD |
39109 | arg3 = (int) SWIG_AsInt(obj2); |
39110 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39111 | } |
d14a1e28 RD |
39112 | { |
39113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39114 | (arg1)->RightOf(arg2,arg3); | |
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_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39127 | PyObject *resultobj; | |
39128 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39129 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39130 | int arg3 = (int) 0 ; | |
39131 | PyObject * obj0 = 0 ; | |
39132 | PyObject * obj1 = 0 ; | |
994141e6 | 39133 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39134 | char *kwnames[] = { |
39135 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39136 | }; | |
39137 | ||
994141e6 | 39138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39141 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39143 | if (obj2) { |
15afbcd0 RD |
39144 | arg3 = (int) SWIG_AsInt(obj2); |
39145 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39146 | } |
d14a1e28 RD |
39147 | { |
39148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39149 | (arg1)->Above(arg2,arg3); | |
39150 | ||
39151 | wxPyEndAllowThreads(__tstate); | |
39152 | if (PyErr_Occurred()) SWIG_fail; | |
39153 | } | |
39154 | Py_INCREF(Py_None); resultobj = Py_None; | |
39155 | return resultobj; | |
39156 | fail: | |
39157 | return NULL; | |
39158 | } | |
39159 | ||
39160 | ||
39161 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39162 | PyObject *resultobj; | |
39163 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39164 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39165 | int arg3 = (int) 0 ; | |
39166 | PyObject * obj0 = 0 ; | |
39167 | PyObject * obj1 = 0 ; | |
994141e6 | 39168 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39169 | char *kwnames[] = { |
39170 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39171 | }; | |
39172 | ||
994141e6 | 39173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39178 | if (obj2) { |
15afbcd0 RD |
39179 | arg3 = (int) SWIG_AsInt(obj2); |
39180 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39181 | } |
d14a1e28 RD |
39182 | { |
39183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39184 | (arg1)->Below(arg2,arg3); | |
39185 | ||
39186 | wxPyEndAllowThreads(__tstate); | |
39187 | if (PyErr_Occurred()) SWIG_fail; | |
39188 | } | |
39189 | Py_INCREF(Py_None); resultobj = Py_None; | |
39190 | return resultobj; | |
39191 | fail: | |
39192 | return NULL; | |
39193 | } | |
39194 | ||
39195 | ||
39196 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39197 | PyObject *resultobj; | |
39198 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39199 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39200 | int arg3 ; | |
39201 | int arg4 = (int) 0 ; | |
39202 | PyObject * obj0 = 0 ; | |
39203 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39204 | PyObject * obj2 = 0 ; |
39205 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39206 | char *kwnames[] = { |
39207 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39208 | }; | |
39209 | ||
994141e6 | 39210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39215 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39216 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39217 | if (obj3) { |
15afbcd0 RD |
39218 | arg4 = (int) SWIG_AsInt(obj3); |
39219 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39220 | } |
d14a1e28 RD |
39221 | { |
39222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39223 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39224 | ||
39225 | wxPyEndAllowThreads(__tstate); | |
39226 | if (PyErr_Occurred()) SWIG_fail; | |
39227 | } | |
39228 | Py_INCREF(Py_None); resultobj = Py_None; | |
39229 | return resultobj; | |
39230 | fail: | |
39231 | return NULL; | |
39232 | } | |
39233 | ||
39234 | ||
39235 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39236 | PyObject *resultobj; | |
39237 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39239 | int arg3 ; | |
39240 | int arg4 ; | |
39241 | PyObject * obj0 = 0 ; | |
39242 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39243 | PyObject * obj2 = 0 ; |
39244 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39245 | char *kwnames[] = { |
39246 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39247 | }; | |
39248 | ||
994141e6 | 39249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39252 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39254 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39255 | if (PyErr_Occurred()) SWIG_fail; | |
39256 | arg4 = (int) SWIG_AsInt(obj3); | |
39257 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39258 | { |
39259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39260 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39261 | ||
39262 | wxPyEndAllowThreads(__tstate); | |
39263 | if (PyErr_Occurred()) SWIG_fail; | |
39264 | } | |
39265 | Py_INCREF(Py_None); resultobj = Py_None; | |
39266 | return resultobj; | |
39267 | fail: | |
39268 | return NULL; | |
39269 | } | |
39270 | ||
39271 | ||
39272 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39273 | PyObject *resultobj; | |
39274 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39275 | int arg2 ; | |
39276 | PyObject * obj0 = 0 ; | |
994141e6 | 39277 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39278 | char *kwnames[] = { |
39279 | (char *) "self",(char *) "val", NULL | |
39280 | }; | |
39281 | ||
994141e6 | 39282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39285 | arg2 = (int) SWIG_AsInt(obj1); | |
39286 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39287 | { |
39288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39289 | (arg1)->Absolute(arg2); | |
39290 | ||
39291 | wxPyEndAllowThreads(__tstate); | |
39292 | if (PyErr_Occurred()) SWIG_fail; | |
39293 | } | |
39294 | Py_INCREF(Py_None); resultobj = Py_None; | |
39295 | return resultobj; | |
39296 | fail: | |
39297 | return NULL; | |
39298 | } | |
39299 | ||
39300 | ||
39301 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39302 | PyObject *resultobj; | |
39303 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39304 | PyObject * obj0 = 0 ; | |
39305 | char *kwnames[] = { | |
39306 | (char *) "self", NULL | |
39307 | }; | |
39308 | ||
39309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39312 | { |
39313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39314 | (arg1)->Unconstrained(); | |
39315 | ||
39316 | wxPyEndAllowThreads(__tstate); | |
39317 | if (PyErr_Occurred()) SWIG_fail; | |
39318 | } | |
39319 | Py_INCREF(Py_None); resultobj = Py_None; | |
39320 | return resultobj; | |
39321 | fail: | |
39322 | return NULL; | |
39323 | } | |
39324 | ||
39325 | ||
39326 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39327 | PyObject *resultobj; | |
39328 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39329 | PyObject * obj0 = 0 ; | |
39330 | char *kwnames[] = { | |
39331 | (char *) "self", NULL | |
39332 | }; | |
39333 | ||
39334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39337 | { |
39338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39339 | (arg1)->AsIs(); | |
39340 | ||
39341 | wxPyEndAllowThreads(__tstate); | |
39342 | if (PyErr_Occurred()) SWIG_fail; | |
39343 | } | |
39344 | Py_INCREF(Py_None); resultobj = Py_None; | |
39345 | return resultobj; | |
39346 | fail: | |
39347 | return NULL; | |
39348 | } | |
39349 | ||
39350 | ||
39351 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39352 | PyObject *resultobj; | |
39353 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39354 | wxWindow *result; | |
39355 | PyObject * obj0 = 0 ; | |
39356 | char *kwnames[] = { | |
39357 | (char *) "self", NULL | |
39358 | }; | |
39359 | ||
39360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39363 | { |
39364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39365 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39366 | ||
39367 | wxPyEndAllowThreads(__tstate); | |
39368 | if (PyErr_Occurred()) SWIG_fail; | |
39369 | } | |
39370 | { | |
412d302d | 39371 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
39372 | } |
39373 | return resultobj; | |
39374 | fail: | |
39375 | return NULL; | |
39376 | } | |
39377 | ||
39378 | ||
39379 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39380 | PyObject *resultobj; | |
39381 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39382 | int result; | |
39383 | PyObject * obj0 = 0 ; | |
39384 | char *kwnames[] = { | |
39385 | (char *) "self", NULL | |
39386 | }; | |
39387 | ||
39388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39391 | { |
39392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39393 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39394 | ||
39395 | wxPyEndAllowThreads(__tstate); | |
39396 | if (PyErr_Occurred()) SWIG_fail; | |
39397 | } | |
15afbcd0 | 39398 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39399 | return resultobj; |
39400 | fail: | |
39401 | return NULL; | |
39402 | } | |
39403 | ||
39404 | ||
39405 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39406 | PyObject *resultobj; | |
39407 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39408 | int arg2 ; | |
39409 | PyObject * obj0 = 0 ; | |
994141e6 | 39410 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39411 | char *kwnames[] = { |
39412 | (char *) "self",(char *) "which", NULL | |
39413 | }; | |
39414 | ||
994141e6 | 39415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39418 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39420 | { |
39421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39422 | (arg1)->SetEdge((wxEdge )arg2); | |
39423 | ||
39424 | wxPyEndAllowThreads(__tstate); | |
39425 | if (PyErr_Occurred()) SWIG_fail; | |
39426 | } | |
39427 | Py_INCREF(Py_None); resultobj = Py_None; | |
39428 | return resultobj; | |
39429 | fail: | |
39430 | return NULL; | |
39431 | } | |
39432 | ||
39433 | ||
39434 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39435 | PyObject *resultobj; | |
39436 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39437 | int arg2 ; | |
39438 | PyObject * obj0 = 0 ; | |
994141e6 | 39439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39440 | char *kwnames[] = { |
39441 | (char *) "self",(char *) "v", NULL | |
39442 | }; | |
39443 | ||
994141e6 | 39444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39447 | arg2 = (int) SWIG_AsInt(obj1); | |
39448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39449 | { |
39450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39451 | (arg1)->SetValue(arg2); | |
39452 | ||
39453 | wxPyEndAllowThreads(__tstate); | |
39454 | if (PyErr_Occurred()) SWIG_fail; | |
39455 | } | |
39456 | Py_INCREF(Py_None); resultobj = Py_None; | |
39457 | return resultobj; | |
39458 | fail: | |
39459 | return NULL; | |
39460 | } | |
39461 | ||
39462 | ||
39463 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39464 | PyObject *resultobj; | |
39465 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39466 | int result; | |
39467 | PyObject * obj0 = 0 ; | |
39468 | char *kwnames[] = { | |
39469 | (char *) "self", NULL | |
39470 | }; | |
39471 | ||
39472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39475 | { |
39476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39477 | result = (int)(arg1)->GetMargin(); | |
39478 | ||
39479 | wxPyEndAllowThreads(__tstate); | |
39480 | if (PyErr_Occurred()) SWIG_fail; | |
39481 | } | |
15afbcd0 | 39482 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39483 | return resultobj; |
39484 | fail: | |
39485 | return NULL; | |
39486 | } | |
39487 | ||
39488 | ||
39489 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39490 | PyObject *resultobj; | |
39491 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39492 | int arg2 ; | |
39493 | PyObject * obj0 = 0 ; | |
994141e6 | 39494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39495 | char *kwnames[] = { |
39496 | (char *) "self",(char *) "m", NULL | |
39497 | }; | |
39498 | ||
994141e6 | 39499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39502 | arg2 = (int) SWIG_AsInt(obj1); | |
39503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39504 | { |
39505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39506 | (arg1)->SetMargin(arg2); | |
39507 | ||
39508 | wxPyEndAllowThreads(__tstate); | |
39509 | if (PyErr_Occurred()) SWIG_fail; | |
39510 | } | |
39511 | Py_INCREF(Py_None); resultobj = Py_None; | |
39512 | return resultobj; | |
39513 | fail: | |
39514 | return NULL; | |
39515 | } | |
39516 | ||
39517 | ||
39518 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39519 | PyObject *resultobj; | |
39520 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39521 | int result; | |
39522 | PyObject * obj0 = 0 ; | |
39523 | char *kwnames[] = { | |
39524 | (char *) "self", NULL | |
39525 | }; | |
39526 | ||
39527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39530 | { |
39531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39532 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39533 | ||
39534 | wxPyEndAllowThreads(__tstate); | |
39535 | if (PyErr_Occurred()) SWIG_fail; | |
39536 | } | |
15afbcd0 | 39537 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39538 | return resultobj; |
39539 | fail: | |
39540 | return NULL; | |
39541 | } | |
39542 | ||
39543 | ||
39544 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(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_GetPercent",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)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
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_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39571 | PyObject *resultobj; | |
39572 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39573 | int result; | |
39574 | PyObject * obj0 = 0 ; | |
39575 | char *kwnames[] = { | |
39576 | (char *) "self", NULL | |
39577 | }; | |
39578 | ||
39579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39582 | { |
39583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39584 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39585 | ||
39586 | wxPyEndAllowThreads(__tstate); | |
39587 | if (PyErr_Occurred()) SWIG_fail; | |
39588 | } | |
15afbcd0 | 39589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39590 | return resultobj; |
39591 | fail: | |
39592 | return NULL; | |
39593 | } | |
39594 | ||
39595 | ||
39596 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39597 | PyObject *resultobj; | |
39598 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39599 | bool result; | |
39600 | PyObject * obj0 = 0 ; | |
39601 | char *kwnames[] = { | |
39602 | (char *) "self", NULL | |
39603 | }; | |
39604 | ||
39605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39608 | { |
39609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39610 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39611 | ||
39612 | wxPyEndAllowThreads(__tstate); | |
39613 | if (PyErr_Occurred()) SWIG_fail; | |
39614 | } | |
4f89f6a3 RD |
39615 | { |
39616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39617 | } | |
d14a1e28 RD |
39618 | return resultobj; |
39619 | fail: | |
39620 | return NULL; | |
39621 | } | |
39622 | ||
39623 | ||
39624 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39625 | PyObject *resultobj; | |
39626 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39627 | bool arg2 ; | |
39628 | PyObject * obj0 = 0 ; | |
39629 | PyObject * obj1 = 0 ; | |
39630 | char *kwnames[] = { | |
39631 | (char *) "self",(char *) "d", NULL | |
39632 | }; | |
39633 | ||
39634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39637 | arg2 = (bool) SWIG_AsBool(obj1); | |
39638 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39639 | { |
39640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39641 | (arg1)->SetDone(arg2); | |
39642 | ||
39643 | wxPyEndAllowThreads(__tstate); | |
39644 | if (PyErr_Occurred()) SWIG_fail; | |
39645 | } | |
39646 | Py_INCREF(Py_None); resultobj = Py_None; | |
39647 | return resultobj; | |
39648 | fail: | |
39649 | return NULL; | |
39650 | } | |
39651 | ||
39652 | ||
39653 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39654 | PyObject *resultobj; | |
39655 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39656 | int result; | |
39657 | PyObject * obj0 = 0 ; | |
39658 | char *kwnames[] = { | |
39659 | (char *) "self", NULL | |
39660 | }; | |
39661 | ||
39662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39665 | { |
39666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39667 | result = (int)(arg1)->GetRelationship(); | |
39668 | ||
39669 | wxPyEndAllowThreads(__tstate); | |
39670 | if (PyErr_Occurred()) SWIG_fail; | |
39671 | } | |
15afbcd0 | 39672 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39673 | return resultobj; |
39674 | fail: | |
39675 | return NULL; | |
39676 | } | |
39677 | ||
39678 | ||
39679 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39680 | PyObject *resultobj; | |
39681 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39682 | int arg2 ; | |
39683 | PyObject * obj0 = 0 ; | |
994141e6 | 39684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39685 | char *kwnames[] = { |
39686 | (char *) "self",(char *) "r", NULL | |
39687 | }; | |
39688 | ||
994141e6 | 39689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39692 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39693 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39694 | { |
39695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39696 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39697 | ||
39698 | wxPyEndAllowThreads(__tstate); | |
39699 | if (PyErr_Occurred()) SWIG_fail; | |
39700 | } | |
39701 | Py_INCREF(Py_None); resultobj = Py_None; | |
39702 | return resultobj; | |
39703 | fail: | |
39704 | return NULL; | |
39705 | } | |
39706 | ||
39707 | ||
39708 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39709 | PyObject *resultobj; | |
39710 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39711 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39712 | bool result; | |
39713 | PyObject * obj0 = 0 ; | |
39714 | PyObject * obj1 = 0 ; | |
39715 | char *kwnames[] = { | |
39716 | (char *) "self",(char *) "otherW", NULL | |
39717 | }; | |
39718 | ||
39719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39724 | { |
39725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39726 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39727 | ||
39728 | wxPyEndAllowThreads(__tstate); | |
39729 | if (PyErr_Occurred()) SWIG_fail; | |
39730 | } | |
4f89f6a3 RD |
39731 | { |
39732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39733 | } | |
d14a1e28 RD |
39734 | return resultobj; |
39735 | fail: | |
39736 | return NULL; | |
39737 | } | |
39738 | ||
39739 | ||
39740 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39741 | PyObject *resultobj; | |
39742 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39743 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39744 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39745 | bool result; | |
39746 | PyObject * obj0 = 0 ; | |
39747 | PyObject * obj1 = 0 ; | |
39748 | PyObject * obj2 = 0 ; | |
39749 | char *kwnames[] = { | |
39750 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39751 | }; | |
39752 | ||
39753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39758 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39760 | { |
39761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39762 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39763 | ||
39764 | wxPyEndAllowThreads(__tstate); | |
39765 | if (PyErr_Occurred()) SWIG_fail; | |
39766 | } | |
4f89f6a3 RD |
39767 | { |
39768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39769 | } | |
d14a1e28 RD |
39770 | return resultobj; |
39771 | fail: | |
39772 | return NULL; | |
39773 | } | |
39774 | ||
39775 | ||
39776 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39777 | PyObject *resultobj; | |
39778 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39779 | int arg2 ; | |
39780 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39781 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39782 | int result; | |
39783 | PyObject * obj0 = 0 ; | |
994141e6 | 39784 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39785 | PyObject * obj2 = 0 ; |
39786 | PyObject * obj3 = 0 ; | |
39787 | char *kwnames[] = { | |
39788 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39789 | }; | |
39790 | ||
994141e6 | 39791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39794 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39795 | if (PyErr_Occurred()) SWIG_fail; | |
39796 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39798 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39800 | { |
39801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39802 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39803 | ||
39804 | wxPyEndAllowThreads(__tstate); | |
39805 | if (PyErr_Occurred()) SWIG_fail; | |
39806 | } | |
15afbcd0 | 39807 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39808 | return resultobj; |
39809 | fail: | |
39810 | return NULL; | |
39811 | } | |
39812 | ||
39813 | ||
39814 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
39815 | PyObject *obj; | |
39816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39817 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
39818 | Py_INCREF(obj); | |
39819 | return Py_BuildValue((char *)""); | |
39820 | } | |
39821 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39822 | PyObject *resultobj; | |
39823 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39824 | wxIndividualLayoutConstraint *result; | |
39825 | PyObject * obj0 = 0 ; | |
39826 | char *kwnames[] = { | |
39827 | (char *) "self", NULL | |
39828 | }; | |
39829 | ||
39830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39833 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
39834 | ||
15afbcd0 | 39835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39836 | return resultobj; |
39837 | fail: | |
39838 | return NULL; | |
39839 | } | |
39840 | ||
39841 | ||
39842 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39843 | PyObject *resultobj; | |
39844 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39845 | wxIndividualLayoutConstraint *result; | |
39846 | PyObject * obj0 = 0 ; | |
39847 | char *kwnames[] = { | |
39848 | (char *) "self", NULL | |
39849 | }; | |
39850 | ||
39851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39854 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
39855 | ||
15afbcd0 | 39856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39857 | return resultobj; |
39858 | fail: | |
39859 | return NULL; | |
39860 | } | |
39861 | ||
39862 | ||
39863 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39864 | PyObject *resultobj; | |
39865 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39866 | wxIndividualLayoutConstraint *result; | |
39867 | PyObject * obj0 = 0 ; | |
39868 | char *kwnames[] = { | |
39869 | (char *) "self", NULL | |
39870 | }; | |
39871 | ||
39872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39875 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
39876 | ||
15afbcd0 | 39877 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39878 | return resultobj; |
39879 | fail: | |
39880 | return NULL; | |
39881 | } | |
39882 | ||
39883 | ||
39884 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39885 | PyObject *resultobj; | |
39886 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39887 | wxIndividualLayoutConstraint *result; | |
39888 | PyObject * obj0 = 0 ; | |
39889 | char *kwnames[] = { | |
39890 | (char *) "self", NULL | |
39891 | }; | |
39892 | ||
39893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39896 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
39897 | ||
15afbcd0 | 39898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39899 | return resultobj; |
39900 | fail: | |
39901 | return NULL; | |
39902 | } | |
39903 | ||
39904 | ||
39905 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39906 | PyObject *resultobj; | |
39907 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39908 | wxIndividualLayoutConstraint *result; | |
39909 | PyObject * obj0 = 0 ; | |
39910 | char *kwnames[] = { | |
39911 | (char *) "self", NULL | |
39912 | }; | |
39913 | ||
39914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39917 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
39918 | ||
15afbcd0 | 39919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39920 | return resultobj; |
39921 | fail: | |
39922 | return NULL; | |
39923 | } | |
39924 | ||
39925 | ||
39926 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39927 | PyObject *resultobj; | |
39928 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39929 | wxIndividualLayoutConstraint *result; | |
39930 | PyObject * obj0 = 0 ; | |
39931 | char *kwnames[] = { | |
39932 | (char *) "self", NULL | |
39933 | }; | |
39934 | ||
39935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39938 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
39939 | ||
15afbcd0 | 39940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39941 | return resultobj; |
39942 | fail: | |
39943 | return NULL; | |
39944 | } | |
39945 | ||
39946 | ||
39947 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39948 | PyObject *resultobj; | |
39949 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39950 | wxIndividualLayoutConstraint *result; | |
39951 | PyObject * obj0 = 0 ; | |
39952 | char *kwnames[] = { | |
39953 | (char *) "self", NULL | |
39954 | }; | |
39955 | ||
39956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39959 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
39960 | ||
15afbcd0 | 39961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39962 | return resultobj; |
39963 | fail: | |
39964 | return NULL; | |
39965 | } | |
39966 | ||
39967 | ||
39968 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39969 | PyObject *resultobj; | |
39970 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
39971 | wxIndividualLayoutConstraint *result; | |
39972 | PyObject * obj0 = 0 ; | |
39973 | char *kwnames[] = { | |
39974 | (char *) "self", NULL | |
39975 | }; | |
39976 | ||
39977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
39979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39980 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
39981 | ||
15afbcd0 | 39982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
39983 | return resultobj; |
39984 | fail: | |
39985 | return NULL; | |
39986 | } | |
39987 | ||
39988 | ||
39989 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39990 | PyObject *resultobj; | |
39991 | wxLayoutConstraints *result; | |
39992 | char *kwnames[] = { | |
39993 | NULL | |
39994 | }; | |
39995 | ||
39996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
39997 | { | |
39998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39999 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40000 | ||
40001 | wxPyEndAllowThreads(__tstate); | |
40002 | if (PyErr_Occurred()) SWIG_fail; | |
40003 | } | |
15afbcd0 | 40004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
40005 | return resultobj; |
40006 | fail: | |
40007 | return NULL; | |
40008 | } | |
40009 | ||
40010 | ||
40011 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40012 | PyObject *resultobj; | |
40013 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40015 | int *arg3 = (int *) 0 ; | |
40016 | bool result; | |
40017 | int temp3 ; | |
40018 | PyObject * obj0 = 0 ; | |
40019 | PyObject * obj1 = 0 ; | |
40020 | char *kwnames[] = { | |
40021 | (char *) "self",(char *) "win", NULL | |
40022 | }; | |
40023 | ||
40024 | arg3 = &temp3; | |
40025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
40026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40028 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40030 | { |
40031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40032 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40033 | ||
40034 | wxPyEndAllowThreads(__tstate); | |
40035 | if (PyErr_Occurred()) SWIG_fail; | |
40036 | } | |
4f89f6a3 RD |
40037 | { |
40038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40039 | } | |
d14a1e28 RD |
40040 | { |
40041 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40042 | resultobj = t_output_helper(resultobj,o); | |
40043 | } | |
40044 | return resultobj; | |
40045 | fail: | |
40046 | return NULL; | |
40047 | } | |
40048 | ||
40049 | ||
40050 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40051 | PyObject *resultobj; | |
40052 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40053 | bool result; | |
40054 | PyObject * obj0 = 0 ; | |
40055 | char *kwnames[] = { | |
40056 | (char *) "self", NULL | |
40057 | }; | |
40058 | ||
40059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40062 | { |
40063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40064 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40065 | ||
40066 | wxPyEndAllowThreads(__tstate); | |
40067 | if (PyErr_Occurred()) SWIG_fail; | |
40068 | } | |
4f89f6a3 RD |
40069 | { |
40070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40071 | } | |
d14a1e28 RD |
40072 | return resultobj; |
40073 | fail: | |
40074 | return NULL; | |
40075 | } | |
40076 | ||
40077 | ||
40078 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40079 | PyObject *obj; | |
40080 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40081 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40082 | Py_INCREF(obj); | |
40083 | return Py_BuildValue((char *)""); | |
40084 | } | |
40085 | static PyMethodDef SwigMethods[] = { | |
40086 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 40087 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
40088 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
40089 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40090 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40091 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40092 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40093 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40094 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40095 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40096 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40097 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40098 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40099 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40100 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40101 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40102 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40103 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40104 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40105 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40106 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40107 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40108 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, |
40109 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40110 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40111 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
40112 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40113 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40114 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40115 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40116 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40117 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40118 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
40119 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40120 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
40121 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40122 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 40123 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40124 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
40125 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40126 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40127 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40128 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40129 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40130 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40131 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40132 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40133 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40134 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40135 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40136 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40137 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40138 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40139 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
40140 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40141 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40142 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40143 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40144 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40145 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40146 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40147 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40148 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40149 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40150 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40151 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40152 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40153 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40154 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40155 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
40156 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
40157 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40158 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40159 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40160 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
40161 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40162 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40163 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40164 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40165 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40166 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40167 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40168 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40169 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40170 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40171 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40172 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40173 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40174 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40175 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40176 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40177 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40178 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40179 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40180 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40181 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40182 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40183 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40184 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40185 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40186 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40187 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40188 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40189 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40190 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
40191 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40192 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40193 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40194 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40195 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40196 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40197 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40198 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40199 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40200 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40201 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40202 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40203 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40204 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40205 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40206 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40207 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40208 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40209 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40210 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40211 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40212 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
40213 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40214 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40215 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40216 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40217 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40218 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
40219 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40220 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40221 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40222 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40223 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40224 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40225 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40226 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40227 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40228 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40229 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40230 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40231 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40232 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40233 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40234 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40235 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40236 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40237 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40238 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40239 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40240 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40241 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40242 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40243 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40244 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40245 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40246 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40247 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40248 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40249 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40250 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40251 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40252 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40253 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40254 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40255 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40256 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40257 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40258 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40259 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40260 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40261 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40262 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40263 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40264 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40265 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40266 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40267 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40268 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40269 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40270 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40271 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40272 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40273 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40274 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40275 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40276 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40277 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40278 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40279 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40281 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40282 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40288 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40292 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40298 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40299 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40300 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40301 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40302 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40306 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40308 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40309 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40310 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
66c033b4 | 40311 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40312 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40313 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40314 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40315 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40320 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40322 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40328 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40329 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40330 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40331 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 40340 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40341 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, |
40342 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40345 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40346 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40347 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40350 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40351 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40375 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40377 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, |
40378 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40379 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40380 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40381 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40383 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40385 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40387 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40389 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40391 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40393 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40395 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40397 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40399 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40402 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40403 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40407 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40408 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40409 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40413 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40414 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40419 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40420 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40426 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40427 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40428 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40429 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40431 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40434 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40437 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40438 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40449 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40450 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40454 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40460 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40461 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40466 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40472 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40476 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
412d302d | 40478 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40479 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, |
40480 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40481 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40482 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40483 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40485 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40488 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40492 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40496 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40498 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40501 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40502 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40503 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40505 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40517 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40520 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40529 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40530 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40531 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40532 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40533 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40536 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
412d302d | 40541 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40542 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, |
40543 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
19272049 | 40544 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40545 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, |
40546 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40558 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40567 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40570 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40572 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40574 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40576 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40578 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40580 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40582 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40584 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40586 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40588 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40590 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40592 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40594 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40596 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40599 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40603 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40604 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40606 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40609 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40611 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40616 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40622 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40624 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40625 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40628 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40631 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40633 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40637 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40640 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40645 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40651 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40654 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40656 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40657 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40659 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40661 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40665 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40669 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
908b74cd | 40674 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40675 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, |
40676 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40678 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40681 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40684 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40688 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40695 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40700 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40705 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40725 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40726 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40734 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 40735 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40736 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40737 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40749 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40757 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40758 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40760 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
40761 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40764 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40768 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40769 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, |
40770 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40778 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40779 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 RD |
40791 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40792 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40793 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40794 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
f8167d6e | 40804 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40805 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, |
40806 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
dfbb5885 RD |
40821 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS }, |
40822 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40823 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, |
40824 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40829 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, |
40830 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
908b74cd RD |
40831 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
40832 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40835 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, |
40836 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40839 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
40840 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
40845 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40852 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
40853 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40859 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
40860 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
908b74cd | 40867 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS }, |
7f98d120 RD |
40868 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS }, |
40869 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40870 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
40871 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40886 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, |
40887 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40890 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
40891 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 40916 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
74a57fcd RD |
40917 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
40918 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40919 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
412d302d | 40920 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 40921 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
fa47d7a7 | 40922 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40923 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
40924 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
fa47d7a7 | 40928 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40929 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, |
40930 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 40942 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
40943 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
40944 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40969 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
40975 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 RD |
40978 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, |
40979 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40980 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, |
40981 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
40983 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
40985 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40992 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
40993 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
40994 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
40995 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
40998 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41017 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41023 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41045 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41052 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41053 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41072 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41073 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41079 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41080 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 | 41091 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41092 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
41093 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41102 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41103 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41105 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41110 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41114 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 41116 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41117 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, |
41118 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41123 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41124 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41125 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41126 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41133 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41134 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41135 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41136 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 41137 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, |
248ed943 | 41138 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41139 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, |
41140 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41145 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
dfbb5885 | 41146 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41147 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, |
41148 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41149 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41156 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41158 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41160 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41161 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41162 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41166 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41172 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
1c0f361b | 41177 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41178 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, |
41179 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41180 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41190 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41193 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41198 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, |
41199 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41201 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41204 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41207 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, |
41208 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41209 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41210 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, |
41211 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41212 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, |
41213 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41215 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41217 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41219 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41221 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41222 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, |
41223 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41225 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41227 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41229 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41230 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
41231 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41232 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
41233 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41235 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41236 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41238 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41240 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
41241 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41242 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
41243 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41245 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41246 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41248 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41249 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41250 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
41251 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41252 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
41253 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41254 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41255 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
248ed943 RD |
41261 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS }, |
41262 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41263 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, |
41264 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41267 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41270 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41271 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41272 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41273 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41274 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41275 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41276 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41277 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 41278 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
248ed943 RD |
41279 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS }, |
41280 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41281 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, |
41282 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41283 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41286 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41287 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41288 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41290 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41291 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41292 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41298 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41299 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41300 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41301 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41302 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41305 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41309 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41313 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41317 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41318 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41319 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41320 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41321 | { NULL, NULL } | |
41322 | }; | |
41323 | ||
41324 | ||
41325 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41326 | ||
41327 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41328 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41329 | } | |
41330 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41331 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41332 | } | |
41333 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41334 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41335 | } | |
41336 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41337 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41338 | } | |
41339 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41340 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41341 | } | |
41342 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41343 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41344 | } | |
41345 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41346 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41347 | } | |
41348 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41349 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41350 | } | |
41351 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41352 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41353 | } | |
41354 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41355 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41356 | } | |
41357 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41358 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41359 | } | |
41360 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41361 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41362 | } | |
41363 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41364 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41365 | } | |
41366 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41367 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41368 | } | |
41369 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41370 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41371 | } | |
41372 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41373 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41374 | } | |
41375 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41376 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41377 | } | |
41378 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41379 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41380 | } | |
41381 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41382 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41383 | } | |
41384 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41385 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41386 | } | |
41387 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41388 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41389 | } | |
41390 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41391 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41392 | } | |
41393 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41394 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41395 | } | |
41396 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41397 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41398 | } | |
41399 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41400 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41401 | } | |
41402 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41403 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41404 | } | |
41405 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41406 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41407 | } | |
41408 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41409 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41410 | } | |
41411 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41412 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41413 | } | |
41414 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41415 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41416 | } | |
41417 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41418 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41419 | } | |
41420 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41421 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41422 | } | |
41423 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41424 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41425 | } | |
41426 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41427 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41428 | } | |
41429 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41430 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41431 | } | |
41432 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41433 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41434 | } | |
41435 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41436 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41437 | } | |
41438 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41439 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41440 | } | |
41441 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41442 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41443 | } | |
41444 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41445 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41446 | } | |
41447 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41448 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41449 | } | |
41450 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41451 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41452 | } | |
41453 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41454 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41455 | } | |
41456 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41457 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41458 | } | |
41459 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41460 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41461 | } | |
41462 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41463 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41464 | } | |
41465 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41466 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41467 | } | |
41468 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41469 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41470 | } | |
41471 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41472 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41473 | } | |
41474 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41475 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41476 | } | |
41477 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41479 | } | |
41480 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41481 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41482 | } | |
41483 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41484 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41485 | } | |
41486 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41487 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41488 | } | |
41489 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41490 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41491 | } | |
41492 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41493 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41494 | } | |
41495 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41496 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41497 | } | |
41498 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41499 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41500 | } | |
41501 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41502 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41503 | } | |
41504 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41505 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41506 | } | |
41507 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41508 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41509 | } | |
41510 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41511 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41512 | } | |
41513 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41514 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41515 | } | |
41516 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41517 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41518 | } | |
41519 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41520 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41521 | } | |
41522 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41523 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41524 | } | |
41525 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41526 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41527 | } | |
41528 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41529 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41530 | } | |
41531 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41532 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41533 | } | |
41534 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41535 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41536 | } | |
41537 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41538 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41539 | } | |
41540 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41541 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41542 | } | |
41543 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41544 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41545 | } | |
41546 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41547 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41548 | } | |
41549 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41550 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41551 | } | |
41552 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41553 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41554 | } | |
41555 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41556 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41557 | } | |
41558 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41559 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41560 | } | |
41561 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41562 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41563 | } | |
41564 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41565 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41566 | } | |
41567 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41568 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41569 | } | |
41570 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41571 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41572 | } | |
41573 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41574 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41575 | } | |
41576 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41577 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41578 | } | |
41579 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41580 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41581 | } | |
41582 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41584 | } | |
41585 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41586 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41587 | } | |
41588 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41589 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41590 | } | |
41591 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41592 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41593 | } | |
41594 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41595 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41596 | } | |
41597 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41598 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41599 | } | |
41600 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41601 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41602 | } | |
41603 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41604 | return (void *)((wxObject *) ((wxImage *) x)); | |
41605 | } | |
41606 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41607 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41608 | } | |
41609 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41610 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41611 | } | |
41612 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41613 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41614 | } | |
41615 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41616 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41617 | } | |
41618 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41620 | } | |
1e0c8722 RD |
41621 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41622 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41623 | } | |
d14a1e28 RD |
41624 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41625 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41626 | } | |
41627 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41628 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41629 | } | |
41630 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41631 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41632 | } | |
41633 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41634 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41635 | } | |
41636 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41637 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41638 | } | |
41639 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41640 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41641 | } | |
41642 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41643 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41644 | } | |
41645 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41646 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41647 | } | |
41648 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41649 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41650 | } | |
41651 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41652 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41653 | } | |
41654 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41655 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41656 | } | |
41657 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41658 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41659 | } | |
41660 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41661 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41662 | } | |
41663 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41664 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41665 | } | |
41666 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41667 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41668 | } | |
41669 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41670 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41671 | } | |
41672 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41673 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41674 | } | |
41675 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41676 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41677 | } | |
41678 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41679 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41680 | } | |
41681 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41682 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41683 | } | |
41684 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41685 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41686 | } | |
41687 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41688 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41689 | } | |
41690 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41691 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41692 | } | |
41693 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41694 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41695 | } | |
41696 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41697 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41698 | } | |
41699 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41700 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41701 | } | |
41702 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41703 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41704 | } | |
41705 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41706 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41707 | } | |
41708 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41710 | } | |
41711 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41712 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41713 | } | |
41714 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41715 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41716 | } | |
41717 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41718 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41719 | } | |
41720 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41721 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41722 | } | |
41723 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41724 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41725 | } | |
41726 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41727 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41728 | } | |
41729 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41730 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41731 | } | |
41732 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41733 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41734 | } | |
41735 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41736 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41737 | } | |
41738 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41739 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41740 | } | |
41741 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41742 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41743 | } | |
41744 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41745 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41746 | } | |
41747 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41748 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41749 | } | |
41750 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41751 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41752 | } | |
41753 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41755 | } | |
41756 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41757 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41758 | } | |
41759 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41760 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41761 | } | |
41762 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41763 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41764 | } | |
41765 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41766 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41767 | } | |
41768 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41769 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41770 | } | |
41771 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41772 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41773 | } | |
41774 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41775 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41776 | } | |
41777 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41778 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41779 | } | |
41780 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41781 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41782 | } | |
41783 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41784 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41785 | } | |
41786 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41787 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41788 | } | |
41789 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41790 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41791 | } | |
41792 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41793 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41794 | } | |
41795 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41796 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41797 | } | |
41798 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41799 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41800 | } | |
41801 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41802 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41803 | } | |
41804 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41805 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41806 | } | |
41807 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41808 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41809 | } | |
41810 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
41811 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
41812 | } | |
15afbcd0 RD |
41813 | 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}}; |
41814 | 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}}; | |
41815 | 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}}; | |
41816 | 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}}; | |
41817 | 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}}; | |
41818 | 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}}; | |
41819 | 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}}; | |
41820 | 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}}; | |
41821 | 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}}; | |
41822 | 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}}; | |
41823 | 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}}; | |
41824 | 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}}; | |
41825 | 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}}; | |
41826 | 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}}; | |
41827 | 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}}; | |
41828 | 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}}; | |
41829 | 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}}; | |
41830 | 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}}; | |
41831 | 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}}; | |
41832 | 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}}; | |
41833 | 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}}; | |
41834 | 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}}; | |
41835 | 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}}; | |
41836 | 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}}; | |
41837 | 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}}; | |
41838 | 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}}; | |
41839 | 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}}; | |
41840 | 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}}; | |
41841 | 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}}; | |
41842 | 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}}; | |
41843 | 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}}; | |
41844 | 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}}; | |
41845 | 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}}; | |
41846 | 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}}; | |
41847 | 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}}; | |
41848 | 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 | 41849 | 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 |
41850 | 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}}; |
41851 | 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}}; | |
41852 | 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}}; | |
41853 | 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}}; | |
41854 | 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}}; | |
41855 | 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}}; | |
41856 | 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}}; | |
41857 | 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}}; | |
41858 | 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}}; | |
41859 | 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}}; | |
41860 | 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}}; | |
41861 | 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}}; | |
41862 | 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}}; | |
41863 | 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}}; | |
41864 | 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}}; | |
41865 | 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}}; | |
41866 | 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}}; | |
41867 | 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}}; | |
41868 | 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}}; | |
41869 | 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}}; | |
41870 | 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}}; | |
41871 | 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}}; | |
41872 | 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}}; | |
41873 | 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}}; | |
41874 | 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}}; | |
41875 | 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}}; | |
41876 | 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}}; | |
41877 | 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}}; | |
41878 | 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}}; | |
41879 | 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}}; | |
41880 | 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}}; | |
41881 | 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}}; | |
41882 | 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}}; | |
41883 | 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}}; | |
41884 | 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}}; | |
41885 | 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}}; | |
41886 | 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}}; | |
41887 | 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}}; | |
41888 | 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}}; | |
41889 | 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}}; | |
41890 | 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}}; | |
41891 | 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}}; | |
41892 | 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}}; | |
41893 | 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}}; | |
41894 | 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}}; | |
41895 | 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}}; | |
41896 | 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}}; | |
41897 | 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}}; | |
41898 | 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}}; | |
41899 | 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}}; | |
41900 | 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}}; | |
41901 | 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}}; | |
41902 | 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}}; | |
41903 | 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}}; | |
41904 | 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}}; | |
41905 | 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}}; | |
41906 | 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}}; | |
41907 | 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}}; | |
41908 | 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}}; | |
41909 | 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}}; | |
41910 | 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}}; | |
41911 | 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}}; | |
41912 | 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}}; | |
41913 | 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}}; | |
41914 | 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}}; | |
41915 | 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}}; | |
41916 | 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}}; | |
41917 | 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}}; | |
41918 | 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}}; | |
41919 | 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}}; | |
41920 | 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}}; | |
41921 | 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}}; | |
41922 | 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}}; | |
41923 | 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}}; | |
41924 | 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}}; | |
41925 | 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}}; | |
41926 | 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}}; | |
41927 | 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 |
41928 | |
41929 | static swig_type_info *swig_types_initial[] = { | |
41930 | _swigt__p_wxLayoutConstraints, | |
41931 | _swigt__p_wxRealPoint, | |
41932 | _swigt__p_wxSizerItem, | |
41933 | _swigt__p_wxGBSizerItem, | |
41934 | _swigt__p_wxScrollEvent, | |
41935 | _swigt__p_wxIndividualLayoutConstraint, | |
41936 | _swigt__p_wxSizer, | |
41937 | _swigt__p_wxBoxSizer, | |
41938 | _swigt__p_wxStaticBoxSizer, | |
41939 | _swigt__p_wxGridBagSizer, | |
41940 | _swigt__p_wxAcceleratorEntry, | |
41941 | _swigt__p_wxUpdateUIEvent, | |
41942 | _swigt__p_wxMenu, | |
41943 | _swigt__p_wxEvent, | |
41944 | _swigt__p_wxGridSizer, | |
41945 | _swigt__p_wxFlexGridSizer, | |
41946 | _swigt__p_wxInitDialogEvent, | |
41947 | _swigt__p_wxItemContainer, | |
41948 | _swigt__p_wxNcPaintEvent, | |
41949 | _swigt__p_wxPaintEvent, | |
41950 | _swigt__p_wxSysColourChangedEvent, | |
41951 | _swigt__p_wxMouseCaptureChangedEvent, | |
41952 | _swigt__p_wxDisplayChangedEvent, | |
41953 | _swigt__p_wxPaletteChangedEvent, | |
41954 | _swigt__p_wxControl, | |
41955 | _swigt__p_wxFont, | |
41956 | _swigt__p_wxMenuBarBase, | |
41957 | _swigt__p_wxSetCursorEvent, | |
41958 | _swigt__p_wxFSFile, | |
41959 | _swigt__p_wxCaret, | |
41960 | _swigt__p_wxRegion, | |
41961 | _swigt__p_wxPoint2D, | |
41962 | _swigt__p_int, | |
41963 | _swigt__p_wxSize, | |
41964 | _swigt__p_wxDC, | |
41965 | _swigt__p_wxPySizer, | |
74a57fcd | 41966 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
41967 | _swigt__p_wxNotifyEvent, |
41968 | _swigt__p_wxPyEvent, | |
41969 | _swigt__p_wxPropagationDisabler, | |
41970 | _swigt__p_wxAppTraits, | |
41971 | _swigt__p_wxArrayString, | |
41972 | _swigt__p_wxShowEvent, | |
41973 | _swigt__p_wxToolTip, | |
4d5c3d91 | 41974 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
41975 | _swigt__p_wxIconizeEvent, |
41976 | _swigt__p_wxActivateEvent, | |
41977 | _swigt__p_wxMoveEvent, | |
41978 | _swigt__p_wxSizeEvent, | |
41979 | _swigt__p_wxQueryNewPaletteEvent, | |
41980 | _swigt__p_wxWindowCreateEvent, | |
41981 | _swigt__p_wxIdleEvent, | |
41982 | _swigt__p_wxMenuItem, | |
41983 | _swigt__p_wxStaticBox, | |
41984 | _swigt__p_long, | |
41985 | _swigt__p_wxTIFFHandler, | |
41986 | _swigt__p_wxXPMHandler, | |
41987 | _swigt__p_wxPNMHandler, | |
41988 | _swigt__p_wxJPEGHandler, | |
41989 | _swigt__p_wxPCXHandler, | |
41990 | _swigt__p_wxGIFHandler, | |
41991 | _swigt__p_wxPNGHandler, | |
41992 | _swigt__p_wxANIHandler, | |
41993 | _swigt__p_wxMemoryFSHandler, | |
41994 | _swigt__p_wxEvtHandler, | |
41995 | _swigt__p_wxCURHandler, | |
41996 | _swigt__p_wxICOHandler, | |
41997 | _swigt__p_wxBMPHandler, | |
41998 | _swigt__p_wxImageHandler, | |
41999 | _swigt__p_wxFileSystemHandler, | |
42000 | _swigt__p_wxPyFileSystemHandler, | |
42001 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 42002 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
42003 | _swigt__p_wxRect, |
42004 | _swigt__p_wxGBSpan, | |
42005 | _swigt__p_wxPropagateOnce, | |
42006 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 42007 | _swigt__p_char, |
d14a1e28 RD |
42008 | _swigt__p_wxGBPosition, |
42009 | _swigt__p_wxImage, | |
42010 | _swigt__p_wxFrame, | |
42011 | _swigt__p_wxScrollWinEvent, | |
42012 | _swigt__p_wxImageHistogram, | |
42013 | _swigt__p_byte, | |
42014 | _swigt__p_wxPoint, | |
42015 | _swigt__p_wxCursor, | |
42016 | _swigt__p_wxObject, | |
42017 | _swigt__p_wxPyInputStream, | |
42018 | _swigt__p_wxOutputStream, | |
42019 | _swigt__p_wxInputStream, | |
42020 | _swigt__p_wxDateTime, | |
42021 | _swigt__p_wxKeyEvent, | |
42022 | _swigt__p_wxNavigationKeyEvent, | |
42023 | _swigt__p_wxWindowDestroyEvent, | |
42024 | _swigt__p_wxWindow, | |
42025 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
42026 | _swigt__p_wxFileSystem, |
42027 | _swigt__p_wxBitmap, | |
42028 | _swigt__p_wxMenuEvent, | |
42029 | _swigt__p_wxContextMenuEvent, | |
42030 | _swigt__p_unsigned_char, | |
42031 | _swigt__p_wxCloseEvent, | |
42032 | _swigt__p_wxEraseEvent, | |
42033 | _swigt__p_wxMouseEvent, | |
42034 | _swigt__p_wxPyApp, | |
42035 | _swigt__p_wxCommandEvent, | |
42036 | _swigt__p_wxPyCommandEvent, | |
7722248d | 42037 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
42038 | _swigt__p_wxChildFocusEvent, |
42039 | _swigt__p_wxFocusEvent, | |
42040 | _swigt__p_wxDropFilesEvent, | |
42041 | _swigt__p_wxControlWithItems, | |
42042 | _swigt__p_wxColour, | |
42043 | _swigt__p_wxValidator, | |
42044 | _swigt__p_wxPyValidator, | |
42045 | 0 | |
42046 | }; | |
42047 | ||
42048 | ||
42049 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42050 | ||
42051 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
42052 | {0}}; |
42053 | ||
42054 | #ifdef __cplusplus | |
42055 | } | |
42056 | #endif | |
42057 | ||
42058 | #ifdef __cplusplus | |
42059 | extern "C" | |
42060 | #endif | |
42061 | SWIGEXPORT(void) SWIG_init(void) { | |
42062 | static PyObject *SWIG_globals = 0; | |
42063 | static int typeinit = 0; | |
42064 | PyObject *m, *d; | |
42065 | int i; | |
42066 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42067 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42068 | d = PyModule_GetDict(m); | |
42069 | ||
42070 | if (!typeinit) { | |
42071 | for (i = 0; swig_types_initial[i]; i++) { | |
42072 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42073 | } | |
42074 | typeinit = 1; | |
42075 | } | |
42076 | SWIG_InstallConstants(d,swig_const_table); | |
42077 | ||
42078 | ||
42079 | #ifndef wxPyUSE_EXPORT | |
42080 | // Make our API structure a CObject so other modules can import it | |
42081 | // from this module. | |
42082 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42083 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42084 | Py_XDECREF(cobj); | |
42085 | #endif | |
42086 | ||
15afbcd0 RD |
42087 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
42088 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42089 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42090 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42091 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42092 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42093 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42094 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42095 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42096 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42097 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42098 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
15afbcd0 RD |
42099 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); |
42100 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42101 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42102 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42103 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42104 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
15afbcd0 RD |
42105 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); |
42106 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42107 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42108 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42109 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42110 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42111 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
a95a7133 | 42112 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); |
15afbcd0 RD |
42113 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); |
42114 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42115 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42116 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42117 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42118 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42119 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42120 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42121 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42122 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42123 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42124 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42125 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42126 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42127 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42128 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42129 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42130 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42131 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42132 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42133 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42134 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42135 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42136 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42137 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42138 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42139 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42140 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42141 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42142 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42143 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42144 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42145 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42146 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42147 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42148 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42149 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42150 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42151 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42152 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42153 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42154 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42155 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42156 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42157 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42158 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42159 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42160 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42161 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42162 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42163 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42164 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42165 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42166 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42167 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42168 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42169 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42170 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42171 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42172 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42173 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42174 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42175 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42176 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42177 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42178 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42179 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42180 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42181 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42182 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42183 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42184 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42185 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42186 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42187 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42188 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42189 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42190 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42191 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42192 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42193 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42194 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42195 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42196 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42197 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42198 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42199 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42200 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42201 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42202 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42203 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42204 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42205 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42206 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42207 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42208 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42209 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42210 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42211 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42212 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42213 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42214 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42215 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42216 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42217 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42218 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42219 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42220 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42221 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42222 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42223 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42224 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42225 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42226 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42227 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42228 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42229 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42230 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42231 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42232 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42233 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42234 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42235 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42236 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42237 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42238 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42239 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42240 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42241 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42242 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42243 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42244 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42245 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42246 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42247 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42248 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42249 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42250 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42251 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42252 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42253 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42254 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42255 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42256 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42257 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42258 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42259 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42260 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42261 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42262 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42263 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42264 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42265 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42266 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42267 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42268 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42269 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42270 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42271 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42272 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42273 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42274 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42275 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42276 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42277 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42278 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42279 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42280 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42281 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42282 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42283 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42284 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42285 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42286 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42287 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42288 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42289 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42290 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42291 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42292 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42293 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42294 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42295 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42296 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42297 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42298 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42299 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42300 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42301 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42302 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42303 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42304 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42305 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42306 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42307 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42308 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42309 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42310 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42311 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42312 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42313 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42314 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42315 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42316 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42317 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42318 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42319 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42320 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42321 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42322 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42323 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42324 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42325 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42326 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42327 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42328 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42329 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42330 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42331 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42332 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42333 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42334 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42335 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
f52e0cf4 | 42336 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); |
15afbcd0 | 42337 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); |
74a57fcd | 42338 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); |
15afbcd0 RD |
42339 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); |
42340 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42341 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42342 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42343 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42344 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42345 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42346 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42347 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42348 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42349 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42350 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42351 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42352 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42353 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42354 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42355 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42356 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42357 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42358 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42359 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42360 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42361 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42362 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42363 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42364 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42365 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42366 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42367 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42368 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42369 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42370 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42371 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42372 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42373 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42374 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42375 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42376 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42377 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42378 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42379 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42380 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42381 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42382 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42383 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42384 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42385 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42386 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42387 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42388 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42389 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42390 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42391 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42392 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42393 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42394 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42395 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42396 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42397 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42398 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42399 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42400 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42401 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42402 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42403 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42404 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42405 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42406 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42407 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42408 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42409 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42410 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42411 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42412 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42413 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42414 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42415 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42416 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42417 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42418 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42419 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42420 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42421 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42422 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42423 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42424 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42425 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42426 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42427 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42428 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42429 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42430 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42431 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42432 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42433 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42434 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42435 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42436 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42437 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42438 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42439 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42440 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42441 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42442 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42443 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42444 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42445 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42446 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42447 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42448 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42449 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42450 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42451 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42452 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42453 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42454 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42455 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42456 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42457 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42458 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42459 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42460 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42461 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42462 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42463 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42464 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42465 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42466 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42467 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42468 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42469 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42470 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42471 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42472 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42473 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42474 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42475 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42476 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42477 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42478 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42479 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42480 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42481 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42482 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42483 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42484 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42485 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42486 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42487 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42488 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42489 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42490 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42491 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42492 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42493 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42494 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42495 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42496 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42497 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42498 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42499 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42500 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42501 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42502 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42503 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42504 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42505 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42506 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42507 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42508 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42509 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42510 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42511 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42512 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42513 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42514 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42515 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42516 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42517 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42518 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42519 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42520 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42521 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42522 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42523 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42524 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42525 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42526 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42527 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42528 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42529 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42530 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42531 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42532 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42533 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42534 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42535 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42536 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42537 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42538 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42539 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42540 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42541 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42542 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42543 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42544 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42545 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42546 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42547 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42548 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42549 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42550 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42551 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42552 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42553 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42554 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42555 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42556 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42557 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42558 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42559 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42560 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42561 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42562 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42563 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42564 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42565 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42566 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42567 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42568 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42569 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42570 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42571 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42572 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42573 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42574 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42575 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42576 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42577 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42578 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42579 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42580 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42581 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42582 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42583 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42584 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42585 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42586 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42587 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42588 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42589 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42590 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42591 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42592 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42593 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42594 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42595 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42596 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42597 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42598 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42599 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42600 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42601 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42602 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 42603 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
15afbcd0 RD |
42604 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42605 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42606 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42607 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42608 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42609 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42610 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42611 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42612 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42613 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42614 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42615 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42616 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42617 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42618 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42619 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42620 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42621 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42622 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42623 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42624 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42625 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42626 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42627 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42628 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42629 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42630 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42631 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42632 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42633 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42634 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42635 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42636 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42637 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42638 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42639 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42640 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42641 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42642 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42643 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42644 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42645 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42646 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42647 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42648 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42649 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42650 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42651 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42652 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42653 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42654 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42655 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42656 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
15afbcd0 RD |
42657 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42658 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42659 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42660 | |
42661 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42662 | ||
42663 | ||
42664 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42665 | ||
42666 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42667 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42668 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42669 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42670 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42671 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
15afbcd0 RD |
42672 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42673 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42674 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42675 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42676 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42677 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42678 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42679 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42680 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42681 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42682 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42683 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42684 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42685 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42686 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42687 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42688 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42689 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42690 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42691 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42692 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42693 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42694 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42695 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42696 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42697 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42698 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42699 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42700 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42701 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42702 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42703 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42704 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42705 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42706 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42707 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42708 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42709 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42710 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42711 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42712 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42713 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42714 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42715 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42716 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42717 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42718 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42719 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42720 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42721 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42722 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42723 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42724 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42725 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42726 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42727 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42728 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42729 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42730 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42731 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42732 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42733 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42734 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42735 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42736 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42737 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42738 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42739 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42740 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42741 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42742 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42743 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42744 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42745 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42746 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42747 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42748 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42749 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42750 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42751 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42752 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42753 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42754 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42755 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42756 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42757 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42758 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42759 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42760 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42761 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42762 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42763 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42764 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42765 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42766 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42767 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42768 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42769 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42770 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42771 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42772 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42773 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42774 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42775 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42776 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42777 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42778 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42779 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42780 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42781 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42782 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42783 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42784 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42785 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42786 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42787 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42788 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42789 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42790 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42791 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42792 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42793 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42794 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42795 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42796 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42797 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42798 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
15afbcd0 RD |
42799 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42800 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42801 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42802 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42803 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42804 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42805 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
b0f7404b | 42806 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_FromInt((int)wxNavigationKeyEvent::IsBackward)); |
908b74cd RD |
42807 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward)); |
42808 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange)); | |
15afbcd0 RD |
42809 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); |
42810 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42811 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42812 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
42813 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
42814 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
42815 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
42816 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 42817 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 42818 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
4276dc52 RD |
42819 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); |
42820 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
42821 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
42822 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
74a57fcd | 42823 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); |
d14a1e28 | 42824 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 42825 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
15afbcd0 RD |
42826 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
42827 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
42828 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 42829 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
15afbcd0 RD |
42830 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
42831 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
42832 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
42833 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
42834 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
42835 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
42836 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
42837 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
42838 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
42839 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
42840 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
42841 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
42842 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
42843 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
42844 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
42845 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
42846 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
42847 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
42848 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
42849 | |
42850 | // Initialize threading, some globals and such | |
42851 | __wxPyPreStart(d); | |
42852 | ||
42853 | ||
42854 | // Although these are defined in __version__ they need to be here too so | |
42855 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
42856 | // versions match. | |
42857 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
42858 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
42859 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
42860 | ||
42861 | } | |
42862 |