]>
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, | |
574 | wxPySwigInstance_Check | |
575 | ||
576 | }; | |
577 | ||
578 | #endif | |
579 | ||
580 | ||
d14a1e28 RD |
581 | #if ! wxUSE_HOTKEY |
582 | enum wxHotkeyModifier | |
583 | { | |
584 | wxMOD_NONE = 0, | |
585 | wxMOD_ALT = 1, | |
586 | wxMOD_CONTROL = 2, | |
587 | wxMOD_SHIFT = 4, | |
588 | wxMOD_WIN = 8 | |
589 | }; | |
590 | #define wxEVT_HOTKEY 9999 | |
591 | #endif | |
592 | ||
196addbf | 593 | static const wxString wxPyEmptyString(wxEmptyString); |
d14a1e28 RD |
594 | wxString wxObject_GetClassName(wxObject *self){ |
595 | return self->GetClassInfo()->GetClassName(); | |
596 | } | |
597 | void wxObject_Destroy(wxObject *self){ | |
598 | delete self; | |
599 | } | |
600 | ||
601 | #ifndef __WXMAC__ | |
602 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
603 | #endif | |
604 | ||
994141e6 | 605 | |
15afbcd0 RD |
606 | #include <limits.h> |
607 | ||
608 | ||
609 | SWIGSTATICINLINE(long) | |
610 | SWIG_CheckLongInRange(long value, const char* type, | |
611 | long min_value, long max_value) | |
612 | { | |
613 | if (!PyErr_Occurred()) { | |
614 | if (value < min_value) { | |
615 | PyObject *err = | |
616 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
617 | value, type, min_value); | |
618 | ||
619 | PyErr_SetObject(PyExc_OverflowError, err); | |
620 | Py_DECREF(err); | |
621 | } else if (value > max_value) { | |
622 | PyObject *err = | |
623 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
624 | value, type, max_value); | |
625 | PyErr_SetObject(PyExc_OverflowError, err); | |
626 | Py_DECREF(err); | |
627 | } | |
628 | } | |
629 | return value; | |
630 | } | |
631 | ||
632 | ||
633 | SWIGSTATICINLINE(long) | |
634 | SWIG_AsLong(PyObject * obj) | |
635 | { | |
69223c70 RD |
636 | if (PyNumber_Check(obj)) |
637 | return PyInt_AsLong(obj); | |
638 | else { | |
639 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
640 | obj->ob_type->tp_name); | |
641 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
642 | Py_DECREF(errmsg); | |
643 | return 0; | |
644 | } | |
15afbcd0 RD |
645 | } |
646 | ||
647 | ||
648 | #if INT_MAX != LONG_MAX | |
649 | SWIGSTATICINLINE(int) | |
650 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 651 | { |
15afbcd0 RD |
652 | return swig_numeric_cast(int, |
653 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
654 | "int", INT_MIN, INT_MAX)); | |
655 | } | |
656 | #else | |
657 | #define SWIG_AsInt SWIG_AsLong | |
658 | #endif | |
659 | ||
660 | ||
661 | SWIGSTATICINLINE(int) | |
662 | SWIG_CheckInt(PyObject* obj) | |
663 | { | |
664 | SWIG_AsInt(obj); | |
665 | if (PyErr_Occurred()) { | |
666 | PyErr_Clear(); | |
667 | return 0; | |
668 | } else { | |
669 | return 1; | |
670 | } | |
994141e6 RD |
671 | } |
672 | ||
e811c8ce | 673 | PyObject *wxSize_Get(wxSize *self){ |
4f89f6a3 | 674 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
675 | PyObject* tup = PyTuple_New(2); |
676 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
677 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 678 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
679 | return tup; |
680 | } | |
994141e6 | 681 | |
15afbcd0 RD |
682 | SWIGSTATICINLINE(double) |
683 | SWIG_AsDouble(PyObject *obj) | |
994141e6 | 684 | { |
69223c70 RD |
685 | if (PyNumber_Check(obj)) |
686 | return PyFloat_AsDouble(obj); | |
687 | else { | |
688 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
689 | obj->ob_type->tp_name); | |
690 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
691 | Py_DECREF(errmsg); | |
692 | return 0; | |
693 | } | |
15afbcd0 RD |
694 | } |
695 | ||
696 | ||
697 | SWIGSTATICINLINE(int) | |
698 | SWIG_CheckDouble(PyObject* obj) | |
699 | { | |
700 | SWIG_AsDouble(obj); | |
701 | if (PyErr_Occurred()) { | |
702 | PyErr_Clear(); | |
703 | return 0; | |
704 | } else { | |
705 | return 1; | |
706 | } | |
994141e6 RD |
707 | } |
708 | ||
d14a1e28 RD |
709 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ |
710 | self->x = x; | |
711 | self->y = y; | |
712 | } | |
e811c8ce | 713 | PyObject *wxRealPoint_Get(wxRealPoint *self){ |
4f89f6a3 | 714 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
715 | PyObject* tup = PyTuple_New(2); |
716 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
717 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
4f89f6a3 | 718 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
719 | return tup; |
720 | } | |
994141e6 | 721 | |
15afbcd0 RD |
722 | SWIGSTATICINLINE(int) |
723 | SWIG_CheckLong(PyObject* obj) | |
994141e6 | 724 | { |
15afbcd0 RD |
725 | SWIG_AsLong(obj); |
726 | if (PyErr_Occurred()) { | |
727 | PyErr_Clear(); | |
728 | return 0; | |
729 | } else { | |
730 | return 1; | |
731 | } | |
994141e6 RD |
732 | } |
733 | ||
d14a1e28 RD |
734 | void wxPoint_Set(wxPoint *self,long x,long y){ |
735 | self->x = x; | |
736 | self->y = y; | |
737 | } | |
e811c8ce | 738 | PyObject *wxPoint_Get(wxPoint *self){ |
4f89f6a3 | 739 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
740 | PyObject* tup = PyTuple_New(2); |
741 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
742 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
4f89f6a3 | 743 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
744 | return tup; |
745 | } | |
746 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
747 | self->x = x; | |
748 | self->y = y; | |
749 | self->width = width; | |
750 | self->height = height; | |
751 | } | |
e811c8ce | 752 | PyObject *wxRect_Get(wxRect *self){ |
4f89f6a3 | 753 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
754 | PyObject* tup = PyTuple_New(4); |
755 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
756 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
757 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
758 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
4f89f6a3 | 759 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
760 | return tup; |
761 | } | |
762 | ||
763 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
764 | wxRegion reg1(*r1); | |
765 | wxRegion reg2(*r2); | |
766 | wxRect dest(0,0,0,0); | |
767 | PyObject* obj; | |
768 | ||
769 | reg1.Intersect(reg2); | |
770 | dest = reg1.GetBox(); | |
771 | ||
772 | if (dest != wxRect(0,0,0,0)) { | |
4f89f6a3 | 773 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 774 | wxRect* newRect = new wxRect(dest); |
e811c8ce | 775 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); |
4f89f6a3 | 776 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
777 | return obj; |
778 | } | |
779 | Py_INCREF(Py_None); | |
780 | return Py_None; | |
781 | } | |
782 | ||
783 | ||
784 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
785 | PyObject* o2; | |
786 | PyObject* o3; | |
787 | ||
788 | if (!target) { | |
789 | target = o; | |
790 | } else if (target == Py_None) { | |
791 | Py_DECREF(Py_None); | |
792 | target = o; | |
793 | } else { | |
794 | if (!PyTuple_Check(target)) { | |
795 | o2 = target; | |
796 | target = PyTuple_New(1); | |
797 | PyTuple_SetItem(target, 0, o2); | |
798 | } | |
799 | o3 = PyTuple_New(1); | |
800 | PyTuple_SetItem(o3, 0, o); | |
801 | ||
802 | o2 = target; | |
803 | target = PySequence_Concat(o2, o3); | |
804 | Py_DECREF(o2); | |
805 | Py_DECREF(o3); | |
806 | } | |
807 | return target; | |
808 | } | |
809 | ||
810 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ | |
811 | self->m_x = x; | |
812 | self->m_y = y; | |
813 | } | |
e811c8ce | 814 | PyObject *wxPoint2D_Get(wxPoint2D *self){ |
4f89f6a3 | 815 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
816 | PyObject* tup = PyTuple_New(2); |
817 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
818 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
4f89f6a3 | 819 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
820 | return tup; |
821 | } | |
822 | ||
823 | #include "wx/wxPython/pyistream.h" | |
824 | ||
825 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
826 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
827 | if (wxis) | |
828 | return new wxPyInputStream(wxis); | |
829 | else | |
830 | return NULL; | |
831 | } | |
994141e6 | 832 | |
15afbcd0 RD |
833 | SWIGSTATICINLINE(PyObject*) |
834 | SWIG_FromChar(char c) | |
994141e6 RD |
835 | { |
836 | return PyString_FromStringAndSize(&c,1); | |
837 | } | |
838 | ||
839 | ||
15afbcd0 RD |
840 | SWIGSTATICINLINE(PyObject* ) |
841 | SWIG_FromUnsignedLong(unsigned long value) | |
842 | { | |
843 | return (value > LONG_MAX) ? | |
844 | PyLong_FromUnsignedLong(value) | |
845 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
846 | } | |
847 | ||
848 | ||
849 | /* returns '1' if the input is a raw char*, '0' if is a PyString */ | |
850 | SWIGSTATIC(int) | |
851 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size) | |
994141e6 | 852 | { |
15afbcd0 RD |
853 | static swig_type_info* pchar_info = 0; |
854 | int psize = 0; | |
855 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); | |
856 | ||
857 | if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) { | |
858 | PyErr_Clear(); | |
859 | PyString_AsStringAndSize(obj, cptr, &psize); | |
860 | if (PyErr_Occurred()) { | |
861 | PyErr_Clear(); | |
862 | PyErr_SetString(PyExc_TypeError,"a string is expected"); | |
863 | } | |
864 | if (size) *size = psize; | |
865 | return 0; | |
866 | } else { | |
867 | if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0; | |
868 | return 1; | |
869 | } | |
994141e6 RD |
870 | } |
871 | ||
872 | ||
15afbcd0 RD |
873 | SWIGSTATIC(void) |
874 | SWIG_AsCharArray(PyObject *obj, char* carray, size_t size) | |
875 | { | |
876 | char* cptr; size_t csize; | |
877 | SWIG_AsCharPtrAndSize(obj, &cptr, &csize); | |
878 | if (PyErr_Occurred()) { | |
879 | PyErr_Clear(); | |
880 | PyObject *err = | |
881 | PyString_FromFormat("a char array of size %d is expected", size); | |
882 | PyErr_SetObject(PyExc_TypeError, err); | |
883 | Py_DECREF(err); | |
884 | } else { | |
885 | /* in C (but not in C++) you can do: | |
886 | ||
887 | char x[5] = "hello"; | |
888 | ||
889 | ie, assing the array using an extra '0' char. | |
890 | */ | |
891 | #ifndef __cplusplus | |
892 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; | |
893 | #endif | |
894 | if (csize > size) { | |
895 | PyObject *err = | |
896 | PyString_FromFormat("a char array of maximum size %d is expected", | |
897 | size); | |
898 | PyErr_SetObject(PyExc_TypeError, err); | |
899 | Py_DECREF(err); | |
900 | } else { | |
901 | if (csize) memcpy(carray, cptr, csize); | |
902 | if (csize < size) memset(carray + csize, 0, size - csize); | |
903 | } | |
904 | } | |
905 | } | |
906 | ||
907 | ||
908 | SWIGSTATICINLINE(char) | |
909 | SWIG_AsChar(PyObject *obj) | |
994141e6 RD |
910 | { |
911 | char c = 0; | |
912 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
15afbcd0 RD |
913 | c = swig_numeric_cast(char, |
914 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
915 | "char", CHAR_MIN, CHAR_MAX)); | |
994141e6 | 916 | } else { |
15afbcd0 RD |
917 | SWIG_AsCharArray(obj, &c, 1); |
918 | if (PyErr_Occurred()) { | |
919 | PyErr_Clear(); | |
994141e6 RD |
920 | PyErr_SetString(PyExc_TypeError, "a char is expected"); |
921 | } | |
922 | } | |
923 | return c; | |
924 | } | |
925 | ||
15afbcd0 RD |
926 | |
927 | SWIGSTATICINLINE(int) | |
928 | SWIG_CheckChar(PyObject* obj) | |
929 | { | |
930 | SWIG_AsChar(obj); | |
931 | if (PyErr_Occurred()) { | |
932 | PyErr_Clear(); | |
933 | return 0; | |
934 | } else { | |
935 | return 1; | |
936 | } | |
937 | } | |
938 | ||
d14a1e28 RD |
939 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ |
940 | // We use only strings for the streams, not unicode | |
941 | PyObject* str = PyObject_Str(obj); | |
942 | if (! str) { | |
943 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
944 | return; | |
945 | } | |
946 | self->Write(PyString_AS_STRING(str), | |
947 | PyString_GET_SIZE(str)); | |
948 | Py_DECREF(str); | |
949 | } | |
950 | ||
951 | #include "wx/wxPython/pyistream.h" | |
952 | ||
953 | ||
954 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
955 | { | |
956 | public: | |
957 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
958 | ||
959 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
960 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
961 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
962 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
963 | ||
964 | wxString GetProtocol(const wxString& location) { | |
965 | return wxFileSystemHandler::GetProtocol(location); | |
966 | } | |
967 | ||
968 | wxString GetLeftLocation(const wxString& location) { | |
969 | return wxFileSystemHandler::GetLeftLocation(location); | |
970 | } | |
971 | ||
972 | wxString GetAnchor(const wxString& location) { | |
973 | return wxFileSystemHandler::GetAnchor(location); | |
974 | } | |
975 | ||
976 | wxString GetRightLocation(const wxString& location) { | |
977 | return wxFileSystemHandler::GetRightLocation(location); | |
978 | } | |
979 | ||
980 | wxString GetMimeTypeFromExt(const wxString& location) { | |
981 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
982 | } | |
983 | ||
984 | PYPRIVATE; | |
985 | }; | |
986 | ||
987 | ||
988 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
989 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
990 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
991 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
992 | ||
993 | ||
15afbcd0 RD |
994 | SWIGSTATICINLINE(bool) |
995 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
996 | { |
997 | return PyObject_IsTrue(obj) ? true : false; | |
998 | } | |
999 | ||
1000 | ||
15afbcd0 RD |
1001 | SWIGSTATICINLINE(int) |
1002 | SWIG_CheckBool(PyObject* obj) | |
1003 | { | |
1004 | SWIG_AsBool(obj); | |
1005 | if (PyErr_Occurred()) { | |
1006 | PyErr_Clear(); | |
1007 | return 0; | |
1008 | } else { | |
1009 | return 1; | |
1010 | } | |
1011 | } | |
1012 | ||
1013 | ||
d14a1e28 RD |
1014 | wxString wxFileSystem_URLToFileName(const wxString& url) { |
1015 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1016 | return fname.GetFullPath(); | |
1017 | } | |
1018 | ||
1019 | ||
1020 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1021 | wxImage& image, | |
1022 | long type) { | |
1023 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1024 | } | |
1025 | ||
1026 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1027 | const wxBitmap& bitmap, | |
1028 | long type) { | |
1029 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1030 | } | |
1031 | ||
1032 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1033 | PyObject* data) { | |
1034 | wxMemoryFSHandler::AddFile(filename, | |
1035 | // TODO: Verify data type | |
1036 | (void*)PyString_AsString(data), | |
1037 | (size_t)PyString_Size(data)); | |
1038 | } | |
1039 | ||
1040 | ||
1041 | #include "wx/wxPython/pyistream.h" | |
1042 | ||
994141e6 | 1043 | |
15afbcd0 RD |
1044 | SWIGSTATICINLINE(unsigned long) |
1045 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
1046 | unsigned long max_value) | |
1047 | { | |
1048 | if (!PyErr_Occurred()) { | |
1049 | if (value > max_value) { | |
1050 | PyObject *err = | |
1051 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
1052 | value, type, max_value); | |
1053 | PyErr_SetObject(PyExc_OverflowError, err); | |
1054 | Py_DECREF(err); | |
1055 | } | |
1056 | } | |
1057 | return value; | |
1058 | } | |
1059 | ||
1060 | ||
1061 | SWIGSTATICINLINE(unsigned long) | |
1062 | SWIG_AsUnsignedLong(PyObject * obj) | |
1063 | { | |
1064 | if (PyLong_Check(obj)) { | |
1065 | return PyLong_AsUnsignedLong(obj); | |
1066 | } else { | |
69223c70 | 1067 | long i = SWIG_AsLong(obj); |
15afbcd0 | 1068 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 1069 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
1070 | } |
1071 | return i; | |
1072 | } | |
1073 | } | |
1074 | ||
1075 | ||
1076 | SWIGSTATICINLINE(unsigned char) | |
1077 | SWIG_AsUnsignedChar(PyObject *obj) | |
994141e6 | 1078 | { |
15afbcd0 RD |
1079 | return swig_numeric_cast(unsigned char, |
1080 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1081 | "unsigned char", UCHAR_MAX)); | |
1082 | } | |
1083 | ||
1084 | ||
1085 | SWIGSTATICINLINE(int) | |
1086 | SWIG_CheckUnsignedChar(PyObject* obj) | |
1087 | { | |
1088 | SWIG_AsUnsignedChar(obj); | |
1089 | if (PyErr_Occurred()) { | |
1090 | PyErr_Clear(); | |
1091 | return 0; | |
1092 | } else { | |
1093 | return 1; | |
1094 | } | |
994141e6 RD |
1095 | } |
1096 | ||
b2df227b | 1097 | wxImage *new_wxImage__SWIG_0(int width,int height,bool clear){ |
d14a1e28 RD |
1098 | if (width > 0 && height > 0) |
1099 | return new wxImage(width, height, clear); | |
1100 | else | |
1101 | return new wxImage; | |
1102 | } | |
b2df227b RD |
1103 | wxImage *new_wxImage__SWIG_1(wxSize const &size,bool clear){ |
1104 | return new wxImage(size.x, size.y, clear); | |
1105 | } | |
d14a1e28 RD |
1106 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1107 | return new wxImage(bitmap.ConvertToImage()); | |
1108 | } | |
1109 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1110 | // Copy the source data so the wxImage can clean it up later | |
1111 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1112 | if (copy == NULL) { | |
1113 | PyErr_NoMemory(); | |
1114 | return NULL; | |
1115 | } | |
1116 | memcpy(copy, data, width*height*3); | |
e811c8ce | 1117 | return new wxImage(width, height, copy, False); |
d14a1e28 | 1118 | } |
b2df227b RD |
1119 | wxSize wxImage_GetSize(wxImage *self){ |
1120 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1121 | return size; | |
1122 | } | |
d14a1e28 RD |
1123 | PyObject *wxImage_GetData(wxImage *self){ |
1124 | unsigned char* data = self->GetData(); | |
1125 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1126 | PyObject* rv; | |
1127 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1128 | return rv; | |
1129 | } | |
1130 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1131 | unsigned char* dataPtr; | |
1132 | ||
1133 | if (! PyString_Check(data)) { | |
1134 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1135 | return /* NULL */ ; | |
1136 | } | |
1137 | ||
1138 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1139 | dataPtr = (unsigned char*) malloc(len); | |
1140 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1141 | self->SetData(dataPtr); | |
1142 | // wxImage takes ownership of dataPtr... | |
1143 | } | |
1144 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1145 | unsigned char* data = self->GetData(); | |
1146 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1147 | PyObject* rv; | |
1148 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1149 | return rv; | |
1150 | } | |
1151 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1152 | unsigned char* buffer; | |
1153 | int size; | |
1154 | ||
4f89f6a3 | 1155 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1156 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1157 | goto done; | |
1158 | ||
1159 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1160 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1161 | goto done; | |
1162 | } | |
1163 | self->SetData(buffer); | |
1164 | done: | |
4f89f6a3 | 1165 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1166 | } |
1167 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1168 | unsigned char* data = self->GetAlpha(); | |
1169 | if (! data) { | |
1170 | RETURN_NONE(); | |
1171 | } else { | |
1172 | int len = self->GetWidth() * self->GetHeight(); | |
1173 | PyObject* rv; | |
1174 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1175 | return rv; | |
1176 | } | |
1177 | } | |
1178 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1179 | unsigned char* dataPtr; | |
1180 | ||
1181 | if (! PyString_Check(data)) { | |
1182 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1183 | return /* NULL */ ; | |
1184 | } | |
1185 | ||
1186 | size_t len = self->GetWidth() * self->GetHeight(); | |
1187 | dataPtr = (unsigned char*) malloc(len); | |
1188 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1189 | self->SetAlpha(dataPtr); | |
1190 | // wxImage takes ownership of dataPtr... | |
1191 | } | |
1192 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1193 | unsigned char* data = self->GetAlpha(); | |
1194 | int len = self->GetWidth() * self->GetHeight(); | |
1195 | PyObject* rv; | |
1196 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1197 | return rv; | |
1198 | } | |
1199 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1200 | unsigned char* buffer; | |
1201 | int size; | |
1202 | ||
4f89f6a3 | 1203 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1204 | if (!PyArg_Parse(data, "t#", &buffer, &size)) |
1205 | goto done; | |
1206 | ||
1207 | if (size != self->GetWidth() * self->GetHeight()) { | |
1208 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1209 | goto done; | |
1210 | } | |
1211 | self->SetAlpha(buffer); | |
1212 | done: | |
4f89f6a3 | 1213 | wxPyEndBlockThreads(blocked); |
d14a1e28 | 1214 | } |
15afbcd0 RD |
1215 | |
1216 | SWIGSTATICINLINE(int) | |
1217 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1218 | { | |
1219 | SWIG_AsUnsignedLong(obj); | |
1220 | if (PyErr_Occurred()) { | |
1221 | PyErr_Clear(); | |
1222 | return 0; | |
1223 | } else { | |
1224 | return 1; | |
1225 | } | |
1226 | } | |
1227 | ||
d14a1e28 RD |
1228 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ |
1229 | wxBitmap bitmap(*self); | |
1230 | return bitmap; | |
1231 | } | |
1232 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1233 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1234 | wxBitmap bitmap( mono, 1 ); | |
1235 | return bitmap; | |
1236 | } | |
1237 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1238 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1239 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1240 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1241 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1242 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1243 | if (PyCallable_Check(func)) { | |
1244 | self->Connect(id, lastId, eventType, | |
1245 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1246 | new wxPyCallback(func)); | |
1247 | } | |
1248 | else if (func == Py_None) { | |
1249 | self->Disconnect(id, lastId, eventType, | |
1250 | (wxObjectEventFunction) | |
1251 | &wxPyCallback::EventThunker); | |
1252 | } | |
1253 | else { | |
a95a7133 RD |
1254 | wxPyBLOCK_THREADS( |
1255 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
d14a1e28 RD |
1256 | } |
1257 | } | |
1258 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1259 | return self->Disconnect(id, lastId, eventType, | |
1260 | (wxObjectEventFunction) | |
1261 | &wxPyCallback::EventThunker); | |
1262 | } | |
1263 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1264 | if (_self && _self != Py_None) { | |
1265 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1266 | } | |
1267 | else { | |
1268 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1269 | if (data) { | |
1270 | self->SetClientObject(NULL); // This will delete it too | |
1271 | } | |
1272 | } | |
1273 | } | |
1274 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
3b7224dc RD |
1275 | #if wxUSE_UNICODE |
1276 | return self->m_uniChar; | |
1277 | #else | |
d14a1e28 | 1278 | return 0; |
3b7224dc | 1279 | #endif |
d14a1e28 | 1280 | } |
994141e6 | 1281 | |
15afbcd0 RD |
1282 | #if UINT_MAX < LONG_MAX |
1283 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1284 | #else | |
1285 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1286 | #endif | |
994141e6 RD |
1287 | |
1288 | ||
15afbcd0 RD |
1289 | #if UINT_MAX != ULONG_MAX |
1290 | SWIGSTATICINLINE(unsigned int) | |
1291 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 1292 | { |
15afbcd0 RD |
1293 | return swig_numeric_cast(unsigned int, |
1294 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1295 | "unsigned int", UINT_MAX)); | |
1296 | } | |
1297 | #else | |
1298 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1299 | #endif | |
1300 | ||
1301 | ||
1302 | SWIGSTATICINLINE(int) | |
1303 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1304 | { | |
1305 | SWIG_AsUnsignedInt(obj); | |
1306 | if (PyErr_Occurred()) { | |
1307 | PyErr_Clear(); | |
1308 | return 0; | |
1309 | } else { | |
1310 | return 1; | |
1311 | } | |
994141e6 RD |
1312 | } |
1313 | ||
d14a1e28 RD |
1314 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ |
1315 | self->m_size = size; | |
1316 | } | |
1317 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1318 | self->m_pos = pos; | |
1319 | } | |
1320 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1321 | int count = self->GetNumberOfFiles(); | |
1322 | wxString* files = self->GetFiles(); | |
1323 | PyObject* list = PyList_New(count); | |
1324 | ||
1325 | if (!list) { | |
1326 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1327 | return NULL; | |
1328 | } | |
1329 | ||
1330 | for (int i=0; i<count; i++) { | |
1fc9204a | 1331 | PyList_SetItem(list, i, wx2PyString(files[i])); |
d14a1e28 RD |
1332 | } |
1333 | return list; | |
1334 | } | |
1335 | ||
1336 | ||
1337 | wxPyApp *new_wxPyApp(){ | |
1338 | wxPythonApp = new wxPyApp(); | |
1339 | return wxPythonApp; | |
1340 | } | |
39f61e25 | 1341 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } |
d14a1e28 RD |
1342 | |
1343 | void wxApp_CleanUp() { | |
1344 | __wxPyCleanup(); | |
1345 | } | |
1346 | ||
1347 | ||
1348 | wxPyApp* wxGetApp() { | |
1349 | return (wxPyApp*)wxTheApp; | |
1350 | } | |
1351 | ||
1352 | ||
1353 | ||
e811c8ce | 1354 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
74a57fcd RD |
1355 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } |
1356 | void delete_wxVisualAttributes(wxVisualAttributes *self){} | |
d14a1e28 RD |
1357 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1358 | wxWindowList& list = self->GetChildren(); | |
1359 | return wxPy_ConvertList(&list); | |
1360 | } | |
1361 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
74a57fcd RD |
1362 | #if wxUSE_HOTKEY |
1363 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1364 | #else | |
e811c8ce | 1365 | return False; |
74a57fcd | 1366 | #endif |
d14a1e28 RD |
1367 | } |
1368 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1369 | ||
1370 | ||
1371 | ||
e811c8ce | 1372 | return False; |
d14a1e28 RD |
1373 | |
1374 | } | |
1375 | long wxWindow_GetHandle(wxWindow *self){ | |
1376 | return wxPyGetWinHandle(self); | |
1377 | } | |
1378 | ||
1379 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1380 | return wxWindow::FindWindowById(id, parent); | |
1381 | } | |
1382 | ||
1383 | wxWindow* wxFindWindowByName( const wxString& name, | |
1384 | const wxWindow *parent = NULL ) { | |
1385 | return wxWindow::FindWindowByName(name, parent); | |
1386 | } | |
1387 | ||
1388 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1389 | const wxWindow *parent = NULL ) { | |
1390 | return wxWindow::FindWindowByLabel(label, parent); | |
1391 | } | |
1392 | ||
1393 | ||
d14a1e28 | 1394 | #ifdef __WXMSW__ |
4276dc52 RD |
1395 | #include <wx/msw/private.h> // to get wxGetWindowId |
1396 | #endif | |
1397 | ||
1398 | ||
1399 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1400 | #ifdef __WXMSW__ | |
1401 | WXHWND hWnd = (WXHWND)_hWnd; | |
1402 | long id = wxGetWindowId(hWnd); | |
d14a1e28 | 1403 | wxWindow* win = new wxWindow; |
4276dc52 RD |
1404 | parent->AddChild(win); |
1405 | win->SetEventHandler(win); | |
1406 | win->SetHWND(hWnd); | |
1407 | win->SetId(id); | |
1408 | win->SubclassWin(hWnd); | |
1409 | win->AdoptAttributesFromHWND(); | |
1410 | win->SetupColours(); | |
d14a1e28 RD |
1411 | return win; |
1412 | #else | |
39f61e25 | 1413 | wxPyRaiseNotImplemented(); |
d14a1e28 RD |
1414 | return NULL; |
1415 | #endif | |
1416 | } | |
1417 | ||
1418 | ||
1419 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1420 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1421 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1422 | ||
1423 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1424 | ||
1425 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1426 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1427 | wxMenuItemList& list = self->GetMenuItems(); | |
1428 | return wxPy_ConvertList(&list); | |
1429 | } | |
1430 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
b2dc1044 | 1431 | static const wxString wxPyControlNameStr(wxControlNameStr); |
d14a1e28 RD |
1432 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ |
1433 | if (clientData) { | |
1434 | wxPyClientData* data = new wxPyClientData(clientData); | |
1435 | return self->Append(item, data); | |
1436 | } else | |
1437 | return self->Append(item); | |
1438 | } | |
1439 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1440 | if (clientData) { | |
1441 | wxPyClientData* data = new wxPyClientData(clientData); | |
1442 | return self->Insert(item, pos, data); | |
1443 | } else | |
1444 | return self->Insert(item, pos); | |
1445 | } | |
1446 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1447 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1448 | if (data) { | |
1449 | Py_INCREF(data->m_obj); | |
1450 | return data->m_obj; | |
1451 | } else { | |
1452 | Py_INCREF(Py_None); | |
1453 | return Py_None; | |
1454 | } | |
1455 | } | |
1456 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1457 | wxPyClientData* data = new wxPyClientData(clientData); | |
1458 | self->SetClientObject(n, data); | |
1459 | } | |
1460 | ||
1461 | ||
994141e6 | 1462 | |
15afbcd0 RD |
1463 | #include <float.h> |
1464 | ||
994141e6 | 1465 | SWIGSTATIC(float) |
15afbcd0 RD |
1466 | SWIG_FloatCast(double value) |
1467 | { | |
1468 | float f = 0; | |
1469 | if (!PyErr_Occurred()) { | |
1470 | if (value < FLT_MIN) { | |
1471 | PyObject *err = | |
1472 | PyString_FromFormat("value %g is less than float minimum %g", | |
1473 | value, FLT_MIN); | |
1474 | PyErr_SetObject(PyExc_OverflowError, err); | |
1475 | Py_DECREF(err); | |
1476 | } else if (value > FLT_MAX) { | |
1477 | PyObject *err = | |
1478 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1479 | value, FLT_MAX); | |
1480 | PyErr_SetObject(PyExc_OverflowError, err); | |
1481 | Py_DECREF(err); | |
1482 | } else { | |
1483 | f = swig_numeric_cast(float, value); | |
1484 | } | |
1485 | } | |
1486 | return f; | |
1487 | } | |
1488 | ||
1489 | ||
1490 | SWIGSTATICINLINE(float) | |
1491 | SWIG_AsFloat(PyObject *obj) | |
994141e6 | 1492 | { |
15afbcd0 RD |
1493 | return SWIG_FloatCast(SWIG_AsDouble(obj)); |
1494 | } | |
1495 | ||
1496 | ||
1497 | SWIGSTATICINLINE(int) | |
1498 | SWIG_CheckFloat(PyObject* obj) | |
1499 | { | |
1500 | SWIG_AsFloat(obj); | |
1501 | if (PyErr_Occurred()) { | |
1502 | PyErr_Clear(); | |
1503 | return 0; | |
1504 | } else { | |
1505 | return 1; | |
1506 | } | |
994141e6 RD |
1507 | } |
1508 | ||
d14a1e28 RD |
1509 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ |
1510 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1511 | if (data) { | |
1512 | Py_INCREF(data->m_obj); | |
1513 | return data->m_obj; | |
1514 | } else { | |
1515 | Py_INCREF(Py_None); | |
1516 | return Py_None; | |
1517 | } | |
1518 | } | |
1519 | ||
1520 | // Figure out the type of the sizer item | |
1521 | ||
1522 | struct wxPySizerItemInfo { | |
1523 | wxPySizerItemInfo() | |
e811c8ce RD |
1524 | : window(NULL), sizer(NULL), gotSize(False), |
1525 | size(wxDefaultSize), gotPos(False), pos(-1) | |
d14a1e28 RD |
1526 | {} |
1527 | ||
1528 | wxWindow* window; | |
1529 | wxSizer* sizer; | |
1530 | bool gotSize; | |
1531 | wxSize size; | |
1532 | bool gotPos; | |
1533 | int pos; | |
1534 | }; | |
1535 | ||
1536 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1537 | ||
1538 | wxPySizerItemInfo info; | |
1539 | wxSize size; | |
1540 | wxSize* sizePtr = &size; | |
1541 | ||
1542 | // Find out what the type of the item is | |
1543 | // try wxWindow | |
1544 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1545 | PyErr_Clear(); | |
1546 | info.window = NULL; | |
1547 | ||
1548 | // try wxSizer | |
1549 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1550 | PyErr_Clear(); | |
1551 | info.sizer = NULL; | |
1552 | ||
1553 | // try wxSize or (w,h) | |
1554 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1555 | info.size = *sizePtr; | |
e811c8ce | 1556 | info.gotSize = True; |
d14a1e28 RD |
1557 | } |
1558 | ||
1559 | // or a single int | |
1560 | if (checkIdx && PyInt_Check(item)) { | |
1561 | info.pos = PyInt_AsLong(item); | |
e811c8ce | 1562 | info.gotPos = True; |
d14a1e28 RD |
1563 | } |
1564 | } | |
1565 | } | |
1566 | ||
1567 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1568 | // no expected type, figure out what kind of error message to generate | |
1569 | if ( !checkSize && !checkIdx ) | |
1570 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1571 | else if ( checkSize && !checkIdx ) | |
1572 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1573 | else if ( !checkSize && checkIdx) | |
1574 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1575 | else | |
1576 | // can this one happen? | |
1577 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1578 | } | |
1579 | ||
1580 | return info; | |
1581 | } | |
1582 | ||
1583 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1584 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1585 | } | |
1586 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1587 | ||
1588 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1589 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1590 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1591 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1592 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1593 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1594 | |
1595 | // Now call the real Add method if a valid item type was found | |
1596 | if ( info.window ) | |
1597 | self->Add(info.window, proportion, flag, border, data); | |
1598 | else if ( info.sizer ) | |
1599 | self->Add(info.sizer, proportion, flag, border, data); | |
1600 | else if (info.gotSize) | |
1601 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1602 | proportion, flag, border, data); | |
1603 | } | |
1604 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1605 | ||
1606 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1607 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1608 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1609 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1610 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1611 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1612 | |
1613 | // Now call the real Insert method if a valid item type was found | |
1614 | if ( info.window ) | |
1615 | self->Insert(before, info.window, proportion, flag, border, data); | |
1616 | else if ( info.sizer ) | |
1617 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1618 | else if (info.gotSize) | |
1619 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1620 | proportion, flag, border, data); | |
1621 | } | |
1622 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1623 | ||
1624 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1625 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1626 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1627 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1628 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1629 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1630 | |
1631 | // Now call the real Prepend method if a valid item type was found | |
1632 | if ( info.window ) | |
1633 | self->Prepend(info.window, proportion, flag, border, data); | |
1634 | else if ( info.sizer ) | |
1635 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1636 | else if (info.gotSize) | |
1637 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1638 | proportion, flag, border, data); | |
1639 | } | |
1640 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
4f89f6a3 | 1641 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1642 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1643 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1644 | if ( info.window ) |
1645 | return self->Remove(info.window); | |
1646 | else if ( info.sizer ) | |
1647 | return self->Remove(info.sizer); | |
1648 | else if ( info.gotPos ) | |
1649 | return self->Remove(info.pos); | |
1650 | else | |
e811c8ce | 1651 | return False; |
d14a1e28 | 1652 | } |
e811c8ce | 1653 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
4f89f6a3 | 1654 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1655 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); |
4f89f6a3 | 1656 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1657 | if ( info.window ) |
1658 | self->SetItemMinSize(info.window, size); | |
1659 | else if ( info.sizer ) | |
1660 | self->SetItemMinSize(info.sizer, size); | |
1661 | else if ( info.gotPos ) | |
1662 | self->SetItemMinSize(info.pos, size); | |
1663 | } | |
1664 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1665 | wxSizerItemList& list = self->GetChildren(); | |
1666 | return wxPy_ConvertList(&list); | |
1667 | } | |
1668 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
e811c8ce | 1669 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1670 | if ( info.window ) |
1671 | self->Show(info.window, show); | |
1672 | else if ( info.sizer ) | |
1673 | self->Show(info.sizer, show); | |
1674 | } | |
1675 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
e811c8ce | 1676 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1677 | if ( info.window ) |
1678 | self->Hide(info.window); | |
1679 | else if ( info.sizer ) | |
1680 | self->Hide(info.sizer); | |
1681 | } | |
1682 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
e811c8ce | 1683 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
d14a1e28 RD |
1684 | if ( info.window ) |
1685 | return self->IsShown(info.window); | |
1686 | else if ( info.sizer ) | |
1687 | return self->IsShown(info.sizer); | |
1688 | else | |
e811c8ce | 1689 | return False; |
d14a1e28 RD |
1690 | } |
1691 | ||
1692 | // See pyclasses.h | |
1693 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1694 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1695 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1696 | ||
1697 | ||
1698 | ||
1699 | ||
1700 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1701 | { | |
4f89f6a3 RD |
1702 | if (source == Py_None) { |
1703 | **obj = wxGBPosition(-1,-1); | |
1704 | return True; | |
1705 | } | |
d14a1e28 RD |
1706 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); |
1707 | } | |
1708 | ||
1709 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1710 | { | |
4f89f6a3 RD |
1711 | if (source == Py_None) { |
1712 | **obj = wxGBSpan(-1,-1); | |
1713 | return True; | |
1714 | } | |
d14a1e28 RD |
1715 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); |
1716 | } | |
1717 | ||
1718 | ||
e811c8ce RD |
1719 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ |
1720 | self->SetRow(row); | |
1721 | self->SetCol(col); | |
1722 | } | |
1723 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
4f89f6a3 | 1724 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1725 | PyObject* tup = PyTuple_New(2); |
1726 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1727 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
4f89f6a3 | 1728 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1729 | return tup; |
1730 | } | |
e811c8ce RD |
1731 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ |
1732 | self->SetRowspan(rowspan); | |
1733 | self->SetColspan(colspan); | |
1734 | } | |
1735 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
4f89f6a3 | 1736 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
1737 | PyObject* tup = PyTuple_New(2); |
1738 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1739 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
4f89f6a3 | 1740 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1741 | return tup; |
1742 | } | |
1743 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1744 | ||
1745 | wxPyUserData* data = NULL; | |
4f89f6a3 | 1746 | bool blocked = wxPyBeginBlockThreads(); |
e811c8ce | 1747 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); |
d14a1e28 RD |
1748 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1749 | data = new wxPyUserData(userData); | |
4f89f6a3 | 1750 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
1751 | |
1752 | // Now call the real Add method if a valid item type was found | |
1753 | if ( info.window ) | |
1754 | return self->Add(info.window, pos, span, flag, border, data); | |
1755 | else if ( info.sizer ) | |
1756 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1757 | else if (info.gotSize) | |
1758 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1759 | pos, span, flag, border, data); | |
e811c8ce | 1760 | return False; |
d14a1e28 RD |
1761 | } |
1762 | ||
1763 | ||
1764 | #ifdef __cplusplus | |
1765 | extern "C" { | |
1766 | #endif | |
196addbf RD |
1767 | static int _wrap_EmptyString_set(PyObject *_val) { |
1768 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1769 | return 1; | |
1770 | } | |
1771 | ||
1772 | ||
1773 | static PyObject *_wrap_EmptyString_get() { | |
1774 | PyObject *pyobj; | |
1775 | ||
1776 | { | |
1777 | #if wxUSE_UNICODE | |
1778 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1779 | #else | |
1780 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1781 | #endif | |
1782 | } | |
1783 | return pyobj; | |
1784 | } | |
1785 | ||
1786 | ||
d14a1e28 RD |
1787 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { |
1788 | PyObject *resultobj; | |
1789 | wxObject *arg1 = (wxObject *) 0 ; | |
1790 | wxString result; | |
1791 | PyObject * obj0 = 0 ; | |
1792 | char *kwnames[] = { | |
1793 | (char *) "self", NULL | |
1794 | }; | |
1795 | ||
1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1799 | { |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | result = wxObject_GetClassName(arg1); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
1806 | { | |
1807 | #if wxUSE_UNICODE | |
1808 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1809 | #else | |
1810 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1811 | #endif | |
1812 | } | |
1813 | return resultobj; | |
1814 | fail: | |
1815 | return NULL; | |
1816 | } | |
1817 | ||
1818 | ||
1819 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1820 | PyObject *resultobj; | |
1821 | wxObject *arg1 = (wxObject *) 0 ; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, |
1829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1830 | { |
1831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1832 | wxObject_Destroy(arg1); | |
1833 | ||
1834 | wxPyEndAllowThreads(__tstate); | |
1835 | if (PyErr_Occurred()) SWIG_fail; | |
1836 | } | |
1837 | Py_INCREF(Py_None); resultobj = Py_None; | |
1838 | return resultobj; | |
1839 | fail: | |
1840 | return NULL; | |
1841 | } | |
1842 | ||
1843 | ||
1844 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1845 | PyObject *obj; | |
1846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1847 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1848 | Py_INCREF(obj); | |
1849 | return Py_BuildValue((char *)""); | |
1850 | } | |
1851 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1852 | PyObject *resultobj; | |
1853 | wxSize *arg1 = (wxSize *) 0 ; | |
1854 | int arg2 ; | |
1855 | PyObject * obj0 = 0 ; | |
994141e6 | 1856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1857 | char *kwnames[] = { |
1858 | (char *) "self",(char *) "x", NULL | |
1859 | }; | |
1860 | ||
994141e6 | 1861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1864 | arg2 = (int) SWIG_AsInt(obj1); | |
1865 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1866 | if (arg1) (arg1)->x = arg2; |
1867 | ||
1868 | Py_INCREF(Py_None); resultobj = Py_None; | |
1869 | return resultobj; | |
1870 | fail: | |
1871 | return NULL; | |
1872 | } | |
1873 | ||
1874 | ||
1875 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1876 | PyObject *resultobj; | |
1877 | wxSize *arg1 = (wxSize *) 0 ; | |
1878 | int result; | |
1879 | PyObject * obj0 = 0 ; | |
1880 | char *kwnames[] = { | |
1881 | (char *) "self", NULL | |
1882 | }; | |
1883 | ||
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1887 | result = (int) ((arg1)->x); |
1888 | ||
15afbcd0 | 1889 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1890 | return resultobj; |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
1896 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject *resultobj; | |
1898 | wxSize *arg1 = (wxSize *) 0 ; | |
1899 | int arg2 ; | |
1900 | PyObject * obj0 = 0 ; | |
994141e6 | 1901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1902 | char *kwnames[] = { |
1903 | (char *) "self",(char *) "y", NULL | |
1904 | }; | |
1905 | ||
994141e6 | 1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
1907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1909 | arg2 = (int) SWIG_AsInt(obj1); | |
1910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1911 | if (arg1) (arg1)->y = arg2; |
1912 | ||
1913 | Py_INCREF(Py_None); resultobj = Py_None; | |
1914 | return resultobj; | |
1915 | fail: | |
1916 | return NULL; | |
1917 | } | |
1918 | ||
1919 | ||
1920 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1921 | PyObject *resultobj; | |
1922 | wxSize *arg1 = (wxSize *) 0 ; | |
1923 | int result; | |
1924 | PyObject * obj0 = 0 ; | |
1925 | char *kwnames[] = { | |
1926 | (char *) "self", NULL | |
1927 | }; | |
1928 | ||
1929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1932 | result = (int) ((arg1)->y); |
1933 | ||
15afbcd0 | 1934 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1935 | return resultobj; |
1936 | fail: | |
1937 | return NULL; | |
1938 | } | |
1939 | ||
1940 | ||
1941 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1942 | PyObject *resultobj; | |
1943 | int arg1 = (int) 0 ; | |
1944 | int arg2 = (int) 0 ; | |
1945 | wxSize *result; | |
994141e6 RD |
1946 | PyObject * obj0 = 0 ; |
1947 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
1948 | char *kwnames[] = { |
1949 | (char *) "w",(char *) "h", NULL | |
1950 | }; | |
1951 | ||
994141e6 RD |
1952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; |
1953 | if (obj0) { | |
15afbcd0 RD |
1954 | arg1 = (int) SWIG_AsInt(obj0); |
1955 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
1956 | } |
1957 | if (obj1) { | |
15afbcd0 RD |
1958 | arg2 = (int) SWIG_AsInt(obj1); |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1960 | } |
d14a1e28 RD |
1961 | { |
1962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1963 | result = (wxSize *)new wxSize(arg1,arg2); | |
1964 | ||
1965 | wxPyEndAllowThreads(__tstate); | |
1966 | if (PyErr_Occurred()) SWIG_fail; | |
1967 | } | |
15afbcd0 | 1968 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1969 | return resultobj; |
1970 | fail: | |
1971 | return NULL; | |
1972 | } | |
1973 | ||
1974 | ||
1975 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1976 | PyObject *resultobj; | |
1977 | wxSize *arg1 = (wxSize *) 0 ; | |
1978 | PyObject * obj0 = 0 ; | |
1979 | char *kwnames[] = { | |
1980 | (char *) "self", NULL | |
1981 | }; | |
1982 | ||
1983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
1985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1986 | { |
1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1988 | delete arg1; | |
1989 | ||
1990 | wxPyEndAllowThreads(__tstate); | |
1991 | if (PyErr_Occurred()) SWIG_fail; | |
1992 | } | |
1993 | Py_INCREF(Py_None); resultobj = Py_None; | |
1994 | return resultobj; | |
1995 | fail: | |
1996 | return NULL; | |
1997 | } | |
1998 | ||
1999 | ||
2000 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2001 | PyObject *resultobj; | |
2002 | wxSize *arg1 = (wxSize *) 0 ; | |
2003 | wxSize *arg2 = 0 ; | |
2004 | bool result; | |
2005 | wxSize temp2 ; | |
2006 | PyObject * obj0 = 0 ; | |
2007 | PyObject * obj1 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "self",(char *) "sz", NULL | |
2010 | }; | |
2011 | ||
2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2015 | { |
2016 | arg2 = &temp2; | |
2017 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2018 | } | |
2019 | { | |
2020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2021 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); |
d14a1e28 RD |
2022 | |
2023 | wxPyEndAllowThreads(__tstate); | |
2024 | if (PyErr_Occurred()) SWIG_fail; | |
2025 | } | |
4f89f6a3 RD |
2026 | { |
2027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2028 | } | |
d14a1e28 RD |
2029 | return resultobj; |
2030 | fail: | |
2031 | return NULL; | |
2032 | } | |
2033 | ||
2034 | ||
2035 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2036 | PyObject *resultobj; | |
2037 | wxSize *arg1 = (wxSize *) 0 ; | |
2038 | wxSize *arg2 = 0 ; | |
2039 | bool result; | |
2040 | wxSize temp2 ; | |
2041 | PyObject * obj0 = 0 ; | |
2042 | PyObject * obj1 = 0 ; | |
2043 | char *kwnames[] = { | |
2044 | (char *) "self",(char *) "sz", NULL | |
2045 | }; | |
2046 | ||
2047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2050 | { |
2051 | arg2 = &temp2; | |
2052 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2053 | } | |
2054 | { | |
2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2056 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); |
d14a1e28 RD |
2057 | |
2058 | wxPyEndAllowThreads(__tstate); | |
2059 | if (PyErr_Occurred()) SWIG_fail; | |
2060 | } | |
4f89f6a3 RD |
2061 | { |
2062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2063 | } | |
d14a1e28 RD |
2064 | return resultobj; |
2065 | fail: | |
2066 | return NULL; | |
2067 | } | |
2068 | ||
2069 | ||
2070 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2071 | PyObject *resultobj; | |
2072 | wxSize *arg1 = (wxSize *) 0 ; | |
2073 | wxSize *arg2 = 0 ; | |
2074 | wxSize result; | |
2075 | wxSize temp2 ; | |
2076 | PyObject * obj0 = 0 ; | |
2077 | PyObject * obj1 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self",(char *) "sz", NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2085 | { |
2086 | arg2 = &temp2; | |
2087 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2088 | } | |
2089 | { | |
2090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2091 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2092 | ||
2093 | wxPyEndAllowThreads(__tstate); | |
2094 | if (PyErr_Occurred()) SWIG_fail; | |
2095 | } | |
2096 | { | |
2097 | wxSize * resultptr; | |
2098 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2099 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2100 | } |
2101 | return resultobj; | |
2102 | fail: | |
2103 | return NULL; | |
2104 | } | |
2105 | ||
2106 | ||
2107 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2108 | PyObject *resultobj; | |
2109 | wxSize *arg1 = (wxSize *) 0 ; | |
2110 | wxSize *arg2 = 0 ; | |
2111 | wxSize result; | |
2112 | wxSize temp2 ; | |
2113 | PyObject * obj0 = 0 ; | |
2114 | PyObject * obj1 = 0 ; | |
2115 | char *kwnames[] = { | |
2116 | (char *) "self",(char *) "sz", NULL | |
2117 | }; | |
2118 | ||
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2122 | { |
2123 | arg2 = &temp2; | |
2124 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2125 | } | |
2126 | { | |
2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2128 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2129 | ||
2130 | wxPyEndAllowThreads(__tstate); | |
2131 | if (PyErr_Occurred()) SWIG_fail; | |
2132 | } | |
2133 | { | |
2134 | wxSize * resultptr; | |
2135 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 2136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
2137 | } |
2138 | return resultobj; | |
2139 | fail: | |
2140 | return NULL; | |
2141 | } | |
2142 | ||
2143 | ||
2144 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2145 | PyObject *resultobj; | |
2146 | wxSize *arg1 = (wxSize *) 0 ; | |
2147 | wxSize *arg2 = 0 ; | |
2148 | wxSize temp2 ; | |
2149 | PyObject * obj0 = 0 ; | |
2150 | PyObject * obj1 = 0 ; | |
2151 | char *kwnames[] = { | |
2152 | (char *) "self",(char *) "sz", NULL | |
2153 | }; | |
2154 | ||
2155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2158 | { |
2159 | arg2 = &temp2; | |
2160 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2161 | } | |
2162 | { | |
2163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2164 | (arg1)->IncTo((wxSize const &)*arg2); | |
2165 | ||
2166 | wxPyEndAllowThreads(__tstate); | |
2167 | if (PyErr_Occurred()) SWIG_fail; | |
2168 | } | |
2169 | Py_INCREF(Py_None); resultobj = Py_None; | |
2170 | return resultobj; | |
2171 | fail: | |
2172 | return NULL; | |
2173 | } | |
2174 | ||
2175 | ||
2176 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject *resultobj; | |
2178 | wxSize *arg1 = (wxSize *) 0 ; | |
2179 | wxSize *arg2 = 0 ; | |
2180 | wxSize temp2 ; | |
2181 | PyObject * obj0 = 0 ; | |
2182 | PyObject * obj1 = 0 ; | |
2183 | char *kwnames[] = { | |
2184 | (char *) "self",(char *) "sz", NULL | |
2185 | }; | |
2186 | ||
2187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2190 | { |
2191 | arg2 = &temp2; | |
2192 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2193 | } | |
2194 | { | |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2196 | (arg1)->DecTo((wxSize const &)*arg2); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
2201 | Py_INCREF(Py_None); resultobj = Py_None; | |
2202 | return resultobj; | |
2203 | fail: | |
2204 | return NULL; | |
2205 | } | |
2206 | ||
2207 | ||
2208 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2209 | PyObject *resultobj; | |
2210 | wxSize *arg1 = (wxSize *) 0 ; | |
2211 | int arg2 ; | |
2212 | int arg3 ; | |
2213 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2214 | PyObject * obj1 = 0 ; |
2215 | PyObject * obj2 = 0 ; | |
d14a1e28 | 2216 | char *kwnames[] = { |
e811c8ce | 2217 | (char *) "self",(char *) "w",(char *) "h", NULL |
d14a1e28 RD |
2218 | }; |
2219 | ||
994141e6 | 2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2223 | arg2 = (int) SWIG_AsInt(obj1); | |
2224 | if (PyErr_Occurred()) SWIG_fail; | |
2225 | arg3 = (int) SWIG_AsInt(obj2); | |
2226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2227 | { |
2228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2229 | (arg1)->Set(arg2,arg3); | |
2230 | ||
2231 | wxPyEndAllowThreads(__tstate); | |
2232 | if (PyErr_Occurred()) SWIG_fail; | |
2233 | } | |
2234 | Py_INCREF(Py_None); resultobj = Py_None; | |
2235 | return resultobj; | |
2236 | fail: | |
2237 | return NULL; | |
2238 | } | |
2239 | ||
2240 | ||
2241 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2242 | PyObject *resultobj; | |
2243 | wxSize *arg1 = (wxSize *) 0 ; | |
2244 | int arg2 ; | |
2245 | PyObject * obj0 = 0 ; | |
994141e6 | 2246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2247 | char *kwnames[] = { |
2248 | (char *) "self",(char *) "w", NULL | |
2249 | }; | |
2250 | ||
994141e6 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2254 | arg2 = (int) SWIG_AsInt(obj1); | |
2255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2256 | { |
2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2258 | (arg1)->SetWidth(arg2); | |
2259 | ||
2260 | wxPyEndAllowThreads(__tstate); | |
2261 | if (PyErr_Occurred()) SWIG_fail; | |
2262 | } | |
2263 | Py_INCREF(Py_None); resultobj = Py_None; | |
2264 | return resultobj; | |
2265 | fail: | |
2266 | return NULL; | |
2267 | } | |
2268 | ||
2269 | ||
2270 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2271 | PyObject *resultobj; | |
2272 | wxSize *arg1 = (wxSize *) 0 ; | |
2273 | int arg2 ; | |
2274 | PyObject * obj0 = 0 ; | |
994141e6 | 2275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2276 | char *kwnames[] = { |
2277 | (char *) "self",(char *) "h", NULL | |
2278 | }; | |
2279 | ||
994141e6 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2283 | arg2 = (int) SWIG_AsInt(obj1); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2285 | { |
2286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2287 | (arg1)->SetHeight(arg2); | |
2288 | ||
2289 | wxPyEndAllowThreads(__tstate); | |
2290 | if (PyErr_Occurred()) SWIG_fail; | |
2291 | } | |
2292 | Py_INCREF(Py_None); resultobj = Py_None; | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | wxSize *arg1 = (wxSize *) 0 ; | |
2302 | int result; | |
2303 | PyObject * obj0 = 0 ; | |
2304 | char *kwnames[] = { | |
2305 | (char *) "self", NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2311 | { |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
15afbcd0 | 2318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2319 | return resultobj; |
2320 | fail: | |
2321 | return NULL; | |
2322 | } | |
2323 | ||
2324 | ||
2325 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2326 | PyObject *resultobj; | |
2327 | wxSize *arg1 = (wxSize *) 0 ; | |
2328 | int result; | |
2329 | PyObject * obj0 = 0 ; | |
2330 | char *kwnames[] = { | |
2331 | (char *) "self", NULL | |
2332 | }; | |
2333 | ||
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2337 | { |
2338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2339 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2340 | ||
2341 | wxPyEndAllowThreads(__tstate); | |
2342 | if (PyErr_Occurred()) SWIG_fail; | |
2343 | } | |
15afbcd0 | 2344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2345 | return resultobj; |
2346 | fail: | |
2347 | return NULL; | |
2348 | } | |
2349 | ||
2350 | ||
74a57fcd RD |
2351 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { |
2352 | PyObject *resultobj; | |
2353 | wxSize *arg1 = (wxSize *) 0 ; | |
2354 | bool result; | |
2355 | PyObject * obj0 = 0 ; | |
2356 | char *kwnames[] = { | |
2357 | (char *) "self", NULL | |
2358 | }; | |
2359 | ||
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2363 | { | |
2364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2365 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2366 | ||
2367 | wxPyEndAllowThreads(__tstate); | |
2368 | if (PyErr_Occurred()) SWIG_fail; | |
2369 | } | |
2370 | { | |
2371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2372 | } | |
2373 | return resultobj; | |
2374 | fail: | |
2375 | return NULL; | |
2376 | } | |
2377 | ||
2378 | ||
2379 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2380 | PyObject *resultobj; | |
2381 | wxSize *arg1 = (wxSize *) 0 ; | |
2382 | wxSize *arg2 = 0 ; | |
2383 | wxSize temp2 ; | |
2384 | PyObject * obj0 = 0 ; | |
2385 | PyObject * obj1 = 0 ; | |
2386 | char *kwnames[] = { | |
2387 | (char *) "self",(char *) "size", NULL | |
2388 | }; | |
2389 | ||
2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2393 | { | |
2394 | arg2 = &temp2; | |
2395 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2396 | } | |
2397 | { | |
2398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2399 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2400 | ||
2401 | wxPyEndAllowThreads(__tstate); | |
2402 | if (PyErr_Occurred()) SWIG_fail; | |
2403 | } | |
2404 | Py_INCREF(Py_None); resultobj = Py_None; | |
2405 | return resultobj; | |
2406 | fail: | |
2407 | return NULL; | |
2408 | } | |
2409 | ||
2410 | ||
e811c8ce | 2411 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2412 | PyObject *resultobj; |
2413 | wxSize *arg1 = (wxSize *) 0 ; | |
2414 | PyObject *result; | |
2415 | PyObject * obj0 = 0 ; | |
2416 | char *kwnames[] = { | |
2417 | (char *) "self", NULL | |
2418 | }; | |
2419 | ||
e811c8ce | 2420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, |
2422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2423 | { |
2424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2425 | result = (PyObject *)wxSize_Get(arg1); |
d14a1e28 RD |
2426 | |
2427 | wxPyEndAllowThreads(__tstate); | |
2428 | if (PyErr_Occurred()) SWIG_fail; | |
2429 | } | |
2430 | resultobj = result; | |
2431 | return resultobj; | |
2432 | fail: | |
2433 | return NULL; | |
2434 | } | |
2435 | ||
2436 | ||
2437 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2438 | PyObject *obj; | |
2439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2440 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2441 | Py_INCREF(obj); | |
2442 | return Py_BuildValue((char *)""); | |
2443 | } | |
2444 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2445 | PyObject *resultobj; | |
2446 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2447 | double arg2 ; | |
2448 | PyObject * obj0 = 0 ; | |
994141e6 | 2449 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2450 | char *kwnames[] = { |
2451 | (char *) "self",(char *) "x", NULL | |
2452 | }; | |
2453 | ||
994141e6 | 2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2457 | arg2 = (double) SWIG_AsDouble(obj1); | |
2458 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2459 | if (arg1) (arg1)->x = arg2; |
2460 | ||
2461 | Py_INCREF(Py_None); resultobj = Py_None; | |
2462 | return resultobj; | |
2463 | fail: | |
2464 | return NULL; | |
2465 | } | |
2466 | ||
2467 | ||
2468 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2469 | PyObject *resultobj; | |
2470 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2471 | double result; | |
2472 | PyObject * obj0 = 0 ; | |
2473 | char *kwnames[] = { | |
2474 | (char *) "self", NULL | |
2475 | }; | |
2476 | ||
2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2480 | result = (double) ((arg1)->x); |
2481 | ||
15afbcd0 | 2482 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2483 | return resultobj; |
2484 | fail: | |
2485 | return NULL; | |
2486 | } | |
2487 | ||
2488 | ||
2489 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2490 | PyObject *resultobj; | |
2491 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2492 | double arg2 ; | |
2493 | PyObject * obj0 = 0 ; | |
994141e6 | 2494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2495 | char *kwnames[] = { |
2496 | (char *) "self",(char *) "y", NULL | |
2497 | }; | |
2498 | ||
994141e6 | 2499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2502 | arg2 = (double) SWIG_AsDouble(obj1); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2504 | if (arg1) (arg1)->y = arg2; |
2505 | ||
2506 | Py_INCREF(Py_None); resultobj = Py_None; | |
2507 | return resultobj; | |
2508 | fail: | |
2509 | return NULL; | |
2510 | } | |
2511 | ||
2512 | ||
2513 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2514 | PyObject *resultobj; | |
2515 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2516 | double result; | |
2517 | PyObject * obj0 = 0 ; | |
2518 | char *kwnames[] = { | |
2519 | (char *) "self", NULL | |
2520 | }; | |
2521 | ||
2522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2525 | result = (double) ((arg1)->y); |
2526 | ||
15afbcd0 | 2527 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
2528 | return resultobj; |
2529 | fail: | |
2530 | return NULL; | |
2531 | } | |
2532 | ||
2533 | ||
2534 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2535 | PyObject *resultobj; | |
2536 | double arg1 = (double) 0.0 ; | |
2537 | double arg2 = (double) 0.0 ; | |
2538 | wxRealPoint *result; | |
994141e6 RD |
2539 | PyObject * obj0 = 0 ; |
2540 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2541 | char *kwnames[] = { |
2542 | (char *) "x",(char *) "y", NULL | |
2543 | }; | |
2544 | ||
994141e6 RD |
2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; |
2546 | if (obj0) { | |
15afbcd0 RD |
2547 | arg1 = (double) SWIG_AsDouble(obj0); |
2548 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2549 | } |
2550 | if (obj1) { | |
15afbcd0 RD |
2551 | arg2 = (double) SWIG_AsDouble(obj1); |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2553 | } |
d14a1e28 RD |
2554 | { |
2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2556 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2557 | ||
2558 | wxPyEndAllowThreads(__tstate); | |
2559 | if (PyErr_Occurred()) SWIG_fail; | |
2560 | } | |
15afbcd0 | 2561 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); |
d14a1e28 RD |
2562 | return resultobj; |
2563 | fail: | |
2564 | return NULL; | |
2565 | } | |
2566 | ||
2567 | ||
2568 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2569 | PyObject *resultobj; | |
2570 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2571 | PyObject * obj0 = 0 ; | |
2572 | char *kwnames[] = { | |
2573 | (char *) "self", NULL | |
2574 | }; | |
2575 | ||
2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2579 | { |
2580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2581 | delete arg1; | |
2582 | ||
2583 | wxPyEndAllowThreads(__tstate); | |
2584 | if (PyErr_Occurred()) SWIG_fail; | |
2585 | } | |
2586 | Py_INCREF(Py_None); resultobj = Py_None; | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
e811c8ce | 2593 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2594 | PyObject *resultobj; |
2595 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2596 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2597 | bool result; |
d14a1e28 RD |
2598 | wxRealPoint temp2 ; |
2599 | PyObject * obj0 = 0 ; | |
2600 | PyObject * obj1 = 0 ; | |
2601 | char *kwnames[] = { | |
2602 | (char *) "self",(char *) "pt", NULL | |
2603 | }; | |
2604 | ||
e811c8ce | 2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2608 | { |
2609 | arg2 = &temp2; | |
2610 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2611 | } | |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2614 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2615 | |
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) SWIG_fail; | |
2618 | } | |
4f89f6a3 RD |
2619 | { |
2620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2621 | } | |
d14a1e28 RD |
2622 | return resultobj; |
2623 | fail: | |
2624 | return NULL; | |
2625 | } | |
2626 | ||
2627 | ||
e811c8ce | 2628 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2629 | PyObject *resultobj; |
2630 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2631 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2632 | bool result; |
d14a1e28 RD |
2633 | wxRealPoint temp2 ; |
2634 | PyObject * obj0 = 0 ; | |
2635 | PyObject * obj1 = 0 ; | |
2636 | char *kwnames[] = { | |
2637 | (char *) "self",(char *) "pt", NULL | |
2638 | }; | |
2639 | ||
e811c8ce | 2640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2643 | { |
2644 | arg2 = &temp2; | |
2645 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2646 | } | |
2647 | { | |
2648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2649 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2650 | |
2651 | wxPyEndAllowThreads(__tstate); | |
2652 | if (PyErr_Occurred()) SWIG_fail; | |
2653 | } | |
4f89f6a3 RD |
2654 | { |
2655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2656 | } | |
d14a1e28 RD |
2657 | return resultobj; |
2658 | fail: | |
2659 | return NULL; | |
2660 | } | |
2661 | ||
2662 | ||
e811c8ce | 2663 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2664 | PyObject *resultobj; |
2665 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2666 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2667 | wxRealPoint result; |
d14a1e28 RD |
2668 | wxRealPoint temp2 ; |
2669 | PyObject * obj0 = 0 ; | |
2670 | PyObject * obj1 = 0 ; | |
2671 | char *kwnames[] = { | |
2672 | (char *) "self",(char *) "pt", NULL | |
2673 | }; | |
2674 | ||
e811c8ce | 2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2678 | { |
2679 | arg2 = &temp2; | |
2680 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2681 | } | |
2682 | { | |
2683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2684 | result = (arg1)->operator +((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2685 | |
2686 | wxPyEndAllowThreads(__tstate); | |
2687 | if (PyErr_Occurred()) SWIG_fail; | |
2688 | } | |
e811c8ce RD |
2689 | { |
2690 | wxRealPoint * resultptr; | |
2691 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2692 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2693 | } |
d14a1e28 RD |
2694 | return resultobj; |
2695 | fail: | |
2696 | return NULL; | |
2697 | } | |
2698 | ||
2699 | ||
e811c8ce | 2700 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2701 | PyObject *resultobj; |
2702 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2703 | wxRealPoint *arg2 = 0 ; | |
e811c8ce | 2704 | wxRealPoint result; |
d14a1e28 RD |
2705 | wxRealPoint temp2 ; |
2706 | PyObject * obj0 = 0 ; | |
2707 | PyObject * obj1 = 0 ; | |
2708 | char *kwnames[] = { | |
2709 | (char *) "self",(char *) "pt", NULL | |
2710 | }; | |
2711 | ||
e811c8ce | 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2715 | { |
2716 | arg2 = &temp2; | |
2717 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2718 | } | |
2719 | { | |
2720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2721 | result = (arg1)->operator -((wxRealPoint const &)*arg2); |
d14a1e28 RD |
2722 | |
2723 | wxPyEndAllowThreads(__tstate); | |
2724 | if (PyErr_Occurred()) SWIG_fail; | |
2725 | } | |
e811c8ce RD |
2726 | { |
2727 | wxRealPoint * resultptr; | |
2728 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
15afbcd0 | 2729 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); |
e811c8ce | 2730 | } |
d14a1e28 RD |
2731 | return resultobj; |
2732 | fail: | |
2733 | return NULL; | |
2734 | } | |
2735 | ||
2736 | ||
2737 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2738 | PyObject *resultobj; | |
2739 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2740 | double arg2 ; | |
2741 | double arg3 ; | |
2742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
2743 | PyObject * obj1 = 0 ; |
2744 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
2745 | char *kwnames[] = { |
2746 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2747 | }; | |
2748 | ||
994141e6 | 2749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2752 | arg2 = (double) SWIG_AsDouble(obj1); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | arg3 = (double) SWIG_AsDouble(obj2); | |
2755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2756 | { |
2757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2758 | wxRealPoint_Set(arg1,arg2,arg3); | |
2759 | ||
2760 | wxPyEndAllowThreads(__tstate); | |
2761 | if (PyErr_Occurred()) SWIG_fail; | |
2762 | } | |
2763 | Py_INCREF(Py_None); resultobj = Py_None; | |
2764 | return resultobj; | |
2765 | fail: | |
2766 | return NULL; | |
2767 | } | |
2768 | ||
2769 | ||
e811c8ce | 2770 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
2771 | PyObject *resultobj; |
2772 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2773 | PyObject *result; | |
2774 | PyObject * obj0 = 0 ; | |
2775 | char *kwnames[] = { | |
2776 | (char *) "self", NULL | |
2777 | }; | |
2778 | ||
e811c8ce | 2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
2780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, |
2781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2782 | { |
2783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2784 | result = (PyObject *)wxRealPoint_Get(arg1); |
d14a1e28 RD |
2785 | |
2786 | wxPyEndAllowThreads(__tstate); | |
2787 | if (PyErr_Occurred()) SWIG_fail; | |
2788 | } | |
2789 | resultobj = result; | |
2790 | return resultobj; | |
2791 | fail: | |
2792 | return NULL; | |
2793 | } | |
2794 | ||
2795 | ||
2796 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2797 | PyObject *obj; | |
2798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2799 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2800 | Py_INCREF(obj); | |
2801 | return Py_BuildValue((char *)""); | |
2802 | } | |
2803 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2804 | PyObject *resultobj; | |
2805 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2806 | int arg2 ; | |
2807 | PyObject * obj0 = 0 ; | |
994141e6 | 2808 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2809 | char *kwnames[] = { |
2810 | (char *) "self",(char *) "x", NULL | |
2811 | }; | |
2812 | ||
994141e6 | 2813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2816 | arg2 = (int) SWIG_AsInt(obj1); | |
2817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2818 | if (arg1) (arg1)->x = arg2; |
2819 | ||
2820 | Py_INCREF(Py_None); resultobj = Py_None; | |
2821 | return resultobj; | |
2822 | fail: | |
2823 | return NULL; | |
2824 | } | |
2825 | ||
2826 | ||
2827 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2828 | PyObject *resultobj; | |
2829 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2830 | int result; | |
2831 | PyObject * obj0 = 0 ; | |
2832 | char *kwnames[] = { | |
2833 | (char *) "self", NULL | |
2834 | }; | |
2835 | ||
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2839 | result = (int) ((arg1)->x); |
2840 | ||
15afbcd0 | 2841 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2842 | return resultobj; |
2843 | fail: | |
2844 | return NULL; | |
2845 | } | |
2846 | ||
2847 | ||
2848 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2849 | PyObject *resultobj; | |
2850 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2851 | int arg2 ; | |
2852 | PyObject * obj0 = 0 ; | |
994141e6 | 2853 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2854 | char *kwnames[] = { |
2855 | (char *) "self",(char *) "y", NULL | |
2856 | }; | |
2857 | ||
994141e6 | 2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2861 | arg2 = (int) SWIG_AsInt(obj1); | |
2862 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2863 | if (arg1) (arg1)->y = arg2; |
2864 | ||
2865 | Py_INCREF(Py_None); resultobj = Py_None; | |
2866 | return resultobj; | |
2867 | fail: | |
2868 | return NULL; | |
2869 | } | |
2870 | ||
2871 | ||
2872 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2873 | PyObject *resultobj; | |
2874 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2875 | int result; | |
2876 | PyObject * obj0 = 0 ; | |
2877 | char *kwnames[] = { | |
2878 | (char *) "self", NULL | |
2879 | }; | |
2880 | ||
2881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2884 | result = (int) ((arg1)->y); |
2885 | ||
15afbcd0 | 2886 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2887 | return resultobj; |
2888 | fail: | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
2893 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2894 | PyObject *resultobj; | |
2895 | int arg1 = (int) 0 ; | |
2896 | int arg2 = (int) 0 ; | |
2897 | wxPoint *result; | |
994141e6 RD |
2898 | PyObject * obj0 = 0 ; |
2899 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
2900 | char *kwnames[] = { |
2901 | (char *) "x",(char *) "y", NULL | |
2902 | }; | |
2903 | ||
994141e6 RD |
2904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; |
2905 | if (obj0) { | |
15afbcd0 RD |
2906 | arg1 = (int) SWIG_AsInt(obj0); |
2907 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
2908 | } |
2909 | if (obj1) { | |
15afbcd0 RD |
2910 | arg2 = (int) SWIG_AsInt(obj1); |
2911 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2912 | } |
d14a1e28 RD |
2913 | { |
2914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2915 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2916 | ||
2917 | wxPyEndAllowThreads(__tstate); | |
2918 | if (PyErr_Occurred()) SWIG_fail; | |
2919 | } | |
15afbcd0 | 2920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
2921 | return resultobj; |
2922 | fail: | |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
2927 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject *resultobj; | |
2929 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2930 | PyObject * obj0 = 0 ; | |
2931 | char *kwnames[] = { | |
2932 | (char *) "self", NULL | |
2933 | }; | |
2934 | ||
2935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2938 | { |
2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2940 | delete arg1; | |
2941 | ||
2942 | wxPyEndAllowThreads(__tstate); | |
2943 | if (PyErr_Occurred()) SWIG_fail; | |
2944 | } | |
2945 | Py_INCREF(Py_None); resultobj = Py_None; | |
2946 | return resultobj; | |
2947 | fail: | |
2948 | return NULL; | |
2949 | } | |
2950 | ||
2951 | ||
2952 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2953 | PyObject *resultobj; | |
2954 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2955 | wxPoint *arg2 = 0 ; | |
2956 | bool result; | |
2957 | wxPoint temp2 ; | |
2958 | PyObject * obj0 = 0 ; | |
2959 | PyObject * obj1 = 0 ; | |
2960 | char *kwnames[] = { | |
e811c8ce | 2961 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2962 | }; |
2963 | ||
2964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
2966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2967 | { |
2968 | arg2 = &temp2; | |
2969 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2970 | } | |
2971 | { | |
2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 2973 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); |
d14a1e28 RD |
2974 | |
2975 | wxPyEndAllowThreads(__tstate); | |
2976 | if (PyErr_Occurred()) SWIG_fail; | |
2977 | } | |
4f89f6a3 RD |
2978 | { |
2979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2980 | } | |
d14a1e28 RD |
2981 | return resultobj; |
2982 | fail: | |
2983 | return NULL; | |
2984 | } | |
2985 | ||
2986 | ||
2987 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2988 | PyObject *resultobj; | |
2989 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2990 | wxPoint *arg2 = 0 ; | |
2991 | bool result; | |
2992 | wxPoint temp2 ; | |
2993 | PyObject * obj0 = 0 ; | |
2994 | PyObject * obj1 = 0 ; | |
2995 | char *kwnames[] = { | |
e811c8ce | 2996 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
2997 | }; |
2998 | ||
2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3002 | { |
3003 | arg2 = &temp2; | |
3004 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3005 | } | |
3006 | { | |
3007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3008 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); |
d14a1e28 RD |
3009 | |
3010 | wxPyEndAllowThreads(__tstate); | |
3011 | if (PyErr_Occurred()) SWIG_fail; | |
3012 | } | |
4f89f6a3 RD |
3013 | { |
3014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3015 | } | |
d14a1e28 RD |
3016 | return resultobj; |
3017 | fail: | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3023 | PyObject *resultobj; | |
3024 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3025 | wxPoint *arg2 = 0 ; | |
3026 | wxPoint result; | |
3027 | wxPoint temp2 ; | |
3028 | PyObject * obj0 = 0 ; | |
3029 | PyObject * obj1 = 0 ; | |
3030 | char *kwnames[] = { | |
e811c8ce | 3031 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3032 | }; |
3033 | ||
3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3037 | { |
3038 | arg2 = &temp2; | |
3039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3040 | } | |
3041 | { | |
3042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3043 | result = (arg1)->operator +((wxPoint const &)*arg2); |
d14a1e28 RD |
3044 | |
3045 | wxPyEndAllowThreads(__tstate); | |
3046 | if (PyErr_Occurred()) SWIG_fail; | |
3047 | } | |
3048 | { | |
3049 | wxPoint * resultptr; | |
3050 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3052 | } |
3053 | return resultobj; | |
3054 | fail: | |
3055 | return NULL; | |
3056 | } | |
3057 | ||
3058 | ||
3059 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3060 | PyObject *resultobj; | |
3061 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3062 | wxPoint *arg2 = 0 ; | |
3063 | wxPoint result; | |
3064 | wxPoint temp2 ; | |
3065 | PyObject * obj0 = 0 ; | |
3066 | PyObject * obj1 = 0 ; | |
3067 | char *kwnames[] = { | |
e811c8ce | 3068 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3069 | }; |
3070 | ||
3071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3074 | { |
3075 | arg2 = &temp2; | |
3076 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3077 | } | |
3078 | { | |
3079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3080 | result = (arg1)->operator -((wxPoint const &)*arg2); |
d14a1e28 RD |
3081 | |
3082 | wxPyEndAllowThreads(__tstate); | |
3083 | if (PyErr_Occurred()) SWIG_fail; | |
3084 | } | |
3085 | { | |
3086 | wxPoint * resultptr; | |
3087 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3088 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3089 | } |
3090 | return resultobj; | |
3091 | fail: | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
3096 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3097 | PyObject *resultobj; | |
3098 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3099 | wxPoint *arg2 = 0 ; | |
3100 | wxPoint *result; | |
3101 | wxPoint temp2 ; | |
3102 | PyObject * obj0 = 0 ; | |
3103 | PyObject * obj1 = 0 ; | |
3104 | char *kwnames[] = { | |
e811c8ce | 3105 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3106 | }; |
3107 | ||
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3111 | { |
3112 | arg2 = &temp2; | |
3113 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3114 | } | |
3115 | { | |
3116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3117 | { | |
3118 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3119 | result = (wxPoint *) &_result_ref; | |
3120 | } | |
3121 | ||
3122 | wxPyEndAllowThreads(__tstate); | |
3123 | if (PyErr_Occurred()) SWIG_fail; | |
3124 | } | |
15afbcd0 | 3125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3126 | return resultobj; |
3127 | fail: | |
3128 | return NULL; | |
3129 | } | |
3130 | ||
3131 | ||
3132 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3133 | PyObject *resultobj; | |
3134 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3135 | wxPoint *arg2 = 0 ; | |
3136 | wxPoint *result; | |
3137 | wxPoint temp2 ; | |
3138 | PyObject * obj0 = 0 ; | |
3139 | PyObject * obj1 = 0 ; | |
3140 | char *kwnames[] = { | |
e811c8ce | 3141 | (char *) "self",(char *) "pt", NULL |
d14a1e28 RD |
3142 | }; |
3143 | ||
3144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3147 | { |
3148 | arg2 = &temp2; | |
3149 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3150 | } | |
3151 | { | |
3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3153 | { | |
3154 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3155 | result = (wxPoint *) &_result_ref; | |
3156 | } | |
3157 | ||
3158 | wxPyEndAllowThreads(__tstate); | |
3159 | if (PyErr_Occurred()) SWIG_fail; | |
3160 | } | |
15afbcd0 | 3161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
3162 | return resultobj; |
3163 | fail: | |
3164 | return NULL; | |
3165 | } | |
3166 | ||
3167 | ||
3168 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3169 | PyObject *resultobj; | |
3170 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3171 | long arg2 ; | |
3172 | long arg3 ; | |
3173 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3174 | PyObject * obj1 = 0 ; |
3175 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3176 | char *kwnames[] = { |
3177 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3178 | }; | |
3179 | ||
994141e6 | 3180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3183 | arg2 = (long) SWIG_AsLong(obj1); | |
3184 | if (PyErr_Occurred()) SWIG_fail; | |
3185 | arg3 = (long) SWIG_AsLong(obj2); | |
3186 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3187 | { |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | wxPoint_Set(arg1,arg2,arg3); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | Py_INCREF(Py_None); resultobj = Py_None; | |
3195 | return resultobj; | |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
e811c8ce | 3201 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
3202 | PyObject *resultobj; |
3203 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3204 | PyObject *result; | |
3205 | PyObject * obj0 = 0 ; | |
3206 | char *kwnames[] = { | |
3207 | (char *) "self", NULL | |
3208 | }; | |
3209 | ||
e811c8ce | 3210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
3211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, |
3212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3213 | { |
3214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 3215 | result = (PyObject *)wxPoint_Get(arg1); |
d14a1e28 RD |
3216 | |
3217 | wxPyEndAllowThreads(__tstate); | |
3218 | if (PyErr_Occurred()) SWIG_fail; | |
3219 | } | |
3220 | resultobj = result; | |
3221 | return resultobj; | |
3222 | fail: | |
3223 | return NULL; | |
3224 | } | |
3225 | ||
3226 | ||
3227 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3228 | PyObject *obj; | |
3229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3230 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3231 | Py_INCREF(obj); | |
3232 | return Py_BuildValue((char *)""); | |
3233 | } | |
3234 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3235 | PyObject *resultobj; | |
3236 | int arg1 = (int) 0 ; | |
3237 | int arg2 = (int) 0 ; | |
3238 | int arg3 = (int) 0 ; | |
3239 | int arg4 = (int) 0 ; | |
3240 | wxRect *result; | |
994141e6 RD |
3241 | PyObject * obj0 = 0 ; |
3242 | PyObject * obj1 = 0 ; | |
3243 | PyObject * obj2 = 0 ; | |
3244 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3245 | char *kwnames[] = { |
3246 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3247 | }; | |
3248 | ||
994141e6 RD |
3249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
3250 | if (obj0) { | |
15afbcd0 RD |
3251 | arg1 = (int) SWIG_AsInt(obj0); |
3252 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3253 | } |
3254 | if (obj1) { | |
15afbcd0 RD |
3255 | arg2 = (int) SWIG_AsInt(obj1); |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3257 | } |
3258 | if (obj2) { | |
15afbcd0 RD |
3259 | arg3 = (int) SWIG_AsInt(obj2); |
3260 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
3261 | } |
3262 | if (obj3) { | |
15afbcd0 RD |
3263 | arg4 = (int) SWIG_AsInt(obj3); |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3265 | } |
d14a1e28 RD |
3266 | { |
3267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3268 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3269 | ||
3270 | wxPyEndAllowThreads(__tstate); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | } | |
15afbcd0 | 3273 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3274 | return resultobj; |
3275 | fail: | |
3276 | return NULL; | |
3277 | } | |
3278 | ||
3279 | ||
3280 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3281 | PyObject *resultobj; | |
3282 | wxPoint *arg1 = 0 ; | |
3283 | wxPoint *arg2 = 0 ; | |
3284 | wxRect *result; | |
3285 | wxPoint temp1 ; | |
3286 | wxPoint temp2 ; | |
3287 | PyObject * obj0 = 0 ; | |
3288 | PyObject * obj1 = 0 ; | |
3289 | char *kwnames[] = { | |
3290 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3291 | }; | |
3292 | ||
3293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3294 | { | |
3295 | arg1 = &temp1; | |
3296 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3297 | } | |
3298 | { | |
3299 | arg2 = &temp2; | |
3300 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3301 | } | |
3302 | { | |
3303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3304 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3305 | ||
3306 | wxPyEndAllowThreads(__tstate); | |
3307 | if (PyErr_Occurred()) SWIG_fail; | |
3308 | } | |
15afbcd0 | 3309 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3310 | return resultobj; |
3311 | fail: | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxPoint *arg1 = 0 ; | |
3319 | wxSize *arg2 = 0 ; | |
3320 | wxRect *result; | |
3321 | wxPoint temp1 ; | |
3322 | wxSize temp2 ; | |
3323 | PyObject * obj0 = 0 ; | |
3324 | PyObject * obj1 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "pos",(char *) "size", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3330 | { | |
3331 | arg1 = &temp1; | |
3332 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3333 | } | |
3334 | { | |
3335 | arg2 = &temp2; | |
3336 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3337 | } | |
3338 | { | |
3339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3340 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3341 | ||
3342 | wxPyEndAllowThreads(__tstate); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
3344 | } | |
15afbcd0 | 3345 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
3346 | return resultobj; |
3347 | fail: | |
3348 | return NULL; | |
3349 | } | |
3350 | ||
3351 | ||
3352 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3353 | PyObject *resultobj; | |
3354 | wxRect *arg1 = (wxRect *) 0 ; | |
3355 | PyObject * obj0 = 0 ; | |
3356 | char *kwnames[] = { | |
3357 | (char *) "self", NULL | |
3358 | }; | |
3359 | ||
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3363 | { |
3364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3365 | delete arg1; | |
3366 | ||
3367 | wxPyEndAllowThreads(__tstate); | |
3368 | if (PyErr_Occurred()) SWIG_fail; | |
3369 | } | |
3370 | Py_INCREF(Py_None); resultobj = Py_None; | |
3371 | return resultobj; | |
3372 | fail: | |
3373 | return NULL; | |
3374 | } | |
3375 | ||
3376 | ||
3377 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3378 | PyObject *resultobj; | |
3379 | wxRect *arg1 = (wxRect *) 0 ; | |
3380 | int result; | |
3381 | PyObject * obj0 = 0 ; | |
3382 | char *kwnames[] = { | |
3383 | (char *) "self", NULL | |
3384 | }; | |
3385 | ||
3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3389 | { |
3390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3391 | result = (int)((wxRect const *)arg1)->GetX(); | |
3392 | ||
3393 | wxPyEndAllowThreads(__tstate); | |
3394 | if (PyErr_Occurred()) SWIG_fail; | |
3395 | } | |
15afbcd0 | 3396 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3397 | return resultobj; |
3398 | fail: | |
3399 | return NULL; | |
3400 | } | |
3401 | ||
3402 | ||
3403 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3404 | PyObject *resultobj; | |
3405 | wxRect *arg1 = (wxRect *) 0 ; | |
3406 | int arg2 ; | |
3407 | PyObject * obj0 = 0 ; | |
994141e6 | 3408 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3409 | char *kwnames[] = { |
3410 | (char *) "self",(char *) "x", NULL | |
3411 | }; | |
3412 | ||
994141e6 | 3413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3416 | arg2 = (int) SWIG_AsInt(obj1); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3418 | { |
3419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3420 | (arg1)->SetX(arg2); | |
3421 | ||
3422 | wxPyEndAllowThreads(__tstate); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
3424 | } | |
3425 | Py_INCREF(Py_None); resultobj = Py_None; | |
3426 | return resultobj; | |
3427 | fail: | |
3428 | return NULL; | |
3429 | } | |
3430 | ||
3431 | ||
3432 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3433 | PyObject *resultobj; | |
3434 | wxRect *arg1 = (wxRect *) 0 ; | |
3435 | int result; | |
3436 | PyObject * obj0 = 0 ; | |
3437 | char *kwnames[] = { | |
3438 | (char *) "self", NULL | |
3439 | }; | |
3440 | ||
3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3444 | { |
3445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3446 | result = (int)(arg1)->GetY(); | |
3447 | ||
3448 | wxPyEndAllowThreads(__tstate); | |
3449 | if (PyErr_Occurred()) SWIG_fail; | |
3450 | } | |
15afbcd0 | 3451 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3452 | return resultobj; |
3453 | fail: | |
3454 | return NULL; | |
3455 | } | |
3456 | ||
3457 | ||
3458 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject *resultobj; | |
3460 | wxRect *arg1 = (wxRect *) 0 ; | |
3461 | int arg2 ; | |
3462 | PyObject * obj0 = 0 ; | |
994141e6 | 3463 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3464 | char *kwnames[] = { |
3465 | (char *) "self",(char *) "y", NULL | |
3466 | }; | |
3467 | ||
994141e6 | 3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3471 | arg2 = (int) SWIG_AsInt(obj1); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3473 | { |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | (arg1)->SetY(arg2); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | Py_INCREF(Py_None); resultobj = Py_None; | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxRect *arg1 = (wxRect *) 0 ; | |
3490 | int result; | |
3491 | PyObject * obj0 = 0 ; | |
3492 | char *kwnames[] = { | |
3493 | (char *) "self", NULL | |
3494 | }; | |
3495 | ||
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3499 | { |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
15afbcd0 | 3506 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3507 | return resultobj; |
3508 | fail: | |
3509 | return NULL; | |
3510 | } | |
3511 | ||
3512 | ||
3513 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3514 | PyObject *resultobj; | |
3515 | wxRect *arg1 = (wxRect *) 0 ; | |
3516 | int arg2 ; | |
3517 | PyObject * obj0 = 0 ; | |
994141e6 | 3518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3519 | char *kwnames[] = { |
3520 | (char *) "self",(char *) "w", NULL | |
3521 | }; | |
3522 | ||
994141e6 | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3526 | arg2 = (int) SWIG_AsInt(obj1); | |
3527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3528 | { |
3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3530 | (arg1)->SetWidth(arg2); | |
3531 | ||
3532 | wxPyEndAllowThreads(__tstate); | |
3533 | if (PyErr_Occurred()) SWIG_fail; | |
3534 | } | |
3535 | Py_INCREF(Py_None); resultobj = Py_None; | |
3536 | return resultobj; | |
3537 | fail: | |
3538 | return NULL; | |
3539 | } | |
3540 | ||
3541 | ||
3542 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3543 | PyObject *resultobj; | |
3544 | wxRect *arg1 = (wxRect *) 0 ; | |
3545 | int result; | |
3546 | PyObject * obj0 = 0 ; | |
3547 | char *kwnames[] = { | |
3548 | (char *) "self", NULL | |
3549 | }; | |
3550 | ||
3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3554 | { |
3555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3556 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3557 | ||
3558 | wxPyEndAllowThreads(__tstate); | |
3559 | if (PyErr_Occurred()) SWIG_fail; | |
3560 | } | |
15afbcd0 | 3561 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3562 | return resultobj; |
3563 | fail: | |
3564 | return NULL; | |
3565 | } | |
3566 | ||
3567 | ||
3568 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject *resultobj; | |
3570 | wxRect *arg1 = (wxRect *) 0 ; | |
3571 | int arg2 ; | |
3572 | PyObject * obj0 = 0 ; | |
994141e6 | 3573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3574 | char *kwnames[] = { |
3575 | (char *) "self",(char *) "h", NULL | |
3576 | }; | |
3577 | ||
994141e6 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3581 | arg2 = (int) SWIG_AsInt(obj1); | |
3582 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3583 | { |
3584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3585 | (arg1)->SetHeight(arg2); | |
3586 | ||
3587 | wxPyEndAllowThreads(__tstate); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
3589 | } | |
3590 | Py_INCREF(Py_None); resultobj = Py_None; | |
3591 | return resultobj; | |
3592 | fail: | |
3593 | return NULL; | |
3594 | } | |
3595 | ||
3596 | ||
3597 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3598 | PyObject *resultobj; | |
3599 | wxRect *arg1 = (wxRect *) 0 ; | |
3600 | wxPoint result; | |
3601 | PyObject * obj0 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "self", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3609 | { |
3610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3611 | result = ((wxRect const *)arg1)->GetPosition(); | |
3612 | ||
3613 | wxPyEndAllowThreads(__tstate); | |
3614 | if (PyErr_Occurred()) SWIG_fail; | |
3615 | } | |
3616 | { | |
3617 | wxPoint * resultptr; | |
3618 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3619 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
3620 | } |
3621 | return resultobj; | |
3622 | fail: | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
3627 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3628 | PyObject *resultobj; | |
3629 | wxRect *arg1 = (wxRect *) 0 ; | |
3630 | wxPoint *arg2 = 0 ; | |
3631 | wxPoint temp2 ; | |
3632 | PyObject * obj0 = 0 ; | |
3633 | PyObject * obj1 = 0 ; | |
3634 | char *kwnames[] = { | |
3635 | (char *) "self",(char *) "p", NULL | |
3636 | }; | |
3637 | ||
3638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3641 | { |
3642 | arg2 = &temp2; | |
3643 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3644 | } | |
3645 | { | |
3646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3647 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3648 | ||
3649 | wxPyEndAllowThreads(__tstate); | |
3650 | if (PyErr_Occurred()) SWIG_fail; | |
3651 | } | |
3652 | Py_INCREF(Py_None); resultobj = Py_None; | |
3653 | return resultobj; | |
3654 | fail: | |
3655 | return NULL; | |
3656 | } | |
3657 | ||
3658 | ||
3659 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3660 | PyObject *resultobj; | |
3661 | wxRect *arg1 = (wxRect *) 0 ; | |
3662 | wxSize result; | |
3663 | PyObject * obj0 = 0 ; | |
3664 | char *kwnames[] = { | |
3665 | (char *) "self", NULL | |
3666 | }; | |
3667 | ||
3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3671 | { |
3672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3673 | result = ((wxRect const *)arg1)->GetSize(); | |
3674 | ||
3675 | wxPyEndAllowThreads(__tstate); | |
3676 | if (PyErr_Occurred()) SWIG_fail; | |
3677 | } | |
3678 | { | |
3679 | wxSize * resultptr; | |
3680 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 3681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
3682 | } |
3683 | return resultobj; | |
3684 | fail: | |
3685 | return NULL; | |
3686 | } | |
3687 | ||
3688 | ||
3689 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3690 | PyObject *resultobj; | |
3691 | wxRect *arg1 = (wxRect *) 0 ; | |
3692 | wxSize *arg2 = 0 ; | |
3693 | wxSize temp2 ; | |
3694 | PyObject * obj0 = 0 ; | |
3695 | PyObject * obj1 = 0 ; | |
3696 | char *kwnames[] = { | |
3697 | (char *) "self",(char *) "s", NULL | |
3698 | }; | |
3699 | ||
3700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3703 | { |
3704 | arg2 = &temp2; | |
3705 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3706 | } | |
3707 | { | |
3708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3709 | (arg1)->SetSize((wxSize const &)*arg2); | |
3710 | ||
3711 | wxPyEndAllowThreads(__tstate); | |
3712 | if (PyErr_Occurred()) SWIG_fail; | |
3713 | } | |
3714 | Py_INCREF(Py_None); resultobj = Py_None; | |
3715 | return resultobj; | |
3716 | fail: | |
3717 | return NULL; | |
3718 | } | |
3719 | ||
3720 | ||
c9c7117a RD |
3721 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3722 | PyObject *resultobj; | |
3723 | wxRect *arg1 = (wxRect *) 0 ; | |
3724 | wxPoint result; | |
3725 | PyObject * obj0 = 0 ; | |
3726 | char *kwnames[] = { | |
3727 | (char *) "self", NULL | |
3728 | }; | |
3729 | ||
3730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3733 | { |
3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3735 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3736 | ||
3737 | wxPyEndAllowThreads(__tstate); | |
3738 | if (PyErr_Occurred()) SWIG_fail; | |
3739 | } | |
3740 | { | |
3741 | wxPoint * resultptr; | |
3742 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3744 | } |
3745 | return resultobj; | |
3746 | fail: | |
3747 | return NULL; | |
3748 | } | |
3749 | ||
3750 | ||
3751 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3752 | PyObject *resultobj; | |
3753 | wxRect *arg1 = (wxRect *) 0 ; | |
3754 | wxPoint *arg2 = 0 ; | |
3755 | wxPoint temp2 ; | |
3756 | PyObject * obj0 = 0 ; | |
3757 | PyObject * obj1 = 0 ; | |
3758 | char *kwnames[] = { | |
3759 | (char *) "self",(char *) "p", NULL | |
3760 | }; | |
3761 | ||
3762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3765 | { |
3766 | arg2 = &temp2; | |
3767 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3768 | } | |
3769 | { | |
3770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3771 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3772 | ||
3773 | wxPyEndAllowThreads(__tstate); | |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | } | |
3776 | Py_INCREF(Py_None); resultobj = Py_None; | |
3777 | return resultobj; | |
3778 | fail: | |
3779 | return NULL; | |
3780 | } | |
3781 | ||
3782 | ||
3783 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject *resultobj; | |
3785 | wxRect *arg1 = (wxRect *) 0 ; | |
3786 | wxPoint result; | |
3787 | PyObject * obj0 = 0 ; | |
3788 | char *kwnames[] = { | |
3789 | (char *) "self", NULL | |
3790 | }; | |
3791 | ||
3792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3795 | { |
3796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3797 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3798 | ||
3799 | wxPyEndAllowThreads(__tstate); | |
3800 | if (PyErr_Occurred()) SWIG_fail; | |
3801 | } | |
3802 | { | |
3803 | wxPoint * resultptr; | |
3804 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 3805 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
c9c7117a RD |
3806 | } |
3807 | return resultobj; | |
3808 | fail: | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3814 | PyObject *resultobj; | |
3815 | wxRect *arg1 = (wxRect *) 0 ; | |
3816 | wxPoint *arg2 = 0 ; | |
3817 | wxPoint temp2 ; | |
3818 | PyObject * obj0 = 0 ; | |
3819 | PyObject * obj1 = 0 ; | |
3820 | char *kwnames[] = { | |
3821 | (char *) "self",(char *) "p", NULL | |
3822 | }; | |
3823 | ||
3824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
3827 | { |
3828 | arg2 = &temp2; | |
3829 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3830 | } | |
3831 | { | |
3832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3833 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3834 | ||
3835 | wxPyEndAllowThreads(__tstate); | |
3836 | if (PyErr_Occurred()) SWIG_fail; | |
3837 | } | |
3838 | Py_INCREF(Py_None); resultobj = Py_None; | |
3839 | return resultobj; | |
3840 | fail: | |
3841 | return NULL; | |
3842 | } | |
3843 | ||
3844 | ||
d14a1e28 RD |
3845 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { |
3846 | PyObject *resultobj; | |
3847 | wxRect *arg1 = (wxRect *) 0 ; | |
3848 | int result; | |
3849 | PyObject * obj0 = 0 ; | |
3850 | char *kwnames[] = { | |
3851 | (char *) "self", NULL | |
3852 | }; | |
3853 | ||
3854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3857 | { |
3858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3859 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3860 | ||
3861 | wxPyEndAllowThreads(__tstate); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
15afbcd0 | 3864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3865 | return resultobj; |
3866 | fail: | |
3867 | return NULL; | |
3868 | } | |
3869 | ||
3870 | ||
3871 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject *resultobj; | |
3873 | wxRect *arg1 = (wxRect *) 0 ; | |
3874 | int result; | |
3875 | PyObject * obj0 = 0 ; | |
3876 | char *kwnames[] = { | |
3877 | (char *) "self", NULL | |
3878 | }; | |
3879 | ||
3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3883 | { |
3884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3885 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3886 | ||
3887 | wxPyEndAllowThreads(__tstate); | |
3888 | if (PyErr_Occurred()) SWIG_fail; | |
3889 | } | |
15afbcd0 | 3890 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3891 | return resultobj; |
3892 | fail: | |
3893 | return NULL; | |
3894 | } | |
3895 | ||
3896 | ||
3897 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject *resultobj; | |
3899 | wxRect *arg1 = (wxRect *) 0 ; | |
3900 | int result; | |
3901 | PyObject * obj0 = 0 ; | |
3902 | char *kwnames[] = { | |
3903 | (char *) "self", NULL | |
3904 | }; | |
3905 | ||
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3909 | { |
3910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3911 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3912 | ||
3913 | wxPyEndAllowThreads(__tstate); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
3915 | } | |
15afbcd0 | 3916 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3917 | return resultobj; |
3918 | fail: | |
3919 | return NULL; | |
3920 | } | |
3921 | ||
3922 | ||
3923 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3924 | PyObject *resultobj; | |
3925 | wxRect *arg1 = (wxRect *) 0 ; | |
3926 | int result; | |
3927 | PyObject * obj0 = 0 ; | |
3928 | char *kwnames[] = { | |
3929 | (char *) "self", NULL | |
3930 | }; | |
3931 | ||
3932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3935 | { |
3936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3937 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3938 | ||
3939 | wxPyEndAllowThreads(__tstate); | |
3940 | if (PyErr_Occurred()) SWIG_fail; | |
3941 | } | |
15afbcd0 | 3942 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3943 | return resultobj; |
3944 | fail: | |
3945 | return NULL; | |
3946 | } | |
3947 | ||
3948 | ||
3949 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3950 | PyObject *resultobj; | |
3951 | wxRect *arg1 = (wxRect *) 0 ; | |
3952 | int arg2 ; | |
3953 | PyObject * obj0 = 0 ; | |
994141e6 | 3954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3955 | char *kwnames[] = { |
3956 | (char *) "self",(char *) "left", NULL | |
3957 | }; | |
3958 | ||
994141e6 | 3959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3962 | arg2 = (int) SWIG_AsInt(obj1); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3964 | { |
3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3966 | (arg1)->SetLeft(arg2); | |
3967 | ||
3968 | wxPyEndAllowThreads(__tstate); | |
3969 | if (PyErr_Occurred()) SWIG_fail; | |
3970 | } | |
3971 | Py_INCREF(Py_None); resultobj = Py_None; | |
3972 | return resultobj; | |
3973 | fail: | |
3974 | return NULL; | |
3975 | } | |
3976 | ||
3977 | ||
3978 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3979 | PyObject *resultobj; | |
3980 | wxRect *arg1 = (wxRect *) 0 ; | |
3981 | int arg2 ; | |
3982 | PyObject * obj0 = 0 ; | |
994141e6 | 3983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3984 | char *kwnames[] = { |
3985 | (char *) "self",(char *) "right", NULL | |
3986 | }; | |
3987 | ||
994141e6 | 3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
3990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3991 | arg2 = (int) SWIG_AsInt(obj1); | |
3992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3993 | { |
3994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3995 | (arg1)->SetRight(arg2); | |
3996 | ||
3997 | wxPyEndAllowThreads(__tstate); | |
3998 | if (PyErr_Occurred()) SWIG_fail; | |
3999 | } | |
4000 | Py_INCREF(Py_None); resultobj = Py_None; | |
4001 | return resultobj; | |
4002 | fail: | |
4003 | return NULL; | |
4004 | } | |
4005 | ||
4006 | ||
4007 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4008 | PyObject *resultobj; | |
4009 | wxRect *arg1 = (wxRect *) 0 ; | |
4010 | int arg2 ; | |
4011 | PyObject * obj0 = 0 ; | |
994141e6 | 4012 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4013 | char *kwnames[] = { |
4014 | (char *) "self",(char *) "top", NULL | |
4015 | }; | |
4016 | ||
994141e6 | 4017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4020 | arg2 = (int) SWIG_AsInt(obj1); | |
4021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4022 | { |
4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4024 | (arg1)->SetTop(arg2); | |
4025 | ||
4026 | wxPyEndAllowThreads(__tstate); | |
4027 | if (PyErr_Occurred()) SWIG_fail; | |
4028 | } | |
4029 | Py_INCREF(Py_None); resultobj = Py_None; | |
4030 | return resultobj; | |
4031 | fail: | |
4032 | return NULL; | |
4033 | } | |
4034 | ||
4035 | ||
4036 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4037 | PyObject *resultobj; | |
4038 | wxRect *arg1 = (wxRect *) 0 ; | |
4039 | int arg2 ; | |
4040 | PyObject * obj0 = 0 ; | |
994141e6 | 4041 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4042 | char *kwnames[] = { |
4043 | (char *) "self",(char *) "bottom", NULL | |
4044 | }; | |
4045 | ||
994141e6 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4049 | arg2 = (int) SWIG_AsInt(obj1); | |
4050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4051 | { |
4052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4053 | (arg1)->SetBottom(arg2); | |
4054 | ||
4055 | wxPyEndAllowThreads(__tstate); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
4057 | } | |
4058 | Py_INCREF(Py_None); resultobj = Py_None; | |
4059 | return resultobj; | |
4060 | fail: | |
4061 | return NULL; | |
4062 | } | |
4063 | ||
4064 | ||
4065 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4066 | PyObject *resultobj; | |
4067 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4068 | int arg2 ; |
4069 | int arg3 ; | |
d14a1e28 RD |
4070 | wxRect *result; |
4071 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4072 | PyObject * obj1 = 0 ; |
4073 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4074 | char *kwnames[] = { |
4075 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4076 | }; | |
4077 | ||
994141e6 | 4078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4081 | arg2 = (int) SWIG_AsInt(obj1); | |
4082 | if (PyErr_Occurred()) SWIG_fail; | |
4083 | arg3 = (int) SWIG_AsInt(obj2); | |
4084 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4085 | { |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | { | |
4088 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4089 | result = (wxRect *) &_result_ref; | |
4090 | } | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
15afbcd0 | 4095 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4096 | return resultobj; |
4097 | fail: | |
4098 | return NULL; | |
4099 | } | |
4100 | ||
4101 | ||
4102 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4103 | PyObject *resultobj; | |
4104 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4105 | int arg2 ; |
4106 | int arg3 ; | |
d14a1e28 RD |
4107 | wxRect *result; |
4108 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4109 | PyObject * obj1 = 0 ; |
4110 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4111 | char *kwnames[] = { |
4112 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4113 | }; | |
4114 | ||
994141e6 | 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4118 | arg2 = (int) SWIG_AsInt(obj1); | |
4119 | if (PyErr_Occurred()) SWIG_fail; | |
4120 | arg3 = (int) SWIG_AsInt(obj2); | |
4121 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4122 | { |
4123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4124 | { | |
4125 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4126 | result = (wxRect *) &_result_ref; | |
4127 | } | |
4128 | ||
4129 | wxPyEndAllowThreads(__tstate); | |
4130 | if (PyErr_Occurred()) SWIG_fail; | |
4131 | } | |
15afbcd0 | 4132 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4133 | return resultobj; |
4134 | fail: | |
4135 | return NULL; | |
4136 | } | |
4137 | ||
4138 | ||
4139 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject *resultobj; | |
4141 | wxRect *arg1 = (wxRect *) 0 ; | |
e811c8ce RD |
4142 | int arg2 ; |
4143 | int arg3 ; | |
d14a1e28 | 4144 | PyObject * obj0 = 0 ; |
994141e6 RD |
4145 | PyObject * obj1 = 0 ; |
4146 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4147 | char *kwnames[] = { |
4148 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4149 | }; | |
4150 | ||
994141e6 | 4151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4154 | arg2 = (int) SWIG_AsInt(obj1); | |
4155 | if (PyErr_Occurred()) SWIG_fail; | |
4156 | arg3 = (int) SWIG_AsInt(obj2); | |
4157 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4158 | { |
4159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4160 | (arg1)->Offset(arg2,arg3); | |
4161 | ||
4162 | wxPyEndAllowThreads(__tstate); | |
4163 | if (PyErr_Occurred()) SWIG_fail; | |
4164 | } | |
4165 | Py_INCREF(Py_None); resultobj = Py_None; | |
4166 | return resultobj; | |
4167 | fail: | |
4168 | return NULL; | |
4169 | } | |
4170 | ||
4171 | ||
4172 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4173 | PyObject *resultobj; | |
4174 | wxRect *arg1 = (wxRect *) 0 ; | |
4175 | wxPoint *arg2 = 0 ; | |
4176 | wxPoint temp2 ; | |
4177 | PyObject * obj0 = 0 ; | |
4178 | PyObject * obj1 = 0 ; | |
4179 | char *kwnames[] = { | |
4180 | (char *) "self",(char *) "pt", NULL | |
4181 | }; | |
4182 | ||
4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4186 | { |
4187 | arg2 = &temp2; | |
4188 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4189 | } | |
4190 | { | |
4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4192 | (arg1)->Offset((wxPoint const &)*arg2); | |
4193 | ||
4194 | wxPyEndAllowThreads(__tstate); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | } | |
4197 | Py_INCREF(Py_None); resultobj = Py_None; | |
4198 | return resultobj; | |
4199 | fail: | |
4200 | return NULL; | |
4201 | } | |
4202 | ||
4203 | ||
4204 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4205 | PyObject *resultobj; | |
4206 | wxRect *arg1 = (wxRect *) 0 ; | |
4207 | wxRect *arg2 = 0 ; | |
4208 | wxRect *result; | |
4209 | wxRect temp2 ; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | PyObject * obj1 = 0 ; | |
4212 | char *kwnames[] = { | |
4213 | (char *) "self",(char *) "rect", NULL | |
4214 | }; | |
4215 | ||
4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4219 | { |
4220 | arg2 = &temp2; | |
4221 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4222 | } | |
4223 | { | |
4224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4225 | { | |
4226 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4227 | result = (wxRect *) &_result_ref; | |
4228 | } | |
4229 | ||
4230 | wxPyEndAllowThreads(__tstate); | |
4231 | if (PyErr_Occurred()) SWIG_fail; | |
4232 | } | |
15afbcd0 | 4233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4234 | return resultobj; |
4235 | fail: | |
4236 | return NULL; | |
4237 | } | |
4238 | ||
4239 | ||
4240 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4241 | PyObject *resultobj; | |
4242 | wxRect *arg1 = (wxRect *) 0 ; | |
4243 | wxRect *arg2 = 0 ; | |
4244 | wxRect result; | |
4245 | wxRect temp2 ; | |
4246 | PyObject * obj0 = 0 ; | |
4247 | PyObject * obj1 = 0 ; | |
4248 | char *kwnames[] = { | |
4249 | (char *) "self",(char *) "rect", NULL | |
4250 | }; | |
4251 | ||
4252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4255 | { |
4256 | arg2 = &temp2; | |
4257 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4258 | } | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4262 | ||
4263 | wxPyEndAllowThreads(__tstate); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4266 | { | |
4267 | wxRect * resultptr; | |
4268 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 4269 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
4270 | } |
4271 | return resultobj; | |
4272 | fail: | |
4273 | return NULL; | |
4274 | } | |
4275 | ||
4276 | ||
4277 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4278 | PyObject *resultobj; | |
4279 | wxRect *arg1 = (wxRect *) 0 ; | |
4280 | wxRect *arg2 = 0 ; | |
4281 | wxRect *result; | |
4282 | wxRect temp2 ; | |
4283 | PyObject * obj0 = 0 ; | |
4284 | PyObject * obj1 = 0 ; | |
4285 | char *kwnames[] = { | |
4286 | (char *) "self",(char *) "rect", NULL | |
4287 | }; | |
4288 | ||
4289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4292 | { |
4293 | arg2 = &temp2; | |
4294 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4295 | } | |
4296 | { | |
4297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4298 | { | |
4299 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4300 | result = (wxRect *) &_result_ref; | |
4301 | } | |
4302 | ||
4303 | wxPyEndAllowThreads(__tstate); | |
4304 | if (PyErr_Occurred()) SWIG_fail; | |
4305 | } | |
15afbcd0 | 4306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
4307 | return resultobj; |
4308 | fail: | |
4309 | return NULL; | |
4310 | } | |
4311 | ||
4312 | ||
4313 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4314 | PyObject *resultobj; | |
4315 | wxRect *arg1 = (wxRect *) 0 ; | |
4316 | wxRect *arg2 = 0 ; | |
4317 | bool result; | |
4318 | wxRect temp2 ; | |
4319 | PyObject * obj0 = 0 ; | |
4320 | PyObject * obj1 = 0 ; | |
4321 | char *kwnames[] = { | |
4322 | (char *) "self",(char *) "rect", NULL | |
4323 | }; | |
4324 | ||
4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4328 | { |
4329 | arg2 = &temp2; | |
4330 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4331 | } | |
4332 | { | |
4333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4334 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4335 | ||
4336 | wxPyEndAllowThreads(__tstate); | |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
4338 | } | |
4f89f6a3 RD |
4339 | { |
4340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4341 | } | |
d14a1e28 RD |
4342 | return resultobj; |
4343 | fail: | |
4344 | return NULL; | |
4345 | } | |
4346 | ||
4347 | ||
4348 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4349 | PyObject *resultobj; | |
4350 | wxRect *arg1 = (wxRect *) 0 ; | |
4351 | wxRect *arg2 = 0 ; | |
4352 | bool 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___ne__",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 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4370 | ||
4371 | wxPyEndAllowThreads(__tstate); | |
4372 | if (PyErr_Occurred()) SWIG_fail; | |
4373 | } | |
4f89f6a3 RD |
4374 | { |
4375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4376 | } | |
d14a1e28 RD |
4377 | return resultobj; |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4384 | PyObject *resultobj; | |
4385 | wxRect *arg1 = (wxRect *) 0 ; | |
4386 | int arg2 ; | |
4387 | int arg3 ; | |
4388 | bool result; | |
4389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4390 | PyObject * obj1 = 0 ; |
4391 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
4392 | char *kwnames[] = { |
4393 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4394 | }; | |
4395 | ||
994141e6 | 4396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
4397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4399 | arg2 = (int) SWIG_AsInt(obj1); | |
4400 | if (PyErr_Occurred()) SWIG_fail; | |
4401 | arg3 = (int) SWIG_AsInt(obj2); | |
4402 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4403 | { |
4404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4405 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
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_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4420 | PyObject *resultobj; | |
4421 | wxRect *arg1 = (wxRect *) 0 ; | |
4422 | wxPoint *arg2 = 0 ; | |
4423 | bool result; | |
4424 | wxPoint temp2 ; | |
4425 | PyObject * obj0 = 0 ; | |
4426 | PyObject * obj1 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "self",(char *) "pt", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4437 | } | |
4438 | { | |
4439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4440 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint 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_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject *resultobj; | |
4456 | wxRect *arg1 = (wxRect *) 0 ; | |
4457 | wxRect *arg2 = 0 ; | |
4458 | bool result; | |
4459 | wxRect temp2 ; | |
4460 | PyObject * obj0 = 0 ; | |
4461 | PyObject * obj1 = 0 ; | |
4462 | char *kwnames[] = { | |
4463 | (char *) "self",(char *) "rect", NULL | |
4464 | }; | |
4465 | ||
4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4469 | { |
4470 | arg2 = &temp2; | |
4471 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4472 | } | |
4473 | { | |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4476 | ||
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4f89f6a3 RD |
4480 | { |
4481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4482 | } | |
d14a1e28 RD |
4483 | return resultobj; |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj; | |
4491 | wxRect *arg1 = (wxRect *) 0 ; | |
4492 | int arg2 ; | |
4493 | PyObject * obj0 = 0 ; | |
994141e6 | 4494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4495 | char *kwnames[] = { |
4496 | (char *) "self",(char *) "x", NULL | |
4497 | }; | |
4498 | ||
994141e6 | 4499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4502 | arg2 = (int) SWIG_AsInt(obj1); | |
4503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4504 | if (arg1) (arg1)->x = arg2; |
4505 | ||
4506 | Py_INCREF(Py_None); resultobj = Py_None; | |
4507 | return resultobj; | |
4508 | fail: | |
4509 | return NULL; | |
4510 | } | |
4511 | ||
4512 | ||
4513 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4514 | PyObject *resultobj; | |
4515 | wxRect *arg1 = (wxRect *) 0 ; | |
4516 | int result; | |
4517 | PyObject * obj0 = 0 ; | |
4518 | char *kwnames[] = { | |
4519 | (char *) "self", NULL | |
4520 | }; | |
4521 | ||
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4525 | result = (int) ((arg1)->x); |
4526 | ||
15afbcd0 | 4527 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4528 | return resultobj; |
4529 | fail: | |
4530 | return NULL; | |
4531 | } | |
4532 | ||
4533 | ||
4534 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4535 | PyObject *resultobj; | |
4536 | wxRect *arg1 = (wxRect *) 0 ; | |
4537 | int arg2 ; | |
4538 | PyObject * obj0 = 0 ; | |
994141e6 | 4539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4540 | char *kwnames[] = { |
4541 | (char *) "self",(char *) "y", NULL | |
4542 | }; | |
4543 | ||
994141e6 | 4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4547 | arg2 = (int) SWIG_AsInt(obj1); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4549 | if (arg1) (arg1)->y = arg2; |
4550 | ||
4551 | Py_INCREF(Py_None); resultobj = Py_None; | |
4552 | return resultobj; | |
4553 | fail: | |
4554 | return NULL; | |
4555 | } | |
4556 | ||
4557 | ||
4558 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject *resultobj; | |
4560 | wxRect *arg1 = (wxRect *) 0 ; | |
4561 | int result; | |
4562 | PyObject * obj0 = 0 ; | |
4563 | char *kwnames[] = { | |
4564 | (char *) "self", NULL | |
4565 | }; | |
4566 | ||
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4570 | result = (int) ((arg1)->y); |
4571 | ||
15afbcd0 | 4572 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4573 | return resultobj; |
4574 | fail: | |
4575 | return NULL; | |
4576 | } | |
4577 | ||
4578 | ||
4579 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4580 | PyObject *resultobj; | |
4581 | wxRect *arg1 = (wxRect *) 0 ; | |
4582 | int arg2 ; | |
4583 | PyObject * obj0 = 0 ; | |
994141e6 | 4584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4585 | char *kwnames[] = { |
4586 | (char *) "self",(char *) "width", NULL | |
4587 | }; | |
4588 | ||
994141e6 | 4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4592 | arg2 = (int) SWIG_AsInt(obj1); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4594 | if (arg1) (arg1)->width = arg2; |
4595 | ||
4596 | Py_INCREF(Py_None); resultobj = Py_None; | |
4597 | return resultobj; | |
4598 | fail: | |
4599 | return NULL; | |
4600 | } | |
4601 | ||
4602 | ||
4603 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4604 | PyObject *resultobj; | |
4605 | wxRect *arg1 = (wxRect *) 0 ; | |
4606 | int result; | |
4607 | PyObject * obj0 = 0 ; | |
4608 | char *kwnames[] = { | |
4609 | (char *) "self", NULL | |
4610 | }; | |
4611 | ||
4612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4615 | result = (int) ((arg1)->width); |
4616 | ||
15afbcd0 | 4617 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4618 | return resultobj; |
4619 | fail: | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj; | |
4626 | wxRect *arg1 = (wxRect *) 0 ; | |
4627 | int arg2 ; | |
4628 | PyObject * obj0 = 0 ; | |
994141e6 | 4629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4630 | char *kwnames[] = { |
4631 | (char *) "self",(char *) "height", NULL | |
4632 | }; | |
4633 | ||
994141e6 | 4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4637 | arg2 = (int) SWIG_AsInt(obj1); | |
4638 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4639 | if (arg1) (arg1)->height = arg2; |
4640 | ||
4641 | Py_INCREF(Py_None); resultobj = Py_None; | |
4642 | return resultobj; | |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
4648 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4649 | PyObject *resultobj; | |
4650 | wxRect *arg1 = (wxRect *) 0 ; | |
4651 | int result; | |
4652 | PyObject * obj0 = 0 ; | |
4653 | char *kwnames[] = { | |
4654 | (char *) "self", NULL | |
4655 | }; | |
4656 | ||
4657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4660 | result = (int) ((arg1)->height); |
4661 | ||
15afbcd0 | 4662 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4663 | return resultobj; |
4664 | fail: | |
4665 | return NULL; | |
4666 | } | |
4667 | ||
4668 | ||
4669 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4670 | PyObject *resultobj; | |
4671 | wxRect *arg1 = (wxRect *) 0 ; | |
4672 | int arg2 = (int) 0 ; | |
4673 | int arg3 = (int) 0 ; | |
4674 | int arg4 = (int) 0 ; | |
4675 | int arg5 = (int) 0 ; | |
4676 | PyObject * obj0 = 0 ; | |
994141e6 RD |
4677 | PyObject * obj1 = 0 ; |
4678 | PyObject * obj2 = 0 ; | |
4679 | PyObject * obj3 = 0 ; | |
4680 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
4681 | char *kwnames[] = { |
4682 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4683 | }; | |
4684 | ||
994141e6 | 4685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
4686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 4688 | if (obj1) { |
15afbcd0 RD |
4689 | arg2 = (int) SWIG_AsInt(obj1); |
4690 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4691 | } |
4692 | if (obj2) { | |
15afbcd0 RD |
4693 | arg3 = (int) SWIG_AsInt(obj2); |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4695 | } |
4696 | if (obj3) { | |
15afbcd0 RD |
4697 | arg4 = (int) SWIG_AsInt(obj3); |
4698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4699 | } |
4700 | if (obj4) { | |
15afbcd0 RD |
4701 | arg5 = (int) SWIG_AsInt(obj4); |
4702 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4703 | } |
d14a1e28 RD |
4704 | { |
4705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4706 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4707 | ||
4708 | wxPyEndAllowThreads(__tstate); | |
4709 | if (PyErr_Occurred()) SWIG_fail; | |
4710 | } | |
4711 | Py_INCREF(Py_None); resultobj = Py_None; | |
4712 | return resultobj; | |
4713 | fail: | |
4714 | return NULL; | |
4715 | } | |
4716 | ||
4717 | ||
e811c8ce | 4718 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
4719 | PyObject *resultobj; |
4720 | wxRect *arg1 = (wxRect *) 0 ; | |
4721 | PyObject *result; | |
4722 | PyObject * obj0 = 0 ; | |
4723 | char *kwnames[] = { | |
4724 | (char *) "self", NULL | |
4725 | }; | |
4726 | ||
e811c8ce | 4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
4728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4730 | { |
4731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 4732 | result = (PyObject *)wxRect_Get(arg1); |
d14a1e28 RD |
4733 | |
4734 | wxPyEndAllowThreads(__tstate); | |
4735 | if (PyErr_Occurred()) SWIG_fail; | |
4736 | } | |
4737 | resultobj = result; | |
4738 | return resultobj; | |
4739 | fail: | |
4740 | return NULL; | |
4741 | } | |
4742 | ||
4743 | ||
4744 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4745 | PyObject *obj; | |
4746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4747 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4748 | Py_INCREF(obj); | |
4749 | return Py_BuildValue((char *)""); | |
4750 | } | |
4751 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4752 | PyObject *resultobj; | |
4753 | wxRect *arg1 = (wxRect *) 0 ; | |
4754 | wxRect *arg2 = (wxRect *) 0 ; | |
4755 | PyObject *result; | |
4756 | PyObject * obj0 = 0 ; | |
4757 | PyObject * obj1 = 0 ; | |
4758 | char *kwnames[] = { | |
4759 | (char *) "r1",(char *) "r2", NULL | |
4760 | }; | |
4761 | ||
4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
4763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, |
4764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4767 | { |
4768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4769 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4770 | ||
4771 | wxPyEndAllowThreads(__tstate); | |
4772 | if (PyErr_Occurred()) SWIG_fail; | |
4773 | } | |
4774 | resultobj = result; | |
4775 | return resultobj; | |
4776 | fail: | |
4777 | return NULL; | |
4778 | } | |
4779 | ||
4780 | ||
4781 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject *resultobj; | |
4783 | double arg1 = (double) 0.0 ; | |
4784 | double arg2 = (double) 0.0 ; | |
4785 | wxPoint2D *result; | |
994141e6 RD |
4786 | PyObject * obj0 = 0 ; |
4787 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
4788 | char *kwnames[] = { |
4789 | (char *) "x",(char *) "y", NULL | |
4790 | }; | |
4791 | ||
994141e6 RD |
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; |
4793 | if (obj0) { | |
15afbcd0 RD |
4794 | arg1 = (double) SWIG_AsDouble(obj0); |
4795 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
4796 | } |
4797 | if (obj1) { | |
15afbcd0 RD |
4798 | arg2 = (double) SWIG_AsDouble(obj1); |
4799 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4800 | } |
d14a1e28 RD |
4801 | { |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4803 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4804 | ||
4805 | wxPyEndAllowThreads(__tstate); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
15afbcd0 | 4808 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4809 | return resultobj; |
4810 | fail: | |
4811 | return NULL; | |
4812 | } | |
4813 | ||
4814 | ||
4815 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4816 | PyObject *resultobj; | |
4817 | wxPoint2D *arg1 = 0 ; | |
4818 | wxPoint2D *result; | |
4819 | wxPoint2D temp1 ; | |
4820 | PyObject * obj0 = 0 ; | |
4821 | char *kwnames[] = { | |
4822 | (char *) "pt", NULL | |
4823 | }; | |
4824 | ||
4825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4826 | { | |
4827 | arg1 = &temp1; | |
4828 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4829 | } | |
4830 | { | |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4833 | ||
4834 | wxPyEndAllowThreads(__tstate); | |
4835 | if (PyErr_Occurred()) SWIG_fail; | |
4836 | } | |
15afbcd0 | 4837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4838 | return resultobj; |
4839 | fail: | |
4840 | return NULL; | |
4841 | } | |
4842 | ||
4843 | ||
4844 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4845 | PyObject *resultobj; | |
4846 | wxPoint *arg1 = 0 ; | |
4847 | wxPoint2D *result; | |
4848 | wxPoint temp1 ; | |
4849 | PyObject * obj0 = 0 ; | |
4850 | char *kwnames[] = { | |
4851 | (char *) "pt", NULL | |
4852 | }; | |
4853 | ||
4854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4855 | { | |
4856 | arg1 = &temp1; | |
4857 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4858 | } | |
4859 | { | |
4860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4861 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4862 | ||
4863 | wxPyEndAllowThreads(__tstate); | |
4864 | if (PyErr_Occurred()) SWIG_fail; | |
4865 | } | |
15afbcd0 | 4866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
4867 | return resultobj; |
4868 | fail: | |
4869 | return NULL; | |
4870 | } | |
4871 | ||
4872 | ||
4873 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4874 | PyObject *resultobj; | |
4875 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4876 | int *arg2 = (int *) 0 ; | |
4877 | int *arg3 = (int *) 0 ; | |
4878 | int temp2 ; | |
4879 | int temp3 ; | |
4880 | PyObject * obj0 = 0 ; | |
4881 | char *kwnames[] = { | |
4882 | (char *) "self", NULL | |
4883 | }; | |
4884 | ||
4885 | arg2 = &temp2; | |
4886 | arg3 = &temp3; | |
4887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4890 | { |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
4897 | Py_INCREF(Py_None); resultobj = Py_None; | |
4898 | { | |
4899 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4900 | resultobj = t_output_helper(resultobj,o); | |
4901 | } | |
4902 | { | |
4903 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4904 | resultobj = t_output_helper(resultobj,o); | |
4905 | } | |
4906 | return resultobj; | |
4907 | fail: | |
4908 | return NULL; | |
4909 | } | |
4910 | ||
4911 | ||
4912 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4913 | PyObject *resultobj; | |
4914 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4915 | int *arg2 = (int *) 0 ; | |
4916 | int *arg3 = (int *) 0 ; | |
4917 | int temp2 ; | |
4918 | int temp3 ; | |
4919 | PyObject * obj0 = 0 ; | |
4920 | char *kwnames[] = { | |
4921 | (char *) "self", NULL | |
4922 | }; | |
4923 | ||
4924 | arg2 = &temp2; | |
4925 | arg3 = &temp3; | |
4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4929 | { |
4930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4931 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4932 | ||
4933 | wxPyEndAllowThreads(__tstate); | |
4934 | if (PyErr_Occurred()) SWIG_fail; | |
4935 | } | |
4936 | Py_INCREF(Py_None); resultobj = Py_None; | |
4937 | { | |
4938 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4939 | resultobj = t_output_helper(resultobj,o); | |
4940 | } | |
4941 | { | |
4942 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4943 | resultobj = t_output_helper(resultobj,o); | |
4944 | } | |
4945 | return resultobj; | |
4946 | fail: | |
4947 | return NULL; | |
4948 | } | |
4949 | ||
4950 | ||
4951 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4952 | PyObject *resultobj; | |
4953 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4954 | double result; | |
4955 | PyObject * obj0 = 0 ; | |
4956 | char *kwnames[] = { | |
4957 | (char *) "self", NULL | |
4958 | }; | |
4959 | ||
4960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4963 | { |
4964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4965 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4966 | ||
4967 | wxPyEndAllowThreads(__tstate); | |
4968 | if (PyErr_Occurred()) SWIG_fail; | |
4969 | } | |
15afbcd0 | 4970 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4971 | return resultobj; |
4972 | fail: | |
4973 | return NULL; | |
4974 | } | |
4975 | ||
4976 | ||
4977 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4978 | PyObject *resultobj; | |
4979 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4980 | double result; | |
4981 | PyObject * obj0 = 0 ; | |
4982 | char *kwnames[] = { | |
4983 | (char *) "self", NULL | |
4984 | }; | |
4985 | ||
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
4988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4989 | { |
4990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4991 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
4992 | ||
4993 | wxPyEndAllowThreads(__tstate); | |
4994 | if (PyErr_Occurred()) SWIG_fail; | |
4995 | } | |
15afbcd0 | 4996 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
4997 | return resultobj; |
4998 | fail: | |
4999 | return NULL; | |
5000 | } | |
5001 | ||
5002 | ||
5003 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5004 | PyObject *resultobj; | |
5005 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5006 | double arg2 ; | |
5007 | PyObject * obj0 = 0 ; | |
994141e6 | 5008 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5009 | char *kwnames[] = { |
5010 | (char *) "self",(char *) "length", NULL | |
5011 | }; | |
5012 | ||
994141e6 | 5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5016 | arg2 = (double) SWIG_AsDouble(obj1); | |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5018 | { |
5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5020 | (arg1)->SetVectorLength(arg2); | |
5021 | ||
5022 | wxPyEndAllowThreads(__tstate); | |
5023 | if (PyErr_Occurred()) SWIG_fail; | |
5024 | } | |
5025 | Py_INCREF(Py_None); resultobj = Py_None; | |
5026 | return resultobj; | |
5027 | fail: | |
5028 | return NULL; | |
5029 | } | |
5030 | ||
5031 | ||
5032 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5033 | PyObject *resultobj; | |
5034 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5035 | double arg2 ; | |
5036 | PyObject * obj0 = 0 ; | |
994141e6 | 5037 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5038 | char *kwnames[] = { |
5039 | (char *) "self",(char *) "degrees", NULL | |
5040 | }; | |
5041 | ||
994141e6 | 5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5045 | arg2 = (double) SWIG_AsDouble(obj1); | |
5046 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5047 | { |
5048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5049 | (arg1)->SetVectorAngle(arg2); | |
5050 | ||
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | Py_INCREF(Py_None); resultobj = Py_None; | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5062 | PyObject *resultobj; | |
5063 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5064 | wxPoint2D *arg2 = 0 ; | |
5065 | double result; | |
5066 | wxPoint2D temp2 ; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | PyObject * obj1 = 0 ; | |
5069 | char *kwnames[] = { | |
5070 | (char *) "self",(char *) "pt", NULL | |
5071 | }; | |
5072 | ||
5073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5076 | { |
5077 | arg2 = &temp2; | |
5078 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5079 | } | |
5080 | { | |
5081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5082 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5083 | ||
5084 | wxPyEndAllowThreads(__tstate); | |
5085 | if (PyErr_Occurred()) SWIG_fail; | |
5086 | } | |
15afbcd0 | 5087 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5088 | return resultobj; |
5089 | fail: | |
5090 | return NULL; | |
5091 | } | |
5092 | ||
5093 | ||
5094 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5095 | PyObject *resultobj; | |
5096 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5097 | wxPoint2D *arg2 = 0 ; | |
5098 | double result; | |
5099 | wxPoint2D temp2 ; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | PyObject * obj1 = 0 ; | |
5102 | char *kwnames[] = { | |
5103 | (char *) "self",(char *) "pt", NULL | |
5104 | }; | |
5105 | ||
5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5109 | { |
5110 | arg2 = &temp2; | |
5111 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5112 | } | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5115 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5116 | ||
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
15afbcd0 | 5120 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5121 | return resultobj; |
5122 | fail: | |
5123 | return NULL; | |
5124 | } | |
5125 | ||
5126 | ||
5127 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5128 | PyObject *resultobj; | |
5129 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5130 | wxPoint2D *arg2 = 0 ; | |
5131 | double result; | |
5132 | wxPoint2D temp2 ; | |
5133 | PyObject * obj0 = 0 ; | |
5134 | PyObject * obj1 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "self",(char *) "vec", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5142 | { |
5143 | arg2 = &temp2; | |
5144 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5145 | } | |
5146 | { | |
5147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5148 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5149 | ||
5150 | wxPyEndAllowThreads(__tstate); | |
5151 | if (PyErr_Occurred()) SWIG_fail; | |
5152 | } | |
15afbcd0 | 5153 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5154 | return resultobj; |
5155 | fail: | |
5156 | return NULL; | |
5157 | } | |
5158 | ||
5159 | ||
5160 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5161 | PyObject *resultobj; | |
5162 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5163 | wxPoint2D *arg2 = 0 ; | |
5164 | double result; | |
5165 | wxPoint2D temp2 ; | |
5166 | PyObject * obj0 = 0 ; | |
5167 | PyObject * obj1 = 0 ; | |
5168 | char *kwnames[] = { | |
5169 | (char *) "self",(char *) "vec", NULL | |
5170 | }; | |
5171 | ||
5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5175 | { |
5176 | arg2 = &temp2; | |
5177 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5178 | } | |
5179 | { | |
5180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5181 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5182 | ||
5183 | wxPyEndAllowThreads(__tstate); | |
5184 | if (PyErr_Occurred()) SWIG_fail; | |
5185 | } | |
15afbcd0 | 5186 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5187 | return resultobj; |
5188 | fail: | |
5189 | return NULL; | |
5190 | } | |
5191 | ||
5192 | ||
5193 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5194 | PyObject *resultobj; | |
5195 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5196 | wxPoint2D result; | |
5197 | PyObject * obj0 = 0 ; | |
5198 | char *kwnames[] = { | |
5199 | (char *) "self", NULL | |
5200 | }; | |
5201 | ||
5202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5205 | { |
5206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5207 | result = (arg1)->operator -(); | |
5208 | ||
5209 | wxPyEndAllowThreads(__tstate); | |
5210 | if (PyErr_Occurred()) SWIG_fail; | |
5211 | } | |
5212 | { | |
5213 | wxPoint2D * resultptr; | |
5214 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
15afbcd0 | 5215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); |
d14a1e28 RD |
5216 | } |
5217 | return resultobj; | |
5218 | fail: | |
5219 | return NULL; | |
5220 | } | |
5221 | ||
5222 | ||
5223 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5224 | PyObject *resultobj; | |
5225 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5226 | wxPoint2D *arg2 = 0 ; | |
5227 | wxPoint2D *result; | |
5228 | wxPoint2D temp2 ; | |
5229 | PyObject * obj0 = 0 ; | |
5230 | PyObject * obj1 = 0 ; | |
5231 | char *kwnames[] = { | |
5232 | (char *) "self",(char *) "pt", NULL | |
5233 | }; | |
5234 | ||
5235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5238 | { |
5239 | arg2 = &temp2; | |
5240 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5241 | } | |
5242 | { | |
5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5244 | { | |
5245 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5246 | result = (wxPoint2D *) &_result_ref; | |
5247 | } | |
5248 | ||
5249 | wxPyEndAllowThreads(__tstate); | |
5250 | if (PyErr_Occurred()) SWIG_fail; | |
5251 | } | |
15afbcd0 | 5252 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5253 | return resultobj; |
5254 | fail: | |
5255 | return NULL; | |
5256 | } | |
5257 | ||
5258 | ||
5259 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5260 | PyObject *resultobj; | |
5261 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5262 | wxPoint2D *arg2 = 0 ; | |
5263 | wxPoint2D *result; | |
5264 | wxPoint2D temp2 ; | |
5265 | PyObject * obj0 = 0 ; | |
5266 | PyObject * obj1 = 0 ; | |
5267 | char *kwnames[] = { | |
5268 | (char *) "self",(char *) "pt", NULL | |
5269 | }; | |
5270 | ||
5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5274 | { |
5275 | arg2 = &temp2; | |
5276 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5277 | } | |
5278 | { | |
5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5280 | { | |
5281 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5282 | result = (wxPoint2D *) &_result_ref; | |
5283 | } | |
5284 | ||
5285 | wxPyEndAllowThreads(__tstate); | |
5286 | if (PyErr_Occurred()) SWIG_fail; | |
5287 | } | |
15afbcd0 | 5288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); |
d14a1e28 RD |
5289 | return resultobj; |
5290 | fail: | |
5291 | return NULL; | |
5292 | } | |
5293 | ||
5294 | ||
5295 | static PyObject *_wrap_Point2D___imul__(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___imul__",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___idiv__(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___idiv__",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___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5368 | PyObject *resultobj; | |
5369 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5370 | wxPoint2D *arg2 = 0 ; | |
5371 | bool 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___eq__",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 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5389 | ||
5390 | wxPyEndAllowThreads(__tstate); | |
5391 | if (PyErr_Occurred()) SWIG_fail; | |
5392 | } | |
4f89f6a3 RD |
5393 | { |
5394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5395 | } | |
d14a1e28 RD |
5396 | return resultobj; |
5397 | fail: | |
5398 | return NULL; | |
5399 | } | |
5400 | ||
5401 | ||
5402 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5403 | PyObject *resultobj; | |
5404 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5405 | wxPoint2D *arg2 = 0 ; | |
5406 | bool result; | |
5407 | wxPoint2D temp2 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | PyObject * obj1 = 0 ; | |
5410 | char *kwnames[] = { | |
5411 | (char *) "self",(char *) "pt", NULL | |
5412 | }; | |
5413 | ||
5414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5417 | { |
5418 | arg2 = &temp2; | |
5419 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5420 | } | |
5421 | { | |
5422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5423 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5424 | ||
5425 | wxPyEndAllowThreads(__tstate); | |
5426 | if (PyErr_Occurred()) SWIG_fail; | |
5427 | } | |
4f89f6a3 RD |
5428 | { |
5429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5430 | } | |
d14a1e28 RD |
5431 | return resultobj; |
5432 | fail: | |
5433 | return NULL; | |
5434 | } | |
5435 | ||
5436 | ||
d14a1e28 RD |
5437 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
5438 | PyObject *resultobj; | |
5439 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5440 | double arg2 ; | |
5441 | PyObject * obj0 = 0 ; | |
994141e6 | 5442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5443 | char *kwnames[] = { |
5444 | (char *) "self",(char *) "m_x", NULL | |
5445 | }; | |
5446 | ||
994141e6 | 5447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5450 | arg2 = (double) SWIG_AsDouble(obj1); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5452 | if (arg1) (arg1)->m_x = arg2; |
5453 | ||
5454 | Py_INCREF(Py_None); resultobj = Py_None; | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5464 | double result; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | char *kwnames[] = { | |
5467 | (char *) "self", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5473 | result = (double) ((arg1)->m_x); |
5474 | ||
15afbcd0 | 5475 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5476 | return resultobj; |
5477 | fail: | |
5478 | return NULL; | |
5479 | } | |
5480 | ||
5481 | ||
5482 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5483 | PyObject *resultobj; | |
5484 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5485 | double arg2 ; | |
5486 | PyObject * obj0 = 0 ; | |
994141e6 | 5487 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5488 | char *kwnames[] = { |
5489 | (char *) "self",(char *) "m_y", NULL | |
5490 | }; | |
5491 | ||
994141e6 | 5492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5495 | arg2 = (double) SWIG_AsDouble(obj1); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5497 | if (arg1) (arg1)->m_y = arg2; |
5498 | ||
5499 | Py_INCREF(Py_None); resultobj = Py_None; | |
5500 | return resultobj; | |
5501 | fail: | |
5502 | return NULL; | |
5503 | } | |
5504 | ||
5505 | ||
5506 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5507 | PyObject *resultobj; | |
5508 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5509 | double result; | |
5510 | PyObject * obj0 = 0 ; | |
5511 | char *kwnames[] = { | |
5512 | (char *) "self", NULL | |
5513 | }; | |
5514 | ||
5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5518 | result = (double) ((arg1)->m_y); |
5519 | ||
15afbcd0 | 5520 | resultobj = SWIG_FromDouble((double)result); |
d14a1e28 RD |
5521 | return resultobj; |
5522 | fail: | |
5523 | return NULL; | |
5524 | } | |
5525 | ||
5526 | ||
5527 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5528 | PyObject *resultobj; | |
5529 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5530 | double arg2 = (double) 0 ; | |
5531 | double arg3 = (double) 0 ; | |
5532 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5533 | PyObject * obj1 = 0 ; |
5534 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5535 | char *kwnames[] = { |
5536 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5537 | }; | |
5538 | ||
994141e6 | 5539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5542 | if (obj1) { |
15afbcd0 RD |
5543 | arg2 = (double) SWIG_AsDouble(obj1); |
5544 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
5545 | } |
5546 | if (obj2) { | |
15afbcd0 RD |
5547 | arg3 = (double) SWIG_AsDouble(obj2); |
5548 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5549 | } |
d14a1e28 RD |
5550 | { |
5551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5552 | wxPoint2D_Set(arg1,arg2,arg3); | |
5553 | ||
5554 | wxPyEndAllowThreads(__tstate); | |
5555 | if (PyErr_Occurred()) SWIG_fail; | |
5556 | } | |
5557 | Py_INCREF(Py_None); resultobj = Py_None; | |
5558 | return resultobj; | |
5559 | fail: | |
5560 | return NULL; | |
5561 | } | |
5562 | ||
5563 | ||
e811c8ce | 5564 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
5565 | PyObject *resultobj; |
5566 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5567 | PyObject *result; | |
5568 | PyObject * obj0 = 0 ; | |
5569 | char *kwnames[] = { | |
5570 | (char *) "self", NULL | |
5571 | }; | |
5572 | ||
e811c8ce | 5573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
5574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, |
5575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5576 | { |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 5578 | result = (PyObject *)wxPoint2D_Get(arg1); |
d14a1e28 RD |
5579 | |
5580 | wxPyEndAllowThreads(__tstate); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
5583 | resultobj = result; | |
5584 | return resultobj; | |
5585 | fail: | |
5586 | return NULL; | |
5587 | } | |
5588 | ||
5589 | ||
5590 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5591 | PyObject *obj; | |
5592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5593 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5594 | Py_INCREF(obj); | |
5595 | return Py_BuildValue((char *)""); | |
5596 | } | |
5597 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5598 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5599 | return 1; | |
5600 | } | |
5601 | ||
5602 | ||
5603 | static PyObject *_wrap_DefaultPosition_get() { | |
5604 | PyObject *pyobj; | |
5605 | ||
15afbcd0 | 5606 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
5607 | return pyobj; |
5608 | } | |
5609 | ||
5610 | ||
5611 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5612 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5613 | return 1; | |
5614 | } | |
5615 | ||
5616 | ||
5617 | static PyObject *_wrap_DefaultSize_get() { | |
5618 | PyObject *pyobj; | |
5619 | ||
15afbcd0 | 5620 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
5621 | return pyobj; |
5622 | } | |
5623 | ||
5624 | ||
5625 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5626 | PyObject *resultobj; | |
5627 | PyObject *arg1 = (PyObject *) 0 ; | |
5628 | wxPyInputStream *result; | |
5629 | PyObject * obj0 = 0 ; | |
5630 | char *kwnames[] = { | |
5631 | (char *) "p", NULL | |
5632 | }; | |
5633 | ||
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5635 | arg1 = obj0; | |
5636 | { | |
5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5638 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5639 | ||
5640 | wxPyEndAllowThreads(__tstate); | |
5641 | if (PyErr_Occurred()) SWIG_fail; | |
5642 | } | |
15afbcd0 | 5643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); |
d14a1e28 RD |
5644 | return resultobj; |
5645 | fail: | |
5646 | return NULL; | |
5647 | } | |
5648 | ||
5649 | ||
5650 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5651 | PyObject *resultobj; | |
5652 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5653 | PyObject * obj0 = 0 ; | |
5654 | char *kwnames[] = { | |
5655 | (char *) "self", NULL | |
5656 | }; | |
5657 | ||
5658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5661 | { |
5662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5663 | (arg1)->close(); | |
5664 | ||
5665 | wxPyEndAllowThreads(__tstate); | |
5666 | if (PyErr_Occurred()) SWIG_fail; | |
5667 | } | |
5668 | Py_INCREF(Py_None); resultobj = Py_None; | |
5669 | return resultobj; | |
5670 | fail: | |
5671 | return NULL; | |
5672 | } | |
5673 | ||
5674 | ||
5675 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5676 | PyObject *resultobj; | |
5677 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5678 | PyObject * obj0 = 0 ; | |
5679 | char *kwnames[] = { | |
5680 | (char *) "self", NULL | |
5681 | }; | |
5682 | ||
5683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5686 | { |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5688 | (arg1)->flush(); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
5691 | if (PyErr_Occurred()) SWIG_fail; | |
5692 | } | |
5693 | Py_INCREF(Py_None); resultobj = Py_None; | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5703 | bool result; | |
5704 | PyObject * obj0 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5712 | { |
5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5714 | result = (bool)(arg1)->eof(); | |
5715 | ||
5716 | wxPyEndAllowThreads(__tstate); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
5718 | } | |
4f89f6a3 RD |
5719 | { |
5720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5721 | } | |
d14a1e28 RD |
5722 | return resultobj; |
5723 | fail: | |
5724 | return NULL; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5731 | int arg2 = (int) -1 ; | |
5732 | PyObject *result; | |
5733 | PyObject * obj0 = 0 ; | |
994141e6 | 5734 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5735 | char *kwnames[] = { |
5736 | (char *) "self",(char *) "size", NULL | |
5737 | }; | |
5738 | ||
994141e6 | 5739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5742 | if (obj1) { |
15afbcd0 RD |
5743 | arg2 = (int) SWIG_AsInt(obj1); |
5744 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5745 | } |
d14a1e28 RD |
5746 | { |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5748 | result = (PyObject *)(arg1)->read(arg2); | |
5749 | ||
5750 | wxPyEndAllowThreads(__tstate); | |
5751 | if (PyErr_Occurred()) SWIG_fail; | |
5752 | } | |
5753 | resultobj = result; | |
5754 | return resultobj; | |
5755 | fail: | |
5756 | return NULL; | |
5757 | } | |
5758 | ||
5759 | ||
5760 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5761 | PyObject *resultobj; | |
5762 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5763 | int arg2 = (int) -1 ; | |
5764 | PyObject *result; | |
5765 | PyObject * obj0 = 0 ; | |
994141e6 | 5766 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5767 | char *kwnames[] = { |
5768 | (char *) "self",(char *) "size", NULL | |
5769 | }; | |
5770 | ||
994141e6 | 5771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5774 | if (obj1) { |
15afbcd0 RD |
5775 | arg2 = (int) SWIG_AsInt(obj1); |
5776 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5777 | } |
d14a1e28 RD |
5778 | { |
5779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5780 | result = (PyObject *)(arg1)->readline(arg2); | |
5781 | ||
5782 | wxPyEndAllowThreads(__tstate); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
5785 | resultobj = result; | |
5786 | return resultobj; | |
5787 | fail: | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
5792 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5793 | PyObject *resultobj; | |
5794 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5795 | int arg2 = (int) -1 ; | |
5796 | PyObject *result; | |
5797 | PyObject * obj0 = 0 ; | |
994141e6 | 5798 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5799 | char *kwnames[] = { |
5800 | (char *) "self",(char *) "sizehint", NULL | |
5801 | }; | |
5802 | ||
994141e6 | 5803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
5804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 5806 | if (obj1) { |
15afbcd0 RD |
5807 | arg2 = (int) SWIG_AsInt(obj1); |
5808 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5809 | } |
d14a1e28 RD |
5810 | { |
5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5812 | result = (PyObject *)(arg1)->readlines(arg2); | |
5813 | ||
5814 | wxPyEndAllowThreads(__tstate); | |
5815 | if (PyErr_Occurred()) SWIG_fail; | |
5816 | } | |
5817 | resultobj = result; | |
5818 | return resultobj; | |
5819 | fail: | |
5820 | return NULL; | |
5821 | } | |
5822 | ||
5823 | ||
5824 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5825 | PyObject *resultobj; | |
5826 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5827 | int arg2 ; | |
5828 | int arg3 = (int) 0 ; | |
5829 | PyObject * obj0 = 0 ; | |
994141e6 RD |
5830 | PyObject * obj1 = 0 ; |
5831 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
5832 | char *kwnames[] = { |
5833 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5834 | }; | |
5835 | ||
994141e6 | 5836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5839 | arg2 = (int) SWIG_AsInt(obj1); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5841 | if (obj2) { |
15afbcd0 RD |
5842 | arg3 = (int) SWIG_AsInt(obj2); |
5843 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5844 | } |
d14a1e28 RD |
5845 | { |
5846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5847 | (arg1)->seek(arg2,arg3); | |
5848 | ||
5849 | wxPyEndAllowThreads(__tstate); | |
5850 | if (PyErr_Occurred()) SWIG_fail; | |
5851 | } | |
5852 | Py_INCREF(Py_None); resultobj = Py_None; | |
5853 | return resultobj; | |
5854 | fail: | |
5855 | return NULL; | |
5856 | } | |
5857 | ||
5858 | ||
5859 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5860 | PyObject *resultobj; | |
5861 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5862 | int result; | |
5863 | PyObject * obj0 = 0 ; | |
5864 | char *kwnames[] = { | |
5865 | (char *) "self", NULL | |
5866 | }; | |
5867 | ||
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5871 | { |
5872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5873 | result = (int)(arg1)->tell(); | |
5874 | ||
5875 | wxPyEndAllowThreads(__tstate); | |
5876 | if (PyErr_Occurred()) SWIG_fail; | |
5877 | } | |
15afbcd0 | 5878 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
5879 | return resultobj; |
5880 | fail: | |
5881 | return NULL; | |
5882 | } | |
5883 | ||
5884 | ||
5885 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5886 | PyObject *resultobj; | |
5887 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5888 | char result; | |
5889 | PyObject * obj0 = 0 ; | |
5890 | char *kwnames[] = { | |
5891 | (char *) "self", NULL | |
5892 | }; | |
5893 | ||
5894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5897 | { |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | result = (char)(arg1)->Peek(); | |
5900 | ||
5901 | wxPyEndAllowThreads(__tstate); | |
5902 | if (PyErr_Occurred()) SWIG_fail; | |
5903 | } | |
15afbcd0 | 5904 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5905 | return resultobj; |
5906 | fail: | |
5907 | return NULL; | |
5908 | } | |
5909 | ||
5910 | ||
5911 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject *resultobj; | |
5913 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5914 | char result; | |
5915 | PyObject * obj0 = 0 ; | |
5916 | char *kwnames[] = { | |
5917 | (char *) "self", NULL | |
5918 | }; | |
5919 | ||
5920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5923 | { |
5924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5925 | result = (char)(arg1)->GetC(); | |
5926 | ||
5927 | wxPyEndAllowThreads(__tstate); | |
5928 | if (PyErr_Occurred()) SWIG_fail; | |
5929 | } | |
15afbcd0 | 5930 | resultobj = SWIG_FromChar((char)result); |
d14a1e28 RD |
5931 | return resultobj; |
5932 | fail: | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5940 | size_t result; | |
5941 | PyObject * obj0 = 0 ; | |
5942 | char *kwnames[] = { | |
5943 | (char *) "self", NULL | |
5944 | }; | |
5945 | ||
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5949 | { |
5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5951 | result = (size_t)(arg1)->LastRead(); | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) SWIG_fail; | |
5955 | } | |
15afbcd0 | 5956 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
5957 | return resultobj; |
5958 | fail: | |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
5963 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5964 | PyObject *resultobj; | |
5965 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5966 | bool result; | |
5967 | PyObject * obj0 = 0 ; | |
5968 | char *kwnames[] = { | |
5969 | (char *) "self", NULL | |
5970 | }; | |
5971 | ||
5972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
5974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5975 | { |
5976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5977 | result = (bool)(arg1)->CanRead(); | |
5978 | ||
5979 | wxPyEndAllowThreads(__tstate); | |
5980 | if (PyErr_Occurred()) SWIG_fail; | |
5981 | } | |
4f89f6a3 RD |
5982 | { |
5983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5984 | } | |
d14a1e28 RD |
5985 | return resultobj; |
5986 | fail: | |
5987 | return NULL; | |
5988 | } | |
5989 | ||
5990 | ||
5991 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5992 | PyObject *resultobj; | |
5993 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5994 | bool result; | |
5995 | PyObject * obj0 = 0 ; | |
5996 | char *kwnames[] = { | |
5997 | (char *) "self", NULL | |
5998 | }; | |
5999 | ||
6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6003 | { |
6004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6005 | result = (bool)(arg1)->Eof(); | |
6006 | ||
6007 | wxPyEndAllowThreads(__tstate); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
6009 | } | |
4f89f6a3 RD |
6010 | { |
6011 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6012 | } | |
d14a1e28 RD |
6013 | return resultobj; |
6014 | fail: | |
6015 | return NULL; | |
6016 | } | |
6017 | ||
6018 | ||
6019 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6020 | PyObject *resultobj; | |
6021 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6022 | char arg2 ; | |
6023 | bool result; | |
6024 | PyObject * obj0 = 0 ; | |
994141e6 | 6025 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6026 | char *kwnames[] = { |
6027 | (char *) "self",(char *) "c", NULL | |
6028 | }; | |
6029 | ||
994141e6 | 6030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6033 | arg2 = (char) SWIG_AsChar(obj1); | |
6034 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6035 | { |
6036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6037 | result = (bool)(arg1)->Ungetch(arg2); | |
6038 | ||
6039 | wxPyEndAllowThreads(__tstate); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
4f89f6a3 RD |
6042 | { |
6043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6044 | } | |
d14a1e28 RD |
6045 | return resultobj; |
6046 | fail: | |
6047 | return NULL; | |
6048 | } | |
6049 | ||
6050 | ||
6051 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6052 | PyObject *resultobj; | |
6053 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6054 | long arg2 ; | |
6055 | int arg3 = (int) wxFromStart ; | |
6056 | long result; | |
6057 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6058 | PyObject * obj1 = 0 ; |
6059 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6060 | char *kwnames[] = { |
6061 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6062 | }; | |
6063 | ||
994141e6 | 6064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6067 | arg2 = (long) SWIG_AsLong(obj1); | |
6068 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6069 | if (obj2) { |
15afbcd0 RD |
6070 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); |
6071 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6072 | } |
d14a1e28 RD |
6073 | { |
6074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6075 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6076 | ||
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
6079 | } | |
15afbcd0 | 6080 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6081 | return resultobj; |
6082 | fail: | |
6083 | return NULL; | |
6084 | } | |
6085 | ||
6086 | ||
6087 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6088 | PyObject *resultobj; | |
6089 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6090 | long result; | |
6091 | PyObject * obj0 = 0 ; | |
6092 | char *kwnames[] = { | |
6093 | (char *) "self", NULL | |
6094 | }; | |
6095 | ||
6096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, |
6098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6099 | { |
6100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6101 | result = (long)(arg1)->TellI(); | |
6102 | ||
6103 | wxPyEndAllowThreads(__tstate); | |
6104 | if (PyErr_Occurred()) SWIG_fail; | |
6105 | } | |
15afbcd0 | 6106 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
6107 | return resultobj; |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6114 | PyObject *obj; | |
6115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6116 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6117 | Py_INCREF(obj); | |
6118 | return Py_BuildValue((char *)""); | |
6119 | } | |
6120 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6123 | PyObject *arg2 = (PyObject *) 0 ; | |
6124 | PyObject * obj0 = 0 ; | |
6125 | PyObject * obj1 = 0 ; | |
6126 | char *kwnames[] = { | |
6127 | (char *) "self",(char *) "obj", NULL | |
6128 | }; | |
6129 | ||
6130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, |
6132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6133 | arg2 = obj1; |
6134 | { | |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | wxOutputStream_write(arg1,arg2); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | Py_INCREF(Py_None); resultobj = Py_None; | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
6148 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6149 | PyObject *obj; | |
6150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6151 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6152 | Py_INCREF(obj); | |
6153 | return Py_BuildValue((char *)""); | |
6154 | } | |
6155 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6156 | PyObject *resultobj; | |
6157 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6158 | wxString *arg2 = 0 ; | |
6159 | wxString *arg3 = 0 ; | |
6160 | wxString *arg4 = 0 ; | |
6161 | wxDateTime arg5 ; | |
6162 | wxFSFile *result; | |
6163 | wxPyInputStream *temp1 ; | |
6164 | bool created1 ; | |
e811c8ce RD |
6165 | bool temp2 = False ; |
6166 | bool temp3 = False ; | |
6167 | bool temp4 = False ; | |
d14a1e28 RD |
6168 | wxDateTime *argp5 ; |
6169 | PyObject * obj0 = 0 ; | |
6170 | PyObject * obj1 = 0 ; | |
6171 | PyObject * obj2 = 0 ; | |
6172 | PyObject * obj3 = 0 ; | |
6173 | PyObject * obj4 = 0 ; | |
6174 | char *kwnames[] = { | |
6175 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6176 | }; | |
6177 | ||
6178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6179 | { | |
6180 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6181 | arg1 = temp1->m_wxis; | |
e811c8ce | 6182 | created1 = False; |
d14a1e28 RD |
6183 | } else { |
6184 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 6185 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
6186 | if (arg1 == NULL) { |
6187 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6188 | SWIG_fail; | |
6189 | } | |
e811c8ce | 6190 | created1 = True; |
d14a1e28 RD |
6191 | } |
6192 | } | |
6193 | { | |
6194 | arg2 = wxString_in_helper(obj1); | |
6195 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6196 | temp2 = True; |
d14a1e28 RD |
6197 | } |
6198 | { | |
6199 | arg3 = wxString_in_helper(obj2); | |
6200 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6201 | temp3 = True; |
d14a1e28 RD |
6202 | } |
6203 | { | |
6204 | arg4 = wxString_in_helper(obj3); | |
6205 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6206 | temp4 = True; |
d14a1e28 | 6207 | } |
15afbcd0 RD |
6208 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, |
6209 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6210 | arg5 = *argp5; | |
d14a1e28 RD |
6211 | { |
6212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6213 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6214 | ||
6215 | wxPyEndAllowThreads(__tstate); | |
6216 | if (PyErr_Occurred()) SWIG_fail; | |
6217 | } | |
6218 | { | |
6219 | resultobj = wxPyMake_wxObject(result); | |
6220 | } | |
6221 | { | |
6222 | if (created1) | |
6223 | delete arg1; | |
6224 | } | |
6225 | { | |
6226 | if (temp2) | |
6227 | delete arg2; | |
6228 | } | |
6229 | { | |
6230 | if (temp3) | |
6231 | delete arg3; | |
6232 | } | |
6233 | { | |
6234 | if (temp4) | |
6235 | delete arg4; | |
6236 | } | |
6237 | return resultobj; | |
6238 | fail: | |
6239 | { | |
6240 | if (created1) | |
6241 | delete arg1; | |
6242 | } | |
6243 | { | |
6244 | if (temp2) | |
6245 | delete arg2; | |
6246 | } | |
6247 | { | |
6248 | if (temp3) | |
6249 | delete arg3; | |
6250 | } | |
6251 | { | |
6252 | if (temp4) | |
6253 | delete arg4; | |
6254 | } | |
6255 | return NULL; | |
6256 | } | |
6257 | ||
6258 | ||
6259 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6260 | PyObject *resultobj; | |
6261 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6262 | PyObject * obj0 = 0 ; | |
6263 | char *kwnames[] = { | |
6264 | (char *) "self", NULL | |
6265 | }; | |
6266 | ||
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6270 | { |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | delete arg1; | |
6273 | ||
6274 | wxPyEndAllowThreads(__tstate); | |
6275 | if (PyErr_Occurred()) SWIG_fail; | |
6276 | } | |
6277 | Py_INCREF(Py_None); resultobj = Py_None; | |
6278 | return resultobj; | |
6279 | fail: | |
6280 | return NULL; | |
6281 | } | |
6282 | ||
6283 | ||
6284 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject *resultobj; | |
6286 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6287 | wxInputStream *result; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | char *kwnames[] = { | |
6290 | (char *) "self", NULL | |
6291 | }; | |
6292 | ||
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6296 | { |
6297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6298 | result = (wxInputStream *)(arg1)->GetStream(); | |
6299 | ||
6300 | wxPyEndAllowThreads(__tstate); | |
6301 | if (PyErr_Occurred()) SWIG_fail; | |
6302 | } | |
6303 | { | |
6304 | wxPyInputStream * _ptr = NULL; | |
6305 | ||
6306 | if (result) { | |
6307 | _ptr = new wxPyInputStream(result); | |
6308 | } | |
e811c8ce | 6309 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); |
d14a1e28 RD |
6310 | } |
6311 | return resultobj; | |
6312 | fail: | |
6313 | return NULL; | |
6314 | } | |
6315 | ||
6316 | ||
6317 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6318 | PyObject *resultobj; | |
6319 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6320 | wxString *result; | |
6321 | PyObject * obj0 = 0 ; | |
6322 | char *kwnames[] = { | |
6323 | (char *) "self", NULL | |
6324 | }; | |
6325 | ||
6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6329 | { |
6330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6331 | { | |
6332 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6333 | result = (wxString *) &_result_ref; | |
6334 | } | |
6335 | ||
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
cc6dd355 RD |
6339 | { |
6340 | #if wxUSE_UNICODE | |
6341 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6342 | #else | |
6343 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6344 | #endif | |
6345 | } | |
d14a1e28 RD |
6346 | return resultobj; |
6347 | fail: | |
6348 | return NULL; | |
6349 | } | |
6350 | ||
6351 | ||
6352 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6353 | PyObject *resultobj; | |
6354 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6355 | wxString *result; | |
6356 | PyObject * obj0 = 0 ; | |
6357 | char *kwnames[] = { | |
6358 | (char *) "self", NULL | |
6359 | }; | |
6360 | ||
6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6364 | { |
6365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6366 | { | |
6367 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6368 | result = (wxString *) &_result_ref; | |
6369 | } | |
6370 | ||
6371 | wxPyEndAllowThreads(__tstate); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
cc6dd355 RD |
6374 | { |
6375 | #if wxUSE_UNICODE | |
6376 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6377 | #else | |
6378 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6379 | #endif | |
6380 | } | |
d14a1e28 RD |
6381 | return resultobj; |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
6387 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject *resultobj; | |
6389 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6390 | wxString *result; | |
6391 | PyObject * obj0 = 0 ; | |
6392 | char *kwnames[] = { | |
6393 | (char *) "self", NULL | |
6394 | }; | |
6395 | ||
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6399 | { |
6400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6401 | { | |
6402 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6403 | result = (wxString *) &_result_ref; | |
6404 | } | |
6405 | ||
6406 | wxPyEndAllowThreads(__tstate); | |
6407 | if (PyErr_Occurred()) SWIG_fail; | |
6408 | } | |
cc6dd355 RD |
6409 | { |
6410 | #if wxUSE_UNICODE | |
6411 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6412 | #else | |
6413 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6414 | #endif | |
6415 | } | |
d14a1e28 RD |
6416 | return resultobj; |
6417 | fail: | |
6418 | return NULL; | |
6419 | } | |
6420 | ||
6421 | ||
6422 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject *resultobj; | |
6424 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6425 | wxDateTime result; | |
6426 | PyObject * obj0 = 0 ; | |
6427 | char *kwnames[] = { | |
6428 | (char *) "self", NULL | |
6429 | }; | |
6430 | ||
6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, |
6433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6434 | { |
6435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6436 | result = (arg1)->GetModificationTime(); | |
6437 | ||
6438 | wxPyEndAllowThreads(__tstate); | |
6439 | if (PyErr_Occurred()) SWIG_fail; | |
6440 | } | |
6441 | { | |
6442 | wxDateTime * resultptr; | |
6443 | resultptr = new wxDateTime((wxDateTime &) result); | |
15afbcd0 | 6444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); |
d14a1e28 RD |
6445 | } |
6446 | return resultobj; | |
6447 | fail: | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6453 | PyObject *obj; | |
6454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6455 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6456 | Py_INCREF(obj); | |
6457 | return Py_BuildValue((char *)""); | |
6458 | } | |
6459 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6460 | PyObject *obj; | |
6461 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6462 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6463 | Py_INCREF(obj); | |
6464 | return Py_BuildValue((char *)""); | |
6465 | } | |
6466 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6467 | PyObject *resultobj; | |
6468 | wxPyFileSystemHandler *result; | |
6469 | char *kwnames[] = { | |
6470 | NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6474 | { | |
6475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6476 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6477 | ||
6478 | wxPyEndAllowThreads(__tstate); | |
6479 | if (PyErr_Occurred()) SWIG_fail; | |
6480 | } | |
15afbcd0 | 6481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); |
d14a1e28 RD |
6482 | return resultobj; |
6483 | fail: | |
6484 | return NULL; | |
6485 | } | |
6486 | ||
6487 | ||
6488 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6489 | PyObject *resultobj; | |
6490 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6491 | PyObject *arg2 = (PyObject *) 0 ; | |
6492 | PyObject *arg3 = (PyObject *) 0 ; | |
6493 | PyObject * obj0 = 0 ; | |
6494 | PyObject * obj1 = 0 ; | |
6495 | PyObject * obj2 = 0 ; | |
6496 | char *kwnames[] = { | |
6497 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6498 | }; | |
6499 | ||
6500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6503 | arg2 = obj1; |
6504 | arg3 = obj2; | |
6505 | { | |
6506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6507 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6508 | ||
6509 | wxPyEndAllowThreads(__tstate); | |
6510 | if (PyErr_Occurred()) SWIG_fail; | |
6511 | } | |
6512 | Py_INCREF(Py_None); resultobj = Py_None; | |
6513 | return resultobj; | |
6514 | fail: | |
6515 | return NULL; | |
6516 | } | |
6517 | ||
6518 | ||
6519 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6520 | PyObject *resultobj; | |
6521 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6522 | wxString *arg2 = 0 ; | |
6523 | bool result; | |
e811c8ce | 6524 | bool temp2 = False ; |
d14a1e28 RD |
6525 | PyObject * obj0 = 0 ; |
6526 | PyObject * obj1 = 0 ; | |
6527 | char *kwnames[] = { | |
6528 | (char *) "self",(char *) "location", NULL | |
6529 | }; | |
6530 | ||
6531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6534 | { |
6535 | arg2 = wxString_in_helper(obj1); | |
6536 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6537 | temp2 = True; |
d14a1e28 RD |
6538 | } |
6539 | { | |
6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6541 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6542 | ||
6543 | wxPyEndAllowThreads(__tstate); | |
6544 | if (PyErr_Occurred()) SWIG_fail; | |
6545 | } | |
4f89f6a3 RD |
6546 | { |
6547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6548 | } | |
d14a1e28 RD |
6549 | { |
6550 | if (temp2) | |
6551 | delete arg2; | |
6552 | } | |
6553 | return resultobj; | |
6554 | fail: | |
6555 | { | |
6556 | if (temp2) | |
6557 | delete arg2; | |
6558 | } | |
6559 | return NULL; | |
6560 | } | |
6561 | ||
6562 | ||
6563 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6564 | PyObject *resultobj; | |
6565 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6566 | wxFileSystem *arg2 = 0 ; | |
6567 | wxString *arg3 = 0 ; | |
6568 | wxFSFile *result; | |
e811c8ce | 6569 | bool temp3 = False ; |
d14a1e28 RD |
6570 | PyObject * obj0 = 0 ; |
6571 | PyObject * obj1 = 0 ; | |
6572 | PyObject * obj2 = 0 ; | |
6573 | char *kwnames[] = { | |
6574 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6575 | }; | |
6576 | ||
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6581 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6582 | SWIG_fail; | |
d14a1e28 | 6583 | if (arg2 == NULL) { |
15afbcd0 RD |
6584 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6585 | SWIG_fail; | |
d14a1e28 RD |
6586 | } |
6587 | { | |
6588 | arg3 = wxString_in_helper(obj2); | |
6589 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6590 | temp3 = True; |
d14a1e28 RD |
6591 | } |
6592 | { | |
6593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6594 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6595 | ||
6596 | wxPyEndAllowThreads(__tstate); | |
6597 | if (PyErr_Occurred()) SWIG_fail; | |
6598 | } | |
6599 | { | |
6600 | resultobj = wxPyMake_wxObject(result); | |
6601 | } | |
6602 | { | |
6603 | if (temp3) | |
6604 | delete arg3; | |
6605 | } | |
6606 | return resultobj; | |
6607 | fail: | |
6608 | { | |
6609 | if (temp3) | |
6610 | delete arg3; | |
6611 | } | |
6612 | return NULL; | |
6613 | } | |
6614 | ||
6615 | ||
6616 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6617 | PyObject *resultobj; | |
6618 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6619 | wxString *arg2 = 0 ; | |
6620 | int arg3 = (int) 0 ; | |
6621 | wxString result; | |
e811c8ce | 6622 | bool temp2 = False ; |
d14a1e28 RD |
6623 | PyObject * obj0 = 0 ; |
6624 | PyObject * obj1 = 0 ; | |
994141e6 | 6625 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6626 | char *kwnames[] = { |
6627 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6628 | }; | |
6629 | ||
994141e6 | 6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6633 | { |
6634 | arg2 = wxString_in_helper(obj1); | |
6635 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6636 | temp2 = True; |
d14a1e28 | 6637 | } |
994141e6 | 6638 | if (obj2) { |
15afbcd0 RD |
6639 | arg3 = (int) SWIG_AsInt(obj2); |
6640 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6641 | } |
d14a1e28 RD |
6642 | { |
6643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6644 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6645 | ||
6646 | wxPyEndAllowThreads(__tstate); | |
6647 | if (PyErr_Occurred()) SWIG_fail; | |
6648 | } | |
6649 | { | |
6650 | #if wxUSE_UNICODE | |
6651 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6652 | #else | |
6653 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6654 | #endif | |
6655 | } | |
6656 | { | |
6657 | if (temp2) | |
6658 | delete arg2; | |
6659 | } | |
6660 | return resultobj; | |
6661 | fail: | |
6662 | { | |
6663 | if (temp2) | |
6664 | delete arg2; | |
6665 | } | |
6666 | return NULL; | |
6667 | } | |
6668 | ||
6669 | ||
6670 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6671 | PyObject *resultobj; | |
6672 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6673 | wxString result; | |
6674 | PyObject * obj0 = 0 ; | |
6675 | char *kwnames[] = { | |
6676 | (char *) "self", NULL | |
6677 | }; | |
6678 | ||
6679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6682 | { |
6683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6684 | result = (arg1)->FindNext(); | |
6685 | ||
6686 | wxPyEndAllowThreads(__tstate); | |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
6688 | } | |
6689 | { | |
6690 | #if wxUSE_UNICODE | |
6691 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6692 | #else | |
6693 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6694 | #endif | |
6695 | } | |
6696 | return resultobj; | |
6697 | fail: | |
6698 | return NULL; | |
6699 | } | |
6700 | ||
6701 | ||
6702 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6703 | PyObject *resultobj; | |
6704 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6705 | wxString *arg2 = 0 ; | |
6706 | wxString result; | |
e811c8ce | 6707 | bool temp2 = False ; |
d14a1e28 RD |
6708 | PyObject * obj0 = 0 ; |
6709 | PyObject * obj1 = 0 ; | |
6710 | char *kwnames[] = { | |
6711 | (char *) "self",(char *) "location", NULL | |
6712 | }; | |
6713 | ||
6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6717 | { |
6718 | arg2 = wxString_in_helper(obj1); | |
6719 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6720 | temp2 = True; |
d14a1e28 RD |
6721 | } |
6722 | { | |
6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6724 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6725 | ||
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
6729 | { | |
6730 | #if wxUSE_UNICODE | |
6731 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6732 | #else | |
6733 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6734 | #endif | |
6735 | } | |
6736 | { | |
6737 | if (temp2) | |
6738 | delete arg2; | |
6739 | } | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | { | |
6743 | if (temp2) | |
6744 | delete arg2; | |
6745 | } | |
6746 | return NULL; | |
6747 | } | |
6748 | ||
6749 | ||
6750 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6751 | PyObject *resultobj; | |
6752 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6753 | wxString *arg2 = 0 ; | |
6754 | wxString result; | |
e811c8ce | 6755 | bool temp2 = False ; |
d14a1e28 RD |
6756 | PyObject * obj0 = 0 ; |
6757 | PyObject * obj1 = 0 ; | |
6758 | char *kwnames[] = { | |
6759 | (char *) "self",(char *) "location", NULL | |
6760 | }; | |
6761 | ||
6762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6765 | { |
6766 | arg2 = wxString_in_helper(obj1); | |
6767 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6768 | temp2 = True; |
d14a1e28 RD |
6769 | } |
6770 | { | |
6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6772 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6773 | ||
6774 | wxPyEndAllowThreads(__tstate); | |
6775 | if (PyErr_Occurred()) SWIG_fail; | |
6776 | } | |
6777 | { | |
6778 | #if wxUSE_UNICODE | |
6779 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6780 | #else | |
6781 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6782 | #endif | |
6783 | } | |
6784 | { | |
6785 | if (temp2) | |
6786 | delete arg2; | |
6787 | } | |
6788 | return resultobj; | |
6789 | fail: | |
6790 | { | |
6791 | if (temp2) | |
6792 | delete arg2; | |
6793 | } | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
6798 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6799 | PyObject *resultobj; | |
6800 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6801 | wxString *arg2 = 0 ; | |
6802 | wxString result; | |
e811c8ce | 6803 | bool temp2 = False ; |
d14a1e28 RD |
6804 | PyObject * obj0 = 0 ; |
6805 | PyObject * obj1 = 0 ; | |
6806 | char *kwnames[] = { | |
6807 | (char *) "self",(char *) "location", NULL | |
6808 | }; | |
6809 | ||
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6813 | { |
6814 | arg2 = wxString_in_helper(obj1); | |
6815 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6816 | temp2 = True; |
d14a1e28 RD |
6817 | } |
6818 | { | |
6819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6820 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6821 | ||
6822 | wxPyEndAllowThreads(__tstate); | |
6823 | if (PyErr_Occurred()) SWIG_fail; | |
6824 | } | |
6825 | { | |
6826 | #if wxUSE_UNICODE | |
6827 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6828 | #else | |
6829 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6830 | #endif | |
6831 | } | |
6832 | { | |
6833 | if (temp2) | |
6834 | delete arg2; | |
6835 | } | |
6836 | return resultobj; | |
6837 | fail: | |
6838 | { | |
6839 | if (temp2) | |
6840 | delete arg2; | |
6841 | } | |
6842 | return NULL; | |
6843 | } | |
6844 | ||
6845 | ||
6846 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6847 | PyObject *resultobj; | |
6848 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6849 | wxString *arg2 = 0 ; | |
6850 | wxString result; | |
e811c8ce | 6851 | bool temp2 = False ; |
d14a1e28 RD |
6852 | PyObject * obj0 = 0 ; |
6853 | PyObject * obj1 = 0 ; | |
6854 | char *kwnames[] = { | |
6855 | (char *) "self",(char *) "location", NULL | |
6856 | }; | |
6857 | ||
6858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6861 | { |
6862 | arg2 = wxString_in_helper(obj1); | |
6863 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6864 | temp2 = True; |
d14a1e28 RD |
6865 | } |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6868 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6869 | ||
6870 | wxPyEndAllowThreads(__tstate); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | } | |
6873 | { | |
6874 | #if wxUSE_UNICODE | |
6875 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6876 | #else | |
6877 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6878 | #endif | |
6879 | } | |
6880 | { | |
6881 | if (temp2) | |
6882 | delete arg2; | |
6883 | } | |
6884 | return resultobj; | |
6885 | fail: | |
6886 | { | |
6887 | if (temp2) | |
6888 | delete arg2; | |
6889 | } | |
6890 | return NULL; | |
6891 | } | |
6892 | ||
6893 | ||
6894 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6895 | PyObject *resultobj; | |
6896 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6897 | wxString *arg2 = 0 ; | |
6898 | wxString result; | |
e811c8ce | 6899 | bool temp2 = False ; |
d14a1e28 RD |
6900 | PyObject * obj0 = 0 ; |
6901 | PyObject * obj1 = 0 ; | |
6902 | char *kwnames[] = { | |
6903 | (char *) "self",(char *) "location", NULL | |
6904 | }; | |
6905 | ||
6906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, |
6908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6909 | { |
6910 | arg2 = wxString_in_helper(obj1); | |
6911 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6912 | temp2 = True; |
d14a1e28 RD |
6913 | } |
6914 | { | |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) SWIG_fail; | |
6920 | } | |
6921 | { | |
6922 | #if wxUSE_UNICODE | |
6923 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6924 | #else | |
6925 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6926 | #endif | |
6927 | } | |
6928 | { | |
6929 | if (temp2) | |
6930 | delete arg2; | |
6931 | } | |
6932 | return resultobj; | |
6933 | fail: | |
6934 | { | |
6935 | if (temp2) | |
6936 | delete arg2; | |
6937 | } | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6943 | PyObject *obj; | |
6944 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6945 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6946 | Py_INCREF(obj); | |
6947 | return Py_BuildValue((char *)""); | |
6948 | } | |
6949 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject *resultobj; | |
6951 | wxFileSystem *result; | |
6952 | char *kwnames[] = { | |
6953 | NULL | |
6954 | }; | |
6955 | ||
6956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6957 | { | |
6958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6959 | result = (wxFileSystem *)new wxFileSystem(); | |
6960 | ||
6961 | wxPyEndAllowThreads(__tstate); | |
6962 | if (PyErr_Occurred()) SWIG_fail; | |
6963 | } | |
6964 | { | |
6965 | resultobj = wxPyMake_wxObject(result); | |
6966 | } | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | return NULL; | |
6970 | } | |
6971 | ||
6972 | ||
6973 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6974 | PyObject *resultobj; | |
6975 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6976 | PyObject * obj0 = 0 ; | |
6977 | char *kwnames[] = { | |
6978 | (char *) "self", NULL | |
6979 | }; | |
6980 | ||
6981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
6983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6984 | { |
6985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6986 | delete arg1; | |
6987 | ||
6988 | wxPyEndAllowThreads(__tstate); | |
6989 | if (PyErr_Occurred()) SWIG_fail; | |
6990 | } | |
6991 | Py_INCREF(Py_None); resultobj = Py_None; | |
6992 | return resultobj; | |
6993 | fail: | |
6994 | return NULL; | |
6995 | } | |
6996 | ||
6997 | ||
6998 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6999 | PyObject *resultobj; | |
7000 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7001 | wxString *arg2 = 0 ; | |
e811c8ce RD |
7002 | bool arg3 = (bool) False ; |
7003 | bool temp2 = False ; | |
d14a1e28 RD |
7004 | PyObject * obj0 = 0 ; |
7005 | PyObject * obj1 = 0 ; | |
7006 | PyObject * obj2 = 0 ; | |
7007 | char *kwnames[] = { | |
7008 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7009 | }; | |
7010 | ||
7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7014 | { |
7015 | arg2 = wxString_in_helper(obj1); | |
7016 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7017 | temp2 = True; |
d14a1e28 RD |
7018 | } |
7019 | if (obj2) { | |
15afbcd0 RD |
7020 | arg3 = (bool) SWIG_AsBool(obj2); |
7021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7022 | } |
7023 | { | |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
7030 | Py_INCREF(Py_None); resultobj = Py_None; | |
7031 | { | |
7032 | if (temp2) | |
7033 | delete arg2; | |
7034 | } | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | { | |
7038 | if (temp2) | |
7039 | delete arg2; | |
7040 | } | |
7041 | return NULL; | |
7042 | } | |
7043 | ||
7044 | ||
7045 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7046 | PyObject *resultobj; | |
7047 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7048 | wxString result; | |
7049 | PyObject * obj0 = 0 ; | |
7050 | char *kwnames[] = { | |
7051 | (char *) "self", NULL | |
7052 | }; | |
7053 | ||
7054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7057 | { |
7058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7059 | result = (arg1)->GetPath(); | |
7060 | ||
7061 | wxPyEndAllowThreads(__tstate); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | { | |
7065 | #if wxUSE_UNICODE | |
7066 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7067 | #else | |
7068 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7069 | #endif | |
7070 | } | |
7071 | return resultobj; | |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
7077 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7078 | PyObject *resultobj; | |
7079 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7080 | wxString *arg2 = 0 ; | |
7081 | wxFSFile *result; | |
e811c8ce | 7082 | bool temp2 = False ; |
d14a1e28 RD |
7083 | PyObject * obj0 = 0 ; |
7084 | PyObject * obj1 = 0 ; | |
7085 | char *kwnames[] = { | |
7086 | (char *) "self",(char *) "location", NULL | |
7087 | }; | |
7088 | ||
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7092 | { |
7093 | arg2 = wxString_in_helper(obj1); | |
7094 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7095 | temp2 = True; |
d14a1e28 RD |
7096 | } |
7097 | { | |
7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7099 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7100 | ||
7101 | wxPyEndAllowThreads(__tstate); | |
7102 | if (PyErr_Occurred()) SWIG_fail; | |
7103 | } | |
7104 | { | |
7105 | resultobj = wxPyMake_wxObject(result); | |
7106 | } | |
7107 | { | |
7108 | if (temp2) | |
7109 | delete arg2; | |
7110 | } | |
7111 | return resultobj; | |
7112 | fail: | |
7113 | { | |
7114 | if (temp2) | |
7115 | delete arg2; | |
7116 | } | |
7117 | return NULL; | |
7118 | } | |
7119 | ||
7120 | ||
7121 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7122 | PyObject *resultobj; | |
7123 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7124 | wxString *arg2 = 0 ; | |
7125 | int arg3 = (int) 0 ; | |
7126 | wxString result; | |
e811c8ce | 7127 | bool temp2 = False ; |
d14a1e28 RD |
7128 | PyObject * obj0 = 0 ; |
7129 | PyObject * obj1 = 0 ; | |
994141e6 | 7130 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7131 | char *kwnames[] = { |
7132 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7133 | }; | |
7134 | ||
994141e6 | 7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7138 | { |
7139 | arg2 = wxString_in_helper(obj1); | |
7140 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7141 | temp2 = True; |
d14a1e28 | 7142 | } |
994141e6 | 7143 | if (obj2) { |
15afbcd0 RD |
7144 | arg3 = (int) SWIG_AsInt(obj2); |
7145 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7146 | } |
d14a1e28 RD |
7147 | { |
7148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7149 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7150 | ||
7151 | wxPyEndAllowThreads(__tstate); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | { | |
7155 | #if wxUSE_UNICODE | |
7156 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7157 | #else | |
7158 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7159 | #endif | |
7160 | } | |
7161 | { | |
7162 | if (temp2) | |
7163 | delete arg2; | |
7164 | } | |
7165 | return resultobj; | |
7166 | fail: | |
7167 | { | |
7168 | if (temp2) | |
7169 | delete arg2; | |
7170 | } | |
7171 | return NULL; | |
7172 | } | |
7173 | ||
7174 | ||
7175 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7176 | PyObject *resultobj; | |
7177 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7178 | wxString result; | |
7179 | PyObject * obj0 = 0 ; | |
7180 | char *kwnames[] = { | |
7181 | (char *) "self", NULL | |
7182 | }; | |
7183 | ||
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, |
7186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7187 | { |
7188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7189 | result = (arg1)->FindNext(); | |
7190 | ||
7191 | wxPyEndAllowThreads(__tstate); | |
7192 | if (PyErr_Occurred()) SWIG_fail; | |
7193 | } | |
7194 | { | |
7195 | #if wxUSE_UNICODE | |
7196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7197 | #else | |
7198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7199 | #endif | |
7200 | } | |
7201 | return resultobj; | |
7202 | fail: | |
7203 | return NULL; | |
7204 | } | |
7205 | ||
7206 | ||
7207 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7208 | PyObject *resultobj; | |
7209 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7210 | PyObject * obj0 = 0 ; | |
7211 | char *kwnames[] = { | |
7212 | (char *) "handler", NULL | |
7213 | }; | |
7214 | ||
7215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, |
7217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7218 | { |
7219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7220 | wxFileSystem::AddHandler(arg1); | |
7221 | ||
7222 | wxPyEndAllowThreads(__tstate); | |
7223 | if (PyErr_Occurred()) SWIG_fail; | |
7224 | } | |
7225 | Py_INCREF(Py_None); resultobj = Py_None; | |
7226 | return resultobj; | |
7227 | fail: | |
7228 | return NULL; | |
7229 | } | |
7230 | ||
7231 | ||
7232 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7233 | PyObject *resultobj; | |
7234 | char *kwnames[] = { | |
7235 | NULL | |
7236 | }; | |
7237 | ||
7238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7239 | { | |
7240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7241 | wxFileSystem::CleanUpHandlers(); | |
7242 | ||
7243 | wxPyEndAllowThreads(__tstate); | |
7244 | if (PyErr_Occurred()) SWIG_fail; | |
7245 | } | |
7246 | Py_INCREF(Py_None); resultobj = Py_None; | |
7247 | return resultobj; | |
7248 | fail: | |
7249 | return NULL; | |
7250 | } | |
7251 | ||
7252 | ||
7253 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7254 | PyObject *resultobj; | |
7255 | wxString *arg1 = 0 ; | |
7256 | wxString result; | |
e811c8ce | 7257 | bool temp1 = False ; |
d14a1e28 RD |
7258 | PyObject * obj0 = 0 ; |
7259 | char *kwnames[] = { | |
7260 | (char *) "filename", NULL | |
7261 | }; | |
7262 | ||
7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7264 | { | |
7265 | arg1 = wxString_in_helper(obj0); | |
7266 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7267 | temp1 = True; |
d14a1e28 RD |
7268 | } |
7269 | { | |
7270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7271 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7272 | ||
7273 | wxPyEndAllowThreads(__tstate); | |
7274 | if (PyErr_Occurred()) SWIG_fail; | |
7275 | } | |
7276 | { | |
7277 | #if wxUSE_UNICODE | |
7278 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7279 | #else | |
7280 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7281 | #endif | |
7282 | } | |
7283 | { | |
7284 | if (temp1) | |
7285 | delete arg1; | |
7286 | } | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | { | |
7290 | if (temp1) | |
7291 | delete arg1; | |
7292 | } | |
7293 | return NULL; | |
7294 | } | |
7295 | ||
7296 | ||
7297 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7298 | PyObject *obj; | |
7299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7300 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7301 | Py_INCREF(obj); | |
7302 | return Py_BuildValue((char *)""); | |
7303 | } | |
7304 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7305 | PyObject *resultobj; | |
7306 | wxString *arg1 = 0 ; | |
7307 | wxString result; | |
e811c8ce | 7308 | bool temp1 = False ; |
d14a1e28 RD |
7309 | PyObject * obj0 = 0 ; |
7310 | char *kwnames[] = { | |
7311 | (char *) "url", NULL | |
7312 | }; | |
7313 | ||
7314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7315 | { | |
7316 | arg1 = wxString_in_helper(obj0); | |
7317 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7318 | temp1 = True; |
d14a1e28 RD |
7319 | } |
7320 | { | |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7322 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7323 | ||
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
7326 | } | |
7327 | { | |
7328 | #if wxUSE_UNICODE | |
7329 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7330 | #else | |
7331 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7332 | #endif | |
7333 | } | |
7334 | { | |
7335 | if (temp1) | |
7336 | delete arg1; | |
7337 | } | |
7338 | return resultobj; | |
7339 | fail: | |
7340 | { | |
7341 | if (temp1) | |
7342 | delete arg1; | |
7343 | } | |
7344 | return NULL; | |
7345 | } | |
7346 | ||
7347 | ||
7348 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7349 | PyObject *resultobj; | |
7350 | wxInternetFSHandler *result; | |
7351 | char *kwnames[] = { | |
7352 | NULL | |
7353 | }; | |
7354 | ||
7355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7356 | { | |
7357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7358 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7359 | ||
7360 | wxPyEndAllowThreads(__tstate); | |
7361 | if (PyErr_Occurred()) SWIG_fail; | |
7362 | } | |
15afbcd0 | 7363 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); |
d14a1e28 RD |
7364 | return resultobj; |
7365 | fail: | |
7366 | return NULL; | |
7367 | } | |
7368 | ||
7369 | ||
7370 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7371 | PyObject *resultobj; | |
7372 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7373 | wxString *arg2 = 0 ; | |
7374 | bool result; | |
e811c8ce | 7375 | bool temp2 = False ; |
d14a1e28 RD |
7376 | PyObject * obj0 = 0 ; |
7377 | PyObject * obj1 = 0 ; | |
7378 | char *kwnames[] = { | |
7379 | (char *) "self",(char *) "location", NULL | |
7380 | }; | |
7381 | ||
7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7385 | { |
7386 | arg2 = wxString_in_helper(obj1); | |
7387 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7388 | temp2 = True; |
d14a1e28 RD |
7389 | } |
7390 | { | |
7391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7392 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7393 | ||
7394 | wxPyEndAllowThreads(__tstate); | |
7395 | if (PyErr_Occurred()) SWIG_fail; | |
7396 | } | |
4f89f6a3 RD |
7397 | { |
7398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7399 | } | |
d14a1e28 RD |
7400 | { |
7401 | if (temp2) | |
7402 | delete arg2; | |
7403 | } | |
7404 | return resultobj; | |
7405 | fail: | |
7406 | { | |
7407 | if (temp2) | |
7408 | delete arg2; | |
7409 | } | |
7410 | return NULL; | |
7411 | } | |
7412 | ||
7413 | ||
7414 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7415 | PyObject *resultobj; | |
7416 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7417 | wxFileSystem *arg2 = 0 ; | |
7418 | wxString *arg3 = 0 ; | |
7419 | wxFSFile *result; | |
e811c8ce | 7420 | bool temp3 = False ; |
d14a1e28 RD |
7421 | PyObject * obj0 = 0 ; |
7422 | PyObject * obj1 = 0 ; | |
7423 | PyObject * obj2 = 0 ; | |
7424 | char *kwnames[] = { | |
7425 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7426 | }; | |
7427 | ||
7428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, |
7430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7431 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7432 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7433 | SWIG_fail; | |
d14a1e28 | 7434 | if (arg2 == NULL) { |
15afbcd0 RD |
7435 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7436 | SWIG_fail; | |
d14a1e28 RD |
7437 | } |
7438 | { | |
7439 | arg3 = wxString_in_helper(obj2); | |
7440 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7441 | temp3 = True; |
d14a1e28 RD |
7442 | } |
7443 | { | |
7444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7445 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7446 | ||
7447 | wxPyEndAllowThreads(__tstate); | |
7448 | if (PyErr_Occurred()) SWIG_fail; | |
7449 | } | |
7450 | { | |
7451 | resultobj = wxPyMake_wxObject(result); | |
7452 | } | |
7453 | { | |
7454 | if (temp3) | |
7455 | delete arg3; | |
7456 | } | |
7457 | return resultobj; | |
7458 | fail: | |
7459 | { | |
7460 | if (temp3) | |
7461 | delete arg3; | |
7462 | } | |
7463 | return NULL; | |
7464 | } | |
7465 | ||
7466 | ||
7467 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7468 | PyObject *obj; | |
7469 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7470 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7471 | Py_INCREF(obj); | |
7472 | return Py_BuildValue((char *)""); | |
7473 | } | |
7474 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7475 | PyObject *resultobj; | |
7476 | wxZipFSHandler *result; | |
7477 | char *kwnames[] = { | |
7478 | NULL | |
7479 | }; | |
7480 | ||
7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
15afbcd0 | 7489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); |
d14a1e28 RD |
7490 | return resultobj; |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj; | |
7498 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7499 | wxString *arg2 = 0 ; | |
7500 | bool result; | |
e811c8ce | 7501 | bool temp2 = False ; |
d14a1e28 RD |
7502 | PyObject * obj0 = 0 ; |
7503 | PyObject * obj1 = 0 ; | |
7504 | char *kwnames[] = { | |
7505 | (char *) "self",(char *) "location", NULL | |
7506 | }; | |
7507 | ||
7508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7511 | { |
7512 | arg2 = wxString_in_helper(obj1); | |
7513 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7514 | temp2 = True; |
d14a1e28 RD |
7515 | } |
7516 | { | |
7517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7518 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7519 | ||
7520 | wxPyEndAllowThreads(__tstate); | |
7521 | if (PyErr_Occurred()) SWIG_fail; | |
7522 | } | |
4f89f6a3 RD |
7523 | { |
7524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7525 | } | |
d14a1e28 RD |
7526 | { |
7527 | if (temp2) | |
7528 | delete arg2; | |
7529 | } | |
7530 | return resultobj; | |
7531 | fail: | |
7532 | { | |
7533 | if (temp2) | |
7534 | delete arg2; | |
7535 | } | |
7536 | return NULL; | |
7537 | } | |
7538 | ||
7539 | ||
7540 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject *resultobj; | |
7542 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7543 | wxFileSystem *arg2 = 0 ; | |
7544 | wxString *arg3 = 0 ; | |
7545 | wxFSFile *result; | |
e811c8ce | 7546 | bool temp3 = False ; |
d14a1e28 RD |
7547 | PyObject * obj0 = 0 ; |
7548 | PyObject * obj1 = 0 ; | |
7549 | PyObject * obj2 = 0 ; | |
7550 | char *kwnames[] = { | |
7551 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7552 | }; | |
7553 | ||
7554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7558 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7559 | SWIG_fail; | |
d14a1e28 | 7560 | if (arg2 == NULL) { |
15afbcd0 RD |
7561 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7562 | SWIG_fail; | |
d14a1e28 RD |
7563 | } |
7564 | { | |
7565 | arg3 = wxString_in_helper(obj2); | |
7566 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7567 | temp3 = True; |
d14a1e28 RD |
7568 | } |
7569 | { | |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
7576 | { | |
7577 | resultobj = wxPyMake_wxObject(result); | |
7578 | } | |
7579 | { | |
7580 | if (temp3) | |
7581 | delete arg3; | |
7582 | } | |
7583 | return resultobj; | |
7584 | fail: | |
7585 | { | |
7586 | if (temp3) | |
7587 | delete arg3; | |
7588 | } | |
7589 | return NULL; | |
7590 | } | |
7591 | ||
7592 | ||
7593 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7594 | PyObject *resultobj; | |
7595 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7596 | wxString *arg2 = 0 ; | |
7597 | int arg3 = (int) 0 ; | |
7598 | wxString result; | |
e811c8ce | 7599 | bool temp2 = False ; |
d14a1e28 RD |
7600 | PyObject * obj0 = 0 ; |
7601 | PyObject * obj1 = 0 ; | |
994141e6 | 7602 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7603 | char *kwnames[] = { |
7604 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7605 | }; | |
7606 | ||
994141e6 | 7607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7610 | { |
7611 | arg2 = wxString_in_helper(obj1); | |
7612 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7613 | temp2 = True; |
d14a1e28 | 7614 | } |
994141e6 | 7615 | if (obj2) { |
15afbcd0 RD |
7616 | arg3 = (int) SWIG_AsInt(obj2); |
7617 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7618 | } |
d14a1e28 RD |
7619 | { |
7620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7621 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7622 | ||
7623 | wxPyEndAllowThreads(__tstate); | |
7624 | if (PyErr_Occurred()) SWIG_fail; | |
7625 | } | |
7626 | { | |
7627 | #if wxUSE_UNICODE | |
7628 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7629 | #else | |
7630 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7631 | #endif | |
7632 | } | |
7633 | { | |
7634 | if (temp2) | |
7635 | delete arg2; | |
7636 | } | |
7637 | return resultobj; | |
7638 | fail: | |
7639 | { | |
7640 | if (temp2) | |
7641 | delete arg2; | |
7642 | } | |
7643 | return NULL; | |
7644 | } | |
7645 | ||
7646 | ||
7647 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7648 | PyObject *resultobj; | |
7649 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7650 | wxString result; | |
7651 | PyObject * obj0 = 0 ; | |
7652 | char *kwnames[] = { | |
7653 | (char *) "self", NULL | |
7654 | }; | |
7655 | ||
7656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, |
7658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7659 | { |
7660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7661 | result = (arg1)->FindNext(); | |
7662 | ||
7663 | wxPyEndAllowThreads(__tstate); | |
7664 | if (PyErr_Occurred()) SWIG_fail; | |
7665 | } | |
7666 | { | |
7667 | #if wxUSE_UNICODE | |
7668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7669 | #else | |
7670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7671 | #endif | |
7672 | } | |
7673 | return resultobj; | |
7674 | fail: | |
7675 | return NULL; | |
7676 | } | |
7677 | ||
7678 | ||
7679 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7680 | PyObject *obj; | |
7681 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7682 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7683 | Py_INCREF(obj); | |
7684 | return Py_BuildValue((char *)""); | |
7685 | } | |
7686 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7687 | PyObject *resultobj; | |
7688 | wxString *arg1 = 0 ; | |
7689 | wxImage *arg2 = 0 ; | |
7690 | long arg3 ; | |
e811c8ce | 7691 | bool temp1 = False ; |
d14a1e28 RD |
7692 | PyObject * obj0 = 0 ; |
7693 | PyObject * obj1 = 0 ; | |
994141e6 | 7694 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7695 | char *kwnames[] = { |
7696 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7697 | }; | |
7698 | ||
994141e6 | 7699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7700 | { |
7701 | arg1 = wxString_in_helper(obj0); | |
7702 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7703 | temp1 = True; |
d14a1e28 | 7704 | } |
15afbcd0 RD |
7705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, |
7706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7707 | SWIG_fail; | |
d14a1e28 | 7708 | if (arg2 == NULL) { |
15afbcd0 RD |
7709 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7710 | SWIG_fail; | |
994141e6 | 7711 | } |
15afbcd0 RD |
7712 | arg3 = (long) SWIG_AsLong(obj2); |
7713 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7714 | { |
7715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7716 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7717 | ||
7718 | wxPyEndAllowThreads(__tstate); | |
7719 | if (PyErr_Occurred()) SWIG_fail; | |
7720 | } | |
7721 | Py_INCREF(Py_None); resultobj = Py_None; | |
7722 | { | |
7723 | if (temp1) | |
7724 | delete arg1; | |
7725 | } | |
7726 | return resultobj; | |
7727 | fail: | |
7728 | { | |
7729 | if (temp1) | |
7730 | delete arg1; | |
7731 | } | |
7732 | return NULL; | |
7733 | } | |
7734 | ||
7735 | ||
7736 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7737 | PyObject *resultobj; | |
7738 | wxString *arg1 = 0 ; | |
7739 | wxBitmap *arg2 = 0 ; | |
7740 | long arg3 ; | |
e811c8ce | 7741 | bool temp1 = False ; |
d14a1e28 RD |
7742 | PyObject * obj0 = 0 ; |
7743 | PyObject * obj1 = 0 ; | |
994141e6 | 7744 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7745 | char *kwnames[] = { |
7746 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7747 | }; | |
7748 | ||
994141e6 | 7749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
7750 | { |
7751 | arg1 = wxString_in_helper(obj0); | |
7752 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7753 | temp1 = True; |
d14a1e28 | 7754 | } |
15afbcd0 RD |
7755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, |
7756 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7757 | SWIG_fail; | |
d14a1e28 | 7758 | if (arg2 == NULL) { |
15afbcd0 RD |
7759 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7760 | SWIG_fail; | |
994141e6 | 7761 | } |
15afbcd0 RD |
7762 | arg3 = (long) SWIG_AsLong(obj2); |
7763 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7764 | { |
7765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7766 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7767 | ||
7768 | wxPyEndAllowThreads(__tstate); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | } | |
7771 | Py_INCREF(Py_None); resultobj = Py_None; | |
7772 | { | |
7773 | if (temp1) | |
7774 | delete arg1; | |
7775 | } | |
7776 | return resultobj; | |
7777 | fail: | |
7778 | { | |
7779 | if (temp1) | |
7780 | delete arg1; | |
7781 | } | |
7782 | return NULL; | |
7783 | } | |
7784 | ||
7785 | ||
7786 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject *resultobj; | |
7788 | wxString *arg1 = 0 ; | |
7789 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 7790 | bool temp1 = False ; |
d14a1e28 RD |
7791 | PyObject * obj0 = 0 ; |
7792 | PyObject * obj1 = 0 ; | |
7793 | char *kwnames[] = { | |
7794 | (char *) "filename",(char *) "data", NULL | |
7795 | }; | |
7796 | ||
7797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7798 | { | |
7799 | arg1 = wxString_in_helper(obj0); | |
7800 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7801 | temp1 = True; |
d14a1e28 RD |
7802 | } |
7803 | arg2 = obj1; | |
7804 | { | |
7805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7806 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7807 | ||
7808 | wxPyEndAllowThreads(__tstate); | |
7809 | if (PyErr_Occurred()) SWIG_fail; | |
7810 | } | |
7811 | Py_INCREF(Py_None); resultobj = Py_None; | |
7812 | { | |
7813 | if (temp1) | |
7814 | delete arg1; | |
7815 | } | |
7816 | return resultobj; | |
7817 | fail: | |
7818 | { | |
7819 | if (temp1) | |
7820 | delete arg1; | |
7821 | } | |
7822 | return NULL; | |
7823 | } | |
7824 | ||
7825 | ||
7826 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject *resultobj; | |
7828 | wxMemoryFSHandler *result; | |
7829 | char *kwnames[] = { | |
7830 | NULL | |
7831 | }; | |
7832 | ||
7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7834 | { | |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
15afbcd0 | 7841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); |
d14a1e28 RD |
7842 | return resultobj; |
7843 | fail: | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
7848 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7849 | PyObject *resultobj; | |
7850 | wxString *arg1 = 0 ; | |
e811c8ce | 7851 | bool temp1 = False ; |
d14a1e28 RD |
7852 | PyObject * obj0 = 0 ; |
7853 | char *kwnames[] = { | |
7854 | (char *) "filename", NULL | |
7855 | }; | |
7856 | ||
7857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7858 | { | |
7859 | arg1 = wxString_in_helper(obj0); | |
7860 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 7861 | temp1 = True; |
d14a1e28 RD |
7862 | } |
7863 | { | |
7864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7865 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7866 | ||
7867 | wxPyEndAllowThreads(__tstate); | |
7868 | if (PyErr_Occurred()) SWIG_fail; | |
7869 | } | |
7870 | Py_INCREF(Py_None); resultobj = Py_None; | |
7871 | { | |
7872 | if (temp1) | |
7873 | delete arg1; | |
7874 | } | |
7875 | return resultobj; | |
7876 | fail: | |
7877 | { | |
7878 | if (temp1) | |
7879 | delete arg1; | |
7880 | } | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7888 | wxString *arg2 = 0 ; | |
7889 | bool result; | |
e811c8ce | 7890 | bool temp2 = False ; |
d14a1e28 RD |
7891 | PyObject * obj0 = 0 ; |
7892 | PyObject * obj1 = 0 ; | |
7893 | char *kwnames[] = { | |
7894 | (char *) "self",(char *) "location", NULL | |
7895 | }; | |
7896 | ||
7897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7900 | { |
7901 | arg2 = wxString_in_helper(obj1); | |
7902 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7903 | temp2 = True; |
d14a1e28 RD |
7904 | } |
7905 | { | |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
4f89f6a3 RD |
7912 | { |
7913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7914 | } | |
d14a1e28 RD |
7915 | { |
7916 | if (temp2) | |
7917 | delete arg2; | |
7918 | } | |
7919 | return resultobj; | |
7920 | fail: | |
7921 | { | |
7922 | if (temp2) | |
7923 | delete arg2; | |
7924 | } | |
7925 | return NULL; | |
7926 | } | |
7927 | ||
7928 | ||
7929 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7930 | PyObject *resultobj; | |
7931 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7932 | wxFileSystem *arg2 = 0 ; | |
7933 | wxString *arg3 = 0 ; | |
7934 | wxFSFile *result; | |
e811c8ce | 7935 | bool temp3 = False ; |
d14a1e28 RD |
7936 | PyObject * obj0 = 0 ; |
7937 | PyObject * obj1 = 0 ; | |
7938 | PyObject * obj2 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7947 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7948 | SWIG_fail; | |
d14a1e28 | 7949 | if (arg2 == NULL) { |
15afbcd0 RD |
7950 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7951 | SWIG_fail; | |
d14a1e28 RD |
7952 | } |
7953 | { | |
7954 | arg3 = wxString_in_helper(obj2); | |
7955 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 7956 | temp3 = True; |
d14a1e28 RD |
7957 | } |
7958 | { | |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
7965 | { | |
7966 | resultobj = wxPyMake_wxObject(result); | |
7967 | } | |
7968 | { | |
7969 | if (temp3) | |
7970 | delete arg3; | |
7971 | } | |
7972 | return resultobj; | |
7973 | fail: | |
7974 | { | |
7975 | if (temp3) | |
7976 | delete arg3; | |
7977 | } | |
7978 | return NULL; | |
7979 | } | |
7980 | ||
7981 | ||
7982 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7983 | PyObject *resultobj; | |
7984 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7985 | wxString *arg2 = 0 ; | |
7986 | int arg3 = (int) 0 ; | |
7987 | wxString result; | |
e811c8ce | 7988 | bool temp2 = False ; |
d14a1e28 RD |
7989 | PyObject * obj0 = 0 ; |
7990 | PyObject * obj1 = 0 ; | |
994141e6 | 7991 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7992 | char *kwnames[] = { |
7993 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7994 | }; | |
7995 | ||
994141e6 | 7996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
7998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7999 | { |
8000 | arg2 = wxString_in_helper(obj1); | |
8001 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8002 | temp2 = True; |
d14a1e28 | 8003 | } |
994141e6 | 8004 | if (obj2) { |
15afbcd0 RD |
8005 | arg3 = (int) SWIG_AsInt(obj2); |
8006 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8007 | } |
d14a1e28 RD |
8008 | { |
8009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8010 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8011 | ||
8012 | wxPyEndAllowThreads(__tstate); | |
8013 | if (PyErr_Occurred()) SWIG_fail; | |
8014 | } | |
8015 | { | |
8016 | #if wxUSE_UNICODE | |
8017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8018 | #else | |
8019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8020 | #endif | |
8021 | } | |
8022 | { | |
8023 | if (temp2) | |
8024 | delete arg2; | |
8025 | } | |
8026 | return resultobj; | |
8027 | fail: | |
8028 | { | |
8029 | if (temp2) | |
8030 | delete arg2; | |
8031 | } | |
8032 | return NULL; | |
8033 | } | |
8034 | ||
8035 | ||
8036 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8037 | PyObject *resultobj; | |
8038 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8039 | wxString result; | |
8040 | PyObject * obj0 = 0 ; | |
8041 | char *kwnames[] = { | |
8042 | (char *) "self", NULL | |
8043 | }; | |
8044 | ||
8045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, |
8047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8048 | { |
8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8050 | result = (arg1)->FindNext(); | |
8051 | ||
8052 | wxPyEndAllowThreads(__tstate); | |
8053 | if (PyErr_Occurred()) SWIG_fail; | |
8054 | } | |
8055 | { | |
8056 | #if wxUSE_UNICODE | |
8057 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8058 | #else | |
8059 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8060 | #endif | |
8061 | } | |
8062 | return resultobj; | |
8063 | fail: | |
8064 | return NULL; | |
8065 | } | |
8066 | ||
8067 | ||
8068 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8069 | PyObject *obj; | |
8070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8071 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8072 | Py_INCREF(obj); | |
8073 | return Py_BuildValue((char *)""); | |
8074 | } | |
8075 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8076 | PyObject *resultobj; | |
8077 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8078 | wxString result; | |
8079 | PyObject * obj0 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "self", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8087 | { |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | result = (arg1)->GetName(); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
8094 | { | |
8095 | #if wxUSE_UNICODE | |
8096 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8097 | #else | |
8098 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8099 | #endif | |
8100 | } | |
8101 | return resultobj; | |
8102 | fail: | |
8103 | return NULL; | |
8104 | } | |
8105 | ||
8106 | ||
8107 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8108 | PyObject *resultobj; | |
8109 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8110 | wxString result; | |
8111 | PyObject * obj0 = 0 ; | |
8112 | char *kwnames[] = { | |
8113 | (char *) "self", NULL | |
8114 | }; | |
8115 | ||
8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8119 | { |
8120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8121 | result = (arg1)->GetExtension(); | |
8122 | ||
8123 | wxPyEndAllowThreads(__tstate); | |
8124 | if (PyErr_Occurred()) SWIG_fail; | |
8125 | } | |
8126 | { | |
8127 | #if wxUSE_UNICODE | |
8128 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8129 | #else | |
8130 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8131 | #endif | |
8132 | } | |
8133 | return resultobj; | |
8134 | fail: | |
8135 | return NULL; | |
8136 | } | |
8137 | ||
8138 | ||
8139 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8140 | PyObject *resultobj; | |
8141 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8142 | long result; | |
8143 | PyObject * obj0 = 0 ; | |
8144 | char *kwnames[] = { | |
8145 | (char *) "self", NULL | |
8146 | }; | |
8147 | ||
8148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8151 | { |
8152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8153 | result = (long)(arg1)->GetType(); | |
8154 | ||
8155 | wxPyEndAllowThreads(__tstate); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
15afbcd0 | 8158 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8159 | return resultobj; |
8160 | fail: | |
8161 | return NULL; | |
8162 | } | |
8163 | ||
8164 | ||
8165 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8166 | PyObject *resultobj; | |
8167 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8168 | wxString result; | |
8169 | PyObject * obj0 = 0 ; | |
8170 | char *kwnames[] = { | |
8171 | (char *) "self", NULL | |
8172 | }; | |
8173 | ||
8174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8177 | { |
8178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8179 | result = (arg1)->GetMimeType(); | |
8180 | ||
8181 | wxPyEndAllowThreads(__tstate); | |
8182 | if (PyErr_Occurred()) SWIG_fail; | |
8183 | } | |
8184 | { | |
8185 | #if wxUSE_UNICODE | |
8186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8187 | #else | |
8188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8189 | #endif | |
8190 | } | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8200 | wxString *arg2 = 0 ; | |
8201 | bool result; | |
e811c8ce | 8202 | bool temp2 = False ; |
d14a1e28 RD |
8203 | PyObject * obj0 = 0 ; |
8204 | PyObject * obj1 = 0 ; | |
8205 | char *kwnames[] = { | |
8206 | (char *) "self",(char *) "name", NULL | |
8207 | }; | |
8208 | ||
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8212 | { |
8213 | arg2 = wxString_in_helper(obj1); | |
8214 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8215 | temp2 = True; |
d14a1e28 RD |
8216 | } |
8217 | { | |
8218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8219 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8220 | ||
8221 | wxPyEndAllowThreads(__tstate); | |
8222 | if (PyErr_Occurred()) SWIG_fail; | |
8223 | } | |
4f89f6a3 RD |
8224 | { |
8225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8226 | } | |
d14a1e28 RD |
8227 | { |
8228 | if (temp2) | |
8229 | delete arg2; | |
8230 | } | |
8231 | return resultobj; | |
8232 | fail: | |
8233 | { | |
8234 | if (temp2) | |
8235 | delete arg2; | |
8236 | } | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj; | |
8243 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8244 | wxString *arg2 = 0 ; | |
e811c8ce | 8245 | bool temp2 = False ; |
d14a1e28 RD |
8246 | PyObject * obj0 = 0 ; |
8247 | PyObject * obj1 = 0 ; | |
8248 | char *kwnames[] = { | |
8249 | (char *) "self",(char *) "name", NULL | |
8250 | }; | |
8251 | ||
8252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8255 | { |
8256 | arg2 = wxString_in_helper(obj1); | |
8257 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8258 | temp2 = True; |
d14a1e28 RD |
8259 | } |
8260 | { | |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | (arg1)->SetName((wxString const &)*arg2); | |
8263 | ||
8264 | wxPyEndAllowThreads(__tstate); | |
8265 | if (PyErr_Occurred()) SWIG_fail; | |
8266 | } | |
8267 | Py_INCREF(Py_None); resultobj = Py_None; | |
8268 | { | |
8269 | if (temp2) | |
8270 | delete arg2; | |
8271 | } | |
8272 | return resultobj; | |
8273 | fail: | |
8274 | { | |
8275 | if (temp2) | |
8276 | delete arg2; | |
8277 | } | |
8278 | return NULL; | |
8279 | } | |
8280 | ||
8281 | ||
8282 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8283 | PyObject *resultobj; | |
8284 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8285 | wxString *arg2 = 0 ; | |
e811c8ce | 8286 | bool temp2 = False ; |
d14a1e28 RD |
8287 | PyObject * obj0 = 0 ; |
8288 | PyObject * obj1 = 0 ; | |
8289 | char *kwnames[] = { | |
8290 | (char *) "self",(char *) "extension", NULL | |
8291 | }; | |
8292 | ||
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8296 | { |
8297 | arg2 = wxString_in_helper(obj1); | |
8298 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8299 | temp2 = True; |
d14a1e28 RD |
8300 | } |
8301 | { | |
8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8303 | (arg1)->SetExtension((wxString const &)*arg2); | |
8304 | ||
8305 | wxPyEndAllowThreads(__tstate); | |
8306 | if (PyErr_Occurred()) SWIG_fail; | |
8307 | } | |
8308 | Py_INCREF(Py_None); resultobj = Py_None; | |
8309 | { | |
8310 | if (temp2) | |
8311 | delete arg2; | |
8312 | } | |
8313 | return resultobj; | |
8314 | fail: | |
8315 | { | |
8316 | if (temp2) | |
8317 | delete arg2; | |
8318 | } | |
8319 | return NULL; | |
8320 | } | |
8321 | ||
8322 | ||
8323 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8324 | PyObject *resultobj; | |
8325 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8326 | long arg2 ; | |
8327 | PyObject * obj0 = 0 ; | |
994141e6 | 8328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8329 | char *kwnames[] = { |
8330 | (char *) "self",(char *) "type", NULL | |
8331 | }; | |
8332 | ||
994141e6 | 8333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8336 | arg2 = (long) SWIG_AsLong(obj1); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8338 | { |
8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8340 | (arg1)->SetType(arg2); | |
8341 | ||
8342 | wxPyEndAllowThreads(__tstate); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | Py_INCREF(Py_None); resultobj = Py_None; | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
8352 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8353 | PyObject *resultobj; | |
8354 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8355 | wxString *arg2 = 0 ; | |
e811c8ce | 8356 | bool temp2 = False ; |
d14a1e28 RD |
8357 | PyObject * obj0 = 0 ; |
8358 | PyObject * obj1 = 0 ; | |
8359 | char *kwnames[] = { | |
8360 | (char *) "self",(char *) "mimetype", NULL | |
8361 | }; | |
8362 | ||
8363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
8365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8366 | { |
8367 | arg2 = wxString_in_helper(obj1); | |
8368 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8369 | temp2 = True; |
d14a1e28 RD |
8370 | } |
8371 | { | |
8372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8373 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8374 | ||
8375 | wxPyEndAllowThreads(__tstate); | |
8376 | if (PyErr_Occurred()) SWIG_fail; | |
8377 | } | |
8378 | Py_INCREF(Py_None); resultobj = Py_None; | |
8379 | { | |
8380 | if (temp2) | |
8381 | delete arg2; | |
8382 | } | |
8383 | return resultobj; | |
8384 | fail: | |
8385 | { | |
8386 | if (temp2) | |
8387 | delete arg2; | |
8388 | } | |
8389 | return NULL; | |
8390 | } | |
8391 | ||
8392 | ||
8393 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8394 | PyObject *obj; | |
8395 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8396 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8397 | Py_INCREF(obj); | |
8398 | return Py_BuildValue((char *)""); | |
8399 | } | |
8400 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8401 | PyObject *resultobj; | |
8402 | wxImageHistogram *result; | |
8403 | char *kwnames[] = { | |
8404 | NULL | |
8405 | }; | |
8406 | ||
8407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8408 | { | |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8410 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8411 | ||
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
15afbcd0 | 8415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); |
d14a1e28 RD |
8416 | return resultobj; |
8417 | fail: | |
8418 | return NULL; | |
8419 | } | |
8420 | ||
8421 | ||
8422 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8423 | PyObject *resultobj; | |
8424 | unsigned char arg1 ; | |
8425 | unsigned char arg2 ; | |
8426 | unsigned char arg3 ; | |
8427 | unsigned long result; | |
8428 | PyObject * obj0 = 0 ; | |
8429 | PyObject * obj1 = 0 ; | |
8430 | PyObject * obj2 = 0 ; | |
8431 | char *kwnames[] = { | |
8432 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8433 | }; | |
8434 | ||
8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
8436 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8439 | if (PyErr_Occurred()) SWIG_fail; | |
8440 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8441 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8442 | { |
8443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8444 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8445 | ||
8446 | wxPyEndAllowThreads(__tstate); | |
8447 | if (PyErr_Occurred()) SWIG_fail; | |
8448 | } | |
15afbcd0 | 8449 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
8450 | return resultobj; |
8451 | fail: | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
8456 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8457 | PyObject *resultobj; | |
8458 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8459 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8460 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8461 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8462 | unsigned char arg5 = (unsigned char) 1 ; | |
8463 | unsigned char arg6 = (unsigned char) 0 ; | |
8464 | unsigned char arg7 = (unsigned char) 0 ; | |
8465 | bool result; | |
8466 | unsigned char temp2 ; | |
8467 | unsigned char temp3 ; | |
8468 | unsigned char temp4 ; | |
8469 | PyObject * obj0 = 0 ; | |
8470 | PyObject * obj1 = 0 ; | |
8471 | PyObject * obj2 = 0 ; | |
8472 | PyObject * obj3 = 0 ; | |
8473 | char *kwnames[] = { | |
8474 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8475 | }; | |
8476 | ||
8477 | arg2 = &temp2; | |
8478 | arg3 = &temp3; | |
8479 | arg4 = &temp4; | |
8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
8481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, |
8482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 8483 | if (obj1) { |
15afbcd0 RD |
8484 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); |
8485 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8486 | } |
8487 | if (obj2) { | |
15afbcd0 RD |
8488 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); |
8489 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8490 | } |
8491 | if (obj3) { | |
15afbcd0 RD |
8492 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); |
8493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8494 | } |
8495 | { | |
8496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8497 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8498 | ||
8499 | wxPyEndAllowThreads(__tstate); | |
8500 | if (PyErr_Occurred()) SWIG_fail; | |
8501 | } | |
4f89f6a3 RD |
8502 | { |
8503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8504 | } | |
d14a1e28 RD |
8505 | { |
8506 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8507 | resultobj = t_output_helper(resultobj,o); | |
8508 | } | |
8509 | { | |
8510 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8511 | resultobj = t_output_helper(resultobj,o); | |
8512 | } | |
8513 | { | |
8514 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8515 | resultobj = t_output_helper(resultobj,o); | |
8516 | } | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8524 | PyObject *obj; | |
8525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8526 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8527 | Py_INCREF(obj); | |
8528 | return Py_BuildValue((char *)""); | |
8529 | } | |
8530 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8531 | PyObject *resultobj; | |
8532 | wxString *arg1 = 0 ; | |
8533 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8534 | int arg3 = (int) -1 ; | |
8535 | wxImage *result; | |
e811c8ce | 8536 | bool temp1 = False ; |
d14a1e28 | 8537 | PyObject * obj0 = 0 ; |
994141e6 RD |
8538 | PyObject * obj1 = 0 ; |
8539 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8540 | char *kwnames[] = { |
8541 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8542 | }; | |
8543 | ||
994141e6 | 8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8545 | { |
8546 | arg1 = wxString_in_helper(obj0); | |
8547 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8548 | temp1 = True; |
d14a1e28 | 8549 | } |
994141e6 | 8550 | if (obj1) { |
15afbcd0 RD |
8551 | arg2 = (long) SWIG_AsLong(obj1); |
8552 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8553 | } |
8554 | if (obj2) { | |
15afbcd0 RD |
8555 | arg3 = (int) SWIG_AsInt(obj2); |
8556 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8557 | } |
d14a1e28 RD |
8558 | { |
8559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8560 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8561 | ||
8562 | wxPyEndAllowThreads(__tstate); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
15afbcd0 | 8565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8566 | { |
8567 | if (temp1) | |
8568 | delete arg1; | |
8569 | } | |
8570 | return resultobj; | |
8571 | fail: | |
8572 | { | |
8573 | if (temp1) | |
8574 | delete arg1; | |
8575 | } | |
8576 | return NULL; | |
8577 | } | |
8578 | ||
8579 | ||
8580 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8581 | PyObject *resultobj; | |
8582 | wxImage *arg1 = (wxImage *) 0 ; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | char *kwnames[] = { | |
8585 | (char *) "self", NULL | |
8586 | }; | |
8587 | ||
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8591 | { |
8592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8593 | delete arg1; | |
8594 | ||
8595 | wxPyEndAllowThreads(__tstate); | |
8596 | if (PyErr_Occurred()) SWIG_fail; | |
8597 | } | |
8598 | Py_INCREF(Py_None); resultobj = Py_None; | |
8599 | return resultobj; | |
8600 | fail: | |
8601 | return NULL; | |
8602 | } | |
8603 | ||
8604 | ||
8605 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject *resultobj; | |
8607 | wxString *arg1 = 0 ; | |
8608 | wxString *arg2 = 0 ; | |
8609 | int arg3 = (int) -1 ; | |
8610 | wxImage *result; | |
e811c8ce RD |
8611 | bool temp1 = False ; |
8612 | bool temp2 = False ; | |
d14a1e28 RD |
8613 | PyObject * obj0 = 0 ; |
8614 | PyObject * obj1 = 0 ; | |
994141e6 | 8615 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8616 | char *kwnames[] = { |
8617 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8618 | }; | |
8619 | ||
994141e6 | 8620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8621 | { |
8622 | arg1 = wxString_in_helper(obj0); | |
8623 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 8624 | temp1 = True; |
d14a1e28 RD |
8625 | } |
8626 | { | |
8627 | arg2 = wxString_in_helper(obj1); | |
8628 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8629 | temp2 = True; |
d14a1e28 | 8630 | } |
994141e6 | 8631 | if (obj2) { |
15afbcd0 RD |
8632 | arg3 = (int) SWIG_AsInt(obj2); |
8633 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8634 | } |
d14a1e28 RD |
8635 | { |
8636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8637 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8638 | ||
8639 | wxPyEndAllowThreads(__tstate); | |
8640 | if (PyErr_Occurred()) SWIG_fail; | |
8641 | } | |
15afbcd0 | 8642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8643 | { |
8644 | if (temp1) | |
8645 | delete arg1; | |
8646 | } | |
8647 | { | |
8648 | if (temp2) | |
8649 | delete arg2; | |
8650 | } | |
8651 | return resultobj; | |
8652 | fail: | |
8653 | { | |
8654 | if (temp1) | |
8655 | delete arg1; | |
8656 | } | |
8657 | { | |
8658 | if (temp2) | |
8659 | delete arg2; | |
8660 | } | |
8661 | return NULL; | |
8662 | } | |
8663 | ||
8664 | ||
8665 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8666 | PyObject *resultobj; | |
8667 | wxInputStream *arg1 = 0 ; | |
8668 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8669 | int arg3 = (int) -1 ; | |
8670 | wxImage *result; | |
8671 | wxPyInputStream *temp1 ; | |
8672 | bool created1 ; | |
8673 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8674 | PyObject * obj1 = 0 ; |
8675 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8676 | char *kwnames[] = { |
8677 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8678 | }; | |
8679 | ||
994141e6 | 8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8681 | { |
8682 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8683 | arg1 = temp1->m_wxis; | |
e811c8ce | 8684 | created1 = False; |
d14a1e28 RD |
8685 | } else { |
8686 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8687 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8688 | if (arg1 == NULL) { |
8689 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8690 | SWIG_fail; | |
8691 | } | |
e811c8ce | 8692 | created1 = True; |
d14a1e28 RD |
8693 | } |
8694 | } | |
994141e6 | 8695 | if (obj1) { |
15afbcd0 RD |
8696 | arg2 = (long) SWIG_AsLong(obj1); |
8697 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8698 | } |
8699 | if (obj2) { | |
15afbcd0 RD |
8700 | arg3 = (int) SWIG_AsInt(obj2); |
8701 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8702 | } |
d14a1e28 RD |
8703 | { |
8704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8705 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8706 | ||
8707 | wxPyEndAllowThreads(__tstate); | |
8708 | if (PyErr_Occurred()) SWIG_fail; | |
8709 | } | |
15afbcd0 | 8710 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8711 | { |
8712 | if (created1) | |
8713 | delete arg1; | |
8714 | } | |
8715 | return resultobj; | |
8716 | fail: | |
8717 | { | |
8718 | if (created1) | |
8719 | delete arg1; | |
8720 | } | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj; | |
8727 | wxInputStream *arg1 = 0 ; | |
8728 | wxString *arg2 = 0 ; | |
8729 | int arg3 = (int) -1 ; | |
8730 | wxImage *result; | |
8731 | wxPyInputStream *temp1 ; | |
8732 | bool created1 ; | |
e811c8ce | 8733 | bool temp2 = False ; |
d14a1e28 RD |
8734 | PyObject * obj0 = 0 ; |
8735 | PyObject * obj1 = 0 ; | |
994141e6 | 8736 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8737 | char *kwnames[] = { |
8738 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8739 | }; | |
8740 | ||
994141e6 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d14a1e28 RD |
8742 | { |
8743 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8744 | arg1 = temp1->m_wxis; | |
e811c8ce | 8745 | created1 = False; |
d14a1e28 RD |
8746 | } else { |
8747 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 8748 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
8749 | if (arg1 == NULL) { |
8750 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8751 | SWIG_fail; | |
8752 | } | |
e811c8ce | 8753 | created1 = True; |
d14a1e28 RD |
8754 | } |
8755 | } | |
8756 | { | |
8757 | arg2 = wxString_in_helper(obj1); | |
8758 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8759 | temp2 = True; |
d14a1e28 | 8760 | } |
994141e6 | 8761 | if (obj2) { |
15afbcd0 RD |
8762 | arg3 = (int) SWIG_AsInt(obj2); |
8763 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8764 | } |
d14a1e28 RD |
8765 | { |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
15afbcd0 | 8772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8773 | { |
8774 | if (created1) | |
8775 | delete arg1; | |
8776 | } | |
8777 | { | |
8778 | if (temp2) | |
8779 | delete arg2; | |
8780 | } | |
8781 | return resultobj; | |
8782 | fail: | |
8783 | { | |
8784 | if (created1) | |
8785 | delete arg1; | |
8786 | } | |
8787 | { | |
8788 | if (temp2) | |
8789 | delete arg2; | |
8790 | } | |
8791 | return NULL; | |
8792 | } | |
8793 | ||
8794 | ||
b2df227b | 8795 | static PyObject *_wrap_new_EmptyImage__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
8796 | PyObject *resultobj; |
8797 | int arg1 = (int) 0 ; | |
8798 | int arg2 = (int) 0 ; | |
e811c8ce | 8799 | bool arg3 = (bool) True ; |
d14a1e28 | 8800 | wxImage *result; |
994141e6 RD |
8801 | PyObject * obj0 = 0 ; |
8802 | PyObject * obj1 = 0 ; | |
d14a1e28 | 8803 | PyObject * obj2 = 0 ; |
d14a1e28 | 8804 | |
b2df227b | 8805 | if(!PyArg_ParseTuple(args,(char *)"|OOO:new_EmptyImage",&obj0,&obj1,&obj2)) goto fail; |
994141e6 | 8806 | if (obj0) { |
15afbcd0 RD |
8807 | arg1 = (int) SWIG_AsInt(obj0); |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
8809 | } |
8810 | if (obj1) { | |
15afbcd0 RD |
8811 | arg2 = (int) SWIG_AsInt(obj1); |
8812 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8813 | } |
d14a1e28 | 8814 | if (obj2) { |
15afbcd0 RD |
8815 | arg3 = (bool) SWIG_AsBool(obj2); |
8816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8817 | } |
8818 | { | |
8819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2df227b RD |
8820 | result = (wxImage *)new_wxImage__SWIG_0(arg1,arg2,arg3); |
8821 | ||
8822 | wxPyEndAllowThreads(__tstate); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8826 | return resultobj; | |
8827 | fail: | |
8828 | return NULL; | |
8829 | } | |
8830 | ||
8831 | ||
8832 | static PyObject *_wrap_new_EmptyImage__SWIG_1(PyObject *self, PyObject *args) { | |
8833 | PyObject *resultobj; | |
8834 | wxSize *arg1 = 0 ; | |
8835 | bool arg2 = (bool) True ; | |
8836 | wxImage *result; | |
8837 | wxSize temp1 ; | |
8838 | PyObject * obj0 = 0 ; | |
8839 | PyObject * obj1 = 0 ; | |
8840 | ||
8841 | if(!PyArg_ParseTuple(args,(char *)"O|O:new_EmptyImage",&obj0,&obj1)) goto fail; | |
8842 | { | |
8843 | arg1 = &temp1; | |
8844 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
8845 | } | |
8846 | if (obj1) { | |
8847 | arg2 = (bool) SWIG_AsBool(obj1); | |
8848 | if (PyErr_Occurred()) SWIG_fail; | |
8849 | } | |
8850 | { | |
8851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8852 | result = (wxImage *)new_wxImage__SWIG_1((wxSize const &)*arg1,arg2); | |
d14a1e28 RD |
8853 | |
8854 | wxPyEndAllowThreads(__tstate); | |
8855 | if (PyErr_Occurred()) SWIG_fail; | |
8856 | } | |
15afbcd0 | 8857 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8858 | return resultobj; |
8859 | fail: | |
8860 | return NULL; | |
8861 | } | |
8862 | ||
8863 | ||
b2df227b RD |
8864 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args) { |
8865 | int argc; | |
8866 | PyObject *argv[4]; | |
8867 | int ii; | |
8868 | ||
8869 | argc = PyObject_Length(args); | |
8870 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
8871 | argv[ii] = PyTuple_GetItem(args,ii); | |
8872 | } | |
8873 | if ((argc >= 0) && (argc <= 3)) { | |
8874 | int _v; | |
8875 | if (argc <= 0) { | |
8876 | return _wrap_new_EmptyImage__SWIG_0(self,args); | |
8877 | } | |
8878 | _v = SWIG_CheckInt(argv[0]); | |
8879 | if (_v) { | |
8880 | if (argc <= 1) { | |
8881 | return _wrap_new_EmptyImage__SWIG_0(self,args); | |
8882 | } | |
8883 | _v = SWIG_CheckInt(argv[1]); | |
8884 | if (_v) { | |
8885 | if (argc <= 2) { | |
8886 | return _wrap_new_EmptyImage__SWIG_0(self,args); | |
8887 | } | |
8888 | _v = SWIG_CheckBool(argv[2]); | |
8889 | if (_v) { | |
8890 | return _wrap_new_EmptyImage__SWIG_0(self,args); | |
8891 | } | |
8892 | } | |
8893 | } | |
8894 | } | |
8895 | if ((argc >= 1) && (argc <= 2)) { | |
8896 | int _v; | |
8897 | { | |
8898 | _v = wxPySimple_typecheck(argv[0], wxT("wxSize"), 2); | |
8899 | } | |
8900 | if (_v) { | |
8901 | if (argc <= 1) { | |
8902 | return _wrap_new_EmptyImage__SWIG_1(self,args); | |
8903 | } | |
8904 | _v = SWIG_CheckBool(argv[1]); | |
8905 | if (_v) { | |
8906 | return _wrap_new_EmptyImage__SWIG_1(self,args); | |
8907 | } | |
8908 | } | |
8909 | } | |
8910 | ||
8911 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_EmptyImage'"); | |
8912 | return NULL; | |
8913 | } | |
8914 | ||
8915 | ||
d14a1e28 RD |
8916 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8917 | PyObject *resultobj; | |
8918 | wxBitmap *arg1 = 0 ; | |
8919 | wxImage *result; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | char *kwnames[] = { | |
8922 | (char *) "bitmap", NULL | |
8923 | }; | |
8924 | ||
8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
8927 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8928 | SWIG_fail; | |
d14a1e28 | 8929 | if (arg1 == NULL) { |
15afbcd0 RD |
8930 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8931 | SWIG_fail; | |
d14a1e28 RD |
8932 | } |
8933 | { | |
8934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8935 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8936 | ||
8937 | wxPyEndAllowThreads(__tstate); | |
8938 | if (PyErr_Occurred()) SWIG_fail; | |
8939 | } | |
15afbcd0 | 8940 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8941 | return resultobj; |
8942 | fail: | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | int arg1 ; | |
8950 | int arg2 ; | |
8951 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8952 | wxImage *result; | |
994141e6 RD |
8953 | PyObject * obj0 = 0 ; |
8954 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
8955 | PyObject * obj2 = 0 ; |
8956 | char *kwnames[] = { | |
8957 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8958 | }; | |
8959 | ||
994141e6 | 8960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8961 | arg1 = (int) SWIG_AsInt(obj0); |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | arg2 = (int) SWIG_AsInt(obj1); | |
8964 | if (PyErr_Occurred()) SWIG_fail; | |
8965 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8967 | { |
8968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8969 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8970 | ||
8971 | wxPyEndAllowThreads(__tstate); | |
8972 | if (PyErr_Occurred()) SWIG_fail; | |
8973 | } | |
15afbcd0 | 8974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
8975 | return resultobj; |
8976 | fail: | |
8977 | return NULL; | |
8978 | } | |
8979 | ||
8980 | ||
8981 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8982 | PyObject *resultobj; | |
8983 | wxImage *arg1 = (wxImage *) 0 ; | |
8984 | int arg2 ; | |
8985 | int arg3 ; | |
8986 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8987 | PyObject * obj1 = 0 ; |
8988 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8989 | char *kwnames[] = { |
8990 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8991 | }; | |
8992 | ||
994141e6 | 8993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
8995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8996 | arg2 = (int) SWIG_AsInt(obj1); | |
8997 | if (PyErr_Occurred()) SWIG_fail; | |
8998 | arg3 = (int) SWIG_AsInt(obj2); | |
8999 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9000 | { |
9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9002 | (arg1)->Create(arg2,arg3); | |
9003 | ||
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
9007 | Py_INCREF(Py_None); resultobj = Py_None; | |
9008 | return resultobj; | |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj; | |
9016 | wxImage *arg1 = (wxImage *) 0 ; | |
9017 | PyObject * obj0 = 0 ; | |
9018 | char *kwnames[] = { | |
9019 | (char *) "self", NULL | |
9020 | }; | |
9021 | ||
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9025 | { |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | (arg1)->Destroy(); | |
9028 | ||
9029 | wxPyEndAllowThreads(__tstate); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
9031 | } | |
9032 | Py_INCREF(Py_None); resultobj = Py_None; | |
9033 | return resultobj; | |
9034 | fail: | |
9035 | return NULL; | |
9036 | } | |
9037 | ||
9038 | ||
9039 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9040 | PyObject *resultobj; | |
9041 | wxImage *arg1 = (wxImage *) 0 ; | |
9042 | int arg2 ; | |
9043 | int arg3 ; | |
9044 | SwigValueWrapper< wxImage > result; | |
9045 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9046 | PyObject * obj1 = 0 ; |
9047 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9048 | char *kwnames[] = { |
9049 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9050 | }; | |
9051 | ||
994141e6 | 9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9055 | arg2 = (int) SWIG_AsInt(obj1); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | arg3 = (int) SWIG_AsInt(obj2); | |
9058 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9059 | { |
9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9061 | result = (arg1)->Scale(arg2,arg3); | |
9062 | ||
9063 | wxPyEndAllowThreads(__tstate); | |
9064 | if (PyErr_Occurred()) SWIG_fail; | |
9065 | } | |
9066 | { | |
9067 | wxImage * resultptr; | |
9068 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9069 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9070 | } |
9071 | return resultobj; | |
9072 | fail: | |
9073 | return NULL; | |
9074 | } | |
9075 | ||
9076 | ||
9077 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9078 | PyObject *resultobj; | |
9079 | wxImage *arg1 = (wxImage *) 0 ; | |
9080 | int arg2 ; | |
9081 | int arg3 ; | |
9082 | SwigValueWrapper< wxImage > result; | |
9083 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9084 | PyObject * obj1 = 0 ; |
9085 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9086 | char *kwnames[] = { |
9087 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9088 | }; | |
9089 | ||
994141e6 | 9090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9093 | arg2 = (int) SWIG_AsInt(obj1); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | arg3 = (int) SWIG_AsInt(obj2); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9097 | { |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9100 | ||
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
9104 | { | |
9105 | wxImage * resultptr; | |
9106 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 9107 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
9108 | } |
9109 | return resultobj; | |
9110 | fail: | |
9111 | return NULL; | |
9112 | } | |
9113 | ||
9114 | ||
9115 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9116 | PyObject *resultobj; | |
9117 | wxImage *arg1 = (wxImage *) 0 ; | |
9118 | int arg2 ; | |
9119 | int arg3 ; | |
9120 | wxImage *result; | |
9121 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9122 | PyObject * obj1 = 0 ; |
9123 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9124 | char *kwnames[] = { |
9125 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9126 | }; | |
9127 | ||
994141e6 | 9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9131 | arg2 = (int) SWIG_AsInt(obj1); | |
9132 | if (PyErr_Occurred()) SWIG_fail; | |
9133 | arg3 = (int) SWIG_AsInt(obj2); | |
9134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9135 | { |
9136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9137 | { | |
9138 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9139 | result = (wxImage *) &_result_ref; | |
9140 | } | |
9141 | ||
9142 | wxPyEndAllowThreads(__tstate); | |
9143 | if (PyErr_Occurred()) SWIG_fail; | |
9144 | } | |
15afbcd0 | 9145 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
9146 | return resultobj; |
9147 | fail: | |
9148 | return NULL; | |
9149 | } | |
9150 | ||
9151 | ||
9152 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9153 | PyObject *resultobj; | |
9154 | wxImage *arg1 = (wxImage *) 0 ; | |
9155 | int arg2 ; | |
9156 | int arg3 ; | |
9157 | unsigned char arg4 ; | |
9158 | unsigned char arg5 ; | |
9159 | unsigned char arg6 ; | |
9160 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9161 | PyObject * obj1 = 0 ; |
9162 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9163 | PyObject * obj3 = 0 ; |
9164 | PyObject * obj4 = 0 ; | |
9165 | PyObject * obj5 = 0 ; | |
9166 | char *kwnames[] = { | |
9167 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9168 | }; | |
9169 | ||
994141e6 | 9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
9171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9173 | arg2 = (int) SWIG_AsInt(obj1); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | arg3 = (int) SWIG_AsInt(obj2); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
9177 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9178 | if (PyErr_Occurred()) SWIG_fail; | |
9179 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9180 | if (PyErr_Occurred()) SWIG_fail; | |
9181 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9183 | { |
9184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9185 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9186 | ||
9187 | wxPyEndAllowThreads(__tstate); | |
9188 | if (PyErr_Occurred()) SWIG_fail; | |
9189 | } | |
9190 | Py_INCREF(Py_None); resultobj = Py_None; | |
9191 | return resultobj; | |
9192 | fail: | |
9193 | return NULL; | |
9194 | } | |
9195 | ||
9196 | ||
9197 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9198 | PyObject *resultobj; | |
9199 | wxImage *arg1 = (wxImage *) 0 ; | |
9200 | int arg2 ; | |
9201 | int arg3 ; | |
9202 | unsigned char result; | |
9203 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9204 | PyObject * obj1 = 0 ; |
9205 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9206 | char *kwnames[] = { |
9207 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9208 | }; | |
9209 | ||
994141e6 | 9210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9213 | arg2 = (int) SWIG_AsInt(obj1); | |
9214 | if (PyErr_Occurred()) SWIG_fail; | |
9215 | arg3 = (int) SWIG_AsInt(obj2); | |
9216 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9217 | { |
9218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9219 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9220 | ||
9221 | wxPyEndAllowThreads(__tstate); | |
9222 | if (PyErr_Occurred()) SWIG_fail; | |
9223 | } | |
15afbcd0 | 9224 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9225 | return resultobj; |
9226 | fail: | |
9227 | return NULL; | |
9228 | } | |
9229 | ||
9230 | ||
9231 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9232 | PyObject *resultobj; | |
9233 | wxImage *arg1 = (wxImage *) 0 ; | |
9234 | int arg2 ; | |
9235 | int arg3 ; | |
9236 | unsigned char result; | |
9237 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9238 | PyObject * obj1 = 0 ; |
9239 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9240 | char *kwnames[] = { |
9241 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9242 | }; | |
9243 | ||
994141e6 | 9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9247 | arg2 = (int) SWIG_AsInt(obj1); | |
9248 | if (PyErr_Occurred()) SWIG_fail; | |
9249 | arg3 = (int) SWIG_AsInt(obj2); | |
9250 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9251 | { |
9252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9253 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9254 | ||
9255 | wxPyEndAllowThreads(__tstate); | |
9256 | if (PyErr_Occurred()) SWIG_fail; | |
9257 | } | |
15afbcd0 | 9258 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9259 | return resultobj; |
9260 | fail: | |
9261 | return NULL; | |
9262 | } | |
9263 | ||
9264 | ||
9265 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9266 | PyObject *resultobj; | |
9267 | wxImage *arg1 = (wxImage *) 0 ; | |
9268 | int arg2 ; | |
9269 | int arg3 ; | |
9270 | unsigned char result; | |
9271 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9272 | PyObject * obj1 = 0 ; |
9273 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9274 | char *kwnames[] = { |
9275 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9276 | }; | |
9277 | ||
994141e6 | 9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9281 | arg2 = (int) SWIG_AsInt(obj1); | |
9282 | if (PyErr_Occurred()) SWIG_fail; | |
9283 | arg3 = (int) SWIG_AsInt(obj2); | |
9284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9285 | { |
9286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9287 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9288 | ||
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
15afbcd0 | 9292 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9293 | return resultobj; |
9294 | fail: | |
9295 | return NULL; | |
9296 | } | |
9297 | ||
9298 | ||
9299 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9300 | PyObject *resultobj; | |
9301 | wxImage *arg1 = (wxImage *) 0 ; | |
9302 | int arg2 ; | |
9303 | int arg3 ; | |
9304 | unsigned char arg4 ; | |
9305 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9306 | PyObject * obj1 = 0 ; |
9307 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9308 | PyObject * obj3 = 0 ; |
9309 | char *kwnames[] = { | |
9310 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9311 | }; | |
9312 | ||
994141e6 | 9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9316 | arg2 = (int) SWIG_AsInt(obj1); | |
9317 | if (PyErr_Occurred()) SWIG_fail; | |
9318 | arg3 = (int) SWIG_AsInt(obj2); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9322 | { |
9323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9324 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9325 | ||
9326 | wxPyEndAllowThreads(__tstate); | |
9327 | if (PyErr_Occurred()) SWIG_fail; | |
9328 | } | |
9329 | Py_INCREF(Py_None); resultobj = Py_None; | |
9330 | return resultobj; | |
9331 | fail: | |
9332 | return NULL; | |
9333 | } | |
9334 | ||
9335 | ||
9336 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject *resultobj; | |
9338 | wxImage *arg1 = (wxImage *) 0 ; | |
9339 | int arg2 ; | |
9340 | int arg3 ; | |
9341 | unsigned char result; | |
9342 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9343 | PyObject * obj1 = 0 ; |
9344 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9345 | char *kwnames[] = { |
9346 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9347 | }; | |
9348 | ||
994141e6 | 9349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9352 | arg2 = (int) SWIG_AsInt(obj1); | |
9353 | if (PyErr_Occurred()) SWIG_fail; | |
9354 | arg3 = (int) SWIG_AsInt(obj2); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9356 | { |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9359 | ||
9360 | wxPyEndAllowThreads(__tstate); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | } | |
15afbcd0 | 9363 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
9364 | return resultobj; |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
9370 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9371 | PyObject *resultobj; | |
9372 | wxImage *arg1 = (wxImage *) 0 ; | |
9373 | bool result; | |
9374 | PyObject * obj0 = 0 ; | |
9375 | char *kwnames[] = { | |
9376 | (char *) "self", NULL | |
9377 | }; | |
9378 | ||
9379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9382 | { |
9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9384 | result = (bool)(arg1)->HasAlpha(); | |
9385 | ||
9386 | wxPyEndAllowThreads(__tstate); | |
9387 | if (PyErr_Occurred()) SWIG_fail; | |
9388 | } | |
4f89f6a3 RD |
9389 | { |
9390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9391 | } | |
d14a1e28 RD |
9392 | return resultobj; |
9393 | fail: | |
9394 | return NULL; | |
9395 | } | |
9396 | ||
9397 | ||
9398 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9399 | PyObject *resultobj; | |
9400 | wxImage *arg1 = (wxImage *) 0 ; | |
9401 | byte *arg2 = (byte *) 0 ; | |
9402 | byte *arg3 = (byte *) 0 ; | |
9403 | byte *arg4 = (byte *) 0 ; | |
9404 | byte arg5 = (byte) 0 ; | |
9405 | byte arg6 = (byte) 0 ; | |
9406 | byte arg7 = (byte) 0 ; | |
9407 | bool result; | |
9408 | byte temp2 ; | |
9409 | byte temp3 ; | |
9410 | byte temp4 ; | |
9411 | PyObject * obj0 = 0 ; | |
9412 | PyObject * obj1 = 0 ; | |
9413 | PyObject * obj2 = 0 ; | |
9414 | PyObject * obj3 = 0 ; | |
9415 | char *kwnames[] = { | |
9416 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9417 | }; | |
9418 | ||
9419 | arg2 = &temp2; | |
9420 | arg3 = &temp3; | |
9421 | arg4 = &temp4; | |
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
9423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9425 | if (obj1) { |
15afbcd0 RD |
9426 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); |
9427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9428 | } |
9429 | if (obj2) { | |
15afbcd0 RD |
9430 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); |
9431 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9432 | } |
9433 | if (obj3) { | |
15afbcd0 RD |
9434 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9436 | } |
9437 | { | |
9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9439 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9440 | ||
9441 | wxPyEndAllowThreads(__tstate); | |
9442 | if (PyErr_Occurred()) SWIG_fail; | |
9443 | } | |
4f89f6a3 RD |
9444 | { |
9445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9446 | } | |
d14a1e28 RD |
9447 | { |
9448 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9449 | resultobj = t_output_helper(resultobj,o); | |
9450 | } | |
9451 | { | |
9452 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9453 | resultobj = t_output_helper(resultobj,o); | |
9454 | } | |
9455 | { | |
9456 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9457 | resultobj = t_output_helper(resultobj,o); | |
9458 | } | |
9459 | return resultobj; | |
9460 | fail: | |
9461 | return NULL; | |
9462 | } | |
9463 | ||
9464 | ||
9465 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9466 | PyObject *resultobj; | |
9467 | wxImage *arg1 = (wxImage *) 0 ; | |
9468 | wxImage *arg2 = 0 ; | |
9469 | byte arg3 ; | |
9470 | byte arg4 ; | |
9471 | byte arg5 ; | |
9472 | bool result; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | PyObject * obj1 = 0 ; | |
9475 | PyObject * obj2 = 0 ; | |
9476 | PyObject * obj3 = 0 ; | |
9477 | PyObject * obj4 = 0 ; | |
9478 | char *kwnames[] = { | |
9479 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9480 | }; | |
9481 | ||
9482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
9483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9486 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9487 | SWIG_fail; | |
d14a1e28 | 9488 | if (arg2 == NULL) { |
15afbcd0 RD |
9489 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9490 | SWIG_fail; | |
a41e16b6 | 9491 | } |
15afbcd0 RD |
9492 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9497 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9498 | { |
9499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9500 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9501 | ||
9502 | wxPyEndAllowThreads(__tstate); | |
9503 | if (PyErr_Occurred()) SWIG_fail; | |
9504 | } | |
4f89f6a3 RD |
9505 | { |
9506 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9507 | } | |
d14a1e28 RD |
9508 | return resultobj; |
9509 | fail: | |
9510 | return NULL; | |
9511 | } | |
9512 | ||
9513 | ||
9514 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9515 | PyObject *resultobj; | |
9516 | wxString *arg1 = 0 ; | |
9517 | bool result; | |
e811c8ce | 9518 | bool temp1 = False ; |
d14a1e28 RD |
9519 | PyObject * obj0 = 0 ; |
9520 | char *kwnames[] = { | |
9521 | (char *) "name", NULL | |
9522 | }; | |
9523 | ||
9524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9525 | { | |
9526 | arg1 = wxString_in_helper(obj0); | |
9527 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9528 | temp1 = True; |
d14a1e28 RD |
9529 | } |
9530 | { | |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9533 | ||
9534 | wxPyEndAllowThreads(__tstate); | |
9535 | if (PyErr_Occurred()) SWIG_fail; | |
9536 | } | |
4f89f6a3 RD |
9537 | { |
9538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9539 | } | |
d14a1e28 RD |
9540 | { |
9541 | if (temp1) | |
9542 | delete arg1; | |
9543 | } | |
9544 | return resultobj; | |
9545 | fail: | |
9546 | { | |
9547 | if (temp1) | |
9548 | delete arg1; | |
9549 | } | |
9550 | return NULL; | |
9551 | } | |
9552 | ||
9553 | ||
9554 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject *resultobj; | |
9556 | wxString *arg1 = 0 ; | |
9557 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9558 | int result; | |
e811c8ce | 9559 | bool temp1 = False ; |
d14a1e28 | 9560 | PyObject * obj0 = 0 ; |
994141e6 | 9561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9562 | char *kwnames[] = { |
9563 | (char *) "name",(char *) "type", NULL | |
9564 | }; | |
9565 | ||
994141e6 | 9566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
9567 | { |
9568 | arg1 = wxString_in_helper(obj0); | |
9569 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 9570 | temp1 = True; |
d14a1e28 | 9571 | } |
994141e6 | 9572 | if (obj1) { |
15afbcd0 RD |
9573 | arg2 = (long) SWIG_AsLong(obj1); |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9575 | } |
d14a1e28 RD |
9576 | { |
9577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9578 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9579 | ||
9580 | wxPyEndAllowThreads(__tstate); | |
9581 | if (PyErr_Occurred()) SWIG_fail; | |
9582 | } | |
15afbcd0 | 9583 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9584 | { |
9585 | if (temp1) | |
9586 | delete arg1; | |
9587 | } | |
9588 | return resultobj; | |
9589 | fail: | |
9590 | { | |
9591 | if (temp1) | |
9592 | delete arg1; | |
9593 | } | |
9594 | return NULL; | |
9595 | } | |
9596 | ||
9597 | ||
9598 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9599 | PyObject *resultobj; | |
9600 | wxImage *arg1 = (wxImage *) 0 ; | |
9601 | wxString *arg2 = 0 ; | |
9602 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9603 | int arg4 = (int) -1 ; | |
9604 | bool result; | |
e811c8ce | 9605 | bool temp2 = False ; |
d14a1e28 RD |
9606 | PyObject * obj0 = 0 ; |
9607 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9608 | PyObject * obj2 = 0 ; |
9609 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9610 | char *kwnames[] = { |
9611 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9612 | }; | |
9613 | ||
994141e6 | 9614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9617 | { |
9618 | arg2 = wxString_in_helper(obj1); | |
9619 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9620 | temp2 = True; |
d14a1e28 | 9621 | } |
994141e6 | 9622 | if (obj2) { |
15afbcd0 RD |
9623 | arg3 = (long) SWIG_AsLong(obj2); |
9624 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9625 | } |
9626 | if (obj3) { | |
15afbcd0 RD |
9627 | arg4 = (int) SWIG_AsInt(obj3); |
9628 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9629 | } |
d14a1e28 RD |
9630 | { |
9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9632 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9633 | ||
9634 | wxPyEndAllowThreads(__tstate); | |
9635 | if (PyErr_Occurred()) SWIG_fail; | |
9636 | } | |
4f89f6a3 RD |
9637 | { |
9638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9639 | } | |
d14a1e28 RD |
9640 | { |
9641 | if (temp2) | |
9642 | delete arg2; | |
9643 | } | |
9644 | return resultobj; | |
9645 | fail: | |
9646 | { | |
9647 | if (temp2) | |
9648 | delete arg2; | |
9649 | } | |
9650 | return NULL; | |
9651 | } | |
9652 | ||
9653 | ||
9654 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9655 | PyObject *resultobj; | |
9656 | wxImage *arg1 = (wxImage *) 0 ; | |
9657 | wxString *arg2 = 0 ; | |
9658 | wxString *arg3 = 0 ; | |
9659 | int arg4 = (int) -1 ; | |
9660 | bool result; | |
e811c8ce RD |
9661 | bool temp2 = False ; |
9662 | bool temp3 = False ; | |
d14a1e28 RD |
9663 | PyObject * obj0 = 0 ; |
9664 | PyObject * obj1 = 0 ; | |
9665 | PyObject * obj2 = 0 ; | |
994141e6 | 9666 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9667 | char *kwnames[] = { |
9668 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9669 | }; | |
9670 | ||
994141e6 | 9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9674 | { |
9675 | arg2 = wxString_in_helper(obj1); | |
9676 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9677 | temp2 = True; |
d14a1e28 RD |
9678 | } |
9679 | { | |
9680 | arg3 = wxString_in_helper(obj2); | |
9681 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9682 | temp3 = True; |
d14a1e28 | 9683 | } |
994141e6 | 9684 | if (obj3) { |
15afbcd0 RD |
9685 | arg4 = (int) SWIG_AsInt(obj3); |
9686 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9687 | } |
d14a1e28 RD |
9688 | { |
9689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9690 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9691 | ||
9692 | wxPyEndAllowThreads(__tstate); | |
9693 | if (PyErr_Occurred()) SWIG_fail; | |
9694 | } | |
4f89f6a3 RD |
9695 | { |
9696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9697 | } | |
d14a1e28 RD |
9698 | { |
9699 | if (temp2) | |
9700 | delete arg2; | |
9701 | } | |
9702 | { | |
9703 | if (temp3) | |
9704 | delete arg3; | |
9705 | } | |
9706 | return resultobj; | |
9707 | fail: | |
9708 | { | |
9709 | if (temp2) | |
9710 | delete arg2; | |
9711 | } | |
9712 | { | |
9713 | if (temp3) | |
9714 | delete arg3; | |
9715 | } | |
9716 | return NULL; | |
9717 | } | |
9718 | ||
9719 | ||
9720 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9721 | PyObject *resultobj; | |
9722 | wxImage *arg1 = (wxImage *) 0 ; | |
9723 | wxString *arg2 = 0 ; | |
9724 | int arg3 ; | |
9725 | bool result; | |
e811c8ce | 9726 | bool temp2 = False ; |
d14a1e28 RD |
9727 | PyObject * obj0 = 0 ; |
9728 | PyObject * obj1 = 0 ; | |
994141e6 | 9729 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9730 | char *kwnames[] = { |
9731 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9732 | }; | |
9733 | ||
994141e6 | 9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9737 | { |
9738 | arg2 = wxString_in_helper(obj1); | |
9739 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9740 | temp2 = True; |
d14a1e28 | 9741 | } |
15afbcd0 RD |
9742 | arg3 = (int) SWIG_AsInt(obj2); |
9743 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9744 | { |
9745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9746 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9747 | ||
9748 | wxPyEndAllowThreads(__tstate); | |
9749 | if (PyErr_Occurred()) SWIG_fail; | |
9750 | } | |
4f89f6a3 RD |
9751 | { |
9752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9753 | } | |
d14a1e28 RD |
9754 | { |
9755 | if (temp2) | |
9756 | delete arg2; | |
9757 | } | |
9758 | return resultobj; | |
9759 | fail: | |
9760 | { | |
9761 | if (temp2) | |
9762 | delete arg2; | |
9763 | } | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
9768 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9769 | PyObject *resultobj; | |
9770 | wxImage *arg1 = (wxImage *) 0 ; | |
9771 | wxString *arg2 = 0 ; | |
9772 | wxString *arg3 = 0 ; | |
9773 | bool result; | |
e811c8ce RD |
9774 | bool temp2 = False ; |
9775 | bool temp3 = False ; | |
d14a1e28 RD |
9776 | PyObject * obj0 = 0 ; |
9777 | PyObject * obj1 = 0 ; | |
9778 | PyObject * obj2 = 0 ; | |
9779 | char *kwnames[] = { | |
9780 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9781 | }; | |
9782 | ||
9783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
9784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9786 | { |
9787 | arg2 = wxString_in_helper(obj1); | |
9788 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9789 | temp2 = True; |
d14a1e28 RD |
9790 | } |
9791 | { | |
9792 | arg3 = wxString_in_helper(obj2); | |
9793 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9794 | temp3 = True; |
d14a1e28 RD |
9795 | } |
9796 | { | |
9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9798 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9799 | ||
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) SWIG_fail; | |
9802 | } | |
4f89f6a3 RD |
9803 | { |
9804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9805 | } | |
d14a1e28 RD |
9806 | { |
9807 | if (temp2) | |
9808 | delete arg2; | |
9809 | } | |
9810 | { | |
9811 | if (temp3) | |
9812 | delete arg3; | |
9813 | } | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | { | |
9817 | if (temp2) | |
9818 | delete arg2; | |
9819 | } | |
9820 | { | |
9821 | if (temp3) | |
9822 | delete arg3; | |
9823 | } | |
9824 | return NULL; | |
9825 | } | |
9826 | ||
9827 | ||
9828 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9829 | PyObject *resultobj; | |
9830 | wxInputStream *arg1 = 0 ; | |
9831 | bool result; | |
9832 | wxPyInputStream *temp1 ; | |
9833 | bool created1 ; | |
9834 | PyObject * obj0 = 0 ; | |
9835 | char *kwnames[] = { | |
9836 | (char *) "stream", NULL | |
9837 | }; | |
9838 | ||
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9840 | { | |
9841 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9842 | arg1 = temp1->m_wxis; | |
e811c8ce | 9843 | created1 = False; |
d14a1e28 RD |
9844 | } else { |
9845 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9846 | arg1 = wxPyCBInputStream_create(obj0, False); |
d14a1e28 RD |
9847 | if (arg1 == NULL) { |
9848 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9849 | SWIG_fail; | |
9850 | } | |
e811c8ce | 9851 | created1 = True; |
d14a1e28 RD |
9852 | } |
9853 | } | |
9854 | { | |
9855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9856 | result = (bool)wxImage::CanRead(*arg1); | |
9857 | ||
9858 | wxPyEndAllowThreads(__tstate); | |
9859 | if (PyErr_Occurred()) SWIG_fail; | |
9860 | } | |
4f89f6a3 RD |
9861 | { |
9862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9863 | } | |
d14a1e28 RD |
9864 | { |
9865 | if (created1) | |
9866 | delete arg1; | |
9867 | } | |
9868 | return resultobj; | |
9869 | fail: | |
9870 | { | |
9871 | if (created1) | |
9872 | delete arg1; | |
9873 | } | |
9874 | return NULL; | |
9875 | } | |
9876 | ||
9877 | ||
9878 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject *resultobj; | |
9880 | wxImage *arg1 = (wxImage *) 0 ; | |
9881 | wxInputStream *arg2 = 0 ; | |
9882 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9883 | int arg4 = (int) -1 ; | |
9884 | bool result; | |
9885 | wxPyInputStream *temp2 ; | |
9886 | bool created2 ; | |
9887 | PyObject * obj0 = 0 ; | |
9888 | PyObject * obj1 = 0 ; | |
994141e6 RD |
9889 | PyObject * obj2 = 0 ; |
9890 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9891 | char *kwnames[] = { |
9892 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9893 | }; | |
9894 | ||
994141e6 | 9895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9898 | { |
9899 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9900 | arg2 = temp2->m_wxis; | |
e811c8ce | 9901 | created2 = False; |
d14a1e28 RD |
9902 | } else { |
9903 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9904 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9905 | if (arg2 == NULL) { |
9906 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9907 | SWIG_fail; | |
9908 | } | |
e811c8ce | 9909 | created2 = True; |
d14a1e28 RD |
9910 | } |
9911 | } | |
994141e6 | 9912 | if (obj2) { |
15afbcd0 RD |
9913 | arg3 = (long) SWIG_AsLong(obj2); |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
9915 | } |
9916 | if (obj3) { | |
15afbcd0 RD |
9917 | arg4 = (int) SWIG_AsInt(obj3); |
9918 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9919 | } |
d14a1e28 RD |
9920 | { |
9921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9922 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9923 | ||
9924 | wxPyEndAllowThreads(__tstate); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | } | |
4f89f6a3 RD |
9927 | { |
9928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9929 | } | |
d14a1e28 RD |
9930 | { |
9931 | if (created2) | |
9932 | delete arg2; | |
9933 | } | |
9934 | return resultobj; | |
9935 | fail: | |
9936 | { | |
9937 | if (created2) | |
9938 | delete arg2; | |
9939 | } | |
9940 | return NULL; | |
9941 | } | |
9942 | ||
9943 | ||
9944 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9945 | PyObject *resultobj; | |
9946 | wxImage *arg1 = (wxImage *) 0 ; | |
9947 | wxInputStream *arg2 = 0 ; | |
9948 | wxString *arg3 = 0 ; | |
9949 | int arg4 = (int) -1 ; | |
9950 | bool result; | |
9951 | wxPyInputStream *temp2 ; | |
9952 | bool created2 ; | |
e811c8ce | 9953 | bool temp3 = False ; |
d14a1e28 RD |
9954 | PyObject * obj0 = 0 ; |
9955 | PyObject * obj1 = 0 ; | |
9956 | PyObject * obj2 = 0 ; | |
994141e6 | 9957 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
9958 | char *kwnames[] = { |
9959 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9960 | }; | |
9961 | ||
994141e6 | 9962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
9964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9965 | { |
9966 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9967 | arg2 = temp2->m_wxis; | |
e811c8ce | 9968 | created2 = False; |
d14a1e28 RD |
9969 | } else { |
9970 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
e811c8ce | 9971 | arg2 = wxPyCBInputStream_create(obj1, False); |
d14a1e28 RD |
9972 | if (arg2 == NULL) { |
9973 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9974 | SWIG_fail; | |
9975 | } | |
e811c8ce | 9976 | created2 = True; |
d14a1e28 RD |
9977 | } |
9978 | } | |
9979 | { | |
9980 | arg3 = wxString_in_helper(obj2); | |
9981 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9982 | temp3 = True; |
d14a1e28 | 9983 | } |
994141e6 | 9984 | if (obj3) { |
15afbcd0 RD |
9985 | arg4 = (int) SWIG_AsInt(obj3); |
9986 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 9987 | } |
d14a1e28 RD |
9988 | { |
9989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9990 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9991 | ||
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
4f89f6a3 RD |
9995 | { |
9996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9997 | } | |
d14a1e28 RD |
9998 | { |
9999 | if (created2) | |
10000 | delete arg2; | |
10001 | } | |
10002 | { | |
10003 | if (temp3) | |
10004 | delete arg3; | |
10005 | } | |
10006 | return resultobj; | |
10007 | fail: | |
10008 | { | |
10009 | if (created2) | |
10010 | delete arg2; | |
10011 | } | |
10012 | { | |
10013 | if (temp3) | |
10014 | delete arg3; | |
10015 | } | |
10016 | return NULL; | |
10017 | } | |
10018 | ||
10019 | ||
10020 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10021 | PyObject *resultobj; | |
10022 | wxImage *arg1 = (wxImage *) 0 ; | |
10023 | bool result; | |
10024 | PyObject * obj0 = 0 ; | |
10025 | char *kwnames[] = { | |
10026 | (char *) "self", NULL | |
10027 | }; | |
10028 | ||
10029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10032 | { |
10033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10034 | result = (bool)(arg1)->Ok(); | |
10035 | ||
10036 | wxPyEndAllowThreads(__tstate); | |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
10038 | } | |
4f89f6a3 RD |
10039 | { |
10040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10041 | } | |
d14a1e28 RD |
10042 | return resultobj; |
10043 | fail: | |
10044 | return NULL; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10049 | PyObject *resultobj; | |
10050 | wxImage *arg1 = (wxImage *) 0 ; | |
10051 | int result; | |
10052 | PyObject * obj0 = 0 ; | |
10053 | char *kwnames[] = { | |
10054 | (char *) "self", NULL | |
10055 | }; | |
10056 | ||
10057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10060 | { |
10061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10062 | result = (int)(arg1)->GetWidth(); | |
10063 | ||
10064 | wxPyEndAllowThreads(__tstate); | |
10065 | if (PyErr_Occurred()) SWIG_fail; | |
10066 | } | |
15afbcd0 | 10067 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10068 | return resultobj; |
10069 | fail: | |
10070 | return NULL; | |
10071 | } | |
10072 | ||
10073 | ||
10074 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10075 | PyObject *resultobj; | |
10076 | wxImage *arg1 = (wxImage *) 0 ; | |
10077 | int result; | |
10078 | PyObject * obj0 = 0 ; | |
10079 | char *kwnames[] = { | |
10080 | (char *) "self", NULL | |
10081 | }; | |
10082 | ||
10083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10086 | { |
10087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10088 | result = (int)(arg1)->GetHeight(); | |
10089 | ||
10090 | wxPyEndAllowThreads(__tstate); | |
10091 | if (PyErr_Occurred()) SWIG_fail; | |
10092 | } | |
15afbcd0 | 10093 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10094 | return resultobj; |
10095 | fail: | |
10096 | return NULL; | |
10097 | } | |
10098 | ||
10099 | ||
b2df227b RD |
10100 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
10101 | PyObject *resultobj; | |
10102 | wxImage *arg1 = (wxImage *) 0 ; | |
10103 | wxSize result; | |
10104 | PyObject * obj0 = 0 ; | |
10105 | char *kwnames[] = { | |
10106 | (char *) "self", NULL | |
10107 | }; | |
10108 | ||
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10112 | { | |
10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10114 | result = wxImage_GetSize(arg1); | |
10115 | ||
10116 | wxPyEndAllowThreads(__tstate); | |
10117 | if (PyErr_Occurred()) SWIG_fail; | |
10118 | } | |
10119 | { | |
10120 | wxSize * resultptr; | |
10121 | resultptr = new wxSize((wxSize &) result); | |
10122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10123 | } | |
10124 | return resultobj; | |
10125 | fail: | |
10126 | return NULL; | |
10127 | } | |
10128 | ||
10129 | ||
d14a1e28 RD |
10130 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
10131 | PyObject *resultobj; | |
10132 | wxImage *arg1 = (wxImage *) 0 ; | |
10133 | wxRect *arg2 = 0 ; | |
10134 | SwigValueWrapper< wxImage > result; | |
10135 | wxRect temp2 ; | |
10136 | PyObject * obj0 = 0 ; | |
10137 | PyObject * obj1 = 0 ; | |
10138 | char *kwnames[] = { | |
10139 | (char *) "self",(char *) "rect", NULL | |
10140 | }; | |
10141 | ||
10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10145 | { |
10146 | arg2 = &temp2; | |
10147 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10148 | } | |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
10156 | { | |
10157 | wxImage * resultptr; | |
10158 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10159 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10160 | } |
10161 | return resultobj; | |
10162 | fail: | |
10163 | return NULL; | |
10164 | } | |
10165 | ||
10166 | ||
10167 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10168 | PyObject *resultobj; | |
10169 | wxImage *arg1 = (wxImage *) 0 ; | |
10170 | SwigValueWrapper< wxImage > result; | |
10171 | PyObject * obj0 = 0 ; | |
10172 | char *kwnames[] = { | |
10173 | (char *) "self", NULL | |
10174 | }; | |
10175 | ||
10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10179 | { |
10180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10181 | result = (arg1)->Copy(); | |
10182 | ||
10183 | wxPyEndAllowThreads(__tstate); | |
10184 | if (PyErr_Occurred()) SWIG_fail; | |
10185 | } | |
10186 | { | |
10187 | wxImage * resultptr; | |
10188 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10189 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10190 | } |
10191 | return resultobj; | |
10192 | fail: | |
10193 | return NULL; | |
10194 | } | |
10195 | ||
10196 | ||
10197 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10198 | PyObject *resultobj; | |
10199 | wxImage *arg1 = (wxImage *) 0 ; | |
10200 | wxImage *arg2 = 0 ; | |
10201 | int arg3 ; | |
10202 | int arg4 ; | |
10203 | PyObject * obj0 = 0 ; | |
10204 | PyObject * obj1 = 0 ; | |
994141e6 RD |
10205 | PyObject * obj2 = 0 ; |
10206 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
10207 | char *kwnames[] = { |
10208 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10209 | }; | |
10210 | ||
994141e6 | 10211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
10212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10214 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10215 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10216 | SWIG_fail; | |
d14a1e28 | 10217 | if (arg2 == NULL) { |
15afbcd0 RD |
10218 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10219 | SWIG_fail; | |
994141e6 | 10220 | } |
15afbcd0 RD |
10221 | arg3 = (int) SWIG_AsInt(obj2); |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | arg4 = (int) SWIG_AsInt(obj3); | |
10224 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10225 | { |
10226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10227 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10228 | ||
10229 | wxPyEndAllowThreads(__tstate); | |
10230 | if (PyErr_Occurred()) SWIG_fail; | |
10231 | } | |
10232 | Py_INCREF(Py_None); resultobj = Py_None; | |
10233 | return resultobj; | |
10234 | fail: | |
10235 | return NULL; | |
10236 | } | |
10237 | ||
10238 | ||
10239 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10240 | PyObject *resultobj; | |
10241 | wxImage *arg1 = (wxImage *) 0 ; | |
10242 | PyObject *result; | |
10243 | PyObject * obj0 = 0 ; | |
10244 | char *kwnames[] = { | |
10245 | (char *) "self", NULL | |
10246 | }; | |
10247 | ||
10248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10251 | { |
10252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10253 | result = (PyObject *)wxImage_GetData(arg1); | |
10254 | ||
10255 | wxPyEndAllowThreads(__tstate); | |
10256 | if (PyErr_Occurred()) SWIG_fail; | |
10257 | } | |
10258 | resultobj = result; | |
10259 | return resultobj; | |
10260 | fail: | |
10261 | return NULL; | |
10262 | } | |
10263 | ||
10264 | ||
10265 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10266 | PyObject *resultobj; | |
10267 | wxImage *arg1 = (wxImage *) 0 ; | |
10268 | PyObject *arg2 = (PyObject *) 0 ; | |
10269 | PyObject * obj0 = 0 ; | |
10270 | PyObject * obj1 = 0 ; | |
10271 | char *kwnames[] = { | |
10272 | (char *) "self",(char *) "data", NULL | |
10273 | }; | |
10274 | ||
10275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10278 | arg2 = obj1; |
10279 | { | |
10280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10281 | wxImage_SetData(arg1,arg2); | |
10282 | ||
10283 | wxPyEndAllowThreads(__tstate); | |
10284 | if (PyErr_Occurred()) SWIG_fail; | |
10285 | } | |
10286 | Py_INCREF(Py_None); resultobj = Py_None; | |
10287 | return resultobj; | |
10288 | fail: | |
10289 | return NULL; | |
10290 | } | |
10291 | ||
10292 | ||
10293 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10294 | PyObject *resultobj; | |
10295 | wxImage *arg1 = (wxImage *) 0 ; | |
10296 | PyObject *result; | |
10297 | PyObject * obj0 = 0 ; | |
10298 | char *kwnames[] = { | |
10299 | (char *) "self", NULL | |
10300 | }; | |
10301 | ||
10302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10305 | { |
10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10307 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10308 | ||
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | resultobj = result; | |
10313 | return resultobj; | |
10314 | fail: | |
10315 | return NULL; | |
10316 | } | |
10317 | ||
10318 | ||
10319 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10320 | PyObject *resultobj; | |
10321 | wxImage *arg1 = (wxImage *) 0 ; | |
10322 | PyObject *arg2 = (PyObject *) 0 ; | |
10323 | PyObject * obj0 = 0 ; | |
10324 | PyObject * obj1 = 0 ; | |
10325 | char *kwnames[] = { | |
10326 | (char *) "self",(char *) "data", NULL | |
10327 | }; | |
10328 | ||
10329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10332 | arg2 = obj1; |
10333 | { | |
10334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10335 | wxImage_SetDataBuffer(arg1,arg2); | |
10336 | ||
10337 | wxPyEndAllowThreads(__tstate); | |
10338 | if (PyErr_Occurred()) SWIG_fail; | |
10339 | } | |
10340 | Py_INCREF(Py_None); resultobj = Py_None; | |
10341 | return resultobj; | |
10342 | fail: | |
10343 | return NULL; | |
10344 | } | |
10345 | ||
10346 | ||
10347 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10348 | PyObject *resultobj; | |
10349 | wxImage *arg1 = (wxImage *) 0 ; | |
10350 | PyObject *result; | |
10351 | PyObject * obj0 = 0 ; | |
10352 | char *kwnames[] = { | |
10353 | (char *) "self", NULL | |
10354 | }; | |
10355 | ||
10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10359 | { |
10360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10361 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10362 | ||
10363 | wxPyEndAllowThreads(__tstate); | |
10364 | if (PyErr_Occurred()) SWIG_fail; | |
10365 | } | |
10366 | resultobj = result; | |
10367 | return resultobj; | |
10368 | fail: | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
10373 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10374 | PyObject *resultobj; | |
10375 | wxImage *arg1 = (wxImage *) 0 ; | |
10376 | PyObject *arg2 = (PyObject *) 0 ; | |
10377 | PyObject * obj0 = 0 ; | |
10378 | PyObject * obj1 = 0 ; | |
10379 | char *kwnames[] = { | |
10380 | (char *) "self",(char *) "data", NULL | |
10381 | }; | |
10382 | ||
10383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10386 | arg2 = obj1; |
10387 | { | |
10388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10389 | wxImage_SetAlphaData(arg1,arg2); | |
10390 | ||
10391 | wxPyEndAllowThreads(__tstate); | |
10392 | if (PyErr_Occurred()) SWIG_fail; | |
10393 | } | |
10394 | Py_INCREF(Py_None); resultobj = Py_None; | |
10395 | return resultobj; | |
10396 | fail: | |
10397 | return NULL; | |
10398 | } | |
10399 | ||
10400 | ||
10401 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10402 | PyObject *resultobj; | |
10403 | wxImage *arg1 = (wxImage *) 0 ; | |
10404 | PyObject *result; | |
10405 | PyObject * obj0 = 0 ; | |
10406 | char *kwnames[] = { | |
10407 | (char *) "self", NULL | |
10408 | }; | |
10409 | ||
10410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10413 | { |
10414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10415 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10416 | ||
10417 | wxPyEndAllowThreads(__tstate); | |
10418 | if (PyErr_Occurred()) SWIG_fail; | |
10419 | } | |
10420 | resultobj = result; | |
10421 | return resultobj; | |
10422 | fail: | |
10423 | return NULL; | |
10424 | } | |
10425 | ||
10426 | ||
10427 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10428 | PyObject *resultobj; | |
10429 | wxImage *arg1 = (wxImage *) 0 ; | |
10430 | PyObject *arg2 = (PyObject *) 0 ; | |
10431 | PyObject * obj0 = 0 ; | |
10432 | PyObject * obj1 = 0 ; | |
10433 | char *kwnames[] = { | |
10434 | (char *) "self",(char *) "data", NULL | |
10435 | }; | |
10436 | ||
10437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10440 | arg2 = obj1; |
10441 | { | |
10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10443 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10444 | ||
10445 | wxPyEndAllowThreads(__tstate); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | Py_INCREF(Py_None); resultobj = Py_None; | |
10449 | return resultobj; | |
10450 | fail: | |
10451 | return NULL; | |
10452 | } | |
10453 | ||
10454 | ||
10455 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject *resultobj; | |
10457 | wxImage *arg1 = (wxImage *) 0 ; | |
10458 | unsigned char arg2 ; | |
10459 | unsigned char arg3 ; | |
10460 | unsigned char arg4 ; | |
10461 | PyObject * obj0 = 0 ; | |
10462 | PyObject * obj1 = 0 ; | |
10463 | PyObject * obj2 = 0 ; | |
10464 | PyObject * obj3 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10472 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10473 | if (PyErr_Occurred()) SWIG_fail; | |
10474 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
10476 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10478 | { |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10480 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10481 | ||
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
10485 | Py_INCREF(Py_None); resultobj = Py_None; | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | return NULL; | |
10489 | } | |
10490 | ||
10491 | ||
10492 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10493 | PyObject *resultobj; | |
10494 | wxImage *arg1 = (wxImage *) 0 ; | |
10495 | unsigned char result; | |
10496 | PyObject * obj0 = 0 ; | |
10497 | char *kwnames[] = { | |
10498 | (char *) "self", NULL | |
10499 | }; | |
10500 | ||
10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10504 | { |
10505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10506 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10507 | ||
10508 | wxPyEndAllowThreads(__tstate); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
15afbcd0 | 10511 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10512 | return resultobj; |
10513 | fail: | |
10514 | return NULL; | |
10515 | } | |
10516 | ||
10517 | ||
10518 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10519 | PyObject *resultobj; | |
10520 | wxImage *arg1 = (wxImage *) 0 ; | |
10521 | unsigned char result; | |
10522 | PyObject * obj0 = 0 ; | |
10523 | char *kwnames[] = { | |
10524 | (char *) "self", NULL | |
10525 | }; | |
10526 | ||
10527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10530 | { |
10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10532 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10533 | ||
10534 | wxPyEndAllowThreads(__tstate); | |
10535 | if (PyErr_Occurred()) SWIG_fail; | |
10536 | } | |
15afbcd0 | 10537 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10538 | return resultobj; |
10539 | fail: | |
10540 | return NULL; | |
10541 | } | |
10542 | ||
10543 | ||
10544 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10545 | PyObject *resultobj; | |
10546 | wxImage *arg1 = (wxImage *) 0 ; | |
10547 | unsigned char result; | |
10548 | PyObject * obj0 = 0 ; | |
10549 | char *kwnames[] = { | |
10550 | (char *) "self", NULL | |
10551 | }; | |
10552 | ||
10553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10556 | { |
10557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10558 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10559 | ||
10560 | wxPyEndAllowThreads(__tstate); | |
10561 | if (PyErr_Occurred()) SWIG_fail; | |
10562 | } | |
15afbcd0 | 10563 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); |
d14a1e28 RD |
10564 | return resultobj; |
10565 | fail: | |
10566 | return NULL; | |
10567 | } | |
10568 | ||
10569 | ||
10570 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10571 | PyObject *resultobj; | |
10572 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10573 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10574 | PyObject * obj0 = 0 ; |
10575 | PyObject * obj1 = 0 ; | |
10576 | char *kwnames[] = { | |
10577 | (char *) "self",(char *) "mask", NULL | |
10578 | }; | |
10579 | ||
10580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10583 | if (obj1) { |
15afbcd0 RD |
10584 | arg2 = (bool) SWIG_AsBool(obj1); |
10585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10586 | } |
10587 | { | |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10589 | (arg1)->SetMask(arg2); | |
10590 | ||
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
10594 | Py_INCREF(Py_None); resultobj = Py_None; | |
10595 | return resultobj; | |
10596 | fail: | |
10597 | return NULL; | |
10598 | } | |
10599 | ||
10600 | ||
10601 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10602 | PyObject *resultobj; | |
10603 | wxImage *arg1 = (wxImage *) 0 ; | |
10604 | bool result; | |
10605 | PyObject * obj0 = 0 ; | |
10606 | char *kwnames[] = { | |
10607 | (char *) "self", NULL | |
10608 | }; | |
10609 | ||
10610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10613 | { |
10614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10615 | result = (bool)(arg1)->HasMask(); | |
10616 | ||
10617 | wxPyEndAllowThreads(__tstate); | |
10618 | if (PyErr_Occurred()) SWIG_fail; | |
10619 | } | |
4f89f6a3 RD |
10620 | { |
10621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10622 | } | |
d14a1e28 RD |
10623 | return resultobj; |
10624 | fail: | |
10625 | return NULL; | |
10626 | } | |
10627 | ||
10628 | ||
10629 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10630 | PyObject *resultobj; | |
10631 | wxImage *arg1 = (wxImage *) 0 ; | |
10632 | double arg2 ; | |
10633 | wxPoint *arg3 = 0 ; | |
e811c8ce | 10634 | bool arg4 = (bool) True ; |
d14a1e28 RD |
10635 | wxPoint *arg5 = (wxPoint *) NULL ; |
10636 | SwigValueWrapper< wxImage > result; | |
10637 | wxPoint temp3 ; | |
10638 | PyObject * obj0 = 0 ; | |
994141e6 | 10639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10640 | PyObject * obj2 = 0 ; |
10641 | PyObject * obj3 = 0 ; | |
10642 | PyObject * obj4 = 0 ; | |
10643 | char *kwnames[] = { | |
10644 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10645 | }; | |
10646 | ||
994141e6 | 10647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
10648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10650 | arg2 = (double) SWIG_AsDouble(obj1); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10652 | { |
10653 | arg3 = &temp3; | |
10654 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10655 | } | |
10656 | if (obj3) { | |
15afbcd0 RD |
10657 | arg4 = (bool) SWIG_AsBool(obj3); |
10658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10659 | } |
10660 | if (obj4) { | |
15afbcd0 RD |
10661 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, |
10662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10663 | } |
10664 | { | |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10666 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10667 | ||
10668 | wxPyEndAllowThreads(__tstate); | |
10669 | if (PyErr_Occurred()) SWIG_fail; | |
10670 | } | |
10671 | { | |
10672 | wxImage * resultptr; | |
10673 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10675 | } |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10685 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10686 | SwigValueWrapper< wxImage > result; |
10687 | PyObject * obj0 = 0 ; | |
10688 | PyObject * obj1 = 0 ; | |
10689 | char *kwnames[] = { | |
10690 | (char *) "self",(char *) "clockwise", NULL | |
10691 | }; | |
10692 | ||
10693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10696 | if (obj1) { |
15afbcd0 RD |
10697 | arg2 = (bool) SWIG_AsBool(obj1); |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10699 | } |
10700 | { | |
10701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10702 | result = (arg1)->Rotate90(arg2); | |
10703 | ||
10704 | wxPyEndAllowThreads(__tstate); | |
10705 | if (PyErr_Occurred()) SWIG_fail; | |
10706 | } | |
10707 | { | |
10708 | wxImage * resultptr; | |
10709 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10711 | } |
10712 | return resultobj; | |
10713 | fail: | |
10714 | return NULL; | |
10715 | } | |
10716 | ||
10717 | ||
10718 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10719 | PyObject *resultobj; | |
10720 | wxImage *arg1 = (wxImage *) 0 ; | |
e811c8ce | 10721 | bool arg2 = (bool) True ; |
d14a1e28 RD |
10722 | SwigValueWrapper< wxImage > result; |
10723 | PyObject * obj0 = 0 ; | |
10724 | PyObject * obj1 = 0 ; | |
10725 | char *kwnames[] = { | |
10726 | (char *) "self",(char *) "horizontally", NULL | |
10727 | }; | |
10728 | ||
10729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 10732 | if (obj1) { |
15afbcd0 RD |
10733 | arg2 = (bool) SWIG_AsBool(obj1); |
10734 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10735 | } |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | result = (arg1)->Mirror(arg2); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | { | |
10744 | wxImage * resultptr; | |
10745 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10746 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10747 | } |
10748 | return resultobj; | |
10749 | fail: | |
10750 | return NULL; | |
10751 | } | |
10752 | ||
10753 | ||
10754 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10755 | PyObject *resultobj; | |
10756 | wxImage *arg1 = (wxImage *) 0 ; | |
10757 | unsigned char arg2 ; | |
10758 | unsigned char arg3 ; | |
10759 | unsigned char arg4 ; | |
10760 | unsigned char arg5 ; | |
10761 | unsigned char arg6 ; | |
10762 | unsigned char arg7 ; | |
10763 | PyObject * obj0 = 0 ; | |
10764 | PyObject * obj1 = 0 ; | |
10765 | PyObject * obj2 = 0 ; | |
10766 | PyObject * obj3 = 0 ; | |
10767 | PyObject * obj4 = 0 ; | |
10768 | PyObject * obj5 = 0 ; | |
10769 | PyObject * obj6 = 0 ; | |
10770 | char *kwnames[] = { | |
10771 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
15afbcd0 RD |
10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10777 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10786 | if (PyErr_Occurred()) SWIG_fail; | |
10787 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10789 | { |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10792 | ||
10793 | wxPyEndAllowThreads(__tstate); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
10796 | Py_INCREF(Py_None); resultobj = Py_None; | |
10797 | return resultobj; | |
10798 | fail: | |
10799 | return NULL; | |
10800 | } | |
10801 | ||
10802 | ||
10803 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject *resultobj; | |
10805 | wxImage *arg1 = (wxImage *) 0 ; | |
10806 | unsigned char arg2 ; | |
10807 | unsigned char arg3 ; | |
10808 | unsigned char arg4 ; | |
10809 | SwigValueWrapper< wxImage > result; | |
10810 | PyObject * obj0 = 0 ; | |
10811 | PyObject * obj1 = 0 ; | |
10812 | PyObject * obj2 = 0 ; | |
10813 | PyObject * obj3 = 0 ; | |
10814 | char *kwnames[] = { | |
10815 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10816 | }; | |
10817 | ||
10818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
10819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10821 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10822 | if (PyErr_Occurred()) SWIG_fail; | |
10823 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10827 | { |
10828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10829 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10830 | ||
10831 | wxPyEndAllowThreads(__tstate); | |
10832 | if (PyErr_Occurred()) SWIG_fail; | |
10833 | } | |
10834 | { | |
10835 | wxImage * resultptr; | |
10836 | resultptr = new wxImage((wxImage &) result); | |
15afbcd0 | 10837 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); |
d14a1e28 RD |
10838 | } |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
10845 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10846 | PyObject *resultobj; | |
10847 | wxImage *arg1 = (wxImage *) 0 ; | |
10848 | wxString *arg2 = 0 ; | |
10849 | wxString *arg3 = 0 ; | |
e811c8ce RD |
10850 | bool temp2 = False ; |
10851 | bool temp3 = False ; | |
d14a1e28 RD |
10852 | PyObject * obj0 = 0 ; |
10853 | PyObject * obj1 = 0 ; | |
10854 | PyObject * obj2 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10862 | { |
10863 | arg2 = wxString_in_helper(obj1); | |
10864 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10865 | temp2 = True; |
d14a1e28 RD |
10866 | } |
10867 | { | |
10868 | arg3 = wxString_in_helper(obj2); | |
10869 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10870 | temp3 = True; |
d14a1e28 RD |
10871 | } |
10872 | { | |
10873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10874 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10875 | ||
10876 | wxPyEndAllowThreads(__tstate); | |
10877 | if (PyErr_Occurred()) SWIG_fail; | |
10878 | } | |
10879 | Py_INCREF(Py_None); resultobj = Py_None; | |
10880 | { | |
10881 | if (temp2) | |
10882 | delete arg2; | |
10883 | } | |
10884 | { | |
10885 | if (temp3) | |
10886 | delete arg3; | |
10887 | } | |
10888 | return resultobj; | |
10889 | fail: | |
10890 | { | |
10891 | if (temp2) | |
10892 | delete arg2; | |
10893 | } | |
10894 | { | |
10895 | if (temp3) | |
10896 | delete arg3; | |
10897 | } | |
10898 | return NULL; | |
10899 | } | |
10900 | ||
10901 | ||
10902 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10903 | PyObject *resultobj; | |
10904 | wxImage *arg1 = (wxImage *) 0 ; | |
10905 | wxString *arg2 = 0 ; | |
10906 | int arg3 ; | |
e811c8ce | 10907 | bool temp2 = False ; |
d14a1e28 RD |
10908 | PyObject * obj0 = 0 ; |
10909 | PyObject * obj1 = 0 ; | |
994141e6 | 10910 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10911 | char *kwnames[] = { |
10912 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10913 | }; | |
10914 | ||
994141e6 | 10915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10918 | { |
10919 | arg2 = wxString_in_helper(obj1); | |
10920 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10921 | temp2 = True; |
d14a1e28 | 10922 | } |
15afbcd0 RD |
10923 | arg3 = (int) SWIG_AsInt(obj2); |
10924 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10925 | { |
10926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10927 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10928 | ||
10929 | wxPyEndAllowThreads(__tstate); | |
10930 | if (PyErr_Occurred()) SWIG_fail; | |
10931 | } | |
10932 | Py_INCREF(Py_None); resultobj = Py_None; | |
10933 | { | |
10934 | if (temp2) | |
10935 | delete arg2; | |
10936 | } | |
10937 | return resultobj; | |
10938 | fail: | |
10939 | { | |
10940 | if (temp2) | |
10941 | delete arg2; | |
10942 | } | |
10943 | return NULL; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10948 | PyObject *resultobj; | |
10949 | wxImage *arg1 = (wxImage *) 0 ; | |
10950 | wxString *arg2 = 0 ; | |
10951 | wxString result; | |
e811c8ce | 10952 | bool temp2 = False ; |
d14a1e28 RD |
10953 | PyObject * obj0 = 0 ; |
10954 | PyObject * obj1 = 0 ; | |
10955 | char *kwnames[] = { | |
10956 | (char *) "self",(char *) "name", NULL | |
10957 | }; | |
10958 | ||
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
10960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
10961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10962 | { |
10963 | arg2 = wxString_in_helper(obj1); | |
10964 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10965 | temp2 = True; |
d14a1e28 RD |
10966 | } |
10967 | { | |
10968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10969 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10970 | ||
10971 | wxPyEndAllowThreads(__tstate); | |
10972 | if (PyErr_Occurred()) SWIG_fail; | |
10973 | } | |
10974 | { | |
10975 | #if wxUSE_UNICODE | |
10976 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10977 | #else | |
10978 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10979 | #endif | |
10980 | } | |
10981 | { | |
10982 | if (temp2) | |
10983 | delete arg2; | |
10984 | } | |
10985 | return resultobj; | |
10986 | fail: | |
10987 | { | |
10988 | if (temp2) | |
10989 | delete arg2; | |
10990 | } | |
10991 | return NULL; | |
10992 | } | |
10993 | ||
10994 | ||
10995 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10996 | PyObject *resultobj; | |
10997 | wxImage *arg1 = (wxImage *) 0 ; | |
10998 | wxString *arg2 = 0 ; | |
10999 | int result; | |
e811c8ce | 11000 | bool temp2 = False ; |
d14a1e28 RD |
11001 | PyObject * obj0 = 0 ; |
11002 | PyObject * obj1 = 0 ; | |
11003 | char *kwnames[] = { | |
11004 | (char *) "self",(char *) "name", NULL | |
11005 | }; | |
11006 | ||
11007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11010 | { |
11011 | arg2 = wxString_in_helper(obj1); | |
11012 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11013 | temp2 = True; |
d14a1e28 RD |
11014 | } |
11015 | { | |
11016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11017 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11018 | ||
11019 | wxPyEndAllowThreads(__tstate); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | } | |
15afbcd0 | 11022 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11023 | { |
11024 | if (temp2) | |
11025 | delete arg2; | |
11026 | } | |
11027 | return resultobj; | |
11028 | fail: | |
11029 | { | |
11030 | if (temp2) | |
11031 | delete arg2; | |
11032 | } | |
11033 | return NULL; | |
11034 | } | |
11035 | ||
11036 | ||
11037 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11038 | PyObject *resultobj; | |
11039 | wxImage *arg1 = (wxImage *) 0 ; | |
11040 | wxString *arg2 = 0 ; | |
11041 | bool result; | |
e811c8ce | 11042 | bool temp2 = False ; |
d14a1e28 RD |
11043 | PyObject * obj0 = 0 ; |
11044 | PyObject * obj1 = 0 ; | |
11045 | char *kwnames[] = { | |
11046 | (char *) "self",(char *) "name", NULL | |
11047 | }; | |
11048 | ||
11049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11052 | { |
11053 | arg2 = wxString_in_helper(obj1); | |
11054 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11055 | temp2 = True; |
d14a1e28 RD |
11056 | } |
11057 | { | |
11058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11059 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11060 | ||
11061 | wxPyEndAllowThreads(__tstate); | |
11062 | if (PyErr_Occurred()) SWIG_fail; | |
11063 | } | |
4f89f6a3 RD |
11064 | { |
11065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11066 | } | |
d14a1e28 RD |
11067 | { |
11068 | if (temp2) | |
11069 | delete arg2; | |
11070 | } | |
11071 | return resultobj; | |
11072 | fail: | |
11073 | { | |
11074 | if (temp2) | |
11075 | delete arg2; | |
11076 | } | |
11077 | return NULL; | |
11078 | } | |
11079 | ||
11080 | ||
11081 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11082 | PyObject *resultobj; | |
11083 | wxImage *arg1 = (wxImage *) 0 ; | |
11084 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11085 | unsigned long result; | |
11086 | PyObject * obj0 = 0 ; | |
11087 | PyObject * obj1 = 0 ; | |
11088 | char *kwnames[] = { | |
11089 | (char *) "self",(char *) "stopafter", NULL | |
11090 | }; | |
11091 | ||
11092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 11095 | if (obj1) { |
15afbcd0 RD |
11096 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11098 | } |
11099 | { | |
11100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11101 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11102 | ||
11103 | wxPyEndAllowThreads(__tstate); | |
11104 | if (PyErr_Occurred()) SWIG_fail; | |
11105 | } | |
15afbcd0 | 11106 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11107 | return resultobj; |
11108 | fail: | |
11109 | return NULL; | |
11110 | } | |
11111 | ||
11112 | ||
11113 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11114 | PyObject *resultobj; | |
11115 | wxImage *arg1 = (wxImage *) 0 ; | |
11116 | wxImageHistogram *arg2 = 0 ; | |
11117 | unsigned long result; | |
11118 | PyObject * obj0 = 0 ; | |
11119 | PyObject * obj1 = 0 ; | |
11120 | char *kwnames[] = { | |
11121 | (char *) "self",(char *) "h", NULL | |
11122 | }; | |
11123 | ||
11124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11127 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11128 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11129 | SWIG_fail; | |
d14a1e28 | 11130 | if (arg2 == NULL) { |
15afbcd0 RD |
11131 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11132 | SWIG_fail; | |
d14a1e28 RD |
11133 | } |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
15afbcd0 | 11141 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11142 | return resultobj; |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11149 | PyObject *resultobj; | |
11150 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "handler", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11159 | { |
11160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11161 | wxImage::AddHandler(arg1); | |
11162 | ||
11163 | wxPyEndAllowThreads(__tstate); | |
11164 | if (PyErr_Occurred()) SWIG_fail; | |
11165 | } | |
11166 | Py_INCREF(Py_None); resultobj = Py_None; | |
11167 | return resultobj; | |
11168 | fail: | |
11169 | return NULL; | |
11170 | } | |
11171 | ||
11172 | ||
11173 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11174 | PyObject *resultobj; | |
11175 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "handler", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, |
11183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11184 | { |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11186 | wxImage::InsertHandler(arg1); | |
11187 | ||
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
11191 | Py_INCREF(Py_None); resultobj = Py_None; | |
11192 | return resultobj; | |
11193 | fail: | |
11194 | return NULL; | |
11195 | } | |
11196 | ||
11197 | ||
11198 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject *resultobj; | |
11200 | wxString *arg1 = 0 ; | |
11201 | bool result; | |
e811c8ce | 11202 | bool temp1 = False ; |
d14a1e28 RD |
11203 | PyObject * obj0 = 0 ; |
11204 | char *kwnames[] = { | |
11205 | (char *) "name", NULL | |
11206 | }; | |
11207 | ||
11208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11209 | { | |
11210 | arg1 = wxString_in_helper(obj0); | |
11211 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 11212 | temp1 = True; |
d14a1e28 RD |
11213 | } |
11214 | { | |
11215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11216 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11217 | ||
11218 | wxPyEndAllowThreads(__tstate); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | } | |
4f89f6a3 RD |
11221 | { |
11222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11223 | } | |
d14a1e28 RD |
11224 | { |
11225 | if (temp1) | |
11226 | delete arg1; | |
11227 | } | |
11228 | return resultobj; | |
11229 | fail: | |
11230 | { | |
11231 | if (temp1) | |
11232 | delete arg1; | |
11233 | } | |
11234 | return NULL; | |
11235 | } | |
11236 | ||
11237 | ||
11238 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11239 | PyObject *resultobj; | |
11240 | wxString result; | |
11241 | char *kwnames[] = { | |
11242 | NULL | |
11243 | }; | |
11244 | ||
11245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11246 | { | |
11247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11248 | result = wxImage::GetImageExtWildcard(); | |
11249 | ||
11250 | wxPyEndAllowThreads(__tstate); | |
11251 | if (PyErr_Occurred()) SWIG_fail; | |
11252 | } | |
11253 | { | |
11254 | #if wxUSE_UNICODE | |
11255 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11256 | #else | |
11257 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11258 | #endif | |
11259 | } | |
11260 | return resultobj; | |
11261 | fail: | |
11262 | return NULL; | |
11263 | } | |
11264 | ||
11265 | ||
11266 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11267 | PyObject *resultobj; | |
11268 | wxImage *arg1 = (wxImage *) 0 ; | |
11269 | wxBitmap result; | |
11270 | PyObject * obj0 = 0 ; | |
11271 | char *kwnames[] = { | |
11272 | (char *) "self", NULL | |
11273 | }; | |
11274 | ||
11275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11278 | { |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | result = wxImage_ConvertToBitmap(arg1); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
11285 | { | |
11286 | wxBitmap * resultptr; | |
11287 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11289 | } |
11290 | return resultobj; | |
11291 | fail: | |
11292 | return NULL; | |
11293 | } | |
11294 | ||
11295 | ||
11296 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11297 | PyObject *resultobj; | |
11298 | wxImage *arg1 = (wxImage *) 0 ; | |
11299 | unsigned char arg2 ; | |
11300 | unsigned char arg3 ; | |
11301 | unsigned char arg4 ; | |
11302 | wxBitmap result; | |
11303 | PyObject * obj0 = 0 ; | |
11304 | PyObject * obj1 = 0 ; | |
11305 | PyObject * obj2 = 0 ; | |
11306 | PyObject * obj3 = 0 ; | |
11307 | char *kwnames[] = { | |
11308 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11309 | }; | |
11310 | ||
11311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
11312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11314 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11315 | if (PyErr_Occurred()) SWIG_fail; | |
11316 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11317 | if (PyErr_Occurred()) SWIG_fail; | |
11318 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11319 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11320 | { |
11321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11322 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11323 | ||
11324 | wxPyEndAllowThreads(__tstate); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | } | |
11327 | { | |
11328 | wxBitmap * resultptr; | |
11329 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 11330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
11331 | } |
11332 | return resultobj; | |
11333 | fail: | |
11334 | return NULL; | |
11335 | } | |
11336 | ||
11337 | ||
11338 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11339 | PyObject *obj; | |
11340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11341 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11342 | Py_INCREF(obj); | |
11343 | return Py_BuildValue((char *)""); | |
11344 | } | |
11345 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11346 | PyObject *resultobj; | |
11347 | char *kwnames[] = { | |
11348 | NULL | |
11349 | }; | |
11350 | ||
11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11352 | { | |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11354 | wxInitAllImageHandlers(); | |
11355 | ||
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
11359 | Py_INCREF(Py_None); resultobj = Py_None; | |
11360 | return resultobj; | |
11361 | fail: | |
11362 | return NULL; | |
11363 | } | |
11364 | ||
11365 | ||
11366 | static int _wrap_NullImage_set(PyObject *_val) { | |
11367 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11368 | return 1; | |
11369 | } | |
11370 | ||
11371 | ||
11372 | static PyObject *_wrap_NullImage_get() { | |
11373 | PyObject *pyobj; | |
11374 | ||
15afbcd0 | 11375 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); |
d14a1e28 RD |
11376 | return pyobj; |
11377 | } | |
11378 | ||
11379 | ||
11380 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11381 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11382 | return 1; | |
11383 | } | |
11384 | ||
11385 | ||
11386 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11387 | PyObject *pyobj; | |
11388 | ||
11389 | { | |
11390 | #if wxUSE_UNICODE | |
11391 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11392 | #else | |
11393 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11394 | #endif | |
11395 | } | |
11396 | return pyobj; | |
11397 | } | |
11398 | ||
11399 | ||
11400 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11401 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11402 | return 1; | |
11403 | } | |
11404 | ||
11405 | ||
11406 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11407 | PyObject *pyobj; | |
11408 | ||
11409 | { | |
11410 | #if wxUSE_UNICODE | |
11411 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11412 | #else | |
11413 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11414 | #endif | |
11415 | } | |
11416 | return pyobj; | |
11417 | } | |
11418 | ||
11419 | ||
11420 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11421 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11422 | return 1; | |
11423 | } | |
11424 | ||
11425 | ||
11426 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11427 | PyObject *pyobj; | |
11428 | ||
11429 | { | |
11430 | #if wxUSE_UNICODE | |
11431 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11432 | #else | |
11433 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11434 | #endif | |
11435 | } | |
11436 | return pyobj; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11441 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11442 | return 1; | |
11443 | } | |
11444 | ||
11445 | ||
11446 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11447 | PyObject *pyobj; | |
11448 | ||
11449 | { | |
11450 | #if wxUSE_UNICODE | |
11451 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11452 | #else | |
11453 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11454 | #endif | |
11455 | } | |
11456 | return pyobj; | |
11457 | } | |
11458 | ||
11459 | ||
11460 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11461 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11462 | return 1; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11467 | PyObject *pyobj; | |
11468 | ||
11469 | { | |
11470 | #if wxUSE_UNICODE | |
11471 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11472 | #else | |
11473 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11474 | #endif | |
11475 | } | |
11476 | return pyobj; | |
11477 | } | |
11478 | ||
11479 | ||
11480 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11481 | PyObject *resultobj; | |
11482 | wxBMPHandler *result; | |
11483 | char *kwnames[] = { | |
11484 | NULL | |
11485 | }; | |
11486 | ||
11487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
15afbcd0 | 11495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); |
d14a1e28 RD |
11496 | return resultobj; |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
11502 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11503 | PyObject *obj; | |
11504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11505 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11506 | Py_INCREF(obj); | |
11507 | return Py_BuildValue((char *)""); | |
11508 | } | |
11509 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11510 | PyObject *resultobj; | |
11511 | wxICOHandler *result; | |
11512 | char *kwnames[] = { | |
11513 | NULL | |
11514 | }; | |
11515 | ||
11516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = (wxICOHandler *)new wxICOHandler(); | |
11520 | ||
11521 | wxPyEndAllowThreads(__tstate); | |
11522 | if (PyErr_Occurred()) SWIG_fail; | |
11523 | } | |
15afbcd0 | 11524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); |
d14a1e28 RD |
11525 | return resultobj; |
11526 | fail: | |
11527 | return NULL; | |
11528 | } | |
11529 | ||
11530 | ||
11531 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11532 | PyObject *obj; | |
11533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11534 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11535 | Py_INCREF(obj); | |
11536 | return Py_BuildValue((char *)""); | |
11537 | } | |
11538 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11539 | PyObject *resultobj; | |
11540 | wxCURHandler *result; | |
11541 | char *kwnames[] = { | |
11542 | NULL | |
11543 | }; | |
11544 | ||
11545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11546 | { | |
11547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11548 | result = (wxCURHandler *)new wxCURHandler(); | |
11549 | ||
11550 | wxPyEndAllowThreads(__tstate); | |
11551 | if (PyErr_Occurred()) SWIG_fail; | |
11552 | } | |
15afbcd0 | 11553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); |
d14a1e28 RD |
11554 | return resultobj; |
11555 | fail: | |
11556 | return NULL; | |
11557 | } | |
11558 | ||
11559 | ||
11560 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11561 | PyObject *obj; | |
11562 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11563 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11564 | Py_INCREF(obj); | |
11565 | return Py_BuildValue((char *)""); | |
11566 | } | |
11567 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11568 | PyObject *resultobj; | |
11569 | wxANIHandler *result; | |
11570 | char *kwnames[] = { | |
11571 | NULL | |
11572 | }; | |
11573 | ||
11574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11575 | { | |
11576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11577 | result = (wxANIHandler *)new wxANIHandler(); | |
11578 | ||
11579 | wxPyEndAllowThreads(__tstate); | |
11580 | if (PyErr_Occurred()) SWIG_fail; | |
11581 | } | |
15afbcd0 | 11582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); |
d14a1e28 RD |
11583 | return resultobj; |
11584 | fail: | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
11589 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11590 | PyObject *obj; | |
11591 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11592 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11593 | Py_INCREF(obj); | |
11594 | return Py_BuildValue((char *)""); | |
11595 | } | |
11596 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11597 | PyObject *resultobj; | |
11598 | wxPNGHandler *result; | |
11599 | char *kwnames[] = { | |
11600 | NULL | |
11601 | }; | |
11602 | ||
11603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11604 | { | |
11605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11606 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11607 | ||
11608 | wxPyEndAllowThreads(__tstate); | |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
11610 | } | |
15afbcd0 | 11611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); |
d14a1e28 RD |
11612 | return resultobj; |
11613 | fail: | |
11614 | return NULL; | |
11615 | } | |
11616 | ||
11617 | ||
11618 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11619 | PyObject *obj; | |
11620 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11621 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11622 | Py_INCREF(obj); | |
11623 | return Py_BuildValue((char *)""); | |
11624 | } | |
11625 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj; | |
11627 | wxGIFHandler *result; | |
11628 | char *kwnames[] = { | |
11629 | NULL | |
11630 | }; | |
11631 | ||
11632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11636 | ||
11637 | wxPyEndAllowThreads(__tstate); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | } | |
15afbcd0 | 11640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); |
d14a1e28 RD |
11641 | return resultobj; |
11642 | fail: | |
11643 | return NULL; | |
11644 | } | |
11645 | ||
11646 | ||
11647 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11648 | PyObject *obj; | |
11649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11650 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11651 | Py_INCREF(obj); | |
11652 | return Py_BuildValue((char *)""); | |
11653 | } | |
11654 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11655 | PyObject *resultobj; | |
11656 | wxPCXHandler *result; | |
11657 | char *kwnames[] = { | |
11658 | NULL | |
11659 | }; | |
11660 | ||
11661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11662 | { | |
11663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11664 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11665 | ||
11666 | wxPyEndAllowThreads(__tstate); | |
11667 | if (PyErr_Occurred()) SWIG_fail; | |
11668 | } | |
15afbcd0 | 11669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); |
d14a1e28 RD |
11670 | return resultobj; |
11671 | fail: | |
11672 | return NULL; | |
11673 | } | |
11674 | ||
11675 | ||
11676 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11677 | PyObject *obj; | |
11678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11679 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11680 | Py_INCREF(obj); | |
11681 | return Py_BuildValue((char *)""); | |
11682 | } | |
11683 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11684 | PyObject *resultobj; | |
11685 | wxJPEGHandler *result; | |
11686 | char *kwnames[] = { | |
11687 | NULL | |
11688 | }; | |
11689 | ||
11690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11691 | { | |
11692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11693 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11694 | ||
11695 | wxPyEndAllowThreads(__tstate); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | } | |
15afbcd0 | 11698 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); |
d14a1e28 RD |
11699 | return resultobj; |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
11705 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11706 | PyObject *obj; | |
11707 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11708 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11709 | Py_INCREF(obj); | |
11710 | return Py_BuildValue((char *)""); | |
11711 | } | |
11712 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11713 | PyObject *resultobj; | |
11714 | wxPNMHandler *result; | |
11715 | char *kwnames[] = { | |
11716 | NULL | |
11717 | }; | |
11718 | ||
11719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11720 | { | |
11721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11722 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11723 | ||
11724 | wxPyEndAllowThreads(__tstate); | |
11725 | if (PyErr_Occurred()) SWIG_fail; | |
11726 | } | |
15afbcd0 | 11727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); |
d14a1e28 RD |
11728 | return resultobj; |
11729 | fail: | |
11730 | return NULL; | |
11731 | } | |
11732 | ||
11733 | ||
11734 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11735 | PyObject *obj; | |
11736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11737 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11738 | Py_INCREF(obj); | |
11739 | return Py_BuildValue((char *)""); | |
11740 | } | |
11741 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11742 | PyObject *resultobj; | |
11743 | wxXPMHandler *result; | |
11744 | char *kwnames[] = { | |
11745 | NULL | |
11746 | }; | |
11747 | ||
11748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11749 | { | |
11750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11751 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11752 | ||
11753 | wxPyEndAllowThreads(__tstate); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | } | |
15afbcd0 | 11756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); |
d14a1e28 RD |
11757 | return resultobj; |
11758 | fail: | |
11759 | return NULL; | |
11760 | } | |
11761 | ||
11762 | ||
11763 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11764 | PyObject *obj; | |
11765 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11766 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11767 | Py_INCREF(obj); | |
11768 | return Py_BuildValue((char *)""); | |
11769 | } | |
11770 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11771 | PyObject *resultobj; | |
11772 | wxTIFFHandler *result; | |
11773 | char *kwnames[] = { | |
11774 | NULL | |
11775 | }; | |
11776 | ||
11777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11778 | { | |
11779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11780 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11781 | ||
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
15afbcd0 | 11785 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); |
d14a1e28 RD |
11786 | return resultobj; |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
11792 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11793 | PyObject *obj; | |
11794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11795 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11796 | Py_INCREF(obj); | |
11797 | return Py_BuildValue((char *)""); | |
11798 | } | |
11799 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11800 | PyObject *resultobj; | |
11801 | wxEvtHandler *result; | |
11802 | char *kwnames[] = { | |
11803 | NULL | |
11804 | }; | |
11805 | ||
11806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11807 | { | |
11808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11809 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11810 | ||
11811 | wxPyEndAllowThreads(__tstate); | |
11812 | if (PyErr_Occurred()) SWIG_fail; | |
11813 | } | |
11814 | { | |
11815 | resultobj = wxPyMake_wxObject(result); | |
11816 | } | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj; | |
11825 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11826 | wxEvtHandler *result; | |
11827 | PyObject * obj0 = 0 ; | |
11828 | char *kwnames[] = { | |
11829 | (char *) "self", NULL | |
11830 | }; | |
11831 | ||
11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11835 | { |
11836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11837 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11838 | ||
11839 | wxPyEndAllowThreads(__tstate); | |
11840 | if (PyErr_Occurred()) SWIG_fail; | |
11841 | } | |
11842 | { | |
11843 | resultobj = wxPyMake_wxObject(result); | |
11844 | } | |
11845 | return resultobj; | |
11846 | fail: | |
11847 | return NULL; | |
11848 | } | |
11849 | ||
11850 | ||
11851 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11852 | PyObject *resultobj; | |
11853 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11854 | wxEvtHandler *result; | |
11855 | PyObject * obj0 = 0 ; | |
11856 | char *kwnames[] = { | |
11857 | (char *) "self", NULL | |
11858 | }; | |
11859 | ||
11860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11863 | { |
11864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11865 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11866 | ||
11867 | wxPyEndAllowThreads(__tstate); | |
11868 | if (PyErr_Occurred()) SWIG_fail; | |
11869 | } | |
11870 | { | |
11871 | resultobj = wxPyMake_wxObject(result); | |
11872 | } | |
11873 | return resultobj; | |
11874 | fail: | |
11875 | return NULL; | |
11876 | } | |
11877 | ||
11878 | ||
11879 | static PyObject *_wrap_EvtHandler_SetNextHandler(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_SetNextHandler",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)->SetNextHandler(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_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11909 | PyObject *resultobj; | |
11910 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11911 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11912 | PyObject * obj0 = 0 ; | |
11913 | PyObject * obj1 = 0 ; | |
11914 | char *kwnames[] = { | |
11915 | (char *) "self",(char *) "handler", NULL | |
11916 | }; | |
11917 | ||
11918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11923 | { |
11924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11925 | (arg1)->SetPreviousHandler(arg2); | |
11926 | ||
11927 | wxPyEndAllowThreads(__tstate); | |
11928 | if (PyErr_Occurred()) SWIG_fail; | |
11929 | } | |
11930 | Py_INCREF(Py_None); resultobj = Py_None; | |
11931 | return resultobj; | |
11932 | fail: | |
11933 | return NULL; | |
11934 | } | |
11935 | ||
11936 | ||
11937 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11938 | PyObject *resultobj; | |
11939 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11940 | bool result; | |
11941 | PyObject * obj0 = 0 ; | |
11942 | char *kwnames[] = { | |
11943 | (char *) "self", NULL | |
11944 | }; | |
11945 | ||
11946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11949 | { |
11950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11951 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11952 | ||
11953 | wxPyEndAllowThreads(__tstate); | |
11954 | if (PyErr_Occurred()) SWIG_fail; | |
11955 | } | |
4f89f6a3 RD |
11956 | { |
11957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11958 | } | |
d14a1e28 RD |
11959 | return resultobj; |
11960 | fail: | |
11961 | return NULL; | |
11962 | } | |
11963 | ||
11964 | ||
11965 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11966 | PyObject *resultobj; | |
11967 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11968 | bool arg2 ; | |
11969 | PyObject * obj0 = 0 ; | |
11970 | PyObject * obj1 = 0 ; | |
11971 | char *kwnames[] = { | |
11972 | (char *) "self",(char *) "enabled", NULL | |
11973 | }; | |
11974 | ||
11975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
11977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11978 | arg2 = (bool) SWIG_AsBool(obj1); | |
11979 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11980 | { |
11981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11982 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11983 | ||
11984 | wxPyEndAllowThreads(__tstate); | |
11985 | if (PyErr_Occurred()) SWIG_fail; | |
11986 | } | |
11987 | Py_INCREF(Py_None); resultobj = Py_None; | |
11988 | return resultobj; | |
11989 | fail: | |
11990 | return NULL; | |
11991 | } | |
11992 | ||
11993 | ||
11994 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11995 | PyObject *resultobj; | |
11996 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11997 | wxEvent *arg2 = 0 ; | |
11998 | bool result; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | PyObject * obj1 = 0 ; | |
12001 | char *kwnames[] = { | |
12002 | (char *) "self",(char *) "event", NULL | |
12003 | }; | |
12004 | ||
12005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12010 | SWIG_fail; | |
d14a1e28 | 12011 | if (arg2 == NULL) { |
15afbcd0 RD |
12012 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12013 | SWIG_fail; | |
d14a1e28 RD |
12014 | } |
12015 | { | |
12016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12017 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12018 | ||
12019 | wxPyEndAllowThreads(__tstate); | |
12020 | if (PyErr_Occurred()) SWIG_fail; | |
12021 | } | |
4f89f6a3 RD |
12022 | { |
12023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12024 | } | |
d14a1e28 RD |
12025 | return resultobj; |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
12031 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12032 | PyObject *resultobj; | |
12033 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12034 | wxEvent *arg2 = 0 ; | |
12035 | PyObject * obj0 = 0 ; | |
12036 | PyObject * obj1 = 0 ; | |
12037 | char *kwnames[] = { | |
12038 | (char *) "self",(char *) "event", NULL | |
12039 | }; | |
12040 | ||
12041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12044 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12045 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12046 | SWIG_fail; | |
d14a1e28 | 12047 | if (arg2 == NULL) { |
15afbcd0 RD |
12048 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12049 | SWIG_fail; | |
d14a1e28 RD |
12050 | } |
12051 | { | |
12052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12053 | (arg1)->AddPendingEvent(*arg2); | |
12054 | ||
12055 | wxPyEndAllowThreads(__tstate); | |
12056 | if (PyErr_Occurred()) SWIG_fail; | |
12057 | } | |
12058 | Py_INCREF(Py_None); resultobj = Py_None; | |
12059 | return resultobj; | |
12060 | fail: | |
12061 | return NULL; | |
12062 | } | |
12063 | ||
12064 | ||
12065 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12066 | PyObject *resultobj; | |
12067 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | char *kwnames[] = { | |
12070 | (char *) "self", NULL | |
12071 | }; | |
12072 | ||
12073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12076 | { |
12077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12078 | (arg1)->ProcessPendingEvents(); | |
12079 | ||
12080 | wxPyEndAllowThreads(__tstate); | |
12081 | if (PyErr_Occurred()) SWIG_fail; | |
12082 | } | |
12083 | Py_INCREF(Py_None); resultobj = Py_None; | |
12084 | return resultobj; | |
12085 | fail: | |
12086 | return NULL; | |
12087 | } | |
12088 | ||
12089 | ||
12090 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12091 | PyObject *resultobj; | |
12092 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12093 | int arg2 ; | |
12094 | int arg3 ; | |
12095 | int arg4 ; | |
12096 | PyObject *arg5 = (PyObject *) 0 ; | |
12097 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12098 | PyObject * obj1 = 0 ; |
12099 | PyObject * obj2 = 0 ; | |
12100 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12101 | PyObject * obj4 = 0 ; |
12102 | char *kwnames[] = { | |
12103 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12104 | }; | |
12105 | ||
994141e6 | 12106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
12107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12109 | arg2 = (int) SWIG_AsInt(obj1); | |
12110 | if (PyErr_Occurred()) SWIG_fail; | |
12111 | arg3 = (int) SWIG_AsInt(obj2); | |
12112 | if (PyErr_Occurred()) SWIG_fail; | |
12113 | arg4 = (int) SWIG_AsInt(obj3); | |
12114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12115 | arg5 = obj4; |
12116 | { | |
12117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12118 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12119 | ||
12120 | wxPyEndAllowThreads(__tstate); | |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
12122 | } | |
12123 | Py_INCREF(Py_None); resultobj = Py_None; | |
12124 | return resultobj; | |
12125 | fail: | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj; | |
12132 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12133 | int arg2 ; | |
12134 | int arg3 = (int) -1 ; | |
12135 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12136 | bool result; | |
12137 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12138 | PyObject * obj1 = 0 ; |
12139 | PyObject * obj2 = 0 ; | |
12140 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12141 | char *kwnames[] = { |
12142 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12143 | }; | |
12144 | ||
994141e6 | 12145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12148 | arg2 = (int) SWIG_AsInt(obj1); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12150 | if (obj2) { |
15afbcd0 RD |
12151 | arg3 = (int) SWIG_AsInt(obj2); |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12153 | } |
12154 | if (obj3) { | |
15afbcd0 RD |
12155 | arg4 = (wxEventType) SWIG_AsInt(obj3); |
12156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12157 | } |
d14a1e28 RD |
12158 | { |
12159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12160 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12161 | ||
12162 | wxPyEndAllowThreads(__tstate); | |
12163 | if (PyErr_Occurred()) SWIG_fail; | |
12164 | } | |
4f89f6a3 RD |
12165 | { |
12166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12167 | } | |
d14a1e28 RD |
12168 | return resultobj; |
12169 | fail: | |
12170 | return NULL; | |
12171 | } | |
12172 | ||
12173 | ||
12174 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12175 | PyObject *resultobj; | |
12176 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12177 | PyObject *arg2 = (PyObject *) 0 ; | |
12178 | PyObject * obj0 = 0 ; | |
12179 | PyObject * obj1 = 0 ; | |
12180 | char *kwnames[] = { | |
12181 | (char *) "self",(char *) "_self", NULL | |
12182 | }; | |
12183 | ||
12184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
12186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12187 | arg2 = obj1; |
12188 | { | |
12189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12190 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12191 | ||
12192 | wxPyEndAllowThreads(__tstate); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | } | |
12195 | Py_INCREF(Py_None); resultobj = Py_None; | |
12196 | return resultobj; | |
12197 | fail: | |
12198 | return NULL; | |
12199 | } | |
12200 | ||
12201 | ||
12202 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12203 | PyObject *obj; | |
12204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12205 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12206 | Py_INCREF(obj); | |
12207 | return Py_BuildValue((char *)""); | |
12208 | } | |
12209 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12210 | PyObject *resultobj; | |
12211 | wxEventType result; | |
12212 | char *kwnames[] = { | |
12213 | NULL | |
12214 | }; | |
12215 | ||
12216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (wxEventType)wxNewEventType(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
15afbcd0 | 12224 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12225 | return resultobj; |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12232 | PyObject *resultobj; | |
12233 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12234 | PyObject * obj0 = 0 ; | |
12235 | char *kwnames[] = { | |
12236 | (char *) "self", NULL | |
12237 | }; | |
12238 | ||
12239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12242 | { |
12243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12244 | delete arg1; | |
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_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12257 | PyObject *resultobj; | |
12258 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12259 | wxEventType arg2 ; | |
12260 | PyObject * obj0 = 0 ; | |
994141e6 | 12261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12262 | char *kwnames[] = { |
12263 | (char *) "self",(char *) "typ", NULL | |
12264 | }; | |
12265 | ||
994141e6 | 12266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12269 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12271 | { |
12272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12273 | (arg1)->SetEventType(arg2); | |
12274 | ||
12275 | wxPyEndAllowThreads(__tstate); | |
12276 | if (PyErr_Occurred()) SWIG_fail; | |
12277 | } | |
12278 | Py_INCREF(Py_None); resultobj = Py_None; | |
12279 | return resultobj; | |
12280 | fail: | |
12281 | return NULL; | |
12282 | } | |
12283 | ||
12284 | ||
12285 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12286 | PyObject *resultobj; | |
12287 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12288 | wxEventType result; | |
12289 | PyObject * obj0 = 0 ; | |
12290 | char *kwnames[] = { | |
12291 | (char *) "self", NULL | |
12292 | }; | |
12293 | ||
12294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12297 | { |
12298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12299 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12300 | ||
12301 | wxPyEndAllowThreads(__tstate); | |
12302 | if (PyErr_Occurred()) SWIG_fail; | |
12303 | } | |
15afbcd0 | 12304 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12305 | return resultobj; |
12306 | fail: | |
12307 | return NULL; | |
12308 | } | |
12309 | ||
12310 | ||
12311 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12312 | PyObject *resultobj; | |
12313 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12314 | wxObject *result; | |
12315 | PyObject * obj0 = 0 ; | |
12316 | char *kwnames[] = { | |
12317 | (char *) "self", NULL | |
12318 | }; | |
12319 | ||
12320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12323 | { |
12324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12325 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12326 | ||
12327 | wxPyEndAllowThreads(__tstate); | |
12328 | if (PyErr_Occurred()) SWIG_fail; | |
12329 | } | |
12330 | { | |
12331 | resultobj = wxPyMake_wxObject(result); | |
12332 | } | |
12333 | return resultobj; | |
12334 | fail: | |
12335 | return NULL; | |
12336 | } | |
12337 | ||
12338 | ||
12339 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12340 | PyObject *resultobj; | |
12341 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12342 | wxObject *arg2 = (wxObject *) 0 ; | |
12343 | PyObject * obj0 = 0 ; | |
12344 | PyObject * obj1 = 0 ; | |
12345 | char *kwnames[] = { | |
12346 | (char *) "self",(char *) "obj", NULL | |
12347 | }; | |
12348 | ||
12349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12354 | { |
12355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12356 | (arg1)->SetEventObject(arg2); | |
12357 | ||
12358 | wxPyEndAllowThreads(__tstate); | |
12359 | if (PyErr_Occurred()) SWIG_fail; | |
12360 | } | |
12361 | Py_INCREF(Py_None); resultobj = Py_None; | |
12362 | return resultobj; | |
12363 | fail: | |
12364 | return NULL; | |
12365 | } | |
12366 | ||
12367 | ||
12368 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12369 | PyObject *resultobj; | |
12370 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12371 | long result; | |
12372 | PyObject * obj0 = 0 ; | |
12373 | char *kwnames[] = { | |
12374 | (char *) "self", NULL | |
12375 | }; | |
12376 | ||
12377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12380 | { |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12382 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
15afbcd0 | 12387 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
12388 | return resultobj; |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
12394 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12395 | PyObject *resultobj; | |
12396 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12397 | long arg2 = (long) 0 ; | |
12398 | PyObject * obj0 = 0 ; | |
994141e6 | 12399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12400 | char *kwnames[] = { |
12401 | (char *) "self",(char *) "ts", NULL | |
12402 | }; | |
12403 | ||
994141e6 | 12404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 12407 | if (obj1) { |
15afbcd0 RD |
12408 | arg2 = (long) SWIG_AsLong(obj1); |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12410 | } |
d14a1e28 RD |
12411 | { |
12412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12413 | (arg1)->SetTimestamp(arg2); | |
12414 | ||
12415 | wxPyEndAllowThreads(__tstate); | |
12416 | if (PyErr_Occurred()) SWIG_fail; | |
12417 | } | |
12418 | Py_INCREF(Py_None); resultobj = Py_None; | |
12419 | return resultobj; | |
12420 | fail: | |
12421 | return NULL; | |
12422 | } | |
12423 | ||
12424 | ||
12425 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12426 | PyObject *resultobj; | |
12427 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12428 | int result; | |
12429 | PyObject * obj0 = 0 ; | |
12430 | char *kwnames[] = { | |
12431 | (char *) "self", NULL | |
12432 | }; | |
12433 | ||
12434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12437 | { |
12438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12439 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12440 | ||
12441 | wxPyEndAllowThreads(__tstate); | |
12442 | if (PyErr_Occurred()) SWIG_fail; | |
12443 | } | |
15afbcd0 | 12444 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12445 | return resultobj; |
12446 | fail: | |
12447 | return NULL; | |
12448 | } | |
12449 | ||
12450 | ||
12451 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12452 | PyObject *resultobj; | |
12453 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12454 | int arg2 ; | |
12455 | PyObject * obj0 = 0 ; | |
994141e6 | 12456 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12457 | char *kwnames[] = { |
12458 | (char *) "self",(char *) "Id", NULL | |
12459 | }; | |
12460 | ||
994141e6 | 12461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12464 | arg2 = (int) SWIG_AsInt(obj1); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12466 | { |
12467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12468 | (arg1)->SetId(arg2); | |
12469 | ||
12470 | wxPyEndAllowThreads(__tstate); | |
12471 | if (PyErr_Occurred()) SWIG_fail; | |
12472 | } | |
12473 | Py_INCREF(Py_None); resultobj = Py_None; | |
12474 | return resultobj; | |
12475 | fail: | |
12476 | return NULL; | |
12477 | } | |
12478 | ||
12479 | ||
12480 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12481 | PyObject *resultobj; | |
12482 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12483 | bool result; | |
12484 | PyObject * obj0 = 0 ; | |
12485 | char *kwnames[] = { | |
12486 | (char *) "self", NULL | |
12487 | }; | |
12488 | ||
12489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12492 | { |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
4f89f6a3 RD |
12499 | { |
12500 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12501 | } | |
d14a1e28 RD |
12502 | return resultobj; |
12503 | fail: | |
12504 | return NULL; | |
12505 | } | |
12506 | ||
12507 | ||
12508 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12509 | PyObject *resultobj; | |
12510 | wxEvent *arg1 = (wxEvent *) 0 ; | |
e811c8ce | 12511 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12512 | PyObject * obj0 = 0 ; |
12513 | PyObject * obj1 = 0 ; | |
12514 | char *kwnames[] = { | |
12515 | (char *) "self",(char *) "skip", NULL | |
12516 | }; | |
12517 | ||
12518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 12521 | if (obj1) { |
15afbcd0 RD |
12522 | arg2 = (bool) SWIG_AsBool(obj1); |
12523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12524 | } |
12525 | { | |
12526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12527 | (arg1)->Skip(arg2); | |
12528 | ||
12529 | wxPyEndAllowThreads(__tstate); | |
12530 | if (PyErr_Occurred()) SWIG_fail; | |
12531 | } | |
12532 | Py_INCREF(Py_None); resultobj = Py_None; | |
12533 | return resultobj; | |
12534 | fail: | |
12535 | return NULL; | |
12536 | } | |
12537 | ||
12538 | ||
12539 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12540 | PyObject *resultobj; | |
12541 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12542 | bool result; | |
12543 | PyObject * obj0 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12551 | { |
12552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12553 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12554 | ||
12555 | wxPyEndAllowThreads(__tstate); | |
12556 | if (PyErr_Occurred()) SWIG_fail; | |
12557 | } | |
4f89f6a3 RD |
12558 | { |
12559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12560 | } | |
d14a1e28 RD |
12561 | return resultobj; |
12562 | fail: | |
12563 | return NULL; | |
12564 | } | |
12565 | ||
12566 | ||
12567 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12568 | PyObject *resultobj; | |
12569 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12570 | bool result; | |
12571 | PyObject * obj0 = 0 ; | |
12572 | char *kwnames[] = { | |
12573 | (char *) "self", NULL | |
12574 | }; | |
12575 | ||
12576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12579 | { |
12580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12581 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12582 | ||
12583 | wxPyEndAllowThreads(__tstate); | |
12584 | if (PyErr_Occurred()) SWIG_fail; | |
12585 | } | |
4f89f6a3 RD |
12586 | { |
12587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12588 | } | |
d14a1e28 RD |
12589 | return resultobj; |
12590 | fail: | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
12595 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12596 | PyObject *resultobj; | |
12597 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12598 | int result; | |
12599 | PyObject * obj0 = 0 ; | |
12600 | char *kwnames[] = { | |
12601 | (char *) "self", NULL | |
12602 | }; | |
12603 | ||
12604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12607 | { |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | result = (int)(arg1)->StopPropagation(); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
15afbcd0 | 12614 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12615 | return resultobj; |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
12621 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12622 | PyObject *resultobj; | |
12623 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12624 | int arg2 ; | |
12625 | PyObject * obj0 = 0 ; | |
994141e6 | 12626 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12627 | char *kwnames[] = { |
12628 | (char *) "self",(char *) "propagationLevel", NULL | |
12629 | }; | |
12630 | ||
994141e6 | 12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12634 | arg2 = (int) SWIG_AsInt(obj1); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12636 | { |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->ResumePropagation(arg2); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12653 | wxEvent *result; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | char *kwnames[] = { | |
12656 | (char *) "self", NULL | |
12657 | }; | |
12658 | ||
12659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12662 | { |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | result = (wxEvent *)(arg1)->Clone(); | |
12665 | ||
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
15afbcd0 | 12669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
12670 | return resultobj; |
12671 | fail: | |
12672 | return NULL; | |
12673 | } | |
12674 | ||
12675 | ||
12676 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12677 | PyObject *obj; | |
12678 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12679 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12680 | Py_INCREF(obj); | |
12681 | return Py_BuildValue((char *)""); | |
12682 | } | |
12683 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12684 | PyObject *resultobj; | |
12685 | wxEvent *arg1 = 0 ; | |
12686 | wxPropagationDisabler *result; | |
12687 | PyObject * obj0 = 0 ; | |
12688 | char *kwnames[] = { | |
12689 | (char *) "event", NULL | |
12690 | }; | |
12691 | ||
12692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12694 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12695 | SWIG_fail; | |
d14a1e28 | 12696 | if (arg1 == NULL) { |
15afbcd0 RD |
12697 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12698 | SWIG_fail; | |
d14a1e28 RD |
12699 | } |
12700 | { | |
12701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12702 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12703 | ||
12704 | wxPyEndAllowThreads(__tstate); | |
12705 | if (PyErr_Occurred()) SWIG_fail; | |
12706 | } | |
15afbcd0 | 12707 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); |
d14a1e28 RD |
12708 | return resultobj; |
12709 | fail: | |
12710 | return NULL; | |
12711 | } | |
12712 | ||
12713 | ||
12714 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12715 | PyObject *resultobj; | |
12716 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12717 | PyObject * obj0 = 0 ; | |
12718 | char *kwnames[] = { | |
12719 | (char *) "self", NULL | |
12720 | }; | |
12721 | ||
12722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, |
12724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12725 | { |
12726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12727 | delete arg1; | |
12728 | ||
12729 | wxPyEndAllowThreads(__tstate); | |
12730 | if (PyErr_Occurred()) SWIG_fail; | |
12731 | } | |
12732 | Py_INCREF(Py_None); resultobj = Py_None; | |
12733 | return resultobj; | |
12734 | fail: | |
12735 | return NULL; | |
12736 | } | |
12737 | ||
12738 | ||
12739 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12740 | PyObject *obj; | |
12741 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12742 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12743 | Py_INCREF(obj); | |
12744 | return Py_BuildValue((char *)""); | |
12745 | } | |
12746 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12747 | PyObject *resultobj; | |
12748 | wxEvent *arg1 = 0 ; | |
12749 | wxPropagateOnce *result; | |
12750 | PyObject * obj0 = 0 ; | |
12751 | char *kwnames[] = { | |
12752 | (char *) "event", NULL | |
12753 | }; | |
12754 | ||
12755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, |
12757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12758 | SWIG_fail; | |
d14a1e28 | 12759 | if (arg1 == NULL) { |
15afbcd0 RD |
12760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12761 | SWIG_fail; | |
d14a1e28 RD |
12762 | } |
12763 | { | |
12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12765 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12766 | ||
12767 | wxPyEndAllowThreads(__tstate); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
15afbcd0 | 12770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); |
d14a1e28 RD |
12771 | return resultobj; |
12772 | fail: | |
12773 | return NULL; | |
12774 | } | |
12775 | ||
12776 | ||
12777 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12778 | PyObject *resultobj; | |
12779 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, |
12787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12788 | { |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | delete arg1; | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
12795 | Py_INCREF(Py_None); resultobj = Py_None; | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | return NULL; | |
12799 | } | |
12800 | ||
12801 | ||
12802 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12803 | PyObject *obj; | |
12804 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12805 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12806 | Py_INCREF(obj); | |
12807 | return Py_BuildValue((char *)""); | |
12808 | } | |
12809 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12810 | PyObject *resultobj; | |
12811 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12812 | int arg2 = (int) 0 ; | |
12813 | wxCommandEvent *result; | |
994141e6 RD |
12814 | PyObject * obj0 = 0 ; |
12815 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
12816 | char *kwnames[] = { |
12817 | (char *) "commandType",(char *) "winid", NULL | |
12818 | }; | |
12819 | ||
994141e6 RD |
12820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; |
12821 | if (obj0) { | |
15afbcd0 RD |
12822 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
12823 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
12824 | } |
12825 | if (obj1) { | |
15afbcd0 RD |
12826 | arg2 = (int) SWIG_AsInt(obj1); |
12827 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12828 | } |
d14a1e28 RD |
12829 | { |
12830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12831 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12832 | ||
12833 | wxPyEndAllowThreads(__tstate); | |
12834 | if (PyErr_Occurred()) SWIG_fail; | |
12835 | } | |
15afbcd0 | 12836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); |
d14a1e28 RD |
12837 | return resultobj; |
12838 | fail: | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
12843 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12844 | PyObject *resultobj; | |
12845 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12846 | int result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12855 | { |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
15afbcd0 | 12862 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12863 | return resultobj; |
12864 | fail: | |
12865 | return NULL; | |
12866 | } | |
12867 | ||
12868 | ||
12869 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12870 | PyObject *resultobj; | |
12871 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12872 | wxString *arg2 = 0 ; | |
e811c8ce | 12873 | bool temp2 = False ; |
d14a1e28 RD |
12874 | PyObject * obj0 = 0 ; |
12875 | PyObject * obj1 = 0 ; | |
12876 | char *kwnames[] = { | |
12877 | (char *) "self",(char *) "s", NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12883 | { |
12884 | arg2 = wxString_in_helper(obj1); | |
12885 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12886 | temp2 = True; |
d14a1e28 RD |
12887 | } |
12888 | { | |
12889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12890 | (arg1)->SetString((wxString const &)*arg2); | |
12891 | ||
12892 | wxPyEndAllowThreads(__tstate); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
12895 | Py_INCREF(Py_None); resultobj = Py_None; | |
12896 | { | |
12897 | if (temp2) | |
12898 | delete arg2; | |
12899 | } | |
12900 | return resultobj; | |
12901 | fail: | |
12902 | { | |
12903 | if (temp2) | |
12904 | delete arg2; | |
12905 | } | |
12906 | return NULL; | |
12907 | } | |
12908 | ||
12909 | ||
12910 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12911 | PyObject *resultobj; | |
12912 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12913 | wxString result; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | char *kwnames[] = { | |
12916 | (char *) "self", NULL | |
12917 | }; | |
12918 | ||
12919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12922 | { |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
12929 | { | |
12930 | #if wxUSE_UNICODE | |
12931 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12932 | #else | |
12933 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12934 | #endif | |
12935 | } | |
12936 | return resultobj; | |
12937 | fail: | |
12938 | return NULL; | |
12939 | } | |
12940 | ||
12941 | ||
12942 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12943 | PyObject *resultobj; | |
12944 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12945 | bool result; | |
12946 | PyObject * obj0 = 0 ; | |
12947 | char *kwnames[] = { | |
12948 | (char *) "self", NULL | |
12949 | }; | |
12950 | ||
12951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12954 | { |
12955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12956 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12957 | ||
12958 | wxPyEndAllowThreads(__tstate); | |
12959 | if (PyErr_Occurred()) SWIG_fail; | |
12960 | } | |
4f89f6a3 RD |
12961 | { |
12962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12963 | } | |
d14a1e28 RD |
12964 | return resultobj; |
12965 | fail: | |
12966 | return NULL; | |
12967 | } | |
12968 | ||
12969 | ||
12970 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12971 | PyObject *resultobj; | |
12972 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12973 | bool result; | |
12974 | PyObject * obj0 = 0 ; | |
12975 | char *kwnames[] = { | |
12976 | (char *) "self", NULL | |
12977 | }; | |
12978 | ||
12979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
12981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12982 | { |
12983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12984 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12985 | ||
12986 | wxPyEndAllowThreads(__tstate); | |
12987 | if (PyErr_Occurred()) SWIG_fail; | |
12988 | } | |
4f89f6a3 RD |
12989 | { |
12990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12991 | } | |
d14a1e28 RD |
12992 | return resultobj; |
12993 | fail: | |
12994 | return NULL; | |
12995 | } | |
12996 | ||
12997 | ||
12998 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12999 | PyObject *resultobj; | |
13000 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13001 | long arg2 ; | |
13002 | PyObject * obj0 = 0 ; | |
994141e6 | 13003 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13004 | char *kwnames[] = { |
13005 | (char *) "self",(char *) "extraLong", NULL | |
13006 | }; | |
13007 | ||
994141e6 | 13008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13011 | arg2 = (long) SWIG_AsLong(obj1); | |
13012 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13013 | { |
13014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13015 | (arg1)->SetExtraLong(arg2); | |
13016 | ||
13017 | wxPyEndAllowThreads(__tstate); | |
13018 | if (PyErr_Occurred()) SWIG_fail; | |
13019 | } | |
13020 | Py_INCREF(Py_None); resultobj = Py_None; | |
13021 | return resultobj; | |
13022 | fail: | |
13023 | return NULL; | |
13024 | } | |
13025 | ||
13026 | ||
13027 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13028 | PyObject *resultobj; | |
13029 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13030 | long result; | |
13031 | PyObject * obj0 = 0 ; | |
13032 | char *kwnames[] = { | |
13033 | (char *) "self", NULL | |
13034 | }; | |
13035 | ||
13036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13039 | { |
13040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13041 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13042 | ||
13043 | wxPyEndAllowThreads(__tstate); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
15afbcd0 | 13046 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13047 | return resultobj; |
13048 | fail: | |
13049 | return NULL; | |
13050 | } | |
13051 | ||
13052 | ||
13053 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13054 | PyObject *resultobj; | |
13055 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13056 | int arg2 ; | |
13057 | PyObject * obj0 = 0 ; | |
994141e6 | 13058 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13059 | char *kwnames[] = { |
13060 | (char *) "self",(char *) "i", NULL | |
13061 | }; | |
13062 | ||
994141e6 | 13063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13066 | arg2 = (int) SWIG_AsInt(obj1); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13068 | { |
13069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13070 | (arg1)->SetInt(arg2); | |
13071 | ||
13072 | wxPyEndAllowThreads(__tstate); | |
13073 | if (PyErr_Occurred()) SWIG_fail; | |
13074 | } | |
13075 | Py_INCREF(Py_None); resultobj = Py_None; | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | return NULL; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13083 | PyObject *resultobj; | |
13084 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13085 | long result; | |
13086 | PyObject * obj0 = 0 ; | |
13087 | char *kwnames[] = { | |
13088 | (char *) "self", NULL | |
13089 | }; | |
13090 | ||
13091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13094 | { |
13095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13096 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13097 | ||
13098 | wxPyEndAllowThreads(__tstate); | |
13099 | if (PyErr_Occurred()) SWIG_fail; | |
13100 | } | |
15afbcd0 | 13101 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
13102 | return resultobj; |
13103 | fail: | |
13104 | return NULL; | |
13105 | } | |
13106 | ||
13107 | ||
13108 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13109 | PyObject *resultobj; | |
13110 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13111 | wxEvent *result; | |
13112 | PyObject * obj0 = 0 ; | |
13113 | char *kwnames[] = { | |
13114 | (char *) "self", NULL | |
13115 | }; | |
13116 | ||
13117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, |
13119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13120 | { |
13121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13122 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13123 | ||
13124 | wxPyEndAllowThreads(__tstate); | |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
13126 | } | |
15afbcd0 | 13127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); |
d14a1e28 RD |
13128 | return resultobj; |
13129 | fail: | |
13130 | return NULL; | |
13131 | } | |
13132 | ||
13133 | ||
13134 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13135 | PyObject *obj; | |
13136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13137 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13138 | Py_INCREF(obj); | |
13139 | return Py_BuildValue((char *)""); | |
13140 | } | |
13141 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13144 | int arg2 = (int) 0 ; | |
13145 | wxNotifyEvent *result; | |
994141e6 RD |
13146 | PyObject * obj0 = 0 ; |
13147 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
13148 | char *kwnames[] = { |
13149 | (char *) "commandType",(char *) "winid", NULL | |
13150 | }; | |
13151 | ||
994141e6 RD |
13152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; |
13153 | if (obj0) { | |
15afbcd0 RD |
13154 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13155 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13156 | } |
13157 | if (obj1) { | |
15afbcd0 RD |
13158 | arg2 = (int) SWIG_AsInt(obj1); |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13160 | } |
d14a1e28 RD |
13161 | { |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13164 | ||
13165 | wxPyEndAllowThreads(__tstate); | |
13166 | if (PyErr_Occurred()) SWIG_fail; | |
13167 | } | |
15afbcd0 | 13168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); |
d14a1e28 RD |
13169 | return resultobj; |
13170 | fail: | |
13171 | return NULL; | |
13172 | } | |
13173 | ||
13174 | ||
13175 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13176 | PyObject *resultobj; | |
13177 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13178 | PyObject * obj0 = 0 ; | |
13179 | char *kwnames[] = { | |
13180 | (char *) "self", NULL | |
13181 | }; | |
13182 | ||
13183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13186 | { |
13187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13188 | (arg1)->Veto(); | |
13189 | ||
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | Py_INCREF(Py_None); resultobj = Py_None; | |
13194 | return resultobj; | |
13195 | fail: | |
13196 | return NULL; | |
13197 | } | |
13198 | ||
13199 | ||
13200 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13201 | PyObject *resultobj; | |
13202 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13203 | PyObject * obj0 = 0 ; | |
13204 | char *kwnames[] = { | |
13205 | (char *) "self", NULL | |
13206 | }; | |
13207 | ||
13208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13211 | { |
13212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13213 | (arg1)->Allow(); | |
13214 | ||
13215 | wxPyEndAllowThreads(__tstate); | |
13216 | if (PyErr_Occurred()) SWIG_fail; | |
13217 | } | |
13218 | Py_INCREF(Py_None); resultobj = Py_None; | |
13219 | return resultobj; | |
13220 | fail: | |
13221 | return NULL; | |
13222 | } | |
13223 | ||
13224 | ||
13225 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13226 | PyObject *resultobj; | |
13227 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13228 | bool result; | |
13229 | PyObject * obj0 = 0 ; | |
13230 | char *kwnames[] = { | |
13231 | (char *) "self", NULL | |
13232 | }; | |
13233 | ||
13234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, |
13236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13237 | { |
13238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13239 | result = (bool)(arg1)->IsAllowed(); | |
13240 | ||
13241 | wxPyEndAllowThreads(__tstate); | |
13242 | if (PyErr_Occurred()) SWIG_fail; | |
13243 | } | |
4f89f6a3 RD |
13244 | { |
13245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13246 | } | |
d14a1e28 RD |
13247 | return resultobj; |
13248 | fail: | |
13249 | return NULL; | |
13250 | } | |
13251 | ||
13252 | ||
13253 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13254 | PyObject *obj; | |
13255 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13256 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13257 | Py_INCREF(obj); | |
13258 | return Py_BuildValue((char *)""); | |
13259 | } | |
13260 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13261 | PyObject *resultobj; | |
13262 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13263 | int arg2 = (int) 0 ; | |
13264 | int arg3 = (int) 0 ; | |
13265 | int arg4 = (int) 0 ; | |
13266 | wxScrollEvent *result; | |
994141e6 RD |
13267 | PyObject * obj0 = 0 ; |
13268 | PyObject * obj1 = 0 ; | |
13269 | PyObject * obj2 = 0 ; | |
13270 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13271 | char *kwnames[] = { |
13272 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13273 | }; | |
13274 | ||
994141e6 RD |
13275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13276 | if (obj0) { | |
15afbcd0 RD |
13277 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13278 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13279 | } |
13280 | if (obj1) { | |
15afbcd0 RD |
13281 | arg2 = (int) SWIG_AsInt(obj1); |
13282 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13283 | } |
13284 | if (obj2) { | |
15afbcd0 RD |
13285 | arg3 = (int) SWIG_AsInt(obj2); |
13286 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13287 | } |
13288 | if (obj3) { | |
15afbcd0 RD |
13289 | arg4 = (int) SWIG_AsInt(obj3); |
13290 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13291 | } |
d14a1e28 RD |
13292 | { |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13295 | ||
13296 | wxPyEndAllowThreads(__tstate); | |
13297 | if (PyErr_Occurred()) SWIG_fail; | |
13298 | } | |
15afbcd0 | 13299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); |
d14a1e28 RD |
13300 | return resultobj; |
13301 | fail: | |
13302 | return NULL; | |
13303 | } | |
13304 | ||
13305 | ||
13306 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13307 | PyObject *resultobj; | |
13308 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13309 | int result; | |
13310 | PyObject * obj0 = 0 ; | |
13311 | char *kwnames[] = { | |
13312 | (char *) "self", NULL | |
13313 | }; | |
13314 | ||
13315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13318 | { |
13319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13320 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13321 | ||
13322 | wxPyEndAllowThreads(__tstate); | |
13323 | if (PyErr_Occurred()) SWIG_fail; | |
13324 | } | |
15afbcd0 | 13325 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13326 | return resultobj; |
13327 | fail: | |
13328 | return NULL; | |
13329 | } | |
13330 | ||
13331 | ||
13332 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13333 | PyObject *resultobj; | |
13334 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13335 | int result; | |
13336 | PyObject * obj0 = 0 ; | |
13337 | char *kwnames[] = { | |
13338 | (char *) "self", NULL | |
13339 | }; | |
13340 | ||
13341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13344 | { |
13345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13346 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13347 | ||
13348 | wxPyEndAllowThreads(__tstate); | |
13349 | if (PyErr_Occurred()) SWIG_fail; | |
13350 | } | |
15afbcd0 | 13351 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13352 | return resultobj; |
13353 | fail: | |
13354 | return NULL; | |
13355 | } | |
13356 | ||
13357 | ||
13358 | static PyObject *_wrap_ScrollEvent_SetOrientation(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 *) "orient", NULL | |
13366 | }; | |
13367 | ||
994141e6 | 13368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",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)->SetOrientation(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 *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13388 | PyObject *resultobj; | |
13389 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13390 | int arg2 ; | |
13391 | PyObject * obj0 = 0 ; | |
994141e6 | 13392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13393 | char *kwnames[] = { |
13394 | (char *) "self",(char *) "pos", NULL | |
13395 | }; | |
13396 | ||
994141e6 | 13397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, |
13399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13400 | arg2 = (int) SWIG_AsInt(obj1); | |
13401 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13402 | { |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | (arg1)->SetPosition(arg2); | |
13405 | ||
13406 | wxPyEndAllowThreads(__tstate); | |
13407 | if (PyErr_Occurred()) SWIG_fail; | |
13408 | } | |
13409 | Py_INCREF(Py_None); resultobj = Py_None; | |
13410 | return resultobj; | |
13411 | fail: | |
13412 | return NULL; | |
13413 | } | |
13414 | ||
13415 | ||
13416 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13417 | PyObject *obj; | |
13418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13419 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13420 | Py_INCREF(obj); | |
13421 | return Py_BuildValue((char *)""); | |
13422 | } | |
13423 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13424 | PyObject *resultobj; | |
13425 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13426 | int arg2 = (int) 0 ; | |
13427 | int arg3 = (int) 0 ; | |
13428 | wxScrollWinEvent *result; | |
994141e6 RD |
13429 | PyObject * obj0 = 0 ; |
13430 | PyObject * obj1 = 0 ; | |
13431 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13432 | char *kwnames[] = { |
13433 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13434 | }; | |
13435 | ||
994141e6 RD |
13436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
13437 | if (obj0) { | |
15afbcd0 RD |
13438 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13440 | } |
13441 | if (obj1) { | |
15afbcd0 RD |
13442 | arg2 = (int) SWIG_AsInt(obj1); |
13443 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
13444 | } |
13445 | if (obj2) { | |
15afbcd0 RD |
13446 | arg3 = (int) SWIG_AsInt(obj2); |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13448 | } |
d14a1e28 RD |
13449 | { |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13451 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13452 | ||
13453 | wxPyEndAllowThreads(__tstate); | |
13454 | if (PyErr_Occurred()) SWIG_fail; | |
13455 | } | |
15afbcd0 | 13456 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); |
d14a1e28 RD |
13457 | return resultobj; |
13458 | fail: | |
13459 | return NULL; | |
13460 | } | |
13461 | ||
13462 | ||
13463 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13464 | PyObject *resultobj; | |
13465 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13466 | int result; | |
13467 | PyObject * obj0 = 0 ; | |
13468 | char *kwnames[] = { | |
13469 | (char *) "self", NULL | |
13470 | }; | |
13471 | ||
13472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13475 | { |
13476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13477 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13478 | ||
13479 | wxPyEndAllowThreads(__tstate); | |
13480 | if (PyErr_Occurred()) SWIG_fail; | |
13481 | } | |
15afbcd0 | 13482 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13483 | return resultobj; |
13484 | fail: | |
13485 | return NULL; | |
13486 | } | |
13487 | ||
13488 | ||
13489 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13490 | PyObject *resultobj; | |
13491 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13492 | int result; | |
13493 | PyObject * obj0 = 0 ; | |
13494 | char *kwnames[] = { | |
13495 | (char *) "self", NULL | |
13496 | }; | |
13497 | ||
13498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13501 | { |
13502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13503 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13504 | ||
13505 | wxPyEndAllowThreads(__tstate); | |
13506 | if (PyErr_Occurred()) SWIG_fail; | |
13507 | } | |
15afbcd0 | 13508 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13509 | return resultobj; |
13510 | fail: | |
13511 | return NULL; | |
13512 | } | |
13513 | ||
13514 | ||
13515 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(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 *) "orient", NULL | |
13523 | }; | |
13524 | ||
994141e6 | 13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",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)->SetOrientation(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 *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13545 | PyObject *resultobj; | |
13546 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13547 | int arg2 ; | |
13548 | PyObject * obj0 = 0 ; | |
994141e6 | 13549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13550 | char *kwnames[] = { |
13551 | (char *) "self",(char *) "pos", NULL | |
13552 | }; | |
13553 | ||
994141e6 | 13554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, |
13556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13557 | arg2 = (int) SWIG_AsInt(obj1); | |
13558 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13559 | { |
13560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13561 | (arg1)->SetPosition(arg2); | |
13562 | ||
13563 | wxPyEndAllowThreads(__tstate); | |
13564 | if (PyErr_Occurred()) SWIG_fail; | |
13565 | } | |
13566 | Py_INCREF(Py_None); resultobj = Py_None; | |
13567 | return resultobj; | |
13568 | fail: | |
13569 | return NULL; | |
13570 | } | |
13571 | ||
13572 | ||
13573 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13574 | PyObject *obj; | |
13575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13576 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13577 | Py_INCREF(obj); | |
13578 | return Py_BuildValue((char *)""); | |
13579 | } | |
13580 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13581 | PyObject *resultobj; | |
13582 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13583 | wxMouseEvent *result; | |
994141e6 | 13584 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
13585 | char *kwnames[] = { |
13586 | (char *) "mouseType", NULL | |
13587 | }; | |
13588 | ||
994141e6 RD |
13589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; |
13590 | if (obj0) { | |
15afbcd0 RD |
13591 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13592 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13593 | } |
d14a1e28 RD |
13594 | { |
13595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13596 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13597 | ||
13598 | wxPyEndAllowThreads(__tstate); | |
13599 | if (PyErr_Occurred()) SWIG_fail; | |
13600 | } | |
13601 | { | |
13602 | resultobj = wxPyMake_wxObject(result); | |
13603 | } | |
13604 | return resultobj; | |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
13610 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13611 | PyObject *resultobj; | |
13612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13613 | bool result; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13622 | { |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
4f89f6a3 RD |
13629 | { |
13630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13631 | } | |
d14a1e28 RD |
13632 | return resultobj; |
13633 | fail: | |
13634 | return NULL; | |
13635 | } | |
13636 | ||
13637 | ||
13638 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13639 | PyObject *resultobj; | |
13640 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13641 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13642 | bool result; | |
13643 | PyObject * obj0 = 0 ; | |
994141e6 | 13644 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13645 | char *kwnames[] = { |
13646 | (char *) "self",(char *) "but", NULL | |
13647 | }; | |
13648 | ||
994141e6 | 13649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13652 | if (obj1) { |
15afbcd0 RD |
13653 | arg2 = (int) SWIG_AsInt(obj1); |
13654 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13655 | } |
d14a1e28 RD |
13656 | { |
13657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13658 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13659 | ||
13660 | wxPyEndAllowThreads(__tstate); | |
13661 | if (PyErr_Occurred()) SWIG_fail; | |
13662 | } | |
4f89f6a3 RD |
13663 | { |
13664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13665 | } | |
d14a1e28 RD |
13666 | return resultobj; |
13667 | fail: | |
13668 | return NULL; | |
13669 | } | |
13670 | ||
13671 | ||
13672 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13673 | PyObject *resultobj; | |
13674 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13675 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13676 | bool result; | |
13677 | PyObject * obj0 = 0 ; | |
994141e6 | 13678 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13679 | char *kwnames[] = { |
13680 | (char *) "self",(char *) "but", NULL | |
13681 | }; | |
13682 | ||
994141e6 | 13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13686 | if (obj1) { |
15afbcd0 RD |
13687 | arg2 = (int) SWIG_AsInt(obj1); |
13688 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13689 | } |
d14a1e28 RD |
13690 | { |
13691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13692 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13693 | ||
13694 | wxPyEndAllowThreads(__tstate); | |
13695 | if (PyErr_Occurred()) SWIG_fail; | |
13696 | } | |
4f89f6a3 RD |
13697 | { |
13698 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13699 | } | |
d14a1e28 RD |
13700 | return resultobj; |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
13706 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13707 | PyObject *resultobj; | |
13708 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13709 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13710 | bool result; | |
13711 | PyObject * obj0 = 0 ; | |
994141e6 | 13712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13713 | char *kwnames[] = { |
13714 | (char *) "self",(char *) "but", NULL | |
13715 | }; | |
13716 | ||
994141e6 | 13717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 13720 | if (obj1) { |
15afbcd0 RD |
13721 | arg2 = (int) SWIG_AsInt(obj1); |
13722 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13723 | } |
d14a1e28 RD |
13724 | { |
13725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13726 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13727 | ||
13728 | wxPyEndAllowThreads(__tstate); | |
13729 | if (PyErr_Occurred()) SWIG_fail; | |
13730 | } | |
4f89f6a3 RD |
13731 | { |
13732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13733 | } | |
d14a1e28 RD |
13734 | return resultobj; |
13735 | fail: | |
13736 | return NULL; | |
13737 | } | |
13738 | ||
13739 | ||
13740 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13741 | PyObject *resultobj; | |
13742 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13743 | int arg2 ; | |
13744 | bool result; | |
13745 | PyObject * obj0 = 0 ; | |
994141e6 | 13746 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13747 | char *kwnames[] = { |
13748 | (char *) "self",(char *) "but", NULL | |
13749 | }; | |
13750 | ||
994141e6 | 13751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13754 | arg2 = (int) SWIG_AsInt(obj1); | |
13755 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13756 | { |
13757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13758 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13759 | ||
13760 | wxPyEndAllowThreads(__tstate); | |
13761 | if (PyErr_Occurred()) SWIG_fail; | |
13762 | } | |
4f89f6a3 RD |
13763 | { |
13764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13765 | } | |
d14a1e28 RD |
13766 | return resultobj; |
13767 | fail: | |
13768 | return NULL; | |
13769 | } | |
13770 | ||
13771 | ||
13772 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13773 | PyObject *resultobj; | |
13774 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13775 | int arg2 ; | |
13776 | bool result; | |
13777 | PyObject * obj0 = 0 ; | |
994141e6 | 13778 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13779 | char *kwnames[] = { |
13780 | (char *) "self",(char *) "but", NULL | |
13781 | }; | |
13782 | ||
994141e6 | 13783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13786 | arg2 = (int) SWIG_AsInt(obj1); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13788 | { |
13789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13790 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13791 | ||
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
4f89f6a3 RD |
13795 | { |
13796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13797 | } | |
d14a1e28 RD |
13798 | return resultobj; |
13799 | fail: | |
13800 | return NULL; | |
13801 | } | |
13802 | ||
13803 | ||
13804 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13805 | PyObject *resultobj; | |
13806 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13807 | int result; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char *kwnames[] = { | |
13810 | (char *) "self", NULL | |
13811 | }; | |
13812 | ||
13813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13816 | { |
13817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13818 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13819 | ||
13820 | wxPyEndAllowThreads(__tstate); | |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
13822 | } | |
15afbcd0 | 13823 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13824 | return resultobj; |
13825 | fail: | |
13826 | return NULL; | |
13827 | } | |
13828 | ||
13829 | ||
13830 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13831 | PyObject *resultobj; | |
13832 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13833 | bool result; | |
13834 | PyObject * obj0 = 0 ; | |
13835 | char *kwnames[] = { | |
13836 | (char *) "self", NULL | |
13837 | }; | |
13838 | ||
13839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13842 | { |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13845 | ||
13846 | wxPyEndAllowThreads(__tstate); | |
13847 | if (PyErr_Occurred()) SWIG_fail; | |
13848 | } | |
4f89f6a3 RD |
13849 | { |
13850 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13851 | } | |
d14a1e28 RD |
13852 | return resultobj; |
13853 | fail: | |
13854 | return NULL; | |
13855 | } | |
13856 | ||
13857 | ||
13858 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13859 | PyObject *resultobj; | |
13860 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13861 | bool result; | |
13862 | PyObject * obj0 = 0 ; | |
13863 | char *kwnames[] = { | |
13864 | (char *) "self", NULL | |
13865 | }; | |
13866 | ||
13867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13870 | { |
13871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13872 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13873 | ||
13874 | wxPyEndAllowThreads(__tstate); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | } | |
4f89f6a3 RD |
13877 | { |
13878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13879 | } | |
d14a1e28 RD |
13880 | return resultobj; |
13881 | fail: | |
13882 | return NULL; | |
13883 | } | |
13884 | ||
13885 | ||
13886 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13887 | PyObject *resultobj; | |
13888 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13889 | bool result; | |
13890 | PyObject * obj0 = 0 ; | |
13891 | char *kwnames[] = { | |
13892 | (char *) "self", NULL | |
13893 | }; | |
13894 | ||
13895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13898 | { |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
4f89f6a3 RD |
13905 | { |
13906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13907 | } | |
d14a1e28 RD |
13908 | return resultobj; |
13909 | fail: | |
13910 | return NULL; | |
13911 | } | |
13912 | ||
13913 | ||
13914 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13915 | PyObject *resultobj; | |
13916 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13917 | bool result; | |
13918 | PyObject * obj0 = 0 ; | |
13919 | char *kwnames[] = { | |
13920 | (char *) "self", NULL | |
13921 | }; | |
13922 | ||
13923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13926 | { |
13927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13928 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13929 | ||
13930 | wxPyEndAllowThreads(__tstate); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
4f89f6a3 RD |
13933 | { |
13934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13935 | } | |
d14a1e28 RD |
13936 | return resultobj; |
13937 | fail: | |
13938 | return NULL; | |
13939 | } | |
13940 | ||
13941 | ||
13942 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13943 | PyObject *resultobj; | |
13944 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13945 | bool result; | |
13946 | PyObject * obj0 = 0 ; | |
13947 | char *kwnames[] = { | |
13948 | (char *) "self", NULL | |
13949 | }; | |
13950 | ||
13951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13954 | { |
13955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13956 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13957 | ||
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
4f89f6a3 RD |
13961 | { |
13962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13963 | } | |
d14a1e28 RD |
13964 | return resultobj; |
13965 | fail: | |
13966 | return NULL; | |
13967 | } | |
13968 | ||
13969 | ||
13970 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13971 | PyObject *resultobj; | |
13972 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13973 | bool result; | |
13974 | PyObject * obj0 = 0 ; | |
13975 | char *kwnames[] = { | |
13976 | (char *) "self", NULL | |
13977 | }; | |
13978 | ||
13979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
13981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13982 | { |
13983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13984 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13985 | ||
13986 | wxPyEndAllowThreads(__tstate); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
4f89f6a3 RD |
13989 | { |
13990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13991 | } | |
d14a1e28 RD |
13992 | return resultobj; |
13993 | fail: | |
13994 | return NULL; | |
13995 | } | |
13996 | ||
13997 | ||
13998 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13999 | PyObject *resultobj; | |
14000 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14001 | bool result; | |
14002 | PyObject * obj0 = 0 ; | |
14003 | char *kwnames[] = { | |
14004 | (char *) "self", NULL | |
14005 | }; | |
14006 | ||
14007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14010 | { |
14011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14012 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14013 | ||
14014 | wxPyEndAllowThreads(__tstate); | |
14015 | if (PyErr_Occurred()) SWIG_fail; | |
14016 | } | |
4f89f6a3 RD |
14017 | { |
14018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14019 | } | |
d14a1e28 RD |
14020 | return resultobj; |
14021 | fail: | |
14022 | return NULL; | |
14023 | } | |
14024 | ||
14025 | ||
14026 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14027 | PyObject *resultobj; | |
14028 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14029 | bool result; | |
14030 | PyObject * obj0 = 0 ; | |
14031 | char *kwnames[] = { | |
14032 | (char *) "self", NULL | |
14033 | }; | |
14034 | ||
14035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14038 | { |
14039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14040 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14041 | ||
14042 | wxPyEndAllowThreads(__tstate); | |
14043 | if (PyErr_Occurred()) SWIG_fail; | |
14044 | } | |
4f89f6a3 RD |
14045 | { |
14046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14047 | } | |
d14a1e28 RD |
14048 | return resultobj; |
14049 | fail: | |
14050 | return NULL; | |
14051 | } | |
14052 | ||
14053 | ||
14054 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14055 | PyObject *resultobj; | |
14056 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14057 | bool result; | |
14058 | PyObject * obj0 = 0 ; | |
14059 | char *kwnames[] = { | |
14060 | (char *) "self", NULL | |
14061 | }; | |
14062 | ||
14063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14066 | { |
14067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14068 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14069 | ||
14070 | wxPyEndAllowThreads(__tstate); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
4f89f6a3 RD |
14073 | { |
14074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14075 | } | |
d14a1e28 RD |
14076 | return resultobj; |
14077 | fail: | |
14078 | return NULL; | |
14079 | } | |
14080 | ||
14081 | ||
14082 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14083 | PyObject *resultobj; | |
14084 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14085 | bool result; | |
14086 | PyObject * obj0 = 0 ; | |
14087 | char *kwnames[] = { | |
14088 | (char *) "self", NULL | |
14089 | }; | |
14090 | ||
14091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14094 | { |
14095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14096 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14097 | ||
14098 | wxPyEndAllowThreads(__tstate); | |
14099 | if (PyErr_Occurred()) SWIG_fail; | |
14100 | } | |
4f89f6a3 RD |
14101 | { |
14102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14103 | } | |
d14a1e28 RD |
14104 | return resultobj; |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14113 | bool result; | |
14114 | PyObject * obj0 = 0 ; | |
14115 | char *kwnames[] = { | |
14116 | (char *) "self", NULL | |
14117 | }; | |
14118 | ||
14119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14122 | { |
14123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14124 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14125 | ||
14126 | wxPyEndAllowThreads(__tstate); | |
14127 | if (PyErr_Occurred()) SWIG_fail; | |
14128 | } | |
4f89f6a3 RD |
14129 | { |
14130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14131 | } | |
d14a1e28 RD |
14132 | return resultobj; |
14133 | fail: | |
14134 | return NULL; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14139 | PyObject *resultobj; | |
14140 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14141 | bool result; | |
14142 | PyObject * obj0 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14150 | { |
14151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14152 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14153 | ||
14154 | wxPyEndAllowThreads(__tstate); | |
14155 | if (PyErr_Occurred()) SWIG_fail; | |
14156 | } | |
4f89f6a3 RD |
14157 | { |
14158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14159 | } | |
d14a1e28 RD |
14160 | return resultobj; |
14161 | fail: | |
14162 | return NULL; | |
14163 | } | |
14164 | ||
14165 | ||
14166 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14167 | PyObject *resultobj; | |
14168 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14169 | bool result; | |
14170 | PyObject * obj0 = 0 ; | |
14171 | char *kwnames[] = { | |
14172 | (char *) "self", NULL | |
14173 | }; | |
14174 | ||
14175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14178 | { |
14179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14180 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14181 | ||
14182 | wxPyEndAllowThreads(__tstate); | |
14183 | if (PyErr_Occurred()) SWIG_fail; | |
14184 | } | |
4f89f6a3 RD |
14185 | { |
14186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14187 | } | |
d14a1e28 RD |
14188 | return resultobj; |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14195 | PyObject *resultobj; | |
14196 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14197 | bool result; | |
14198 | PyObject * obj0 = 0 ; | |
14199 | char *kwnames[] = { | |
14200 | (char *) "self", NULL | |
14201 | }; | |
14202 | ||
14203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14206 | { |
14207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14208 | result = (bool)(arg1)->LeftIsDown(); | |
14209 | ||
14210 | wxPyEndAllowThreads(__tstate); | |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
4f89f6a3 RD |
14213 | { |
14214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14215 | } | |
d14a1e28 RD |
14216 | return resultobj; |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14225 | bool result; | |
14226 | PyObject * obj0 = 0 ; | |
14227 | char *kwnames[] = { | |
14228 | (char *) "self", NULL | |
14229 | }; | |
14230 | ||
14231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14234 | { |
14235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14236 | result = (bool)(arg1)->MiddleIsDown(); | |
14237 | ||
14238 | wxPyEndAllowThreads(__tstate); | |
14239 | if (PyErr_Occurred()) SWIG_fail; | |
14240 | } | |
4f89f6a3 RD |
14241 | { |
14242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14243 | } | |
d14a1e28 RD |
14244 | return resultobj; |
14245 | fail: | |
14246 | return NULL; | |
14247 | } | |
14248 | ||
14249 | ||
14250 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14251 | PyObject *resultobj; | |
14252 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14253 | bool result; | |
14254 | PyObject * obj0 = 0 ; | |
14255 | char *kwnames[] = { | |
14256 | (char *) "self", NULL | |
14257 | }; | |
14258 | ||
14259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14262 | { |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | result = (bool)(arg1)->RightIsDown(); | |
14265 | ||
14266 | wxPyEndAllowThreads(__tstate); | |
14267 | if (PyErr_Occurred()) SWIG_fail; | |
14268 | } | |
4f89f6a3 RD |
14269 | { |
14270 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14271 | } | |
d14a1e28 RD |
14272 | return resultobj; |
14273 | fail: | |
14274 | return NULL; | |
14275 | } | |
14276 | ||
14277 | ||
14278 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14279 | PyObject *resultobj; | |
14280 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14281 | bool result; | |
14282 | PyObject * obj0 = 0 ; | |
14283 | char *kwnames[] = { | |
14284 | (char *) "self", NULL | |
14285 | }; | |
14286 | ||
14287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14290 | { |
14291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14292 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14293 | ||
14294 | wxPyEndAllowThreads(__tstate); | |
14295 | if (PyErr_Occurred()) SWIG_fail; | |
14296 | } | |
4f89f6a3 RD |
14297 | { |
14298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14299 | } | |
d14a1e28 RD |
14300 | return resultobj; |
14301 | fail: | |
14302 | return NULL; | |
14303 | } | |
14304 | ||
14305 | ||
14306 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14307 | PyObject *resultobj; | |
14308 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14309 | bool result; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | char *kwnames[] = { | |
14312 | (char *) "self", NULL | |
14313 | }; | |
14314 | ||
14315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14318 | { |
14319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14320 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14321 | ||
14322 | wxPyEndAllowThreads(__tstate); | |
14323 | if (PyErr_Occurred()) SWIG_fail; | |
14324 | } | |
4f89f6a3 RD |
14325 | { |
14326 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14327 | } | |
d14a1e28 RD |
14328 | return resultobj; |
14329 | fail: | |
14330 | return NULL; | |
14331 | } | |
14332 | ||
14333 | ||
14334 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14335 | PyObject *resultobj; | |
14336 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14337 | bool result; | |
14338 | PyObject * obj0 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14346 | { |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14348 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14349 | ||
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
4f89f6a3 RD |
14353 | { |
14354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14355 | } | |
d14a1e28 RD |
14356 | return resultobj; |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14365 | bool result; | |
14366 | PyObject * obj0 = 0 ; | |
14367 | char *kwnames[] = { | |
14368 | (char *) "self", NULL | |
14369 | }; | |
14370 | ||
14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14374 | { |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
4f89f6a3 RD |
14381 | { |
14382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14383 | } | |
d14a1e28 RD |
14384 | return resultobj; |
14385 | fail: | |
14386 | return NULL; | |
14387 | } | |
14388 | ||
14389 | ||
14390 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14391 | PyObject *resultobj; | |
14392 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14393 | wxPoint result; | |
14394 | PyObject * obj0 = 0 ; | |
14395 | char *kwnames[] = { | |
14396 | (char *) "self", NULL | |
14397 | }; | |
14398 | ||
14399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14402 | { |
14403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14404 | result = (arg1)->GetPosition(); | |
14405 | ||
14406 | wxPyEndAllowThreads(__tstate); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | } | |
14409 | { | |
14410 | wxPoint * resultptr; | |
14411 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14413 | } |
14414 | return resultobj; | |
14415 | fail: | |
14416 | return NULL; | |
14417 | } | |
14418 | ||
14419 | ||
14420 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14421 | PyObject *resultobj; | |
14422 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14423 | long *arg2 = (long *) 0 ; | |
14424 | long *arg3 = (long *) 0 ; | |
14425 | long temp2 ; | |
14426 | long temp3 ; | |
14427 | PyObject * obj0 = 0 ; | |
14428 | char *kwnames[] = { | |
14429 | (char *) "self", NULL | |
14430 | }; | |
14431 | ||
14432 | arg2 = &temp2; | |
14433 | arg3 = &temp3; | |
14434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14437 | { |
14438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14439 | (arg1)->GetPosition(arg2,arg3); | |
14440 | ||
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | Py_INCREF(Py_None); resultobj = Py_None; | |
14445 | { | |
14446 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14447 | resultobj = t_output_helper(resultobj,o); | |
14448 | } | |
14449 | { | |
14450 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14451 | resultobj = t_output_helper(resultobj,o); | |
14452 | } | |
14453 | return resultobj; | |
14454 | fail: | |
14455 | return NULL; | |
14456 | } | |
14457 | ||
14458 | ||
14459 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14460 | PyObject *resultobj; | |
14461 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14462 | wxDC *arg2 = 0 ; | |
14463 | wxPoint result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | PyObject * obj1 = 0 ; | |
14466 | char *kwnames[] = { | |
14467 | (char *) "self",(char *) "dc", NULL | |
14468 | }; | |
14469 | ||
14470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14475 | SWIG_fail; | |
d14a1e28 | 14476 | if (arg2 == NULL) { |
15afbcd0 RD |
14477 | PyErr_SetString(PyExc_TypeError,"null reference"); |
14478 | SWIG_fail; | |
d14a1e28 RD |
14479 | } |
14480 | { | |
14481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14482 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14483 | ||
14484 | wxPyEndAllowThreads(__tstate); | |
14485 | if (PyErr_Occurred()) SWIG_fail; | |
14486 | } | |
14487 | { | |
14488 | wxPoint * resultptr; | |
14489 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 14490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
14491 | } |
14492 | return resultobj; | |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj; | |
14500 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14501 | int result; |
d14a1e28 RD |
14502 | PyObject * obj0 = 0 ; |
14503 | char *kwnames[] = { | |
14504 | (char *) "self", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14510 | { |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14512 | result = (int)((wxMouseEvent const *)arg1)->GetX(); |
d14a1e28 RD |
14513 | |
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
15afbcd0 | 14517 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14518 | return resultobj; |
14519 | fail: | |
14520 | return NULL; | |
14521 | } | |
14522 | ||
14523 | ||
14524 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14525 | PyObject *resultobj; | |
14526 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14527 | int result; |
d14a1e28 RD |
14528 | PyObject * obj0 = 0 ; |
14529 | char *kwnames[] = { | |
14530 | (char *) "self", NULL | |
14531 | }; | |
14532 | ||
14533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14536 | { |
14537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 14538 | result = (int)((wxMouseEvent const *)arg1)->GetY(); |
d14a1e28 RD |
14539 | |
14540 | wxPyEndAllowThreads(__tstate); | |
14541 | if (PyErr_Occurred()) SWIG_fail; | |
14542 | } | |
15afbcd0 | 14543 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14544 | return resultobj; |
14545 | fail: | |
14546 | return NULL; | |
14547 | } | |
14548 | ||
14549 | ||
14550 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14551 | PyObject *resultobj; | |
14552 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14553 | int result; | |
14554 | PyObject * obj0 = 0 ; | |
14555 | char *kwnames[] = { | |
14556 | (char *) "self", NULL | |
14557 | }; | |
14558 | ||
14559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14562 | { |
14563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14564 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14565 | ||
14566 | wxPyEndAllowThreads(__tstate); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
15afbcd0 | 14569 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14570 | return resultobj; |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14577 | PyObject *resultobj; | |
14578 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14579 | int result; | |
14580 | PyObject * obj0 = 0 ; | |
14581 | char *kwnames[] = { | |
14582 | (char *) "self", NULL | |
14583 | }; | |
14584 | ||
14585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14588 | { |
14589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14590 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14591 | ||
14592 | wxPyEndAllowThreads(__tstate); | |
14593 | if (PyErr_Occurred()) SWIG_fail; | |
14594 | } | |
15afbcd0 | 14595 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14596 | return resultobj; |
14597 | fail: | |
14598 | return NULL; | |
14599 | } | |
14600 | ||
14601 | ||
14602 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14603 | PyObject *resultobj; | |
14604 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14605 | int result; | |
14606 | PyObject * obj0 = 0 ; | |
14607 | char *kwnames[] = { | |
14608 | (char *) "self", NULL | |
14609 | }; | |
14610 | ||
14611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14614 | { |
14615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14616 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14617 | ||
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
15afbcd0 | 14621 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14622 | return resultobj; |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
14628 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14629 | PyObject *resultobj; | |
14630 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14631 | bool result; | |
14632 | PyObject * obj0 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14640 | { |
14641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14642 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14643 | ||
14644 | wxPyEndAllowThreads(__tstate); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
4f89f6a3 RD |
14647 | { |
14648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14649 | } | |
d14a1e28 RD |
14650 | return resultobj; |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
14656 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14657 | PyObject *resultobj; | |
14658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14659 | int arg2 ; |
d14a1e28 | 14660 | PyObject * obj0 = 0 ; |
994141e6 | 14661 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14662 | char *kwnames[] = { |
14663 | (char *) "self",(char *) "m_x", NULL | |
14664 | }; | |
14665 | ||
994141e6 | 14666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14669 | arg2 = (int) SWIG_AsInt(obj1); | |
14670 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14671 | if (arg1) (arg1)->m_x = arg2; |
14672 | ||
14673 | Py_INCREF(Py_None); resultobj = Py_None; | |
14674 | return resultobj; | |
14675 | fail: | |
14676 | return NULL; | |
14677 | } | |
14678 | ||
14679 | ||
14680 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14681 | PyObject *resultobj; | |
14682 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14683 | int result; |
d14a1e28 RD |
14684 | PyObject * obj0 = 0 ; |
14685 | char *kwnames[] = { | |
14686 | (char *) "self", NULL | |
14687 | }; | |
14688 | ||
14689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14692 | result = (int) ((arg1)->m_x); |
d14a1e28 | 14693 | |
15afbcd0 | 14694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14695 | return resultobj; |
14696 | fail: | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14702 | PyObject *resultobj; | |
14703 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14704 | int arg2 ; |
d14a1e28 | 14705 | PyObject * obj0 = 0 ; |
994141e6 | 14706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14707 | char *kwnames[] = { |
14708 | (char *) "self",(char *) "m_y", NULL | |
14709 | }; | |
14710 | ||
994141e6 | 14711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14714 | arg2 = (int) SWIG_AsInt(obj1); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14716 | if (arg1) (arg1)->m_y = arg2; |
14717 | ||
14718 | Py_INCREF(Py_None); resultobj = Py_None; | |
14719 | return resultobj; | |
14720 | fail: | |
14721 | return NULL; | |
14722 | } | |
14723 | ||
14724 | ||
14725 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14726 | PyObject *resultobj; | |
14727 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
e811c8ce | 14728 | int result; |
d14a1e28 RD |
14729 | PyObject * obj0 = 0 ; |
14730 | char *kwnames[] = { | |
14731 | (char *) "self", NULL | |
14732 | }; | |
14733 | ||
14734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 14737 | result = (int) ((arg1)->m_y); |
d14a1e28 | 14738 | |
15afbcd0 | 14739 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14740 | return resultobj; |
14741 | fail: | |
14742 | return NULL; | |
14743 | } | |
14744 | ||
14745 | ||
14746 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14747 | PyObject *resultobj; | |
14748 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14749 | bool arg2 ; | |
14750 | PyObject * obj0 = 0 ; | |
14751 | PyObject * obj1 = 0 ; | |
14752 | char *kwnames[] = { | |
14753 | (char *) "self",(char *) "m_leftDown", NULL | |
14754 | }; | |
14755 | ||
14756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14759 | arg2 = (bool) SWIG_AsBool(obj1); | |
14760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14761 | if (arg1) (arg1)->m_leftDown = arg2; |
14762 | ||
14763 | Py_INCREF(Py_None); resultobj = Py_None; | |
14764 | return resultobj; | |
14765 | fail: | |
14766 | return NULL; | |
14767 | } | |
14768 | ||
14769 | ||
14770 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14771 | PyObject *resultobj; | |
14772 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14773 | bool result; | |
14774 | PyObject * obj0 = 0 ; | |
14775 | char *kwnames[] = { | |
14776 | (char *) "self", NULL | |
14777 | }; | |
14778 | ||
14779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14782 | result = (bool) ((arg1)->m_leftDown); |
14783 | ||
4f89f6a3 RD |
14784 | { |
14785 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14786 | } | |
d14a1e28 RD |
14787 | return resultobj; |
14788 | fail: | |
14789 | return NULL; | |
14790 | } | |
14791 | ||
14792 | ||
14793 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14794 | PyObject *resultobj; | |
14795 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14796 | bool arg2 ; | |
14797 | PyObject * obj0 = 0 ; | |
14798 | PyObject * obj1 = 0 ; | |
14799 | char *kwnames[] = { | |
14800 | (char *) "self",(char *) "m_middleDown", NULL | |
14801 | }; | |
14802 | ||
14803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14806 | arg2 = (bool) SWIG_AsBool(obj1); | |
14807 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14808 | if (arg1) (arg1)->m_middleDown = arg2; |
14809 | ||
14810 | Py_INCREF(Py_None); resultobj = Py_None; | |
14811 | return resultobj; | |
14812 | fail: | |
14813 | return NULL; | |
14814 | } | |
14815 | ||
14816 | ||
14817 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14818 | PyObject *resultobj; | |
14819 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14820 | bool result; | |
14821 | PyObject * obj0 = 0 ; | |
14822 | char *kwnames[] = { | |
14823 | (char *) "self", NULL | |
14824 | }; | |
14825 | ||
14826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14829 | result = (bool) ((arg1)->m_middleDown); |
14830 | ||
4f89f6a3 RD |
14831 | { |
14832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14833 | } | |
d14a1e28 RD |
14834 | return resultobj; |
14835 | fail: | |
14836 | return NULL; | |
14837 | } | |
14838 | ||
14839 | ||
14840 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14841 | PyObject *resultobj; | |
14842 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14843 | bool arg2 ; | |
14844 | PyObject * obj0 = 0 ; | |
14845 | PyObject * obj1 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "self",(char *) "m_rightDown", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14853 | arg2 = (bool) SWIG_AsBool(obj1); | |
14854 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14855 | if (arg1) (arg1)->m_rightDown = arg2; |
14856 | ||
14857 | Py_INCREF(Py_None); resultobj = Py_None; | |
14858 | return resultobj; | |
14859 | fail: | |
14860 | return NULL; | |
14861 | } | |
14862 | ||
14863 | ||
14864 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14865 | PyObject *resultobj; | |
14866 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14867 | bool result; | |
14868 | PyObject * obj0 = 0 ; | |
14869 | char *kwnames[] = { | |
14870 | (char *) "self", NULL | |
14871 | }; | |
14872 | ||
14873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14876 | result = (bool) ((arg1)->m_rightDown); |
14877 | ||
4f89f6a3 RD |
14878 | { |
14879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14880 | } | |
d14a1e28 RD |
14881 | return resultobj; |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14890 | bool arg2 ; | |
14891 | PyObject * obj0 = 0 ; | |
14892 | PyObject * obj1 = 0 ; | |
14893 | char *kwnames[] = { | |
14894 | (char *) "self",(char *) "m_controlDown", NULL | |
14895 | }; | |
14896 | ||
14897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14900 | arg2 = (bool) SWIG_AsBool(obj1); | |
14901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14902 | if (arg1) (arg1)->m_controlDown = arg2; |
14903 | ||
14904 | Py_INCREF(Py_None); resultobj = Py_None; | |
14905 | return resultobj; | |
14906 | fail: | |
14907 | return NULL; | |
14908 | } | |
14909 | ||
14910 | ||
14911 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14912 | PyObject *resultobj; | |
14913 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14914 | bool result; | |
14915 | PyObject * obj0 = 0 ; | |
14916 | char *kwnames[] = { | |
14917 | (char *) "self", NULL | |
14918 | }; | |
14919 | ||
14920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14923 | result = (bool) ((arg1)->m_controlDown); |
14924 | ||
4f89f6a3 RD |
14925 | { |
14926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14927 | } | |
d14a1e28 RD |
14928 | return resultobj; |
14929 | fail: | |
14930 | return NULL; | |
14931 | } | |
14932 | ||
14933 | ||
14934 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14935 | PyObject *resultobj; | |
14936 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14937 | bool arg2 ; | |
14938 | PyObject * obj0 = 0 ; | |
14939 | PyObject * obj1 = 0 ; | |
14940 | char *kwnames[] = { | |
14941 | (char *) "self",(char *) "m_shiftDown", NULL | |
14942 | }; | |
14943 | ||
14944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14947 | arg2 = (bool) SWIG_AsBool(obj1); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14949 | if (arg1) (arg1)->m_shiftDown = arg2; |
14950 | ||
14951 | Py_INCREF(Py_None); resultobj = Py_None; | |
14952 | return resultobj; | |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
14958 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14959 | PyObject *resultobj; | |
14960 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14961 | bool result; | |
14962 | PyObject * obj0 = 0 ; | |
14963 | char *kwnames[] = { | |
14964 | (char *) "self", NULL | |
14965 | }; | |
14966 | ||
14967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14970 | result = (bool) ((arg1)->m_shiftDown); |
14971 | ||
4f89f6a3 RD |
14972 | { |
14973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14974 | } | |
d14a1e28 RD |
14975 | return resultobj; |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
14981 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14982 | PyObject *resultobj; | |
14983 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14984 | bool arg2 ; | |
14985 | PyObject * obj0 = 0 ; | |
14986 | PyObject * obj1 = 0 ; | |
14987 | char *kwnames[] = { | |
14988 | (char *) "self",(char *) "m_altDown", NULL | |
14989 | }; | |
14990 | ||
14991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
14993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14994 | arg2 = (bool) SWIG_AsBool(obj1); | |
14995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14996 | if (arg1) (arg1)->m_altDown = arg2; |
14997 | ||
14998 | Py_INCREF(Py_None); resultobj = Py_None; | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
15002 | } | |
15003 | ||
15004 | ||
15005 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15006 | PyObject *resultobj; | |
15007 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15008 | bool result; | |
15009 | PyObject * obj0 = 0 ; | |
15010 | char *kwnames[] = { | |
15011 | (char *) "self", NULL | |
15012 | }; | |
15013 | ||
15014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15017 | result = (bool) ((arg1)->m_altDown); |
15018 | ||
4f89f6a3 RD |
15019 | { |
15020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15021 | } | |
d14a1e28 RD |
15022 | return resultobj; |
15023 | fail: | |
15024 | return NULL; | |
15025 | } | |
15026 | ||
15027 | ||
15028 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15029 | PyObject *resultobj; | |
15030 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15031 | bool arg2 ; | |
15032 | PyObject * obj0 = 0 ; | |
15033 | PyObject * obj1 = 0 ; | |
15034 | char *kwnames[] = { | |
15035 | (char *) "self",(char *) "m_metaDown", NULL | |
15036 | }; | |
15037 | ||
15038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15041 | arg2 = (bool) SWIG_AsBool(obj1); | |
15042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15043 | if (arg1) (arg1)->m_metaDown = arg2; |
15044 | ||
15045 | Py_INCREF(Py_None); resultobj = Py_None; | |
15046 | return resultobj; | |
15047 | fail: | |
15048 | return NULL; | |
15049 | } | |
15050 | ||
15051 | ||
15052 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15053 | PyObject *resultobj; | |
15054 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15055 | bool result; | |
15056 | PyObject * obj0 = 0 ; | |
15057 | char *kwnames[] = { | |
15058 | (char *) "self", NULL | |
15059 | }; | |
15060 | ||
15061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15064 | result = (bool) ((arg1)->m_metaDown); |
15065 | ||
4f89f6a3 RD |
15066 | { |
15067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15068 | } | |
d14a1e28 RD |
15069 | return resultobj; |
15070 | fail: | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15078 | int arg2 ; | |
15079 | PyObject * obj0 = 0 ; | |
994141e6 | 15080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15081 | char *kwnames[] = { |
15082 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15083 | }; | |
15084 | ||
994141e6 | 15085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15088 | arg2 = (int) SWIG_AsInt(obj1); | |
15089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15090 | if (arg1) (arg1)->m_wheelRotation = arg2; |
15091 | ||
15092 | Py_INCREF(Py_None); resultobj = Py_None; | |
15093 | return resultobj; | |
15094 | fail: | |
15095 | return NULL; | |
15096 | } | |
15097 | ||
15098 | ||
15099 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15100 | PyObject *resultobj; | |
15101 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15102 | int result; | |
15103 | PyObject * obj0 = 0 ; | |
15104 | char *kwnames[] = { | |
15105 | (char *) "self", NULL | |
15106 | }; | |
15107 | ||
15108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15111 | result = (int) ((arg1)->m_wheelRotation); |
15112 | ||
15afbcd0 | 15113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15114 | return resultobj; |
15115 | fail: | |
15116 | return NULL; | |
15117 | } | |
15118 | ||
15119 | ||
15120 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15121 | PyObject *resultobj; | |
15122 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15123 | int arg2 ; | |
15124 | PyObject * obj0 = 0 ; | |
994141e6 | 15125 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15126 | char *kwnames[] = { |
15127 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15128 | }; | |
15129 | ||
994141e6 | 15130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15133 | arg2 = (int) SWIG_AsInt(obj1); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15135 | if (arg1) (arg1)->m_wheelDelta = arg2; |
15136 | ||
15137 | Py_INCREF(Py_None); resultobj = Py_None; | |
15138 | return resultobj; | |
15139 | fail: | |
15140 | return NULL; | |
15141 | } | |
15142 | ||
15143 | ||
15144 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15145 | PyObject *resultobj; | |
15146 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15147 | int result; | |
15148 | PyObject * obj0 = 0 ; | |
15149 | char *kwnames[] = { | |
15150 | (char *) "self", NULL | |
15151 | }; | |
15152 | ||
15153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15156 | result = (int) ((arg1)->m_wheelDelta); |
15157 | ||
15afbcd0 | 15158 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15159 | return resultobj; |
15160 | fail: | |
15161 | return NULL; | |
15162 | } | |
15163 | ||
15164 | ||
15165 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15166 | PyObject *resultobj; | |
15167 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15168 | int arg2 ; | |
15169 | PyObject * obj0 = 0 ; | |
994141e6 | 15170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15171 | char *kwnames[] = { |
15172 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15173 | }; | |
15174 | ||
994141e6 | 15175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15178 | arg2 = (int) SWIG_AsInt(obj1); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15180 | if (arg1) (arg1)->m_linesPerAction = arg2; |
15181 | ||
15182 | Py_INCREF(Py_None); resultobj = Py_None; | |
15183 | return resultobj; | |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15192 | int result; | |
15193 | PyObject * obj0 = 0 ; | |
15194 | char *kwnames[] = { | |
15195 | (char *) "self", NULL | |
15196 | }; | |
15197 | ||
15198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, |
15200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15201 | result = (int) ((arg1)->m_linesPerAction); |
15202 | ||
15afbcd0 | 15203 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15204 | return resultobj; |
15205 | fail: | |
15206 | return NULL; | |
15207 | } | |
15208 | ||
15209 | ||
15210 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15211 | PyObject *obj; | |
15212 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15213 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15214 | Py_INCREF(obj); | |
15215 | return Py_BuildValue((char *)""); | |
15216 | } | |
15217 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
e811c8ce RD |
15219 | int arg1 = (int) 0 ; |
15220 | int arg2 = (int) 0 ; | |
d14a1e28 | 15221 | wxSetCursorEvent *result; |
994141e6 RD |
15222 | PyObject * obj0 = 0 ; |
15223 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
15224 | char *kwnames[] = { |
15225 | (char *) "x",(char *) "y", NULL | |
15226 | }; | |
15227 | ||
994141e6 RD |
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; |
15229 | if (obj0) { | |
15afbcd0 RD |
15230 | arg1 = (int) SWIG_AsInt(obj0); |
15231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15232 | } |
15233 | if (obj1) { | |
15afbcd0 RD |
15234 | arg2 = (int) SWIG_AsInt(obj1); |
15235 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15236 | } |
d14a1e28 RD |
15237 | { |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
15afbcd0 | 15244 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); |
d14a1e28 RD |
15245 | return resultobj; |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
15251 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15252 | PyObject *resultobj; | |
15253 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15254 | int result; |
d14a1e28 RD |
15255 | PyObject * obj0 = 0 ; |
15256 | char *kwnames[] = { | |
15257 | (char *) "self", NULL | |
15258 | }; | |
15259 | ||
15260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15263 | { |
15264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15265 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15266 | |
15267 | wxPyEndAllowThreads(__tstate); | |
15268 | if (PyErr_Occurred()) SWIG_fail; | |
15269 | } | |
15afbcd0 | 15270 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15271 | return resultobj; |
15272 | fail: | |
15273 | return NULL; | |
15274 | } | |
15275 | ||
15276 | ||
15277 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15278 | PyObject *resultobj; | |
15279 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
e811c8ce | 15280 | int result; |
d14a1e28 RD |
15281 | PyObject * obj0 = 0 ; |
15282 | char *kwnames[] = { | |
15283 | (char *) "self", NULL | |
15284 | }; | |
15285 | ||
15286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15289 | { |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15291 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15292 | |
15293 | wxPyEndAllowThreads(__tstate); | |
15294 | if (PyErr_Occurred()) SWIG_fail; | |
15295 | } | |
15afbcd0 | 15296 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15297 | return resultobj; |
15298 | fail: | |
15299 | return NULL; | |
15300 | } | |
15301 | ||
15302 | ||
15303 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15304 | PyObject *resultobj; | |
15305 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15306 | wxCursor *arg2 = 0 ; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | PyObject * obj1 = 0 ; | |
15309 | char *kwnames[] = { | |
15310 | (char *) "self",(char *) "cursor", NULL | |
15311 | }; | |
15312 | ||
15313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15316 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15317 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15318 | SWIG_fail; | |
d14a1e28 | 15319 | if (arg2 == NULL) { |
15afbcd0 RD |
15320 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15321 | SWIG_fail; | |
d14a1e28 RD |
15322 | } |
15323 | { | |
15324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15325 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15326 | ||
15327 | wxPyEndAllowThreads(__tstate); | |
15328 | if (PyErr_Occurred()) SWIG_fail; | |
15329 | } | |
15330 | Py_INCREF(Py_None); resultobj = Py_None; | |
15331 | return resultobj; | |
15332 | fail: | |
15333 | return NULL; | |
15334 | } | |
15335 | ||
15336 | ||
15337 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15338 | PyObject *resultobj; | |
15339 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15340 | wxCursor *result; | |
15341 | PyObject * obj0 = 0 ; | |
15342 | char *kwnames[] = { | |
15343 | (char *) "self", NULL | |
15344 | }; | |
15345 | ||
15346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15349 | { |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | { | |
15352 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15353 | result = (wxCursor *) &_result_ref; | |
15354 | } | |
15355 | ||
15356 | wxPyEndAllowThreads(__tstate); | |
15357 | if (PyErr_Occurred()) SWIG_fail; | |
15358 | } | |
4276dc52 RD |
15359 | { |
15360 | wxCursor* resultptr = new wxCursor(*result); | |
15361 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15362 | } | |
d14a1e28 RD |
15363 | return resultobj; |
15364 | fail: | |
15365 | return NULL; | |
15366 | } | |
15367 | ||
15368 | ||
15369 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15370 | PyObject *resultobj; | |
15371 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15372 | bool result; | |
15373 | PyObject * obj0 = 0 ; | |
15374 | char *kwnames[] = { | |
15375 | (char *) "self", NULL | |
15376 | }; | |
15377 | ||
15378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, |
15380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15381 | { |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
4f89f6a3 RD |
15388 | { |
15389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15390 | } | |
d14a1e28 RD |
15391 | return resultobj; |
15392 | fail: | |
15393 | return NULL; | |
15394 | } | |
15395 | ||
15396 | ||
15397 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15398 | PyObject *obj; | |
15399 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15400 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15401 | Py_INCREF(obj); | |
15402 | return Py_BuildValue((char *)""); | |
15403 | } | |
15404 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15405 | PyObject *resultobj; | |
15406 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15407 | wxKeyEvent *result; | |
994141e6 | 15408 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
15409 | char *kwnames[] = { |
15410 | (char *) "keyType", NULL | |
15411 | }; | |
15412 | ||
994141e6 RD |
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; |
15414 | if (obj0) { | |
15afbcd0 RD |
15415 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15416 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15417 | } |
d14a1e28 RD |
15418 | { |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15421 | ||
15422 | wxPyEndAllowThreads(__tstate); | |
15423 | if (PyErr_Occurred()) SWIG_fail; | |
15424 | } | |
15afbcd0 | 15425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); |
d14a1e28 RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15435 | bool result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15447 | ||
15448 | wxPyEndAllowThreads(__tstate); | |
15449 | if (PyErr_Occurred()) SWIG_fail; | |
15450 | } | |
4f89f6a3 RD |
15451 | { |
15452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15453 | } | |
d14a1e28 RD |
15454 | return resultobj; |
15455 | fail: | |
15456 | return NULL; | |
15457 | } | |
15458 | ||
15459 | ||
15460 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15461 | PyObject *resultobj; | |
15462 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15463 | bool result; | |
15464 | PyObject * obj0 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15472 | { |
15473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15474 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15475 | ||
15476 | wxPyEndAllowThreads(__tstate); | |
15477 | if (PyErr_Occurred()) SWIG_fail; | |
15478 | } | |
4f89f6a3 RD |
15479 | { |
15480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15481 | } | |
d14a1e28 RD |
15482 | return resultobj; |
15483 | fail: | |
15484 | return NULL; | |
15485 | } | |
15486 | ||
15487 | ||
15488 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15489 | PyObject *resultobj; | |
15490 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15491 | bool result; | |
15492 | PyObject * obj0 = 0 ; | |
15493 | char *kwnames[] = { | |
15494 | (char *) "self", NULL | |
15495 | }; | |
15496 | ||
15497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15500 | { |
15501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15502 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15503 | ||
15504 | wxPyEndAllowThreads(__tstate); | |
15505 | if (PyErr_Occurred()) SWIG_fail; | |
15506 | } | |
4f89f6a3 RD |
15507 | { |
15508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15509 | } | |
d14a1e28 RD |
15510 | return resultobj; |
15511 | fail: | |
15512 | return NULL; | |
15513 | } | |
15514 | ||
15515 | ||
15516 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15517 | PyObject *resultobj; | |
15518 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15519 | bool result; | |
15520 | PyObject * obj0 = 0 ; | |
15521 | char *kwnames[] = { | |
15522 | (char *) "self", NULL | |
15523 | }; | |
15524 | ||
15525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15528 | { |
15529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15530 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15531 | ||
15532 | wxPyEndAllowThreads(__tstate); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
4f89f6a3 RD |
15535 | { |
15536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15537 | } | |
d14a1e28 RD |
15538 | return resultobj; |
15539 | fail: | |
15540 | return NULL; | |
15541 | } | |
15542 | ||
15543 | ||
15544 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15545 | PyObject *resultobj; | |
15546 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15547 | bool result; | |
15548 | PyObject * obj0 = 0 ; | |
15549 | char *kwnames[] = { | |
15550 | (char *) "self", NULL | |
15551 | }; | |
15552 | ||
15553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15556 | { |
15557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15558 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15559 | ||
15560 | wxPyEndAllowThreads(__tstate); | |
15561 | if (PyErr_Occurred()) SWIG_fail; | |
15562 | } | |
4f89f6a3 RD |
15563 | { |
15564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15565 | } | |
d14a1e28 RD |
15566 | return resultobj; |
15567 | fail: | |
15568 | return NULL; | |
15569 | } | |
15570 | ||
15571 | ||
15572 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15573 | PyObject *resultobj; | |
15574 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15575 | int result; | |
15576 | PyObject * obj0 = 0 ; | |
15577 | char *kwnames[] = { | |
15578 | (char *) "self", NULL | |
15579 | }; | |
15580 | ||
15581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15584 | { |
15585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15586 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15587 | ||
15588 | wxPyEndAllowThreads(__tstate); | |
15589 | if (PyErr_Occurred()) SWIG_fail; | |
15590 | } | |
15afbcd0 | 15591 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15592 | return resultobj; |
15593 | fail: | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
15598 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15599 | PyObject *resultobj; | |
15600 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15601 | int result; | |
15602 | PyObject * obj0 = 0 ; | |
15603 | char *kwnames[] = { | |
15604 | (char *) "self", NULL | |
15605 | }; | |
15606 | ||
15607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15610 | { |
15611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15612 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15613 | ||
15614 | wxPyEndAllowThreads(__tstate); | |
15615 | if (PyErr_Occurred()) SWIG_fail; | |
15616 | } | |
15afbcd0 | 15617 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15618 | return resultobj; |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15625 | PyObject *resultobj; | |
15626 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15627 | unsigned int result; |
d14a1e28 RD |
15628 | PyObject * obj0 = 0 ; |
15629 | char *kwnames[] = { | |
15630 | (char *) "self", NULL | |
15631 | }; | |
15632 | ||
15633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15636 | { |
15637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15638 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); |
d14a1e28 RD |
15639 | |
15640 | wxPyEndAllowThreads(__tstate); | |
15641 | if (PyErr_Occurred()) SWIG_fail; | |
15642 | } | |
15afbcd0 | 15643 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15644 | return resultobj; |
15645 | fail: | |
15646 | return NULL; | |
15647 | } | |
15648 | ||
15649 | ||
15650 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15651 | PyObject *resultobj; | |
15652 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15653 | unsigned int result; |
d14a1e28 RD |
15654 | PyObject * obj0 = 0 ; |
15655 | char *kwnames[] = { | |
15656 | (char *) "self", NULL | |
15657 | }; | |
15658 | ||
15659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15662 | { |
15663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15664 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); |
d14a1e28 RD |
15665 | |
15666 | wxPyEndAllowThreads(__tstate); | |
15667 | if (PyErr_Occurred()) SWIG_fail; | |
15668 | } | |
15afbcd0 | 15669 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
15670 | return resultobj; |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15679 | wxPoint result; | |
15680 | PyObject * obj0 = 0 ; | |
15681 | char *kwnames[] = { | |
15682 | (char *) "self", NULL | |
15683 | }; | |
15684 | ||
15685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15688 | { |
15689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15690 | result = (arg1)->GetPosition(); | |
15691 | ||
15692 | wxPyEndAllowThreads(__tstate); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
15695 | { | |
15696 | wxPoint * resultptr; | |
15697 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 15698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
15699 | } |
15700 | return resultobj; | |
15701 | fail: | |
15702 | return NULL; | |
15703 | } | |
15704 | ||
15705 | ||
15706 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj; | |
15708 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15709 | long *arg2 = (long *) 0 ; | |
15710 | long *arg3 = (long *) 0 ; | |
15711 | long temp2 ; | |
15712 | long temp3 ; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | char *kwnames[] = { | |
15715 | (char *) "self", NULL | |
15716 | }; | |
15717 | ||
15718 | arg2 = &temp2; | |
15719 | arg3 = &temp3; | |
15720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15723 | { |
15724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15725 | (arg1)->GetPosition(arg2,arg3); | |
15726 | ||
15727 | wxPyEndAllowThreads(__tstate); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | Py_INCREF(Py_None); resultobj = Py_None; | |
15731 | { | |
15732 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15733 | resultobj = t_output_helper(resultobj,o); | |
15734 | } | |
15735 | { | |
15736 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15737 | resultobj = t_output_helper(resultobj,o); | |
15738 | } | |
15739 | return resultobj; | |
15740 | fail: | |
15741 | return NULL; | |
15742 | } | |
15743 | ||
15744 | ||
15745 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15746 | PyObject *resultobj; | |
15747 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15748 | int result; |
d14a1e28 RD |
15749 | PyObject * obj0 = 0 ; |
15750 | char *kwnames[] = { | |
15751 | (char *) "self", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15757 | { |
15758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15759 | result = (int)((wxKeyEvent const *)arg1)->GetX(); |
d14a1e28 RD |
15760 | |
15761 | wxPyEndAllowThreads(__tstate); | |
15762 | if (PyErr_Occurred()) SWIG_fail; | |
15763 | } | |
15afbcd0 | 15764 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15765 | return resultobj; |
15766 | fail: | |
15767 | return NULL; | |
15768 | } | |
15769 | ||
15770 | ||
15771 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15772 | PyObject *resultobj; | |
15773 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15774 | int result; |
d14a1e28 RD |
15775 | PyObject * obj0 = 0 ; |
15776 | char *kwnames[] = { | |
15777 | (char *) "self", NULL | |
15778 | }; | |
15779 | ||
15780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15783 | { |
15784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 15785 | result = (int)((wxKeyEvent const *)arg1)->GetY(); |
d14a1e28 RD |
15786 | |
15787 | wxPyEndAllowThreads(__tstate); | |
15788 | if (PyErr_Occurred()) SWIG_fail; | |
15789 | } | |
15afbcd0 | 15790 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15791 | return resultobj; |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
15797 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15798 | PyObject *resultobj; | |
15799 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15800 | int arg2 ; |
d14a1e28 | 15801 | PyObject * obj0 = 0 ; |
994141e6 | 15802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15803 | char *kwnames[] = { |
15804 | (char *) "self",(char *) "m_x", NULL | |
15805 | }; | |
15806 | ||
994141e6 | 15807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15810 | arg2 = (int) SWIG_AsInt(obj1); | |
15811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15812 | if (arg1) (arg1)->m_x = arg2; |
15813 | ||
15814 | Py_INCREF(Py_None); resultobj = Py_None; | |
15815 | return resultobj; | |
15816 | fail: | |
15817 | return NULL; | |
15818 | } | |
15819 | ||
15820 | ||
15821 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15822 | PyObject *resultobj; | |
15823 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15824 | int result; |
d14a1e28 RD |
15825 | PyObject * obj0 = 0 ; |
15826 | char *kwnames[] = { | |
15827 | (char *) "self", NULL | |
15828 | }; | |
15829 | ||
15830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15833 | result = (int) ((arg1)->m_x); |
d14a1e28 | 15834 | |
15afbcd0 | 15835 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15836 | return resultobj; |
15837 | fail: | |
15838 | return NULL; | |
15839 | } | |
15840 | ||
15841 | ||
15842 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15843 | PyObject *resultobj; | |
15844 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15845 | int arg2 ; |
d14a1e28 | 15846 | PyObject * obj0 = 0 ; |
994141e6 | 15847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15848 | char *kwnames[] = { |
15849 | (char *) "self",(char *) "m_y", NULL | |
15850 | }; | |
15851 | ||
994141e6 | 15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15855 | arg2 = (int) SWIG_AsInt(obj1); | |
15856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15857 | if (arg1) (arg1)->m_y = arg2; |
15858 | ||
15859 | Py_INCREF(Py_None); resultobj = Py_None; | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15867 | PyObject *resultobj; | |
15868 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 15869 | int result; |
d14a1e28 RD |
15870 | PyObject * obj0 = 0 ; |
15871 | char *kwnames[] = { | |
15872 | (char *) "self", NULL | |
15873 | }; | |
15874 | ||
15875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 15878 | result = (int) ((arg1)->m_y); |
d14a1e28 | 15879 | |
15afbcd0 | 15880 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15881 | return resultobj; |
15882 | fail: | |
15883 | return NULL; | |
15884 | } | |
15885 | ||
15886 | ||
15887 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15888 | PyObject *resultobj; | |
15889 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15890 | long arg2 ; | |
15891 | PyObject * obj0 = 0 ; | |
994141e6 | 15892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15893 | char *kwnames[] = { |
15894 | (char *) "self",(char *) "m_keyCode", NULL | |
15895 | }; | |
15896 | ||
994141e6 | 15897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
15898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15900 | arg2 = (long) SWIG_AsLong(obj1); | |
15901 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15902 | if (arg1) (arg1)->m_keyCode = arg2; |
15903 | ||
15904 | Py_INCREF(Py_None); resultobj = Py_None; | |
15905 | return resultobj; | |
15906 | fail: | |
15907 | return NULL; | |
15908 | } | |
15909 | ||
15910 | ||
15911 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15912 | PyObject *resultobj; | |
15913 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15914 | long result; | |
15915 | PyObject * obj0 = 0 ; | |
15916 | char *kwnames[] = { | |
15917 | (char *) "self", NULL | |
15918 | }; | |
15919 | ||
15920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15923 | result = (long) ((arg1)->m_keyCode); |
15924 | ||
15afbcd0 | 15925 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
15926 | return resultobj; |
15927 | fail: | |
15928 | return NULL; | |
15929 | } | |
15930 | ||
15931 | ||
15932 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15933 | PyObject *resultobj; | |
15934 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15935 | bool arg2 ; | |
15936 | PyObject * obj0 = 0 ; | |
15937 | PyObject * obj1 = 0 ; | |
15938 | char *kwnames[] = { | |
15939 | (char *) "self",(char *) "m_controlDown", NULL | |
15940 | }; | |
15941 | ||
15942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15945 | arg2 = (bool) SWIG_AsBool(obj1); | |
15946 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15947 | if (arg1) (arg1)->m_controlDown = arg2; |
15948 | ||
15949 | Py_INCREF(Py_None); resultobj = Py_None; | |
15950 | return resultobj; | |
15951 | fail: | |
15952 | return NULL; | |
15953 | } | |
15954 | ||
15955 | ||
15956 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15957 | PyObject *resultobj; | |
15958 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15959 | bool result; | |
15960 | PyObject * obj0 = 0 ; | |
15961 | char *kwnames[] = { | |
15962 | (char *) "self", NULL | |
15963 | }; | |
15964 | ||
15965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15968 | result = (bool) ((arg1)->m_controlDown); |
15969 | ||
4f89f6a3 RD |
15970 | { |
15971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15972 | } | |
d14a1e28 RD |
15973 | return resultobj; |
15974 | fail: | |
15975 | return NULL; | |
15976 | } | |
15977 | ||
15978 | ||
15979 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15980 | PyObject *resultobj; | |
15981 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15982 | bool arg2 ; | |
15983 | PyObject * obj0 = 0 ; | |
15984 | PyObject * obj1 = 0 ; | |
15985 | char *kwnames[] = { | |
15986 | (char *) "self",(char *) "m_shiftDown", NULL | |
15987 | }; | |
15988 | ||
15989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15992 | arg2 = (bool) SWIG_AsBool(obj1); | |
15993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15994 | if (arg1) (arg1)->m_shiftDown = arg2; |
15995 | ||
15996 | Py_INCREF(Py_None); resultobj = Py_None; | |
15997 | return resultobj; | |
15998 | fail: | |
15999 | return NULL; | |
16000 | } | |
16001 | ||
16002 | ||
16003 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16004 | PyObject *resultobj; | |
16005 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16006 | bool result; | |
16007 | PyObject * obj0 = 0 ; | |
16008 | char *kwnames[] = { | |
16009 | (char *) "self", NULL | |
16010 | }; | |
16011 | ||
16012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16015 | result = (bool) ((arg1)->m_shiftDown); |
16016 | ||
4f89f6a3 RD |
16017 | { |
16018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16019 | } | |
d14a1e28 RD |
16020 | return resultobj; |
16021 | fail: | |
16022 | return NULL; | |
16023 | } | |
16024 | ||
16025 | ||
16026 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16027 | PyObject *resultobj; | |
16028 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16029 | bool arg2 ; | |
16030 | PyObject * obj0 = 0 ; | |
16031 | PyObject * obj1 = 0 ; | |
16032 | char *kwnames[] = { | |
16033 | (char *) "self",(char *) "m_altDown", NULL | |
16034 | }; | |
16035 | ||
16036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16039 | arg2 = (bool) SWIG_AsBool(obj1); | |
16040 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16041 | if (arg1) (arg1)->m_altDown = arg2; |
16042 | ||
16043 | Py_INCREF(Py_None); resultobj = Py_None; | |
16044 | return resultobj; | |
16045 | fail: | |
16046 | return NULL; | |
16047 | } | |
16048 | ||
16049 | ||
16050 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16051 | PyObject *resultobj; | |
16052 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16053 | bool result; | |
16054 | PyObject * obj0 = 0 ; | |
16055 | char *kwnames[] = { | |
16056 | (char *) "self", NULL | |
16057 | }; | |
16058 | ||
16059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16062 | result = (bool) ((arg1)->m_altDown); |
16063 | ||
4f89f6a3 RD |
16064 | { |
16065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16066 | } | |
d14a1e28 RD |
16067 | return resultobj; |
16068 | fail: | |
16069 | return NULL; | |
16070 | } | |
16071 | ||
16072 | ||
16073 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16074 | PyObject *resultobj; | |
16075 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16076 | bool arg2 ; | |
16077 | PyObject * obj0 = 0 ; | |
16078 | PyObject * obj1 = 0 ; | |
16079 | char *kwnames[] = { | |
16080 | (char *) "self",(char *) "m_metaDown", NULL | |
16081 | }; | |
16082 | ||
16083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16086 | arg2 = (bool) SWIG_AsBool(obj1); | |
16087 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16088 | if (arg1) (arg1)->m_metaDown = arg2; |
16089 | ||
16090 | Py_INCREF(Py_None); resultobj = Py_None; | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16098 | PyObject *resultobj; | |
16099 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16100 | bool result; | |
16101 | PyObject * obj0 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16109 | result = (bool) ((arg1)->m_metaDown); |
16110 | ||
4f89f6a3 RD |
16111 | { |
16112 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16113 | } | |
d14a1e28 RD |
16114 | return resultobj; |
16115 | fail: | |
16116 | return NULL; | |
16117 | } | |
16118 | ||
16119 | ||
16120 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16121 | PyObject *resultobj; | |
16122 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16123 | bool arg2 ; | |
16124 | PyObject * obj0 = 0 ; | |
16125 | PyObject * obj1 = 0 ; | |
16126 | char *kwnames[] = { | |
16127 | (char *) "self",(char *) "m_scanCode", NULL | |
16128 | }; | |
16129 | ||
16130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16133 | arg2 = (bool) SWIG_AsBool(obj1); | |
16134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16135 | if (arg1) (arg1)->m_scanCode = arg2; |
16136 | ||
16137 | Py_INCREF(Py_None); resultobj = Py_None; | |
16138 | return resultobj; | |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
16144 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16145 | PyObject *resultobj; | |
16146 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16147 | bool result; | |
16148 | PyObject * obj0 = 0 ; | |
16149 | char *kwnames[] = { | |
16150 | (char *) "self", NULL | |
16151 | }; | |
16152 | ||
16153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16156 | result = (bool) ((arg1)->m_scanCode); |
16157 | ||
4f89f6a3 RD |
16158 | { |
16159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16160 | } | |
d14a1e28 RD |
16161 | return resultobj; |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj; | |
16169 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16170 | unsigned int arg2 ; |
d14a1e28 RD |
16171 | PyObject * obj0 = 0 ; |
16172 | PyObject * obj1 = 0 ; | |
16173 | char *kwnames[] = { | |
16174 | (char *) "self",(char *) "m_rawCode", NULL | |
16175 | }; | |
16176 | ||
16177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16180 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16182 | if (arg1) (arg1)->m_rawCode = arg2; |
16183 | ||
16184 | Py_INCREF(Py_None); resultobj = Py_None; | |
16185 | return resultobj; | |
16186 | fail: | |
16187 | return NULL; | |
16188 | } | |
16189 | ||
16190 | ||
16191 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16192 | PyObject *resultobj; | |
16193 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16194 | unsigned int result; |
d14a1e28 RD |
16195 | PyObject * obj0 = 0 ; |
16196 | char *kwnames[] = { | |
16197 | (char *) "self", NULL | |
16198 | }; | |
16199 | ||
16200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16203 | result = (unsigned int) ((arg1)->m_rawCode); |
d14a1e28 | 16204 | |
15afbcd0 | 16205 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16206 | return resultobj; |
16207 | fail: | |
16208 | return NULL; | |
16209 | } | |
16210 | ||
16211 | ||
16212 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16213 | PyObject *resultobj; | |
16214 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16215 | unsigned int arg2 ; |
d14a1e28 RD |
16216 | PyObject * obj0 = 0 ; |
16217 | PyObject * obj1 = 0 ; | |
16218 | char *kwnames[] = { | |
16219 | (char *) "self",(char *) "m_rawFlags", NULL | |
16220 | }; | |
16221 | ||
16222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16225 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16227 | if (arg1) (arg1)->m_rawFlags = arg2; |
16228 | ||
16229 | Py_INCREF(Py_None); resultobj = Py_None; | |
16230 | return resultobj; | |
16231 | fail: | |
16232 | return NULL; | |
16233 | } | |
16234 | ||
16235 | ||
16236 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16237 | PyObject *resultobj; | |
16238 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
e811c8ce | 16239 | unsigned int result; |
d14a1e28 RD |
16240 | PyObject * obj0 = 0 ; |
16241 | char *kwnames[] = { | |
16242 | (char *) "self", NULL | |
16243 | }; | |
16244 | ||
16245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 16248 | result = (unsigned int) ((arg1)->m_rawFlags); |
d14a1e28 | 16249 | |
15afbcd0 | 16250 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
16251 | return resultobj; |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16258 | PyObject *obj; | |
16259 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16260 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16261 | Py_INCREF(obj); | |
16262 | return Py_BuildValue((char *)""); | |
16263 | } | |
16264 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16265 | PyObject *resultobj; | |
16266 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16267 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16268 | int arg2 = (int) 0 ; | |
16269 | wxSizeEvent *result; | |
16270 | wxSize temp1 ; | |
16271 | PyObject * obj0 = 0 ; | |
994141e6 | 16272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16273 | char *kwnames[] = { |
16274 | (char *) "sz",(char *) "winid", NULL | |
16275 | }; | |
16276 | ||
994141e6 | 16277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16278 | if (obj0) { |
16279 | { | |
16280 | arg1 = &temp1; | |
16281 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16282 | } | |
16283 | } | |
994141e6 | 16284 | if (obj1) { |
15afbcd0 RD |
16285 | arg2 = (int) SWIG_AsInt(obj1); |
16286 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16287 | } |
d14a1e28 RD |
16288 | { |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
15afbcd0 | 16295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); |
d14a1e28 RD |
16296 | return resultobj; |
16297 | fail: | |
16298 | return NULL; | |
16299 | } | |
16300 | ||
16301 | ||
16302 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16303 | PyObject *resultobj; | |
16304 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16305 | wxSize result; | |
16306 | PyObject * obj0 = 0 ; | |
16307 | char *kwnames[] = { | |
16308 | (char *) "self", NULL | |
16309 | }; | |
16310 | ||
16311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16314 | { |
16315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16316 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16317 | ||
16318 | wxPyEndAllowThreads(__tstate); | |
16319 | if (PyErr_Occurred()) SWIG_fail; | |
16320 | } | |
16321 | { | |
16322 | wxSize * resultptr; | |
16323 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 16324 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
16325 | } |
16326 | return resultobj; | |
16327 | fail: | |
16328 | return NULL; | |
16329 | } | |
16330 | ||
16331 | ||
16332 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16333 | PyObject *resultobj; | |
16334 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16335 | wxRect result; | |
16336 | PyObject * obj0 = 0 ; | |
16337 | char *kwnames[] = { | |
16338 | (char *) "self", NULL | |
16339 | }; | |
16340 | ||
16341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16344 | { |
16345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16346 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16347 | ||
16348 | wxPyEndAllowThreads(__tstate); | |
16349 | if (PyErr_Occurred()) SWIG_fail; | |
16350 | } | |
16351 | { | |
16352 | wxRect * resultptr; | |
16353 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16354 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16355 | } |
16356 | return resultobj; | |
16357 | fail: | |
16358 | return NULL; | |
16359 | } | |
16360 | ||
16361 | ||
16362 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16363 | PyObject *resultobj; | |
16364 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16365 | wxRect arg2 ; | |
16366 | wxRect *argp2 ; | |
16367 | PyObject * obj0 = 0 ; | |
16368 | PyObject * obj1 = 0 ; | |
16369 | char *kwnames[] = { | |
16370 | (char *) "self",(char *) "rect", NULL | |
16371 | }; | |
16372 | ||
16373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16376 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16377 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16378 | arg2 = *argp2; | |
d14a1e28 RD |
16379 | { |
16380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16381 | (arg1)->SetRect(arg2); | |
16382 | ||
16383 | wxPyEndAllowThreads(__tstate); | |
16384 | if (PyErr_Occurred()) SWIG_fail; | |
16385 | } | |
16386 | Py_INCREF(Py_None); resultobj = Py_None; | |
16387 | return resultobj; | |
16388 | fail: | |
16389 | return NULL; | |
16390 | } | |
16391 | ||
16392 | ||
16393 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16394 | PyObject *resultobj; | |
16395 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16396 | wxSize arg2 ; | |
16397 | wxSize *argp2 ; | |
16398 | PyObject * obj0 = 0 ; | |
16399 | PyObject * obj1 = 0 ; | |
16400 | char *kwnames[] = { | |
16401 | (char *) "self",(char *) "size", NULL | |
16402 | }; | |
16403 | ||
16404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16407 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16408 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16409 | arg2 = *argp2; | |
d14a1e28 RD |
16410 | { |
16411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16412 | wxSizeEvent_SetSize(arg1,arg2); | |
16413 | ||
16414 | wxPyEndAllowThreads(__tstate); | |
16415 | if (PyErr_Occurred()) SWIG_fail; | |
16416 | } | |
16417 | Py_INCREF(Py_None); resultobj = Py_None; | |
16418 | return resultobj; | |
16419 | fail: | |
16420 | return NULL; | |
16421 | } | |
16422 | ||
16423 | ||
16424 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16425 | PyObject *resultobj; | |
16426 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16427 | wxSize *arg2 = (wxSize *) 0 ; | |
16428 | PyObject * obj0 = 0 ; | |
16429 | PyObject * obj1 = 0 ; | |
16430 | char *kwnames[] = { | |
16431 | (char *) "self",(char *) "m_size", NULL | |
16432 | }; | |
16433 | ||
16434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16439 | if (arg1) (arg1)->m_size = *arg2; |
16440 | ||
16441 | Py_INCREF(Py_None); resultobj = Py_None; | |
16442 | return resultobj; | |
16443 | fail: | |
16444 | return NULL; | |
16445 | } | |
16446 | ||
16447 | ||
16448 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16449 | PyObject *resultobj; | |
16450 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16451 | wxSize *result; | |
16452 | PyObject * obj0 = 0 ; | |
16453 | char *kwnames[] = { | |
16454 | (char *) "self", NULL | |
16455 | }; | |
16456 | ||
16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16460 | result = (wxSize *)& ((arg1)->m_size); |
16461 | ||
15afbcd0 | 16462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
16463 | return resultobj; |
16464 | fail: | |
16465 | return NULL; | |
16466 | } | |
16467 | ||
16468 | ||
16469 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16470 | PyObject *resultobj; | |
16471 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16472 | wxRect *arg2 = (wxRect *) 0 ; | |
16473 | PyObject * obj0 = 0 ; | |
16474 | PyObject * obj1 = 0 ; | |
16475 | char *kwnames[] = { | |
16476 | (char *) "self",(char *) "m_rect", NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16482 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16484 | if (arg1) (arg1)->m_rect = *arg2; |
16485 | ||
16486 | Py_INCREF(Py_None); resultobj = Py_None; | |
16487 | return resultobj; | |
16488 | fail: | |
16489 | return NULL; | |
16490 | } | |
16491 | ||
16492 | ||
16493 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16494 | PyObject *resultobj; | |
16495 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16496 | wxRect *result; | |
16497 | PyObject * obj0 = 0 ; | |
16498 | char *kwnames[] = { | |
16499 | (char *) "self", NULL | |
16500 | }; | |
16501 | ||
16502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, |
16504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16505 | result = (wxRect *)& ((arg1)->m_rect); |
16506 | ||
15afbcd0 | 16507 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16508 | return resultobj; |
16509 | fail: | |
16510 | return NULL; | |
16511 | } | |
16512 | ||
16513 | ||
16514 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16515 | PyObject *obj; | |
16516 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16517 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16518 | Py_INCREF(obj); | |
16519 | return Py_BuildValue((char *)""); | |
16520 | } | |
16521 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16522 | PyObject *resultobj; | |
16523 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16524 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16525 | int arg2 = (int) 0 ; | |
16526 | wxMoveEvent *result; | |
16527 | wxPoint temp1 ; | |
16528 | PyObject * obj0 = 0 ; | |
994141e6 | 16529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16530 | char *kwnames[] = { |
16531 | (char *) "pos",(char *) "winid", NULL | |
16532 | }; | |
16533 | ||
994141e6 | 16534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
16535 | if (obj0) { |
16536 | { | |
16537 | arg1 = &temp1; | |
16538 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16539 | } | |
16540 | } | |
994141e6 | 16541 | if (obj1) { |
15afbcd0 RD |
16542 | arg2 = (int) SWIG_AsInt(obj1); |
16543 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16544 | } |
d14a1e28 RD |
16545 | { |
16546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16547 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16548 | ||
16549 | wxPyEndAllowThreads(__tstate); | |
16550 | if (PyErr_Occurred()) SWIG_fail; | |
16551 | } | |
15afbcd0 | 16552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); |
d14a1e28 RD |
16553 | return resultobj; |
16554 | fail: | |
16555 | return NULL; | |
16556 | } | |
16557 | ||
16558 | ||
16559 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16560 | PyObject *resultobj; | |
16561 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16562 | wxPoint result; | |
16563 | PyObject * obj0 = 0 ; | |
16564 | char *kwnames[] = { | |
16565 | (char *) "self", NULL | |
16566 | }; | |
16567 | ||
16568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16571 | { |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
16578 | { | |
16579 | wxPoint * resultptr; | |
16580 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 16581 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
16582 | } |
16583 | return resultobj; | |
16584 | fail: | |
16585 | return NULL; | |
16586 | } | |
16587 | ||
16588 | ||
16589 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16590 | PyObject *resultobj; | |
16591 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16592 | wxRect result; | |
16593 | PyObject * obj0 = 0 ; | |
16594 | char *kwnames[] = { | |
16595 | (char *) "self", NULL | |
16596 | }; | |
16597 | ||
16598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16601 | { |
16602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16603 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16604 | ||
16605 | wxPyEndAllowThreads(__tstate); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | } | |
16608 | { | |
16609 | wxRect * resultptr; | |
16610 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 16611 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
16612 | } |
16613 | return resultobj; | |
16614 | fail: | |
16615 | return NULL; | |
16616 | } | |
16617 | ||
16618 | ||
16619 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16620 | PyObject *resultobj; | |
16621 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16622 | wxRect arg2 ; | |
16623 | wxRect *argp2 ; | |
16624 | PyObject * obj0 = 0 ; | |
16625 | PyObject * obj1 = 0 ; | |
16626 | char *kwnames[] = { | |
16627 | (char *) "self",(char *) "rect", NULL | |
16628 | }; | |
16629 | ||
16630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16633 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16634 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16635 | arg2 = *argp2; | |
d14a1e28 RD |
16636 | { |
16637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16638 | (arg1)->SetRect(arg2); | |
16639 | ||
16640 | wxPyEndAllowThreads(__tstate); | |
16641 | if (PyErr_Occurred()) SWIG_fail; | |
16642 | } | |
16643 | Py_INCREF(Py_None); resultobj = Py_None; | |
16644 | return resultobj; | |
16645 | fail: | |
16646 | return NULL; | |
16647 | } | |
16648 | ||
16649 | ||
16650 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16651 | PyObject *resultobj; | |
16652 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16653 | wxPoint arg2 ; | |
16654 | wxPoint *argp2 ; | |
16655 | PyObject * obj0 = 0 ; | |
16656 | PyObject * obj1 = 0 ; | |
16657 | char *kwnames[] = { | |
16658 | (char *) "self",(char *) "pos", NULL | |
16659 | }; | |
16660 | ||
16661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16664 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16665 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16666 | arg2 = *argp2; | |
d14a1e28 RD |
16667 | { |
16668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16669 | wxMoveEvent_SetPosition(arg1,arg2); | |
16670 | ||
16671 | wxPyEndAllowThreads(__tstate); | |
16672 | if (PyErr_Occurred()) SWIG_fail; | |
16673 | } | |
16674 | Py_INCREF(Py_None); resultobj = Py_None; | |
16675 | return resultobj; | |
16676 | fail: | |
16677 | return NULL; | |
16678 | } | |
16679 | ||
16680 | ||
16681 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16682 | PyObject *resultobj; | |
16683 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16684 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | PyObject * obj1 = 0 ; | |
16687 | char *kwnames[] = { | |
16688 | (char *) "self",(char *) "m_pos", NULL | |
16689 | }; | |
16690 | ||
16691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16696 | if (arg1) (arg1)->m_pos = *arg2; |
16697 | ||
16698 | Py_INCREF(Py_None); resultobj = Py_None; | |
16699 | return resultobj; | |
16700 | fail: | |
16701 | return NULL; | |
16702 | } | |
16703 | ||
16704 | ||
16705 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16706 | PyObject *resultobj; | |
16707 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16708 | wxPoint *result; | |
16709 | PyObject * obj0 = 0 ; | |
16710 | char *kwnames[] = { | |
16711 | (char *) "self", NULL | |
16712 | }; | |
16713 | ||
16714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16717 | result = (wxPoint *)& ((arg1)->m_pos); |
16718 | ||
15afbcd0 | 16719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
16720 | return resultobj; |
16721 | fail: | |
16722 | return NULL; | |
16723 | } | |
16724 | ||
16725 | ||
16726 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16727 | PyObject *resultobj; | |
16728 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16729 | wxRect *arg2 = (wxRect *) 0 ; | |
16730 | PyObject * obj0 = 0 ; | |
16731 | PyObject * obj1 = 0 ; | |
16732 | char *kwnames[] = { | |
16733 | (char *) "self",(char *) "m_rect", NULL | |
16734 | }; | |
16735 | ||
16736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16739 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16741 | if (arg1) (arg1)->m_rect = *arg2; |
16742 | ||
16743 | Py_INCREF(Py_None); resultobj = Py_None; | |
16744 | return resultobj; | |
16745 | fail: | |
16746 | return NULL; | |
16747 | } | |
16748 | ||
16749 | ||
16750 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16751 | PyObject *resultobj; | |
16752 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16753 | wxRect *result; | |
16754 | PyObject * obj0 = 0 ; | |
16755 | char *kwnames[] = { | |
16756 | (char *) "self", NULL | |
16757 | }; | |
16758 | ||
16759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, |
16761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16762 | result = (wxRect *)& ((arg1)->m_rect); |
16763 | ||
15afbcd0 | 16764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); |
d14a1e28 RD |
16765 | return resultobj; |
16766 | fail: | |
16767 | return NULL; | |
16768 | } | |
16769 | ||
16770 | ||
16771 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16772 | PyObject *obj; | |
16773 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16774 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16775 | Py_INCREF(obj); | |
16776 | return Py_BuildValue((char *)""); | |
16777 | } | |
16778 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16779 | PyObject *resultobj; | |
16780 | int arg1 = (int) 0 ; | |
16781 | wxPaintEvent *result; | |
994141e6 | 16782 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16783 | char *kwnames[] = { |
16784 | (char *) "Id", NULL | |
16785 | }; | |
16786 | ||
994141e6 RD |
16787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; |
16788 | if (obj0) { | |
15afbcd0 RD |
16789 | arg1 = (int) SWIG_AsInt(obj0); |
16790 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16791 | } |
d14a1e28 RD |
16792 | { |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
16798 | } | |
15afbcd0 | 16799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); |
d14a1e28 RD |
16800 | return resultobj; |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16807 | PyObject *obj; | |
16808 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16809 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16810 | Py_INCREF(obj); | |
16811 | return Py_BuildValue((char *)""); | |
16812 | } | |
16813 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16814 | PyObject *resultobj; | |
16815 | int arg1 = (int) 0 ; | |
16816 | wxNcPaintEvent *result; | |
994141e6 | 16817 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16818 | char *kwnames[] = { |
16819 | (char *) "winid", NULL | |
16820 | }; | |
16821 | ||
994141e6 RD |
16822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; |
16823 | if (obj0) { | |
15afbcd0 RD |
16824 | arg1 = (int) SWIG_AsInt(obj0); |
16825 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16826 | } |
d14a1e28 RD |
16827 | { |
16828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16829 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16830 | ||
16831 | wxPyEndAllowThreads(__tstate); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
15afbcd0 | 16834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); |
d14a1e28 RD |
16835 | return resultobj; |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16842 | PyObject *obj; | |
16843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16844 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16845 | Py_INCREF(obj); | |
16846 | return Py_BuildValue((char *)""); | |
16847 | } | |
16848 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16849 | PyObject *resultobj; | |
16850 | int arg1 = (int) 0 ; | |
16851 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16852 | wxEraseEvent *result; | |
994141e6 | 16853 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
16854 | PyObject * obj1 = 0 ; |
16855 | char *kwnames[] = { | |
16856 | (char *) "Id",(char *) "dc", NULL | |
16857 | }; | |
16858 | ||
994141e6 RD |
16859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; |
16860 | if (obj0) { | |
15afbcd0 RD |
16861 | arg1 = (int) SWIG_AsInt(obj0); |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16863 | } |
d14a1e28 | 16864 | if (obj1) { |
15afbcd0 RD |
16865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, |
16866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16867 | } |
16868 | { | |
16869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16870 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16871 | ||
16872 | wxPyEndAllowThreads(__tstate); | |
16873 | if (PyErr_Occurred()) SWIG_fail; | |
16874 | } | |
15afbcd0 | 16875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); |
d14a1e28 RD |
16876 | return resultobj; |
16877 | fail: | |
16878 | return NULL; | |
16879 | } | |
16880 | ||
16881 | ||
16882 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16883 | PyObject *resultobj; | |
16884 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16885 | wxDC *result; | |
16886 | PyObject * obj0 = 0 ; | |
16887 | char *kwnames[] = { | |
16888 | (char *) "self", NULL | |
16889 | }; | |
16890 | ||
16891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, |
16893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16894 | { |
16895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16896 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16897 | ||
16898 | wxPyEndAllowThreads(__tstate); | |
16899 | if (PyErr_Occurred()) SWIG_fail; | |
16900 | } | |
16901 | { | |
16902 | resultobj = wxPyMake_wxObject(result); | |
16903 | } | |
16904 | return resultobj; | |
16905 | fail: | |
16906 | return NULL; | |
16907 | } | |
16908 | ||
16909 | ||
16910 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16911 | PyObject *obj; | |
16912 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16913 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16914 | Py_INCREF(obj); | |
16915 | return Py_BuildValue((char *)""); | |
16916 | } | |
16917 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16918 | PyObject *resultobj; | |
16919 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16920 | int arg2 = (int) 0 ; | |
16921 | wxFocusEvent *result; | |
994141e6 RD |
16922 | PyObject * obj0 = 0 ; |
16923 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
16924 | char *kwnames[] = { |
16925 | (char *) "type",(char *) "winid", NULL | |
16926 | }; | |
16927 | ||
994141e6 RD |
16928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; |
16929 | if (obj0) { | |
15afbcd0 RD |
16930 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
16931 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
16932 | } |
16933 | if (obj1) { | |
15afbcd0 RD |
16934 | arg2 = (int) SWIG_AsInt(obj1); |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16936 | } |
d14a1e28 RD |
16937 | { |
16938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16939 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16940 | ||
16941 | wxPyEndAllowThreads(__tstate); | |
16942 | if (PyErr_Occurred()) SWIG_fail; | |
16943 | } | |
15afbcd0 | 16944 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); |
d14a1e28 RD |
16945 | return resultobj; |
16946 | fail: | |
16947 | return NULL; | |
16948 | } | |
16949 | ||
16950 | ||
16951 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16952 | PyObject *resultobj; | |
16953 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16954 | wxWindow *result; | |
16955 | PyObject * obj0 = 0 ; | |
16956 | char *kwnames[] = { | |
16957 | (char *) "self", NULL | |
16958 | }; | |
16959 | ||
16960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16963 | { |
16964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16965 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
16966 | ||
16967 | wxPyEndAllowThreads(__tstate); | |
16968 | if (PyErr_Occurred()) SWIG_fail; | |
16969 | } | |
16970 | { | |
16971 | resultobj = wxPyMake_wxObject(result); | |
16972 | } | |
16973 | return resultobj; | |
16974 | fail: | |
16975 | return NULL; | |
16976 | } | |
16977 | ||
16978 | ||
16979 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16980 | PyObject *resultobj; | |
16981 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16982 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16983 | PyObject * obj0 = 0 ; | |
16984 | PyObject * obj1 = 0 ; | |
16985 | char *kwnames[] = { | |
16986 | (char *) "self",(char *) "win", NULL | |
16987 | }; | |
16988 | ||
16989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, |
16991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16992 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16994 | { |
16995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16996 | (arg1)->SetWindow(arg2); | |
16997 | ||
16998 | wxPyEndAllowThreads(__tstate); | |
16999 | if (PyErr_Occurred()) SWIG_fail; | |
17000 | } | |
17001 | Py_INCREF(Py_None); resultobj = Py_None; | |
17002 | return resultobj; | |
17003 | fail: | |
17004 | return NULL; | |
17005 | } | |
17006 | ||
17007 | ||
17008 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17009 | PyObject *obj; | |
17010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17011 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17012 | Py_INCREF(obj); | |
17013 | return Py_BuildValue((char *)""); | |
17014 | } | |
17015 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17016 | PyObject *resultobj; | |
17017 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17018 | wxChildFocusEvent *result; | |
17019 | PyObject * obj0 = 0 ; | |
17020 | char *kwnames[] = { | |
17021 | (char *) "win", NULL | |
17022 | }; | |
17023 | ||
17024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17025 | if (obj0) { | |
15afbcd0 RD |
17026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17028 | } |
17029 | { | |
17030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17031 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17032 | ||
17033 | wxPyEndAllowThreads(__tstate); | |
17034 | if (PyErr_Occurred()) SWIG_fail; | |
17035 | } | |
15afbcd0 | 17036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); |
d14a1e28 RD |
17037 | return resultobj; |
17038 | fail: | |
17039 | return NULL; | |
17040 | } | |
17041 | ||
17042 | ||
17043 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17044 | PyObject *resultobj; | |
17045 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17046 | wxWindow *result; | |
17047 | PyObject * obj0 = 0 ; | |
17048 | char *kwnames[] = { | |
17049 | (char *) "self", NULL | |
17050 | }; | |
17051 | ||
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, |
17054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17055 | { |
17056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17057 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17058 | ||
17059 | wxPyEndAllowThreads(__tstate); | |
17060 | if (PyErr_Occurred()) SWIG_fail; | |
17061 | } | |
17062 | { | |
17063 | resultobj = wxPyMake_wxObject(result); | |
17064 | } | |
17065 | return resultobj; | |
17066 | fail: | |
17067 | return NULL; | |
17068 | } | |
17069 | ||
17070 | ||
17071 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17072 | PyObject *obj; | |
17073 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17074 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17075 | Py_INCREF(obj); | |
17076 | return Py_BuildValue((char *)""); | |
17077 | } | |
17078 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17079 | PyObject *resultobj; | |
17080 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 17081 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17082 | int arg3 = (int) 0 ; |
17083 | wxActivateEvent *result; | |
994141e6 | 17084 | PyObject * obj0 = 0 ; |
d14a1e28 | 17085 | PyObject * obj1 = 0 ; |
994141e6 | 17086 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17087 | char *kwnames[] = { |
17088 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17089 | }; | |
17090 | ||
994141e6 RD |
17091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17092 | if (obj0) { | |
15afbcd0 RD |
17093 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17094 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17095 | } |
d14a1e28 | 17096 | if (obj1) { |
15afbcd0 RD |
17097 | arg2 = (bool) SWIG_AsBool(obj1); |
17098 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17099 | } |
17100 | if (obj2) { | |
15afbcd0 RD |
17101 | arg3 = (int) SWIG_AsInt(obj2); |
17102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17103 | } |
17104 | { | |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17107 | ||
17108 | wxPyEndAllowThreads(__tstate); | |
17109 | if (PyErr_Occurred()) SWIG_fail; | |
17110 | } | |
15afbcd0 | 17111 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); |
d14a1e28 RD |
17112 | return resultobj; |
17113 | fail: | |
17114 | return NULL; | |
17115 | } | |
17116 | ||
17117 | ||
17118 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17119 | PyObject *resultobj; | |
17120 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17121 | bool result; | |
17122 | PyObject * obj0 = 0 ; | |
17123 | char *kwnames[] = { | |
17124 | (char *) "self", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, |
17129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17130 | { |
17131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17132 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17133 | ||
17134 | wxPyEndAllowThreads(__tstate); | |
17135 | if (PyErr_Occurred()) SWIG_fail; | |
17136 | } | |
4f89f6a3 RD |
17137 | { |
17138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17139 | } | |
d14a1e28 RD |
17140 | return resultobj; |
17141 | fail: | |
17142 | return NULL; | |
17143 | } | |
17144 | ||
17145 | ||
17146 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17147 | PyObject *obj; | |
17148 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17149 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17150 | Py_INCREF(obj); | |
17151 | return Py_BuildValue((char *)""); | |
17152 | } | |
17153 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17154 | PyObject *resultobj; | |
17155 | int arg1 = (int) 0 ; | |
17156 | wxInitDialogEvent *result; | |
994141e6 | 17157 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17158 | char *kwnames[] = { |
17159 | (char *) "Id", NULL | |
17160 | }; | |
17161 | ||
994141e6 RD |
17162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; |
17163 | if (obj0) { | |
15afbcd0 RD |
17164 | arg1 = (int) SWIG_AsInt(obj0); |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17166 | } |
d14a1e28 RD |
17167 | { |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
15afbcd0 | 17174 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); |
d14a1e28 RD |
17175 | return resultobj; |
17176 | fail: | |
17177 | return NULL; | |
17178 | } | |
17179 | ||
17180 | ||
17181 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17182 | PyObject *obj; | |
17183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17184 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17185 | Py_INCREF(obj); | |
17186 | return Py_BuildValue((char *)""); | |
17187 | } | |
17188 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17189 | PyObject *resultobj; | |
17190 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17191 | int arg2 = (int) 0 ; | |
17192 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17193 | wxMenuEvent *result; | |
994141e6 RD |
17194 | PyObject * obj0 = 0 ; |
17195 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17196 | PyObject * obj2 = 0 ; |
17197 | char *kwnames[] = { | |
17198 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17199 | }; | |
17200 | ||
994141e6 RD |
17201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
17202 | if (obj0) { | |
15afbcd0 RD |
17203 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17205 | } |
17206 | if (obj1) { | |
15afbcd0 RD |
17207 | arg2 = (int) SWIG_AsInt(obj1); |
17208 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17209 | } |
d14a1e28 | 17210 | if (obj2) { |
15afbcd0 RD |
17211 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, |
17212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17213 | } |
17214 | { | |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17217 | ||
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
15afbcd0 | 17221 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); |
d14a1e28 RD |
17222 | return resultobj; |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17229 | PyObject *resultobj; | |
17230 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17231 | int result; | |
17232 | PyObject * obj0 = 0 ; | |
17233 | char *kwnames[] = { | |
17234 | (char *) "self", NULL | |
17235 | }; | |
17236 | ||
17237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17240 | { |
17241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17242 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17243 | ||
17244 | wxPyEndAllowThreads(__tstate); | |
17245 | if (PyErr_Occurred()) SWIG_fail; | |
17246 | } | |
15afbcd0 | 17247 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17248 | return resultobj; |
17249 | fail: | |
17250 | return NULL; | |
17251 | } | |
17252 | ||
17253 | ||
17254 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17255 | PyObject *resultobj; | |
17256 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17257 | bool result; | |
17258 | PyObject * obj0 = 0 ; | |
17259 | char *kwnames[] = { | |
17260 | (char *) "self", NULL | |
17261 | }; | |
17262 | ||
17263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17266 | { |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
4f89f6a3 RD |
17273 | { |
17274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17275 | } | |
d14a1e28 RD |
17276 | return resultobj; |
17277 | fail: | |
17278 | return NULL; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17283 | PyObject *resultobj; | |
17284 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17285 | wxMenu *result; | |
17286 | PyObject * obj0 = 0 ; | |
17287 | char *kwnames[] = { | |
17288 | (char *) "self", NULL | |
17289 | }; | |
17290 | ||
17291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, |
17293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17294 | { |
17295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17296 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17297 | ||
17298 | wxPyEndAllowThreads(__tstate); | |
17299 | if (PyErr_Occurred()) SWIG_fail; | |
17300 | } | |
17301 | { | |
17302 | resultobj = wxPyMake_wxObject(result); | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | return NULL; | |
17307 | } | |
17308 | ||
17309 | ||
17310 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17311 | PyObject *obj; | |
17312 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17313 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17314 | Py_INCREF(obj); | |
17315 | return Py_BuildValue((char *)""); | |
17316 | } | |
17317 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17318 | PyObject *resultobj; | |
17319 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17320 | int arg2 = (int) 0 ; | |
17321 | wxCloseEvent *result; | |
994141e6 RD |
17322 | PyObject * obj0 = 0 ; |
17323 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
17324 | char *kwnames[] = { |
17325 | (char *) "type",(char *) "winid", NULL | |
17326 | }; | |
17327 | ||
994141e6 RD |
17328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; |
17329 | if (obj0) { | |
15afbcd0 RD |
17330 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
17332 | } |
17333 | if (obj1) { | |
15afbcd0 RD |
17334 | arg2 = (int) SWIG_AsInt(obj1); |
17335 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17336 | } |
d14a1e28 RD |
17337 | { |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
15afbcd0 | 17344 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); |
d14a1e28 RD |
17345 | return resultobj; |
17346 | fail: | |
17347 | return NULL; | |
17348 | } | |
17349 | ||
17350 | ||
17351 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17352 | PyObject *resultobj; | |
17353 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17354 | bool arg2 ; | |
17355 | PyObject * obj0 = 0 ; | |
17356 | PyObject * obj1 = 0 ; | |
17357 | char *kwnames[] = { | |
17358 | (char *) "self",(char *) "logOff", NULL | |
17359 | }; | |
17360 | ||
17361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17364 | arg2 = (bool) SWIG_AsBool(obj1); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17366 | { |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | (arg1)->SetLoggingOff(arg2); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
17373 | Py_INCREF(Py_None); resultobj = Py_None; | |
17374 | return resultobj; | |
17375 | fail: | |
17376 | return NULL; | |
17377 | } | |
17378 | ||
17379 | ||
17380 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17381 | PyObject *resultobj; | |
17382 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17383 | bool result; | |
17384 | PyObject * obj0 = 0 ; | |
17385 | char *kwnames[] = { | |
17386 | (char *) "self", NULL | |
17387 | }; | |
17388 | ||
17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17392 | { |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
4f89f6a3 RD |
17399 | { |
17400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17401 | } | |
d14a1e28 RD |
17402 | return resultobj; |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
e811c8ce | 17411 | bool arg2 = (bool) True ; |
d14a1e28 RD |
17412 | PyObject * obj0 = 0 ; |
17413 | PyObject * obj1 = 0 ; | |
17414 | char *kwnames[] = { | |
17415 | (char *) "self",(char *) "veto", NULL | |
17416 | }; | |
17417 | ||
17418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 17421 | if (obj1) { |
15afbcd0 RD |
17422 | arg2 = (bool) SWIG_AsBool(obj1); |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17424 | } |
17425 | { | |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | (arg1)->Veto(arg2); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | Py_INCREF(Py_None); resultobj = Py_None; | |
17433 | return resultobj; | |
17434 | fail: | |
17435 | return NULL; | |
17436 | } | |
17437 | ||
17438 | ||
17439 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17440 | PyObject *resultobj; | |
17441 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17442 | bool arg2 ; | |
17443 | PyObject * obj0 = 0 ; | |
17444 | PyObject * obj1 = 0 ; | |
17445 | char *kwnames[] = { | |
17446 | (char *) "self",(char *) "canVeto", NULL | |
17447 | }; | |
17448 | ||
17449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17452 | arg2 = (bool) SWIG_AsBool(obj1); | |
17453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17454 | { |
17455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17456 | (arg1)->SetCanVeto(arg2); | |
17457 | ||
17458 | wxPyEndAllowThreads(__tstate); | |
17459 | if (PyErr_Occurred()) SWIG_fail; | |
17460 | } | |
17461 | Py_INCREF(Py_None); resultobj = Py_None; | |
17462 | return resultobj; | |
17463 | fail: | |
17464 | return NULL; | |
17465 | } | |
17466 | ||
17467 | ||
17468 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17469 | PyObject *resultobj; | |
17470 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17471 | bool result; | |
17472 | PyObject * obj0 = 0 ; | |
17473 | char *kwnames[] = { | |
17474 | (char *) "self", NULL | |
17475 | }; | |
17476 | ||
17477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17480 | { |
17481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17482 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17483 | ||
17484 | wxPyEndAllowThreads(__tstate); | |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
4f89f6a3 RD |
17487 | { |
17488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17489 | } | |
d14a1e28 RD |
17490 | return resultobj; |
17491 | fail: | |
17492 | return NULL; | |
17493 | } | |
17494 | ||
17495 | ||
17496 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17497 | PyObject *resultobj; | |
17498 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17499 | bool result; | |
17500 | PyObject * obj0 = 0 ; | |
17501 | char *kwnames[] = { | |
17502 | (char *) "self", NULL | |
17503 | }; | |
17504 | ||
17505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, |
17507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17508 | { |
17509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17510 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17511 | ||
17512 | wxPyEndAllowThreads(__tstate); | |
17513 | if (PyErr_Occurred()) SWIG_fail; | |
17514 | } | |
4f89f6a3 RD |
17515 | { |
17516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17517 | } | |
d14a1e28 RD |
17518 | return resultobj; |
17519 | fail: | |
17520 | return NULL; | |
17521 | } | |
17522 | ||
17523 | ||
17524 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17525 | PyObject *obj; | |
17526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17527 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17528 | Py_INCREF(obj); | |
17529 | return Py_BuildValue((char *)""); | |
17530 | } | |
17531 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17532 | PyObject *resultobj; | |
17533 | int arg1 = (int) 0 ; | |
e811c8ce | 17534 | bool arg2 = (bool) False ; |
d14a1e28 | 17535 | wxShowEvent *result; |
994141e6 | 17536 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17537 | PyObject * obj1 = 0 ; |
17538 | char *kwnames[] = { | |
17539 | (char *) "winid",(char *) "show", NULL | |
17540 | }; | |
17541 | ||
994141e6 RD |
17542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; |
17543 | if (obj0) { | |
15afbcd0 RD |
17544 | arg1 = (int) SWIG_AsInt(obj0); |
17545 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17546 | } |
d14a1e28 | 17547 | if (obj1) { |
15afbcd0 RD |
17548 | arg2 = (bool) SWIG_AsBool(obj1); |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17550 | } |
17551 | { | |
17552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17553 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17554 | ||
17555 | wxPyEndAllowThreads(__tstate); | |
17556 | if (PyErr_Occurred()) SWIG_fail; | |
17557 | } | |
15afbcd0 | 17558 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); |
d14a1e28 RD |
17559 | return resultobj; |
17560 | fail: | |
17561 | return NULL; | |
17562 | } | |
17563 | ||
17564 | ||
17565 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17566 | PyObject *resultobj; | |
17567 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17568 | bool arg2 ; | |
17569 | PyObject * obj0 = 0 ; | |
17570 | PyObject * obj1 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self",(char *) "show", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17578 | arg2 = (bool) SWIG_AsBool(obj1); | |
17579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17580 | { |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | (arg1)->SetShow(arg2); | |
17583 | ||
17584 | wxPyEndAllowThreads(__tstate); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | Py_INCREF(Py_None); resultobj = Py_None; | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17595 | PyObject *resultobj; | |
17596 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17597 | bool result; | |
17598 | PyObject * obj0 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "self", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, |
17605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17606 | { |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17609 | ||
17610 | wxPyEndAllowThreads(__tstate); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
4f89f6a3 RD |
17613 | { |
17614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17615 | } | |
d14a1e28 RD |
17616 | return resultobj; |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17623 | PyObject *obj; | |
17624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17625 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17626 | Py_INCREF(obj); | |
17627 | return Py_BuildValue((char *)""); | |
17628 | } | |
17629 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | int arg1 = (int) 0 ; | |
e811c8ce | 17632 | bool arg2 = (bool) True ; |
d14a1e28 | 17633 | wxIconizeEvent *result; |
994141e6 | 17634 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17635 | PyObject * obj1 = 0 ; |
17636 | char *kwnames[] = { | |
17637 | (char *) "id",(char *) "iconized", NULL | |
17638 | }; | |
17639 | ||
994141e6 RD |
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; |
17641 | if (obj0) { | |
15afbcd0 RD |
17642 | arg1 = (int) SWIG_AsInt(obj0); |
17643 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17644 | } |
d14a1e28 | 17645 | if (obj1) { |
15afbcd0 RD |
17646 | arg2 = (bool) SWIG_AsBool(obj1); |
17647 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17648 | } |
17649 | { | |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17652 | ||
17653 | wxPyEndAllowThreads(__tstate); | |
17654 | if (PyErr_Occurred()) SWIG_fail; | |
17655 | } | |
15afbcd0 | 17656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); |
d14a1e28 RD |
17657 | return resultobj; |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
17663 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17664 | PyObject *resultobj; | |
17665 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
17666 | bool result; | |
17667 | PyObject * obj0 = 0 ; | |
17668 | char *kwnames[] = { | |
17669 | (char *) "self", NULL | |
17670 | }; | |
17671 | ||
17672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, |
17674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17675 | { |
17676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17677 | result = (bool)(arg1)->Iconized(); | |
17678 | ||
17679 | wxPyEndAllowThreads(__tstate); | |
17680 | if (PyErr_Occurred()) SWIG_fail; | |
17681 | } | |
4f89f6a3 RD |
17682 | { |
17683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17684 | } | |
d14a1e28 RD |
17685 | return resultobj; |
17686 | fail: | |
17687 | return NULL; | |
17688 | } | |
17689 | ||
17690 | ||
17691 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17692 | PyObject *obj; | |
17693 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17694 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17695 | Py_INCREF(obj); | |
17696 | return Py_BuildValue((char *)""); | |
17697 | } | |
17698 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17699 | PyObject *resultobj; | |
17700 | int arg1 = (int) 0 ; | |
17701 | wxMaximizeEvent *result; | |
994141e6 | 17702 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17703 | char *kwnames[] = { |
17704 | (char *) "id", NULL | |
17705 | }; | |
17706 | ||
994141e6 RD |
17707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; |
17708 | if (obj0) { | |
15afbcd0 RD |
17709 | arg1 = (int) SWIG_AsInt(obj0); |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17711 | } |
d14a1e28 RD |
17712 | { |
17713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17714 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17715 | ||
17716 | wxPyEndAllowThreads(__tstate); | |
17717 | if (PyErr_Occurred()) SWIG_fail; | |
17718 | } | |
15afbcd0 | 17719 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); |
d14a1e28 RD |
17720 | return resultobj; |
17721 | fail: | |
17722 | return NULL; | |
17723 | } | |
17724 | ||
17725 | ||
17726 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17727 | PyObject *obj; | |
17728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17729 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17730 | Py_INCREF(obj); | |
17731 | return Py_BuildValue((char *)""); | |
17732 | } | |
17733 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17734 | PyObject *resultobj; | |
17735 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17736 | wxPoint result; | |
17737 | PyObject * obj0 = 0 ; | |
17738 | char *kwnames[] = { | |
17739 | (char *) "self", NULL | |
17740 | }; | |
17741 | ||
17742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17745 | { |
17746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17747 | result = (arg1)->GetPosition(); | |
17748 | ||
17749 | wxPyEndAllowThreads(__tstate); | |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
17751 | } | |
17752 | { | |
17753 | wxPoint * resultptr; | |
17754 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 17755 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
17756 | } |
17757 | return resultobj; | |
17758 | fail: | |
17759 | return NULL; | |
17760 | } | |
17761 | ||
17762 | ||
17763 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17764 | PyObject *resultobj; | |
17765 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17766 | int result; | |
17767 | PyObject * obj0 = 0 ; | |
17768 | char *kwnames[] = { | |
17769 | (char *) "self", NULL | |
17770 | }; | |
17771 | ||
17772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17775 | { |
17776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17777 | result = (int)(arg1)->GetNumberOfFiles(); | |
17778 | ||
17779 | wxPyEndAllowThreads(__tstate); | |
17780 | if (PyErr_Occurred()) SWIG_fail; | |
17781 | } | |
15afbcd0 | 17782 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17783 | return resultobj; |
17784 | fail: | |
17785 | return NULL; | |
17786 | } | |
17787 | ||
17788 | ||
17789 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17790 | PyObject *resultobj; | |
17791 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17792 | PyObject *result; | |
17793 | PyObject * obj0 = 0 ; | |
17794 | char *kwnames[] = { | |
17795 | (char *) "self", NULL | |
17796 | }; | |
17797 | ||
17798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, |
17800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17801 | { |
17802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17803 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17804 | ||
17805 | wxPyEndAllowThreads(__tstate); | |
17806 | if (PyErr_Occurred()) SWIG_fail; | |
17807 | } | |
17808 | resultobj = result; | |
17809 | return resultobj; | |
17810 | fail: | |
17811 | return NULL; | |
17812 | } | |
17813 | ||
17814 | ||
17815 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17816 | PyObject *obj; | |
17817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17818 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17819 | Py_INCREF(obj); | |
17820 | return Py_BuildValue((char *)""); | |
17821 | } | |
17822 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17823 | PyObject *resultobj; | |
e811c8ce | 17824 | int arg1 = (int) 0 ; |
d14a1e28 | 17825 | wxUpdateUIEvent *result; |
994141e6 | 17826 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
17827 | char *kwnames[] = { |
17828 | (char *) "commandId", NULL | |
17829 | }; | |
17830 | ||
994141e6 RD |
17831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; |
17832 | if (obj0) { | |
15afbcd0 RD |
17833 | arg1 = (int) SWIG_AsInt(obj0); |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17835 | } |
d14a1e28 RD |
17836 | { |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17839 | ||
17840 | wxPyEndAllowThreads(__tstate); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
15afbcd0 | 17843 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); |
d14a1e28 RD |
17844 | return resultobj; |
17845 | fail: | |
17846 | return NULL; | |
17847 | } | |
17848 | ||
17849 | ||
17850 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17851 | PyObject *resultobj; | |
17852 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17853 | bool result; | |
17854 | PyObject * obj0 = 0 ; | |
17855 | char *kwnames[] = { | |
17856 | (char *) "self", NULL | |
17857 | }; | |
17858 | ||
17859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17862 | { |
17863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17864 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17865 | ||
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
4f89f6a3 RD |
17869 | { |
17870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17871 | } | |
d14a1e28 RD |
17872 | return resultobj; |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
17878 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17879 | PyObject *resultobj; | |
17880 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17881 | bool result; | |
17882 | PyObject * obj0 = 0 ; | |
17883 | char *kwnames[] = { | |
17884 | (char *) "self", NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17890 | { |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
4f89f6a3 RD |
17897 | { |
17898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17899 | } | |
d14a1e28 RD |
17900 | return resultobj; |
17901 | fail: | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
17906 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17907 | PyObject *resultobj; | |
17908 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17909 | wxString result; | |
17910 | PyObject * obj0 = 0 ; | |
17911 | char *kwnames[] = { | |
17912 | (char *) "self", NULL | |
17913 | }; | |
17914 | ||
17915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17918 | { |
17919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17920 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17921 | ||
17922 | wxPyEndAllowThreads(__tstate); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
17925 | { | |
17926 | #if wxUSE_UNICODE | |
17927 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17928 | #else | |
17929 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17930 | #endif | |
17931 | } | |
17932 | return resultobj; | |
17933 | fail: | |
17934 | return NULL; | |
17935 | } | |
17936 | ||
17937 | ||
17938 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17939 | PyObject *resultobj; | |
17940 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17941 | bool result; | |
17942 | PyObject * obj0 = 0 ; | |
17943 | char *kwnames[] = { | |
17944 | (char *) "self", NULL | |
17945 | }; | |
17946 | ||
17947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17950 | { |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17953 | ||
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
4f89f6a3 RD |
17957 | { |
17958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17959 | } | |
d14a1e28 RD |
17960 | return resultobj; |
17961 | fail: | |
17962 | return NULL; | |
17963 | } | |
17964 | ||
17965 | ||
17966 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17967 | PyObject *resultobj; | |
17968 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17969 | bool result; | |
17970 | PyObject * obj0 = 0 ; | |
17971 | char *kwnames[] = { | |
17972 | (char *) "self", NULL | |
17973 | }; | |
17974 | ||
17975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
17977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17978 | { |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
4f89f6a3 RD |
17985 | { |
17986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17987 | } | |
d14a1e28 RD |
17988 | return resultobj; |
17989 | fail: | |
17990 | return NULL; | |
17991 | } | |
17992 | ||
17993 | ||
17994 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17995 | PyObject *resultobj; | |
17996 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17997 | bool result; | |
17998 | PyObject * obj0 = 0 ; | |
17999 | char *kwnames[] = { | |
18000 | (char *) "self", NULL | |
18001 | }; | |
18002 | ||
18003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18006 | { |
18007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18008 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18009 | ||
18010 | wxPyEndAllowThreads(__tstate); | |
18011 | if (PyErr_Occurred()) SWIG_fail; | |
18012 | } | |
4f89f6a3 RD |
18013 | { |
18014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18015 | } | |
d14a1e28 RD |
18016 | return resultobj; |
18017 | fail: | |
18018 | return NULL; | |
18019 | } | |
18020 | ||
18021 | ||
18022 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18023 | PyObject *resultobj; | |
18024 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18025 | bool arg2 ; | |
18026 | PyObject * obj0 = 0 ; | |
18027 | PyObject * obj1 = 0 ; | |
18028 | char *kwnames[] = { | |
18029 | (char *) "self",(char *) "check", NULL | |
18030 | }; | |
18031 | ||
18032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18035 | arg2 = (bool) SWIG_AsBool(obj1); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18037 | { |
18038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18039 | (arg1)->Check(arg2); | |
18040 | ||
18041 | wxPyEndAllowThreads(__tstate); | |
18042 | if (PyErr_Occurred()) SWIG_fail; | |
18043 | } | |
18044 | Py_INCREF(Py_None); resultobj = Py_None; | |
18045 | return resultobj; | |
18046 | fail: | |
18047 | return NULL; | |
18048 | } | |
18049 | ||
18050 | ||
18051 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18052 | PyObject *resultobj; | |
18053 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18054 | bool arg2 ; | |
18055 | PyObject * obj0 = 0 ; | |
18056 | PyObject * obj1 = 0 ; | |
18057 | char *kwnames[] = { | |
18058 | (char *) "self",(char *) "enable", NULL | |
18059 | }; | |
18060 | ||
18061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18064 | arg2 = (bool) SWIG_AsBool(obj1); | |
18065 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18066 | { |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | (arg1)->Enable(arg2); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
18073 | Py_INCREF(Py_None); resultobj = Py_None; | |
18074 | return resultobj; | |
18075 | fail: | |
18076 | return NULL; | |
18077 | } | |
18078 | ||
18079 | ||
18080 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18081 | PyObject *resultobj; | |
18082 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18083 | wxString *arg2 = 0 ; | |
e811c8ce | 18084 | bool temp2 = False ; |
d14a1e28 RD |
18085 | PyObject * obj0 = 0 ; |
18086 | PyObject * obj1 = 0 ; | |
18087 | char *kwnames[] = { | |
18088 | (char *) "self",(char *) "text", NULL | |
18089 | }; | |
18090 | ||
18091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, |
18093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18094 | { |
18095 | arg2 = wxString_in_helper(obj1); | |
18096 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 18097 | temp2 = True; |
d14a1e28 RD |
18098 | } |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | (arg1)->SetText((wxString const &)*arg2); | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | Py_INCREF(Py_None); resultobj = Py_None; | |
18107 | { | |
18108 | if (temp2) | |
18109 | delete arg2; | |
18110 | } | |
18111 | return resultobj; | |
18112 | fail: | |
18113 | { | |
18114 | if (temp2) | |
18115 | delete arg2; | |
18116 | } | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
18121 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18122 | PyObject *resultobj; | |
18123 | long arg1 ; | |
994141e6 | 18124 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18125 | char *kwnames[] = { |
18126 | (char *) "updateInterval", NULL | |
18127 | }; | |
18128 | ||
994141e6 | 18129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18130 | arg1 = (long) SWIG_AsLong(obj0); |
18131 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18132 | { |
18133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18134 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18135 | ||
18136 | wxPyEndAllowThreads(__tstate); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
18138 | } | |
18139 | Py_INCREF(Py_None); resultobj = Py_None; | |
18140 | return resultobj; | |
18141 | fail: | |
18142 | return NULL; | |
18143 | } | |
18144 | ||
18145 | ||
18146 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18147 | PyObject *resultobj; | |
18148 | long result; | |
18149 | char *kwnames[] = { | |
18150 | NULL | |
18151 | }; | |
18152 | ||
18153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18154 | { | |
18155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18156 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18157 | ||
18158 | wxPyEndAllowThreads(__tstate); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
18160 | } | |
15afbcd0 | 18161 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18162 | return resultobj; |
18163 | fail: | |
18164 | return NULL; | |
18165 | } | |
18166 | ||
18167 | ||
18168 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18169 | PyObject *resultobj; | |
18170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18171 | bool result; | |
18172 | PyObject * obj0 = 0 ; | |
18173 | char *kwnames[] = { | |
18174 | (char *) "win", NULL | |
18175 | }; | |
18176 | ||
18177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18180 | { |
18181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18182 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18183 | ||
18184 | wxPyEndAllowThreads(__tstate); | |
18185 | if (PyErr_Occurred()) SWIG_fail; | |
18186 | } | |
4f89f6a3 RD |
18187 | { |
18188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18189 | } | |
d14a1e28 RD |
18190 | return resultobj; |
18191 | fail: | |
18192 | return NULL; | |
18193 | } | |
18194 | ||
18195 | ||
18196 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18197 | PyObject *resultobj; | |
18198 | char *kwnames[] = { | |
18199 | NULL | |
18200 | }; | |
18201 | ||
18202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18203 | { | |
18204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18205 | wxUpdateUIEvent::ResetUpdateTime(); | |
18206 | ||
18207 | wxPyEndAllowThreads(__tstate); | |
18208 | if (PyErr_Occurred()) SWIG_fail; | |
18209 | } | |
18210 | Py_INCREF(Py_None); resultobj = Py_None; | |
18211 | return resultobj; | |
18212 | fail: | |
18213 | return NULL; | |
18214 | } | |
18215 | ||
18216 | ||
18217 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18218 | PyObject *resultobj; | |
18219 | int arg1 ; | |
994141e6 | 18220 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18221 | char *kwnames[] = { |
18222 | (char *) "mode", NULL | |
18223 | }; | |
18224 | ||
994141e6 | 18225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
18226 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18228 | { |
18229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18230 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18231 | ||
18232 | wxPyEndAllowThreads(__tstate); | |
18233 | if (PyErr_Occurred()) SWIG_fail; | |
18234 | } | |
18235 | Py_INCREF(Py_None); resultobj = Py_None; | |
18236 | return resultobj; | |
18237 | fail: | |
18238 | return NULL; | |
18239 | } | |
18240 | ||
18241 | ||
18242 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18243 | PyObject *resultobj; | |
18244 | int result; | |
18245 | char *kwnames[] = { | |
18246 | NULL | |
18247 | }; | |
18248 | ||
18249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18250 | { | |
18251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18252 | result = (int)wxUpdateUIEvent::GetMode(); | |
18253 | ||
18254 | wxPyEndAllowThreads(__tstate); | |
18255 | if (PyErr_Occurred()) SWIG_fail; | |
18256 | } | |
15afbcd0 | 18257 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18258 | return resultobj; |
18259 | fail: | |
18260 | return NULL; | |
18261 | } | |
18262 | ||
18263 | ||
18264 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18265 | PyObject *obj; | |
18266 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18267 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18268 | Py_INCREF(obj); | |
18269 | return Py_BuildValue((char *)""); | |
18270 | } | |
18271 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18272 | PyObject *resultobj; | |
18273 | wxSysColourChangedEvent *result; | |
18274 | char *kwnames[] = { | |
18275 | NULL | |
18276 | }; | |
18277 | ||
18278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18279 | { | |
18280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18281 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18282 | ||
18283 | wxPyEndAllowThreads(__tstate); | |
18284 | if (PyErr_Occurred()) SWIG_fail; | |
18285 | } | |
15afbcd0 | 18286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); |
d14a1e28 RD |
18287 | return resultobj; |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18294 | PyObject *obj; | |
18295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18296 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18297 | Py_INCREF(obj); | |
18298 | return Py_BuildValue((char *)""); | |
18299 | } | |
18300 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18301 | PyObject *resultobj; | |
e811c8ce | 18302 | int arg1 = (int) 0 ; |
d14a1e28 RD |
18303 | wxWindow *arg2 = (wxWindow *) NULL ; |
18304 | wxMouseCaptureChangedEvent *result; | |
994141e6 | 18305 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18306 | PyObject * obj1 = 0 ; |
18307 | char *kwnames[] = { | |
18308 | (char *) "winid",(char *) "gainedCapture", NULL | |
18309 | }; | |
18310 | ||
994141e6 RD |
18311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; |
18312 | if (obj0) { | |
15afbcd0 RD |
18313 | arg1 = (int) SWIG_AsInt(obj0); |
18314 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18315 | } |
d14a1e28 | 18316 | if (obj1) { |
15afbcd0 RD |
18317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
18318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18319 | } |
18320 | { | |
18321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18322 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18323 | ||
18324 | wxPyEndAllowThreads(__tstate); | |
18325 | if (PyErr_Occurred()) SWIG_fail; | |
18326 | } | |
15afbcd0 | 18327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); |
d14a1e28 RD |
18328 | return resultobj; |
18329 | fail: | |
18330 | return NULL; | |
18331 | } | |
18332 | ||
18333 | ||
18334 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18335 | PyObject *resultobj; | |
18336 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18337 | wxWindow *result; | |
18338 | PyObject * obj0 = 0 ; | |
18339 | char *kwnames[] = { | |
18340 | (char *) "self", NULL | |
18341 | }; | |
18342 | ||
18343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, |
18345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18346 | { |
18347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18348 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18349 | ||
18350 | wxPyEndAllowThreads(__tstate); | |
18351 | if (PyErr_Occurred()) SWIG_fail; | |
18352 | } | |
18353 | { | |
18354 | resultobj = wxPyMake_wxObject(result); | |
18355 | } | |
18356 | return resultobj; | |
18357 | fail: | |
18358 | return NULL; | |
18359 | } | |
18360 | ||
18361 | ||
18362 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18363 | PyObject *obj; | |
18364 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18365 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18366 | Py_INCREF(obj); | |
18367 | return Py_BuildValue((char *)""); | |
18368 | } | |
18369 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18370 | PyObject *resultobj; | |
18371 | wxDisplayChangedEvent *result; | |
18372 | char *kwnames[] = { | |
18373 | NULL | |
18374 | }; | |
18375 | ||
18376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18377 | { | |
18378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18379 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18380 | ||
18381 | wxPyEndAllowThreads(__tstate); | |
18382 | if (PyErr_Occurred()) SWIG_fail; | |
18383 | } | |
15afbcd0 | 18384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); |
d14a1e28 RD |
18385 | return resultobj; |
18386 | fail: | |
18387 | return NULL; | |
18388 | } | |
18389 | ||
18390 | ||
18391 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18392 | PyObject *obj; | |
18393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18394 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18395 | Py_INCREF(obj); | |
18396 | return Py_BuildValue((char *)""); | |
18397 | } | |
18398 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18399 | PyObject *resultobj; | |
e811c8ce | 18400 | int arg1 = (int) 0 ; |
d14a1e28 | 18401 | wxPaletteChangedEvent *result; |
994141e6 | 18402 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18403 | char *kwnames[] = { |
18404 | (char *) "id", NULL | |
18405 | }; | |
18406 | ||
994141e6 RD |
18407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; |
18408 | if (obj0) { | |
15afbcd0 RD |
18409 | arg1 = (int) SWIG_AsInt(obj0); |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18411 | } |
d14a1e28 RD |
18412 | { |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
15afbcd0 | 18419 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); |
d14a1e28 RD |
18420 | return resultobj; |
18421 | fail: | |
18422 | return NULL; | |
18423 | } | |
18424 | ||
18425 | ||
18426 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18427 | PyObject *resultobj; | |
18428 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18429 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18430 | PyObject * obj0 = 0 ; | |
18431 | PyObject * obj1 = 0 ; | |
18432 | char *kwnames[] = { | |
18433 | (char *) "self",(char *) "win", NULL | |
18434 | }; | |
18435 | ||
18436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18441 | { |
18442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18443 | (arg1)->SetChangedWindow(arg2); | |
18444 | ||
18445 | wxPyEndAllowThreads(__tstate); | |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
18447 | } | |
18448 | Py_INCREF(Py_None); resultobj = Py_None; | |
18449 | return resultobj; | |
18450 | fail: | |
18451 | return NULL; | |
18452 | } | |
18453 | ||
18454 | ||
18455 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18456 | PyObject *resultobj; | |
18457 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18458 | wxWindow *result; | |
18459 | PyObject * obj0 = 0 ; | |
18460 | char *kwnames[] = { | |
18461 | (char *) "self", NULL | |
18462 | }; | |
18463 | ||
18464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, |
18466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18467 | { |
18468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18469 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | { | |
18475 | resultobj = wxPyMake_wxObject(result); | |
18476 | } | |
18477 | return resultobj; | |
18478 | fail: | |
18479 | return NULL; | |
18480 | } | |
18481 | ||
18482 | ||
18483 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18484 | PyObject *obj; | |
18485 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18486 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18487 | Py_INCREF(obj); | |
18488 | return Py_BuildValue((char *)""); | |
18489 | } | |
18490 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj; | |
e811c8ce | 18492 | int arg1 = (int) 0 ; |
d14a1e28 | 18493 | wxQueryNewPaletteEvent *result; |
994141e6 | 18494 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
18495 | char *kwnames[] = { |
18496 | (char *) "winid", NULL | |
18497 | }; | |
18498 | ||
994141e6 RD |
18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; |
18500 | if (obj0) { | |
15afbcd0 RD |
18501 | arg1 = (int) SWIG_AsInt(obj0); |
18502 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18503 | } |
d14a1e28 RD |
18504 | { |
18505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18506 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18507 | ||
18508 | wxPyEndAllowThreads(__tstate); | |
18509 | if (PyErr_Occurred()) SWIG_fail; | |
18510 | } | |
15afbcd0 | 18511 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); |
d14a1e28 RD |
18512 | return resultobj; |
18513 | fail: | |
18514 | return NULL; | |
18515 | } | |
18516 | ||
18517 | ||
18518 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18519 | PyObject *resultobj; | |
18520 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18521 | bool arg2 ; | |
18522 | PyObject * obj0 = 0 ; | |
18523 | PyObject * obj1 = 0 ; | |
18524 | char *kwnames[] = { | |
18525 | (char *) "self",(char *) "realized", NULL | |
18526 | }; | |
18527 | ||
18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18531 | arg2 = (bool) SWIG_AsBool(obj1); | |
18532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18533 | { |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | (arg1)->SetPaletteRealized(arg2); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | Py_INCREF(Py_None); resultobj = Py_None; | |
18541 | return resultobj; | |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
18547 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18548 | PyObject *resultobj; | |
18549 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18550 | bool result; | |
18551 | PyObject * obj0 = 0 ; | |
18552 | char *kwnames[] = { | |
18553 | (char *) "self", NULL | |
18554 | }; | |
18555 | ||
18556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, |
18558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18559 | { |
18560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18561 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18562 | ||
18563 | wxPyEndAllowThreads(__tstate); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | } | |
4f89f6a3 RD |
18566 | { |
18567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18568 | } | |
d14a1e28 RD |
18569 | return resultobj; |
18570 | fail: | |
18571 | return NULL; | |
18572 | } | |
18573 | ||
18574 | ||
18575 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18576 | PyObject *obj; | |
18577 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18578 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18579 | Py_INCREF(obj); | |
18580 | return Py_BuildValue((char *)""); | |
18581 | } | |
18582 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18583 | PyObject *resultobj; | |
18584 | wxNavigationKeyEvent *result; | |
18585 | char *kwnames[] = { | |
18586 | NULL | |
18587 | }; | |
18588 | ||
18589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18590 | { | |
18591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18592 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18593 | ||
18594 | wxPyEndAllowThreads(__tstate); | |
18595 | if (PyErr_Occurred()) SWIG_fail; | |
18596 | } | |
15afbcd0 | 18597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); |
d14a1e28 RD |
18598 | return resultobj; |
18599 | fail: | |
18600 | return NULL; | |
18601 | } | |
18602 | ||
18603 | ||
18604 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18605 | PyObject *resultobj; | |
18606 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18607 | bool result; | |
18608 | PyObject * obj0 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18616 | { |
18617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18618 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18619 | ||
18620 | wxPyEndAllowThreads(__tstate); | |
18621 | if (PyErr_Occurred()) SWIG_fail; | |
18622 | } | |
4f89f6a3 RD |
18623 | { |
18624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18625 | } | |
d14a1e28 RD |
18626 | return resultobj; |
18627 | fail: | |
18628 | return NULL; | |
18629 | } | |
18630 | ||
18631 | ||
18632 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18633 | PyObject *resultobj; | |
18634 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18635 | bool arg2 ; | |
18636 | PyObject * obj0 = 0 ; | |
18637 | PyObject * obj1 = 0 ; | |
18638 | char *kwnames[] = { | |
18639 | (char *) "self",(char *) "bForward", NULL | |
18640 | }; | |
18641 | ||
18642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18645 | arg2 = (bool) SWIG_AsBool(obj1); | |
18646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18647 | { |
18648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18649 | (arg1)->SetDirection(arg2); | |
18650 | ||
18651 | wxPyEndAllowThreads(__tstate); | |
18652 | if (PyErr_Occurred()) SWIG_fail; | |
18653 | } | |
18654 | Py_INCREF(Py_None); resultobj = Py_None; | |
18655 | return resultobj; | |
18656 | fail: | |
18657 | return NULL; | |
18658 | } | |
18659 | ||
18660 | ||
18661 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18662 | PyObject *resultobj; | |
18663 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18664 | bool result; | |
18665 | PyObject * obj0 = 0 ; | |
18666 | char *kwnames[] = { | |
18667 | (char *) "self", NULL | |
18668 | }; | |
18669 | ||
18670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18673 | { |
18674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18675 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18676 | ||
18677 | wxPyEndAllowThreads(__tstate); | |
18678 | if (PyErr_Occurred()) SWIG_fail; | |
18679 | } | |
4f89f6a3 RD |
18680 | { |
18681 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18682 | } | |
d14a1e28 RD |
18683 | return resultobj; |
18684 | fail: | |
18685 | return NULL; | |
18686 | } | |
18687 | ||
18688 | ||
18689 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18690 | PyObject *resultobj; | |
18691 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18692 | bool arg2 ; | |
18693 | PyObject * obj0 = 0 ; | |
18694 | PyObject * obj1 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self",(char *) "bIs", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18702 | arg2 = (bool) SWIG_AsBool(obj1); | |
18703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18704 | { |
18705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18706 | (arg1)->SetWindowChange(arg2); | |
18707 | ||
18708 | wxPyEndAllowThreads(__tstate); | |
18709 | if (PyErr_Occurred()) SWIG_fail; | |
18710 | } | |
18711 | Py_INCREF(Py_None); resultobj = Py_None; | |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
18718 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18719 | PyObject *resultobj; | |
18720 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18721 | wxWindow *result; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "self", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18730 | { |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | { | |
18738 | resultobj = wxPyMake_wxObject(result); | |
18739 | } | |
18740 | return resultobj; | |
18741 | fail: | |
18742 | return NULL; | |
18743 | } | |
18744 | ||
18745 | ||
18746 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18747 | PyObject *resultobj; | |
18748 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18750 | PyObject * obj0 = 0 ; | |
18751 | PyObject * obj1 = 0 ; | |
18752 | char *kwnames[] = { | |
18753 | (char *) "self",(char *) "win", NULL | |
18754 | }; | |
18755 | ||
18756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, |
18758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18761 | { |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18763 | (arg1)->SetCurrentFocus(arg2); | |
18764 | ||
18765 | wxPyEndAllowThreads(__tstate); | |
18766 | if (PyErr_Occurred()) SWIG_fail; | |
18767 | } | |
18768 | Py_INCREF(Py_None); resultobj = Py_None; | |
18769 | return resultobj; | |
18770 | fail: | |
18771 | return NULL; | |
18772 | } | |
18773 | ||
18774 | ||
18775 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18776 | PyObject *obj; | |
18777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18778 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18779 | Py_INCREF(obj); | |
18780 | return Py_BuildValue((char *)""); | |
18781 | } | |
18782 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18783 | PyObject *resultobj; | |
18784 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18785 | wxWindowCreateEvent *result; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | char *kwnames[] = { | |
18788 | (char *) "win", NULL | |
18789 | }; | |
18790 | ||
18791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18792 | if (obj0) { | |
15afbcd0 RD |
18793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18795 | } |
18796 | { | |
18797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18798 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18799 | ||
18800 | wxPyEndAllowThreads(__tstate); | |
18801 | if (PyErr_Occurred()) SWIG_fail; | |
18802 | } | |
15afbcd0 | 18803 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); |
d14a1e28 RD |
18804 | return resultobj; |
18805 | fail: | |
18806 | return NULL; | |
18807 | } | |
18808 | ||
18809 | ||
18810 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18811 | PyObject *resultobj; | |
18812 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18813 | wxWindow *result; | |
18814 | PyObject * obj0 = 0 ; | |
18815 | char *kwnames[] = { | |
18816 | (char *) "self", NULL | |
18817 | }; | |
18818 | ||
18819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, |
18821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18822 | { |
18823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18824 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18825 | ||
18826 | wxPyEndAllowThreads(__tstate); | |
18827 | if (PyErr_Occurred()) SWIG_fail; | |
18828 | } | |
18829 | { | |
18830 | resultobj = wxPyMake_wxObject(result); | |
18831 | } | |
18832 | return resultobj; | |
18833 | fail: | |
18834 | return NULL; | |
18835 | } | |
18836 | ||
18837 | ||
18838 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18839 | PyObject *obj; | |
18840 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18841 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18842 | Py_INCREF(obj); | |
18843 | return Py_BuildValue((char *)""); | |
18844 | } | |
18845 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18846 | PyObject *resultobj; | |
18847 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18848 | wxWindowDestroyEvent *result; | |
18849 | PyObject * obj0 = 0 ; | |
18850 | char *kwnames[] = { | |
18851 | (char *) "win", NULL | |
18852 | }; | |
18853 | ||
18854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18855 | if (obj0) { | |
15afbcd0 RD |
18856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18858 | } |
18859 | { | |
18860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18861 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18862 | ||
18863 | wxPyEndAllowThreads(__tstate); | |
18864 | if (PyErr_Occurred()) SWIG_fail; | |
18865 | } | |
15afbcd0 | 18866 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); |
d14a1e28 RD |
18867 | return resultobj; |
18868 | fail: | |
18869 | return NULL; | |
18870 | } | |
18871 | ||
18872 | ||
18873 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18874 | PyObject *resultobj; | |
18875 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18876 | wxWindow *result; | |
18877 | PyObject * obj0 = 0 ; | |
18878 | char *kwnames[] = { | |
18879 | (char *) "self", NULL | |
18880 | }; | |
18881 | ||
18882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, |
18884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18885 | { |
18886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18887 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18888 | ||
18889 | wxPyEndAllowThreads(__tstate); | |
18890 | if (PyErr_Occurred()) SWIG_fail; | |
18891 | } | |
18892 | { | |
18893 | resultobj = wxPyMake_wxObject(result); | |
18894 | } | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18902 | PyObject *obj; | |
18903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18904 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18905 | Py_INCREF(obj); | |
18906 | return Py_BuildValue((char *)""); | |
18907 | } | |
18908 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18909 | PyObject *resultobj; | |
18910 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 18911 | int arg2 = (int) 0 ; |
d14a1e28 RD |
18912 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18913 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18914 | wxContextMenuEvent *result; | |
18915 | wxPoint temp3 ; | |
994141e6 RD |
18916 | PyObject * obj0 = 0 ; |
18917 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
18918 | PyObject * obj2 = 0 ; |
18919 | char *kwnames[] = { | |
18920 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18921 | }; | |
18922 | ||
994141e6 RD |
18923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
18924 | if (obj0) { | |
15afbcd0 RD |
18925 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
18926 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
18927 | } |
18928 | if (obj1) { | |
15afbcd0 RD |
18929 | arg2 = (int) SWIG_AsInt(obj1); |
18930 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18931 | } |
d14a1e28 RD |
18932 | if (obj2) { |
18933 | { | |
18934 | arg3 = &temp3; | |
18935 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18936 | } | |
18937 | } | |
18938 | { | |
18939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18940 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18941 | ||
18942 | wxPyEndAllowThreads(__tstate); | |
18943 | if (PyErr_Occurred()) SWIG_fail; | |
18944 | } | |
15afbcd0 | 18945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); |
d14a1e28 RD |
18946 | return resultobj; |
18947 | fail: | |
18948 | return NULL; | |
18949 | } | |
18950 | ||
18951 | ||
18952 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18953 | PyObject *resultobj; | |
18954 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18955 | wxPoint *result; | |
18956 | PyObject * obj0 = 0 ; | |
18957 | char *kwnames[] = { | |
18958 | (char *) "self", NULL | |
18959 | }; | |
18960 | ||
18961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18964 | { |
18965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18966 | { | |
18967 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18968 | result = (wxPoint *) &_result_ref; | |
18969 | } | |
18970 | ||
18971 | wxPyEndAllowThreads(__tstate); | |
18972 | if (PyErr_Occurred()) SWIG_fail; | |
18973 | } | |
15afbcd0 | 18974 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
18975 | return resultobj; |
18976 | fail: | |
18977 | return NULL; | |
18978 | } | |
18979 | ||
18980 | ||
18981 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18982 | PyObject *resultobj; | |
18983 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18984 | wxPoint *arg2 = 0 ; | |
18985 | wxPoint temp2 ; | |
18986 | PyObject * obj0 = 0 ; | |
18987 | PyObject * obj1 = 0 ; | |
18988 | char *kwnames[] = { | |
18989 | (char *) "self",(char *) "pos", NULL | |
18990 | }; | |
18991 | ||
18992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, |
18994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18995 | { |
18996 | arg2 = &temp2; | |
18997 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18998 | } | |
18999 | { | |
19000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19001 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19002 | ||
19003 | wxPyEndAllowThreads(__tstate); | |
19004 | if (PyErr_Occurred()) SWIG_fail; | |
19005 | } | |
19006 | Py_INCREF(Py_None); resultobj = Py_None; | |
19007 | return resultobj; | |
19008 | fail: | |
19009 | return NULL; | |
19010 | } | |
19011 | ||
19012 | ||
19013 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
19014 | PyObject *obj; | |
19015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19016 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19017 | Py_INCREF(obj); | |
19018 | return Py_BuildValue((char *)""); | |
19019 | } | |
19020 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19021 | PyObject *resultobj; | |
19022 | wxIdleEvent *result; | |
19023 | char *kwnames[] = { | |
19024 | NULL | |
19025 | }; | |
19026 | ||
19027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19028 | { | |
19029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19030 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19031 | ||
19032 | wxPyEndAllowThreads(__tstate); | |
19033 | if (PyErr_Occurred()) SWIG_fail; | |
19034 | } | |
15afbcd0 | 19035 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); |
d14a1e28 RD |
19036 | return resultobj; |
19037 | fail: | |
19038 | return NULL; | |
19039 | } | |
19040 | ||
19041 | ||
19042 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19043 | PyObject *resultobj; | |
19044 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
e811c8ce | 19045 | bool arg2 = (bool) True ; |
d14a1e28 RD |
19046 | PyObject * obj0 = 0 ; |
19047 | PyObject * obj1 = 0 ; | |
19048 | char *kwnames[] = { | |
19049 | (char *) "self",(char *) "needMore", NULL | |
19050 | }; | |
19051 | ||
19052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19055 | if (obj1) { |
15afbcd0 RD |
19056 | arg2 = (bool) SWIG_AsBool(obj1); |
19057 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19058 | } |
19059 | { | |
19060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19061 | (arg1)->RequestMore(arg2); | |
19062 | ||
19063 | wxPyEndAllowThreads(__tstate); | |
19064 | if (PyErr_Occurred()) SWIG_fail; | |
19065 | } | |
19066 | Py_INCREF(Py_None); resultobj = Py_None; | |
19067 | return resultobj; | |
19068 | fail: | |
19069 | return NULL; | |
19070 | } | |
19071 | ||
19072 | ||
19073 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19074 | PyObject *resultobj; | |
19075 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19076 | bool result; | |
19077 | PyObject * obj0 = 0 ; | |
19078 | char *kwnames[] = { | |
19079 | (char *) "self", NULL | |
19080 | }; | |
19081 | ||
19082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, |
19084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19085 | { |
19086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19087 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19088 | ||
19089 | wxPyEndAllowThreads(__tstate); | |
19090 | if (PyErr_Occurred()) SWIG_fail; | |
19091 | } | |
4f89f6a3 RD |
19092 | { |
19093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19094 | } | |
d14a1e28 RD |
19095 | return resultobj; |
19096 | fail: | |
19097 | return NULL; | |
19098 | } | |
19099 | ||
19100 | ||
19101 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19102 | PyObject *resultobj; | |
19103 | int arg1 ; | |
994141e6 | 19104 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
19105 | char *kwnames[] = { |
19106 | (char *) "mode", NULL | |
19107 | }; | |
19108 | ||
994141e6 | 19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
19110 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); |
19111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19112 | { |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | Py_INCREF(Py_None); resultobj = Py_None; | |
19120 | return resultobj; | |
19121 | fail: | |
19122 | return NULL; | |
19123 | } | |
19124 | ||
19125 | ||
19126 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19127 | PyObject *resultobj; | |
19128 | int result; | |
19129 | char *kwnames[] = { | |
19130 | NULL | |
19131 | }; | |
19132 | ||
19133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19134 | { | |
19135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19136 | result = (int)wxIdleEvent::GetMode(); | |
19137 | ||
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
15afbcd0 | 19141 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19142 | return resultobj; |
19143 | fail: | |
19144 | return NULL; | |
19145 | } | |
19146 | ||
19147 | ||
19148 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19149 | PyObject *resultobj; | |
19150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19151 | bool result; | |
19152 | PyObject * obj0 = 0 ; | |
19153 | char *kwnames[] = { | |
19154 | (char *) "win", NULL | |
19155 | }; | |
19156 | ||
19157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
19159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19160 | { |
19161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19162 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19163 | ||
19164 | wxPyEndAllowThreads(__tstate); | |
19165 | if (PyErr_Occurred()) SWIG_fail; | |
19166 | } | |
4f89f6a3 RD |
19167 | { |
19168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19169 | } | |
d14a1e28 RD |
19170 | return resultobj; |
19171 | fail: | |
19172 | return NULL; | |
19173 | } | |
19174 | ||
19175 | ||
19176 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19177 | PyObject *obj; | |
19178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19179 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19180 | Py_INCREF(obj); | |
19181 | return Py_BuildValue((char *)""); | |
19182 | } | |
19183 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19184 | PyObject *resultobj; | |
19185 | int arg1 = (int) 0 ; | |
19186 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19187 | wxPyEvent *result; | |
994141e6 RD |
19188 | PyObject * obj0 = 0 ; |
19189 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19190 | char *kwnames[] = { |
19191 | (char *) "winid",(char *) "commandType", NULL | |
19192 | }; | |
19193 | ||
994141e6 RD |
19194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; |
19195 | if (obj0) { | |
15afbcd0 RD |
19196 | arg1 = (int) SWIG_AsInt(obj0); |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19198 | } |
19199 | if (obj1) { | |
15afbcd0 RD |
19200 | arg2 = (wxEventType) SWIG_AsInt(obj1); |
19201 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19202 | } |
d14a1e28 RD |
19203 | { |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19206 | ||
19207 | wxPyEndAllowThreads(__tstate); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | } | |
15afbcd0 | 19210 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); |
d14a1e28 RD |
19211 | return resultobj; |
19212 | fail: | |
19213 | return NULL; | |
19214 | } | |
19215 | ||
19216 | ||
19217 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19218 | PyObject *resultobj; | |
19219 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19220 | PyObject * obj0 = 0 ; | |
19221 | char *kwnames[] = { | |
19222 | (char *) "self", NULL | |
19223 | }; | |
19224 | ||
19225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19228 | { |
19229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19230 | delete arg1; | |
19231 | ||
19232 | wxPyEndAllowThreads(__tstate); | |
19233 | if (PyErr_Occurred()) SWIG_fail; | |
19234 | } | |
19235 | Py_INCREF(Py_None); resultobj = Py_None; | |
19236 | return resultobj; | |
19237 | fail: | |
19238 | return NULL; | |
19239 | } | |
19240 | ||
19241 | ||
19242 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19243 | PyObject *resultobj; | |
19244 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19245 | PyObject *arg2 = (PyObject *) 0 ; | |
19246 | PyObject * obj0 = 0 ; | |
19247 | PyObject * obj1 = 0 ; | |
19248 | char *kwnames[] = { | |
19249 | (char *) "self",(char *) "self", NULL | |
19250 | }; | |
19251 | ||
19252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19255 | arg2 = obj1; |
19256 | { | |
19257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19258 | (arg1)->SetSelf(arg2); | |
19259 | ||
19260 | wxPyEndAllowThreads(__tstate); | |
19261 | if (PyErr_Occurred()) SWIG_fail; | |
19262 | } | |
19263 | Py_INCREF(Py_None); resultobj = Py_None; | |
19264 | return resultobj; | |
19265 | fail: | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19273 | PyObject *result; | |
19274 | PyObject * obj0 = 0 ; | |
19275 | char *kwnames[] = { | |
19276 | (char *) "self", NULL | |
19277 | }; | |
19278 | ||
19279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, |
19281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19282 | { |
19283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19284 | result = (PyObject *)(arg1)->GetSelf(); | |
19285 | ||
19286 | wxPyEndAllowThreads(__tstate); | |
19287 | if (PyErr_Occurred()) SWIG_fail; | |
19288 | } | |
19289 | resultobj = result; | |
19290 | return resultobj; | |
19291 | fail: | |
19292 | return NULL; | |
19293 | } | |
19294 | ||
19295 | ||
19296 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19297 | PyObject *obj; | |
19298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19299 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19300 | Py_INCREF(obj); | |
19301 | return Py_BuildValue((char *)""); | |
19302 | } | |
19303 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19304 | PyObject *resultobj; | |
19305 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19306 | int arg2 = (int) 0 ; | |
19307 | wxPyCommandEvent *result; | |
994141e6 RD |
19308 | PyObject * obj0 = 0 ; |
19309 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19310 | char *kwnames[] = { |
19311 | (char *) "commandType",(char *) "id", NULL | |
19312 | }; | |
19313 | ||
994141e6 RD |
19314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; |
19315 | if (obj0) { | |
15afbcd0 RD |
19316 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19317 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
19318 | } |
19319 | if (obj1) { | |
15afbcd0 RD |
19320 | arg2 = (int) SWIG_AsInt(obj1); |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 19322 | } |
d14a1e28 RD |
19323 | { |
19324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19325 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19326 | ||
19327 | wxPyEndAllowThreads(__tstate); | |
19328 | if (PyErr_Occurred()) SWIG_fail; | |
19329 | } | |
15afbcd0 | 19330 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); |
d14a1e28 RD |
19331 | return resultobj; |
19332 | fail: | |
19333 | return NULL; | |
19334 | } | |
19335 | ||
19336 | ||
19337 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19338 | PyObject *resultobj; | |
19339 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19340 | PyObject * obj0 = 0 ; | |
19341 | char *kwnames[] = { | |
19342 | (char *) "self", NULL | |
19343 | }; | |
19344 | ||
19345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19348 | { |
19349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19350 | delete arg1; | |
19351 | ||
19352 | wxPyEndAllowThreads(__tstate); | |
19353 | if (PyErr_Occurred()) SWIG_fail; | |
19354 | } | |
19355 | Py_INCREF(Py_None); resultobj = Py_None; | |
19356 | return resultobj; | |
19357 | fail: | |
19358 | return NULL; | |
19359 | } | |
19360 | ||
19361 | ||
19362 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19363 | PyObject *resultobj; | |
19364 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19365 | PyObject *arg2 = (PyObject *) 0 ; | |
19366 | PyObject * obj0 = 0 ; | |
19367 | PyObject * obj1 = 0 ; | |
19368 | char *kwnames[] = { | |
19369 | (char *) "self",(char *) "self", NULL | |
19370 | }; | |
19371 | ||
19372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19375 | arg2 = obj1; |
19376 | { | |
19377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19378 | (arg1)->SetSelf(arg2); | |
19379 | ||
19380 | wxPyEndAllowThreads(__tstate); | |
19381 | if (PyErr_Occurred()) SWIG_fail; | |
19382 | } | |
19383 | Py_INCREF(Py_None); resultobj = Py_None; | |
19384 | return resultobj; | |
19385 | fail: | |
19386 | return NULL; | |
19387 | } | |
19388 | ||
19389 | ||
19390 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19391 | PyObject *resultobj; | |
19392 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19393 | PyObject *result; | |
19394 | PyObject * obj0 = 0 ; | |
19395 | char *kwnames[] = { | |
19396 | (char *) "self", NULL | |
19397 | }; | |
19398 | ||
19399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, |
19401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19402 | { |
19403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19404 | result = (PyObject *)(arg1)->GetSelf(); | |
19405 | ||
19406 | wxPyEndAllowThreads(__tstate); | |
19407 | if (PyErr_Occurred()) SWIG_fail; | |
19408 | } | |
19409 | resultobj = result; | |
19410 | return resultobj; | |
19411 | fail: | |
19412 | return NULL; | |
19413 | } | |
19414 | ||
19415 | ||
19416 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19417 | PyObject *obj; | |
19418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19419 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19420 | Py_INCREF(obj); | |
19421 | return Py_BuildValue((char *)""); | |
19422 | } | |
19423 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxPyApp *result; | |
19426 | char *kwnames[] = { | |
19427 | NULL | |
19428 | }; | |
19429 | ||
19430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19431 | { | |
19432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19433 | result = (wxPyApp *)new_wxPyApp(); | |
19434 | ||
19435 | wxPyEndAllowThreads(__tstate); | |
19436 | if (PyErr_Occurred()) SWIG_fail; | |
19437 | } | |
19438 | { | |
19439 | resultobj = wxPyMake_wxObject(result); | |
19440 | } | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj; | |
19449 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19450 | PyObject * obj0 = 0 ; | |
19451 | char *kwnames[] = { | |
19452 | (char *) "self", NULL | |
19453 | }; | |
19454 | ||
19455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19458 | { |
19459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19460 | delete arg1; | |
19461 | ||
19462 | wxPyEndAllowThreads(__tstate); | |
19463 | if (PyErr_Occurred()) SWIG_fail; | |
19464 | } | |
19465 | Py_INCREF(Py_None); resultobj = Py_None; | |
19466 | return resultobj; | |
19467 | fail: | |
19468 | return NULL; | |
19469 | } | |
19470 | ||
19471 | ||
19472 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19473 | PyObject *resultobj; | |
19474 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19475 | PyObject *arg2 = (PyObject *) 0 ; | |
19476 | PyObject *arg3 = (PyObject *) 0 ; | |
19477 | PyObject * obj0 = 0 ; | |
19478 | PyObject * obj1 = 0 ; | |
19479 | PyObject * obj2 = 0 ; | |
19480 | char *kwnames[] = { | |
19481 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19482 | }; | |
19483 | ||
19484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
19485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19487 | arg2 = obj1; |
19488 | arg3 = obj2; | |
19489 | { | |
19490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19491 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19492 | ||
19493 | wxPyEndAllowThreads(__tstate); | |
19494 | if (PyErr_Occurred()) SWIG_fail; | |
19495 | } | |
19496 | Py_INCREF(Py_None); resultobj = Py_None; | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19504 | PyObject *resultobj; | |
19505 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19506 | wxString result; | |
19507 | PyObject * obj0 = 0 ; | |
19508 | char *kwnames[] = { | |
19509 | (char *) "self", NULL | |
19510 | }; | |
19511 | ||
19512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19515 | { |
19516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19517 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19518 | ||
19519 | wxPyEndAllowThreads(__tstate); | |
19520 | if (PyErr_Occurred()) SWIG_fail; | |
19521 | } | |
19522 | { | |
19523 | #if wxUSE_UNICODE | |
19524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19525 | #else | |
19526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19527 | #endif | |
19528 | } | |
19529 | return resultobj; | |
19530 | fail: | |
19531 | return NULL; | |
19532 | } | |
19533 | ||
19534 | ||
19535 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19536 | PyObject *resultobj; | |
19537 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19538 | wxString *arg2 = 0 ; | |
e811c8ce | 19539 | bool temp2 = False ; |
d14a1e28 RD |
19540 | PyObject * obj0 = 0 ; |
19541 | PyObject * obj1 = 0 ; | |
19542 | char *kwnames[] = { | |
19543 | (char *) "self",(char *) "name", NULL | |
19544 | }; | |
19545 | ||
19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19549 | { |
19550 | arg2 = wxString_in_helper(obj1); | |
19551 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19552 | temp2 = True; |
d14a1e28 RD |
19553 | } |
19554 | { | |
19555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19556 | (arg1)->SetAppName((wxString const &)*arg2); | |
19557 | ||
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | Py_INCREF(Py_None); resultobj = Py_None; | |
19562 | { | |
19563 | if (temp2) | |
19564 | delete arg2; | |
19565 | } | |
19566 | return resultobj; | |
19567 | fail: | |
19568 | { | |
19569 | if (temp2) | |
19570 | delete arg2; | |
19571 | } | |
19572 | return NULL; | |
19573 | } | |
19574 | ||
19575 | ||
19576 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19577 | PyObject *resultobj; | |
19578 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19579 | wxString result; | |
19580 | PyObject * obj0 = 0 ; | |
19581 | char *kwnames[] = { | |
19582 | (char *) "self", NULL | |
19583 | }; | |
19584 | ||
19585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19588 | { |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19590 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19591 | ||
19592 | wxPyEndAllowThreads(__tstate); | |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | { | |
19596 | #if wxUSE_UNICODE | |
19597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19598 | #else | |
19599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19600 | #endif | |
19601 | } | |
19602 | return resultobj; | |
19603 | fail: | |
19604 | return NULL; | |
19605 | } | |
19606 | ||
19607 | ||
19608 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19609 | PyObject *resultobj; | |
19610 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19611 | wxString *arg2 = 0 ; | |
e811c8ce | 19612 | bool temp2 = False ; |
d14a1e28 RD |
19613 | PyObject * obj0 = 0 ; |
19614 | PyObject * obj1 = 0 ; | |
19615 | char *kwnames[] = { | |
19616 | (char *) "self",(char *) "name", NULL | |
19617 | }; | |
19618 | ||
19619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19622 | { |
19623 | arg2 = wxString_in_helper(obj1); | |
19624 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19625 | temp2 = True; |
d14a1e28 RD |
19626 | } |
19627 | { | |
19628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19629 | (arg1)->SetClassName((wxString const &)*arg2); | |
19630 | ||
19631 | wxPyEndAllowThreads(__tstate); | |
19632 | if (PyErr_Occurred()) SWIG_fail; | |
19633 | } | |
19634 | Py_INCREF(Py_None); resultobj = Py_None; | |
19635 | { | |
19636 | if (temp2) | |
19637 | delete arg2; | |
19638 | } | |
19639 | return resultobj; | |
19640 | fail: | |
19641 | { | |
19642 | if (temp2) | |
19643 | delete arg2; | |
19644 | } | |
19645 | return NULL; | |
19646 | } | |
19647 | ||
19648 | ||
19649 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19650 | PyObject *resultobj; | |
19651 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19652 | wxString *result; | |
19653 | PyObject * obj0 = 0 ; | |
19654 | char *kwnames[] = { | |
19655 | (char *) "self", NULL | |
19656 | }; | |
19657 | ||
19658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19661 | { |
19662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19663 | { | |
19664 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19665 | result = (wxString *) &_result_ref; | |
19666 | } | |
19667 | ||
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
cc6dd355 RD |
19671 | { |
19672 | #if wxUSE_UNICODE | |
19673 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19674 | #else | |
19675 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19676 | #endif | |
19677 | } | |
d14a1e28 RD |
19678 | return resultobj; |
19679 | fail: | |
19680 | return NULL; | |
19681 | } | |
19682 | ||
19683 | ||
19684 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19685 | PyObject *resultobj; | |
19686 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19687 | wxString *arg2 = 0 ; | |
e811c8ce | 19688 | bool temp2 = False ; |
d14a1e28 RD |
19689 | PyObject * obj0 = 0 ; |
19690 | PyObject * obj1 = 0 ; | |
19691 | char *kwnames[] = { | |
19692 | (char *) "self",(char *) "name", NULL | |
19693 | }; | |
19694 | ||
19695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19698 | { |
19699 | arg2 = wxString_in_helper(obj1); | |
19700 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19701 | temp2 = True; |
d14a1e28 RD |
19702 | } |
19703 | { | |
19704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19705 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19706 | ||
19707 | wxPyEndAllowThreads(__tstate); | |
19708 | if (PyErr_Occurred()) SWIG_fail; | |
19709 | } | |
19710 | Py_INCREF(Py_None); resultobj = Py_None; | |
19711 | { | |
19712 | if (temp2) | |
19713 | delete arg2; | |
19714 | } | |
19715 | return resultobj; | |
19716 | fail: | |
19717 | { | |
19718 | if (temp2) | |
19719 | delete arg2; | |
19720 | } | |
19721 | return NULL; | |
19722 | } | |
19723 | ||
19724 | ||
19725 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19726 | PyObject *resultobj; | |
19727 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19728 | wxAppTraits *result; | |
19729 | PyObject * obj0 = 0 ; | |
19730 | char *kwnames[] = { | |
19731 | (char *) "self", NULL | |
19732 | }; | |
19733 | ||
19734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19737 | { |
19738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19739 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19740 | ||
19741 | wxPyEndAllowThreads(__tstate); | |
19742 | if (PyErr_Occurred()) SWIG_fail; | |
19743 | } | |
15afbcd0 | 19744 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); |
d14a1e28 RD |
19745 | return resultobj; |
19746 | fail: | |
19747 | return NULL; | |
19748 | } | |
19749 | ||
19750 | ||
19751 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19752 | PyObject *resultobj; | |
19753 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19754 | PyObject * obj0 = 0 ; | |
19755 | char *kwnames[] = { | |
19756 | (char *) "self", NULL | |
19757 | }; | |
19758 | ||
19759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19762 | { |
19763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19764 | (arg1)->ProcessPendingEvents(); | |
19765 | ||
19766 | wxPyEndAllowThreads(__tstate); | |
19767 | if (PyErr_Occurred()) SWIG_fail; | |
19768 | } | |
19769 | Py_INCREF(Py_None); resultobj = Py_None; | |
19770 | return resultobj; | |
19771 | fail: | |
19772 | return NULL; | |
19773 | } | |
19774 | ||
19775 | ||
19776 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19777 | PyObject *resultobj; | |
19778 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
e811c8ce | 19779 | bool arg2 = (bool) False ; |
d14a1e28 RD |
19780 | bool result; |
19781 | PyObject * obj0 = 0 ; | |
19782 | PyObject * obj1 = 0 ; | |
19783 | char *kwnames[] = { | |
19784 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19785 | }; | |
19786 | ||
19787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 19790 | if (obj1) { |
15afbcd0 RD |
19791 | arg2 = (bool) SWIG_AsBool(obj1); |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19793 | } |
19794 | { | |
19795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19796 | result = (bool)(arg1)->Yield(arg2); | |
19797 | ||
19798 | wxPyEndAllowThreads(__tstate); | |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
4f89f6a3 RD |
19801 | { |
19802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19803 | } | |
d14a1e28 RD |
19804 | return resultobj; |
19805 | fail: | |
19806 | return NULL; | |
19807 | } | |
19808 | ||
19809 | ||
19810 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19811 | PyObject *resultobj; | |
19812 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19813 | PyObject * obj0 = 0 ; | |
19814 | char *kwnames[] = { | |
19815 | (char *) "self", NULL | |
19816 | }; | |
19817 | ||
19818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19821 | { |
19822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19823 | (arg1)->WakeUpIdle(); | |
19824 | ||
19825 | wxPyEndAllowThreads(__tstate); | |
19826 | if (PyErr_Occurred()) SWIG_fail; | |
19827 | } | |
19828 | Py_INCREF(Py_None); resultobj = Py_None; | |
19829 | return resultobj; | |
19830 | fail: | |
19831 | return NULL; | |
19832 | } | |
19833 | ||
19834 | ||
19835 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19836 | PyObject *resultobj; | |
19837 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19838 | int result; | |
19839 | PyObject * obj0 = 0 ; | |
19840 | char *kwnames[] = { | |
19841 | (char *) "self", NULL | |
19842 | }; | |
19843 | ||
19844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19847 | { |
19848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19849 | result = (int)(arg1)->MainLoop(); | |
19850 | ||
19851 | wxPyEndAllowThreads(__tstate); | |
19852 | if (PyErr_Occurred()) SWIG_fail; | |
19853 | } | |
15afbcd0 | 19854 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19855 | return resultobj; |
19856 | fail: | |
19857 | return NULL; | |
19858 | } | |
19859 | ||
19860 | ||
19861 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19862 | PyObject *resultobj; | |
19863 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19864 | PyObject * obj0 = 0 ; | |
19865 | char *kwnames[] = { | |
19866 | (char *) "self", NULL | |
19867 | }; | |
19868 | ||
19869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19872 | { |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | (arg1)->Exit(); | |
19875 | ||
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | Py_INCREF(Py_None); resultobj = Py_None; | |
19880 | return resultobj; | |
19881 | fail: | |
19882 | return NULL; | |
19883 | } | |
19884 | ||
19885 | ||
19886 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19887 | PyObject *resultobj; | |
19888 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19889 | PyObject * obj0 = 0 ; | |
19890 | char *kwnames[] = { | |
19891 | (char *) "self", NULL | |
19892 | }; | |
19893 | ||
19894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19897 | { |
19898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19899 | (arg1)->ExitMainLoop(); | |
19900 | ||
19901 | wxPyEndAllowThreads(__tstate); | |
19902 | if (PyErr_Occurred()) SWIG_fail; | |
19903 | } | |
19904 | Py_INCREF(Py_None); resultobj = Py_None; | |
19905 | return resultobj; | |
19906 | fail: | |
19907 | return NULL; | |
19908 | } | |
19909 | ||
19910 | ||
19911 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19912 | PyObject *resultobj; | |
19913 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19914 | bool result; | |
19915 | PyObject * obj0 = 0 ; | |
19916 | char *kwnames[] = { | |
19917 | (char *) "self", NULL | |
19918 | }; | |
19919 | ||
19920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19923 | { |
19924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19925 | result = (bool)(arg1)->Pending(); | |
19926 | ||
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
4f89f6a3 RD |
19930 | { |
19931 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19932 | } | |
d14a1e28 RD |
19933 | return resultobj; |
19934 | fail: | |
19935 | return NULL; | |
19936 | } | |
19937 | ||
19938 | ||
19939 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19940 | PyObject *resultobj; | |
19941 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19942 | bool result; | |
19943 | PyObject * obj0 = 0 ; | |
19944 | char *kwnames[] = { | |
19945 | (char *) "self", NULL | |
19946 | }; | |
19947 | ||
19948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19951 | { |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = (bool)(arg1)->Dispatch(); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
4f89f6a3 RD |
19958 | { |
19959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19960 | } | |
d14a1e28 RD |
19961 | return resultobj; |
19962 | fail: | |
19963 | return NULL; | |
19964 | } | |
19965 | ||
19966 | ||
19967 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19968 | PyObject *resultobj; | |
19969 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19970 | bool result; | |
19971 | PyObject * obj0 = 0 ; | |
19972 | char *kwnames[] = { | |
19973 | (char *) "self", NULL | |
19974 | }; | |
19975 | ||
19976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
19978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19979 | { |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | result = (bool)(arg1)->ProcessIdle(); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
4f89f6a3 RD |
19986 | { |
19987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19988 | } | |
d14a1e28 RD |
19989 | return resultobj; |
19990 | fail: | |
19991 | return NULL; | |
19992 | } | |
19993 | ||
19994 | ||
19995 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19996 | PyObject *resultobj; | |
19997 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19998 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19999 | wxIdleEvent *arg3 = 0 ; | |
20000 | bool result; | |
20001 | PyObject * obj0 = 0 ; | |
20002 | PyObject * obj1 = 0 ; | |
20003 | PyObject * obj2 = 0 ; | |
20004 | char *kwnames[] = { | |
20005 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20006 | }; | |
20007 | ||
20008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
20009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20011 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20013 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20014 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20015 | SWIG_fail; | |
d14a1e28 | 20016 | if (arg3 == NULL) { |
15afbcd0 RD |
20017 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20018 | SWIG_fail; | |
d14a1e28 RD |
20019 | } |
20020 | { | |
20021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20022 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20023 | ||
20024 | wxPyEndAllowThreads(__tstate); | |
20025 | if (PyErr_Occurred()) SWIG_fail; | |
20026 | } | |
4f89f6a3 RD |
20027 | { |
20028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20029 | } | |
d14a1e28 RD |
20030 | return resultobj; |
20031 | fail: | |
20032 | return NULL; | |
20033 | } | |
20034 | ||
20035 | ||
d14a1e28 RD |
20036 | static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
20037 | PyObject *resultobj; | |
20038 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20039 | bool result; | |
20040 | PyObject * obj0 = 0 ; | |
20041 | char *kwnames[] = { | |
20042 | (char *) "self", NULL | |
20043 | }; | |
20044 | ||
20045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20048 | { |
20049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20050 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20051 | ||
20052 | wxPyEndAllowThreads(__tstate); | |
20053 | if (PyErr_Occurred()) SWIG_fail; | |
20054 | } | |
4f89f6a3 RD |
20055 | { |
20056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20057 | } | |
d14a1e28 RD |
20058 | return resultobj; |
20059 | fail: | |
20060 | return NULL; | |
20061 | } | |
20062 | ||
20063 | ||
20064 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20065 | PyObject *resultobj; | |
20066 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20068 | PyObject * obj0 = 0 ; | |
20069 | PyObject * obj1 = 0 ; | |
20070 | char *kwnames[] = { | |
20071 | (char *) "self",(char *) "win", NULL | |
20072 | }; | |
20073 | ||
20074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20079 | { |
20080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20081 | (arg1)->SetTopWindow(arg2); | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | Py_INCREF(Py_None); resultobj = Py_None; | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
20093 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20094 | PyObject *resultobj; | |
20095 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20096 | wxWindow *result; | |
20097 | PyObject * obj0 = 0 ; | |
20098 | char *kwnames[] = { | |
20099 | (char *) "self", NULL | |
20100 | }; | |
20101 | ||
20102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20105 | { |
20106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20107 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20108 | ||
20109 | wxPyEndAllowThreads(__tstate); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | } | |
20112 | { | |
20113 | resultobj = wxPyMake_wxObject(result); | |
20114 | } | |
20115 | return resultobj; | |
20116 | fail: | |
20117 | return NULL; | |
20118 | } | |
20119 | ||
20120 | ||
20121 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20122 | PyObject *resultobj; | |
20123 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20124 | bool arg2 ; | |
20125 | PyObject * obj0 = 0 ; | |
20126 | PyObject * obj1 = 0 ; | |
20127 | char *kwnames[] = { | |
20128 | (char *) "self",(char *) "flag", NULL | |
20129 | }; | |
20130 | ||
20131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20134 | arg2 = (bool) SWIG_AsBool(obj1); | |
20135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20136 | { |
20137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20138 | (arg1)->SetExitOnFrameDelete(arg2); | |
20139 | ||
20140 | wxPyEndAllowThreads(__tstate); | |
20141 | if (PyErr_Occurred()) SWIG_fail; | |
20142 | } | |
20143 | Py_INCREF(Py_None); resultobj = Py_None; | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj; | |
20152 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20153 | bool result; | |
20154 | PyObject * obj0 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20162 | { |
20163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20164 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20165 | ||
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
4f89f6a3 RD |
20169 | { |
20170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20171 | } | |
d14a1e28 RD |
20172 | return resultobj; |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
20178 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20179 | PyObject *resultobj; | |
20180 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20181 | bool arg2 ; | |
20182 | PyObject * obj0 = 0 ; | |
20183 | PyObject * obj1 = 0 ; | |
20184 | char *kwnames[] = { | |
20185 | (char *) "self",(char *) "flag", NULL | |
20186 | }; | |
20187 | ||
20188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20191 | arg2 = (bool) SWIG_AsBool(obj1); | |
20192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20193 | { |
20194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20195 | (arg1)->SetUseBestVisual(arg2); | |
20196 | ||
20197 | wxPyEndAllowThreads(__tstate); | |
20198 | if (PyErr_Occurred()) SWIG_fail; | |
20199 | } | |
20200 | Py_INCREF(Py_None); resultobj = Py_None; | |
20201 | return resultobj; | |
20202 | fail: | |
20203 | return NULL; | |
20204 | } | |
20205 | ||
20206 | ||
20207 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20208 | PyObject *resultobj; | |
20209 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20210 | bool result; | |
20211 | PyObject * obj0 = 0 ; | |
20212 | char *kwnames[] = { | |
20213 | (char *) "self", NULL | |
20214 | }; | |
20215 | ||
20216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20219 | { |
20220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20221 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20222 | ||
20223 | wxPyEndAllowThreads(__tstate); | |
20224 | if (PyErr_Occurred()) SWIG_fail; | |
20225 | } | |
4f89f6a3 RD |
20226 | { |
20227 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20228 | } | |
d14a1e28 RD |
20229 | return resultobj; |
20230 | fail: | |
20231 | return NULL; | |
20232 | } | |
20233 | ||
20234 | ||
20235 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20236 | PyObject *resultobj; | |
20237 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20238 | int arg2 ; | |
20239 | PyObject * obj0 = 0 ; | |
994141e6 | 20240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20241 | char *kwnames[] = { |
20242 | (char *) "self",(char *) "mode", NULL | |
20243 | }; | |
20244 | ||
994141e6 | 20245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20248 | arg2 = (int) SWIG_AsInt(obj1); | |
20249 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20250 | { |
20251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20252 | (arg1)->SetPrintMode(arg2); | |
20253 | ||
20254 | wxPyEndAllowThreads(__tstate); | |
20255 | if (PyErr_Occurred()) SWIG_fail; | |
20256 | } | |
20257 | Py_INCREF(Py_None); resultobj = Py_None; | |
20258 | return resultobj; | |
20259 | fail: | |
20260 | return NULL; | |
20261 | } | |
20262 | ||
20263 | ||
20264 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20265 | PyObject *resultobj; | |
20266 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20267 | int result; | |
20268 | PyObject * obj0 = 0 ; | |
20269 | char *kwnames[] = { | |
20270 | (char *) "self", NULL | |
20271 | }; | |
20272 | ||
20273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20276 | { |
20277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20278 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20279 | ||
20280 | wxPyEndAllowThreads(__tstate); | |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
20282 | } | |
15afbcd0 | 20283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20284 | return resultobj; |
20285 | fail: | |
20286 | return NULL; | |
20287 | } | |
20288 | ||
20289 | ||
6c3b4aae | 20290 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20291 | PyObject *resultobj; |
20292 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20293 | int arg2 ; |
d14a1e28 | 20294 | PyObject * obj0 = 0 ; |
994141e6 | 20295 | PyObject * obj1 = 0 ; |
d14a1e28 | 20296 | char *kwnames[] = { |
6c3b4aae | 20297 | (char *) "self",(char *) "mode", NULL |
d14a1e28 RD |
20298 | }; |
20299 | ||
994141e6 | 20300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20303 | arg2 = (int) SWIG_AsInt(obj1); | |
20304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20305 | { |
20306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20307 | (arg1)->SetAssertMode(arg2); |
d14a1e28 RD |
20308 | |
20309 | wxPyEndAllowThreads(__tstate); | |
20310 | if (PyErr_Occurred()) SWIG_fail; | |
20311 | } | |
6c3b4aae | 20312 | Py_INCREF(Py_None); resultobj = Py_None; |
d14a1e28 RD |
20313 | return resultobj; |
20314 | fail: | |
20315 | return NULL; | |
20316 | } | |
20317 | ||
20318 | ||
6c3b4aae | 20319 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
20320 | PyObject *resultobj; |
20321 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
6c3b4aae | 20322 | int result; |
d14a1e28 RD |
20323 | PyObject * obj0 = 0 ; |
20324 | char *kwnames[] = { | |
6c3b4aae | 20325 | (char *) "self", NULL |
d14a1e28 RD |
20326 | }; |
20327 | ||
6c3b4aae | 20328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20331 | { |
20332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6c3b4aae | 20333 | result = (int)(arg1)->GetAssertMode(); |
d14a1e28 RD |
20334 | |
20335 | wxPyEndAllowThreads(__tstate); | |
20336 | if (PyErr_Occurred()) SWIG_fail; | |
20337 | } | |
15afbcd0 | 20338 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20339 | return resultobj; |
20340 | fail: | |
20341 | return NULL; | |
20342 | } | |
20343 | ||
20344 | ||
20345 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20346 | PyObject *resultobj; | |
20347 | bool result; | |
20348 | char *kwnames[] = { | |
20349 | NULL | |
20350 | }; | |
20351 | ||
20352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20353 | { | |
20354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20355 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20356 | ||
20357 | wxPyEndAllowThreads(__tstate); | |
20358 | if (PyErr_Occurred()) SWIG_fail; | |
20359 | } | |
4f89f6a3 RD |
20360 | { |
20361 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20362 | } | |
d14a1e28 RD |
20363 | return resultobj; |
20364 | fail: | |
20365 | return NULL; | |
20366 | } | |
20367 | ||
20368 | ||
20369 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20370 | PyObject *resultobj; | |
20371 | long result; | |
20372 | char *kwnames[] = { | |
20373 | NULL | |
20374 | }; | |
20375 | ||
20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20377 | { | |
20378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20379 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20380 | ||
20381 | wxPyEndAllowThreads(__tstate); | |
20382 | if (PyErr_Occurred()) SWIG_fail; | |
20383 | } | |
15afbcd0 | 20384 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20385 | return resultobj; |
20386 | fail: | |
20387 | return NULL; | |
20388 | } | |
20389 | ||
20390 | ||
20391 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20392 | PyObject *resultobj; | |
20393 | long result; | |
20394 | char *kwnames[] = { | |
20395 | NULL | |
20396 | }; | |
20397 | ||
20398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20399 | { | |
20400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20401 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20402 | ||
20403 | wxPyEndAllowThreads(__tstate); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | } | |
15afbcd0 | 20406 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20407 | return resultobj; |
20408 | fail: | |
20409 | return NULL; | |
20410 | } | |
20411 | ||
20412 | ||
20413 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20414 | PyObject *resultobj; | |
20415 | long result; | |
20416 | char *kwnames[] = { | |
20417 | NULL | |
20418 | }; | |
20419 | ||
20420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20421 | { | |
20422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20423 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20424 | ||
20425 | wxPyEndAllowThreads(__tstate); | |
20426 | if (PyErr_Occurred()) SWIG_fail; | |
20427 | } | |
15afbcd0 | 20428 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20429 | return resultobj; |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
20435 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20436 | PyObject *resultobj; | |
20437 | wxString result; | |
20438 | char *kwnames[] = { | |
20439 | NULL | |
20440 | }; | |
20441 | ||
20442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20443 | { | |
20444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20445 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20446 | ||
20447 | wxPyEndAllowThreads(__tstate); | |
20448 | if (PyErr_Occurred()) SWIG_fail; | |
20449 | } | |
20450 | { | |
20451 | #if wxUSE_UNICODE | |
20452 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20453 | #else | |
20454 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20455 | #endif | |
20456 | } | |
20457 | return resultobj; | |
20458 | fail: | |
20459 | return NULL; | |
20460 | } | |
20461 | ||
20462 | ||
20463 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20464 | PyObject *resultobj; | |
20465 | bool arg1 ; | |
20466 | PyObject * obj0 = 0 ; | |
20467 | char *kwnames[] = { | |
20468 | (char *) "val", NULL | |
20469 | }; | |
20470 | ||
20471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20472 | arg1 = (bool) SWIG_AsBool(obj0); |
20473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20474 | { |
20475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20476 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20477 | ||
20478 | wxPyEndAllowThreads(__tstate); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | } | |
20481 | Py_INCREF(Py_None); resultobj = Py_None; | |
20482 | return resultobj; | |
20483 | fail: | |
20484 | return NULL; | |
20485 | } | |
20486 | ||
20487 | ||
20488 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20489 | PyObject *resultobj; | |
20490 | long arg1 ; | |
994141e6 | 20491 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20492 | char *kwnames[] = { |
20493 | (char *) "val", NULL | |
20494 | }; | |
20495 | ||
994141e6 | 20496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20497 | arg1 = (long) SWIG_AsLong(obj0); |
20498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20499 | { |
20500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20501 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20502 | ||
20503 | wxPyEndAllowThreads(__tstate); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | } | |
20506 | Py_INCREF(Py_None); resultobj = Py_None; | |
20507 | return resultobj; | |
20508 | fail: | |
20509 | return NULL; | |
20510 | } | |
20511 | ||
20512 | ||
20513 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20514 | PyObject *resultobj; | |
20515 | long arg1 ; | |
994141e6 | 20516 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20517 | char *kwnames[] = { |
20518 | (char *) "val", NULL | |
20519 | }; | |
20520 | ||
994141e6 | 20521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20522 | arg1 = (long) SWIG_AsLong(obj0); |
20523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20524 | { |
20525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20526 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20527 | ||
20528 | wxPyEndAllowThreads(__tstate); | |
20529 | if (PyErr_Occurred()) SWIG_fail; | |
20530 | } | |
20531 | Py_INCREF(Py_None); resultobj = Py_None; | |
20532 | return resultobj; | |
20533 | fail: | |
20534 | return NULL; | |
20535 | } | |
20536 | ||
20537 | ||
20538 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20539 | PyObject *resultobj; | |
20540 | long arg1 ; | |
994141e6 | 20541 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
20542 | char *kwnames[] = { |
20543 | (char *) "val", NULL | |
20544 | }; | |
20545 | ||
994141e6 | 20546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
20547 | arg1 = (long) SWIG_AsLong(obj0); |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20549 | { |
20550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20551 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20552 | ||
20553 | wxPyEndAllowThreads(__tstate); | |
20554 | if (PyErr_Occurred()) SWIG_fail; | |
20555 | } | |
20556 | Py_INCREF(Py_None); resultobj = Py_None; | |
20557 | return resultobj; | |
20558 | fail: | |
20559 | return NULL; | |
20560 | } | |
20561 | ||
20562 | ||
20563 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20564 | PyObject *resultobj; | |
20565 | wxString *arg1 = 0 ; | |
e811c8ce | 20566 | bool temp1 = False ; |
d14a1e28 RD |
20567 | PyObject * obj0 = 0 ; |
20568 | char *kwnames[] = { | |
20569 | (char *) "val", NULL | |
20570 | }; | |
20571 | ||
20572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20573 | { | |
20574 | arg1 = wxString_in_helper(obj0); | |
20575 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 20576 | temp1 = True; |
d14a1e28 RD |
20577 | } |
20578 | { | |
20579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20580 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20581 | ||
20582 | wxPyEndAllowThreads(__tstate); | |
20583 | if (PyErr_Occurred()) SWIG_fail; | |
20584 | } | |
20585 | Py_INCREF(Py_None); resultobj = Py_None; | |
20586 | { | |
20587 | if (temp1) | |
20588 | delete arg1; | |
20589 | } | |
20590 | return resultobj; | |
20591 | fail: | |
20592 | { | |
20593 | if (temp1) | |
20594 | delete arg1; | |
20595 | } | |
20596 | return NULL; | |
20597 | } | |
20598 | ||
20599 | ||
20600 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20601 | PyObject *resultobj; | |
20602 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20603 | PyObject * obj0 = 0 ; | |
20604 | char *kwnames[] = { | |
20605 | (char *) "self", NULL | |
20606 | }; | |
20607 | ||
20608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, |
20610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20611 | { |
20612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20613 | (arg1)->_BootstrapApp(); | |
20614 | ||
20615 | wxPyEndAllowThreads(__tstate); | |
20616 | if (PyErr_Occurred()) SWIG_fail; | |
20617 | } | |
20618 | Py_INCREF(Py_None); resultobj = Py_None; | |
20619 | return resultobj; | |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
20625 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20626 | PyObject *resultobj; | |
20627 | int result; | |
20628 | char *kwnames[] = { | |
20629 | NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20633 | { | |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | result = (int)PyApp_GetComCtl32Version(); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
15afbcd0 | 20640 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20641 | return resultobj; |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
20647 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20648 | PyObject *obj; | |
20649 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20650 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20651 | Py_INCREF(obj); | |
20652 | return Py_BuildValue((char *)""); | |
20653 | } | |
20654 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj; | |
20656 | char *kwnames[] = { | |
20657 | NULL | |
20658 | }; | |
20659 | ||
20660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20661 | { | |
20662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20663 | wxExit(); | |
20664 | ||
20665 | wxPyEndAllowThreads(__tstate); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
20668 | Py_INCREF(Py_None); resultobj = Py_None; | |
20669 | return resultobj; | |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
20675 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20676 | PyObject *resultobj; | |
20677 | bool result; | |
20678 | char *kwnames[] = { | |
20679 | NULL | |
20680 | }; | |
20681 | ||
20682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | result = (bool)wxYield(); | |
20686 | ||
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
4f89f6a3 RD |
20690 | { |
20691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20692 | } | |
d14a1e28 RD |
20693 | return resultobj; |
20694 | fail: | |
20695 | return NULL; | |
20696 | } | |
20697 | ||
20698 | ||
20699 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20700 | PyObject *resultobj; | |
20701 | bool result; | |
20702 | char *kwnames[] = { | |
20703 | NULL | |
20704 | }; | |
20705 | ||
20706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20707 | { | |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | result = (bool)wxYieldIfNeeded(); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
4f89f6a3 RD |
20714 | { |
20715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20716 | } | |
d14a1e28 RD |
20717 | return resultobj; |
20718 | fail: | |
20719 | return NULL; | |
20720 | } | |
20721 | ||
20722 | ||
20723 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20724 | PyObject *resultobj; | |
20725 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 20726 | bool arg2 = (bool) False ; |
d14a1e28 RD |
20727 | bool result; |
20728 | PyObject * obj0 = 0 ; | |
20729 | PyObject * obj1 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20735 | if (obj0) { | |
15afbcd0 RD |
20736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20738 | } |
20739 | if (obj1) { | |
15afbcd0 RD |
20740 | arg2 = (bool) SWIG_AsBool(obj1); |
20741 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20742 | } |
20743 | { | |
20744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20745 | result = (bool)wxSafeYield(arg1,arg2); | |
20746 | ||
20747 | wxPyEndAllowThreads(__tstate); | |
20748 | if (PyErr_Occurred()) SWIG_fail; | |
20749 | } | |
4f89f6a3 RD |
20750 | { |
20751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20752 | } | |
d14a1e28 RD |
20753 | return resultobj; |
20754 | fail: | |
20755 | return NULL; | |
20756 | } | |
20757 | ||
20758 | ||
20759 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20760 | PyObject *resultobj; | |
20761 | char *kwnames[] = { | |
20762 | NULL | |
20763 | }; | |
20764 | ||
20765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20766 | { | |
20767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20768 | wxWakeUpIdle(); | |
20769 | ||
20770 | wxPyEndAllowThreads(__tstate); | |
20771 | if (PyErr_Occurred()) SWIG_fail; | |
20772 | } | |
20773 | Py_INCREF(Py_None); resultobj = Py_None; | |
20774 | return resultobj; | |
20775 | fail: | |
20776 | return NULL; | |
20777 | } | |
20778 | ||
20779 | ||
20780 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20781 | PyObject *resultobj; | |
20782 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20783 | wxEvent *arg2 = 0 ; | |
20784 | PyObject * obj0 = 0 ; | |
20785 | PyObject * obj1 = 0 ; | |
20786 | char *kwnames[] = { | |
20787 | (char *) "dest",(char *) "event", NULL | |
20788 | }; | |
20789 | ||
20790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, |
20792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20794 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20795 | SWIG_fail; | |
d14a1e28 | 20796 | if (arg2 == NULL) { |
15afbcd0 RD |
20797 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20798 | SWIG_fail; | |
d14a1e28 RD |
20799 | } |
20800 | { | |
20801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20802 | wxPostEvent(arg1,*arg2); | |
20803 | ||
20804 | wxPyEndAllowThreads(__tstate); | |
20805 | if (PyErr_Occurred()) SWIG_fail; | |
20806 | } | |
20807 | Py_INCREF(Py_None); resultobj = Py_None; | |
20808 | return resultobj; | |
20809 | fail: | |
20810 | return NULL; | |
20811 | } | |
20812 | ||
20813 | ||
20814 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20815 | PyObject *resultobj; | |
20816 | char *kwnames[] = { | |
20817 | NULL | |
20818 | }; | |
20819 | ||
20820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20821 | { | |
20822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20823 | wxApp_CleanUp(); | |
20824 | ||
20825 | wxPyEndAllowThreads(__tstate); | |
20826 | if (PyErr_Occurred()) SWIG_fail; | |
20827 | } | |
20828 | Py_INCREF(Py_None); resultobj = Py_None; | |
20829 | return resultobj; | |
20830 | fail: | |
20831 | return NULL; | |
20832 | } | |
20833 | ||
20834 | ||
20835 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20836 | PyObject *resultobj; | |
20837 | wxPyApp *result; | |
20838 | char *kwnames[] = { | |
20839 | NULL | |
20840 | }; | |
20841 | ||
20842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20843 | { | |
20844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20845 | result = (wxPyApp *)wxGetApp(); | |
20846 | ||
20847 | wxPyEndAllowThreads(__tstate); | |
20848 | if (PyErr_Occurred()) SWIG_fail; | |
20849 | } | |
20850 | { | |
20851 | resultobj = wxPyMake_wxObject(result); | |
20852 | } | |
20853 | return resultobj; | |
20854 | fail: | |
20855 | return NULL; | |
20856 | } | |
20857 | ||
20858 | ||
1e0c8722 RD |
20859 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { |
20860 | PyObject *resultobj; | |
20861 | int arg1 = (int) 0 ; | |
20862 | int arg2 = (int) 0 ; | |
20863 | int arg3 = (int) 0 ; | |
20864 | wxMenuItem *arg4 = (wxMenuItem *) NULL ; | |
20865 | wxAcceleratorEntry *result; | |
994141e6 RD |
20866 | PyObject * obj0 = 0 ; |
20867 | PyObject * obj1 = 0 ; | |
20868 | PyObject * obj2 = 0 ; | |
1e0c8722 RD |
20869 | PyObject * obj3 = 0 ; |
20870 | char *kwnames[] = { | |
20871 | (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20872 | }; | |
20873 | ||
994141e6 RD |
20874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
20875 | if (obj0) { | |
15afbcd0 RD |
20876 | arg1 = (int) SWIG_AsInt(obj0); |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20878 | } |
20879 | if (obj1) { | |
15afbcd0 RD |
20880 | arg2 = (int) SWIG_AsInt(obj1); |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20882 | } |
20883 | if (obj2) { | |
15afbcd0 RD |
20884 | arg3 = (int) SWIG_AsInt(obj2); |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20886 | } |
1e0c8722 | 20887 | if (obj3) { |
15afbcd0 RD |
20888 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenuItem, |
20889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20890 | } |
20891 | { | |
20892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20893 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4); | |
20894 | ||
20895 | wxPyEndAllowThreads(__tstate); | |
20896 | if (PyErr_Occurred()) SWIG_fail; | |
20897 | } | |
15afbcd0 | 20898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); |
1e0c8722 RD |
20899 | return resultobj; |
20900 | fail: | |
20901 | return NULL; | |
20902 | } | |
20903 | ||
20904 | ||
20905 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20906 | PyObject *resultobj; | |
20907 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20908 | PyObject * obj0 = 0 ; | |
20909 | char *kwnames[] = { | |
20910 | (char *) "self", NULL | |
20911 | }; | |
20912 | ||
20913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20916 | { |
20917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20918 | delete arg1; | |
20919 | ||
20920 | wxPyEndAllowThreads(__tstate); | |
20921 | if (PyErr_Occurred()) SWIG_fail; | |
20922 | } | |
20923 | Py_INCREF(Py_None); resultobj = Py_None; | |
20924 | return resultobj; | |
20925 | fail: | |
20926 | return NULL; | |
20927 | } | |
20928 | ||
20929 | ||
20930 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20931 | PyObject *resultobj; | |
20932 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20933 | int arg2 ; | |
20934 | int arg3 ; | |
20935 | int arg4 ; | |
20936 | wxMenuItem *arg5 = (wxMenuItem *) NULL ; | |
20937 | PyObject * obj0 = 0 ; | |
994141e6 RD |
20938 | PyObject * obj1 = 0 ; |
20939 | PyObject * obj2 = 0 ; | |
20940 | PyObject * obj3 = 0 ; | |
1e0c8722 RD |
20941 | PyObject * obj4 = 0 ; |
20942 | char *kwnames[] = { | |
20943 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL | |
20944 | }; | |
20945 | ||
994141e6 | 20946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
20947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20949 | arg2 = (int) SWIG_AsInt(obj1); | |
20950 | if (PyErr_Occurred()) SWIG_fail; | |
20951 | arg3 = (int) SWIG_AsInt(obj2); | |
20952 | if (PyErr_Occurred()) SWIG_fail; | |
20953 | arg4 = (int) SWIG_AsInt(obj3); | |
20954 | if (PyErr_Occurred()) SWIG_fail; | |
1e0c8722 | 20955 | if (obj4) { |
15afbcd0 RD |
20956 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenuItem, |
20957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20958 | } |
20959 | { | |
20960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20961 | (arg1)->Set(arg2,arg3,arg4,arg5); | |
20962 | ||
20963 | wxPyEndAllowThreads(__tstate); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | } | |
20966 | Py_INCREF(Py_None); resultobj = Py_None; | |
20967 | return resultobj; | |
20968 | fail: | |
20969 | return NULL; | |
20970 | } | |
20971 | ||
20972 | ||
20973 | static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20974 | PyObject *resultobj; | |
20975 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20976 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
20977 | PyObject * obj0 = 0 ; | |
20978 | PyObject * obj1 = 0 ; | |
20979 | char *kwnames[] = { | |
20980 | (char *) "self",(char *) "item", NULL | |
20981 | }; | |
20982 | ||
20983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20986 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
20987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
20988 | { |
20989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20990 | (arg1)->SetMenuItem(arg2); | |
20991 | ||
20992 | wxPyEndAllowThreads(__tstate); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
20994 | } | |
20995 | Py_INCREF(Py_None); resultobj = Py_None; | |
20996 | return resultobj; | |
20997 | fail: | |
20998 | return NULL; | |
20999 | } | |
21000 | ||
21001 | ||
21002 | static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21003 | PyObject *resultobj; | |
21004 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21005 | wxMenuItem *result; | |
21006 | PyObject * obj0 = 0 ; | |
21007 | char *kwnames[] = { | |
21008 | (char *) "self", NULL | |
21009 | }; | |
21010 | ||
21011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21014 | { |
21015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21016 | result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem(); | |
21017 | ||
21018 | wxPyEndAllowThreads(__tstate); | |
21019 | if (PyErr_Occurred()) SWIG_fail; | |
21020 | } | |
21021 | { | |
21022 | resultobj = wxPyMake_wxObject(result); | |
21023 | } | |
21024 | return resultobj; | |
21025 | fail: | |
21026 | return NULL; | |
21027 | } | |
21028 | ||
21029 | ||
21030 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21031 | PyObject *resultobj; | |
21032 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21033 | int result; | |
21034 | PyObject * obj0 = 0 ; | |
21035 | char *kwnames[] = { | |
21036 | (char *) "self", NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21042 | { |
21043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21044 | result = (int)(arg1)->GetFlags(); | |
21045 | ||
21046 | wxPyEndAllowThreads(__tstate); | |
21047 | if (PyErr_Occurred()) SWIG_fail; | |
21048 | } | |
15afbcd0 | 21049 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21050 | return resultobj; |
21051 | fail: | |
21052 | return NULL; | |
21053 | } | |
21054 | ||
21055 | ||
21056 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21057 | PyObject *resultobj; | |
21058 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21059 | int result; | |
21060 | PyObject * obj0 = 0 ; | |
21061 | char *kwnames[] = { | |
21062 | (char *) "self", NULL | |
21063 | }; | |
21064 | ||
21065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21068 | { |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | result = (int)(arg1)->GetKeyCode(); | |
21071 | ||
21072 | wxPyEndAllowThreads(__tstate); | |
21073 | if (PyErr_Occurred()) SWIG_fail; | |
21074 | } | |
15afbcd0 | 21075 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21076 | return resultobj; |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
21082 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21083 | PyObject *resultobj; | |
21084 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21085 | int result; | |
21086 | PyObject * obj0 = 0 ; | |
21087 | char *kwnames[] = { | |
21088 | (char *) "self", NULL | |
21089 | }; | |
21090 | ||
21091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21094 | { |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | result = (int)(arg1)->GetCommand(); | |
21097 | ||
21098 | wxPyEndAllowThreads(__tstate); | |
21099 | if (PyErr_Occurred()) SWIG_fail; | |
21100 | } | |
15afbcd0 | 21101 | resultobj = SWIG_FromInt((int)result); |
1e0c8722 RD |
21102 | return resultobj; |
21103 | fail: | |
21104 | return NULL; | |
21105 | } | |
21106 | ||
21107 | ||
21108 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
21109 | PyObject *obj; | |
21110 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21111 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21112 | Py_INCREF(obj); | |
21113 | return Py_BuildValue((char *)""); | |
21114 | } | |
21115 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21116 | PyObject *resultobj; | |
21117 | int arg1 ; | |
21118 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21119 | wxAcceleratorTable *result; | |
21120 | PyObject * obj0 = 0 ; | |
21121 | char *kwnames[] = { | |
21122 | (char *) "n", NULL | |
21123 | }; | |
21124 | ||
21125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21126 | { | |
21127 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21128 | if (arg2) arg1 = PyList_Size(obj0); | |
21129 | else arg1 = 0; | |
21130 | } | |
21131 | { | |
21132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21133 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21134 | ||
21135 | wxPyEndAllowThreads(__tstate); | |
21136 | if (PyErr_Occurred()) SWIG_fail; | |
21137 | } | |
15afbcd0 | 21138 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); |
1e0c8722 RD |
21139 | { |
21140 | delete [] arg2; | |
21141 | } | |
21142 | return resultobj; | |
21143 | fail: | |
21144 | { | |
21145 | delete [] arg2; | |
21146 | } | |
21147 | return NULL; | |
21148 | } | |
21149 | ||
21150 | ||
21151 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21152 | PyObject *resultobj; | |
21153 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21154 | PyObject * obj0 = 0 ; | |
21155 | char *kwnames[] = { | |
21156 | (char *) "self", NULL | |
21157 | }; | |
21158 | ||
21159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21162 | { |
21163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21164 | delete arg1; | |
21165 | ||
21166 | wxPyEndAllowThreads(__tstate); | |
21167 | if (PyErr_Occurred()) SWIG_fail; | |
21168 | } | |
21169 | Py_INCREF(Py_None); resultobj = Py_None; | |
21170 | return resultobj; | |
21171 | fail: | |
21172 | return NULL; | |
21173 | } | |
21174 | ||
21175 | ||
21176 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21177 | PyObject *resultobj; | |
21178 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21179 | bool result; | |
21180 | PyObject * obj0 = 0 ; | |
21181 | char *kwnames[] = { | |
21182 | (char *) "self", NULL | |
21183 | }; | |
21184 | ||
21185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, |
21187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1e0c8722 RD |
21188 | { |
21189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21190 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21191 | ||
21192 | wxPyEndAllowThreads(__tstate); | |
21193 | if (PyErr_Occurred()) SWIG_fail; | |
21194 | } | |
4f89f6a3 RD |
21195 | { |
21196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21197 | } | |
1e0c8722 RD |
21198 | return resultobj; |
21199 | fail: | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21205 | PyObject *obj; | |
21206 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21207 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21208 | Py_INCREF(obj); | |
21209 | return Py_BuildValue((char *)""); | |
21210 | } | |
21211 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21212 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21213 | return 1; | |
21214 | } | |
21215 | ||
21216 | ||
21217 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21218 | PyObject *pyobj; | |
21219 | ||
15afbcd0 | 21220 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); |
1e0c8722 RD |
21221 | return pyobj; |
21222 | } | |
21223 | ||
21224 | ||
21225 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21226 | PyObject *resultobj; | |
21227 | wxString *arg1 = 0 ; | |
21228 | wxAcceleratorEntry *result; | |
21229 | bool temp1 = False ; | |
21230 | PyObject * obj0 = 0 ; | |
21231 | char *kwnames[] = { | |
21232 | (char *) "label", NULL | |
21233 | }; | |
21234 | ||
21235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21236 | { | |
21237 | arg1 = wxString_in_helper(obj0); | |
21238 | if (arg1 == NULL) SWIG_fail; | |
21239 | temp1 = True; | |
21240 | } | |
21241 | { | |
21242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21243 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21244 | ||
21245 | wxPyEndAllowThreads(__tstate); | |
21246 | if (PyErr_Occurred()) SWIG_fail; | |
21247 | } | |
15afbcd0 | 21248 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
1e0c8722 RD |
21249 | { |
21250 | if (temp1) | |
21251 | delete arg1; | |
21252 | } | |
21253 | return resultobj; | |
21254 | fail: | |
21255 | { | |
21256 | if (temp1) | |
21257 | delete arg1; | |
21258 | } | |
21259 | return NULL; | |
21260 | } | |
21261 | ||
21262 | ||
e811c8ce RD |
21263 | static int _wrap_PanelNameStr_set(PyObject *_val) { |
21264 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21265 | return 1; | |
21266 | } | |
21267 | ||
21268 | ||
21269 | static PyObject *_wrap_PanelNameStr_get() { | |
21270 | PyObject *pyobj; | |
21271 | ||
21272 | { | |
21273 | #if wxUSE_UNICODE | |
21274 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21275 | #else | |
21276 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21277 | #endif | |
21278 | } | |
21279 | return pyobj; | |
21280 | } | |
21281 | ||
21282 | ||
74a57fcd RD |
21283 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
21284 | PyObject *resultobj; | |
21285 | wxVisualAttributes *result; | |
21286 | char *kwnames[] = { | |
21287 | NULL | |
21288 | }; | |
21289 | ||
21290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21291 | { | |
21292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21293 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21294 | ||
21295 | wxPyEndAllowThreads(__tstate); | |
21296 | if (PyErr_Occurred()) SWIG_fail; | |
21297 | } | |
21298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21299 | return resultobj; | |
21300 | fail: | |
21301 | return NULL; | |
21302 | } | |
21303 | ||
21304 | ||
21305 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21306 | PyObject *resultobj; | |
21307 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21308 | PyObject * obj0 = 0 ; | |
21309 | char *kwnames[] = { | |
21310 | (char *) "self", NULL | |
21311 | }; | |
21312 | ||
21313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21316 | { | |
21317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21318 | delete_wxVisualAttributes(arg1); | |
21319 | ||
21320 | wxPyEndAllowThreads(__tstate); | |
21321 | if (PyErr_Occurred()) SWIG_fail; | |
21322 | } | |
21323 | Py_INCREF(Py_None); resultobj = Py_None; | |
21324 | return resultobj; | |
21325 | fail: | |
21326 | return NULL; | |
21327 | } | |
21328 | ||
21329 | ||
21330 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21331 | PyObject *resultobj; | |
21332 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21333 | wxFont *arg2 = (wxFont *) 0 ; | |
21334 | PyObject * obj0 = 0 ; | |
21335 | PyObject * obj1 = 0 ; | |
21336 | char *kwnames[] = { | |
21337 | (char *) "self",(char *) "font", NULL | |
21338 | }; | |
21339 | ||
21340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21343 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21345 | if (arg1) (arg1)->font = *arg2; | |
21346 | ||
21347 | Py_INCREF(Py_None); resultobj = Py_None; | |
21348 | return resultobj; | |
21349 | fail: | |
21350 | return NULL; | |
21351 | } | |
21352 | ||
21353 | ||
21354 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21355 | PyObject *resultobj; | |
21356 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21357 | wxFont *result; | |
21358 | PyObject * obj0 = 0 ; | |
21359 | char *kwnames[] = { | |
21360 | (char *) "self", NULL | |
21361 | }; | |
21362 | ||
21363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21366 | result = (wxFont *)& ((arg1)->font); | |
21367 | ||
21368 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21369 | return resultobj; | |
21370 | fail: | |
21371 | return NULL; | |
21372 | } | |
21373 | ||
21374 | ||
21375 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21376 | PyObject *resultobj; | |
21377 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21378 | wxColour *arg2 = (wxColour *) 0 ; | |
21379 | PyObject * obj0 = 0 ; | |
21380 | PyObject * obj1 = 0 ; | |
21381 | char *kwnames[] = { | |
21382 | (char *) "self",(char *) "colFg", NULL | |
21383 | }; | |
21384 | ||
21385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21390 | if (arg1) (arg1)->colFg = *arg2; | |
21391 | ||
21392 | Py_INCREF(Py_None); resultobj = Py_None; | |
21393 | return resultobj; | |
21394 | fail: | |
21395 | return NULL; | |
21396 | } | |
21397 | ||
21398 | ||
21399 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21400 | PyObject *resultobj; | |
21401 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21402 | wxColour *result; | |
21403 | PyObject * obj0 = 0 ; | |
21404 | char *kwnames[] = { | |
21405 | (char *) "self", NULL | |
21406 | }; | |
21407 | ||
21408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21411 | result = (wxColour *)& ((arg1)->colFg); | |
21412 | ||
21413 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21414 | return resultobj; | |
21415 | fail: | |
21416 | return NULL; | |
21417 | } | |
21418 | ||
21419 | ||
21420 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21421 | PyObject *resultobj; | |
21422 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21423 | wxColour *arg2 = (wxColour *) 0 ; | |
21424 | PyObject * obj0 = 0 ; | |
21425 | PyObject * obj1 = 0 ; | |
21426 | char *kwnames[] = { | |
21427 | (char *) "self",(char *) "colBg", NULL | |
21428 | }; | |
21429 | ||
21430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21433 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21435 | if (arg1) (arg1)->colBg = *arg2; | |
21436 | ||
21437 | Py_INCREF(Py_None); resultobj = Py_None; | |
21438 | return resultobj; | |
21439 | fail: | |
21440 | return NULL; | |
21441 | } | |
21442 | ||
21443 | ||
21444 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21445 | PyObject *resultobj; | |
21446 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21447 | wxColour *result; | |
21448 | PyObject * obj0 = 0 ; | |
21449 | char *kwnames[] = { | |
21450 | (char *) "self", NULL | |
21451 | }; | |
21452 | ||
21453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21456 | result = (wxColour *)& ((arg1)->colBg); | |
21457 | ||
21458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21459 | return resultobj; | |
21460 | fail: | |
21461 | return NULL; | |
21462 | } | |
21463 | ||
21464 | ||
21465 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21466 | PyObject *obj; | |
21467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21468 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21469 | Py_INCREF(obj); | |
21470 | return Py_BuildValue((char *)""); | |
21471 | } | |
d14a1e28 RD |
21472 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { |
21473 | PyObject *resultobj; | |
21474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
74a57fcd | 21475 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
21476 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21477 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21478 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21479 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21480 | long arg5 = (long) 0 ; | |
21481 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21482 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21483 | wxWindow *result; | |
21484 | wxPoint temp3 ; | |
21485 | wxSize temp4 ; | |
e811c8ce | 21486 | bool temp6 = False ; |
d14a1e28 | 21487 | PyObject * obj0 = 0 ; |
994141e6 | 21488 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21489 | PyObject * obj2 = 0 ; |
21490 | PyObject * obj3 = 0 ; | |
994141e6 | 21491 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21492 | PyObject * obj5 = 0 ; |
21493 | char *kwnames[] = { | |
21494 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21495 | }; | |
21496 | ||
74a57fcd | 21497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
21498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21500 | if (obj1) { |
21501 | arg2 = (int const) SWIG_AsInt(obj1); | |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
d14a1e28 RD |
21504 | if (obj2) { |
21505 | { | |
21506 | arg3 = &temp3; | |
21507 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21508 | } | |
21509 | } | |
21510 | if (obj3) { | |
21511 | { | |
21512 | arg4 = &temp4; | |
21513 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21514 | } | |
21515 | } | |
994141e6 | 21516 | if (obj4) { |
15afbcd0 RD |
21517 | arg5 = (long) SWIG_AsLong(obj4); |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21519 | } |
d14a1e28 RD |
21520 | if (obj5) { |
21521 | { | |
21522 | arg6 = wxString_in_helper(obj5); | |
21523 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 21524 | temp6 = True; |
d14a1e28 RD |
21525 | } |
21526 | } | |
21527 | { | |
21528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21529 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21530 | ||
21531 | wxPyEndAllowThreads(__tstate); | |
21532 | if (PyErr_Occurred()) SWIG_fail; | |
21533 | } | |
21534 | { | |
21535 | resultobj = wxPyMake_wxObject(result); | |
21536 | } | |
21537 | { | |
21538 | if (temp6) | |
21539 | delete arg6; | |
21540 | } | |
21541 | return resultobj; | |
21542 | fail: | |
21543 | { | |
21544 | if (temp6) | |
21545 | delete arg6; | |
21546 | } | |
21547 | return NULL; | |
21548 | } | |
21549 | ||
21550 | ||
21551 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21552 | PyObject *resultobj; | |
21553 | wxWindow *result; | |
21554 | char *kwnames[] = { | |
21555 | NULL | |
21556 | }; | |
21557 | ||
21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21559 | { | |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | result = (wxWindow *)new wxWindow(); | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | { | |
21567 | resultobj = wxPyMake_wxObject(result); | |
21568 | } | |
21569 | return resultobj; | |
21570 | fail: | |
21571 | return NULL; | |
21572 | } | |
21573 | ||
21574 | ||
21575 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21576 | PyObject *resultobj; | |
21577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
74a57fcd | 21579 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
21580 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21581 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21582 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21583 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21584 | long arg6 = (long) 0 ; | |
21585 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21586 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21587 | bool result; | |
21588 | wxPoint temp4 ; | |
21589 | wxSize temp5 ; | |
e811c8ce | 21590 | bool temp7 = False ; |
d14a1e28 RD |
21591 | PyObject * obj0 = 0 ; |
21592 | PyObject * obj1 = 0 ; | |
994141e6 | 21593 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21594 | PyObject * obj3 = 0 ; |
21595 | PyObject * obj4 = 0 ; | |
994141e6 | 21596 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21597 | PyObject * obj6 = 0 ; |
21598 | char *kwnames[] = { | |
21599 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21600 | }; | |
21601 | ||
74a57fcd | 21602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21605 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
74a57fcd RD |
21607 | if (obj2) { |
21608 | arg3 = (int const) SWIG_AsInt(obj2); | |
21609 | if (PyErr_Occurred()) SWIG_fail; | |
21610 | } | |
d14a1e28 RD |
21611 | if (obj3) { |
21612 | { | |
21613 | arg4 = &temp4; | |
21614 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21615 | } | |
21616 | } | |
21617 | if (obj4) { | |
21618 | { | |
21619 | arg5 = &temp5; | |
21620 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21621 | } | |
21622 | } | |
994141e6 | 21623 | if (obj5) { |
15afbcd0 RD |
21624 | arg6 = (long) SWIG_AsLong(obj5); |
21625 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21626 | } |
d14a1e28 RD |
21627 | if (obj6) { |
21628 | { | |
21629 | arg7 = wxString_in_helper(obj6); | |
21630 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21631 | temp7 = True; |
d14a1e28 RD |
21632 | } |
21633 | } | |
21634 | { | |
21635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21636 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21637 | ||
21638 | wxPyEndAllowThreads(__tstate); | |
21639 | if (PyErr_Occurred()) SWIG_fail; | |
21640 | } | |
4f89f6a3 RD |
21641 | { |
21642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21643 | } | |
d14a1e28 RD |
21644 | { |
21645 | if (temp7) | |
21646 | delete arg7; | |
21647 | } | |
21648 | return resultobj; | |
21649 | fail: | |
21650 | { | |
21651 | if (temp7) | |
21652 | delete arg7; | |
21653 | } | |
21654 | return NULL; | |
21655 | } | |
21656 | ||
21657 | ||
21658 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21659 | PyObject *resultobj; | |
21660 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21661 | bool arg2 = (bool) False ; |
d14a1e28 RD |
21662 | bool result; |
21663 | PyObject * obj0 = 0 ; | |
21664 | PyObject * obj1 = 0 ; | |
21665 | char *kwnames[] = { | |
21666 | (char *) "self",(char *) "force", NULL | |
21667 | }; | |
21668 | ||
21669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 21672 | if (obj1) { |
15afbcd0 RD |
21673 | arg2 = (bool) SWIG_AsBool(obj1); |
21674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21675 | } |
21676 | { | |
21677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21678 | result = (bool)(arg1)->Close(arg2); | |
21679 | ||
21680 | wxPyEndAllowThreads(__tstate); | |
21681 | if (PyErr_Occurred()) SWIG_fail; | |
21682 | } | |
4f89f6a3 RD |
21683 | { |
21684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21685 | } | |
d14a1e28 RD |
21686 | return resultobj; |
21687 | fail: | |
21688 | return NULL; | |
21689 | } | |
21690 | ||
21691 | ||
21692 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21693 | PyObject *resultobj; | |
21694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21695 | bool result; | |
21696 | PyObject * obj0 = 0 ; | |
21697 | char *kwnames[] = { | |
21698 | (char *) "self", NULL | |
21699 | }; | |
21700 | ||
21701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21704 | { |
21705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21706 | result = (bool)(arg1)->Destroy(); | |
21707 | ||
21708 | wxPyEndAllowThreads(__tstate); | |
21709 | if (PyErr_Occurred()) SWIG_fail; | |
21710 | } | |
4f89f6a3 RD |
21711 | { |
21712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21713 | } | |
d14a1e28 RD |
21714 | return resultobj; |
21715 | fail: | |
21716 | return NULL; | |
21717 | } | |
21718 | ||
21719 | ||
21720 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21721 | PyObject *resultobj; | |
21722 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21723 | bool result; | |
21724 | PyObject * obj0 = 0 ; | |
21725 | char *kwnames[] = { | |
21726 | (char *) "self", NULL | |
21727 | }; | |
21728 | ||
21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21732 | { |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | result = (bool)(arg1)->DestroyChildren(); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
4f89f6a3 RD |
21739 | { |
21740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21741 | } | |
d14a1e28 RD |
21742 | return resultobj; |
21743 | fail: | |
21744 | return NULL; | |
21745 | } | |
21746 | ||
21747 | ||
21748 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21749 | PyObject *resultobj; | |
21750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21751 | bool result; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | char *kwnames[] = { | |
21754 | (char *) "self", NULL | |
21755 | }; | |
21756 | ||
21757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21760 | { |
21761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21762 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21763 | ||
21764 | wxPyEndAllowThreads(__tstate); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | } | |
4f89f6a3 RD |
21767 | { |
21768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21769 | } | |
d14a1e28 RD |
21770 | return resultobj; |
21771 | fail: | |
21772 | return NULL; | |
21773 | } | |
21774 | ||
21775 | ||
21776 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21777 | PyObject *resultobj; | |
21778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21779 | wxString *arg2 = 0 ; | |
e811c8ce | 21780 | bool temp2 = False ; |
d14a1e28 RD |
21781 | PyObject * obj0 = 0 ; |
21782 | PyObject * obj1 = 0 ; | |
21783 | char *kwnames[] = { | |
21784 | (char *) "self",(char *) "title", NULL | |
21785 | }; | |
21786 | ||
21787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21790 | { |
21791 | arg2 = wxString_in_helper(obj1); | |
21792 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21793 | temp2 = True; |
d14a1e28 RD |
21794 | } |
21795 | { | |
21796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21797 | (arg1)->SetTitle((wxString const &)*arg2); | |
21798 | ||
21799 | wxPyEndAllowThreads(__tstate); | |
21800 | if (PyErr_Occurred()) SWIG_fail; | |
21801 | } | |
21802 | Py_INCREF(Py_None); resultobj = Py_None; | |
21803 | { | |
21804 | if (temp2) | |
21805 | delete arg2; | |
21806 | } | |
21807 | return resultobj; | |
21808 | fail: | |
21809 | { | |
21810 | if (temp2) | |
21811 | delete arg2; | |
21812 | } | |
21813 | return NULL; | |
21814 | } | |
21815 | ||
21816 | ||
21817 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21818 | PyObject *resultobj; | |
21819 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21820 | wxString result; | |
21821 | PyObject * obj0 = 0 ; | |
21822 | char *kwnames[] = { | |
21823 | (char *) "self", NULL | |
21824 | }; | |
21825 | ||
21826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21829 | { |
21830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21831 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21832 | ||
21833 | wxPyEndAllowThreads(__tstate); | |
21834 | if (PyErr_Occurred()) SWIG_fail; | |
21835 | } | |
21836 | { | |
21837 | #if wxUSE_UNICODE | |
21838 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21839 | #else | |
21840 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21841 | #endif | |
21842 | } | |
21843 | return resultobj; | |
21844 | fail: | |
21845 | return NULL; | |
21846 | } | |
21847 | ||
21848 | ||
21849 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21850 | PyObject *resultobj; | |
21851 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21852 | wxString *arg2 = 0 ; | |
e811c8ce | 21853 | bool temp2 = False ; |
d14a1e28 RD |
21854 | PyObject * obj0 = 0 ; |
21855 | PyObject * obj1 = 0 ; | |
21856 | char *kwnames[] = { | |
21857 | (char *) "self",(char *) "label", NULL | |
21858 | }; | |
21859 | ||
21860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21863 | { |
21864 | arg2 = wxString_in_helper(obj1); | |
21865 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21866 | temp2 = True; |
d14a1e28 RD |
21867 | } |
21868 | { | |
21869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21870 | (arg1)->SetLabel((wxString const &)*arg2); | |
21871 | ||
21872 | wxPyEndAllowThreads(__tstate); | |
21873 | if (PyErr_Occurred()) SWIG_fail; | |
21874 | } | |
21875 | Py_INCREF(Py_None); resultobj = Py_None; | |
21876 | { | |
21877 | if (temp2) | |
21878 | delete arg2; | |
21879 | } | |
21880 | return resultobj; | |
21881 | fail: | |
21882 | { | |
21883 | if (temp2) | |
21884 | delete arg2; | |
21885 | } | |
21886 | return NULL; | |
21887 | } | |
21888 | ||
21889 | ||
21890 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21891 | PyObject *resultobj; | |
21892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21893 | wxString result; | |
21894 | PyObject * obj0 = 0 ; | |
21895 | char *kwnames[] = { | |
21896 | (char *) "self", NULL | |
21897 | }; | |
21898 | ||
21899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21902 | { |
21903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21904 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21905 | ||
21906 | wxPyEndAllowThreads(__tstate); | |
21907 | if (PyErr_Occurred()) SWIG_fail; | |
21908 | } | |
21909 | { | |
21910 | #if wxUSE_UNICODE | |
21911 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21912 | #else | |
21913 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21914 | #endif | |
21915 | } | |
21916 | return resultobj; | |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
21922 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21923 | PyObject *resultobj; | |
21924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21925 | wxString *arg2 = 0 ; | |
e811c8ce | 21926 | bool temp2 = False ; |
d14a1e28 RD |
21927 | PyObject * obj0 = 0 ; |
21928 | PyObject * obj1 = 0 ; | |
21929 | char *kwnames[] = { | |
21930 | (char *) "self",(char *) "name", NULL | |
21931 | }; | |
21932 | ||
21933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21936 | { |
21937 | arg2 = wxString_in_helper(obj1); | |
21938 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21939 | temp2 = True; |
d14a1e28 RD |
21940 | } |
21941 | { | |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | (arg1)->SetName((wxString const &)*arg2); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
21948 | Py_INCREF(Py_None); resultobj = Py_None; | |
21949 | { | |
21950 | if (temp2) | |
21951 | delete arg2; | |
21952 | } | |
21953 | return resultobj; | |
21954 | fail: | |
21955 | { | |
21956 | if (temp2) | |
21957 | delete arg2; | |
21958 | } | |
21959 | return NULL; | |
21960 | } | |
21961 | ||
21962 | ||
21963 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21964 | PyObject *resultobj; | |
21965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21966 | wxString result; | |
21967 | PyObject * obj0 = 0 ; | |
21968 | char *kwnames[] = { | |
21969 | (char *) "self", NULL | |
21970 | }; | |
21971 | ||
21972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21975 | { |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21977 | result = ((wxWindow const *)arg1)->GetName(); | |
21978 | ||
21979 | wxPyEndAllowThreads(__tstate); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | { | |
21983 | #if wxUSE_UNICODE | |
21984 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21985 | #else | |
21986 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21987 | #endif | |
21988 | } | |
21989 | return resultobj; | |
21990 | fail: | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
4276dc52 RD |
21995 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { |
21996 | PyObject *resultobj; | |
21997 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21998 | int arg2 ; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | PyObject * obj1 = 0 ; | |
22001 | char *kwnames[] = { | |
22002 | (char *) "self",(char *) "variant", NULL | |
22003 | }; | |
22004 | ||
22005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22008 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | Py_INCREF(Py_None); resultobj = Py_None; | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
22024 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22025 | PyObject *resultobj; | |
22026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22027 | int result; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | char *kwnames[] = { | |
22030 | (char *) "self", NULL | |
22031 | }; | |
22032 | ||
22033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22036 | { | |
22037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22038 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22039 | ||
22040 | wxPyEndAllowThreads(__tstate); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | } | |
22043 | resultobj = SWIG_FromInt((int)result); | |
22044 | return resultobj; | |
22045 | fail: | |
22046 | return NULL; | |
22047 | } | |
22048 | ||
22049 | ||
d14a1e28 RD |
22050 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
22051 | PyObject *resultobj; | |
22052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22053 | int arg2 ; |
d14a1e28 | 22054 | PyObject * obj0 = 0 ; |
994141e6 | 22055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22056 | char *kwnames[] = { |
22057 | (char *) "self",(char *) "winid", NULL | |
22058 | }; | |
22059 | ||
994141e6 | 22060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22063 | arg2 = (int) SWIG_AsInt(obj1); | |
22064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22065 | { |
22066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22067 | (arg1)->SetId(arg2); | |
22068 | ||
22069 | wxPyEndAllowThreads(__tstate); | |
22070 | if (PyErr_Occurred()) SWIG_fail; | |
22071 | } | |
22072 | Py_INCREF(Py_None); resultobj = Py_None; | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | return NULL; | |
22076 | } | |
22077 | ||
22078 | ||
22079 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22080 | PyObject *resultobj; | |
22081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 22082 | int result; |
d14a1e28 RD |
22083 | PyObject * obj0 = 0 ; |
22084 | char *kwnames[] = { | |
22085 | (char *) "self", NULL | |
22086 | }; | |
22087 | ||
22088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22091 | { |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22093 | result = (int)((wxWindow const *)arg1)->GetId(); |
d14a1e28 RD |
22094 | |
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
15afbcd0 | 22098 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22099 | return resultobj; |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | int result; | |
22108 | char *kwnames[] = { | |
22109 | NULL | |
22110 | }; | |
22111 | ||
22112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22113 | { | |
22114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22115 | result = (int)wxWindow::NewControlId(); | |
22116 | ||
22117 | wxPyEndAllowThreads(__tstate); | |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | } | |
15afbcd0 | 22120 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22121 | return resultobj; |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
22127 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22128 | PyObject *resultobj; | |
22129 | int arg1 ; | |
22130 | int result; | |
994141e6 | 22131 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22132 | char *kwnames[] = { |
22133 | (char *) "winid", NULL | |
22134 | }; | |
22135 | ||
994141e6 | 22136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22137 | arg1 = (int) SWIG_AsInt(obj0); |
22138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22139 | { |
22140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22141 | result = (int)wxWindow::NextControlId(arg1); | |
22142 | ||
22143 | wxPyEndAllowThreads(__tstate); | |
22144 | if (PyErr_Occurred()) SWIG_fail; | |
22145 | } | |
15afbcd0 | 22146 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22147 | return resultobj; |
22148 | fail: | |
22149 | return NULL; | |
22150 | } | |
22151 | ||
22152 | ||
22153 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22154 | PyObject *resultobj; | |
22155 | int arg1 ; | |
22156 | int result; | |
994141e6 | 22157 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
22158 | char *kwnames[] = { |
22159 | (char *) "winid", NULL | |
22160 | }; | |
22161 | ||
994141e6 | 22162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
22163 | arg1 = (int) SWIG_AsInt(obj0); |
22164 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22165 | { |
22166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22167 | result = (int)wxWindow::PrevControlId(arg1); | |
22168 | ||
22169 | wxPyEndAllowThreads(__tstate); | |
22170 | if (PyErr_Occurred()) SWIG_fail; | |
22171 | } | |
15afbcd0 | 22172 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22173 | return resultobj; |
22174 | fail: | |
22175 | return NULL; | |
22176 | } | |
22177 | ||
22178 | ||
22179 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22180 | PyObject *resultobj; | |
22181 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22182 | wxSize *arg2 = 0 ; | |
22183 | wxSize temp2 ; | |
22184 | PyObject * obj0 = 0 ; | |
22185 | PyObject * obj1 = 0 ; | |
22186 | char *kwnames[] = { | |
22187 | (char *) "self",(char *) "size", NULL | |
22188 | }; | |
22189 | ||
22190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22193 | { |
22194 | arg2 = &temp2; | |
22195 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22196 | } | |
22197 | { | |
22198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22199 | (arg1)->SetSize((wxSize const &)*arg2); | |
22200 | ||
22201 | wxPyEndAllowThreads(__tstate); | |
22202 | if (PyErr_Occurred()) SWIG_fail; | |
22203 | } | |
22204 | Py_INCREF(Py_None); resultobj = Py_None; | |
22205 | return resultobj; | |
22206 | fail: | |
22207 | return NULL; | |
22208 | } | |
22209 | ||
22210 | ||
22211 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22212 | PyObject *resultobj; | |
22213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22214 | int arg2 ; | |
22215 | int arg3 ; | |
22216 | int arg4 ; | |
22217 | int arg5 ; | |
22218 | int arg6 = (int) wxSIZE_AUTO ; | |
22219 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22220 | PyObject * obj1 = 0 ; |
22221 | PyObject * obj2 = 0 ; | |
22222 | PyObject * obj3 = 0 ; | |
22223 | PyObject * obj4 = 0 ; | |
22224 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
22225 | char *kwnames[] = { |
22226 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22227 | }; | |
22228 | ||
994141e6 | 22229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
22230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22232 | arg2 = (int) SWIG_AsInt(obj1); | |
22233 | if (PyErr_Occurred()) SWIG_fail; | |
22234 | arg3 = (int) SWIG_AsInt(obj2); | |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | arg4 = (int) SWIG_AsInt(obj3); | |
22237 | if (PyErr_Occurred()) SWIG_fail; | |
22238 | arg5 = (int) SWIG_AsInt(obj4); | |
22239 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22240 | if (obj5) { |
15afbcd0 RD |
22241 | arg6 = (int) SWIG_AsInt(obj5); |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22243 | } |
d14a1e28 RD |
22244 | { |
22245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22246 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22247 | ||
22248 | wxPyEndAllowThreads(__tstate); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | } | |
22251 | Py_INCREF(Py_None); resultobj = Py_None; | |
22252 | return resultobj; | |
22253 | fail: | |
22254 | return NULL; | |
22255 | } | |
22256 | ||
22257 | ||
22258 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22259 | PyObject *resultobj; | |
22260 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22261 | wxRect *arg2 = 0 ; | |
22262 | int arg3 = (int) wxSIZE_AUTO ; | |
22263 | wxRect temp2 ; | |
22264 | PyObject * obj0 = 0 ; | |
22265 | PyObject * obj1 = 0 ; | |
994141e6 | 22266 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22267 | char *kwnames[] = { |
22268 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22269 | }; | |
22270 | ||
994141e6 | 22271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22274 | { |
22275 | arg2 = &temp2; | |
22276 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22277 | } | |
994141e6 | 22278 | if (obj2) { |
15afbcd0 RD |
22279 | arg3 = (int) SWIG_AsInt(obj2); |
22280 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22281 | } |
d14a1e28 RD |
22282 | { |
22283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22284 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22285 | ||
22286 | wxPyEndAllowThreads(__tstate); | |
22287 | if (PyErr_Occurred()) SWIG_fail; | |
22288 | } | |
22289 | Py_INCREF(Py_None); resultobj = Py_None; | |
22290 | return resultobj; | |
22291 | fail: | |
22292 | return NULL; | |
22293 | } | |
22294 | ||
22295 | ||
22296 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22297 | PyObject *resultobj; | |
22298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22299 | int arg2 ; | |
22300 | int arg3 ; | |
22301 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22302 | PyObject * obj1 = 0 ; |
22303 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22304 | char *kwnames[] = { |
22305 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22306 | }; | |
22307 | ||
994141e6 | 22308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22311 | arg2 = (int) SWIG_AsInt(obj1); | |
22312 | if (PyErr_Occurred()) SWIG_fail; | |
22313 | arg3 = (int) SWIG_AsInt(obj2); | |
22314 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22315 | { |
22316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22317 | (arg1)->SetSize(arg2,arg3); | |
22318 | ||
22319 | wxPyEndAllowThreads(__tstate); | |
22320 | if (PyErr_Occurred()) SWIG_fail; | |
22321 | } | |
22322 | Py_INCREF(Py_None); resultobj = Py_None; | |
22323 | return resultobj; | |
22324 | fail: | |
22325 | return NULL; | |
22326 | } | |
22327 | ||
22328 | ||
22329 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22330 | PyObject *resultobj; | |
22331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22332 | wxPoint *arg2 = 0 ; | |
22333 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22334 | wxPoint temp2 ; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | PyObject * obj1 = 0 ; | |
994141e6 | 22337 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22338 | char *kwnames[] = { |
22339 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22340 | }; | |
22341 | ||
994141e6 | 22342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22345 | { |
22346 | arg2 = &temp2; | |
22347 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22348 | } | |
994141e6 | 22349 | if (obj2) { |
15afbcd0 RD |
22350 | arg3 = (int) SWIG_AsInt(obj2); |
22351 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22352 | } |
d14a1e28 RD |
22353 | { |
22354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22355 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22356 | ||
22357 | wxPyEndAllowThreads(__tstate); | |
22358 | if (PyErr_Occurred()) SWIG_fail; | |
22359 | } | |
22360 | Py_INCREF(Py_None); resultobj = Py_None; | |
22361 | return resultobj; | |
22362 | fail: | |
22363 | return NULL; | |
22364 | } | |
22365 | ||
22366 | ||
22367 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22368 | PyObject *resultobj; | |
22369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22370 | int arg2 ; | |
22371 | int arg3 ; | |
22372 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22373 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22374 | PyObject * obj1 = 0 ; |
22375 | PyObject * obj2 = 0 ; | |
22376 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22377 | char *kwnames[] = { |
22378 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22379 | }; | |
22380 | ||
994141e6 | 22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22384 | arg2 = (int) SWIG_AsInt(obj1); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | arg3 = (int) SWIG_AsInt(obj2); | |
22387 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22388 | if (obj3) { |
15afbcd0 RD |
22389 | arg4 = (int) SWIG_AsInt(obj3); |
22390 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22391 | } |
d14a1e28 RD |
22392 | { |
22393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22394 | (arg1)->Move(arg2,arg3,arg4); | |
22395 | ||
22396 | wxPyEndAllowThreads(__tstate); | |
22397 | if (PyErr_Occurred()) SWIG_fail; | |
22398 | } | |
22399 | Py_INCREF(Py_None); resultobj = Py_None; | |
22400 | return resultobj; | |
22401 | fail: | |
22402 | return NULL; | |
22403 | } | |
22404 | ||
22405 | ||
22406 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22407 | PyObject *resultobj; | |
22408 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22409 | PyObject * obj0 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22417 | { |
22418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22419 | (arg1)->Raise(); | |
22420 | ||
22421 | wxPyEndAllowThreads(__tstate); | |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
22423 | } | |
22424 | Py_INCREF(Py_None); resultobj = Py_None; | |
22425 | return resultobj; | |
22426 | fail: | |
22427 | return NULL; | |
22428 | } | |
22429 | ||
22430 | ||
22431 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22432 | PyObject *resultobj; | |
22433 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22434 | PyObject * obj0 = 0 ; | |
22435 | char *kwnames[] = { | |
22436 | (char *) "self", NULL | |
22437 | }; | |
22438 | ||
22439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22442 | { |
22443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22444 | (arg1)->Lower(); | |
22445 | ||
22446 | wxPyEndAllowThreads(__tstate); | |
22447 | if (PyErr_Occurred()) SWIG_fail; | |
22448 | } | |
22449 | Py_INCREF(Py_None); resultobj = Py_None; | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | return NULL; | |
22453 | } | |
22454 | ||
22455 | ||
22456 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22457 | PyObject *resultobj; | |
22458 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22459 | wxSize *arg2 = 0 ; | |
22460 | wxSize temp2 ; | |
22461 | PyObject * obj0 = 0 ; | |
22462 | PyObject * obj1 = 0 ; | |
22463 | char *kwnames[] = { | |
22464 | (char *) "self",(char *) "size", NULL | |
22465 | }; | |
22466 | ||
22467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22470 | { |
22471 | arg2 = &temp2; | |
22472 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22473 | } | |
22474 | { | |
22475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22476 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22477 | ||
22478 | wxPyEndAllowThreads(__tstate); | |
22479 | if (PyErr_Occurred()) SWIG_fail; | |
22480 | } | |
22481 | Py_INCREF(Py_None); resultobj = Py_None; | |
22482 | return resultobj; | |
22483 | fail: | |
22484 | return NULL; | |
22485 | } | |
22486 | ||
22487 | ||
22488 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22489 | PyObject *resultobj; | |
22490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22491 | int arg2 ; | |
22492 | int arg3 ; | |
22493 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22494 | PyObject * obj1 = 0 ; |
22495 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22496 | char *kwnames[] = { |
22497 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22498 | }; | |
22499 | ||
994141e6 | 22500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22503 | arg2 = (int) SWIG_AsInt(obj1); | |
22504 | if (PyErr_Occurred()) SWIG_fail; | |
22505 | arg3 = (int) SWIG_AsInt(obj2); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22507 | { |
22508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22509 | (arg1)->SetClientSize(arg2,arg3); | |
22510 | ||
22511 | wxPyEndAllowThreads(__tstate); | |
22512 | if (PyErr_Occurred()) SWIG_fail; | |
22513 | } | |
22514 | Py_INCREF(Py_None); resultobj = Py_None; | |
22515 | return resultobj; | |
22516 | fail: | |
22517 | return NULL; | |
22518 | } | |
22519 | ||
22520 | ||
22521 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22522 | PyObject *resultobj; | |
22523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22524 | wxRect *arg2 = 0 ; | |
22525 | wxRect temp2 ; | |
22526 | PyObject * obj0 = 0 ; | |
22527 | PyObject * obj1 = 0 ; | |
22528 | char *kwnames[] = { | |
22529 | (char *) "self",(char *) "rect", NULL | |
22530 | }; | |
22531 | ||
22532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22535 | { |
22536 | arg2 = &temp2; | |
22537 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22538 | } | |
22539 | { | |
22540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22541 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22542 | ||
22543 | wxPyEndAllowThreads(__tstate); | |
22544 | if (PyErr_Occurred()) SWIG_fail; | |
22545 | } | |
22546 | Py_INCREF(Py_None); resultobj = Py_None; | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
22553 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj; | |
22555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22556 | wxPoint result; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22565 | { |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22567 | result = (arg1)->GetPosition(); |
d14a1e28 RD |
22568 | |
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
22572 | { | |
22573 | wxPoint * resultptr; | |
22574 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22576 | } |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22586 | int *arg2 = (int *) 0 ; | |
22587 | int *arg3 = (int *) 0 ; | |
22588 | int temp2 ; | |
22589 | int temp3 ; | |
22590 | PyObject * obj0 = 0 ; | |
22591 | char *kwnames[] = { | |
22592 | (char *) "self", NULL | |
22593 | }; | |
22594 | ||
22595 | arg2 = &temp2; | |
22596 | arg3 = &temp3; | |
22597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22600 | { |
22601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 22602 | (arg1)->GetPosition(arg2,arg3); |
d14a1e28 RD |
22603 | |
22604 | wxPyEndAllowThreads(__tstate); | |
22605 | if (PyErr_Occurred()) SWIG_fail; | |
22606 | } | |
22607 | Py_INCREF(Py_None); resultobj = Py_None; | |
22608 | { | |
22609 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22610 | resultobj = t_output_helper(resultobj,o); | |
22611 | } | |
22612 | { | |
22613 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22614 | resultobj = t_output_helper(resultobj,o); | |
22615 | } | |
22616 | return resultobj; | |
22617 | fail: | |
22618 | return NULL; | |
22619 | } | |
22620 | ||
22621 | ||
22622 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22623 | PyObject *resultobj; | |
22624 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22625 | wxSize result; | |
22626 | PyObject * obj0 = 0 ; | |
22627 | char *kwnames[] = { | |
22628 | (char *) "self", NULL | |
22629 | }; | |
22630 | ||
22631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22634 | { |
22635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22636 | result = ((wxWindow const *)arg1)->GetSize(); | |
22637 | ||
22638 | wxPyEndAllowThreads(__tstate); | |
22639 | if (PyErr_Occurred()) SWIG_fail; | |
22640 | } | |
22641 | { | |
22642 | wxSize * resultptr; | |
22643 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22645 | } |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
22652 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22653 | PyObject *resultobj; | |
22654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22655 | int *arg2 = (int *) 0 ; | |
22656 | int *arg3 = (int *) 0 ; | |
22657 | int temp2 ; | |
22658 | int temp3 ; | |
22659 | PyObject * obj0 = 0 ; | |
22660 | char *kwnames[] = { | |
22661 | (char *) "self", NULL | |
22662 | }; | |
22663 | ||
22664 | arg2 = &temp2; | |
22665 | arg3 = &temp3; | |
22666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22669 | { |
22670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22671 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22672 | ||
22673 | wxPyEndAllowThreads(__tstate); | |
22674 | if (PyErr_Occurred()) SWIG_fail; | |
22675 | } | |
22676 | Py_INCREF(Py_None); resultobj = Py_None; | |
22677 | { | |
22678 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22679 | resultobj = t_output_helper(resultobj,o); | |
22680 | } | |
22681 | { | |
22682 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22683 | resultobj = t_output_helper(resultobj,o); | |
22684 | } | |
22685 | return resultobj; | |
22686 | fail: | |
22687 | return NULL; | |
22688 | } | |
22689 | ||
22690 | ||
22691 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22692 | PyObject *resultobj; | |
22693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22694 | wxRect result; | |
22695 | PyObject * obj0 = 0 ; | |
22696 | char *kwnames[] = { | |
22697 | (char *) "self", NULL | |
22698 | }; | |
22699 | ||
22700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22703 | { |
22704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22705 | result = ((wxWindow const *)arg1)->GetRect(); | |
22706 | ||
22707 | wxPyEndAllowThreads(__tstate); | |
22708 | if (PyErr_Occurred()) SWIG_fail; | |
22709 | } | |
22710 | { | |
22711 | wxRect * resultptr; | |
22712 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22713 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22714 | } |
22715 | return resultobj; | |
22716 | fail: | |
22717 | return NULL; | |
22718 | } | |
22719 | ||
22720 | ||
22721 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22724 | wxSize result; | |
22725 | PyObject * obj0 = 0 ; | |
22726 | char *kwnames[] = { | |
22727 | (char *) "self", NULL | |
22728 | }; | |
22729 | ||
22730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22733 | { |
22734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22735 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22736 | ||
22737 | wxPyEndAllowThreads(__tstate); | |
22738 | if (PyErr_Occurred()) SWIG_fail; | |
22739 | } | |
22740 | { | |
22741 | wxSize * resultptr; | |
22742 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22744 | } |
22745 | return resultobj; | |
22746 | fail: | |
22747 | return NULL; | |
22748 | } | |
22749 | ||
22750 | ||
22751 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22752 | PyObject *resultobj; | |
22753 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22754 | int *arg2 = (int *) 0 ; | |
22755 | int *arg3 = (int *) 0 ; | |
22756 | int temp2 ; | |
22757 | int temp3 ; | |
22758 | PyObject * obj0 = 0 ; | |
22759 | char *kwnames[] = { | |
22760 | (char *) "self", NULL | |
22761 | }; | |
22762 | ||
22763 | arg2 = &temp2; | |
22764 | arg3 = &temp3; | |
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22768 | { |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22771 | ||
22772 | wxPyEndAllowThreads(__tstate); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | } | |
22775 | Py_INCREF(Py_None); resultobj = Py_None; | |
22776 | { | |
22777 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22778 | resultobj = t_output_helper(resultobj,o); | |
22779 | } | |
22780 | { | |
22781 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22782 | resultobj = t_output_helper(resultobj,o); | |
22783 | } | |
22784 | return resultobj; | |
22785 | fail: | |
22786 | return NULL; | |
22787 | } | |
22788 | ||
22789 | ||
22790 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22791 | PyObject *resultobj; | |
22792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22793 | wxPoint result; | |
22794 | PyObject * obj0 = 0 ; | |
22795 | char *kwnames[] = { | |
22796 | (char *) "self", NULL | |
22797 | }; | |
22798 | ||
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22802 | { |
22803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22804 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22805 | ||
22806 | wxPyEndAllowThreads(__tstate); | |
22807 | if (PyErr_Occurred()) SWIG_fail; | |
22808 | } | |
22809 | { | |
22810 | wxPoint * resultptr; | |
22811 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22812 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22813 | } |
22814 | return resultobj; | |
22815 | fail: | |
22816 | return NULL; | |
22817 | } | |
22818 | ||
22819 | ||
22820 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22821 | PyObject *resultobj; | |
22822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22823 | wxRect result; | |
22824 | PyObject * obj0 = 0 ; | |
22825 | char *kwnames[] = { | |
22826 | (char *) "self", NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22832 | { |
22833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22834 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22835 | ||
22836 | wxPyEndAllowThreads(__tstate); | |
22837 | if (PyErr_Occurred()) SWIG_fail; | |
22838 | } | |
22839 | { | |
22840 | wxRect * resultptr; | |
22841 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22843 | } |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
22850 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22851 | PyObject *resultobj; | |
22852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22853 | wxSize result; | |
22854 | PyObject * obj0 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22862 | { |
22863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22864 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22865 | ||
22866 | wxPyEndAllowThreads(__tstate); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
22869 | { | |
22870 | wxSize * resultptr; | |
22871 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22873 | } |
22874 | return resultobj; | |
22875 | fail: | |
22876 | return NULL; | |
22877 | } | |
22878 | ||
22879 | ||
22880 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22881 | PyObject *resultobj; | |
22882 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22883 | int *arg2 = (int *) 0 ; | |
22884 | int *arg3 = (int *) 0 ; | |
22885 | int temp2 ; | |
22886 | int temp3 ; | |
22887 | PyObject * obj0 = 0 ; | |
22888 | char *kwnames[] = { | |
22889 | (char *) "self", NULL | |
22890 | }; | |
22891 | ||
22892 | arg2 = &temp2; | |
22893 | arg3 = &temp3; | |
22894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22897 | { |
22898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22899 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22900 | ||
22901 | wxPyEndAllowThreads(__tstate); | |
22902 | if (PyErr_Occurred()) SWIG_fail; | |
22903 | } | |
22904 | Py_INCREF(Py_None); resultobj = Py_None; | |
22905 | { | |
22906 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22907 | resultobj = t_output_helper(resultobj,o); | |
22908 | } | |
22909 | { | |
22910 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22911 | resultobj = t_output_helper(resultobj,o); | |
22912 | } | |
22913 | return resultobj; | |
22914 | fail: | |
22915 | return NULL; | |
22916 | } | |
22917 | ||
22918 | ||
22919 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22920 | PyObject *resultobj; | |
22921 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22922 | wxSize result; | |
22923 | PyObject * obj0 = 0 ; | |
22924 | char *kwnames[] = { | |
22925 | (char *) "self", NULL | |
22926 | }; | |
22927 | ||
22928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22931 | { |
22932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22933 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22934 | ||
22935 | wxPyEndAllowThreads(__tstate); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | } | |
22938 | { | |
22939 | wxSize * resultptr; | |
22940 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22942 | } |
22943 | return resultobj; | |
22944 | fail: | |
22945 | return NULL; | |
22946 | } | |
22947 | ||
22948 | ||
22949 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22950 | PyObject *resultobj; | |
22951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22952 | int arg2 = (int) wxBOTH ; | |
22953 | PyObject * obj0 = 0 ; | |
994141e6 | 22954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22955 | char *kwnames[] = { |
22956 | (char *) "self",(char *) "direction", NULL | |
22957 | }; | |
22958 | ||
994141e6 | 22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22962 | if (obj1) { |
15afbcd0 RD |
22963 | arg2 = (int) SWIG_AsInt(obj1); |
22964 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22965 | } |
d14a1e28 RD |
22966 | { |
22967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22968 | (arg1)->Center(arg2); | |
22969 | ||
22970 | wxPyEndAllowThreads(__tstate); | |
22971 | if (PyErr_Occurred()) SWIG_fail; | |
22972 | } | |
22973 | Py_INCREF(Py_None); resultobj = Py_None; | |
22974 | return resultobj; | |
22975 | fail: | |
22976 | return NULL; | |
22977 | } | |
22978 | ||
22979 | ||
22980 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22981 | PyObject *resultobj; | |
22982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22983 | int arg2 = (int) wxBOTH ; | |
22984 | PyObject * obj0 = 0 ; | |
994141e6 | 22985 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22986 | char *kwnames[] = { |
22987 | (char *) "self",(char *) "dir", NULL | |
22988 | }; | |
22989 | ||
994141e6 | 22990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22993 | if (obj1) { |
15afbcd0 RD |
22994 | arg2 = (int) SWIG_AsInt(obj1); |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22996 | } |
d14a1e28 RD |
22997 | { |
22998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22999 | (arg1)->CenterOnScreen(arg2); | |
23000 | ||
23001 | wxPyEndAllowThreads(__tstate); | |
23002 | if (PyErr_Occurred()) SWIG_fail; | |
23003 | } | |
23004 | Py_INCREF(Py_None); resultobj = Py_None; | |
23005 | return resultobj; | |
23006 | fail: | |
23007 | return NULL; | |
23008 | } | |
23009 | ||
23010 | ||
23011 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23012 | PyObject *resultobj; | |
23013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23014 | int arg2 = (int) wxBOTH ; | |
23015 | PyObject * obj0 = 0 ; | |
994141e6 | 23016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23017 | char *kwnames[] = { |
23018 | (char *) "self",(char *) "dir", NULL | |
23019 | }; | |
23020 | ||
994141e6 | 23021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23024 | if (obj1) { |
15afbcd0 RD |
23025 | arg2 = (int) SWIG_AsInt(obj1); |
23026 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23027 | } |
d14a1e28 RD |
23028 | { |
23029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23030 | (arg1)->CenterOnParent(arg2); | |
23031 | ||
23032 | wxPyEndAllowThreads(__tstate); | |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
23034 | } | |
23035 | Py_INCREF(Py_None); resultobj = Py_None; | |
23036 | return resultobj; | |
23037 | fail: | |
23038 | return NULL; | |
23039 | } | |
23040 | ||
23041 | ||
23042 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23043 | PyObject *resultobj; | |
23044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23045 | PyObject * obj0 = 0 ; | |
23046 | char *kwnames[] = { | |
23047 | (char *) "self", NULL | |
23048 | }; | |
23049 | ||
23050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23053 | { |
23054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23055 | (arg1)->Fit(); | |
23056 | ||
23057 | wxPyEndAllowThreads(__tstate); | |
23058 | if (PyErr_Occurred()) SWIG_fail; | |
23059 | } | |
23060 | Py_INCREF(Py_None); resultobj = Py_None; | |
23061 | return resultobj; | |
23062 | fail: | |
23063 | return NULL; | |
23064 | } | |
23065 | ||
23066 | ||
23067 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23068 | PyObject *resultobj; | |
23069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23070 | PyObject * obj0 = 0 ; | |
23071 | char *kwnames[] = { | |
23072 | (char *) "self", NULL | |
23073 | }; | |
23074 | ||
23075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23078 | { |
23079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23080 | (arg1)->FitInside(); | |
23081 | ||
23082 | wxPyEndAllowThreads(__tstate); | |
23083 | if (PyErr_Occurred()) SWIG_fail; | |
23084 | } | |
23085 | Py_INCREF(Py_None); resultobj = Py_None; | |
23086 | return resultobj; | |
23087 | fail: | |
23088 | return NULL; | |
23089 | } | |
23090 | ||
23091 | ||
74a57fcd | 23092 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
23093 | PyObject *resultobj; |
23094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23095 | int arg2 ; | |
23096 | int arg3 ; | |
23097 | int arg4 = (int) -1 ; | |
23098 | int arg5 = (int) -1 ; | |
23099 | int arg6 = (int) -1 ; | |
23100 | int arg7 = (int) -1 ; | |
23101 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23102 | PyObject * obj1 = 0 ; |
23103 | PyObject * obj2 = 0 ; | |
23104 | PyObject * obj3 = 0 ; | |
23105 | PyObject * obj4 = 0 ; | |
23106 | PyObject * obj5 = 0 ; | |
23107 | PyObject * obj6 = 0 ; | |
d14a1e28 | 23108 | |
74a57fcd | 23109 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23112 | arg2 = (int) SWIG_AsInt(obj1); | |
23113 | if (PyErr_Occurred()) SWIG_fail; | |
23114 | arg3 = (int) SWIG_AsInt(obj2); | |
23115 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23116 | if (obj3) { |
15afbcd0 RD |
23117 | arg4 = (int) SWIG_AsInt(obj3); |
23118 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23119 | } |
23120 | if (obj4) { | |
15afbcd0 RD |
23121 | arg5 = (int) SWIG_AsInt(obj4); |
23122 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23123 | } |
23124 | if (obj5) { | |
15afbcd0 RD |
23125 | arg6 = (int) SWIG_AsInt(obj5); |
23126 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23127 | } |
23128 | if (obj6) { | |
15afbcd0 RD |
23129 | arg7 = (int) SWIG_AsInt(obj6); |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23131 | } |
d14a1e28 RD |
23132 | { |
23133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23134 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23135 | ||
23136 | wxPyEndAllowThreads(__tstate); | |
23137 | if (PyErr_Occurred()) SWIG_fail; | |
23138 | } | |
23139 | Py_INCREF(Py_None); resultobj = Py_None; | |
23140 | return resultobj; | |
23141 | fail: | |
23142 | return NULL; | |
23143 | } | |
23144 | ||
23145 | ||
74a57fcd RD |
23146 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23147 | PyObject *resultobj; | |
23148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23149 | wxSize *arg2 = 0 ; | |
23150 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23151 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23154 | wxSize temp2 ; | |
23155 | wxSize temp3 ; | |
23156 | wxSize temp4 ; | |
23157 | PyObject * obj0 = 0 ; | |
23158 | PyObject * obj1 = 0 ; | |
23159 | PyObject * obj2 = 0 ; | |
23160 | PyObject * obj3 = 0 ; | |
23161 | ||
23162 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23165 | { | |
23166 | arg2 = &temp2; | |
23167 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23168 | } | |
23169 | if (obj2) { | |
23170 | { | |
23171 | arg3 = &temp3; | |
23172 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23173 | } | |
23174 | } | |
23175 | if (obj3) { | |
23176 | { | |
23177 | arg4 = &temp4; | |
23178 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23179 | } | |
23180 | } | |
23181 | { | |
23182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23183 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
23184 | ||
23185 | wxPyEndAllowThreads(__tstate); | |
23186 | if (PyErr_Occurred()) SWIG_fail; | |
23187 | } | |
23188 | Py_INCREF(Py_None); resultobj = Py_None; | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | return NULL; | |
23192 | } | |
23193 | ||
23194 | ||
23195 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { | |
23196 | int argc; | |
23197 | PyObject *argv[8]; | |
23198 | int ii; | |
23199 | ||
23200 | argc = PyObject_Length(args); | |
23201 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23202 | argv[ii] = PyTuple_GetItem(args,ii); | |
23203 | } | |
23204 | if ((argc >= 2) && (argc <= 4)) { | |
23205 | int _v; | |
23206 | { | |
23207 | void *ptr; | |
23208 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23209 | _v = 0; | |
23210 | PyErr_Clear(); | |
23211 | } else { | |
23212 | _v = 1; | |
23213 | } | |
23214 | } | |
23215 | if (_v) { | |
23216 | { | |
23217 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23218 | } | |
23219 | if (_v) { | |
23220 | if (argc <= 2) { | |
23221 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23222 | } | |
23223 | { | |
23224 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23225 | } | |
23226 | if (_v) { | |
23227 | if (argc <= 3) { | |
23228 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23229 | } | |
23230 | { | |
23231 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23232 | } | |
23233 | if (_v) { | |
23234 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23235 | } | |
23236 | } | |
23237 | } | |
23238 | } | |
23239 | } | |
23240 | if ((argc >= 3) && (argc <= 7)) { | |
23241 | int _v; | |
23242 | { | |
23243 | void *ptr; | |
23244 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23245 | _v = 0; | |
23246 | PyErr_Clear(); | |
23247 | } else { | |
23248 | _v = 1; | |
23249 | } | |
23250 | } | |
23251 | if (_v) { | |
23252 | _v = SWIG_CheckInt(argv[1]); | |
23253 | if (_v) { | |
23254 | _v = SWIG_CheckInt(argv[2]); | |
23255 | if (_v) { | |
23256 | if (argc <= 3) { | |
23257 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23258 | } | |
23259 | _v = SWIG_CheckInt(argv[3]); | |
23260 | if (_v) { | |
23261 | if (argc <= 4) { | |
23262 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23263 | } | |
23264 | _v = SWIG_CheckInt(argv[4]); | |
23265 | if (_v) { | |
23266 | if (argc <= 5) { | |
23267 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23268 | } | |
23269 | _v = SWIG_CheckInt(argv[5]); | |
23270 | if (_v) { | |
23271 | if (argc <= 6) { | |
23272 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23273 | } | |
23274 | _v = SWIG_CheckInt(argv[6]); | |
23275 | if (_v) { | |
23276 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23277 | } | |
23278 | } | |
23279 | } | |
23280 | } | |
23281 | } | |
23282 | } | |
23283 | } | |
23284 | } | |
23285 | ||
23286 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23287 | return NULL; | |
23288 | } | |
23289 | ||
23290 | ||
23291 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
d14a1e28 RD |
23292 | PyObject *resultobj; |
23293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23294 | int arg2 ; | |
23295 | int arg3 ; | |
23296 | int arg4 = (int) -1 ; | |
23297 | int arg5 = (int) -1 ; | |
23298 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23299 | PyObject * obj1 = 0 ; |
23300 | PyObject * obj2 = 0 ; | |
23301 | PyObject * obj3 = 0 ; | |
23302 | PyObject * obj4 = 0 ; | |
d14a1e28 | 23303 | |
74a57fcd | 23304 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23307 | arg2 = (int) SWIG_AsInt(obj1); | |
23308 | if (PyErr_Occurred()) SWIG_fail; | |
23309 | arg3 = (int) SWIG_AsInt(obj2); | |
23310 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23311 | if (obj3) { |
15afbcd0 RD |
23312 | arg4 = (int) SWIG_AsInt(obj3); |
23313 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23314 | } |
23315 | if (obj4) { | |
15afbcd0 RD |
23316 | arg5 = (int) SWIG_AsInt(obj4); |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23318 | } |
d14a1e28 RD |
23319 | { |
23320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23321 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
23322 | ||
23323 | wxPyEndAllowThreads(__tstate); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | } | |
23326 | Py_INCREF(Py_None); resultobj = Py_None; | |
23327 | return resultobj; | |
23328 | fail: | |
23329 | return NULL; | |
23330 | } | |
23331 | ||
23332 | ||
74a57fcd RD |
23333 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { |
23334 | PyObject *resultobj; | |
23335 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23336 | wxSize *arg2 = 0 ; | |
23337 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23338 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23339 | wxSize temp2 ; | |
23340 | wxSize temp3 ; | |
23341 | PyObject * obj0 = 0 ; | |
23342 | PyObject * obj1 = 0 ; | |
23343 | PyObject * obj2 = 0 ; | |
23344 | ||
23345 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; | |
23346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23348 | { | |
23349 | arg2 = &temp2; | |
23350 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23351 | } | |
23352 | if (obj2) { | |
23353 | { | |
23354 | arg3 = &temp3; | |
23355 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23356 | } | |
23357 | } | |
23358 | { | |
23359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23360 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23361 | ||
23362 | wxPyEndAllowThreads(__tstate); | |
23363 | if (PyErr_Occurred()) SWIG_fail; | |
23364 | } | |
23365 | Py_INCREF(Py_None); resultobj = Py_None; | |
23366 | return resultobj; | |
23367 | fail: | |
23368 | return NULL; | |
23369 | } | |
23370 | ||
23371 | ||
23372 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23373 | int argc; | |
23374 | PyObject *argv[6]; | |
23375 | int ii; | |
23376 | ||
23377 | argc = PyObject_Length(args); | |
23378 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23379 | argv[ii] = PyTuple_GetItem(args,ii); | |
23380 | } | |
23381 | if ((argc >= 2) && (argc <= 3)) { | |
23382 | int _v; | |
23383 | { | |
23384 | void *ptr; | |
23385 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23386 | _v = 0; | |
23387 | PyErr_Clear(); | |
23388 | } else { | |
23389 | _v = 1; | |
23390 | } | |
23391 | } | |
23392 | if (_v) { | |
23393 | { | |
23394 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23395 | } | |
23396 | if (_v) { | |
23397 | if (argc <= 2) { | |
23398 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23399 | } | |
23400 | { | |
23401 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23402 | } | |
23403 | if (_v) { | |
23404 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23405 | } | |
23406 | } | |
23407 | } | |
23408 | } | |
23409 | if ((argc >= 3) && (argc <= 5)) { | |
23410 | int _v; | |
23411 | { | |
23412 | void *ptr; | |
23413 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23414 | _v = 0; | |
23415 | PyErr_Clear(); | |
23416 | } else { | |
23417 | _v = 1; | |
23418 | } | |
23419 | } | |
23420 | if (_v) { | |
23421 | _v = SWIG_CheckInt(argv[1]); | |
23422 | if (_v) { | |
23423 | _v = SWIG_CheckInt(argv[2]); | |
23424 | if (_v) { | |
23425 | if (argc <= 3) { | |
23426 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23427 | } | |
23428 | _v = SWIG_CheckInt(argv[3]); | |
23429 | if (_v) { | |
23430 | if (argc <= 4) { | |
23431 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23432 | } | |
23433 | _v = SWIG_CheckInt(argv[4]); | |
23434 | if (_v) { | |
23435 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23436 | } | |
23437 | } | |
23438 | } | |
23439 | } | |
23440 | } | |
23441 | } | |
23442 | ||
23443 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23444 | return NULL; | |
23445 | } | |
23446 | ||
23447 | ||
d14a1e28 RD |
23448 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
23449 | PyObject *resultobj; | |
23450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23451 | int result; | |
23452 | PyObject * obj0 = 0 ; | |
23453 | char *kwnames[] = { | |
23454 | (char *) "self", NULL | |
23455 | }; | |
23456 | ||
23457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23460 | { |
23461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23462 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
23463 | ||
23464 | wxPyEndAllowThreads(__tstate); | |
23465 | if (PyErr_Occurred()) SWIG_fail; | |
23466 | } | |
15afbcd0 | 23467 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23468 | return resultobj; |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23477 | int result; | |
23478 | PyObject * obj0 = 0 ; | |
23479 | char *kwnames[] = { | |
23480 | (char *) "self", NULL | |
23481 | }; | |
23482 | ||
23483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23486 | { |
23487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23488 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
23489 | ||
23490 | wxPyEndAllowThreads(__tstate); | |
23491 | if (PyErr_Occurred()) SWIG_fail; | |
23492 | } | |
15afbcd0 | 23493 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23494 | return resultobj; |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
23500 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23501 | PyObject *resultobj; | |
23502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23503 | int result; | |
23504 | PyObject * obj0 = 0 ; | |
23505 | char *kwnames[] = { | |
23506 | (char *) "self", NULL | |
23507 | }; | |
23508 | ||
23509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23512 | { |
23513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23514 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
23515 | ||
23516 | wxPyEndAllowThreads(__tstate); | |
23517 | if (PyErr_Occurred()) SWIG_fail; | |
23518 | } | |
15afbcd0 | 23519 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23520 | return resultobj; |
23521 | fail: | |
23522 | return NULL; | |
23523 | } | |
23524 | ||
23525 | ||
23526 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23527 | PyObject *resultobj; | |
23528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23529 | int result; | |
23530 | PyObject * obj0 = 0 ; | |
23531 | char *kwnames[] = { | |
23532 | (char *) "self", NULL | |
23533 | }; | |
23534 | ||
23535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23538 | { |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
15afbcd0 | 23545 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23546 | return resultobj; |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23555 | wxSize result; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | char *kwnames[] = { | |
23558 | (char *) "self", NULL | |
23559 | }; | |
23560 | ||
23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23564 | { |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
23567 | ||
23568 | wxPyEndAllowThreads(__tstate); | |
23569 | if (PyErr_Occurred()) SWIG_fail; | |
23570 | } | |
23571 | { | |
23572 | wxSize * resultptr; | |
23573 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23575 | } |
23576 | return resultobj; | |
23577 | fail: | |
23578 | return NULL; | |
23579 | } | |
23580 | ||
23581 | ||
74a57fcd RD |
23582 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23583 | PyObject *resultobj; | |
23584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23585 | wxSize result; | |
23586 | PyObject * obj0 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; | |
23592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23594 | { | |
23595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23596 | result = ((wxWindow const *)arg1)->GetMinSize(); | |
23597 | ||
23598 | wxPyEndAllowThreads(__tstate); | |
23599 | if (PyErr_Occurred()) SWIG_fail; | |
23600 | } | |
23601 | { | |
23602 | wxSize * resultptr; | |
23603 | resultptr = new wxSize((wxSize &) result); | |
23604 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23605 | } | |
23606 | return resultobj; | |
23607 | fail: | |
23608 | return NULL; | |
23609 | } | |
23610 | ||
23611 | ||
d14a1e28 RD |
23612 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
23613 | PyObject *resultobj; | |
23614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23615 | wxSize *arg2 = 0 ; | |
23616 | wxSize temp2 ; | |
23617 | PyObject * obj0 = 0 ; | |
23618 | PyObject * obj1 = 0 ; | |
23619 | char *kwnames[] = { | |
23620 | (char *) "self",(char *) "size", NULL | |
23621 | }; | |
23622 | ||
23623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23626 | { |
23627 | arg2 = &temp2; | |
23628 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23629 | } | |
23630 | { | |
23631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23632 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23633 | ||
23634 | wxPyEndAllowThreads(__tstate); | |
23635 | if (PyErr_Occurred()) SWIG_fail; | |
23636 | } | |
23637 | Py_INCREF(Py_None); resultobj = Py_None; | |
23638 | return resultobj; | |
23639 | fail: | |
23640 | return NULL; | |
23641 | } | |
23642 | ||
23643 | ||
23644 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23645 | PyObject *resultobj; | |
23646 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23647 | int arg2 ; | |
23648 | int arg3 ; | |
23649 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23650 | PyObject * obj1 = 0 ; |
23651 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23652 | char *kwnames[] = { |
23653 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23654 | }; | |
23655 | ||
994141e6 | 23656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23659 | arg2 = (int) SWIG_AsInt(obj1); | |
23660 | if (PyErr_Occurred()) SWIG_fail; | |
23661 | arg3 = (int) SWIG_AsInt(obj2); | |
23662 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23663 | { |
23664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23665 | (arg1)->SetVirtualSize(arg2,arg3); | |
23666 | ||
23667 | wxPyEndAllowThreads(__tstate); | |
23668 | if (PyErr_Occurred()) SWIG_fail; | |
23669 | } | |
23670 | Py_INCREF(Py_None); resultobj = Py_None; | |
23671 | return resultobj; | |
23672 | fail: | |
23673 | return NULL; | |
23674 | } | |
23675 | ||
23676 | ||
23677 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23678 | PyObject *resultobj; | |
23679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23680 | wxSize result; | |
23681 | PyObject * obj0 = 0 ; | |
23682 | char *kwnames[] = { | |
23683 | (char *) "self", NULL | |
23684 | }; | |
23685 | ||
23686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23689 | { |
23690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23691 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23692 | ||
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | { | |
23697 | wxSize * resultptr; | |
23698 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23700 | } |
23701 | return resultobj; | |
23702 | fail: | |
23703 | return NULL; | |
23704 | } | |
23705 | ||
23706 | ||
23707 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23708 | PyObject *resultobj; | |
23709 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23710 | int *arg2 = (int *) 0 ; | |
23711 | int *arg3 = (int *) 0 ; | |
23712 | int temp2 ; | |
23713 | int temp3 ; | |
23714 | PyObject * obj0 = 0 ; | |
23715 | char *kwnames[] = { | |
23716 | (char *) "self", NULL | |
23717 | }; | |
23718 | ||
23719 | arg2 = &temp2; | |
23720 | arg3 = &temp3; | |
23721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23724 | { |
23725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23726 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23727 | ||
23728 | wxPyEndAllowThreads(__tstate); | |
23729 | if (PyErr_Occurred()) SWIG_fail; | |
23730 | } | |
23731 | Py_INCREF(Py_None); resultobj = Py_None; | |
23732 | { | |
23733 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23734 | resultobj = t_output_helper(resultobj,o); | |
23735 | } | |
23736 | { | |
23737 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23738 | resultobj = t_output_helper(resultobj,o); | |
23739 | } | |
23740 | return resultobj; | |
23741 | fail: | |
23742 | return NULL; | |
23743 | } | |
23744 | ||
23745 | ||
23746 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23747 | PyObject *resultobj; | |
23748 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23749 | wxSize result; | |
23750 | PyObject * obj0 = 0 ; | |
23751 | char *kwnames[] = { | |
23752 | (char *) "self", NULL | |
23753 | }; | |
23754 | ||
23755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23758 | { |
23759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23760 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23761 | ||
23762 | wxPyEndAllowThreads(__tstate); | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | } | |
23765 | { | |
23766 | wxSize * resultptr; | |
23767 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 23768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
23769 | } |
23770 | return resultobj; | |
23771 | fail: | |
23772 | return NULL; | |
23773 | } | |
23774 | ||
23775 | ||
23776 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23777 | PyObject *resultobj; | |
23778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23779 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23780 | bool result; |
23781 | PyObject * obj0 = 0 ; | |
23782 | PyObject * obj1 = 0 ; | |
23783 | char *kwnames[] = { | |
23784 | (char *) "self",(char *) "show", NULL | |
23785 | }; | |
23786 | ||
23787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23790 | if (obj1) { |
15afbcd0 RD |
23791 | arg2 = (bool) SWIG_AsBool(obj1); |
23792 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23793 | } |
23794 | { | |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | result = (bool)(arg1)->Show(arg2); | |
23797 | ||
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
4f89f6a3 RD |
23801 | { |
23802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23803 | } | |
d14a1e28 RD |
23804 | return resultobj; |
23805 | fail: | |
23806 | return NULL; | |
23807 | } | |
23808 | ||
23809 | ||
23810 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23811 | PyObject *resultobj; | |
23812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23813 | bool result; | |
23814 | PyObject * obj0 = 0 ; | |
23815 | char *kwnames[] = { | |
23816 | (char *) "self", NULL | |
23817 | }; | |
23818 | ||
23819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23822 | { |
23823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23824 | result = (bool)(arg1)->Hide(); | |
23825 | ||
23826 | wxPyEndAllowThreads(__tstate); | |
23827 | if (PyErr_Occurred()) SWIG_fail; | |
23828 | } | |
4f89f6a3 RD |
23829 | { |
23830 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23831 | } | |
d14a1e28 RD |
23832 | return resultobj; |
23833 | fail: | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23839 | PyObject *resultobj; | |
23840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23841 | bool arg2 = (bool) True ; |
d14a1e28 RD |
23842 | bool result; |
23843 | PyObject * obj0 = 0 ; | |
23844 | PyObject * obj1 = 0 ; | |
23845 | char *kwnames[] = { | |
23846 | (char *) "self",(char *) "enable", NULL | |
23847 | }; | |
23848 | ||
23849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 23852 | if (obj1) { |
15afbcd0 RD |
23853 | arg2 = (bool) SWIG_AsBool(obj1); |
23854 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23855 | } |
23856 | { | |
23857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23858 | result = (bool)(arg1)->Enable(arg2); | |
23859 | ||
23860 | wxPyEndAllowThreads(__tstate); | |
23861 | if (PyErr_Occurred()) SWIG_fail; | |
23862 | } | |
4f89f6a3 RD |
23863 | { |
23864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23865 | } | |
d14a1e28 RD |
23866 | return resultobj; |
23867 | fail: | |
23868 | return NULL; | |
23869 | } | |
23870 | ||
23871 | ||
23872 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23873 | PyObject *resultobj; | |
23874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23875 | bool result; | |
23876 | PyObject * obj0 = 0 ; | |
23877 | char *kwnames[] = { | |
23878 | (char *) "self", NULL | |
23879 | }; | |
23880 | ||
23881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23884 | { |
23885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23886 | result = (bool)(arg1)->Disable(); | |
23887 | ||
23888 | wxPyEndAllowThreads(__tstate); | |
23889 | if (PyErr_Occurred()) SWIG_fail; | |
23890 | } | |
4f89f6a3 RD |
23891 | { |
23892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23893 | } | |
d14a1e28 RD |
23894 | return resultobj; |
23895 | fail: | |
23896 | return NULL; | |
23897 | } | |
23898 | ||
23899 | ||
23900 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23901 | PyObject *resultobj; | |
23902 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23903 | bool result; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | char *kwnames[] = { | |
23906 | (char *) "self", NULL | |
23907 | }; | |
23908 | ||
23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23912 | { |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23915 | ||
23916 | wxPyEndAllowThreads(__tstate); | |
23917 | if (PyErr_Occurred()) SWIG_fail; | |
23918 | } | |
4f89f6a3 RD |
23919 | { |
23920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23921 | } | |
d14a1e28 RD |
23922 | return resultobj; |
23923 | fail: | |
23924 | return NULL; | |
23925 | } | |
23926 | ||
23927 | ||
23928 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23929 | PyObject *resultobj; | |
23930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23931 | bool result; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | char *kwnames[] = { | |
23934 | (char *) "self", NULL | |
23935 | }; | |
23936 | ||
23937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23940 | { |
23941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23942 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23943 | ||
23944 | wxPyEndAllowThreads(__tstate); | |
23945 | if (PyErr_Occurred()) SWIG_fail; | |
23946 | } | |
4f89f6a3 RD |
23947 | { |
23948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23949 | } | |
d14a1e28 RD |
23950 | return resultobj; |
23951 | fail: | |
23952 | return NULL; | |
23953 | } | |
23954 | ||
23955 | ||
23956 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23957 | PyObject *resultobj; | |
23958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23959 | long arg2 ; | |
23960 | PyObject * obj0 = 0 ; | |
994141e6 | 23961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23962 | char *kwnames[] = { |
23963 | (char *) "self",(char *) "style", NULL | |
23964 | }; | |
23965 | ||
994141e6 | 23966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23969 | arg2 = (long) SWIG_AsLong(obj1); | |
23970 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23971 | { |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | (arg1)->SetWindowStyleFlag(arg2); | |
23974 | ||
23975 | wxPyEndAllowThreads(__tstate); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | } | |
23978 | Py_INCREF(Py_None); resultobj = Py_None; | |
23979 | return resultobj; | |
23980 | fail: | |
23981 | return NULL; | |
23982 | } | |
23983 | ||
23984 | ||
23985 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23986 | PyObject *resultobj; | |
23987 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23988 | long result; | |
23989 | PyObject * obj0 = 0 ; | |
23990 | char *kwnames[] = { | |
23991 | (char *) "self", NULL | |
23992 | }; | |
23993 | ||
23994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23997 | { |
23998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23999 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24000 | ||
24001 | wxPyEndAllowThreads(__tstate); | |
24002 | if (PyErr_Occurred()) SWIG_fail; | |
24003 | } | |
15afbcd0 | 24004 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24005 | return resultobj; |
24006 | fail: | |
24007 | return NULL; | |
24008 | } | |
24009 | ||
24010 | ||
24011 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24012 | PyObject *resultobj; | |
24013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24014 | int arg2 ; | |
24015 | bool result; | |
24016 | PyObject * obj0 = 0 ; | |
994141e6 | 24017 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24018 | char *kwnames[] = { |
24019 | (char *) "self",(char *) "flag", NULL | |
24020 | }; | |
24021 | ||
994141e6 | 24022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24025 | arg2 = (int) SWIG_AsInt(obj1); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24027 | { |
24028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24029 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24030 | ||
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
4f89f6a3 RD |
24034 | { |
24035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24036 | } | |
d14a1e28 RD |
24037 | return resultobj; |
24038 | fail: | |
24039 | return NULL; | |
24040 | } | |
24041 | ||
24042 | ||
24043 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24044 | PyObject *resultobj; | |
24045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24046 | bool result; | |
24047 | PyObject * obj0 = 0 ; | |
24048 | char *kwnames[] = { | |
24049 | (char *) "self", NULL | |
24050 | }; | |
24051 | ||
24052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24055 | { |
24056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24057 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24058 | ||
24059 | wxPyEndAllowThreads(__tstate); | |
24060 | if (PyErr_Occurred()) SWIG_fail; | |
24061 | } | |
4f89f6a3 RD |
24062 | { |
24063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24064 | } | |
d14a1e28 RD |
24065 | return resultobj; |
24066 | fail: | |
24067 | return NULL; | |
24068 | } | |
24069 | ||
24070 | ||
24071 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24072 | PyObject *resultobj; | |
24073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24074 | long arg2 ; | |
24075 | PyObject * obj0 = 0 ; | |
994141e6 | 24076 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24077 | char *kwnames[] = { |
24078 | (char *) "self",(char *) "exStyle", NULL | |
24079 | }; | |
24080 | ||
994141e6 | 24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24084 | arg2 = (long) SWIG_AsLong(obj1); | |
24085 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24086 | { |
24087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24088 | (arg1)->SetExtraStyle(arg2); | |
24089 | ||
24090 | wxPyEndAllowThreads(__tstate); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
24093 | Py_INCREF(Py_None); resultobj = Py_None; | |
24094 | return resultobj; | |
24095 | fail: | |
24096 | return NULL; | |
24097 | } | |
24098 | ||
24099 | ||
24100 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24101 | PyObject *resultobj; | |
24102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24103 | long result; | |
24104 | PyObject * obj0 = 0 ; | |
24105 | char *kwnames[] = { | |
24106 | (char *) "self", NULL | |
24107 | }; | |
24108 | ||
24109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24112 | { |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24115 | ||
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
15afbcd0 | 24119 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
24120 | return resultobj; |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
24126 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24127 | PyObject *resultobj; | |
24128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24129 | bool arg2 = (bool) True ; |
d14a1e28 RD |
24130 | PyObject * obj0 = 0 ; |
24131 | PyObject * obj1 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "self",(char *) "modal", NULL | |
24134 | }; | |
24135 | ||
24136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24139 | if (obj1) { |
15afbcd0 RD |
24140 | arg2 = (bool) SWIG_AsBool(obj1); |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24142 | } |
24143 | { | |
24144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24145 | (arg1)->MakeModal(arg2); | |
24146 | ||
24147 | wxPyEndAllowThreads(__tstate); | |
24148 | if (PyErr_Occurred()) SWIG_fail; | |
24149 | } | |
24150 | Py_INCREF(Py_None); resultobj = Py_None; | |
24151 | return resultobj; | |
24152 | fail: | |
24153 | return NULL; | |
24154 | } | |
24155 | ||
24156 | ||
24157 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24158 | PyObject *resultobj; | |
24159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24160 | bool arg2 ; | |
24161 | PyObject * obj0 = 0 ; | |
24162 | PyObject * obj1 = 0 ; | |
24163 | char *kwnames[] = { | |
24164 | (char *) "self",(char *) "enableTheme", NULL | |
24165 | }; | |
24166 | ||
24167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24170 | arg2 = (bool) SWIG_AsBool(obj1); | |
24171 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24172 | { |
24173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24174 | (arg1)->SetThemeEnabled(arg2); | |
24175 | ||
24176 | wxPyEndAllowThreads(__tstate); | |
24177 | if (PyErr_Occurred()) SWIG_fail; | |
24178 | } | |
24179 | Py_INCREF(Py_None); resultobj = Py_None; | |
24180 | return resultobj; | |
24181 | fail: | |
24182 | return NULL; | |
24183 | } | |
24184 | ||
24185 | ||
24186 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24187 | PyObject *resultobj; | |
24188 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24189 | bool result; | |
24190 | PyObject * obj0 = 0 ; | |
24191 | char *kwnames[] = { | |
24192 | (char *) "self", NULL | |
24193 | }; | |
24194 | ||
24195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24198 | { |
24199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24200 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24201 | ||
24202 | wxPyEndAllowThreads(__tstate); | |
24203 | if (PyErr_Occurred()) SWIG_fail; | |
24204 | } | |
4f89f6a3 RD |
24205 | { |
24206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24207 | } | |
d14a1e28 RD |
24208 | return resultobj; |
24209 | fail: | |
24210 | return NULL; | |
24211 | } | |
24212 | ||
24213 | ||
d14a1e28 RD |
24214 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
24215 | PyObject *resultobj; | |
24216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24217 | PyObject * obj0 = 0 ; | |
24218 | char *kwnames[] = { | |
24219 | (char *) "self", NULL | |
24220 | }; | |
24221 | ||
24222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24225 | { |
24226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24227 | (arg1)->SetFocus(); | |
24228 | ||
24229 | wxPyEndAllowThreads(__tstate); | |
24230 | if (PyErr_Occurred()) SWIG_fail; | |
24231 | } | |
24232 | Py_INCREF(Py_None); resultobj = Py_None; | |
24233 | return resultobj; | |
24234 | fail: | |
24235 | return NULL; | |
24236 | } | |
24237 | ||
24238 | ||
24239 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24240 | PyObject *resultobj; | |
24241 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24242 | PyObject * obj0 = 0 ; | |
24243 | char *kwnames[] = { | |
24244 | (char *) "self", NULL | |
24245 | }; | |
24246 | ||
24247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24250 | { |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | (arg1)->SetFocusFromKbd(); | |
24253 | ||
24254 | wxPyEndAllowThreads(__tstate); | |
24255 | if (PyErr_Occurred()) SWIG_fail; | |
24256 | } | |
24257 | Py_INCREF(Py_None); resultobj = Py_None; | |
24258 | return resultobj; | |
24259 | fail: | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24265 | PyObject *resultobj; | |
24266 | wxWindow *result; | |
24267 | char *kwnames[] = { | |
24268 | NULL | |
24269 | }; | |
24270 | ||
24271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24272 | { | |
24273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24274 | result = (wxWindow *)wxWindow::FindFocus(); | |
24275 | ||
24276 | wxPyEndAllowThreads(__tstate); | |
24277 | if (PyErr_Occurred()) SWIG_fail; | |
24278 | } | |
24279 | { | |
24280 | resultobj = wxPyMake_wxObject(result); | |
24281 | } | |
24282 | return resultobj; | |
24283 | fail: | |
24284 | return NULL; | |
24285 | } | |
24286 | ||
24287 | ||
24288 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24289 | PyObject *resultobj; | |
24290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24291 | bool result; | |
24292 | PyObject * obj0 = 0 ; | |
24293 | char *kwnames[] = { | |
24294 | (char *) "self", NULL | |
24295 | }; | |
24296 | ||
24297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24300 | { |
24301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24302 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24303 | ||
24304 | wxPyEndAllowThreads(__tstate); | |
24305 | if (PyErr_Occurred()) SWIG_fail; | |
24306 | } | |
4f89f6a3 RD |
24307 | { |
24308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24309 | } | |
d14a1e28 RD |
24310 | return resultobj; |
24311 | fail: | |
24312 | return NULL; | |
24313 | } | |
24314 | ||
24315 | ||
24316 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24317 | PyObject *resultobj; | |
24318 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24319 | bool result; | |
24320 | PyObject * obj0 = 0 ; | |
24321 | char *kwnames[] = { | |
24322 | (char *) "self", NULL | |
24323 | }; | |
24324 | ||
24325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24328 | { |
24329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24330 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24331 | ||
24332 | wxPyEndAllowThreads(__tstate); | |
24333 | if (PyErr_Occurred()) SWIG_fail; | |
24334 | } | |
4f89f6a3 RD |
24335 | { |
24336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24337 | } | |
d14a1e28 RD |
24338 | return resultobj; |
24339 | fail: | |
24340 | return NULL; | |
24341 | } | |
24342 | ||
24343 | ||
24344 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24345 | PyObject *resultobj; | |
24346 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24347 | wxWindow *result; | |
24348 | PyObject * obj0 = 0 ; | |
24349 | char *kwnames[] = { | |
24350 | (char *) "self", NULL | |
24351 | }; | |
24352 | ||
24353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24356 | { |
24357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24358 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24359 | ||
24360 | wxPyEndAllowThreads(__tstate); | |
24361 | if (PyErr_Occurred()) SWIG_fail; | |
24362 | } | |
24363 | { | |
24364 | resultobj = wxPyMake_wxObject(result); | |
24365 | } | |
24366 | return resultobj; | |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
24372 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24373 | PyObject *resultobj; | |
24374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24375 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24376 | wxWindow *result; | |
24377 | PyObject * obj0 = 0 ; | |
24378 | PyObject * obj1 = 0 ; | |
24379 | char *kwnames[] = { | |
24380 | (char *) "self",(char *) "child", NULL | |
24381 | }; | |
24382 | ||
24383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24388 | { |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24391 | ||
24392 | wxPyEndAllowThreads(__tstate); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
24395 | { | |
24396 | resultobj = wxPyMake_wxObject(result); | |
24397 | } | |
24398 | return resultobj; | |
24399 | fail: | |
24400 | return NULL; | |
24401 | } | |
24402 | ||
24403 | ||
24404 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24405 | PyObject *resultobj; | |
24406 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24407 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24408 | PyObject * obj0 = 0 ; | |
24409 | PyObject * obj1 = 0 ; | |
24410 | char *kwnames[] = { | |
24411 | (char *) "self",(char *) "win", NULL | |
24412 | }; | |
24413 | ||
24414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24417 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24419 | { |
24420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24421 | (arg1)->SetTmpDefaultItem(arg2); | |
24422 | ||
24423 | wxPyEndAllowThreads(__tstate); | |
24424 | if (PyErr_Occurred()) SWIG_fail; | |
24425 | } | |
24426 | Py_INCREF(Py_None); resultobj = Py_None; | |
24427 | return resultobj; | |
24428 | fail: | |
24429 | return NULL; | |
24430 | } | |
24431 | ||
24432 | ||
24433 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24434 | PyObject *resultobj; | |
24435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24436 | PyObject *result; | |
24437 | PyObject * obj0 = 0 ; | |
24438 | char *kwnames[] = { | |
24439 | (char *) "self", NULL | |
24440 | }; | |
24441 | ||
24442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24445 | { |
24446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24447 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24448 | ||
24449 | wxPyEndAllowThreads(__tstate); | |
24450 | if (PyErr_Occurred()) SWIG_fail; | |
24451 | } | |
24452 | resultobj = result; | |
24453 | return resultobj; | |
24454 | fail: | |
24455 | return NULL; | |
24456 | } | |
24457 | ||
24458 | ||
24459 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24460 | PyObject *resultobj; | |
24461 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24462 | wxWindow *result; | |
24463 | PyObject * obj0 = 0 ; | |
24464 | char *kwnames[] = { | |
24465 | (char *) "self", NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24471 | { |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24474 | ||
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | { | |
24479 | resultobj = wxPyMake_wxObject(result); | |
24480 | } | |
24481 | return resultobj; | |
24482 | fail: | |
24483 | return NULL; | |
24484 | } | |
24485 | ||
24486 | ||
24487 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24488 | PyObject *resultobj; | |
24489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24490 | wxWindow *result; | |
24491 | PyObject * obj0 = 0 ; | |
24492 | char *kwnames[] = { | |
24493 | (char *) "self", NULL | |
24494 | }; | |
24495 | ||
24496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24499 | { |
24500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24501 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24502 | ||
24503 | wxPyEndAllowThreads(__tstate); | |
24504 | if (PyErr_Occurred()) SWIG_fail; | |
24505 | } | |
24506 | { | |
24507 | resultobj = wxPyMake_wxObject(result); | |
24508 | } | |
24509 | return resultobj; | |
24510 | fail: | |
24511 | return NULL; | |
24512 | } | |
24513 | ||
24514 | ||
24515 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24516 | PyObject *resultobj; | |
24517 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24518 | bool result; | |
24519 | PyObject * obj0 = 0 ; | |
24520 | char *kwnames[] = { | |
24521 | (char *) "self", NULL | |
24522 | }; | |
24523 | ||
24524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24527 | { |
24528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24529 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24530 | ||
24531 | wxPyEndAllowThreads(__tstate); | |
24532 | if (PyErr_Occurred()) SWIG_fail; | |
24533 | } | |
4f89f6a3 RD |
24534 | { |
24535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24536 | } | |
d14a1e28 RD |
24537 | return resultobj; |
24538 | fail: | |
24539 | return NULL; | |
24540 | } | |
24541 | ||
24542 | ||
24543 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24544 | PyObject *resultobj; | |
24545 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24546 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24547 | bool result; | |
24548 | PyObject * obj0 = 0 ; | |
24549 | PyObject * obj1 = 0 ; | |
24550 | char *kwnames[] = { | |
24551 | (char *) "self",(char *) "newParent", NULL | |
24552 | }; | |
24553 | ||
24554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24557 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24559 | { |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24561 | result = (bool)(arg1)->Reparent(arg2); | |
24562 | ||
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
4f89f6a3 RD |
24566 | { |
24567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24568 | } | |
d14a1e28 RD |
24569 | return resultobj; |
24570 | fail: | |
24571 | return NULL; | |
24572 | } | |
24573 | ||
24574 | ||
24575 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24576 | PyObject *resultobj; | |
24577 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24578 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24579 | PyObject * obj0 = 0 ; | |
24580 | PyObject * obj1 = 0 ; | |
24581 | char *kwnames[] = { | |
24582 | (char *) "self",(char *) "child", NULL | |
24583 | }; | |
24584 | ||
24585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24590 | { |
24591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24592 | (arg1)->AddChild(arg2); | |
24593 | ||
24594 | wxPyEndAllowThreads(__tstate); | |
24595 | if (PyErr_Occurred()) SWIG_fail; | |
24596 | } | |
24597 | Py_INCREF(Py_None); resultobj = Py_None; | |
24598 | return resultobj; | |
24599 | fail: | |
24600 | return NULL; | |
24601 | } | |
24602 | ||
24603 | ||
24604 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24605 | PyObject *resultobj; | |
24606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24607 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24608 | PyObject * obj0 = 0 ; | |
24609 | PyObject * obj1 = 0 ; | |
24610 | char *kwnames[] = { | |
24611 | (char *) "self",(char *) "child", NULL | |
24612 | }; | |
24613 | ||
24614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24619 | { |
24620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24621 | (arg1)->RemoveChild(arg2); | |
24622 | ||
24623 | wxPyEndAllowThreads(__tstate); | |
24624 | if (PyErr_Occurred()) SWIG_fail; | |
24625 | } | |
24626 | Py_INCREF(Py_None); resultobj = Py_None; | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
24633 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24634 | PyObject *resultobj; | |
24635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24636 | long arg2 ; | |
24637 | wxWindow *result; | |
24638 | PyObject * obj0 = 0 ; | |
994141e6 | 24639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24640 | char *kwnames[] = { |
24641 | (char *) "self",(char *) "winid", NULL | |
24642 | }; | |
24643 | ||
994141e6 | 24644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24647 | arg2 = (long) SWIG_AsLong(obj1); | |
24648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24649 | { |
24650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24651 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24652 | ||
24653 | wxPyEndAllowThreads(__tstate); | |
24654 | if (PyErr_Occurred()) SWIG_fail; | |
24655 | } | |
24656 | { | |
24657 | resultobj = wxPyMake_wxObject(result); | |
24658 | } | |
24659 | return resultobj; | |
24660 | fail: | |
24661 | return NULL; | |
24662 | } | |
24663 | ||
24664 | ||
24665 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24666 | PyObject *resultobj; | |
24667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24668 | wxString *arg2 = 0 ; | |
24669 | wxWindow *result; | |
e811c8ce | 24670 | bool temp2 = False ; |
d14a1e28 RD |
24671 | PyObject * obj0 = 0 ; |
24672 | PyObject * obj1 = 0 ; | |
24673 | char *kwnames[] = { | |
24674 | (char *) "self",(char *) "name", NULL | |
24675 | }; | |
24676 | ||
24677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24680 | { |
24681 | arg2 = wxString_in_helper(obj1); | |
24682 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24683 | temp2 = True; |
d14a1e28 RD |
24684 | } |
24685 | { | |
24686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24687 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24688 | ||
24689 | wxPyEndAllowThreads(__tstate); | |
24690 | if (PyErr_Occurred()) SWIG_fail; | |
24691 | } | |
24692 | { | |
24693 | resultobj = wxPyMake_wxObject(result); | |
24694 | } | |
24695 | { | |
24696 | if (temp2) | |
24697 | delete arg2; | |
24698 | } | |
24699 | return resultobj; | |
24700 | fail: | |
24701 | { | |
24702 | if (temp2) | |
24703 | delete arg2; | |
24704 | } | |
24705 | return NULL; | |
24706 | } | |
24707 | ||
24708 | ||
24709 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24710 | PyObject *resultobj; | |
24711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24712 | wxEvtHandler *result; | |
24713 | PyObject * obj0 = 0 ; | |
24714 | char *kwnames[] = { | |
24715 | (char *) "self", NULL | |
24716 | }; | |
24717 | ||
24718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24721 | { |
24722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24723 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24724 | ||
24725 | wxPyEndAllowThreads(__tstate); | |
24726 | if (PyErr_Occurred()) SWIG_fail; | |
24727 | } | |
24728 | { | |
24729 | resultobj = wxPyMake_wxObject(result); | |
24730 | } | |
24731 | return resultobj; | |
24732 | fail: | |
24733 | return NULL; | |
24734 | } | |
24735 | ||
24736 | ||
24737 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24738 | PyObject *resultobj; | |
24739 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24740 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24741 | PyObject * obj0 = 0 ; | |
24742 | PyObject * obj1 = 0 ; | |
24743 | char *kwnames[] = { | |
24744 | (char *) "self",(char *) "handler", NULL | |
24745 | }; | |
24746 | ||
24747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24752 | { |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | (arg1)->SetEventHandler(arg2); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | Py_INCREF(Py_None); resultobj = Py_None; | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24769 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "handler", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24781 | { |
24782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24783 | (arg1)->PushEventHandler(arg2); | |
24784 | ||
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
24788 | Py_INCREF(Py_None); resultobj = Py_None; | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
24795 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24796 | PyObject *resultobj; | |
24797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24798 | bool arg2 = (bool) False ; |
d14a1e28 RD |
24799 | wxEvtHandler *result; |
24800 | PyObject * obj0 = 0 ; | |
24801 | PyObject * obj1 = 0 ; | |
24802 | char *kwnames[] = { | |
24803 | (char *) "self",(char *) "deleteHandler", NULL | |
24804 | }; | |
24805 | ||
24806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 24809 | if (obj1) { |
15afbcd0 RD |
24810 | arg2 = (bool) SWIG_AsBool(obj1); |
24811 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24812 | } |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | { | |
24821 | resultobj = wxPyMake_wxObject(result); | |
24822 | } | |
24823 | return resultobj; | |
24824 | fail: | |
24825 | return NULL; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24830 | PyObject *resultobj; | |
24831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24832 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24833 | bool result; | |
24834 | PyObject * obj0 = 0 ; | |
24835 | PyObject * obj1 = 0 ; | |
24836 | char *kwnames[] = { | |
24837 | (char *) "self",(char *) "handler", NULL | |
24838 | }; | |
24839 | ||
24840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24845 | { |
24846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24847 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24848 | ||
24849 | wxPyEndAllowThreads(__tstate); | |
24850 | if (PyErr_Occurred()) SWIG_fail; | |
24851 | } | |
4f89f6a3 RD |
24852 | { |
24853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24854 | } | |
d14a1e28 RD |
24855 | return resultobj; |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
24861 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24862 | PyObject *resultobj; | |
24863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24864 | wxValidator *arg2 = 0 ; | |
24865 | PyObject * obj0 = 0 ; | |
24866 | PyObject * obj1 = 0 ; | |
24867 | char *kwnames[] = { | |
24868 | (char *) "self",(char *) "validator", NULL | |
24869 | }; | |
24870 | ||
24871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24876 | SWIG_fail; | |
d14a1e28 | 24877 | if (arg2 == NULL) { |
15afbcd0 RD |
24878 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24879 | SWIG_fail; | |
d14a1e28 RD |
24880 | } |
24881 | { | |
24882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24883 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24884 | ||
24885 | wxPyEndAllowThreads(__tstate); | |
24886 | if (PyErr_Occurred()) SWIG_fail; | |
24887 | } | |
24888 | Py_INCREF(Py_None); resultobj = Py_None; | |
24889 | return resultobj; | |
24890 | fail: | |
24891 | return NULL; | |
24892 | } | |
24893 | ||
24894 | ||
24895 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24896 | PyObject *resultobj; | |
24897 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24898 | wxValidator *result; | |
24899 | PyObject * obj0 = 0 ; | |
24900 | char *kwnames[] = { | |
24901 | (char *) "self", NULL | |
24902 | }; | |
24903 | ||
24904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24907 | { |
24908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24909 | result = (wxValidator *)(arg1)->GetValidator(); | |
24910 | ||
24911 | wxPyEndAllowThreads(__tstate); | |
24912 | if (PyErr_Occurred()) SWIG_fail; | |
24913 | } | |
24914 | { | |
24915 | resultobj = wxPyMake_wxObject(result); | |
24916 | } | |
24917 | return resultobj; | |
24918 | fail: | |
24919 | return NULL; | |
24920 | } | |
24921 | ||
24922 | ||
74a57fcd RD |
24923 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
24924 | PyObject *resultobj; | |
24925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24926 | bool result; | |
24927 | PyObject * obj0 = 0 ; | |
24928 | char *kwnames[] = { | |
24929 | (char *) "self", NULL | |
24930 | }; | |
24931 | ||
24932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24935 | { | |
24936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24937 | result = (bool)(arg1)->Validate(); | |
24938 | ||
24939 | wxPyEndAllowThreads(__tstate); | |
24940 | if (PyErr_Occurred()) SWIG_fail; | |
24941 | } | |
24942 | { | |
24943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24944 | } | |
24945 | return resultobj; | |
24946 | fail: | |
24947 | return NULL; | |
24948 | } | |
24949 | ||
24950 | ||
24951 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24952 | PyObject *resultobj; | |
24953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24954 | bool result; | |
24955 | PyObject * obj0 = 0 ; | |
24956 | char *kwnames[] = { | |
24957 | (char *) "self", NULL | |
24958 | }; | |
24959 | ||
24960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24963 | { | |
24964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24965 | result = (bool)(arg1)->TransferDataToWindow(); | |
24966 | ||
24967 | wxPyEndAllowThreads(__tstate); | |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
24969 | } | |
24970 | { | |
24971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24972 | } | |
24973 | return resultobj; | |
24974 | fail: | |
24975 | return NULL; | |
24976 | } | |
24977 | ||
24978 | ||
24979 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24980 | PyObject *resultobj; | |
24981 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24982 | bool result; | |
24983 | PyObject * obj0 = 0 ; | |
24984 | char *kwnames[] = { | |
24985 | (char *) "self", NULL | |
24986 | }; | |
24987 | ||
24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24991 | { | |
24992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24993 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24994 | ||
24995 | wxPyEndAllowThreads(__tstate); | |
24996 | if (PyErr_Occurred()) SWIG_fail; | |
24997 | } | |
24998 | { | |
24999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25000 | } | |
25001 | return resultobj; | |
25002 | fail: | |
25003 | return NULL; | |
25004 | } | |
25005 | ||
25006 | ||
25007 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25008 | PyObject *resultobj; | |
25009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25010 | PyObject * obj0 = 0 ; | |
25011 | char *kwnames[] = { | |
25012 | (char *) "self", NULL | |
25013 | }; | |
25014 | ||
25015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25018 | { | |
25019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25020 | (arg1)->InitDialog(); | |
25021 | ||
25022 | wxPyEndAllowThreads(__tstate); | |
25023 | if (PyErr_Occurred()) SWIG_fail; | |
25024 | } | |
25025 | Py_INCREF(Py_None); resultobj = Py_None; | |
25026 | return resultobj; | |
25027 | fail: | |
25028 | return NULL; | |
25029 | } | |
25030 | ||
25031 | ||
d14a1e28 RD |
25032 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
25033 | PyObject *resultobj; | |
25034 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25035 | wxAcceleratorTable *arg2 = 0 ; | |
25036 | PyObject * obj0 = 0 ; | |
25037 | PyObject * obj1 = 0 ; | |
25038 | char *kwnames[] = { | |
25039 | (char *) "self",(char *) "accel", NULL | |
25040 | }; | |
25041 | ||
25042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25047 | SWIG_fail; | |
d14a1e28 | 25048 | if (arg2 == NULL) { |
15afbcd0 RD |
25049 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25050 | SWIG_fail; | |
d14a1e28 RD |
25051 | } |
25052 | { | |
25053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25054 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25055 | ||
25056 | wxPyEndAllowThreads(__tstate); | |
25057 | if (PyErr_Occurred()) SWIG_fail; | |
25058 | } | |
25059 | Py_INCREF(Py_None); resultobj = Py_None; | |
25060 | return resultobj; | |
25061 | fail: | |
25062 | return NULL; | |
25063 | } | |
25064 | ||
25065 | ||
25066 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25067 | PyObject *resultobj; | |
25068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25069 | wxAcceleratorTable *result; | |
25070 | PyObject * obj0 = 0 ; | |
25071 | char *kwnames[] = { | |
25072 | (char *) "self", NULL | |
25073 | }; | |
25074 | ||
25075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25078 | { |
25079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25080 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25081 | ||
25082 | wxPyEndAllowThreads(__tstate); | |
25083 | if (PyErr_Occurred()) SWIG_fail; | |
25084 | } | |
15afbcd0 | 25085 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); |
d14a1e28 RD |
25086 | return resultobj; |
25087 | fail: | |
25088 | return NULL; | |
25089 | } | |
25090 | ||
25091 | ||
25092 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25093 | PyObject *resultobj; | |
25094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25095 | int arg2 ; | |
25096 | int arg3 ; | |
25097 | int arg4 ; | |
25098 | bool result; | |
25099 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25100 | PyObject * obj1 = 0 ; |
25101 | PyObject * obj2 = 0 ; | |
25102 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25103 | char *kwnames[] = { |
25104 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25105 | }; | |
25106 | ||
994141e6 | 25107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25110 | arg2 = (int) SWIG_AsInt(obj1); | |
25111 | if (PyErr_Occurred()) SWIG_fail; | |
25112 | arg3 = (int) SWIG_AsInt(obj2); | |
25113 | if (PyErr_Occurred()) SWIG_fail; | |
25114 | arg4 = (int) SWIG_AsInt(obj3); | |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25116 | { |
25117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25118 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25119 | ||
25120 | wxPyEndAllowThreads(__tstate); | |
25121 | if (PyErr_Occurred()) SWIG_fail; | |
25122 | } | |
4f89f6a3 RD |
25123 | { |
25124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25125 | } | |
d14a1e28 RD |
25126 | return resultobj; |
25127 | fail: | |
25128 | return NULL; | |
25129 | } | |
25130 | ||
25131 | ||
25132 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25133 | PyObject *resultobj; | |
25134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25135 | int arg2 ; | |
25136 | bool result; | |
25137 | PyObject * obj0 = 0 ; | |
994141e6 | 25138 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
25139 | char *kwnames[] = { |
25140 | (char *) "self",(char *) "hotkeyId", NULL | |
25141 | }; | |
25142 | ||
994141e6 | 25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25146 | arg2 = (int) SWIG_AsInt(obj1); | |
25147 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25148 | { |
25149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25150 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25151 | ||
25152 | wxPyEndAllowThreads(__tstate); | |
25153 | if (PyErr_Occurred()) SWIG_fail; | |
25154 | } | |
4f89f6a3 RD |
25155 | { |
25156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25157 | } | |
d14a1e28 RD |
25158 | return resultobj; |
25159 | fail: | |
25160 | return NULL; | |
25161 | } | |
25162 | ||
25163 | ||
25164 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25165 | PyObject *resultobj; | |
25166 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25167 | wxPoint *arg2 = 0 ; | |
25168 | wxPoint result; | |
25169 | wxPoint temp2 ; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | PyObject * obj1 = 0 ; | |
25172 | char *kwnames[] = { | |
25173 | (char *) "self",(char *) "pt", NULL | |
25174 | }; | |
25175 | ||
25176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25179 | { |
25180 | arg2 = &temp2; | |
25181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25182 | } | |
25183 | { | |
25184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25185 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25186 | ||
25187 | wxPyEndAllowThreads(__tstate); | |
25188 | if (PyErr_Occurred()) SWIG_fail; | |
25189 | } | |
25190 | { | |
25191 | wxPoint * resultptr; | |
25192 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25193 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25194 | } |
25195 | return resultobj; | |
25196 | fail: | |
25197 | return NULL; | |
25198 | } | |
25199 | ||
25200 | ||
25201 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25202 | PyObject *resultobj; | |
25203 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25204 | wxSize *arg2 = 0 ; | |
25205 | wxSize result; | |
25206 | wxSize temp2 ; | |
25207 | PyObject * obj0 = 0 ; | |
25208 | PyObject * obj1 = 0 ; | |
25209 | char *kwnames[] = { | |
25210 | (char *) "self",(char *) "sz", NULL | |
25211 | }; | |
25212 | ||
25213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25216 | { |
25217 | arg2 = &temp2; | |
25218 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25219 | } | |
25220 | { | |
25221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25222 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25223 | ||
25224 | wxPyEndAllowThreads(__tstate); | |
25225 | if (PyErr_Occurred()) SWIG_fail; | |
25226 | } | |
25227 | { | |
25228 | wxSize * resultptr; | |
25229 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25230 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25231 | } |
25232 | return resultobj; | |
25233 | fail: | |
25234 | return NULL; | |
25235 | } | |
25236 | ||
25237 | ||
25238 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25239 | PyObject *resultobj; | |
25240 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25241 | wxPoint *arg2 = 0 ; | |
25242 | wxPoint result; | |
25243 | wxPoint temp2 ; | |
25244 | PyObject * obj0 = 0 ; | |
25245 | PyObject * obj1 = 0 ; | |
25246 | char *kwnames[] = { | |
25247 | (char *) "self",(char *) "pt", NULL | |
25248 | }; | |
25249 | ||
25250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25253 | { |
25254 | arg2 = &temp2; | |
25255 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25256 | } | |
25257 | { | |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | { | |
25265 | wxPoint * resultptr; | |
25266 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25267 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25268 | } |
25269 | return resultobj; | |
25270 | fail: | |
25271 | return NULL; | |
25272 | } | |
25273 | ||
25274 | ||
25275 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25276 | PyObject *resultobj; | |
25277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25278 | wxSize *arg2 = 0 ; | |
25279 | wxSize result; | |
25280 | wxSize temp2 ; | |
25281 | PyObject * obj0 = 0 ; | |
25282 | PyObject * obj1 = 0 ; | |
25283 | char *kwnames[] = { | |
25284 | (char *) "self",(char *) "sz", NULL | |
25285 | }; | |
25286 | ||
25287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25290 | { |
25291 | arg2 = &temp2; | |
25292 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25293 | } | |
25294 | { | |
25295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25296 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25297 | ||
25298 | wxPyEndAllowThreads(__tstate); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
25300 | } | |
25301 | { | |
25302 | wxSize * resultptr; | |
25303 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25304 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25305 | } |
25306 | return resultobj; | |
25307 | fail: | |
25308 | return NULL; | |
25309 | } | |
25310 | ||
25311 | ||
25312 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25313 | PyObject *resultobj; | |
25314 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25315 | wxPoint *arg2 = 0 ; | |
25316 | wxPoint result; | |
25317 | wxPoint temp2 ; | |
25318 | PyObject * obj0 = 0 ; | |
25319 | PyObject * obj1 = 0 ; | |
25320 | char *kwnames[] = { | |
25321 | (char *) "self",(char *) "pt", NULL | |
25322 | }; | |
25323 | ||
25324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25327 | { |
25328 | arg2 = &temp2; | |
25329 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25330 | } | |
25331 | { | |
25332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25333 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25334 | ||
25335 | wxPyEndAllowThreads(__tstate); | |
25336 | if (PyErr_Occurred()) SWIG_fail; | |
25337 | } | |
25338 | { | |
25339 | wxPoint * resultptr; | |
25340 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 25341 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
25342 | } |
25343 | return resultobj; | |
25344 | fail: | |
25345 | return NULL; | |
25346 | } | |
25347 | ||
25348 | ||
25349 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25350 | PyObject *resultobj; | |
25351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25352 | wxSize *arg2 = 0 ; | |
25353 | wxSize result; | |
25354 | wxSize temp2 ; | |
25355 | PyObject * obj0 = 0 ; | |
25356 | PyObject * obj1 = 0 ; | |
25357 | char *kwnames[] = { | |
25358 | (char *) "self",(char *) "sz", NULL | |
25359 | }; | |
25360 | ||
25361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25364 | { |
25365 | arg2 = &temp2; | |
25366 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25367 | } | |
25368 | { | |
25369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25370 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25371 | ||
25372 | wxPyEndAllowThreads(__tstate); | |
25373 | if (PyErr_Occurred()) SWIG_fail; | |
25374 | } | |
25375 | { | |
25376 | wxSize * resultptr; | |
25377 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 25378 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
25379 | } |
25380 | return resultobj; | |
25381 | fail: | |
25382 | return NULL; | |
25383 | } | |
25384 | ||
25385 | ||
25386 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25387 | PyObject *resultobj; | |
25388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25389 | int arg2 ; | |
25390 | int arg3 ; | |
25391 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25392 | PyObject * obj1 = 0 ; |
25393 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
25394 | char *kwnames[] = { |
25395 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25396 | }; | |
25397 | ||
994141e6 | 25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25401 | arg2 = (int) SWIG_AsInt(obj1); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | arg3 = (int) SWIG_AsInt(obj2); | |
25404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25405 | { |
25406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25407 | (arg1)->WarpPointer(arg2,arg3); | |
25408 | ||
25409 | wxPyEndAllowThreads(__tstate); | |
25410 | if (PyErr_Occurred()) SWIG_fail; | |
25411 | } | |
25412 | Py_INCREF(Py_None); resultobj = Py_None; | |
25413 | return resultobj; | |
25414 | fail: | |
25415 | return NULL; | |
25416 | } | |
25417 | ||
25418 | ||
25419 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25420 | PyObject *resultobj; | |
25421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25422 | PyObject * obj0 = 0 ; | |
25423 | char *kwnames[] = { | |
25424 | (char *) "self", NULL | |
25425 | }; | |
25426 | ||
25427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25430 | { |
25431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25432 | (arg1)->CaptureMouse(); | |
25433 | ||
25434 | wxPyEndAllowThreads(__tstate); | |
25435 | if (PyErr_Occurred()) SWIG_fail; | |
25436 | } | |
25437 | Py_INCREF(Py_None); resultobj = Py_None; | |
25438 | return resultobj; | |
25439 | fail: | |
25440 | return NULL; | |
25441 | } | |
25442 | ||
25443 | ||
25444 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25445 | PyObject *resultobj; | |
25446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25447 | PyObject * obj0 = 0 ; | |
25448 | char *kwnames[] = { | |
25449 | (char *) "self", NULL | |
25450 | }; | |
25451 | ||
25452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25455 | { |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25457 | (arg1)->ReleaseMouse(); | |
25458 | ||
25459 | wxPyEndAllowThreads(__tstate); | |
25460 | if (PyErr_Occurred()) SWIG_fail; | |
25461 | } | |
25462 | Py_INCREF(Py_None); resultobj = Py_None; | |
25463 | return resultobj; | |
25464 | fail: | |
25465 | return NULL; | |
25466 | } | |
25467 | ||
25468 | ||
25469 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25470 | PyObject *resultobj; | |
25471 | wxWindow *result; | |
25472 | char *kwnames[] = { | |
25473 | NULL | |
25474 | }; | |
25475 | ||
25476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25477 | { | |
25478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25479 | result = (wxWindow *)wxWindow::GetCapture(); | |
25480 | ||
25481 | wxPyEndAllowThreads(__tstate); | |
25482 | if (PyErr_Occurred()) SWIG_fail; | |
25483 | } | |
25484 | { | |
25485 | resultobj = wxPyMake_wxObject(result); | |
25486 | } | |
25487 | return resultobj; | |
25488 | fail: | |
25489 | return NULL; | |
25490 | } | |
25491 | ||
25492 | ||
25493 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25494 | PyObject *resultobj; | |
25495 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25496 | bool result; | |
25497 | PyObject * obj0 = 0 ; | |
25498 | char *kwnames[] = { | |
25499 | (char *) "self", NULL | |
25500 | }; | |
25501 | ||
25502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25505 | { |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
4f89f6a3 RD |
25512 | { |
25513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25514 | } | |
d14a1e28 RD |
25515 | return resultobj; |
25516 | fail: | |
25517 | return NULL; | |
25518 | } | |
25519 | ||
25520 | ||
25521 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25522 | PyObject *resultobj; | |
25523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25524 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25525 | wxRect *arg3 = (wxRect *) NULL ; |
25526 | PyObject * obj0 = 0 ; | |
25527 | PyObject * obj1 = 0 ; | |
25528 | PyObject * obj2 = 0 ; | |
25529 | char *kwnames[] = { | |
25530 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25531 | }; | |
25532 | ||
25533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 25536 | if (obj1) { |
15afbcd0 RD |
25537 | arg2 = (bool) SWIG_AsBool(obj1); |
25538 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25539 | } |
25540 | if (obj2) { | |
15afbcd0 RD |
25541 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, |
25542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25543 | } |
25544 | { | |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25547 | ||
25548 | wxPyEndAllowThreads(__tstate); | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | } | |
25551 | Py_INCREF(Py_None); resultobj = Py_None; | |
25552 | return resultobj; | |
25553 | fail: | |
25554 | return NULL; | |
25555 | } | |
25556 | ||
25557 | ||
25558 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25559 | PyObject *resultobj; | |
25560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25561 | wxRect *arg2 = 0 ; | |
25562 | wxRect temp2 ; | |
25563 | PyObject * obj0 = 0 ; | |
25564 | PyObject * obj1 = 0 ; | |
25565 | char *kwnames[] = { | |
25566 | (char *) "self",(char *) "rect", NULL | |
25567 | }; | |
25568 | ||
25569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25572 | { |
25573 | arg2 = &temp2; | |
25574 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25575 | } | |
25576 | { | |
25577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25578 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25579 | ||
25580 | wxPyEndAllowThreads(__tstate); | |
25581 | if (PyErr_Occurred()) SWIG_fail; | |
25582 | } | |
25583 | Py_INCREF(Py_None); resultobj = Py_None; | |
25584 | return resultobj; | |
25585 | fail: | |
25586 | return NULL; | |
25587 | } | |
25588 | ||
25589 | ||
25590 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25591 | PyObject *resultobj; | |
25592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25593 | PyObject * obj0 = 0 ; | |
25594 | char *kwnames[] = { | |
25595 | (char *) "self", NULL | |
25596 | }; | |
25597 | ||
25598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25601 | { |
25602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25603 | (arg1)->Update(); | |
25604 | ||
25605 | wxPyEndAllowThreads(__tstate); | |
25606 | if (PyErr_Occurred()) SWIG_fail; | |
25607 | } | |
25608 | Py_INCREF(Py_None); resultobj = Py_None; | |
25609 | return resultobj; | |
25610 | fail: | |
25611 | return NULL; | |
25612 | } | |
25613 | ||
25614 | ||
25615 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25616 | PyObject *resultobj; | |
25617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25618 | PyObject * obj0 = 0 ; | |
25619 | char *kwnames[] = { | |
25620 | (char *) "self", NULL | |
25621 | }; | |
25622 | ||
25623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25626 | { |
25627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25628 | (arg1)->ClearBackground(); | |
25629 | ||
25630 | wxPyEndAllowThreads(__tstate); | |
25631 | if (PyErr_Occurred()) SWIG_fail; | |
25632 | } | |
25633 | Py_INCREF(Py_None); resultobj = Py_None; | |
25634 | return resultobj; | |
25635 | fail: | |
25636 | return NULL; | |
25637 | } | |
25638 | ||
25639 | ||
25640 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25641 | PyObject *resultobj; | |
25642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25643 | PyObject * obj0 = 0 ; | |
25644 | char *kwnames[] = { | |
25645 | (char *) "self", NULL | |
25646 | }; | |
25647 | ||
25648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25651 | { |
25652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25653 | (arg1)->Freeze(); | |
25654 | ||
25655 | wxPyEndAllowThreads(__tstate); | |
25656 | if (PyErr_Occurred()) SWIG_fail; | |
25657 | } | |
25658 | Py_INCREF(Py_None); resultobj = Py_None; | |
25659 | return resultobj; | |
25660 | fail: | |
25661 | return NULL; | |
25662 | } | |
25663 | ||
25664 | ||
25665 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25666 | PyObject *resultobj; | |
25667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25668 | PyObject * obj0 = 0 ; | |
25669 | char *kwnames[] = { | |
25670 | (char *) "self", NULL | |
25671 | }; | |
25672 | ||
25673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25676 | { |
25677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25678 | (arg1)->Thaw(); | |
25679 | ||
25680 | wxPyEndAllowThreads(__tstate); | |
25681 | if (PyErr_Occurred()) SWIG_fail; | |
25682 | } | |
25683 | Py_INCREF(Py_None); resultobj = Py_None; | |
25684 | return resultobj; | |
25685 | fail: | |
25686 | return NULL; | |
25687 | } | |
25688 | ||
25689 | ||
25690 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25691 | PyObject *resultobj; | |
25692 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25693 | wxDC *arg2 = 0 ; | |
25694 | PyObject * obj0 = 0 ; | |
25695 | PyObject * obj1 = 0 ; | |
25696 | char *kwnames[] = { | |
25697 | (char *) "self",(char *) "dc", NULL | |
25698 | }; | |
25699 | ||
25700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25705 | SWIG_fail; | |
d14a1e28 | 25706 | if (arg2 == NULL) { |
15afbcd0 RD |
25707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25708 | SWIG_fail; | |
d14a1e28 RD |
25709 | } |
25710 | { | |
25711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25712 | (arg1)->PrepareDC(*arg2); | |
25713 | ||
25714 | wxPyEndAllowThreads(__tstate); | |
25715 | if (PyErr_Occurred()) SWIG_fail; | |
25716 | } | |
25717 | Py_INCREF(Py_None); resultobj = Py_None; | |
25718 | return resultobj; | |
25719 | fail: | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
25724 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25725 | PyObject *resultobj; | |
25726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25727 | wxRegion *result; | |
25728 | PyObject * obj0 = 0 ; | |
25729 | char *kwnames[] = { | |
25730 | (char *) "self", NULL | |
25731 | }; | |
25732 | ||
25733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",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 | { | |
25739 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25740 | result = (wxRegion *) &_result_ref; | |
25741 | } | |
25742 | ||
25743 | wxPyEndAllowThreads(__tstate); | |
25744 | if (PyErr_Occurred()) SWIG_fail; | |
25745 | } | |
15afbcd0 | 25746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); |
d14a1e28 RD |
25747 | return resultobj; |
25748 | fail: | |
25749 | return NULL; | |
25750 | } | |
25751 | ||
25752 | ||
25753 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25754 | PyObject *resultobj; | |
25755 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25756 | wxRect result; | |
25757 | PyObject * obj0 = 0 ; | |
25758 | char *kwnames[] = { | |
25759 | (char *) "self", NULL | |
25760 | }; | |
25761 | ||
25762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25765 | { |
25766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25767 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25768 | ||
25769 | wxPyEndAllowThreads(__tstate); | |
25770 | if (PyErr_Occurred()) SWIG_fail; | |
25771 | } | |
25772 | { | |
25773 | wxRect * resultptr; | |
25774 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 25775 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
25776 | } |
25777 | return resultobj; | |
25778 | fail: | |
25779 | return NULL; | |
25780 | } | |
25781 | ||
25782 | ||
25783 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25784 | PyObject *resultobj; | |
25785 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25786 | int arg2 ; | |
25787 | int arg3 ; | |
25788 | int arg4 = (int) 1 ; | |
25789 | int arg5 = (int) 1 ; | |
25790 | bool result; | |
25791 | PyObject * obj0 = 0 ; | |
994141e6 RD |
25792 | PyObject * obj1 = 0 ; |
25793 | PyObject * obj2 = 0 ; | |
25794 | PyObject * obj3 = 0 ; | |
25795 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
25796 | char *kwnames[] = { |
25797 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25798 | }; | |
25799 | ||
994141e6 | 25800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
25801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25803 | arg2 = (int) SWIG_AsInt(obj1); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | arg3 = (int) SWIG_AsInt(obj2); | |
25806 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25807 | if (obj3) { |
15afbcd0 RD |
25808 | arg4 = (int) SWIG_AsInt(obj3); |
25809 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
25810 | } |
25811 | if (obj4) { | |
15afbcd0 RD |
25812 | arg5 = (int) SWIG_AsInt(obj4); |
25813 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25814 | } |
d14a1e28 RD |
25815 | { |
25816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25817 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25818 | ||
25819 | wxPyEndAllowThreads(__tstate); | |
25820 | if (PyErr_Occurred()) SWIG_fail; | |
25821 | } | |
4f89f6a3 RD |
25822 | { |
25823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25824 | } | |
d14a1e28 RD |
25825 | return resultobj; |
25826 | fail: | |
25827 | return NULL; | |
25828 | } | |
25829 | ||
25830 | ||
25831 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25832 | PyObject *resultobj; | |
25833 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25834 | wxPoint *arg2 = 0 ; | |
25835 | bool result; | |
25836 | wxPoint temp2 ; | |
25837 | PyObject * obj0 = 0 ; | |
25838 | PyObject * obj1 = 0 ; | |
25839 | char *kwnames[] = { | |
25840 | (char *) "self",(char *) "pt", NULL | |
25841 | }; | |
25842 | ||
25843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25846 | { |
25847 | arg2 = &temp2; | |
25848 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25849 | } | |
25850 | { | |
25851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25852 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25853 | ||
25854 | wxPyEndAllowThreads(__tstate); | |
25855 | if (PyErr_Occurred()) SWIG_fail; | |
25856 | } | |
4f89f6a3 RD |
25857 | { |
25858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25859 | } | |
d14a1e28 RD |
25860 | return resultobj; |
25861 | fail: | |
25862 | return NULL; | |
25863 | } | |
25864 | ||
25865 | ||
4276dc52 | 25866 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
25867 | PyObject *resultobj; |
25868 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25869 | wxRect *arg2 = 0 ; | |
25870 | bool result; | |
25871 | wxRect temp2 ; | |
25872 | PyObject * obj0 = 0 ; | |
25873 | PyObject * obj1 = 0 ; | |
25874 | char *kwnames[] = { | |
25875 | (char *) "self",(char *) "rect", NULL | |
25876 | }; | |
25877 | ||
4276dc52 | 25878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
25879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25881 | { |
25882 | arg2 = &temp2; | |
25883 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25884 | } | |
25885 | { | |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
4f89f6a3 RD |
25892 | { |
25893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25894 | } | |
d14a1e28 RD |
25895 | return resultobj; |
25896 | fail: | |
25897 | return NULL; | |
25898 | } | |
25899 | ||
25900 | ||
74a57fcd RD |
25901 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
25902 | PyObject *resultobj; | |
25903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25904 | wxVisualAttributes result; | |
25905 | PyObject * obj0 = 0 ; | |
25906 | char *kwnames[] = { | |
25907 | (char *) "self", NULL | |
25908 | }; | |
25909 | ||
25910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25913 | { | |
25914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25915 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25916 | ||
25917 | wxPyEndAllowThreads(__tstate); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
25920 | { | |
25921 | wxVisualAttributes * resultptr; | |
25922 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25923 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25924 | } | |
25925 | return resultobj; | |
25926 | fail: | |
25927 | return NULL; | |
25928 | } | |
25929 | ||
25930 | ||
25931 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25932 | PyObject *resultobj; | |
25933 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25934 | wxVisualAttributes result; | |
25935 | PyObject * obj0 = 0 ; | |
25936 | char *kwnames[] = { | |
25937 | (char *) "variant", NULL | |
25938 | }; | |
25939 | ||
25940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25941 | if (obj0) { | |
25942 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
25944 | } | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25947 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25948 | ||
25949 | wxPyEndAllowThreads(__tstate); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | { | |
25953 | wxVisualAttributes * resultptr; | |
25954 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25955 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25956 | } | |
25957 | return resultobj; | |
25958 | fail: | |
25959 | return NULL; | |
25960 | } | |
25961 | ||
25962 | ||
d14a1e28 RD |
25963 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25964 | PyObject *resultobj; | |
25965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25966 | wxColour *arg2 = 0 ; | |
25967 | bool result; | |
25968 | wxColour temp2 ; | |
25969 | PyObject * obj0 = 0 ; | |
25970 | PyObject * obj1 = 0 ; | |
25971 | char *kwnames[] = { | |
25972 | (char *) "self",(char *) "colour", NULL | |
25973 | }; | |
25974 | ||
25975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
25977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25978 | { |
25979 | arg2 = &temp2; | |
25980 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25981 | } | |
25982 | { | |
25983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25984 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25985 | ||
25986 | wxPyEndAllowThreads(__tstate); | |
25987 | if (PyErr_Occurred()) SWIG_fail; | |
25988 | } | |
4f89f6a3 RD |
25989 | { |
25990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25991 | } | |
d14a1e28 RD |
25992 | return resultobj; |
25993 | fail: | |
25994 | return NULL; | |
25995 | } | |
25996 | ||
25997 | ||
b2df227b RD |
25998 | static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
25999 | PyObject *resultobj; | |
26000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26001 | wxColour *arg2 = 0 ; | |
26002 | wxColour temp2 ; | |
26003 | PyObject * obj0 = 0 ; | |
26004 | PyObject * obj1 = 0 ; | |
26005 | char *kwnames[] = { | |
26006 | (char *) "self",(char *) "colour", NULL | |
26007 | }; | |
26008 | ||
26009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26012 | { | |
26013 | arg2 = &temp2; | |
26014 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26015 | } | |
26016 | { | |
26017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26018 | (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); | |
26019 | ||
26020 | wxPyEndAllowThreads(__tstate); | |
26021 | if (PyErr_Occurred()) SWIG_fail; | |
26022 | } | |
26023 | Py_INCREF(Py_None); resultobj = Py_None; | |
26024 | return resultobj; | |
26025 | fail: | |
26026 | return NULL; | |
26027 | } | |
26028 | ||
26029 | ||
d14a1e28 RD |
26030 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26031 | PyObject *resultobj; | |
26032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26033 | wxColour *arg2 = 0 ; | |
26034 | bool result; | |
26035 | wxColour temp2 ; | |
26036 | PyObject * obj0 = 0 ; | |
26037 | PyObject * obj1 = 0 ; | |
26038 | char *kwnames[] = { | |
26039 | (char *) "self",(char *) "colour", NULL | |
26040 | }; | |
26041 | ||
26042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26045 | { |
26046 | arg2 = &temp2; | |
26047 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26048 | } | |
26049 | { | |
26050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26051 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26052 | ||
26053 | wxPyEndAllowThreads(__tstate); | |
26054 | if (PyErr_Occurred()) SWIG_fail; | |
26055 | } | |
4f89f6a3 RD |
26056 | { |
26057 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26058 | } | |
d14a1e28 RD |
26059 | return resultobj; |
26060 | fail: | |
26061 | return NULL; | |
26062 | } | |
26063 | ||
26064 | ||
b2df227b RD |
26065 | static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26066 | PyObject *resultobj; | |
26067 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26068 | wxColour *arg2 = 0 ; | |
26069 | wxColour temp2 ; | |
26070 | PyObject * obj0 = 0 ; | |
26071 | PyObject * obj1 = 0 ; | |
26072 | char *kwnames[] = { | |
26073 | (char *) "self",(char *) "colour", NULL | |
26074 | }; | |
26075 | ||
26076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26079 | { | |
26080 | arg2 = &temp2; | |
26081 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26082 | } | |
26083 | { | |
26084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26085 | (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); | |
26086 | ||
26087 | wxPyEndAllowThreads(__tstate); | |
26088 | if (PyErr_Occurred()) SWIG_fail; | |
26089 | } | |
26090 | Py_INCREF(Py_None); resultobj = Py_None; | |
26091 | return resultobj; | |
26092 | fail: | |
26093 | return NULL; | |
26094 | } | |
26095 | ||
26096 | ||
d14a1e28 RD |
26097 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
26098 | PyObject *resultobj; | |
26099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26100 | wxColour result; | |
26101 | PyObject * obj0 = 0 ; | |
26102 | char *kwnames[] = { | |
26103 | (char *) "self", NULL | |
26104 | }; | |
26105 | ||
26106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26109 | { |
26110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26111 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26112 | ||
26113 | wxPyEndAllowThreads(__tstate); | |
26114 | if (PyErr_Occurred()) SWIG_fail; | |
26115 | } | |
26116 | { | |
26117 | wxColour * resultptr; | |
26118 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26120 | } |
26121 | return resultobj; | |
26122 | fail: | |
26123 | return NULL; | |
26124 | } | |
26125 | ||
26126 | ||
26127 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26128 | PyObject *resultobj; | |
26129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26130 | wxColour result; | |
26131 | PyObject * obj0 = 0 ; | |
26132 | char *kwnames[] = { | |
26133 | (char *) "self", NULL | |
26134 | }; | |
26135 | ||
26136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26139 | { |
26140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26141 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26142 | ||
26143 | wxPyEndAllowThreads(__tstate); | |
26144 | if (PyErr_Occurred()) SWIG_fail; | |
26145 | } | |
26146 | { | |
26147 | wxColour * resultptr; | |
26148 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 26149 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
26150 | } |
26151 | return resultobj; | |
26152 | fail: | |
26153 | return NULL; | |
26154 | } | |
26155 | ||
26156 | ||
26157 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26158 | PyObject *resultobj; | |
26159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26160 | wxCursor *arg2 = 0 ; | |
26161 | bool result; | |
26162 | PyObject * obj0 = 0 ; | |
26163 | PyObject * obj1 = 0 ; | |
26164 | char *kwnames[] = { | |
26165 | (char *) "self",(char *) "cursor", NULL | |
26166 | }; | |
26167 | ||
26168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26171 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26172 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26173 | SWIG_fail; | |
d14a1e28 | 26174 | if (arg2 == NULL) { |
15afbcd0 RD |
26175 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26176 | SWIG_fail; | |
d14a1e28 RD |
26177 | } |
26178 | { | |
26179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26180 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26181 | ||
26182 | wxPyEndAllowThreads(__tstate); | |
26183 | if (PyErr_Occurred()) SWIG_fail; | |
26184 | } | |
4f89f6a3 RD |
26185 | { |
26186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26187 | } | |
d14a1e28 RD |
26188 | return resultobj; |
26189 | fail: | |
26190 | return NULL; | |
26191 | } | |
26192 | ||
26193 | ||
26194 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26195 | PyObject *resultobj; | |
26196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26197 | wxCursor *result; | |
26198 | PyObject * obj0 = 0 ; | |
26199 | char *kwnames[] = { | |
26200 | (char *) "self", NULL | |
26201 | }; | |
26202 | ||
26203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26206 | { |
26207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26208 | { | |
26209 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26210 | result = (wxCursor *) &_result_ref; | |
26211 | } | |
26212 | ||
26213 | wxPyEndAllowThreads(__tstate); | |
26214 | if (PyErr_Occurred()) SWIG_fail; | |
26215 | } | |
4276dc52 RD |
26216 | { |
26217 | wxCursor* resultptr = new wxCursor(*result); | |
26218 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26219 | } | |
d14a1e28 RD |
26220 | return resultobj; |
26221 | fail: | |
26222 | return NULL; | |
26223 | } | |
26224 | ||
26225 | ||
26226 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26227 | PyObject *resultobj; | |
26228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26229 | wxFont *arg2 = 0 ; | |
26230 | bool result; | |
26231 | PyObject * obj0 = 0 ; | |
26232 | PyObject * obj1 = 0 ; | |
26233 | char *kwnames[] = { | |
26234 | (char *) "self",(char *) "font", NULL | |
26235 | }; | |
26236 | ||
26237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26241 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26242 | SWIG_fail; | |
d14a1e28 | 26243 | if (arg2 == NULL) { |
15afbcd0 RD |
26244 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26245 | SWIG_fail; | |
d14a1e28 RD |
26246 | } |
26247 | { | |
26248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26249 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26250 | ||
26251 | wxPyEndAllowThreads(__tstate); | |
26252 | if (PyErr_Occurred()) SWIG_fail; | |
26253 | } | |
4f89f6a3 RD |
26254 | { |
26255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26256 | } | |
d14a1e28 RD |
26257 | return resultobj; |
26258 | fail: | |
26259 | return NULL; | |
26260 | } | |
26261 | ||
26262 | ||
b2df227b RD |
26263 | static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
26264 | PyObject *resultobj; | |
26265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26266 | wxFont *arg2 = 0 ; | |
26267 | PyObject * obj0 = 0 ; | |
26268 | PyObject * obj1 = 0 ; | |
26269 | char *kwnames[] = { | |
26270 | (char *) "self",(char *) "font", NULL | |
26271 | }; | |
26272 | ||
26273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; | |
26274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26277 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26278 | SWIG_fail; | |
26279 | if (arg2 == NULL) { | |
26280 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26281 | SWIG_fail; | |
26282 | } | |
26283 | { | |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26285 | (arg1)->SetDefaultFont((wxFont const &)*arg2); | |
26286 | ||
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | Py_INCREF(Py_None); resultobj = Py_None; | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
d14a1e28 RD |
26297 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
26298 | PyObject *resultobj; | |
26299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26300 | wxFont *result; | |
26301 | PyObject * obj0 = 0 ; | |
26302 | char *kwnames[] = { | |
26303 | (char *) "self", NULL | |
26304 | }; | |
26305 | ||
26306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26309 | { |
26310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26311 | { | |
26312 | wxFont &_result_ref = (arg1)->GetFont(); | |
26313 | result = (wxFont *) &_result_ref; | |
26314 | } | |
26315 | ||
26316 | wxPyEndAllowThreads(__tstate); | |
26317 | if (PyErr_Occurred()) SWIG_fail; | |
26318 | } | |
4276dc52 RD |
26319 | { |
26320 | wxFont* resultptr = new wxFont(*result); | |
26321 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26322 | } | |
d14a1e28 RD |
26323 | return resultobj; |
26324 | fail: | |
26325 | return NULL; | |
26326 | } | |
26327 | ||
26328 | ||
26329 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26330 | PyObject *resultobj; | |
26331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26332 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26333 | PyObject * obj0 = 0 ; | |
26334 | PyObject * obj1 = 0 ; | |
26335 | char *kwnames[] = { | |
26336 | (char *) "self",(char *) "caret", NULL | |
26337 | }; | |
26338 | ||
26339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26344 | { |
26345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26346 | (arg1)->SetCaret(arg2); | |
26347 | ||
26348 | wxPyEndAllowThreads(__tstate); | |
26349 | if (PyErr_Occurred()) SWIG_fail; | |
26350 | } | |
26351 | Py_INCREF(Py_None); resultobj = Py_None; | |
26352 | return resultobj; | |
26353 | fail: | |
26354 | return NULL; | |
26355 | } | |
26356 | ||
26357 | ||
26358 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26359 | PyObject *resultobj; | |
26360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26361 | wxCaret *result; | |
26362 | PyObject * obj0 = 0 ; | |
26363 | char *kwnames[] = { | |
26364 | (char *) "self", NULL | |
26365 | }; | |
26366 | ||
26367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26370 | { |
26371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26372 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26373 | ||
26374 | wxPyEndAllowThreads(__tstate); | |
26375 | if (PyErr_Occurred()) SWIG_fail; | |
26376 | } | |
15afbcd0 | 26377 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); |
d14a1e28 RD |
26378 | return resultobj; |
26379 | fail: | |
26380 | return NULL; | |
26381 | } | |
26382 | ||
26383 | ||
26384 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26385 | PyObject *resultobj; | |
26386 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26387 | int result; | |
26388 | PyObject * obj0 = 0 ; | |
26389 | char *kwnames[] = { | |
26390 | (char *) "self", NULL | |
26391 | }; | |
26392 | ||
26393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26396 | { |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26398 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26399 | ||
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
15afbcd0 | 26403 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26404 | return resultobj; |
26405 | fail: | |
26406 | return NULL; | |
26407 | } | |
26408 | ||
26409 | ||
26410 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26411 | PyObject *resultobj; | |
26412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26413 | int result; | |
26414 | PyObject * obj0 = 0 ; | |
26415 | char *kwnames[] = { | |
26416 | (char *) "self", NULL | |
26417 | }; | |
26418 | ||
26419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26422 | { |
26423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26424 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26425 | ||
26426 | wxPyEndAllowThreads(__tstate); | |
26427 | if (PyErr_Occurred()) SWIG_fail; | |
26428 | } | |
15afbcd0 | 26429 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26430 | return resultobj; |
26431 | fail: | |
26432 | return NULL; | |
26433 | } | |
26434 | ||
26435 | ||
26436 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26437 | PyObject *resultobj; | |
26438 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26439 | wxString *arg2 = 0 ; | |
26440 | int *arg3 = (int *) 0 ; | |
26441 | int *arg4 = (int *) 0 ; | |
e811c8ce | 26442 | bool temp2 = False ; |
d14a1e28 RD |
26443 | int temp3 ; |
26444 | int temp4 ; | |
26445 | PyObject * obj0 = 0 ; | |
26446 | PyObject * obj1 = 0 ; | |
26447 | char *kwnames[] = { | |
26448 | (char *) "self",(char *) "string", NULL | |
26449 | }; | |
26450 | ||
26451 | arg3 = &temp3; | |
26452 | arg4 = &temp4; | |
26453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26456 | { |
26457 | arg2 = wxString_in_helper(obj1); | |
26458 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26459 | temp2 = True; |
d14a1e28 RD |
26460 | } |
26461 | { | |
26462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26463 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26464 | ||
26465 | wxPyEndAllowThreads(__tstate); | |
26466 | if (PyErr_Occurred()) SWIG_fail; | |
26467 | } | |
26468 | Py_INCREF(Py_None); resultobj = Py_None; | |
26469 | { | |
26470 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26471 | resultobj = t_output_helper(resultobj,o); | |
26472 | } | |
26473 | { | |
26474 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26475 | resultobj = t_output_helper(resultobj,o); | |
26476 | } | |
26477 | { | |
26478 | if (temp2) | |
26479 | delete arg2; | |
26480 | } | |
26481 | return resultobj; | |
26482 | fail: | |
26483 | { | |
26484 | if (temp2) | |
26485 | delete arg2; | |
26486 | } | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
26491 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26492 | PyObject *resultobj; | |
26493 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26494 | wxString *arg2 = 0 ; | |
26495 | int *arg3 = (int *) 0 ; | |
26496 | int *arg4 = (int *) 0 ; | |
26497 | int *arg5 = (int *) 0 ; | |
26498 | int *arg6 = (int *) 0 ; | |
26499 | wxFont *arg7 = (wxFont *) NULL ; | |
e811c8ce | 26500 | bool temp2 = False ; |
d14a1e28 RD |
26501 | int temp3 ; |
26502 | int temp4 ; | |
26503 | int temp5 ; | |
26504 | int temp6 ; | |
26505 | PyObject * obj0 = 0 ; | |
26506 | PyObject * obj1 = 0 ; | |
26507 | PyObject * obj2 = 0 ; | |
26508 | char *kwnames[] = { | |
26509 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26510 | }; | |
26511 | ||
26512 | arg3 = &temp3; | |
26513 | arg4 = &temp4; | |
26514 | arg5 = &temp5; | |
26515 | arg6 = &temp6; | |
26516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26519 | { |
26520 | arg2 = wxString_in_helper(obj1); | |
26521 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26522 | temp2 = True; |
d14a1e28 RD |
26523 | } |
26524 | if (obj2) { | |
15afbcd0 RD |
26525 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, |
26526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26527 | } |
26528 | { | |
26529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26530 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26531 | ||
26532 | wxPyEndAllowThreads(__tstate); | |
26533 | if (PyErr_Occurred()) SWIG_fail; | |
26534 | } | |
26535 | Py_INCREF(Py_None); resultobj = Py_None; | |
26536 | { | |
26537 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26538 | resultobj = t_output_helper(resultobj,o); | |
26539 | } | |
26540 | { | |
26541 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26542 | resultobj = t_output_helper(resultobj,o); | |
26543 | } | |
26544 | { | |
26545 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26546 | resultobj = t_output_helper(resultobj,o); | |
26547 | } | |
26548 | { | |
26549 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26550 | resultobj = t_output_helper(resultobj,o); | |
26551 | } | |
26552 | { | |
26553 | if (temp2) | |
26554 | delete arg2; | |
26555 | } | |
26556 | return resultobj; | |
26557 | fail: | |
26558 | { | |
26559 | if (temp2) | |
26560 | delete arg2; | |
26561 | } | |
26562 | return NULL; | |
26563 | } | |
26564 | ||
26565 | ||
26566 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26567 | PyObject *resultobj; | |
26568 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26569 | int *arg2 = (int *) 0 ; | |
26570 | int *arg3 = (int *) 0 ; | |
26571 | int temp2 ; | |
26572 | int temp3 ; | |
26573 | PyObject * obj0 = 0 ; | |
26574 | PyObject * obj1 = 0 ; | |
26575 | PyObject * obj2 = 0 ; | |
26576 | char *kwnames[] = { | |
26577 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26578 | }; | |
26579 | ||
26580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26583 | { |
26584 | temp2 = PyInt_AsLong(obj1); | |
26585 | if (PyErr_Occurred()) SWIG_fail; | |
26586 | arg2 = &temp2; | |
26587 | } | |
26588 | { | |
26589 | temp3 = PyInt_AsLong(obj2); | |
26590 | if (PyErr_Occurred()) SWIG_fail; | |
26591 | arg3 = &temp3; | |
26592 | } | |
26593 | { | |
26594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26595 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26596 | ||
26597 | wxPyEndAllowThreads(__tstate); | |
26598 | if (PyErr_Occurred()) SWIG_fail; | |
26599 | } | |
26600 | Py_INCREF(Py_None); resultobj = Py_None; | |
26601 | { | |
26602 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26603 | resultobj = t_output_helper(resultobj,o); | |
26604 | } | |
26605 | { | |
26606 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26607 | resultobj = t_output_helper(resultobj,o); | |
26608 | } | |
26609 | return resultobj; | |
26610 | fail: | |
26611 | return NULL; | |
26612 | } | |
26613 | ||
26614 | ||
26615 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26616 | PyObject *resultobj; | |
26617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26618 | int *arg2 = (int *) 0 ; | |
26619 | int *arg3 = (int *) 0 ; | |
26620 | int temp2 ; | |
26621 | int temp3 ; | |
26622 | PyObject * obj0 = 0 ; | |
26623 | PyObject * obj1 = 0 ; | |
26624 | PyObject * obj2 = 0 ; | |
26625 | char *kwnames[] = { | |
26626 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26627 | }; | |
26628 | ||
26629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26632 | { |
26633 | temp2 = PyInt_AsLong(obj1); | |
26634 | if (PyErr_Occurred()) SWIG_fail; | |
26635 | arg2 = &temp2; | |
26636 | } | |
26637 | { | |
26638 | temp3 = PyInt_AsLong(obj2); | |
26639 | if (PyErr_Occurred()) SWIG_fail; | |
26640 | arg3 = &temp3; | |
26641 | } | |
26642 | { | |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | Py_INCREF(Py_None); resultobj = Py_None; | |
26650 | { | |
26651 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26652 | resultobj = t_output_helper(resultobj,o); | |
26653 | } | |
26654 | { | |
26655 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26656 | resultobj = t_output_helper(resultobj,o); | |
26657 | } | |
26658 | return resultobj; | |
26659 | fail: | |
26660 | return NULL; | |
26661 | } | |
26662 | ||
26663 | ||
26664 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26665 | PyObject *resultobj; | |
26666 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26667 | wxPoint *arg2 = 0 ; | |
26668 | wxPoint result; | |
26669 | wxPoint temp2 ; | |
26670 | PyObject * obj0 = 0 ; | |
26671 | PyObject * obj1 = 0 ; | |
26672 | char *kwnames[] = { | |
26673 | (char *) "self",(char *) "pt", NULL | |
26674 | }; | |
26675 | ||
26676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26679 | { |
26680 | arg2 = &temp2; | |
26681 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26682 | } | |
26683 | { | |
26684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26685 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26686 | ||
26687 | wxPyEndAllowThreads(__tstate); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
26689 | } | |
26690 | { | |
26691 | wxPoint * resultptr; | |
26692 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26694 | } |
26695 | return resultobj; | |
26696 | fail: | |
26697 | return NULL; | |
26698 | } | |
26699 | ||
26700 | ||
26701 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26702 | PyObject *resultobj; | |
26703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26704 | wxPoint *arg2 = 0 ; | |
26705 | wxPoint result; | |
26706 | wxPoint temp2 ; | |
26707 | PyObject * obj0 = 0 ; | |
26708 | PyObject * obj1 = 0 ; | |
26709 | char *kwnames[] = { | |
26710 | (char *) "self",(char *) "pt", NULL | |
26711 | }; | |
26712 | ||
26713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26716 | { |
26717 | arg2 = &temp2; | |
26718 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26719 | } | |
26720 | { | |
26721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26722 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26723 | ||
26724 | wxPyEndAllowThreads(__tstate); | |
26725 | if (PyErr_Occurred()) SWIG_fail; | |
26726 | } | |
26727 | { | |
26728 | wxPoint * resultptr; | |
26729 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 26730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
26731 | } |
26732 | return resultobj; | |
26733 | fail: | |
26734 | return NULL; | |
26735 | } | |
26736 | ||
26737 | ||
26738 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26739 | PyObject *resultobj; | |
26740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce RD |
26741 | int arg2 ; |
26742 | int arg3 ; | |
d14a1e28 RD |
26743 | int result; |
26744 | PyObject * obj0 = 0 ; | |
994141e6 RD |
26745 | PyObject * obj1 = 0 ; |
26746 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
26747 | char *kwnames[] = { |
26748 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26749 | }; | |
26750 | ||
994141e6 | 26751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
26752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26754 | arg2 = (int) SWIG_AsInt(obj1); | |
26755 | if (PyErr_Occurred()) SWIG_fail; | |
26756 | arg3 = (int) SWIG_AsInt(obj2); | |
26757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26758 | { |
26759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26760 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26761 | ||
26762 | wxPyEndAllowThreads(__tstate); | |
26763 | if (PyErr_Occurred()) SWIG_fail; | |
26764 | } | |
15afbcd0 | 26765 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26766 | return resultobj; |
26767 | fail: | |
26768 | return NULL; | |
26769 | } | |
26770 | ||
26771 | ||
26772 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26773 | PyObject *resultobj; | |
26774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26775 | wxPoint *arg2 = 0 ; | |
26776 | int result; | |
26777 | wxPoint temp2 ; | |
26778 | PyObject * obj0 = 0 ; | |
26779 | PyObject * obj1 = 0 ; | |
26780 | char *kwnames[] = { | |
26781 | (char *) "self",(char *) "pt", NULL | |
26782 | }; | |
26783 | ||
26784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26787 | { |
26788 | arg2 = &temp2; | |
26789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26790 | } | |
26791 | { | |
26792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26793 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26794 | ||
26795 | wxPyEndAllowThreads(__tstate); | |
26796 | if (PyErr_Occurred()) SWIG_fail; | |
26797 | } | |
15afbcd0 | 26798 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26799 | return resultobj; |
26800 | fail: | |
26801 | return NULL; | |
26802 | } | |
26803 | ||
26804 | ||
15afbcd0 | 26805 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26806 | PyObject *resultobj; |
26807 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26808 | long arg2 ; | |
26809 | int result; | |
26810 | PyObject * obj0 = 0 ; | |
994141e6 | 26811 | PyObject * obj1 = 0 ; |
d14a1e28 | 26812 | |
15afbcd0 RD |
26813 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; |
26814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26816 | arg2 = (long) SWIG_AsLong(obj1); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26818 | { |
26819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26820 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26821 | ||
26822 | wxPyEndAllowThreads(__tstate); | |
26823 | if (PyErr_Occurred()) SWIG_fail; | |
26824 | } | |
15afbcd0 | 26825 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26826 | return resultobj; |
26827 | fail: | |
26828 | return NULL; | |
26829 | } | |
26830 | ||
26831 | ||
15afbcd0 | 26832 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { |
d14a1e28 RD |
26833 | PyObject *resultobj; |
26834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26835 | int result; | |
26836 | PyObject * obj0 = 0 ; | |
d14a1e28 | 26837 | |
15afbcd0 RD |
26838 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; |
26839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26841 | { |
26842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26843 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26844 | ||
26845 | wxPyEndAllowThreads(__tstate); | |
26846 | if (PyErr_Occurred()) SWIG_fail; | |
26847 | } | |
15afbcd0 | 26848 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
26849 | return resultobj; |
26850 | fail: | |
26851 | return NULL; | |
26852 | } | |
26853 | ||
26854 | ||
15afbcd0 RD |
26855 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { |
26856 | int argc; | |
26857 | PyObject *argv[3]; | |
26858 | int ii; | |
26859 | ||
26860 | argc = PyObject_Length(args); | |
26861 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26862 | argv[ii] = PyTuple_GetItem(args,ii); | |
26863 | } | |
26864 | if (argc == 1) { | |
26865 | int _v; | |
26866 | { | |
26867 | void *ptr; | |
26868 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26869 | _v = 0; | |
26870 | PyErr_Clear(); | |
26871 | } else { | |
26872 | _v = 1; | |
26873 | } | |
26874 | } | |
26875 | if (_v) { | |
26876 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26877 | } | |
26878 | } | |
26879 | if (argc == 2) { | |
26880 | int _v; | |
26881 | { | |
26882 | void *ptr; | |
26883 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26884 | _v = 0; | |
26885 | PyErr_Clear(); | |
26886 | } else { | |
26887 | _v = 1; | |
26888 | } | |
26889 | } | |
26890 | if (_v) { | |
26891 | _v = SWIG_CheckLong(argv[1]); | |
26892 | if (_v) { | |
26893 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26894 | } | |
26895 | } | |
26896 | } | |
26897 | ||
26898 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26899 | return NULL; | |
26900 | } | |
26901 | ||
26902 | ||
d14a1e28 RD |
26903 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
26904 | PyObject *resultobj; | |
26905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26906 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26907 | PyObject * obj0 = 0 ; | |
994141e6 | 26908 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
26909 | char *kwnames[] = { |
26910 | (char *) "self",(char *) "flags", NULL | |
26911 | }; | |
26912 | ||
994141e6 | 26913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
26914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 26916 | if (obj1) { |
15afbcd0 RD |
26917 | arg2 = (long) SWIG_AsLong(obj1); |
26918 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26919 | } |
d14a1e28 RD |
26920 | { |
26921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26922 | (arg1)->UpdateWindowUI(arg2); | |
26923 | ||
26924 | wxPyEndAllowThreads(__tstate); | |
26925 | if (PyErr_Occurred()) SWIG_fail; | |
26926 | } | |
26927 | Py_INCREF(Py_None); resultobj = Py_None; | |
26928 | return resultobj; | |
26929 | fail: | |
26930 | return NULL; | |
26931 | } | |
26932 | ||
26933 | ||
26934 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26935 | PyObject *resultobj; | |
26936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26937 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26938 | int arg3 ; | |
26939 | int arg4 ; | |
26940 | bool result; | |
26941 | PyObject * obj0 = 0 ; | |
26942 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26943 | PyObject * obj2 = 0 ; |
26944 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26945 | char *kwnames[] = { |
26946 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26947 | }; | |
26948 | ||
994141e6 | 26949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
26950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26952 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26954 | arg3 = (int) SWIG_AsInt(obj2); | |
26955 | if (PyErr_Occurred()) SWIG_fail; | |
26956 | arg4 = (int) SWIG_AsInt(obj3); | |
26957 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26958 | { |
26959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26960 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26961 | ||
26962 | wxPyEndAllowThreads(__tstate); | |
26963 | if (PyErr_Occurred()) SWIG_fail; | |
26964 | } | |
4f89f6a3 RD |
26965 | { |
26966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26967 | } | |
d14a1e28 RD |
26968 | return resultobj; |
26969 | fail: | |
26970 | return NULL; | |
26971 | } | |
26972 | ||
26973 | ||
26974 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26975 | PyObject *resultobj; | |
26976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26977 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26978 | wxPoint *arg3 = 0 ; | |
26979 | bool result; | |
26980 | wxPoint temp3 ; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | PyObject * obj1 = 0 ; | |
26983 | PyObject * obj2 = 0 ; | |
26984 | char *kwnames[] = { | |
26985 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26986 | }; | |
26987 | ||
26988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26993 | { |
26994 | arg3 = &temp3; | |
26995 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26996 | } | |
26997 | { | |
26998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26999 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27000 | ||
27001 | wxPyEndAllowThreads(__tstate); | |
27002 | if (PyErr_Occurred()) SWIG_fail; | |
27003 | } | |
4f89f6a3 RD |
27004 | { |
27005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27006 | } | |
d14a1e28 RD |
27007 | return resultobj; |
27008 | fail: | |
27009 | return NULL; | |
27010 | } | |
27011 | ||
27012 | ||
27013 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27014 | PyObject *resultobj; | |
27015 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27016 | long result; | |
27017 | PyObject * obj0 = 0 ; | |
27018 | char *kwnames[] = { | |
27019 | (char *) "self", NULL | |
27020 | }; | |
27021 | ||
27022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27025 | { |
27026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27027 | result = (long)wxWindow_GetHandle(arg1); | |
27028 | ||
27029 | wxPyEndAllowThreads(__tstate); | |
27030 | if (PyErr_Occurred()) SWIG_fail; | |
27031 | } | |
15afbcd0 | 27032 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
27033 | return resultobj; |
27034 | fail: | |
27035 | return NULL; | |
27036 | } | |
27037 | ||
27038 | ||
27039 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27040 | PyObject *resultobj; | |
27041 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27042 | int arg2 ; | |
27043 | bool result; | |
27044 | PyObject * obj0 = 0 ; | |
994141e6 | 27045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27046 | char *kwnames[] = { |
27047 | (char *) "self",(char *) "orient", NULL | |
27048 | }; | |
27049 | ||
994141e6 | 27050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27053 | arg2 = (int) SWIG_AsInt(obj1); | |
27054 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27055 | { |
27056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27057 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27058 | ||
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
4f89f6a3 RD |
27062 | { |
27063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27064 | } | |
d14a1e28 RD |
27065 | return resultobj; |
27066 | fail: | |
27067 | return NULL; | |
27068 | } | |
27069 | ||
27070 | ||
27071 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27072 | PyObject *resultobj; | |
27073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27074 | int arg2 ; | |
27075 | int arg3 ; | |
27076 | int arg4 ; | |
27077 | int arg5 ; | |
e811c8ce | 27078 | bool arg6 = (bool) True ; |
d14a1e28 | 27079 | PyObject * obj0 = 0 ; |
994141e6 RD |
27080 | PyObject * obj1 = 0 ; |
27081 | PyObject * obj2 = 0 ; | |
27082 | PyObject * obj3 = 0 ; | |
27083 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27084 | PyObject * obj5 = 0 ; |
27085 | char *kwnames[] = { | |
15afbcd0 | 27086 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL |
d14a1e28 RD |
27087 | }; |
27088 | ||
994141e6 | 27089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27092 | arg2 = (int) SWIG_AsInt(obj1); | |
27093 | if (PyErr_Occurred()) SWIG_fail; | |
27094 | arg3 = (int) SWIG_AsInt(obj2); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | arg4 = (int) SWIG_AsInt(obj3); | |
27097 | if (PyErr_Occurred()) SWIG_fail; | |
27098 | arg5 = (int) SWIG_AsInt(obj4); | |
27099 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27100 | if (obj5) { |
15afbcd0 RD |
27101 | arg6 = (bool) SWIG_AsBool(obj5); |
27102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27103 | } |
27104 | { | |
27105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27106 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27107 | ||
27108 | wxPyEndAllowThreads(__tstate); | |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
27111 | Py_INCREF(Py_None); resultobj = Py_None; | |
27112 | return resultobj; | |
27113 | fail: | |
27114 | return NULL; | |
27115 | } | |
27116 | ||
27117 | ||
27118 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27119 | PyObject *resultobj; | |
27120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27121 | int arg2 ; | |
27122 | int arg3 ; | |
e811c8ce | 27123 | bool arg4 = (bool) True ; |
d14a1e28 | 27124 | PyObject * obj0 = 0 ; |
994141e6 RD |
27125 | PyObject * obj1 = 0 ; |
27126 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27127 | PyObject * obj3 = 0 ; |
27128 | char *kwnames[] = { | |
15afbcd0 | 27129 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL |
d14a1e28 RD |
27130 | }; |
27131 | ||
994141e6 | 27132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27135 | arg2 = (int) SWIG_AsInt(obj1); | |
27136 | if (PyErr_Occurred()) SWIG_fail; | |
27137 | arg3 = (int) SWIG_AsInt(obj2); | |
27138 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27139 | if (obj3) { |
15afbcd0 RD |
27140 | arg4 = (bool) SWIG_AsBool(obj3); |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27142 | } |
27143 | { | |
27144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27145 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27146 | ||
27147 | wxPyEndAllowThreads(__tstate); | |
27148 | if (PyErr_Occurred()) SWIG_fail; | |
27149 | } | |
27150 | Py_INCREF(Py_None); resultobj = Py_None; | |
27151 | return resultobj; | |
27152 | fail: | |
27153 | return NULL; | |
27154 | } | |
27155 | ||
27156 | ||
27157 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27158 | PyObject *resultobj; | |
27159 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27160 | int arg2 ; | |
27161 | int result; | |
27162 | PyObject * obj0 = 0 ; | |
994141e6 | 27163 | PyObject * obj1 = 0 ; |
d14a1e28 | 27164 | char *kwnames[] = { |
15afbcd0 | 27165 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27166 | }; |
27167 | ||
994141e6 | 27168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27171 | arg2 = (int) SWIG_AsInt(obj1); | |
27172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27173 | { |
27174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27175 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27176 | ||
27177 | wxPyEndAllowThreads(__tstate); | |
27178 | if (PyErr_Occurred()) SWIG_fail; | |
27179 | } | |
15afbcd0 | 27180 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27181 | return resultobj; |
27182 | fail: | |
27183 | return NULL; | |
27184 | } | |
27185 | ||
27186 | ||
27187 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27188 | PyObject *resultobj; | |
27189 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27190 | int arg2 ; | |
27191 | int result; | |
27192 | PyObject * obj0 = 0 ; | |
994141e6 | 27193 | PyObject * obj1 = 0 ; |
d14a1e28 | 27194 | char *kwnames[] = { |
15afbcd0 | 27195 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27196 | }; |
27197 | ||
994141e6 | 27198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27201 | arg2 = (int) SWIG_AsInt(obj1); | |
27202 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27203 | { |
27204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27205 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27206 | ||
27207 | wxPyEndAllowThreads(__tstate); | |
27208 | if (PyErr_Occurred()) SWIG_fail; | |
27209 | } | |
15afbcd0 | 27210 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27211 | return resultobj; |
27212 | fail: | |
27213 | return NULL; | |
27214 | } | |
27215 | ||
27216 | ||
27217 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27218 | PyObject *resultobj; | |
27219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27220 | int arg2 ; | |
27221 | int result; | |
27222 | PyObject * obj0 = 0 ; | |
994141e6 | 27223 | PyObject * obj1 = 0 ; |
d14a1e28 | 27224 | char *kwnames[] = { |
15afbcd0 | 27225 | (char *) "self",(char *) "orientation", NULL |
d14a1e28 RD |
27226 | }; |
27227 | ||
994141e6 | 27228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27231 | arg2 = (int) SWIG_AsInt(obj1); | |
27232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27233 | { |
27234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27235 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27236 | ||
27237 | wxPyEndAllowThreads(__tstate); | |
27238 | if (PyErr_Occurred()) SWIG_fail; | |
27239 | } | |
15afbcd0 | 27240 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27241 | return resultobj; |
27242 | fail: | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
27247 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27248 | PyObject *resultobj; | |
27249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27250 | int arg2 ; | |
27251 | int arg3 ; | |
27252 | wxRect *arg4 = (wxRect *) NULL ; | |
27253 | PyObject * obj0 = 0 ; | |
994141e6 RD |
27254 | PyObject * obj1 = 0 ; |
27255 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
27256 | PyObject * obj3 = 0 ; |
27257 | char *kwnames[] = { | |
27258 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27259 | }; | |
27260 | ||
994141e6 | 27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
27262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27264 | arg2 = (int) SWIG_AsInt(obj1); | |
27265 | if (PyErr_Occurred()) SWIG_fail; | |
27266 | arg3 = (int) SWIG_AsInt(obj2); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 27268 | if (obj3) { |
15afbcd0 RD |
27269 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, |
27270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27271 | } |
27272 | { | |
27273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27274 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27275 | ||
27276 | wxPyEndAllowThreads(__tstate); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | } | |
27279 | Py_INCREF(Py_None); resultobj = Py_None; | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
27286 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27287 | PyObject *resultobj; | |
27288 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27289 | int arg2 ; | |
27290 | bool result; | |
27291 | PyObject * obj0 = 0 ; | |
994141e6 | 27292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27293 | char *kwnames[] = { |
27294 | (char *) "self",(char *) "lines", NULL | |
27295 | }; | |
27296 | ||
994141e6 | 27297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27300 | arg2 = (int) SWIG_AsInt(obj1); | |
27301 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27302 | { |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | result = (bool)(arg1)->ScrollLines(arg2); | |
27305 | ||
27306 | wxPyEndAllowThreads(__tstate); | |
27307 | if (PyErr_Occurred()) SWIG_fail; | |
27308 | } | |
4f89f6a3 RD |
27309 | { |
27310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27311 | } | |
d14a1e28 RD |
27312 | return resultobj; |
27313 | fail: | |
27314 | return NULL; | |
27315 | } | |
27316 | ||
27317 | ||
27318 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27319 | PyObject *resultobj; | |
27320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27321 | int arg2 ; | |
27322 | bool result; | |
27323 | PyObject * obj0 = 0 ; | |
994141e6 | 27324 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27325 | char *kwnames[] = { |
27326 | (char *) "self",(char *) "pages", NULL | |
27327 | }; | |
27328 | ||
994141e6 | 27329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27332 | arg2 = (int) SWIG_AsInt(obj1); | |
27333 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27334 | { |
27335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27336 | result = (bool)(arg1)->ScrollPages(arg2); | |
27337 | ||
27338 | wxPyEndAllowThreads(__tstate); | |
27339 | if (PyErr_Occurred()) SWIG_fail; | |
27340 | } | |
4f89f6a3 RD |
27341 | { |
27342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27343 | } | |
d14a1e28 RD |
27344 | return resultobj; |
27345 | fail: | |
27346 | return NULL; | |
27347 | } | |
27348 | ||
27349 | ||
27350 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27351 | PyObject *resultobj; | |
27352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27353 | bool result; | |
27354 | PyObject * obj0 = 0 ; | |
27355 | char *kwnames[] = { | |
27356 | (char *) "self", NULL | |
27357 | }; | |
27358 | ||
27359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27362 | { |
27363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27364 | result = (bool)(arg1)->LineUp(); | |
27365 | ||
27366 | wxPyEndAllowThreads(__tstate); | |
27367 | if (PyErr_Occurred()) SWIG_fail; | |
27368 | } | |
4f89f6a3 RD |
27369 | { |
27370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27371 | } | |
d14a1e28 RD |
27372 | return resultobj; |
27373 | fail: | |
27374 | return NULL; | |
27375 | } | |
27376 | ||
27377 | ||
27378 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27379 | PyObject *resultobj; | |
27380 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27381 | bool result; | |
27382 | PyObject * obj0 = 0 ; | |
27383 | char *kwnames[] = { | |
27384 | (char *) "self", NULL | |
27385 | }; | |
27386 | ||
27387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27390 | { |
27391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27392 | result = (bool)(arg1)->LineDown(); | |
27393 | ||
27394 | wxPyEndAllowThreads(__tstate); | |
27395 | if (PyErr_Occurred()) SWIG_fail; | |
27396 | } | |
4f89f6a3 RD |
27397 | { |
27398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27399 | } | |
d14a1e28 RD |
27400 | return resultobj; |
27401 | fail: | |
27402 | return NULL; | |
27403 | } | |
27404 | ||
27405 | ||
27406 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27407 | PyObject *resultobj; | |
27408 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27409 | bool result; | |
27410 | PyObject * obj0 = 0 ; | |
27411 | char *kwnames[] = { | |
27412 | (char *) "self", NULL | |
27413 | }; | |
27414 | ||
27415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27418 | { |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27420 | result = (bool)(arg1)->PageUp(); | |
27421 | ||
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
4f89f6a3 RD |
27425 | { |
27426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27427 | } | |
d14a1e28 RD |
27428 | return resultobj; |
27429 | fail: | |
27430 | return NULL; | |
27431 | } | |
27432 | ||
27433 | ||
27434 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27435 | PyObject *resultobj; | |
27436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27437 | bool result; | |
27438 | PyObject * obj0 = 0 ; | |
27439 | char *kwnames[] = { | |
27440 | (char *) "self", NULL | |
27441 | }; | |
27442 | ||
27443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27446 | { |
27447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27448 | result = (bool)(arg1)->PageDown(); | |
27449 | ||
27450 | wxPyEndAllowThreads(__tstate); | |
27451 | if (PyErr_Occurred()) SWIG_fail; | |
27452 | } | |
4f89f6a3 RD |
27453 | { |
27454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27455 | } | |
d14a1e28 RD |
27456 | return resultobj; |
27457 | fail: | |
27458 | return NULL; | |
27459 | } | |
27460 | ||
27461 | ||
27462 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27463 | PyObject *resultobj; | |
27464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27465 | wxString *arg2 = 0 ; | |
e811c8ce | 27466 | bool temp2 = False ; |
d14a1e28 RD |
27467 | PyObject * obj0 = 0 ; |
27468 | PyObject * obj1 = 0 ; | |
27469 | char *kwnames[] = { | |
27470 | (char *) "self",(char *) "text", NULL | |
27471 | }; | |
27472 | ||
27473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27476 | { |
27477 | arg2 = wxString_in_helper(obj1); | |
27478 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27479 | temp2 = True; |
d14a1e28 RD |
27480 | } |
27481 | { | |
27482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27483 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27484 | ||
27485 | wxPyEndAllowThreads(__tstate); | |
27486 | if (PyErr_Occurred()) SWIG_fail; | |
27487 | } | |
27488 | Py_INCREF(Py_None); resultobj = Py_None; | |
27489 | { | |
27490 | if (temp2) | |
27491 | delete arg2; | |
27492 | } | |
27493 | return resultobj; | |
27494 | fail: | |
27495 | { | |
27496 | if (temp2) | |
27497 | delete arg2; | |
27498 | } | |
27499 | return NULL; | |
27500 | } | |
27501 | ||
27502 | ||
27503 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27504 | PyObject *resultobj; | |
27505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27506 | wxString *arg2 = 0 ; | |
e811c8ce | 27507 | bool temp2 = False ; |
d14a1e28 RD |
27508 | PyObject * obj0 = 0 ; |
27509 | PyObject * obj1 = 0 ; | |
27510 | char *kwnames[] = { | |
27511 | (char *) "self",(char *) "text", NULL | |
27512 | }; | |
27513 | ||
27514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27517 | { |
27518 | arg2 = wxString_in_helper(obj1); | |
27519 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27520 | temp2 = True; |
d14a1e28 RD |
27521 | } |
27522 | { | |
27523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27524 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27525 | ||
27526 | wxPyEndAllowThreads(__tstate); | |
27527 | if (PyErr_Occurred()) SWIG_fail; | |
27528 | } | |
27529 | Py_INCREF(Py_None); resultobj = Py_None; | |
27530 | { | |
27531 | if (temp2) | |
27532 | delete arg2; | |
27533 | } | |
27534 | return resultobj; | |
27535 | fail: | |
27536 | { | |
27537 | if (temp2) | |
27538 | delete arg2; | |
27539 | } | |
27540 | return NULL; | |
27541 | } | |
27542 | ||
27543 | ||
27544 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27545 | PyObject *resultobj; | |
27546 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27547 | wxString result; | |
27548 | PyObject * obj0 = 0 ; | |
27549 | char *kwnames[] = { | |
27550 | (char *) "self", NULL | |
27551 | }; | |
27552 | ||
27553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27556 | { |
27557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27558 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27559 | ||
27560 | wxPyEndAllowThreads(__tstate); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
27563 | { | |
27564 | #if wxUSE_UNICODE | |
27565 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27566 | #else | |
27567 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27568 | #endif | |
27569 | } | |
27570 | return resultobj; | |
27571 | fail: | |
27572 | return NULL; | |
27573 | } | |
27574 | ||
27575 | ||
27576 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27577 | PyObject *resultobj; | |
27578 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27579 | wxString *arg2 = 0 ; | |
e811c8ce | 27580 | bool temp2 = False ; |
d14a1e28 RD |
27581 | PyObject * obj0 = 0 ; |
27582 | PyObject * obj1 = 0 ; | |
27583 | char *kwnames[] = { | |
27584 | (char *) "self",(char *) "tip", NULL | |
27585 | }; | |
27586 | ||
27587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27590 | { |
27591 | arg2 = wxString_in_helper(obj1); | |
27592 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 27593 | temp2 = True; |
d14a1e28 RD |
27594 | } |
27595 | { | |
27596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27597 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27598 | ||
27599 | wxPyEndAllowThreads(__tstate); | |
27600 | if (PyErr_Occurred()) SWIG_fail; | |
27601 | } | |
27602 | Py_INCREF(Py_None); resultobj = Py_None; | |
27603 | { | |
27604 | if (temp2) | |
27605 | delete arg2; | |
27606 | } | |
27607 | return resultobj; | |
27608 | fail: | |
27609 | { | |
27610 | if (temp2) | |
27611 | delete arg2; | |
27612 | } | |
27613 | return NULL; | |
27614 | } | |
27615 | ||
27616 | ||
27617 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27618 | PyObject *resultobj; | |
27619 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27620 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27621 | PyObject * obj0 = 0 ; | |
27622 | PyObject * obj1 = 0 ; | |
27623 | char *kwnames[] = { | |
27624 | (char *) "self",(char *) "tip", NULL | |
27625 | }; | |
27626 | ||
27627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27632 | { |
27633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27634 | (arg1)->SetToolTip(arg2); | |
27635 | ||
27636 | wxPyEndAllowThreads(__tstate); | |
27637 | if (PyErr_Occurred()) SWIG_fail; | |
27638 | } | |
27639 | Py_INCREF(Py_None); resultobj = Py_None; | |
27640 | return resultobj; | |
27641 | fail: | |
27642 | return NULL; | |
27643 | } | |
27644 | ||
27645 | ||
27646 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27647 | PyObject *resultobj; | |
27648 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27649 | wxToolTip *result; | |
27650 | PyObject * obj0 = 0 ; | |
27651 | char *kwnames[] = { | |
27652 | (char *) "self", NULL | |
27653 | }; | |
27654 | ||
27655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27658 | { |
27659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27660 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27661 | ||
27662 | wxPyEndAllowThreads(__tstate); | |
27663 | if (PyErr_Occurred()) SWIG_fail; | |
27664 | } | |
27665 | { | |
27666 | resultobj = wxPyMake_wxObject(result); | |
27667 | } | |
27668 | return resultobj; | |
27669 | fail: | |
27670 | return NULL; | |
27671 | } | |
27672 | ||
27673 | ||
27674 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27675 | PyObject *resultobj; | |
27676 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27677 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; |
d14a1e28 RD |
27678 | PyObject * obj0 = 0 ; |
27679 | PyObject * obj1 = 0 ; | |
27680 | char *kwnames[] = { | |
27681 | (char *) "self",(char *) "dropTarget", NULL | |
27682 | }; | |
27683 | ||
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27688 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
27689 | { |
27690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27691 | (arg1)->SetDropTarget(arg2); | |
27692 | ||
27693 | wxPyEndAllowThreads(__tstate); | |
27694 | if (PyErr_Occurred()) SWIG_fail; | |
27695 | } | |
27696 | Py_INCREF(Py_None); resultobj = Py_None; | |
27697 | return resultobj; | |
27698 | fail: | |
27699 | return NULL; | |
27700 | } | |
27701 | ||
27702 | ||
27703 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27704 | PyObject *resultobj; | |
27705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7722248d | 27706 | wxPyDropTarget *result; |
d14a1e28 RD |
27707 | PyObject * obj0 = 0 ; |
27708 | char *kwnames[] = { | |
27709 | (char *) "self", NULL | |
27710 | }; | |
27711 | ||
27712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27715 | { |
27716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722248d | 27717 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); |
d14a1e28 RD |
27718 | |
27719 | wxPyEndAllowThreads(__tstate); | |
27720 | if (PyErr_Occurred()) SWIG_fail; | |
27721 | } | |
15afbcd0 | 27722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); |
d14a1e28 RD |
27723 | return resultobj; |
27724 | fail: | |
27725 | return NULL; | |
27726 | } | |
27727 | ||
27728 | ||
27729 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27730 | PyObject *resultobj; | |
27731 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27732 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27733 | PyObject * obj0 = 0 ; | |
27734 | PyObject * obj1 = 0 ; | |
27735 | char *kwnames[] = { | |
27736 | (char *) "self",(char *) "constraints", NULL | |
27737 | }; | |
27738 | ||
27739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27744 | { |
27745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27746 | (arg1)->SetConstraints(arg2); | |
27747 | ||
27748 | wxPyEndAllowThreads(__tstate); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | } | |
27751 | Py_INCREF(Py_None); resultobj = Py_None; | |
27752 | return resultobj; | |
27753 | fail: | |
27754 | return NULL; | |
27755 | } | |
27756 | ||
27757 | ||
27758 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27759 | PyObject *resultobj; | |
27760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27761 | wxLayoutConstraints *result; | |
27762 | PyObject * obj0 = 0 ; | |
27763 | char *kwnames[] = { | |
27764 | (char *) "self", NULL | |
27765 | }; | |
27766 | ||
27767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27770 | { |
27771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27772 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27773 | ||
27774 | wxPyEndAllowThreads(__tstate); | |
27775 | if (PyErr_Occurred()) SWIG_fail; | |
27776 | } | |
15afbcd0 | 27777 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); |
d14a1e28 RD |
27778 | return resultobj; |
27779 | fail: | |
27780 | return NULL; | |
27781 | } | |
27782 | ||
27783 | ||
27784 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27785 | PyObject *resultobj; | |
27786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27787 | bool arg2 ; | |
27788 | PyObject * obj0 = 0 ; | |
27789 | PyObject * obj1 = 0 ; | |
27790 | char *kwnames[] = { | |
27791 | (char *) "self",(char *) "autoLayout", NULL | |
27792 | }; | |
27793 | ||
27794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27797 | arg2 = (bool) SWIG_AsBool(obj1); | |
27798 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27799 | { |
27800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27801 | (arg1)->SetAutoLayout(arg2); | |
27802 | ||
27803 | wxPyEndAllowThreads(__tstate); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | } | |
27806 | Py_INCREF(Py_None); resultobj = Py_None; | |
27807 | return resultobj; | |
27808 | fail: | |
27809 | return NULL; | |
27810 | } | |
27811 | ||
27812 | ||
27813 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27814 | PyObject *resultobj; | |
27815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27816 | bool result; | |
27817 | PyObject * obj0 = 0 ; | |
27818 | char *kwnames[] = { | |
27819 | (char *) "self", NULL | |
27820 | }; | |
27821 | ||
27822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27827 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27828 | ||
27829 | wxPyEndAllowThreads(__tstate); | |
27830 | if (PyErr_Occurred()) SWIG_fail; | |
27831 | } | |
4f89f6a3 RD |
27832 | { |
27833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27834 | } | |
d14a1e28 RD |
27835 | return resultobj; |
27836 | fail: | |
27837 | return NULL; | |
27838 | } | |
27839 | ||
27840 | ||
27841 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27842 | PyObject *resultobj; | |
27843 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27844 | bool result; | |
27845 | PyObject * obj0 = 0 ; | |
27846 | char *kwnames[] = { | |
27847 | (char *) "self", NULL | |
27848 | }; | |
27849 | ||
27850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27853 | { |
27854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27855 | result = (bool)(arg1)->Layout(); | |
27856 | ||
27857 | wxPyEndAllowThreads(__tstate); | |
27858 | if (PyErr_Occurred()) SWIG_fail; | |
27859 | } | |
4f89f6a3 RD |
27860 | { |
27861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27862 | } | |
d14a1e28 RD |
27863 | return resultobj; |
27864 | fail: | |
27865 | return NULL; | |
27866 | } | |
27867 | ||
27868 | ||
27869 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27870 | PyObject *resultobj; | |
27871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27872 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27873 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27874 | PyObject * obj0 = 0 ; |
27875 | PyObject * obj1 = 0 ; | |
27876 | PyObject * obj2 = 0 ; | |
27877 | char *kwnames[] = { | |
27878 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27879 | }; | |
27880 | ||
27881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27886 | if (obj2) { |
15afbcd0 RD |
27887 | arg3 = (bool) SWIG_AsBool(obj2); |
27888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27889 | } |
27890 | { | |
27891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27892 | (arg1)->SetSizer(arg2,arg3); | |
27893 | ||
27894 | wxPyEndAllowThreads(__tstate); | |
27895 | if (PyErr_Occurred()) SWIG_fail; | |
27896 | } | |
27897 | Py_INCREF(Py_None); resultobj = Py_None; | |
27898 | return resultobj; | |
27899 | fail: | |
27900 | return NULL; | |
27901 | } | |
27902 | ||
27903 | ||
27904 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27905 | PyObject *resultobj; | |
27906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27907 | wxSizer *arg2 = (wxSizer *) 0 ; | |
e811c8ce | 27908 | bool arg3 = (bool) True ; |
d14a1e28 RD |
27909 | PyObject * obj0 = 0 ; |
27910 | PyObject * obj1 = 0 ; | |
27911 | PyObject * obj2 = 0 ; | |
27912 | char *kwnames[] = { | |
27913 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27914 | }; | |
27915 | ||
27916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27919 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 27921 | if (obj2) { |
15afbcd0 RD |
27922 | arg3 = (bool) SWIG_AsBool(obj2); |
27923 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27924 | } |
27925 | { | |
27926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27927 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27928 | ||
27929 | wxPyEndAllowThreads(__tstate); | |
27930 | if (PyErr_Occurred()) SWIG_fail; | |
27931 | } | |
27932 | Py_INCREF(Py_None); resultobj = Py_None; | |
27933 | return resultobj; | |
27934 | fail: | |
27935 | return NULL; | |
27936 | } | |
27937 | ||
27938 | ||
27939 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27940 | PyObject *resultobj; | |
27941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27942 | wxSizer *result; | |
27943 | PyObject * obj0 = 0 ; | |
27944 | char *kwnames[] = { | |
27945 | (char *) "self", NULL | |
27946 | }; | |
27947 | ||
27948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27951 | { |
27952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27953 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27954 | ||
27955 | wxPyEndAllowThreads(__tstate); | |
27956 | if (PyErr_Occurred()) SWIG_fail; | |
27957 | } | |
27958 | { | |
27959 | resultobj = wxPyMake_wxSizer(result); | |
27960 | } | |
27961 | return resultobj; | |
27962 | fail: | |
27963 | return NULL; | |
27964 | } | |
27965 | ||
27966 | ||
27967 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27968 | PyObject *resultobj; | |
27969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27970 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27971 | PyObject * obj0 = 0 ; | |
27972 | PyObject * obj1 = 0 ; | |
27973 | char *kwnames[] = { | |
27974 | (char *) "self",(char *) "sizer", NULL | |
27975 | }; | |
27976 | ||
27977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27982 | { |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27984 | (arg1)->SetContainingSizer(arg2); | |
27985 | ||
27986 | wxPyEndAllowThreads(__tstate); | |
27987 | if (PyErr_Occurred()) SWIG_fail; | |
27988 | } | |
27989 | Py_INCREF(Py_None); resultobj = Py_None; | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27997 | PyObject *resultobj; | |
27998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27999 | wxSizer *result; | |
28000 | PyObject * obj0 = 0 ; | |
28001 | char *kwnames[] = { | |
28002 | (char *) "self", NULL | |
28003 | }; | |
28004 | ||
28005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28008 | { |
28009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28010 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28011 | ||
28012 | wxPyEndAllowThreads(__tstate); | |
28013 | if (PyErr_Occurred()) SWIG_fail; | |
28014 | } | |
28015 | { | |
28016 | resultobj = wxPyMake_wxSizer(result); | |
28017 | } | |
28018 | return resultobj; | |
28019 | fail: | |
28020 | return NULL; | |
28021 | } | |
28022 | ||
28023 | ||
a95a7133 RD |
28024 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
28025 | PyObject *resultobj; | |
28026 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28027 | PyObject * obj0 = 0 ; | |
28028 | char *kwnames[] = { | |
28029 | (char *) "self", NULL | |
28030 | }; | |
28031 | ||
28032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28035 | { | |
28036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28037 | (arg1)->InheritAttributes(); | |
28038 | ||
28039 | wxPyEndAllowThreads(__tstate); | |
28040 | if (PyErr_Occurred()) SWIG_fail; | |
28041 | } | |
28042 | Py_INCREF(Py_None); resultobj = Py_None; | |
28043 | return resultobj; | |
28044 | fail: | |
28045 | return NULL; | |
28046 | } | |
28047 | ||
28048 | ||
28049 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28050 | PyObject *resultobj; | |
28051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28052 | bool result; | |
28053 | PyObject * obj0 = 0 ; | |
28054 | char *kwnames[] = { | |
28055 | (char *) "self", NULL | |
28056 | }; | |
28057 | ||
28058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28061 | { | |
28062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28063 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28064 | ||
28065 | wxPyEndAllowThreads(__tstate); | |
28066 | if (PyErr_Occurred()) SWIG_fail; | |
28067 | } | |
28068 | { | |
28069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28070 | } | |
28071 | return resultobj; | |
28072 | fail: | |
28073 | return NULL; | |
28074 | } | |
28075 | ||
28076 | ||
d14a1e28 RD |
28077 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { |
28078 | PyObject *obj; | |
28079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28080 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28081 | Py_INCREF(obj); | |
28082 | return Py_BuildValue((char *)""); | |
28083 | } | |
28084 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28085 | PyObject *resultobj; | |
28086 | long arg1 ; | |
28087 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28088 | wxWindow *result; | |
994141e6 | 28089 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28090 | PyObject * obj1 = 0 ; |
28091 | char *kwnames[] = { | |
28092 | (char *) "id",(char *) "parent", NULL | |
28093 | }; | |
28094 | ||
994141e6 | 28095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28096 | arg1 = (long) SWIG_AsLong(obj0); |
28097 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 28098 | if (obj1) { |
15afbcd0 RD |
28099 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28101 | } |
28102 | { | |
28103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28104 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28105 | ||
28106 | wxPyEndAllowThreads(__tstate); | |
28107 | if (PyErr_Occurred()) SWIG_fail; | |
28108 | } | |
28109 | { | |
28110 | resultobj = wxPyMake_wxObject(result); | |
28111 | } | |
28112 | return resultobj; | |
28113 | fail: | |
28114 | return NULL; | |
28115 | } | |
28116 | ||
28117 | ||
28118 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28119 | PyObject *resultobj; | |
28120 | wxString *arg1 = 0 ; | |
28121 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28122 | wxWindow *result; | |
e811c8ce | 28123 | bool temp1 = False ; |
d14a1e28 RD |
28124 | PyObject * obj0 = 0 ; |
28125 | PyObject * obj1 = 0 ; | |
28126 | char *kwnames[] = { | |
28127 | (char *) "name",(char *) "parent", NULL | |
28128 | }; | |
28129 | ||
28130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28131 | { | |
28132 | arg1 = wxString_in_helper(obj0); | |
28133 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28134 | temp1 = True; |
d14a1e28 RD |
28135 | } |
28136 | if (obj1) { | |
15afbcd0 RD |
28137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28139 | } |
28140 | { | |
28141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28142 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28143 | ||
28144 | wxPyEndAllowThreads(__tstate); | |
28145 | if (PyErr_Occurred()) SWIG_fail; | |
28146 | } | |
28147 | { | |
28148 | resultobj = wxPyMake_wxObject(result); | |
28149 | } | |
28150 | { | |
28151 | if (temp1) | |
28152 | delete arg1; | |
28153 | } | |
28154 | return resultobj; | |
28155 | fail: | |
28156 | { | |
28157 | if (temp1) | |
28158 | delete arg1; | |
28159 | } | |
28160 | return NULL; | |
28161 | } | |
28162 | ||
28163 | ||
28164 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28165 | PyObject *resultobj; | |
28166 | wxString *arg1 = 0 ; | |
28167 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28168 | wxWindow *result; | |
e811c8ce | 28169 | bool temp1 = False ; |
d14a1e28 RD |
28170 | PyObject * obj0 = 0 ; |
28171 | PyObject * obj1 = 0 ; | |
28172 | char *kwnames[] = { | |
28173 | (char *) "label",(char *) "parent", NULL | |
28174 | }; | |
28175 | ||
28176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28177 | { | |
28178 | arg1 = wxString_in_helper(obj0); | |
28179 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28180 | temp1 = True; |
d14a1e28 RD |
28181 | } |
28182 | if (obj1) { | |
15afbcd0 RD |
28183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
28184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28185 | } |
28186 | { | |
28187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28188 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28189 | ||
28190 | wxPyEndAllowThreads(__tstate); | |
28191 | if (PyErr_Occurred()) SWIG_fail; | |
28192 | } | |
28193 | { | |
28194 | resultobj = wxPyMake_wxObject(result); | |
28195 | } | |
28196 | { | |
28197 | if (temp1) | |
28198 | delete arg1; | |
28199 | } | |
28200 | return resultobj; | |
28201 | fail: | |
28202 | { | |
28203 | if (temp1) | |
28204 | delete arg1; | |
28205 | } | |
28206 | return NULL; | |
28207 | } | |
28208 | ||
28209 | ||
28210 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28211 | PyObject *resultobj; | |
4276dc52 RD |
28212 | wxWindow *arg1 = (wxWindow *) 0 ; |
28213 | unsigned long arg2 ; | |
d14a1e28 RD |
28214 | wxWindow *result; |
28215 | PyObject * obj0 = 0 ; | |
4276dc52 | 28216 | PyObject * obj1 = 0 ; |
d14a1e28 | 28217 | char *kwnames[] = { |
4276dc52 | 28218 | (char *) "parent",(char *) "_hWnd", NULL |
d14a1e28 RD |
28219 | }; |
28220 | ||
4276dc52 RD |
28221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; |
28222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28224 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
15afbcd0 | 28225 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
28226 | { |
28227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4276dc52 | 28228 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); |
d14a1e28 RD |
28229 | |
28230 | wxPyEndAllowThreads(__tstate); | |
28231 | if (PyErr_Occurred()) SWIG_fail; | |
28232 | } | |
28233 | { | |
28234 | resultobj = wxPyMake_wxObject(result); | |
28235 | } | |
28236 | return resultobj; | |
28237 | fail: | |
28238 | return NULL; | |
28239 | } | |
28240 | ||
28241 | ||
28242 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28243 | PyObject *resultobj; | |
28244 | wxValidator *result; | |
28245 | char *kwnames[] = { | |
28246 | NULL | |
28247 | }; | |
28248 | ||
28249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28250 | { | |
28251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28252 | result = (wxValidator *)new wxValidator(); | |
28253 | ||
28254 | wxPyEndAllowThreads(__tstate); | |
28255 | if (PyErr_Occurred()) SWIG_fail; | |
28256 | } | |
28257 | { | |
28258 | resultobj = wxPyMake_wxObject(result); | |
28259 | } | |
28260 | return resultobj; | |
28261 | fail: | |
28262 | return NULL; | |
28263 | } | |
28264 | ||
28265 | ||
28266 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28267 | PyObject *resultobj; | |
28268 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28269 | wxValidator *result; | |
28270 | PyObject * obj0 = 0 ; | |
28271 | char *kwnames[] = { | |
28272 | (char *) "self", NULL | |
28273 | }; | |
28274 | ||
28275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28278 | { |
28279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28280 | result = (wxValidator *)(arg1)->Clone(); | |
28281 | ||
28282 | wxPyEndAllowThreads(__tstate); | |
28283 | if (PyErr_Occurred()) SWIG_fail; | |
28284 | } | |
28285 | { | |
28286 | resultobj = wxPyMake_wxObject(result); | |
28287 | } | |
28288 | return resultobj; | |
28289 | fail: | |
28290 | return NULL; | |
28291 | } | |
28292 | ||
28293 | ||
28294 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28295 | PyObject *resultobj; | |
28296 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28298 | bool result; | |
28299 | PyObject * obj0 = 0 ; | |
28300 | PyObject * obj1 = 0 ; | |
28301 | char *kwnames[] = { | |
28302 | (char *) "self",(char *) "parent", NULL | |
28303 | }; | |
28304 | ||
28305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28310 | { |
28311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28312 | result = (bool)(arg1)->Validate(arg2); | |
28313 | ||
28314 | wxPyEndAllowThreads(__tstate); | |
28315 | if (PyErr_Occurred()) SWIG_fail; | |
28316 | } | |
4f89f6a3 RD |
28317 | { |
28318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28319 | } | |
d14a1e28 RD |
28320 | return resultobj; |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
28326 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28327 | PyObject *resultobj; | |
28328 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28329 | bool result; | |
28330 | PyObject * obj0 = 0 ; | |
28331 | char *kwnames[] = { | |
28332 | (char *) "self", NULL | |
28333 | }; | |
28334 | ||
28335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28338 | { |
28339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28340 | result = (bool)(arg1)->TransferToWindow(); | |
28341 | ||
28342 | wxPyEndAllowThreads(__tstate); | |
28343 | if (PyErr_Occurred()) SWIG_fail; | |
28344 | } | |
4f89f6a3 RD |
28345 | { |
28346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28347 | } | |
d14a1e28 RD |
28348 | return resultobj; |
28349 | fail: | |
28350 | return NULL; | |
28351 | } | |
28352 | ||
28353 | ||
28354 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28355 | PyObject *resultobj; | |
28356 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28357 | bool result; | |
28358 | PyObject * obj0 = 0 ; | |
28359 | char *kwnames[] = { | |
28360 | (char *) "self", NULL | |
28361 | }; | |
28362 | ||
28363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28366 | { |
28367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28368 | result = (bool)(arg1)->TransferFromWindow(); | |
28369 | ||
28370 | wxPyEndAllowThreads(__tstate); | |
28371 | if (PyErr_Occurred()) SWIG_fail; | |
28372 | } | |
4f89f6a3 RD |
28373 | { |
28374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28375 | } | |
d14a1e28 RD |
28376 | return resultobj; |
28377 | fail: | |
28378 | return NULL; | |
28379 | } | |
28380 | ||
28381 | ||
28382 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28383 | PyObject *resultobj; | |
28384 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28385 | wxWindow *result; | |
28386 | PyObject * obj0 = 0 ; | |
28387 | char *kwnames[] = { | |
28388 | (char *) "self", NULL | |
28389 | }; | |
28390 | ||
28391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28394 | { |
28395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28396 | result = (wxWindow *)(arg1)->GetWindow(); | |
28397 | ||
28398 | wxPyEndAllowThreads(__tstate); | |
28399 | if (PyErr_Occurred()) SWIG_fail; | |
28400 | } | |
28401 | { | |
28402 | resultobj = wxPyMake_wxObject(result); | |
28403 | } | |
28404 | return resultobj; | |
28405 | fail: | |
28406 | return NULL; | |
28407 | } | |
28408 | ||
28409 | ||
28410 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28411 | PyObject *resultobj; | |
28412 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28413 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28414 | PyObject * obj0 = 0 ; | |
28415 | PyObject * obj1 = 0 ; | |
28416 | char *kwnames[] = { | |
28417 | (char *) "self",(char *) "window", NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, |
28422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28425 | { |
28426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28427 | (arg1)->SetWindow(arg2); | |
28428 | ||
28429 | wxPyEndAllowThreads(__tstate); | |
28430 | if (PyErr_Occurred()) SWIG_fail; | |
28431 | } | |
28432 | Py_INCREF(Py_None); resultobj = Py_None; | |
28433 | return resultobj; | |
28434 | fail: | |
28435 | return NULL; | |
28436 | } | |
28437 | ||
28438 | ||
28439 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28440 | PyObject *resultobj; | |
28441 | bool result; | |
28442 | char *kwnames[] = { | |
28443 | NULL | |
28444 | }; | |
28445 | ||
28446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28447 | { | |
28448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28449 | result = (bool)wxValidator::IsSilent(); | |
28450 | ||
28451 | wxPyEndAllowThreads(__tstate); | |
28452 | if (PyErr_Occurred()) SWIG_fail; | |
28453 | } | |
4f89f6a3 RD |
28454 | { |
28455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28456 | } | |
d14a1e28 RD |
28457 | return resultobj; |
28458 | fail: | |
28459 | return NULL; | |
28460 | } | |
28461 | ||
28462 | ||
28463 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28464 | PyObject *resultobj; | |
e811c8ce | 28465 | int arg1 = (int) True ; |
994141e6 | 28466 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
28467 | char *kwnames[] = { |
28468 | (char *) "doIt", NULL | |
28469 | }; | |
28470 | ||
994141e6 RD |
28471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; |
28472 | if (obj0) { | |
15afbcd0 RD |
28473 | arg1 = (int) SWIG_AsInt(obj0); |
28474 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28475 | } |
d14a1e28 RD |
28476 | { |
28477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28478 | wxValidator::SetBellOnError(arg1); | |
28479 | ||
28480 | wxPyEndAllowThreads(__tstate); | |
28481 | if (PyErr_Occurred()) SWIG_fail; | |
28482 | } | |
28483 | Py_INCREF(Py_None); resultobj = Py_None; | |
28484 | return resultobj; | |
28485 | fail: | |
28486 | return NULL; | |
28487 | } | |
28488 | ||
28489 | ||
28490 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28491 | PyObject *obj; | |
28492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28493 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28494 | Py_INCREF(obj); | |
28495 | return Py_BuildValue((char *)""); | |
28496 | } | |
28497 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28498 | PyObject *resultobj; | |
28499 | wxPyValidator *result; | |
28500 | char *kwnames[] = { | |
28501 | NULL | |
28502 | }; | |
28503 | ||
28504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28505 | { | |
28506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28507 | result = (wxPyValidator *)new wxPyValidator(); | |
28508 | ||
28509 | wxPyEndAllowThreads(__tstate); | |
28510 | if (PyErr_Occurred()) SWIG_fail; | |
28511 | } | |
15afbcd0 | 28512 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); |
d14a1e28 RD |
28513 | return resultobj; |
28514 | fail: | |
28515 | return NULL; | |
28516 | } | |
28517 | ||
28518 | ||
28519 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28520 | PyObject *resultobj; | |
28521 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28522 | PyObject *arg2 = (PyObject *) 0 ; | |
28523 | PyObject *arg3 = (PyObject *) 0 ; | |
e811c8ce | 28524 | int arg4 = (int) True ; |
d14a1e28 RD |
28525 | PyObject * obj0 = 0 ; |
28526 | PyObject * obj1 = 0 ; | |
28527 | PyObject * obj2 = 0 ; | |
994141e6 | 28528 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
28529 | char *kwnames[] = { |
28530 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28531 | }; | |
28532 | ||
994141e6 | 28533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, |
28535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28536 | arg2 = obj1; |
28537 | arg3 = obj2; | |
994141e6 | 28538 | if (obj3) { |
15afbcd0 RD |
28539 | arg4 = (int) SWIG_AsInt(obj3); |
28540 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28541 | } |
d14a1e28 RD |
28542 | { |
28543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28544 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28545 | ||
28546 | wxPyEndAllowThreads(__tstate); | |
28547 | if (PyErr_Occurred()) SWIG_fail; | |
28548 | } | |
28549 | Py_INCREF(Py_None); resultobj = Py_None; | |
28550 | return resultobj; | |
28551 | fail: | |
28552 | return NULL; | |
28553 | } | |
28554 | ||
28555 | ||
28556 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28557 | PyObject *obj; | |
28558 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28559 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28560 | Py_INCREF(obj); | |
28561 | return Py_BuildValue((char *)""); | |
28562 | } | |
28563 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28564 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28565 | return 1; | |
28566 | } | |
28567 | ||
28568 | ||
28569 | static PyObject *_wrap_DefaultValidator_get() { | |
28570 | PyObject *pyobj; | |
28571 | ||
15afbcd0 | 28572 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); |
d14a1e28 RD |
28573 | return pyobj; |
28574 | } | |
28575 | ||
28576 | ||
28577 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28578 | PyObject *resultobj; | |
28579 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28580 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28581 | long arg2 = (long) 0 ; | |
28582 | wxMenu *result; | |
e811c8ce | 28583 | bool temp1 = False ; |
d14a1e28 | 28584 | PyObject * obj0 = 0 ; |
994141e6 | 28585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28586 | char *kwnames[] = { |
28587 | (char *) "title",(char *) "style", NULL | |
28588 | }; | |
28589 | ||
994141e6 | 28590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; |
d14a1e28 RD |
28591 | if (obj0) { |
28592 | { | |
28593 | arg1 = wxString_in_helper(obj0); | |
28594 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 28595 | temp1 = True; |
d14a1e28 RD |
28596 | } |
28597 | } | |
994141e6 | 28598 | if (obj1) { |
15afbcd0 RD |
28599 | arg2 = (long) SWIG_AsLong(obj1); |
28600 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28601 | } |
d14a1e28 RD |
28602 | { |
28603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28604 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28605 | ||
28606 | wxPyEndAllowThreads(__tstate); | |
28607 | if (PyErr_Occurred()) SWIG_fail; | |
28608 | } | |
28609 | { | |
28610 | resultobj = wxPyMake_wxObject(result); | |
28611 | } | |
28612 | { | |
28613 | if (temp1) | |
28614 | delete arg1; | |
28615 | } | |
28616 | return resultobj; | |
28617 | fail: | |
28618 | { | |
28619 | if (temp1) | |
28620 | delete arg1; | |
28621 | } | |
28622 | return NULL; | |
28623 | } | |
28624 | ||
28625 | ||
28626 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28627 | PyObject *resultobj; | |
28628 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28629 | int arg2 ; | |
28630 | wxString *arg3 = 0 ; | |
28631 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28632 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28633 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 28634 | wxMenuItem *result; |
e811c8ce RD |
28635 | bool temp3 = False ; |
28636 | bool temp4 = False ; | |
d14a1e28 | 28637 | PyObject * obj0 = 0 ; |
994141e6 | 28638 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28639 | PyObject * obj2 = 0 ; |
28640 | PyObject * obj3 = 0 ; | |
994141e6 | 28641 | PyObject * obj4 = 0 ; |
d14a1e28 | 28642 | char *kwnames[] = { |
242b7b46 | 28643 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
28644 | }; |
28645 | ||
994141e6 | 28646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28649 | arg2 = (int) SWIG_AsInt(obj1); | |
28650 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28651 | { |
28652 | arg3 = wxString_in_helper(obj2); | |
28653 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28654 | temp3 = True; |
d14a1e28 RD |
28655 | } |
28656 | if (obj3) { | |
28657 | { | |
28658 | arg4 = wxString_in_helper(obj3); | |
28659 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28660 | temp4 = True; |
d14a1e28 RD |
28661 | } |
28662 | } | |
994141e6 | 28663 | if (obj4) { |
15afbcd0 RD |
28664 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
28665 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28666 | } |
d14a1e28 RD |
28667 | { |
28668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28669 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
28670 | |
28671 | wxPyEndAllowThreads(__tstate); | |
28672 | if (PyErr_Occurred()) SWIG_fail; | |
28673 | } | |
a41e16b6 RD |
28674 | { |
28675 | resultobj = wxPyMake_wxObject(result); | |
28676 | } | |
d14a1e28 RD |
28677 | { |
28678 | if (temp3) | |
28679 | delete arg3; | |
28680 | } | |
28681 | { | |
28682 | if (temp4) | |
28683 | delete arg4; | |
28684 | } | |
28685 | return resultobj; | |
28686 | fail: | |
28687 | { | |
28688 | if (temp3) | |
28689 | delete arg3; | |
28690 | } | |
28691 | { | |
28692 | if (temp4) | |
28693 | delete arg4; | |
28694 | } | |
28695 | return NULL; | |
28696 | } | |
28697 | ||
28698 | ||
28699 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28700 | PyObject *resultobj; | |
28701 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 28702 | wxMenuItem *result; |
d14a1e28 RD |
28703 | PyObject * obj0 = 0 ; |
28704 | char *kwnames[] = { | |
28705 | (char *) "self", NULL | |
28706 | }; | |
28707 | ||
28708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28711 | { |
28712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28713 | result = (wxMenuItem *)(arg1)->AppendSeparator(); |
d14a1e28 RD |
28714 | |
28715 | wxPyEndAllowThreads(__tstate); | |
28716 | if (PyErr_Occurred()) SWIG_fail; | |
28717 | } | |
a41e16b6 RD |
28718 | { |
28719 | resultobj = wxPyMake_wxObject(result); | |
28720 | } | |
d14a1e28 RD |
28721 | return resultobj; |
28722 | fail: | |
28723 | return NULL; | |
28724 | } | |
28725 | ||
28726 | ||
28727 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28728 | PyObject *resultobj; | |
28729 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28730 | int arg2 ; | |
28731 | wxString *arg3 = 0 ; | |
28732 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28733 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28734 | wxMenuItem *result; |
e811c8ce RD |
28735 | bool temp3 = False ; |
28736 | bool temp4 = False ; | |
d14a1e28 | 28737 | PyObject * obj0 = 0 ; |
994141e6 | 28738 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28739 | PyObject * obj2 = 0 ; |
28740 | PyObject * obj3 = 0 ; | |
28741 | char *kwnames[] = { | |
242b7b46 | 28742 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28743 | }; |
28744 | ||
994141e6 | 28745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28748 | arg2 = (int) SWIG_AsInt(obj1); | |
28749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28750 | { |
28751 | arg3 = wxString_in_helper(obj2); | |
28752 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28753 | temp3 = True; |
d14a1e28 RD |
28754 | } |
28755 | if (obj3) { | |
28756 | { | |
28757 | arg4 = wxString_in_helper(obj3); | |
28758 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28759 | temp4 = True; |
d14a1e28 RD |
28760 | } |
28761 | } | |
28762 | { | |
28763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28764 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28765 | |
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
a41e16b6 RD |
28769 | { |
28770 | resultobj = wxPyMake_wxObject(result); | |
28771 | } | |
d14a1e28 RD |
28772 | { |
28773 | if (temp3) | |
28774 | delete arg3; | |
28775 | } | |
28776 | { | |
28777 | if (temp4) | |
28778 | delete arg4; | |
28779 | } | |
28780 | return resultobj; | |
28781 | fail: | |
28782 | { | |
28783 | if (temp3) | |
28784 | delete arg3; | |
28785 | } | |
28786 | { | |
28787 | if (temp4) | |
28788 | delete arg4; | |
28789 | } | |
28790 | return NULL; | |
28791 | } | |
28792 | ||
28793 | ||
28794 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28795 | PyObject *resultobj; | |
28796 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28797 | int arg2 ; | |
28798 | wxString *arg3 = 0 ; | |
28799 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28800 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 28801 | wxMenuItem *result; |
e811c8ce RD |
28802 | bool temp3 = False ; |
28803 | bool temp4 = False ; | |
d14a1e28 | 28804 | PyObject * obj0 = 0 ; |
994141e6 | 28805 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28806 | PyObject * obj2 = 0 ; |
28807 | PyObject * obj3 = 0 ; | |
28808 | char *kwnames[] = { | |
242b7b46 | 28809 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
28810 | }; |
28811 | ||
994141e6 | 28812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
28813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28815 | arg2 = (int) SWIG_AsInt(obj1); | |
28816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28817 | { |
28818 | arg3 = wxString_in_helper(obj2); | |
28819 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28820 | temp3 = True; |
d14a1e28 RD |
28821 | } |
28822 | if (obj3) { | |
28823 | { | |
28824 | arg4 = wxString_in_helper(obj3); | |
28825 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28826 | temp4 = True; |
d14a1e28 RD |
28827 | } |
28828 | } | |
28829 | { | |
28830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28831 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
28832 | |
28833 | wxPyEndAllowThreads(__tstate); | |
28834 | if (PyErr_Occurred()) SWIG_fail; | |
28835 | } | |
a41e16b6 RD |
28836 | { |
28837 | resultobj = wxPyMake_wxObject(result); | |
28838 | } | |
d14a1e28 RD |
28839 | { |
28840 | if (temp3) | |
28841 | delete arg3; | |
28842 | } | |
28843 | { | |
28844 | if (temp4) | |
28845 | delete arg4; | |
28846 | } | |
28847 | return resultobj; | |
28848 | fail: | |
28849 | { | |
28850 | if (temp3) | |
28851 | delete arg3; | |
28852 | } | |
28853 | { | |
28854 | if (temp4) | |
28855 | delete arg4; | |
28856 | } | |
28857 | return NULL; | |
28858 | } | |
28859 | ||
28860 | ||
28861 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28862 | PyObject *resultobj; | |
28863 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28864 | int arg2 ; | |
28865 | wxString *arg3 = 0 ; | |
28866 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28867 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28868 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 28869 | wxMenuItem *result; |
e811c8ce RD |
28870 | bool temp3 = False ; |
28871 | bool temp5 = False ; | |
d14a1e28 | 28872 | PyObject * obj0 = 0 ; |
994141e6 | 28873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28874 | PyObject * obj2 = 0 ; |
28875 | PyObject * obj3 = 0 ; | |
28876 | PyObject * obj4 = 0 ; | |
28877 | char *kwnames[] = { | |
242b7b46 | 28878 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
28879 | }; |
28880 | ||
994141e6 | 28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",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 | 28890 | } |
15afbcd0 RD |
28891 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
28892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28893 | if (obj4) { |
28894 | { | |
28895 | arg5 = wxString_in_helper(obj4); | |
28896 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 28897 | temp5 = True; |
d14a1e28 RD |
28898 | } |
28899 | } | |
28900 | { | |
28901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28902 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
28903 | |
28904 | wxPyEndAllowThreads(__tstate); | |
28905 | if (PyErr_Occurred()) SWIG_fail; | |
28906 | } | |
a41e16b6 RD |
28907 | { |
28908 | resultobj = wxPyMake_wxObject(result); | |
28909 | } | |
d14a1e28 RD |
28910 | { |
28911 | if (temp3) | |
28912 | delete arg3; | |
28913 | } | |
28914 | { | |
28915 | if (temp5) | |
28916 | delete arg5; | |
28917 | } | |
28918 | return resultobj; | |
28919 | fail: | |
28920 | { | |
28921 | if (temp3) | |
28922 | delete arg3; | |
28923 | } | |
28924 | { | |
28925 | if (temp5) | |
28926 | delete arg5; | |
28927 | } | |
28928 | return NULL; | |
28929 | } | |
28930 | ||
28931 | ||
28932 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28933 | PyObject *resultobj; | |
28934 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28935 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28936 | wxMenuItem *result; |
d14a1e28 RD |
28937 | PyObject * obj0 = 0 ; |
28938 | PyObject * obj1 = 0 ; | |
28939 | char *kwnames[] = { | |
28940 | (char *) "self",(char *) "item", NULL | |
28941 | }; | |
28942 | ||
28943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28948 | { |
28949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 28950 | result = (wxMenuItem *)(arg1)->Append(arg2); |
d14a1e28 RD |
28951 | |
28952 | wxPyEndAllowThreads(__tstate); | |
28953 | if (PyErr_Occurred()) SWIG_fail; | |
28954 | } | |
a41e16b6 RD |
28955 | { |
28956 | resultobj = wxPyMake_wxObject(result); | |
28957 | } | |
d14a1e28 RD |
28958 | return resultobj; |
28959 | fail: | |
28960 | return NULL; | |
28961 | } | |
28962 | ||
28963 | ||
28964 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28965 | PyObject *resultobj; | |
28966 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28967 | PyObject * obj0 = 0 ; | |
28968 | char *kwnames[] = { | |
28969 | (char *) "self", NULL | |
28970 | }; | |
28971 | ||
28972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
28974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28975 | { |
28976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28977 | (arg1)->Break(); | |
28978 | ||
28979 | wxPyEndAllowThreads(__tstate); | |
28980 | if (PyErr_Occurred()) SWIG_fail; | |
28981 | } | |
28982 | Py_INCREF(Py_None); resultobj = Py_None; | |
28983 | return resultobj; | |
28984 | fail: | |
28985 | return NULL; | |
28986 | } | |
28987 | ||
28988 | ||
28989 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28990 | PyObject *resultobj; | |
28991 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28992 | size_t arg2 ; | |
28993 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
a41e16b6 | 28994 | wxMenuItem *result; |
d14a1e28 RD |
28995 | PyObject * obj0 = 0 ; |
28996 | PyObject * obj1 = 0 ; | |
28997 | PyObject * obj2 = 0 ; | |
28998 | char *kwnames[] = { | |
28999 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29000 | }; | |
29001 | ||
29002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29005 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29006 | if (PyErr_Occurred()) SWIG_fail; | |
29007 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29009 | { |
29010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29011 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); |
d14a1e28 RD |
29012 | |
29013 | wxPyEndAllowThreads(__tstate); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
a41e16b6 RD |
29016 | { |
29017 | resultobj = wxPyMake_wxObject(result); | |
29018 | } | |
d14a1e28 RD |
29019 | return resultobj; |
29020 | fail: | |
29021 | return NULL; | |
29022 | } | |
29023 | ||
29024 | ||
29025 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29026 | PyObject *resultobj; | |
29027 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29028 | size_t arg2 ; | |
29029 | int arg3 ; | |
29030 | wxString *arg4 = 0 ; | |
29031 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29032 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29033 | int arg6 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29034 | wxMenuItem *result; |
e811c8ce RD |
29035 | bool temp4 = False ; |
29036 | bool temp5 = False ; | |
d14a1e28 RD |
29037 | PyObject * obj0 = 0 ; |
29038 | PyObject * obj1 = 0 ; | |
994141e6 | 29039 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29040 | PyObject * obj3 = 0 ; |
29041 | PyObject * obj4 = 0 ; | |
994141e6 | 29042 | PyObject * obj5 = 0 ; |
d14a1e28 | 29043 | char *kwnames[] = { |
242b7b46 | 29044 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29045 | }; |
29046 | ||
994141e6 | 29047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29050 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
29052 | arg3 = (int) SWIG_AsInt(obj2); | |
29053 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29054 | { |
29055 | arg4 = wxString_in_helper(obj3); | |
29056 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29057 | temp4 = True; |
d14a1e28 RD |
29058 | } |
29059 | if (obj4) { | |
29060 | { | |
29061 | arg5 = wxString_in_helper(obj4); | |
29062 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29063 | temp5 = True; |
d14a1e28 RD |
29064 | } |
29065 | } | |
994141e6 | 29066 | if (obj5) { |
15afbcd0 RD |
29067 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
29068 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29069 | } |
d14a1e28 RD |
29070 | { |
29071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29072 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); |
d14a1e28 RD |
29073 | |
29074 | wxPyEndAllowThreads(__tstate); | |
29075 | if (PyErr_Occurred()) SWIG_fail; | |
29076 | } | |
a41e16b6 RD |
29077 | { |
29078 | resultobj = wxPyMake_wxObject(result); | |
29079 | } | |
d14a1e28 RD |
29080 | { |
29081 | if (temp4) | |
29082 | delete arg4; | |
29083 | } | |
29084 | { | |
29085 | if (temp5) | |
29086 | delete arg5; | |
29087 | } | |
29088 | return resultobj; | |
29089 | fail: | |
29090 | { | |
29091 | if (temp4) | |
29092 | delete arg4; | |
29093 | } | |
29094 | { | |
29095 | if (temp5) | |
29096 | delete arg5; | |
29097 | } | |
29098 | return NULL; | |
29099 | } | |
29100 | ||
29101 | ||
29102 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29103 | PyObject *resultobj; | |
29104 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29105 | size_t arg2 ; | |
a41e16b6 | 29106 | wxMenuItem *result; |
d14a1e28 RD |
29107 | PyObject * obj0 = 0 ; |
29108 | PyObject * obj1 = 0 ; | |
29109 | char *kwnames[] = { | |
29110 | (char *) "self",(char *) "pos", NULL | |
29111 | }; | |
29112 | ||
29113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29116 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29117 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29118 | { |
29119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29120 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); |
d14a1e28 RD |
29121 | |
29122 | wxPyEndAllowThreads(__tstate); | |
29123 | if (PyErr_Occurred()) SWIG_fail; | |
29124 | } | |
a41e16b6 RD |
29125 | { |
29126 | resultobj = wxPyMake_wxObject(result); | |
29127 | } | |
d14a1e28 RD |
29128 | return resultobj; |
29129 | fail: | |
29130 | return NULL; | |
29131 | } | |
29132 | ||
29133 | ||
29134 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29135 | PyObject *resultobj; | |
29136 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29137 | size_t arg2 ; | |
29138 | int arg3 ; | |
29139 | wxString *arg4 = 0 ; | |
29140 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29141 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29142 | wxMenuItem *result; |
e811c8ce RD |
29143 | bool temp4 = False ; |
29144 | bool temp5 = False ; | |
d14a1e28 RD |
29145 | PyObject * obj0 = 0 ; |
29146 | PyObject * obj1 = 0 ; | |
994141e6 | 29147 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29148 | PyObject * obj3 = 0 ; |
29149 | PyObject * obj4 = 0 ; | |
29150 | char *kwnames[] = { | |
242b7b46 | 29151 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29152 | }; |
29153 | ||
994141e6 | 29154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29157 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29158 | if (PyErr_Occurred()) SWIG_fail; | |
29159 | arg3 = (int) SWIG_AsInt(obj2); | |
29160 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29161 | { |
29162 | arg4 = wxString_in_helper(obj3); | |
29163 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29164 | temp4 = True; |
d14a1e28 RD |
29165 | } |
29166 | if (obj4) { | |
29167 | { | |
29168 | arg5 = wxString_in_helper(obj4); | |
29169 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29170 | temp5 = True; |
d14a1e28 RD |
29171 | } |
29172 | } | |
29173 | { | |
29174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29175 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29176 | |
29177 | wxPyEndAllowThreads(__tstate); | |
29178 | if (PyErr_Occurred()) SWIG_fail; | |
29179 | } | |
a41e16b6 RD |
29180 | { |
29181 | resultobj = wxPyMake_wxObject(result); | |
29182 | } | |
d14a1e28 RD |
29183 | { |
29184 | if (temp4) | |
29185 | delete arg4; | |
29186 | } | |
29187 | { | |
29188 | if (temp5) | |
29189 | delete arg5; | |
29190 | } | |
29191 | return resultobj; | |
29192 | fail: | |
29193 | { | |
29194 | if (temp4) | |
29195 | delete arg4; | |
29196 | } | |
29197 | { | |
29198 | if (temp5) | |
29199 | delete arg5; | |
29200 | } | |
29201 | return NULL; | |
29202 | } | |
29203 | ||
29204 | ||
29205 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29206 | PyObject *resultobj; | |
29207 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29208 | size_t arg2 ; | |
29209 | int arg3 ; | |
29210 | wxString *arg4 = 0 ; | |
29211 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29212 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29213 | wxMenuItem *result; |
e811c8ce RD |
29214 | bool temp4 = False ; |
29215 | bool temp5 = False ; | |
d14a1e28 RD |
29216 | PyObject * obj0 = 0 ; |
29217 | PyObject * obj1 = 0 ; | |
994141e6 | 29218 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29219 | PyObject * obj3 = 0 ; |
29220 | PyObject * obj4 = 0 ; | |
29221 | char *kwnames[] = { | |
242b7b46 | 29222 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29223 | }; |
29224 | ||
994141e6 | 29225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29228 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29229 | if (PyErr_Occurred()) SWIG_fail; | |
29230 | arg3 = (int) SWIG_AsInt(obj2); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29232 | { |
29233 | arg4 = wxString_in_helper(obj3); | |
29234 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29235 | temp4 = True; |
d14a1e28 RD |
29236 | } |
29237 | if (obj4) { | |
29238 | { | |
29239 | arg5 = wxString_in_helper(obj4); | |
29240 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29241 | temp5 = True; |
d14a1e28 RD |
29242 | } |
29243 | } | |
29244 | { | |
29245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29246 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29247 | |
29248 | wxPyEndAllowThreads(__tstate); | |
29249 | if (PyErr_Occurred()) SWIG_fail; | |
29250 | } | |
a41e16b6 RD |
29251 | { |
29252 | resultobj = wxPyMake_wxObject(result); | |
29253 | } | |
d14a1e28 RD |
29254 | { |
29255 | if (temp4) | |
29256 | delete arg4; | |
29257 | } | |
29258 | { | |
29259 | if (temp5) | |
29260 | delete arg5; | |
29261 | } | |
29262 | return resultobj; | |
29263 | fail: | |
29264 | { | |
29265 | if (temp4) | |
29266 | delete arg4; | |
29267 | } | |
29268 | { | |
29269 | if (temp5) | |
29270 | delete arg5; | |
29271 | } | |
29272 | return NULL; | |
29273 | } | |
29274 | ||
29275 | ||
29276 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29277 | PyObject *resultobj; | |
29278 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29279 | size_t arg2 ; | |
29280 | int arg3 ; | |
29281 | wxString *arg4 = 0 ; | |
29282 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29283 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29284 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
a41e16b6 | 29285 | wxMenuItem *result; |
e811c8ce RD |
29286 | bool temp4 = False ; |
29287 | bool temp6 = False ; | |
d14a1e28 RD |
29288 | PyObject * obj0 = 0 ; |
29289 | PyObject * obj1 = 0 ; | |
994141e6 | 29290 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
29291 | PyObject * obj3 = 0 ; |
29292 | PyObject * obj4 = 0 ; | |
29293 | PyObject * obj5 = 0 ; | |
29294 | char *kwnames[] = { | |
242b7b46 | 29295 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29296 | }; |
29297 | ||
994141e6 | 29298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29301 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29302 | if (PyErr_Occurred()) SWIG_fail; | |
29303 | arg3 = (int) SWIG_AsInt(obj2); | |
29304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29305 | { |
29306 | arg4 = wxString_in_helper(obj3); | |
29307 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29308 | temp4 = True; |
d14a1e28 | 29309 | } |
15afbcd0 RD |
29310 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, |
29311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29312 | if (obj5) { |
29313 | { | |
29314 | arg6 = wxString_in_helper(obj5); | |
29315 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 29316 | temp6 = True; |
d14a1e28 RD |
29317 | } |
29318 | } | |
29319 | { | |
29320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29321 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); |
d14a1e28 RD |
29322 | |
29323 | wxPyEndAllowThreads(__tstate); | |
29324 | if (PyErr_Occurred()) SWIG_fail; | |
29325 | } | |
a41e16b6 RD |
29326 | { |
29327 | resultobj = wxPyMake_wxObject(result); | |
29328 | } | |
d14a1e28 RD |
29329 | { |
29330 | if (temp4) | |
29331 | delete arg4; | |
29332 | } | |
29333 | { | |
29334 | if (temp6) | |
29335 | delete arg6; | |
29336 | } | |
29337 | return resultobj; | |
29338 | fail: | |
29339 | { | |
29340 | if (temp4) | |
29341 | delete arg4; | |
29342 | } | |
29343 | { | |
29344 | if (temp6) | |
29345 | delete arg6; | |
29346 | } | |
29347 | return NULL; | |
29348 | } | |
29349 | ||
29350 | ||
29351 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29352 | PyObject *resultobj; | |
29353 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29354 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
a41e16b6 | 29355 | wxMenuItem *result; |
d14a1e28 RD |
29356 | PyObject * obj0 = 0 ; |
29357 | PyObject * obj1 = 0 ; | |
29358 | char *kwnames[] = { | |
29359 | (char *) "self",(char *) "item", NULL | |
29360 | }; | |
29361 | ||
29362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29367 | { |
29368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29369 | result = (wxMenuItem *)(arg1)->Prepend(arg2); |
d14a1e28 RD |
29370 | |
29371 | wxPyEndAllowThreads(__tstate); | |
29372 | if (PyErr_Occurred()) SWIG_fail; | |
29373 | } | |
a41e16b6 RD |
29374 | { |
29375 | resultobj = wxPyMake_wxObject(result); | |
29376 | } | |
d14a1e28 RD |
29377 | return resultobj; |
29378 | fail: | |
29379 | return NULL; | |
29380 | } | |
29381 | ||
29382 | ||
29383 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29384 | PyObject *resultobj; | |
29385 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29386 | int arg2 ; | |
29387 | wxString *arg3 = 0 ; | |
29388 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29389 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29390 | int arg5 = (int) wxITEM_NORMAL ; | |
a41e16b6 | 29391 | wxMenuItem *result; |
e811c8ce RD |
29392 | bool temp3 = False ; |
29393 | bool temp4 = False ; | |
d14a1e28 | 29394 | PyObject * obj0 = 0 ; |
994141e6 | 29395 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29396 | PyObject * obj2 = 0 ; |
29397 | PyObject * obj3 = 0 ; | |
994141e6 | 29398 | PyObject * obj4 = 0 ; |
d14a1e28 | 29399 | char *kwnames[] = { |
242b7b46 | 29400 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL |
d14a1e28 RD |
29401 | }; |
29402 | ||
994141e6 | 29403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29406 | arg2 = (int) SWIG_AsInt(obj1); | |
29407 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29408 | { |
29409 | arg3 = wxString_in_helper(obj2); | |
29410 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29411 | temp3 = True; |
d14a1e28 RD |
29412 | } |
29413 | if (obj3) { | |
29414 | { | |
29415 | arg4 = wxString_in_helper(obj3); | |
29416 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29417 | temp4 = True; |
d14a1e28 RD |
29418 | } |
29419 | } | |
994141e6 | 29420 | if (obj4) { |
15afbcd0 RD |
29421 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
29422 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29423 | } |
d14a1e28 RD |
29424 | { |
29425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29426 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); |
d14a1e28 RD |
29427 | |
29428 | wxPyEndAllowThreads(__tstate); | |
29429 | if (PyErr_Occurred()) SWIG_fail; | |
29430 | } | |
a41e16b6 RD |
29431 | { |
29432 | resultobj = wxPyMake_wxObject(result); | |
29433 | } | |
d14a1e28 RD |
29434 | { |
29435 | if (temp3) | |
29436 | delete arg3; | |
29437 | } | |
29438 | { | |
29439 | if (temp4) | |
29440 | delete arg4; | |
29441 | } | |
29442 | return resultobj; | |
29443 | fail: | |
29444 | { | |
29445 | if (temp3) | |
29446 | delete arg3; | |
29447 | } | |
29448 | { | |
29449 | if (temp4) | |
29450 | delete arg4; | |
29451 | } | |
29452 | return NULL; | |
29453 | } | |
29454 | ||
29455 | ||
29456 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29457 | PyObject *resultobj; | |
29458 | wxMenu *arg1 = (wxMenu *) 0 ; | |
a41e16b6 | 29459 | wxMenuItem *result; |
d14a1e28 RD |
29460 | PyObject * obj0 = 0 ; |
29461 | char *kwnames[] = { | |
29462 | (char *) "self", NULL | |
29463 | }; | |
29464 | ||
29465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29468 | { |
29469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29470 | result = (wxMenuItem *)(arg1)->PrependSeparator(); |
d14a1e28 RD |
29471 | |
29472 | wxPyEndAllowThreads(__tstate); | |
29473 | if (PyErr_Occurred()) SWIG_fail; | |
29474 | } | |
a41e16b6 RD |
29475 | { |
29476 | resultobj = wxPyMake_wxObject(result); | |
29477 | } | |
d14a1e28 RD |
29478 | return resultobj; |
29479 | fail: | |
29480 | return NULL; | |
29481 | } | |
29482 | ||
29483 | ||
29484 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29485 | PyObject *resultobj; | |
29486 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29487 | int arg2 ; | |
29488 | wxString *arg3 = 0 ; | |
29489 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29490 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29491 | wxMenuItem *result; |
e811c8ce RD |
29492 | bool temp3 = False ; |
29493 | bool temp4 = False ; | |
d14a1e28 | 29494 | PyObject * obj0 = 0 ; |
994141e6 | 29495 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29496 | PyObject * obj2 = 0 ; |
29497 | PyObject * obj3 = 0 ; | |
29498 | char *kwnames[] = { | |
242b7b46 | 29499 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29500 | }; |
29501 | ||
994141e6 | 29502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29505 | arg2 = (int) SWIG_AsInt(obj1); | |
29506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29507 | { |
29508 | arg3 = wxString_in_helper(obj2); | |
29509 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29510 | temp3 = True; |
d14a1e28 RD |
29511 | } |
29512 | if (obj3) { | |
29513 | { | |
29514 | arg4 = wxString_in_helper(obj3); | |
29515 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29516 | temp4 = True; |
d14a1e28 RD |
29517 | } |
29518 | } | |
29519 | { | |
29520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29521 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29522 | |
29523 | wxPyEndAllowThreads(__tstate); | |
29524 | if (PyErr_Occurred()) SWIG_fail; | |
29525 | } | |
a41e16b6 RD |
29526 | { |
29527 | resultobj = wxPyMake_wxObject(result); | |
29528 | } | |
d14a1e28 RD |
29529 | { |
29530 | if (temp3) | |
29531 | delete arg3; | |
29532 | } | |
29533 | { | |
29534 | if (temp4) | |
29535 | delete arg4; | |
29536 | } | |
29537 | return resultobj; | |
29538 | fail: | |
29539 | { | |
29540 | if (temp3) | |
29541 | delete arg3; | |
29542 | } | |
29543 | { | |
29544 | if (temp4) | |
29545 | delete arg4; | |
29546 | } | |
29547 | return NULL; | |
29548 | } | |
29549 | ||
29550 | ||
29551 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29552 | PyObject *resultobj; | |
29553 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29554 | int arg2 ; | |
29555 | wxString *arg3 = 0 ; | |
29556 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29557 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
a41e16b6 | 29558 | wxMenuItem *result; |
e811c8ce RD |
29559 | bool temp3 = False ; |
29560 | bool temp4 = False ; | |
d14a1e28 | 29561 | PyObject * obj0 = 0 ; |
994141e6 | 29562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29563 | PyObject * obj2 = 0 ; |
29564 | PyObject * obj3 = 0 ; | |
29565 | char *kwnames[] = { | |
242b7b46 | 29566 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL |
d14a1e28 RD |
29567 | }; |
29568 | ||
994141e6 | 29569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
29570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29572 | arg2 = (int) SWIG_AsInt(obj1); | |
29573 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29574 | { |
29575 | arg3 = wxString_in_helper(obj2); | |
29576 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 29577 | temp3 = True; |
d14a1e28 RD |
29578 | } |
29579 | if (obj3) { | |
29580 | { | |
29581 | arg4 = wxString_in_helper(obj3); | |
29582 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 29583 | temp4 = True; |
d14a1e28 RD |
29584 | } |
29585 | } | |
29586 | { | |
29587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29588 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); |
d14a1e28 RD |
29589 | |
29590 | wxPyEndAllowThreads(__tstate); | |
29591 | if (PyErr_Occurred()) SWIG_fail; | |
29592 | } | |
a41e16b6 RD |
29593 | { |
29594 | resultobj = wxPyMake_wxObject(result); | |
29595 | } | |
d14a1e28 RD |
29596 | { |
29597 | if (temp3) | |
29598 | delete arg3; | |
29599 | } | |
29600 | { | |
29601 | if (temp4) | |
29602 | delete arg4; | |
29603 | } | |
29604 | return resultobj; | |
29605 | fail: | |
29606 | { | |
29607 | if (temp3) | |
29608 | delete arg3; | |
29609 | } | |
29610 | { | |
29611 | if (temp4) | |
29612 | delete arg4; | |
29613 | } | |
29614 | return NULL; | |
29615 | } | |
29616 | ||
29617 | ||
29618 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29619 | PyObject *resultobj; | |
29620 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29621 | int arg2 ; | |
29622 | wxString *arg3 = 0 ; | |
29623 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29624 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29625 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
a41e16b6 | 29626 | wxMenuItem *result; |
e811c8ce RD |
29627 | bool temp3 = False ; |
29628 | bool temp5 = False ; | |
d14a1e28 | 29629 | PyObject * obj0 = 0 ; |
994141e6 | 29630 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29631 | PyObject * obj2 = 0 ; |
29632 | PyObject * obj3 = 0 ; | |
29633 | PyObject * obj4 = 0 ; | |
29634 | char *kwnames[] = { | |
242b7b46 | 29635 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL |
d14a1e28 RD |
29636 | }; |
29637 | ||
994141e6 | 29638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",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 | 29647 | } |
15afbcd0 RD |
29648 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, |
29649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29650 | if (obj4) { |
29651 | { | |
29652 | arg5 = wxString_in_helper(obj4); | |
29653 | if (arg5 == NULL) SWIG_fail; | |
e811c8ce | 29654 | temp5 = True; |
d14a1e28 RD |
29655 | } |
29656 | } | |
29657 | { | |
29658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 29659 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); |
d14a1e28 RD |
29660 | |
29661 | wxPyEndAllowThreads(__tstate); | |
29662 | if (PyErr_Occurred()) SWIG_fail; | |
29663 | } | |
a41e16b6 RD |
29664 | { |
29665 | resultobj = wxPyMake_wxObject(result); | |
29666 | } | |
d14a1e28 RD |
29667 | { |
29668 | if (temp3) | |
29669 | delete arg3; | |
29670 | } | |
29671 | { | |
29672 | if (temp5) | |
29673 | delete arg5; | |
29674 | } | |
29675 | return resultobj; | |
29676 | fail: | |
29677 | { | |
29678 | if (temp3) | |
29679 | delete arg3; | |
29680 | } | |
29681 | { | |
29682 | if (temp5) | |
29683 | delete arg5; | |
29684 | } | |
29685 | return NULL; | |
29686 | } | |
29687 | ||
29688 | ||
29689 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29690 | PyObject *resultobj; | |
29691 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29692 | int arg2 ; | |
29693 | wxMenuItem *result; | |
29694 | PyObject * obj0 = 0 ; | |
994141e6 | 29695 | PyObject * obj1 = 0 ; |
d14a1e28 | 29696 | char *kwnames[] = { |
242b7b46 | 29697 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29698 | }; |
29699 | ||
994141e6 | 29700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29703 | arg2 = (int) SWIG_AsInt(obj1); | |
29704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29705 | { |
29706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29707 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29708 | ||
29709 | wxPyEndAllowThreads(__tstate); | |
29710 | if (PyErr_Occurred()) SWIG_fail; | |
29711 | } | |
29712 | { | |
29713 | resultobj = wxPyMake_wxObject(result); | |
29714 | } | |
29715 | return resultobj; | |
29716 | fail: | |
29717 | return NULL; | |
29718 | } | |
29719 | ||
29720 | ||
29721 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29722 | PyObject *resultobj; | |
29723 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29724 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29725 | wxMenuItem *result; | |
29726 | PyObject * obj0 = 0 ; | |
29727 | PyObject * obj1 = 0 ; | |
29728 | char *kwnames[] = { | |
29729 | (char *) "self",(char *) "item", NULL | |
29730 | }; | |
29731 | ||
29732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29735 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29737 | { |
29738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29739 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29740 | ||
29741 | wxPyEndAllowThreads(__tstate); | |
29742 | if (PyErr_Occurred()) SWIG_fail; | |
29743 | } | |
29744 | { | |
29745 | resultobj = wxPyMake_wxObject(result); | |
29746 | } | |
29747 | return resultobj; | |
29748 | fail: | |
29749 | return NULL; | |
29750 | } | |
29751 | ||
29752 | ||
29753 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29754 | PyObject *resultobj; | |
29755 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29756 | int arg2 ; | |
29757 | bool result; | |
29758 | PyObject * obj0 = 0 ; | |
994141e6 | 29759 | PyObject * obj1 = 0 ; |
d14a1e28 | 29760 | char *kwnames[] = { |
242b7b46 | 29761 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29762 | }; |
29763 | ||
994141e6 | 29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29767 | arg2 = (int) SWIG_AsInt(obj1); | |
29768 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29769 | { |
29770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29771 | result = (bool)(arg1)->Delete(arg2); | |
29772 | ||
29773 | wxPyEndAllowThreads(__tstate); | |
29774 | if (PyErr_Occurred()) SWIG_fail; | |
29775 | } | |
4f89f6a3 RD |
29776 | { |
29777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29778 | } | |
d14a1e28 RD |
29779 | return resultobj; |
29780 | fail: | |
29781 | return NULL; | |
29782 | } | |
29783 | ||
29784 | ||
29785 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29786 | PyObject *resultobj; | |
29787 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29788 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29789 | bool result; | |
29790 | PyObject * obj0 = 0 ; | |
29791 | PyObject * obj1 = 0 ; | |
29792 | char *kwnames[] = { | |
29793 | (char *) "self",(char *) "item", NULL | |
29794 | }; | |
29795 | ||
29796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29801 | { |
29802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29803 | result = (bool)(arg1)->Delete(arg2); | |
29804 | ||
29805 | wxPyEndAllowThreads(__tstate); | |
29806 | if (PyErr_Occurred()) SWIG_fail; | |
29807 | } | |
4f89f6a3 RD |
29808 | { |
29809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29810 | } | |
d14a1e28 RD |
29811 | return resultobj; |
29812 | fail: | |
29813 | return NULL; | |
29814 | } | |
29815 | ||
29816 | ||
29817 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29818 | PyObject *resultobj; | |
29819 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29820 | PyObject * obj0 = 0 ; | |
29821 | char *kwnames[] = { | |
29822 | (char *) "self", NULL | |
29823 | }; | |
29824 | ||
29825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29828 | { |
29829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29830 | wxMenu_Destroy(arg1); | |
29831 | ||
29832 | wxPyEndAllowThreads(__tstate); | |
29833 | if (PyErr_Occurred()) SWIG_fail; | |
29834 | } | |
29835 | Py_INCREF(Py_None); resultobj = Py_None; | |
29836 | return resultobj; | |
29837 | fail: | |
29838 | return NULL; | |
29839 | } | |
29840 | ||
29841 | ||
29842 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29843 | PyObject *resultobj; | |
29844 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29845 | int arg2 ; | |
29846 | bool result; | |
29847 | PyObject * obj0 = 0 ; | |
994141e6 | 29848 | PyObject * obj1 = 0 ; |
d14a1e28 | 29849 | char *kwnames[] = { |
242b7b46 | 29850 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
29851 | }; |
29852 | ||
994141e6 | 29853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
29854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29856 | arg2 = (int) SWIG_AsInt(obj1); | |
29857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29858 | { |
29859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29860 | result = (bool)(arg1)->Destroy(arg2); | |
29861 | ||
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
4f89f6a3 RD |
29865 | { |
29866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29867 | } | |
d14a1e28 RD |
29868 | return resultobj; |
29869 | fail: | |
29870 | return NULL; | |
29871 | } | |
29872 | ||
29873 | ||
29874 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29875 | PyObject *resultobj; | |
29876 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29877 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29878 | bool result; | |
29879 | PyObject * obj0 = 0 ; | |
29880 | PyObject * obj1 = 0 ; | |
29881 | char *kwnames[] = { | |
29882 | (char *) "self",(char *) "item", NULL | |
29883 | }; | |
29884 | ||
29885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29890 | { |
29891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29892 | result = (bool)(arg1)->Destroy(arg2); | |
29893 | ||
29894 | wxPyEndAllowThreads(__tstate); | |
29895 | if (PyErr_Occurred()) SWIG_fail; | |
29896 | } | |
4f89f6a3 RD |
29897 | { |
29898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29899 | } | |
d14a1e28 RD |
29900 | return resultobj; |
29901 | fail: | |
29902 | return NULL; | |
29903 | } | |
29904 | ||
29905 | ||
29906 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29907 | PyObject *resultobj; | |
29908 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29909 | size_t result; | |
29910 | PyObject * obj0 = 0 ; | |
29911 | char *kwnames[] = { | |
29912 | (char *) "self", NULL | |
29913 | }; | |
29914 | ||
29915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29918 | { |
29919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29920 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29921 | ||
29922 | wxPyEndAllowThreads(__tstate); | |
29923 | if (PyErr_Occurred()) SWIG_fail; | |
29924 | } | |
15afbcd0 | 29925 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
29926 | return resultobj; |
29927 | fail: | |
29928 | return NULL; | |
29929 | } | |
29930 | ||
29931 | ||
29932 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29933 | PyObject *resultobj; | |
29934 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29935 | PyObject *result; | |
29936 | PyObject * obj0 = 0 ; | |
29937 | char *kwnames[] = { | |
29938 | (char *) "self", NULL | |
29939 | }; | |
29940 | ||
29941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29944 | { |
29945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29946 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29947 | ||
29948 | wxPyEndAllowThreads(__tstate); | |
29949 | if (PyErr_Occurred()) SWIG_fail; | |
29950 | } | |
29951 | resultobj = result; | |
29952 | return resultobj; | |
29953 | fail: | |
29954 | return NULL; | |
29955 | } | |
29956 | ||
29957 | ||
29958 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29959 | PyObject *resultobj; | |
29960 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29961 | wxString *arg2 = 0 ; | |
29962 | int result; | |
e811c8ce | 29963 | bool temp2 = False ; |
d14a1e28 RD |
29964 | PyObject * obj0 = 0 ; |
29965 | PyObject * obj1 = 0 ; | |
29966 | char *kwnames[] = { | |
29967 | (char *) "self",(char *) "item", NULL | |
29968 | }; | |
29969 | ||
29970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
29972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29973 | { |
29974 | arg2 = wxString_in_helper(obj1); | |
29975 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29976 | temp2 = True; |
d14a1e28 RD |
29977 | } |
29978 | { | |
29979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29980 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29981 | ||
29982 | wxPyEndAllowThreads(__tstate); | |
29983 | if (PyErr_Occurred()) SWIG_fail; | |
29984 | } | |
15afbcd0 | 29985 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
29986 | { |
29987 | if (temp2) | |
29988 | delete arg2; | |
29989 | } | |
29990 | return resultobj; | |
29991 | fail: | |
29992 | { | |
29993 | if (temp2) | |
29994 | delete arg2; | |
29995 | } | |
29996 | return NULL; | |
29997 | } | |
29998 | ||
29999 | ||
30000 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30001 | PyObject *resultobj; | |
30002 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30003 | int arg2 ; | |
30004 | wxMenuItem *result; | |
30005 | PyObject * obj0 = 0 ; | |
994141e6 | 30006 | PyObject * obj1 = 0 ; |
d14a1e28 | 30007 | char *kwnames[] = { |
242b7b46 | 30008 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30009 | }; |
30010 | ||
994141e6 | 30011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30014 | arg2 = (int) SWIG_AsInt(obj1); | |
30015 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30016 | { |
30017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30018 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30019 | ||
30020 | wxPyEndAllowThreads(__tstate); | |
30021 | if (PyErr_Occurred()) SWIG_fail; | |
30022 | } | |
30023 | { | |
30024 | resultobj = wxPyMake_wxObject(result); | |
30025 | } | |
30026 | return resultobj; | |
30027 | fail: | |
30028 | return NULL; | |
30029 | } | |
30030 | ||
30031 | ||
30032 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30033 | PyObject *resultobj; | |
30034 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30035 | size_t arg2 ; | |
30036 | wxMenuItem *result; | |
30037 | PyObject * obj0 = 0 ; | |
30038 | PyObject * obj1 = 0 ; | |
30039 | char *kwnames[] = { | |
30040 | (char *) "self",(char *) "position", NULL | |
30041 | }; | |
30042 | ||
30043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30046 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30048 | { |
30049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30050 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30051 | ||
30052 | wxPyEndAllowThreads(__tstate); | |
30053 | if (PyErr_Occurred()) SWIG_fail; | |
30054 | } | |
30055 | { | |
30056 | resultobj = wxPyMake_wxObject(result); | |
30057 | } | |
30058 | return resultobj; | |
30059 | fail: | |
30060 | return NULL; | |
30061 | } | |
30062 | ||
30063 | ||
30064 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30065 | PyObject *resultobj; | |
30066 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30067 | int arg2 ; | |
30068 | bool arg3 ; | |
30069 | PyObject * obj0 = 0 ; | |
994141e6 | 30070 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30071 | PyObject * obj2 = 0 ; |
30072 | char *kwnames[] = { | |
242b7b46 | 30073 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
30074 | }; |
30075 | ||
994141e6 | 30076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30079 | arg2 = (int) SWIG_AsInt(obj1); | |
30080 | if (PyErr_Occurred()) SWIG_fail; | |
30081 | arg3 = (bool) SWIG_AsBool(obj2); | |
30082 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30083 | { |
30084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30085 | (arg1)->Enable(arg2,arg3); | |
30086 | ||
30087 | wxPyEndAllowThreads(__tstate); | |
30088 | if (PyErr_Occurred()) SWIG_fail; | |
30089 | } | |
30090 | Py_INCREF(Py_None); resultobj = Py_None; | |
30091 | return resultobj; | |
30092 | fail: | |
30093 | return NULL; | |
30094 | } | |
30095 | ||
30096 | ||
30097 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30098 | PyObject *resultobj; | |
30099 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30100 | int arg2 ; | |
30101 | bool result; | |
30102 | PyObject * obj0 = 0 ; | |
994141e6 | 30103 | PyObject * obj1 = 0 ; |
d14a1e28 | 30104 | char *kwnames[] = { |
242b7b46 | 30105 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30106 | }; |
30107 | ||
994141e6 | 30108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30111 | arg2 = (int) SWIG_AsInt(obj1); | |
30112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30113 | { |
30114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30115 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30116 | ||
30117 | wxPyEndAllowThreads(__tstate); | |
30118 | if (PyErr_Occurred()) SWIG_fail; | |
30119 | } | |
4f89f6a3 RD |
30120 | { |
30121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30122 | } | |
d14a1e28 RD |
30123 | return resultobj; |
30124 | fail: | |
30125 | return NULL; | |
30126 | } | |
30127 | ||
30128 | ||
30129 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30130 | PyObject *resultobj; | |
30131 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30132 | int arg2 ; | |
30133 | bool arg3 ; | |
30134 | PyObject * obj0 = 0 ; | |
994141e6 | 30135 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30136 | PyObject * obj2 = 0 ; |
30137 | char *kwnames[] = { | |
242b7b46 | 30138 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
30139 | }; |
30140 | ||
994141e6 | 30141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30144 | arg2 = (int) SWIG_AsInt(obj1); | |
30145 | if (PyErr_Occurred()) SWIG_fail; | |
30146 | arg3 = (bool) SWIG_AsBool(obj2); | |
30147 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30148 | { |
30149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30150 | (arg1)->Check(arg2,arg3); | |
30151 | ||
30152 | wxPyEndAllowThreads(__tstate); | |
30153 | if (PyErr_Occurred()) SWIG_fail; | |
30154 | } | |
30155 | Py_INCREF(Py_None); resultobj = Py_None; | |
30156 | return resultobj; | |
30157 | fail: | |
30158 | return NULL; | |
30159 | } | |
30160 | ||
30161 | ||
30162 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30163 | PyObject *resultobj; | |
30164 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30165 | int arg2 ; | |
30166 | bool result; | |
30167 | PyObject * obj0 = 0 ; | |
994141e6 | 30168 | PyObject * obj1 = 0 ; |
d14a1e28 | 30169 | char *kwnames[] = { |
242b7b46 | 30170 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30171 | }; |
30172 | ||
994141e6 | 30173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30176 | arg2 = (int) SWIG_AsInt(obj1); | |
30177 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30178 | { |
30179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30180 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30181 | ||
30182 | wxPyEndAllowThreads(__tstate); | |
30183 | if (PyErr_Occurred()) SWIG_fail; | |
30184 | } | |
4f89f6a3 RD |
30185 | { |
30186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30187 | } | |
d14a1e28 RD |
30188 | return resultobj; |
30189 | fail: | |
30190 | return NULL; | |
30191 | } | |
30192 | ||
30193 | ||
30194 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30195 | PyObject *resultobj; | |
30196 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30197 | int arg2 ; | |
30198 | wxString *arg3 = 0 ; | |
e811c8ce | 30199 | bool temp3 = False ; |
d14a1e28 | 30200 | PyObject * obj0 = 0 ; |
994141e6 | 30201 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30202 | PyObject * obj2 = 0 ; |
30203 | char *kwnames[] = { | |
242b7b46 | 30204 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
30205 | }; |
30206 | ||
994141e6 | 30207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30210 | arg2 = (int) SWIG_AsInt(obj1); | |
30211 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30212 | { |
30213 | arg3 = wxString_in_helper(obj2); | |
30214 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30215 | temp3 = True; |
d14a1e28 RD |
30216 | } |
30217 | { | |
30218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30219 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30220 | ||
30221 | wxPyEndAllowThreads(__tstate); | |
30222 | if (PyErr_Occurred()) SWIG_fail; | |
30223 | } | |
30224 | Py_INCREF(Py_None); resultobj = Py_None; | |
30225 | { | |
30226 | if (temp3) | |
30227 | delete arg3; | |
30228 | } | |
30229 | return resultobj; | |
30230 | fail: | |
30231 | { | |
30232 | if (temp3) | |
30233 | delete arg3; | |
30234 | } | |
30235 | return NULL; | |
30236 | } | |
30237 | ||
30238 | ||
30239 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30240 | PyObject *resultobj; | |
30241 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30242 | int arg2 ; | |
30243 | wxString result; | |
30244 | PyObject * obj0 = 0 ; | |
994141e6 | 30245 | PyObject * obj1 = 0 ; |
d14a1e28 | 30246 | char *kwnames[] = { |
242b7b46 | 30247 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30248 | }; |
30249 | ||
994141e6 | 30250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30253 | arg2 = (int) SWIG_AsInt(obj1); | |
30254 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30255 | { |
30256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30257 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30258 | ||
30259 | wxPyEndAllowThreads(__tstate); | |
30260 | if (PyErr_Occurred()) SWIG_fail; | |
30261 | } | |
30262 | { | |
30263 | #if wxUSE_UNICODE | |
30264 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30265 | #else | |
30266 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30267 | #endif | |
30268 | } | |
30269 | return resultobj; | |
30270 | fail: | |
30271 | return NULL; | |
30272 | } | |
30273 | ||
30274 | ||
30275 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30276 | PyObject *resultobj; | |
30277 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30278 | int arg2 ; | |
30279 | wxString *arg3 = 0 ; | |
e811c8ce | 30280 | bool temp3 = False ; |
d14a1e28 | 30281 | PyObject * obj0 = 0 ; |
994141e6 | 30282 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30283 | PyObject * obj2 = 0 ; |
30284 | char *kwnames[] = { | |
242b7b46 | 30285 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
30286 | }; |
30287 | ||
994141e6 | 30288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30291 | arg2 = (int) SWIG_AsInt(obj1); | |
30292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30293 | { |
30294 | arg3 = wxString_in_helper(obj2); | |
30295 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30296 | temp3 = True; |
d14a1e28 RD |
30297 | } |
30298 | { | |
30299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30300 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30301 | ||
30302 | wxPyEndAllowThreads(__tstate); | |
30303 | if (PyErr_Occurred()) SWIG_fail; | |
30304 | } | |
30305 | Py_INCREF(Py_None); resultobj = Py_None; | |
30306 | { | |
30307 | if (temp3) | |
30308 | delete arg3; | |
30309 | } | |
30310 | return resultobj; | |
30311 | fail: | |
30312 | { | |
30313 | if (temp3) | |
30314 | delete arg3; | |
30315 | } | |
30316 | return NULL; | |
30317 | } | |
30318 | ||
30319 | ||
30320 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30321 | PyObject *resultobj; | |
30322 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30323 | int arg2 ; | |
30324 | wxString result; | |
30325 | PyObject * obj0 = 0 ; | |
994141e6 | 30326 | PyObject * obj1 = 0 ; |
d14a1e28 | 30327 | char *kwnames[] = { |
242b7b46 | 30328 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
30329 | }; |
30330 | ||
994141e6 | 30331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30334 | arg2 = (int) SWIG_AsInt(obj1); | |
30335 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30336 | { |
30337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30338 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30339 | ||
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | { | |
30344 | #if wxUSE_UNICODE | |
30345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30346 | #else | |
30347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30348 | #endif | |
30349 | } | |
30350 | return resultobj; | |
30351 | fail: | |
30352 | return NULL; | |
30353 | } | |
30354 | ||
30355 | ||
30356 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30357 | PyObject *resultobj; | |
30358 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30359 | wxString *arg2 = 0 ; | |
e811c8ce | 30360 | bool temp2 = False ; |
d14a1e28 RD |
30361 | PyObject * obj0 = 0 ; |
30362 | PyObject * obj1 = 0 ; | |
30363 | char *kwnames[] = { | |
30364 | (char *) "self",(char *) "title", NULL | |
30365 | }; | |
30366 | ||
30367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30370 | { |
30371 | arg2 = wxString_in_helper(obj1); | |
30372 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30373 | temp2 = True; |
d14a1e28 RD |
30374 | } |
30375 | { | |
30376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30377 | (arg1)->SetTitle((wxString const &)*arg2); | |
30378 | ||
30379 | wxPyEndAllowThreads(__tstate); | |
30380 | if (PyErr_Occurred()) SWIG_fail; | |
30381 | } | |
30382 | Py_INCREF(Py_None); resultobj = Py_None; | |
30383 | { | |
30384 | if (temp2) | |
30385 | delete arg2; | |
30386 | } | |
30387 | return resultobj; | |
30388 | fail: | |
30389 | { | |
30390 | if (temp2) | |
30391 | delete arg2; | |
30392 | } | |
30393 | return NULL; | |
30394 | } | |
30395 | ||
30396 | ||
30397 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30398 | PyObject *resultobj; | |
30399 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30400 | wxString result; | |
30401 | PyObject * obj0 = 0 ; | |
30402 | char *kwnames[] = { | |
30403 | (char *) "self", NULL | |
30404 | }; | |
30405 | ||
30406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30409 | { |
30410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30411 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30412 | ||
30413 | wxPyEndAllowThreads(__tstate); | |
30414 | if (PyErr_Occurred()) SWIG_fail; | |
30415 | } | |
30416 | { | |
30417 | #if wxUSE_UNICODE | |
30418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30419 | #else | |
30420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30421 | #endif | |
30422 | } | |
30423 | return resultobj; | |
30424 | fail: | |
30425 | return NULL; | |
30426 | } | |
30427 | ||
30428 | ||
30429 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30430 | PyObject *resultobj; | |
30431 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30432 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30433 | PyObject * obj0 = 0 ; | |
30434 | PyObject * obj1 = 0 ; | |
30435 | char *kwnames[] = { | |
30436 | (char *) "self",(char *) "handler", NULL | |
30437 | }; | |
30438 | ||
30439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30444 | { |
30445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30446 | (arg1)->SetEventHandler(arg2); | |
30447 | ||
30448 | wxPyEndAllowThreads(__tstate); | |
30449 | if (PyErr_Occurred()) SWIG_fail; | |
30450 | } | |
30451 | Py_INCREF(Py_None); resultobj = Py_None; | |
30452 | return resultobj; | |
30453 | fail: | |
30454 | return NULL; | |
30455 | } | |
30456 | ||
30457 | ||
30458 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30459 | PyObject *resultobj; | |
30460 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30461 | wxEvtHandler *result; | |
30462 | PyObject * obj0 = 0 ; | |
30463 | char *kwnames[] = { | |
30464 | (char *) "self", NULL | |
30465 | }; | |
30466 | ||
30467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30470 | { |
30471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30472 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30473 | ||
30474 | wxPyEndAllowThreads(__tstate); | |
30475 | if (PyErr_Occurred()) SWIG_fail; | |
30476 | } | |
30477 | { | |
30478 | resultobj = wxPyMake_wxObject(result); | |
30479 | } | |
30480 | return resultobj; | |
30481 | fail: | |
30482 | return NULL; | |
30483 | } | |
30484 | ||
30485 | ||
30486 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30487 | PyObject *resultobj; | |
30488 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30490 | PyObject * obj0 = 0 ; | |
30491 | PyObject * obj1 = 0 ; | |
30492 | char *kwnames[] = { | |
30493 | (char *) "self",(char *) "win", NULL | |
30494 | }; | |
30495 | ||
30496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30499 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30501 | { |
30502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30503 | (arg1)->SetInvokingWindow(arg2); | |
30504 | ||
30505 | wxPyEndAllowThreads(__tstate); | |
30506 | if (PyErr_Occurred()) SWIG_fail; | |
30507 | } | |
30508 | Py_INCREF(Py_None); resultobj = Py_None; | |
30509 | return resultobj; | |
30510 | fail: | |
30511 | return NULL; | |
30512 | } | |
30513 | ||
30514 | ||
30515 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30516 | PyObject *resultobj; | |
30517 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30518 | wxWindow *result; | |
30519 | PyObject * obj0 = 0 ; | |
30520 | char *kwnames[] = { | |
30521 | (char *) "self", NULL | |
30522 | }; | |
30523 | ||
30524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30527 | { |
30528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30529 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30530 | ||
30531 | wxPyEndAllowThreads(__tstate); | |
30532 | if (PyErr_Occurred()) SWIG_fail; | |
30533 | } | |
30534 | { | |
30535 | resultobj = wxPyMake_wxObject(result); | |
30536 | } | |
30537 | return resultobj; | |
30538 | fail: | |
30539 | return NULL; | |
30540 | } | |
30541 | ||
30542 | ||
30543 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30544 | PyObject *resultobj; | |
30545 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30546 | long result; | |
30547 | PyObject * obj0 = 0 ; | |
30548 | char *kwnames[] = { | |
30549 | (char *) "self", NULL | |
30550 | }; | |
30551 | ||
30552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30555 | { |
30556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30557 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30558 | ||
30559 | wxPyEndAllowThreads(__tstate); | |
30560 | if (PyErr_Occurred()) SWIG_fail; | |
30561 | } | |
15afbcd0 | 30562 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
30563 | return resultobj; |
30564 | fail: | |
30565 | return NULL; | |
30566 | } | |
30567 | ||
30568 | ||
30569 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30570 | PyObject *resultobj; | |
30571 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30572 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30573 | PyObject * obj0 = 0 ; | |
30574 | PyObject * obj1 = 0 ; | |
30575 | char *kwnames[] = { | |
30576 | (char *) "self",(char *) "source", NULL | |
30577 | }; | |
30578 | ||
30579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30582 | if (obj1) { |
15afbcd0 RD |
30583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, |
30584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30585 | } |
30586 | { | |
30587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30588 | (arg1)->UpdateUI(arg2); | |
30589 | ||
30590 | wxPyEndAllowThreads(__tstate); | |
30591 | if (PyErr_Occurred()) SWIG_fail; | |
30592 | } | |
30593 | Py_INCREF(Py_None); resultobj = Py_None; | |
30594 | return resultobj; | |
30595 | fail: | |
30596 | return NULL; | |
30597 | } | |
30598 | ||
30599 | ||
30600 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30601 | PyObject *resultobj; | |
30602 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30603 | wxMenuBar *result; | |
30604 | PyObject * obj0 = 0 ; | |
30605 | char *kwnames[] = { | |
30606 | (char *) "self", NULL | |
30607 | }; | |
30608 | ||
30609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30612 | { |
30613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30614 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30615 | ||
30616 | wxPyEndAllowThreads(__tstate); | |
30617 | if (PyErr_Occurred()) SWIG_fail; | |
30618 | } | |
30619 | { | |
30620 | resultobj = wxPyMake_wxObject(result); | |
30621 | } | |
30622 | return resultobj; | |
30623 | fail: | |
30624 | return NULL; | |
30625 | } | |
30626 | ||
30627 | ||
30628 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30629 | PyObject *resultobj; | |
30630 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30631 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30632 | PyObject * obj0 = 0 ; | |
30633 | PyObject * obj1 = 0 ; | |
30634 | char *kwnames[] = { | |
30635 | (char *) "self",(char *) "menubar", NULL | |
30636 | }; | |
30637 | ||
30638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30643 | { |
30644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30645 | (arg1)->Attach(arg2); | |
30646 | ||
30647 | wxPyEndAllowThreads(__tstate); | |
30648 | if (PyErr_Occurred()) SWIG_fail; | |
30649 | } | |
30650 | Py_INCREF(Py_None); resultobj = Py_None; | |
30651 | return resultobj; | |
30652 | fail: | |
30653 | return NULL; | |
30654 | } | |
30655 | ||
30656 | ||
30657 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30658 | PyObject *resultobj; | |
30659 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30660 | PyObject * obj0 = 0 ; | |
30661 | char *kwnames[] = { | |
30662 | (char *) "self", NULL | |
30663 | }; | |
30664 | ||
30665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30668 | { |
30669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30670 | (arg1)->Detach(); | |
30671 | ||
30672 | wxPyEndAllowThreads(__tstate); | |
30673 | if (PyErr_Occurred()) SWIG_fail; | |
30674 | } | |
30675 | Py_INCREF(Py_None); resultobj = Py_None; | |
30676 | return resultobj; | |
30677 | fail: | |
30678 | return NULL; | |
30679 | } | |
30680 | ||
30681 | ||
30682 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30683 | PyObject *resultobj; | |
30684 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30685 | bool result; | |
30686 | PyObject * obj0 = 0 ; | |
30687 | char *kwnames[] = { | |
30688 | (char *) "self", NULL | |
30689 | }; | |
30690 | ||
30691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30694 | { |
30695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30696 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30697 | ||
30698 | wxPyEndAllowThreads(__tstate); | |
30699 | if (PyErr_Occurred()) SWIG_fail; | |
30700 | } | |
4f89f6a3 RD |
30701 | { |
30702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30703 | } | |
d14a1e28 RD |
30704 | return resultobj; |
30705 | fail: | |
30706 | return NULL; | |
30707 | } | |
30708 | ||
30709 | ||
30710 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30711 | PyObject *resultobj; | |
30712 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30713 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30714 | PyObject * obj0 = 0 ; | |
30715 | PyObject * obj1 = 0 ; | |
30716 | char *kwnames[] = { | |
30717 | (char *) "self",(char *) "parent", NULL | |
30718 | }; | |
30719 | ||
30720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30723 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30725 | { |
30726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30727 | (arg1)->SetParent(arg2); | |
30728 | ||
30729 | wxPyEndAllowThreads(__tstate); | |
30730 | if (PyErr_Occurred()) SWIG_fail; | |
30731 | } | |
30732 | Py_INCREF(Py_None); resultobj = Py_None; | |
30733 | return resultobj; | |
30734 | fail: | |
30735 | return NULL; | |
30736 | } | |
30737 | ||
30738 | ||
30739 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30740 | PyObject *resultobj; | |
30741 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30742 | wxMenu *result; | |
30743 | PyObject * obj0 = 0 ; | |
30744 | char *kwnames[] = { | |
30745 | (char *) "self", NULL | |
30746 | }; | |
30747 | ||
30748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
30750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30751 | { |
30752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30753 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30754 | ||
30755 | wxPyEndAllowThreads(__tstate); | |
30756 | if (PyErr_Occurred()) SWIG_fail; | |
30757 | } | |
30758 | { | |
30759 | resultobj = wxPyMake_wxObject(result); | |
30760 | } | |
30761 | return resultobj; | |
30762 | fail: | |
30763 | return NULL; | |
30764 | } | |
30765 | ||
30766 | ||
30767 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30768 | PyObject *obj; | |
30769 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30770 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30771 | Py_INCREF(obj); | |
30772 | return Py_BuildValue((char *)""); | |
30773 | } | |
30774 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30775 | PyObject *resultobj; | |
30776 | long arg1 = (long) 0 ; | |
30777 | wxMenuBar *result; | |
994141e6 | 30778 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
30779 | char *kwnames[] = { |
30780 | (char *) "style", NULL | |
30781 | }; | |
30782 | ||
994141e6 RD |
30783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; |
30784 | if (obj0) { | |
15afbcd0 RD |
30785 | arg1 = (long) SWIG_AsLong(obj0); |
30786 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30787 | } |
d14a1e28 RD |
30788 | { |
30789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30790 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30791 | ||
30792 | wxPyEndAllowThreads(__tstate); | |
30793 | if (PyErr_Occurred()) SWIG_fail; | |
30794 | } | |
30795 | { | |
30796 | resultobj = wxPyMake_wxObject(result); | |
30797 | } | |
30798 | return resultobj; | |
30799 | fail: | |
30800 | return NULL; | |
30801 | } | |
30802 | ||
30803 | ||
30804 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30805 | PyObject *resultobj; | |
30806 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30807 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30808 | wxString *arg3 = 0 ; | |
30809 | bool result; | |
e811c8ce | 30810 | bool temp3 = False ; |
d14a1e28 RD |
30811 | PyObject * obj0 = 0 ; |
30812 | PyObject * obj1 = 0 ; | |
30813 | PyObject * obj2 = 0 ; | |
30814 | char *kwnames[] = { | |
30815 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30816 | }; | |
30817 | ||
30818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30823 | { |
30824 | arg3 = wxString_in_helper(obj2); | |
30825 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30826 | temp3 = True; |
d14a1e28 RD |
30827 | } |
30828 | { | |
30829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30830 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30831 | ||
30832 | wxPyEndAllowThreads(__tstate); | |
30833 | if (PyErr_Occurred()) SWIG_fail; | |
30834 | } | |
4f89f6a3 RD |
30835 | { |
30836 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30837 | } | |
d14a1e28 RD |
30838 | { |
30839 | if (temp3) | |
30840 | delete arg3; | |
30841 | } | |
30842 | return resultobj; | |
30843 | fail: | |
30844 | { | |
30845 | if (temp3) | |
30846 | delete arg3; | |
30847 | } | |
30848 | return NULL; | |
30849 | } | |
30850 | ||
30851 | ||
30852 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30853 | PyObject *resultobj; | |
30854 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30855 | size_t arg2 ; | |
30856 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30857 | wxString *arg4 = 0 ; | |
30858 | bool result; | |
e811c8ce | 30859 | bool temp4 = False ; |
d14a1e28 RD |
30860 | PyObject * obj0 = 0 ; |
30861 | PyObject * obj1 = 0 ; | |
30862 | PyObject * obj2 = 0 ; | |
30863 | PyObject * obj3 = 0 ; | |
30864 | char *kwnames[] = { | |
30865 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30866 | }; | |
30867 | ||
30868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30871 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30872 | if (PyErr_Occurred()) SWIG_fail; | |
30873 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30875 | { |
30876 | arg4 = wxString_in_helper(obj3); | |
30877 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30878 | temp4 = True; |
d14a1e28 RD |
30879 | } |
30880 | { | |
30881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30882 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30883 | ||
30884 | wxPyEndAllowThreads(__tstate); | |
30885 | if (PyErr_Occurred()) SWIG_fail; | |
30886 | } | |
4f89f6a3 RD |
30887 | { |
30888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30889 | } | |
d14a1e28 RD |
30890 | { |
30891 | if (temp4) | |
30892 | delete arg4; | |
30893 | } | |
30894 | return resultobj; | |
30895 | fail: | |
30896 | { | |
30897 | if (temp4) | |
30898 | delete arg4; | |
30899 | } | |
30900 | return NULL; | |
30901 | } | |
30902 | ||
30903 | ||
30904 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30905 | PyObject *resultobj; | |
30906 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30907 | size_t result; | |
30908 | PyObject * obj0 = 0 ; | |
30909 | char *kwnames[] = { | |
30910 | (char *) "self", NULL | |
30911 | }; | |
30912 | ||
30913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30916 | { |
30917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30918 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30919 | ||
30920 | wxPyEndAllowThreads(__tstate); | |
30921 | if (PyErr_Occurred()) SWIG_fail; | |
30922 | } | |
15afbcd0 | 30923 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
30924 | return resultobj; |
30925 | fail: | |
30926 | return NULL; | |
30927 | } | |
30928 | ||
30929 | ||
30930 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30931 | PyObject *resultobj; | |
30932 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30933 | size_t arg2 ; | |
30934 | wxMenu *result; | |
30935 | PyObject * obj0 = 0 ; | |
30936 | PyObject * obj1 = 0 ; | |
30937 | char *kwnames[] = { | |
30938 | (char *) "self",(char *) "pos", NULL | |
30939 | }; | |
30940 | ||
30941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30944 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30945 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30946 | { |
30947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30948 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30949 | ||
30950 | wxPyEndAllowThreads(__tstate); | |
30951 | if (PyErr_Occurred()) SWIG_fail; | |
30952 | } | |
30953 | { | |
30954 | resultobj = wxPyMake_wxObject(result); | |
30955 | } | |
30956 | return resultobj; | |
30957 | fail: | |
30958 | return NULL; | |
30959 | } | |
30960 | ||
30961 | ||
30962 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30963 | PyObject *resultobj; | |
30964 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30965 | size_t arg2 ; | |
30966 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30967 | wxString *arg4 = 0 ; | |
30968 | wxMenu *result; | |
e811c8ce | 30969 | bool temp4 = False ; |
d14a1e28 RD |
30970 | PyObject * obj0 = 0 ; |
30971 | PyObject * obj1 = 0 ; | |
30972 | PyObject * obj2 = 0 ; | |
30973 | PyObject * obj3 = 0 ; | |
30974 | char *kwnames[] = { | |
30975 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30976 | }; | |
30977 | ||
30978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
30980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30981 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30982 | if (PyErr_Occurred()) SWIG_fail; | |
30983 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30985 | { |
30986 | arg4 = wxString_in_helper(obj3); | |
30987 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 30988 | temp4 = True; |
d14a1e28 RD |
30989 | } |
30990 | { | |
30991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30992 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30993 | ||
30994 | wxPyEndAllowThreads(__tstate); | |
30995 | if (PyErr_Occurred()) SWIG_fail; | |
30996 | } | |
30997 | { | |
30998 | resultobj = wxPyMake_wxObject(result); | |
30999 | } | |
31000 | { | |
31001 | if (temp4) | |
31002 | delete arg4; | |
31003 | } | |
31004 | return resultobj; | |
31005 | fail: | |
31006 | { | |
31007 | if (temp4) | |
31008 | delete arg4; | |
31009 | } | |
31010 | return NULL; | |
31011 | } | |
31012 | ||
31013 | ||
31014 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31015 | PyObject *resultobj; | |
31016 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31017 | size_t arg2 ; | |
31018 | wxMenu *result; | |
31019 | PyObject * obj0 = 0 ; | |
31020 | PyObject * obj1 = 0 ; | |
31021 | char *kwnames[] = { | |
31022 | (char *) "self",(char *) "pos", NULL | |
31023 | }; | |
31024 | ||
31025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31028 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31029 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31030 | { |
31031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31032 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31033 | ||
31034 | wxPyEndAllowThreads(__tstate); | |
31035 | if (PyErr_Occurred()) SWIG_fail; | |
31036 | } | |
31037 | { | |
31038 | resultobj = wxPyMake_wxObject(result); | |
31039 | } | |
31040 | return resultobj; | |
31041 | fail: | |
31042 | return NULL; | |
31043 | } | |
31044 | ||
31045 | ||
31046 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31047 | PyObject *resultobj; | |
31048 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31049 | size_t arg2 ; | |
31050 | bool arg3 ; | |
31051 | PyObject * obj0 = 0 ; | |
31052 | PyObject * obj1 = 0 ; | |
31053 | PyObject * obj2 = 0 ; | |
31054 | char *kwnames[] = { | |
31055 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31056 | }; | |
31057 | ||
31058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31061 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31062 | if (PyErr_Occurred()) SWIG_fail; | |
31063 | arg3 = (bool) SWIG_AsBool(obj2); | |
31064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31065 | { |
31066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31067 | (arg1)->EnableTop(arg2,arg3); | |
31068 | ||
31069 | wxPyEndAllowThreads(__tstate); | |
31070 | if (PyErr_Occurred()) SWIG_fail; | |
31071 | } | |
31072 | Py_INCREF(Py_None); resultobj = Py_None; | |
31073 | return resultobj; | |
31074 | fail: | |
31075 | return NULL; | |
31076 | } | |
31077 | ||
31078 | ||
31079 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31080 | PyObject *resultobj; | |
31081 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31082 | size_t arg2 ; | |
31083 | bool result; | |
31084 | PyObject * obj0 = 0 ; | |
31085 | PyObject * obj1 = 0 ; | |
31086 | char *kwnames[] = { | |
31087 | (char *) "self",(char *) "pos", NULL | |
31088 | }; | |
31089 | ||
31090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31093 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31094 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31095 | { |
31096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31097 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31098 | ||
31099 | wxPyEndAllowThreads(__tstate); | |
31100 | if (PyErr_Occurred()) SWIG_fail; | |
31101 | } | |
4f89f6a3 RD |
31102 | { |
31103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31104 | } | |
d14a1e28 RD |
31105 | return resultobj; |
31106 | fail: | |
31107 | return NULL; | |
31108 | } | |
31109 | ||
31110 | ||
31111 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31112 | PyObject *resultobj; | |
31113 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31114 | size_t arg2 ; | |
31115 | wxString *arg3 = 0 ; | |
e811c8ce | 31116 | bool temp3 = False ; |
d14a1e28 RD |
31117 | PyObject * obj0 = 0 ; |
31118 | PyObject * obj1 = 0 ; | |
31119 | PyObject * obj2 = 0 ; | |
31120 | char *kwnames[] = { | |
31121 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31122 | }; | |
31123 | ||
31124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31127 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31128 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31129 | { |
31130 | arg3 = wxString_in_helper(obj2); | |
31131 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31132 | temp3 = True; |
d14a1e28 RD |
31133 | } |
31134 | { | |
31135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31136 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31137 | ||
31138 | wxPyEndAllowThreads(__tstate); | |
31139 | if (PyErr_Occurred()) SWIG_fail; | |
31140 | } | |
31141 | Py_INCREF(Py_None); resultobj = Py_None; | |
31142 | { | |
31143 | if (temp3) | |
31144 | delete arg3; | |
31145 | } | |
31146 | return resultobj; | |
31147 | fail: | |
31148 | { | |
31149 | if (temp3) | |
31150 | delete arg3; | |
31151 | } | |
31152 | return NULL; | |
31153 | } | |
31154 | ||
31155 | ||
31156 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31157 | PyObject *resultobj; | |
31158 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31159 | size_t arg2 ; | |
31160 | wxString result; | |
31161 | PyObject * obj0 = 0 ; | |
31162 | PyObject * obj1 = 0 ; | |
31163 | char *kwnames[] = { | |
31164 | (char *) "self",(char *) "pos", NULL | |
31165 | }; | |
31166 | ||
31167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31170 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31171 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31172 | { |
31173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31174 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31175 | ||
31176 | wxPyEndAllowThreads(__tstate); | |
31177 | if (PyErr_Occurred()) SWIG_fail; | |
31178 | } | |
31179 | { | |
31180 | #if wxUSE_UNICODE | |
31181 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31182 | #else | |
31183 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31184 | #endif | |
31185 | } | |
31186 | return resultobj; | |
31187 | fail: | |
31188 | return NULL; | |
31189 | } | |
31190 | ||
31191 | ||
31192 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31193 | PyObject *resultobj; | |
31194 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31195 | wxString *arg2 = 0 ; | |
31196 | wxString *arg3 = 0 ; | |
31197 | int result; | |
e811c8ce RD |
31198 | bool temp2 = False ; |
31199 | bool temp3 = False ; | |
d14a1e28 RD |
31200 | PyObject * obj0 = 0 ; |
31201 | PyObject * obj1 = 0 ; | |
31202 | PyObject * obj2 = 0 ; | |
31203 | char *kwnames[] = { | |
31204 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31205 | }; | |
31206 | ||
31207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31210 | { |
31211 | arg2 = wxString_in_helper(obj1); | |
31212 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31213 | temp2 = True; |
d14a1e28 RD |
31214 | } |
31215 | { | |
31216 | arg3 = wxString_in_helper(obj2); | |
31217 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31218 | temp3 = True; |
d14a1e28 RD |
31219 | } |
31220 | { | |
31221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31222 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31223 | ||
31224 | wxPyEndAllowThreads(__tstate); | |
31225 | if (PyErr_Occurred()) SWIG_fail; | |
31226 | } | |
15afbcd0 | 31227 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31228 | { |
31229 | if (temp2) | |
31230 | delete arg2; | |
31231 | } | |
31232 | { | |
31233 | if (temp3) | |
31234 | delete arg3; | |
31235 | } | |
31236 | return resultobj; | |
31237 | fail: | |
31238 | { | |
31239 | if (temp2) | |
31240 | delete arg2; | |
31241 | } | |
31242 | { | |
31243 | if (temp3) | |
31244 | delete arg3; | |
31245 | } | |
31246 | return NULL; | |
31247 | } | |
31248 | ||
31249 | ||
31250 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31251 | PyObject *resultobj; | |
31252 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31253 | int arg2 ; | |
31254 | wxMenuItem *result; | |
31255 | PyObject * obj0 = 0 ; | |
994141e6 | 31256 | PyObject * obj1 = 0 ; |
d14a1e28 | 31257 | char *kwnames[] = { |
242b7b46 | 31258 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31259 | }; |
31260 | ||
994141e6 | 31261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31264 | arg2 = (int) SWIG_AsInt(obj1); | |
31265 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31266 | { |
31267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31268 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31269 | ||
31270 | wxPyEndAllowThreads(__tstate); | |
31271 | if (PyErr_Occurred()) SWIG_fail; | |
31272 | } | |
31273 | { | |
31274 | resultobj = wxPyMake_wxObject(result); | |
31275 | } | |
31276 | return resultobj; | |
31277 | fail: | |
31278 | return NULL; | |
31279 | } | |
31280 | ||
31281 | ||
31282 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31283 | PyObject *resultobj; | |
31284 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31285 | wxString *arg2 = 0 ; | |
31286 | int result; | |
e811c8ce | 31287 | bool temp2 = False ; |
d14a1e28 RD |
31288 | PyObject * obj0 = 0 ; |
31289 | PyObject * obj1 = 0 ; | |
31290 | char *kwnames[] = { | |
31291 | (char *) "self",(char *) "title", NULL | |
31292 | }; | |
31293 | ||
31294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31297 | { |
31298 | arg2 = wxString_in_helper(obj1); | |
31299 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31300 | temp2 = True; |
d14a1e28 RD |
31301 | } |
31302 | { | |
31303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31304 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31305 | ||
31306 | wxPyEndAllowThreads(__tstate); | |
31307 | if (PyErr_Occurred()) SWIG_fail; | |
31308 | } | |
15afbcd0 | 31309 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31310 | { |
31311 | if (temp2) | |
31312 | delete arg2; | |
31313 | } | |
31314 | return resultobj; | |
31315 | fail: | |
31316 | { | |
31317 | if (temp2) | |
31318 | delete arg2; | |
31319 | } | |
31320 | return NULL; | |
31321 | } | |
31322 | ||
31323 | ||
31324 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31325 | PyObject *resultobj; | |
31326 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31327 | int arg2 ; | |
31328 | bool arg3 ; | |
31329 | PyObject * obj0 = 0 ; | |
994141e6 | 31330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31331 | PyObject * obj2 = 0 ; |
31332 | char *kwnames[] = { | |
242b7b46 | 31333 | (char *) "self",(char *) "id",(char *) "enable", NULL |
d14a1e28 RD |
31334 | }; |
31335 | ||
994141e6 | 31336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31339 | arg2 = (int) SWIG_AsInt(obj1); | |
31340 | if (PyErr_Occurred()) SWIG_fail; | |
31341 | arg3 = (bool) SWIG_AsBool(obj2); | |
31342 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31343 | { |
31344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31345 | (arg1)->Enable(arg2,arg3); | |
31346 | ||
31347 | wxPyEndAllowThreads(__tstate); | |
31348 | if (PyErr_Occurred()) SWIG_fail; | |
31349 | } | |
31350 | Py_INCREF(Py_None); resultobj = Py_None; | |
31351 | return resultobj; | |
31352 | fail: | |
31353 | return NULL; | |
31354 | } | |
31355 | ||
31356 | ||
31357 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31358 | PyObject *resultobj; | |
31359 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31360 | int arg2 ; | |
31361 | bool arg3 ; | |
31362 | PyObject * obj0 = 0 ; | |
994141e6 | 31363 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31364 | PyObject * obj2 = 0 ; |
31365 | char *kwnames[] = { | |
242b7b46 | 31366 | (char *) "self",(char *) "id",(char *) "check", NULL |
d14a1e28 RD |
31367 | }; |
31368 | ||
994141e6 | 31369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31372 | arg2 = (int) SWIG_AsInt(obj1); | |
31373 | if (PyErr_Occurred()) SWIG_fail; | |
31374 | arg3 = (bool) SWIG_AsBool(obj2); | |
31375 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31376 | { |
31377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31378 | (arg1)->Check(arg2,arg3); | |
31379 | ||
31380 | wxPyEndAllowThreads(__tstate); | |
31381 | if (PyErr_Occurred()) SWIG_fail; | |
31382 | } | |
31383 | Py_INCREF(Py_None); resultobj = Py_None; | |
31384 | return resultobj; | |
31385 | fail: | |
31386 | return NULL; | |
31387 | } | |
31388 | ||
31389 | ||
31390 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31391 | PyObject *resultobj; | |
31392 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31393 | int arg2 ; | |
31394 | bool result; | |
31395 | PyObject * obj0 = 0 ; | |
994141e6 | 31396 | PyObject * obj1 = 0 ; |
d14a1e28 | 31397 | char *kwnames[] = { |
242b7b46 | 31398 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31399 | }; |
31400 | ||
994141e6 | 31401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",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 = (int) SWIG_AsInt(obj1); | |
31405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31406 | { |
31407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31408 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31409 | ||
31410 | wxPyEndAllowThreads(__tstate); | |
31411 | if (PyErr_Occurred()) SWIG_fail; | |
31412 | } | |
4f89f6a3 RD |
31413 | { |
31414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31415 | } | |
d14a1e28 RD |
31416 | return resultobj; |
31417 | fail: | |
31418 | return NULL; | |
31419 | } | |
31420 | ||
31421 | ||
31422 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31423 | PyObject *resultobj; | |
31424 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31425 | int arg2 ; | |
31426 | bool result; | |
31427 | PyObject * obj0 = 0 ; | |
994141e6 | 31428 | PyObject * obj1 = 0 ; |
d14a1e28 | 31429 | char *kwnames[] = { |
242b7b46 | 31430 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31431 | }; |
31432 | ||
994141e6 | 31433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31436 | arg2 = (int) SWIG_AsInt(obj1); | |
31437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31438 | { |
31439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31440 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31441 | ||
31442 | wxPyEndAllowThreads(__tstate); | |
31443 | if (PyErr_Occurred()) SWIG_fail; | |
31444 | } | |
4f89f6a3 RD |
31445 | { |
31446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31447 | } | |
d14a1e28 RD |
31448 | return resultobj; |
31449 | fail: | |
31450 | return NULL; | |
31451 | } | |
31452 | ||
31453 | ||
31454 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31455 | PyObject *resultobj; | |
31456 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31457 | int arg2 ; | |
31458 | wxString *arg3 = 0 ; | |
e811c8ce | 31459 | bool temp3 = False ; |
d14a1e28 | 31460 | PyObject * obj0 = 0 ; |
994141e6 | 31461 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31462 | PyObject * obj2 = 0 ; |
31463 | char *kwnames[] = { | |
242b7b46 | 31464 | (char *) "self",(char *) "id",(char *) "label", NULL |
d14a1e28 RD |
31465 | }; |
31466 | ||
994141e6 | 31467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31470 | arg2 = (int) SWIG_AsInt(obj1); | |
31471 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31472 | { |
31473 | arg3 = wxString_in_helper(obj2); | |
31474 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31475 | temp3 = True; |
d14a1e28 RD |
31476 | } |
31477 | { | |
31478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31479 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31480 | ||
31481 | wxPyEndAllowThreads(__tstate); | |
31482 | if (PyErr_Occurred()) SWIG_fail; | |
31483 | } | |
31484 | Py_INCREF(Py_None); resultobj = Py_None; | |
31485 | { | |
31486 | if (temp3) | |
31487 | delete arg3; | |
31488 | } | |
31489 | return resultobj; | |
31490 | fail: | |
31491 | { | |
31492 | if (temp3) | |
31493 | delete arg3; | |
31494 | } | |
31495 | return NULL; | |
31496 | } | |
31497 | ||
31498 | ||
31499 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31500 | PyObject *resultobj; | |
31501 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31502 | int arg2 ; | |
31503 | wxString result; | |
31504 | PyObject * obj0 = 0 ; | |
994141e6 | 31505 | PyObject * obj1 = 0 ; |
d14a1e28 | 31506 | char *kwnames[] = { |
242b7b46 | 31507 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31508 | }; |
31509 | ||
994141e6 | 31510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31513 | arg2 = (int) SWIG_AsInt(obj1); | |
31514 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31515 | { |
31516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31517 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31518 | ||
31519 | wxPyEndAllowThreads(__tstate); | |
31520 | if (PyErr_Occurred()) SWIG_fail; | |
31521 | } | |
31522 | { | |
31523 | #if wxUSE_UNICODE | |
31524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31525 | #else | |
31526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31527 | #endif | |
31528 | } | |
31529 | return resultobj; | |
31530 | fail: | |
31531 | return NULL; | |
31532 | } | |
31533 | ||
31534 | ||
31535 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31536 | PyObject *resultobj; | |
31537 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31538 | int arg2 ; | |
31539 | wxString *arg3 = 0 ; | |
e811c8ce | 31540 | bool temp3 = False ; |
d14a1e28 | 31541 | PyObject * obj0 = 0 ; |
994141e6 | 31542 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31543 | PyObject * obj2 = 0 ; |
31544 | char *kwnames[] = { | |
242b7b46 | 31545 | (char *) "self",(char *) "id",(char *) "helpString", NULL |
d14a1e28 RD |
31546 | }; |
31547 | ||
994141e6 | 31548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
31549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31551 | arg2 = (int) SWIG_AsInt(obj1); | |
31552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31553 | { |
31554 | arg3 = wxString_in_helper(obj2); | |
31555 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31556 | temp3 = True; |
d14a1e28 RD |
31557 | } |
31558 | { | |
31559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31560 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31561 | ||
31562 | wxPyEndAllowThreads(__tstate); | |
31563 | if (PyErr_Occurred()) SWIG_fail; | |
31564 | } | |
31565 | Py_INCREF(Py_None); resultobj = Py_None; | |
31566 | { | |
31567 | if (temp3) | |
31568 | delete arg3; | |
31569 | } | |
31570 | return resultobj; | |
31571 | fail: | |
31572 | { | |
31573 | if (temp3) | |
31574 | delete arg3; | |
31575 | } | |
31576 | return NULL; | |
31577 | } | |
31578 | ||
31579 | ||
31580 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31581 | PyObject *resultobj; | |
31582 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31583 | int arg2 ; | |
31584 | wxString result; | |
31585 | PyObject * obj0 = 0 ; | |
994141e6 | 31586 | PyObject * obj1 = 0 ; |
d14a1e28 | 31587 | char *kwnames[] = { |
242b7b46 | 31588 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31589 | }; |
31590 | ||
994141e6 | 31591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31594 | arg2 = (int) SWIG_AsInt(obj1); | |
31595 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31596 | { |
31597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31598 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31599 | ||
31600 | wxPyEndAllowThreads(__tstate); | |
31601 | if (PyErr_Occurred()) SWIG_fail; | |
31602 | } | |
31603 | { | |
31604 | #if wxUSE_UNICODE | |
31605 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31606 | #else | |
31607 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31608 | #endif | |
31609 | } | |
31610 | return resultobj; | |
31611 | fail: | |
31612 | return NULL; | |
31613 | } | |
31614 | ||
31615 | ||
31616 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31617 | PyObject *resultobj; | |
31618 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31619 | wxFrame *result; | |
31620 | PyObject * obj0 = 0 ; | |
31621 | char *kwnames[] = { | |
31622 | (char *) "self", NULL | |
31623 | }; | |
31624 | ||
31625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31628 | { |
31629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31630 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31631 | ||
31632 | wxPyEndAllowThreads(__tstate); | |
31633 | if (PyErr_Occurred()) SWIG_fail; | |
31634 | } | |
31635 | { | |
31636 | resultobj = wxPyMake_wxObject(result); | |
31637 | } | |
31638 | return resultobj; | |
31639 | fail: | |
31640 | return NULL; | |
31641 | } | |
31642 | ||
31643 | ||
31644 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31645 | PyObject *resultobj; | |
31646 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31647 | bool result; | |
31648 | PyObject * obj0 = 0 ; | |
31649 | char *kwnames[] = { | |
31650 | (char *) "self", NULL | |
31651 | }; | |
31652 | ||
31653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31656 | { |
31657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31658 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31659 | ||
31660 | wxPyEndAllowThreads(__tstate); | |
31661 | if (PyErr_Occurred()) SWIG_fail; | |
31662 | } | |
4f89f6a3 RD |
31663 | { |
31664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31665 | } | |
d14a1e28 RD |
31666 | return resultobj; |
31667 | fail: | |
31668 | return NULL; | |
31669 | } | |
31670 | ||
31671 | ||
31672 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31673 | PyObject *resultobj; | |
31674 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31675 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31676 | PyObject * obj0 = 0 ; | |
31677 | PyObject * obj1 = 0 ; | |
31678 | char *kwnames[] = { | |
31679 | (char *) "self",(char *) "frame", NULL | |
31680 | }; | |
31681 | ||
31682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31687 | { |
31688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31689 | (arg1)->Attach(arg2); | |
31690 | ||
31691 | wxPyEndAllowThreads(__tstate); | |
31692 | if (PyErr_Occurred()) SWIG_fail; | |
31693 | } | |
31694 | Py_INCREF(Py_None); resultobj = Py_None; | |
31695 | return resultobj; | |
31696 | fail: | |
31697 | return NULL; | |
31698 | } | |
31699 | ||
31700 | ||
31701 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31702 | PyObject *resultobj; | |
31703 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31704 | PyObject * obj0 = 0 ; | |
31705 | char *kwnames[] = { | |
31706 | (char *) "self", NULL | |
31707 | }; | |
31708 | ||
31709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, |
31711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31712 | { |
31713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31714 | (arg1)->Detach(); | |
31715 | ||
31716 | wxPyEndAllowThreads(__tstate); | |
31717 | if (PyErr_Occurred()) SWIG_fail; | |
31718 | } | |
31719 | Py_INCREF(Py_None); resultobj = Py_None; | |
31720 | return resultobj; | |
31721 | fail: | |
31722 | return NULL; | |
31723 | } | |
31724 | ||
31725 | ||
31726 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31727 | PyObject *obj; | |
31728 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31729 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31730 | Py_INCREF(obj); | |
31731 | return Py_BuildValue((char *)""); | |
31732 | } | |
31733 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31734 | PyObject *resultobj; | |
31735 | wxMenu *arg1 = (wxMenu *) NULL ; | |
a95a7133 | 31736 | int arg2 = (int) wxID_ANY ; |
d14a1e28 RD |
31737 | wxString const &arg3_defvalue = wxPyEmptyString ; |
31738 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31739 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31740 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31741 | int arg5 = (int) wxITEM_NORMAL ; | |
31742 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31743 | wxMenuItem *result; | |
e811c8ce RD |
31744 | bool temp3 = False ; |
31745 | bool temp4 = False ; | |
d14a1e28 | 31746 | PyObject * obj0 = 0 ; |
994141e6 | 31747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
31748 | PyObject * obj2 = 0 ; |
31749 | PyObject * obj3 = 0 ; | |
994141e6 | 31750 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
31751 | PyObject * obj5 = 0 ; |
31752 | char *kwnames[] = { | |
31753 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31754 | }; | |
31755 | ||
994141e6 | 31756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d14a1e28 | 31757 | if (obj0) { |
15afbcd0 RD |
31758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, |
31759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 31760 | } |
994141e6 | 31761 | if (obj1) { |
15afbcd0 RD |
31762 | arg2 = (int) SWIG_AsInt(obj1); |
31763 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31764 | } |
d14a1e28 RD |
31765 | if (obj2) { |
31766 | { | |
31767 | arg3 = wxString_in_helper(obj2); | |
31768 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 31769 | temp3 = True; |
d14a1e28 RD |
31770 | } |
31771 | } | |
31772 | if (obj3) { | |
31773 | { | |
31774 | arg4 = wxString_in_helper(obj3); | |
31775 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 31776 | temp4 = True; |
d14a1e28 RD |
31777 | } |
31778 | } | |
994141e6 | 31779 | if (obj4) { |
15afbcd0 RD |
31780 | arg5 = (wxItemKind) SWIG_AsInt(obj4); |
31781 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 31782 | } |
d14a1e28 | 31783 | if (obj5) { |
15afbcd0 RD |
31784 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, |
31785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31786 | } |
31787 | { | |
31788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31789 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31790 | ||
31791 | wxPyEndAllowThreads(__tstate); | |
31792 | if (PyErr_Occurred()) SWIG_fail; | |
31793 | } | |
31794 | { | |
31795 | resultobj = wxPyMake_wxObject(result); | |
31796 | } | |
31797 | { | |
31798 | if (temp3) | |
31799 | delete arg3; | |
31800 | } | |
31801 | { | |
31802 | if (temp4) | |
31803 | delete arg4; | |
31804 | } | |
31805 | return resultobj; | |
31806 | fail: | |
31807 | { | |
31808 | if (temp3) | |
31809 | delete arg3; | |
31810 | } | |
31811 | { | |
31812 | if (temp4) | |
31813 | delete arg4; | |
31814 | } | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
31819 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31820 | PyObject *resultobj; | |
31821 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31822 | wxMenu *result; | |
31823 | PyObject * obj0 = 0 ; | |
31824 | char *kwnames[] = { | |
31825 | (char *) "self", NULL | |
31826 | }; | |
31827 | ||
31828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31831 | { |
31832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31833 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31834 | ||
31835 | wxPyEndAllowThreads(__tstate); | |
31836 | if (PyErr_Occurred()) SWIG_fail; | |
31837 | } | |
31838 | { | |
31839 | resultobj = wxPyMake_wxObject(result); | |
31840 | } | |
31841 | return resultobj; | |
31842 | fail: | |
31843 | return NULL; | |
31844 | } | |
31845 | ||
31846 | ||
31847 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31848 | PyObject *resultobj; | |
31849 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31850 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31851 | PyObject * obj0 = 0 ; | |
31852 | PyObject * obj1 = 0 ; | |
31853 | char *kwnames[] = { | |
31854 | (char *) "self",(char *) "menu", NULL | |
31855 | }; | |
31856 | ||
31857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31860 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31862 | { |
31863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31864 | (arg1)->SetMenu(arg2); | |
31865 | ||
31866 | wxPyEndAllowThreads(__tstate); | |
31867 | if (PyErr_Occurred()) SWIG_fail; | |
31868 | } | |
31869 | Py_INCREF(Py_None); resultobj = Py_None; | |
31870 | return resultobj; | |
31871 | fail: | |
31872 | return NULL; | |
31873 | } | |
31874 | ||
31875 | ||
31876 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31877 | PyObject *resultobj; | |
31878 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31879 | int arg2 ; | |
31880 | PyObject * obj0 = 0 ; | |
994141e6 | 31881 | PyObject * obj1 = 0 ; |
d14a1e28 | 31882 | char *kwnames[] = { |
242b7b46 | 31883 | (char *) "self",(char *) "id", NULL |
d14a1e28 RD |
31884 | }; |
31885 | ||
994141e6 | 31886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
31887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31889 | arg2 = (int) SWIG_AsInt(obj1); | |
31890 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
31891 | { |
31892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31893 | (arg1)->SetId(arg2); | |
31894 | ||
31895 | wxPyEndAllowThreads(__tstate); | |
31896 | if (PyErr_Occurred()) SWIG_fail; | |
31897 | } | |
31898 | Py_INCREF(Py_None); resultobj = Py_None; | |
31899 | return resultobj; | |
31900 | fail: | |
31901 | return NULL; | |
31902 | } | |
31903 | ||
31904 | ||
31905 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31906 | PyObject *resultobj; | |
31907 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31908 | int result; | |
31909 | PyObject * obj0 = 0 ; | |
31910 | char *kwnames[] = { | |
31911 | (char *) "self", NULL | |
31912 | }; | |
31913 | ||
31914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31917 | { |
31918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31919 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31920 | ||
31921 | wxPyEndAllowThreads(__tstate); | |
31922 | if (PyErr_Occurred()) SWIG_fail; | |
31923 | } | |
15afbcd0 | 31924 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
31925 | return resultobj; |
31926 | fail: | |
31927 | return NULL; | |
31928 | } | |
31929 | ||
31930 | ||
31931 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31932 | PyObject *resultobj; | |
31933 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31934 | bool result; | |
31935 | PyObject * obj0 = 0 ; | |
31936 | char *kwnames[] = { | |
31937 | (char *) "self", NULL | |
31938 | }; | |
31939 | ||
31940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31943 | { |
31944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31945 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31946 | ||
31947 | wxPyEndAllowThreads(__tstate); | |
31948 | if (PyErr_Occurred()) SWIG_fail; | |
31949 | } | |
4f89f6a3 RD |
31950 | { |
31951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31952 | } | |
d14a1e28 RD |
31953 | return resultobj; |
31954 | fail: | |
31955 | return NULL; | |
31956 | } | |
31957 | ||
31958 | ||
31959 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31960 | PyObject *resultobj; | |
31961 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31962 | wxString *arg2 = 0 ; | |
e811c8ce | 31963 | bool temp2 = False ; |
d14a1e28 RD |
31964 | PyObject * obj0 = 0 ; |
31965 | PyObject * obj1 = 0 ; | |
31966 | char *kwnames[] = { | |
31967 | (char *) "self",(char *) "str", NULL | |
31968 | }; | |
31969 | ||
31970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
31972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
31973 | { |
31974 | arg2 = wxString_in_helper(obj1); | |
31975 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 31976 | temp2 = True; |
d14a1e28 RD |
31977 | } |
31978 | { | |
31979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31980 | (arg1)->SetText((wxString const &)*arg2); | |
31981 | ||
31982 | wxPyEndAllowThreads(__tstate); | |
31983 | if (PyErr_Occurred()) SWIG_fail; | |
31984 | } | |
31985 | Py_INCREF(Py_None); resultobj = Py_None; | |
31986 | { | |
31987 | if (temp2) | |
31988 | delete arg2; | |
31989 | } | |
31990 | return resultobj; | |
31991 | fail: | |
31992 | { | |
31993 | if (temp2) | |
31994 | delete arg2; | |
31995 | } | |
31996 | return NULL; | |
31997 | } | |
31998 | ||
31999 | ||
32000 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32001 | PyObject *resultobj; | |
32002 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32003 | wxString result; | |
32004 | PyObject * obj0 = 0 ; | |
32005 | char *kwnames[] = { | |
32006 | (char *) "self", NULL | |
32007 | }; | |
32008 | ||
32009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32012 | { |
32013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32014 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32015 | ||
32016 | wxPyEndAllowThreads(__tstate); | |
32017 | if (PyErr_Occurred()) SWIG_fail; | |
32018 | } | |
32019 | { | |
32020 | #if wxUSE_UNICODE | |
32021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32022 | #else | |
32023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32024 | #endif | |
32025 | } | |
32026 | return resultobj; | |
32027 | fail: | |
32028 | return NULL; | |
32029 | } | |
32030 | ||
32031 | ||
32032 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32033 | PyObject *resultobj; | |
32034 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32035 | wxString *result; | |
32036 | PyObject * obj0 = 0 ; | |
32037 | char *kwnames[] = { | |
32038 | (char *) "self", NULL | |
32039 | }; | |
32040 | ||
32041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32044 | { |
32045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32046 | { | |
32047 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32048 | result = (wxString *) &_result_ref; | |
32049 | } | |
32050 | ||
32051 | wxPyEndAllowThreads(__tstate); | |
32052 | if (PyErr_Occurred()) SWIG_fail; | |
32053 | } | |
cc6dd355 RD |
32054 | { |
32055 | #if wxUSE_UNICODE | |
32056 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32057 | #else | |
32058 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32059 | #endif | |
32060 | } | |
d14a1e28 RD |
32061 | return resultobj; |
32062 | fail: | |
32063 | return NULL; | |
32064 | } | |
32065 | ||
32066 | ||
32067 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32068 | PyObject *resultobj; | |
32069 | wxString *arg1 = 0 ; | |
32070 | wxString result; | |
e811c8ce | 32071 | bool temp1 = False ; |
d14a1e28 RD |
32072 | PyObject * obj0 = 0 ; |
32073 | char *kwnames[] = { | |
32074 | (char *) "text", NULL | |
32075 | }; | |
32076 | ||
32077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32078 | { | |
32079 | arg1 = wxString_in_helper(obj0); | |
32080 | if (arg1 == NULL) SWIG_fail; | |
e811c8ce | 32081 | temp1 = True; |
d14a1e28 RD |
32082 | } |
32083 | { | |
32084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32085 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32086 | ||
32087 | wxPyEndAllowThreads(__tstate); | |
32088 | if (PyErr_Occurred()) SWIG_fail; | |
32089 | } | |
32090 | { | |
32091 | #if wxUSE_UNICODE | |
32092 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32093 | #else | |
32094 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32095 | #endif | |
32096 | } | |
32097 | { | |
32098 | if (temp1) | |
32099 | delete arg1; | |
32100 | } | |
32101 | return resultobj; | |
32102 | fail: | |
32103 | { | |
32104 | if (temp1) | |
32105 | delete arg1; | |
32106 | } | |
32107 | return NULL; | |
32108 | } | |
32109 | ||
32110 | ||
32111 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32112 | PyObject *resultobj; | |
32113 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32114 | int result; | |
32115 | PyObject * obj0 = 0 ; | |
32116 | char *kwnames[] = { | |
32117 | (char *) "self", NULL | |
32118 | }; | |
32119 | ||
32120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32123 | { |
32124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32125 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32126 | ||
32127 | wxPyEndAllowThreads(__tstate); | |
32128 | if (PyErr_Occurred()) SWIG_fail; | |
32129 | } | |
15afbcd0 | 32130 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32131 | return resultobj; |
32132 | fail: | |
32133 | return NULL; | |
32134 | } | |
32135 | ||
32136 | ||
a95a7133 RD |
32137 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { |
32138 | PyObject *resultobj; | |
32139 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32140 | int arg2 ; | |
32141 | PyObject * obj0 = 0 ; | |
32142 | PyObject * obj1 = 0 ; | |
32143 | char *kwnames[] = { | |
32144 | (char *) "self",(char *) "kind", NULL | |
32145 | }; | |
32146 | ||
32147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32150 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32151 | if (PyErr_Occurred()) SWIG_fail; | |
32152 | { | |
32153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32154 | (arg1)->SetKind((wxItemKind )arg2); | |
32155 | ||
32156 | wxPyEndAllowThreads(__tstate); | |
32157 | if (PyErr_Occurred()) SWIG_fail; | |
32158 | } | |
32159 | Py_INCREF(Py_None); resultobj = Py_None; | |
32160 | return resultobj; | |
32161 | fail: | |
32162 | return NULL; | |
32163 | } | |
32164 | ||
32165 | ||
d14a1e28 RD |
32166 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
32167 | PyObject *resultobj; | |
32168 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32169 | bool arg2 ; | |
32170 | PyObject * obj0 = 0 ; | |
32171 | PyObject * obj1 = 0 ; | |
32172 | char *kwnames[] = { | |
32173 | (char *) "self",(char *) "checkable", NULL | |
32174 | }; | |
32175 | ||
32176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32179 | arg2 = (bool) SWIG_AsBool(obj1); | |
32180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32181 | { |
32182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32183 | (arg1)->SetCheckable(arg2); | |
32184 | ||
32185 | wxPyEndAllowThreads(__tstate); | |
32186 | if (PyErr_Occurred()) SWIG_fail; | |
32187 | } | |
32188 | Py_INCREF(Py_None); resultobj = Py_None; | |
32189 | return resultobj; | |
32190 | fail: | |
32191 | return NULL; | |
32192 | } | |
32193 | ||
32194 | ||
32195 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32196 | PyObject *resultobj; | |
32197 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32198 | bool result; | |
32199 | PyObject * obj0 = 0 ; | |
32200 | char *kwnames[] = { | |
32201 | (char *) "self", NULL | |
32202 | }; | |
32203 | ||
32204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32209 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32210 | ||
32211 | wxPyEndAllowThreads(__tstate); | |
32212 | if (PyErr_Occurred()) SWIG_fail; | |
32213 | } | |
4f89f6a3 RD |
32214 | { |
32215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32216 | } | |
d14a1e28 RD |
32217 | return resultobj; |
32218 | fail: | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
32223 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32224 | PyObject *resultobj; | |
32225 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32226 | bool result; | |
32227 | PyObject * obj0 = 0 ; | |
32228 | char *kwnames[] = { | |
32229 | (char *) "self", NULL | |
32230 | }; | |
32231 | ||
32232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32235 | { |
32236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32237 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32238 | ||
32239 | wxPyEndAllowThreads(__tstate); | |
32240 | if (PyErr_Occurred()) SWIG_fail; | |
32241 | } | |
4f89f6a3 RD |
32242 | { |
32243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32244 | } | |
d14a1e28 RD |
32245 | return resultobj; |
32246 | fail: | |
32247 | return NULL; | |
32248 | } | |
32249 | ||
32250 | ||
32251 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32252 | PyObject *resultobj; | |
32253 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32254 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32255 | PyObject * obj0 = 0 ; | |
32256 | PyObject * obj1 = 0 ; | |
32257 | char *kwnames[] = { | |
32258 | (char *) "self",(char *) "menu", NULL | |
32259 | }; | |
32260 | ||
32261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32266 | { |
32267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32268 | (arg1)->SetSubMenu(arg2); | |
32269 | ||
32270 | wxPyEndAllowThreads(__tstate); | |
32271 | if (PyErr_Occurred()) SWIG_fail; | |
32272 | } | |
32273 | Py_INCREF(Py_None); resultobj = Py_None; | |
32274 | return resultobj; | |
32275 | fail: | |
32276 | return NULL; | |
32277 | } | |
32278 | ||
32279 | ||
32280 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32281 | PyObject *resultobj; | |
32282 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32283 | wxMenu *result; | |
32284 | PyObject * obj0 = 0 ; | |
32285 | char *kwnames[] = { | |
32286 | (char *) "self", NULL | |
32287 | }; | |
32288 | ||
32289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32292 | { |
32293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32294 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32295 | ||
32296 | wxPyEndAllowThreads(__tstate); | |
32297 | if (PyErr_Occurred()) SWIG_fail; | |
32298 | } | |
32299 | { | |
32300 | resultobj = wxPyMake_wxObject(result); | |
32301 | } | |
32302 | return resultobj; | |
32303 | fail: | |
32304 | return NULL; | |
32305 | } | |
32306 | ||
32307 | ||
32308 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32309 | PyObject *resultobj; | |
32310 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32311 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32312 | PyObject * obj0 = 0 ; |
32313 | PyObject * obj1 = 0 ; | |
32314 | char *kwnames[] = { | |
32315 | (char *) "self",(char *) "enable", NULL | |
32316 | }; | |
32317 | ||
32318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32321 | if (obj1) { |
15afbcd0 RD |
32322 | arg2 = (bool) SWIG_AsBool(obj1); |
32323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32324 | } |
32325 | { | |
32326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32327 | (arg1)->Enable(arg2); | |
32328 | ||
32329 | wxPyEndAllowThreads(__tstate); | |
32330 | if (PyErr_Occurred()) SWIG_fail; | |
32331 | } | |
32332 | Py_INCREF(Py_None); resultobj = Py_None; | |
32333 | return resultobj; | |
32334 | fail: | |
32335 | return NULL; | |
32336 | } | |
32337 | ||
32338 | ||
32339 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32340 | PyObject *resultobj; | |
32341 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32342 | bool result; | |
32343 | PyObject * obj0 = 0 ; | |
32344 | char *kwnames[] = { | |
32345 | (char *) "self", NULL | |
32346 | }; | |
32347 | ||
32348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32351 | { |
32352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32353 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32354 | ||
32355 | wxPyEndAllowThreads(__tstate); | |
32356 | if (PyErr_Occurred()) SWIG_fail; | |
32357 | } | |
4f89f6a3 RD |
32358 | { |
32359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32360 | } | |
d14a1e28 RD |
32361 | return resultobj; |
32362 | fail: | |
32363 | return NULL; | |
32364 | } | |
32365 | ||
32366 | ||
32367 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32368 | PyObject *resultobj; | |
32369 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
e811c8ce | 32370 | bool arg2 = (bool) True ; |
d14a1e28 RD |
32371 | PyObject * obj0 = 0 ; |
32372 | PyObject * obj1 = 0 ; | |
32373 | char *kwnames[] = { | |
32374 | (char *) "self",(char *) "check", NULL | |
32375 | }; | |
32376 | ||
32377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 32380 | if (obj1) { |
15afbcd0 RD |
32381 | arg2 = (bool) SWIG_AsBool(obj1); |
32382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32383 | } |
32384 | { | |
32385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32386 | (arg1)->Check(arg2); | |
32387 | ||
32388 | wxPyEndAllowThreads(__tstate); | |
32389 | if (PyErr_Occurred()) SWIG_fail; | |
32390 | } | |
32391 | Py_INCREF(Py_None); resultobj = Py_None; | |
32392 | return resultobj; | |
32393 | fail: | |
32394 | return NULL; | |
32395 | } | |
32396 | ||
32397 | ||
32398 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32399 | PyObject *resultobj; | |
32400 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32401 | bool result; | |
32402 | PyObject * obj0 = 0 ; | |
32403 | char *kwnames[] = { | |
32404 | (char *) "self", NULL | |
32405 | }; | |
32406 | ||
32407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32410 | { |
32411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32412 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32413 | ||
32414 | wxPyEndAllowThreads(__tstate); | |
32415 | if (PyErr_Occurred()) SWIG_fail; | |
32416 | } | |
4f89f6a3 RD |
32417 | { |
32418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32419 | } | |
d14a1e28 RD |
32420 | return resultobj; |
32421 | fail: | |
32422 | return NULL; | |
32423 | } | |
32424 | ||
32425 | ||
32426 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32427 | PyObject *resultobj; | |
32428 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32429 | PyObject * obj0 = 0 ; | |
32430 | char *kwnames[] = { | |
32431 | (char *) "self", NULL | |
32432 | }; | |
32433 | ||
32434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32437 | { |
32438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32439 | (arg1)->Toggle(); | |
32440 | ||
32441 | wxPyEndAllowThreads(__tstate); | |
32442 | if (PyErr_Occurred()) SWIG_fail; | |
32443 | } | |
32444 | Py_INCREF(Py_None); resultobj = Py_None; | |
32445 | return resultobj; | |
32446 | fail: | |
32447 | return NULL; | |
32448 | } | |
32449 | ||
32450 | ||
32451 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32452 | PyObject *resultobj; | |
32453 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32454 | wxString *arg2 = 0 ; | |
e811c8ce | 32455 | bool temp2 = False ; |
d14a1e28 RD |
32456 | PyObject * obj0 = 0 ; |
32457 | PyObject * obj1 = 0 ; | |
32458 | char *kwnames[] = { | |
32459 | (char *) "self",(char *) "str", NULL | |
32460 | }; | |
32461 | ||
32462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32465 | { |
32466 | arg2 = wxString_in_helper(obj1); | |
32467 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32468 | temp2 = True; |
d14a1e28 RD |
32469 | } |
32470 | { | |
32471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32472 | (arg1)->SetHelp((wxString const &)*arg2); | |
32473 | ||
32474 | wxPyEndAllowThreads(__tstate); | |
32475 | if (PyErr_Occurred()) SWIG_fail; | |
32476 | } | |
32477 | Py_INCREF(Py_None); resultobj = Py_None; | |
32478 | { | |
32479 | if (temp2) | |
32480 | delete arg2; | |
32481 | } | |
32482 | return resultobj; | |
32483 | fail: | |
32484 | { | |
32485 | if (temp2) | |
32486 | delete arg2; | |
32487 | } | |
32488 | return NULL; | |
32489 | } | |
32490 | ||
32491 | ||
32492 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32493 | PyObject *resultobj; | |
32494 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32495 | wxString *result; | |
32496 | PyObject * obj0 = 0 ; | |
32497 | char *kwnames[] = { | |
32498 | (char *) "self", NULL | |
32499 | }; | |
32500 | ||
32501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32504 | { |
32505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32506 | { | |
32507 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32508 | result = (wxString *) &_result_ref; | |
32509 | } | |
32510 | ||
32511 | wxPyEndAllowThreads(__tstate); | |
32512 | if (PyErr_Occurred()) SWIG_fail; | |
32513 | } | |
cc6dd355 RD |
32514 | { |
32515 | #if wxUSE_UNICODE | |
32516 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32517 | #else | |
32518 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32519 | #endif | |
32520 | } | |
d14a1e28 RD |
32521 | return resultobj; |
32522 | fail: | |
32523 | return NULL; | |
32524 | } | |
32525 | ||
32526 | ||
32527 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32528 | PyObject *resultobj; | |
32529 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32530 | wxAcceleratorEntry *result; | |
32531 | PyObject * obj0 = 0 ; | |
32532 | char *kwnames[] = { | |
32533 | (char *) "self", NULL | |
32534 | }; | |
32535 | ||
32536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32539 | { |
32540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32541 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32542 | ||
32543 | wxPyEndAllowThreads(__tstate); | |
32544 | if (PyErr_Occurred()) SWIG_fail; | |
32545 | } | |
15afbcd0 | 32546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); |
d14a1e28 RD |
32547 | return resultobj; |
32548 | fail: | |
32549 | return NULL; | |
32550 | } | |
32551 | ||
32552 | ||
32553 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32554 | PyObject *resultobj; | |
32555 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32556 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32557 | PyObject * obj0 = 0 ; | |
32558 | PyObject * obj1 = 0 ; | |
32559 | char *kwnames[] = { | |
32560 | (char *) "self",(char *) "accel", NULL | |
32561 | }; | |
32562 | ||
32563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32568 | { |
32569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32570 | (arg1)->SetAccel(arg2); | |
32571 | ||
32572 | wxPyEndAllowThreads(__tstate); | |
32573 | if (PyErr_Occurred()) SWIG_fail; | |
32574 | } | |
32575 | Py_INCREF(Py_None); resultobj = Py_None; | |
32576 | return resultobj; | |
32577 | fail: | |
32578 | return NULL; | |
32579 | } | |
32580 | ||
32581 | ||
32582 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32583 | PyObject *resultobj; | |
32584 | int result; | |
32585 | char *kwnames[] = { | |
32586 | NULL | |
32587 | }; | |
32588 | ||
32589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32590 | { | |
32591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32592 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
32593 | ||
32594 | wxPyEndAllowThreads(__tstate); | |
32595 | if (PyErr_Occurred()) SWIG_fail; | |
32596 | } | |
15afbcd0 | 32597 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
32598 | return resultobj; |
32599 | fail: | |
32600 | return NULL; | |
32601 | } | |
32602 | ||
32603 | ||
32604 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32605 | PyObject *resultobj; | |
32606 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32607 | wxBitmap *arg2 = 0 ; | |
32608 | PyObject * obj0 = 0 ; | |
32609 | PyObject * obj1 = 0 ; | |
32610 | char *kwnames[] = { | |
32611 | (char *) "self",(char *) "bitmap", NULL | |
32612 | }; | |
32613 | ||
32614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32619 | SWIG_fail; | |
d14a1e28 | 32620 | if (arg2 == NULL) { |
15afbcd0 RD |
32621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32622 | SWIG_fail; | |
d14a1e28 RD |
32623 | } |
32624 | { | |
32625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32626 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32627 | ||
32628 | wxPyEndAllowThreads(__tstate); | |
32629 | if (PyErr_Occurred()) SWIG_fail; | |
32630 | } | |
32631 | Py_INCREF(Py_None); resultobj = Py_None; | |
32632 | return resultobj; | |
32633 | fail: | |
32634 | return NULL; | |
32635 | } | |
32636 | ||
32637 | ||
32638 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32639 | PyObject *resultobj; | |
32640 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32641 | wxBitmap *result; | |
32642 | PyObject * obj0 = 0 ; | |
32643 | char *kwnames[] = { | |
32644 | (char *) "self", NULL | |
32645 | }; | |
32646 | ||
32647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, |
32649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32650 | { |
32651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32652 | { | |
32653 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
32654 | result = (wxBitmap *) &_result_ref; | |
32655 | } | |
32656 | ||
32657 | wxPyEndAllowThreads(__tstate); | |
32658 | if (PyErr_Occurred()) SWIG_fail; | |
32659 | } | |
4276dc52 RD |
32660 | { |
32661 | wxBitmap* resultptr = new wxBitmap(*result); | |
32662 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32663 | } | |
d14a1e28 RD |
32664 | return resultobj; |
32665 | fail: | |
32666 | return NULL; | |
32667 | } | |
32668 | ||
32669 | ||
32670 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
32671 | PyObject *obj; | |
32672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32673 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
32674 | Py_INCREF(obj); | |
32675 | return Py_BuildValue((char *)""); | |
32676 | } | |
b2dc1044 RD |
32677 | static int _wrap_ControlNameStr_set(PyObject *_val) { |
32678 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
32679 | return 1; | |
32680 | } | |
32681 | ||
32682 | ||
32683 | static PyObject *_wrap_ControlNameStr_get() { | |
32684 | PyObject *pyobj; | |
32685 | ||
32686 | { | |
32687 | #if wxUSE_UNICODE | |
32688 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32689 | #else | |
32690 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
32691 | #endif | |
32692 | } | |
32693 | return pyobj; | |
32694 | } | |
32695 | ||
32696 | ||
d14a1e28 RD |
32697 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { |
32698 | PyObject *resultobj; | |
32699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 32700 | int arg2 ; |
d14a1e28 RD |
32701 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
32702 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
32703 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
32704 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
32705 | long arg5 = (long) 0 ; | |
32706 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
32707 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
32708 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
32709 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
32710 | wxControl *result; | |
32711 | wxPoint temp3 ; | |
32712 | wxSize temp4 ; | |
e811c8ce | 32713 | bool temp7 = False ; |
d14a1e28 | 32714 | PyObject * obj0 = 0 ; |
994141e6 | 32715 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
32716 | PyObject * obj2 = 0 ; |
32717 | PyObject * obj3 = 0 ; | |
994141e6 | 32718 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
32719 | PyObject * obj5 = 0 ; |
32720 | PyObject * obj6 = 0 ; | |
32721 | char *kwnames[] = { | |
32722 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32723 | }; | |
32724 | ||
994141e6 | 32725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
32726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
32727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32728 | arg2 = (int) SWIG_AsInt(obj1); | |
32729 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32730 | if (obj2) { |
32731 | { | |
32732 | arg3 = &temp3; | |
32733 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
32734 | } | |
32735 | } | |
32736 | if (obj3) { | |
32737 | { | |
32738 | arg4 = &temp4; | |
32739 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
32740 | } | |
32741 | } | |
994141e6 | 32742 | if (obj4) { |
15afbcd0 RD |
32743 | arg5 = (long) SWIG_AsLong(obj4); |
32744 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32745 | } |
d14a1e28 | 32746 | if (obj5) { |
15afbcd0 RD |
32747 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
32748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32749 | SWIG_fail; | |
d14a1e28 | 32750 | if (arg6 == NULL) { |
15afbcd0 RD |
32751 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32752 | SWIG_fail; | |
d14a1e28 RD |
32753 | } |
32754 | } | |
32755 | if (obj6) { | |
32756 | { | |
32757 | arg7 = wxString_in_helper(obj6); | |
32758 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 32759 | temp7 = True; |
d14a1e28 RD |
32760 | } |
32761 | } | |
32762 | { | |
32763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32764 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
32765 | ||
32766 | wxPyEndAllowThreads(__tstate); | |
32767 | if (PyErr_Occurred()) SWIG_fail; | |
32768 | } | |
32769 | { | |
32770 | resultobj = wxPyMake_wxObject(result); | |
32771 | } | |
32772 | { | |
32773 | if (temp7) | |
32774 | delete arg7; | |
32775 | } | |
32776 | return resultobj; | |
32777 | fail: | |
32778 | { | |
32779 | if (temp7) | |
32780 | delete arg7; | |
32781 | } | |
32782 | return NULL; | |
32783 | } | |
32784 | ||
32785 | ||
32786 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32787 | PyObject *resultobj; | |
32788 | wxControl *result; | |
32789 | char *kwnames[] = { | |
32790 | NULL | |
32791 | }; | |
32792 | ||
32793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
32794 | { | |
32795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32796 | result = (wxControl *)new wxControl(); | |
32797 | ||
32798 | wxPyEndAllowThreads(__tstate); | |
32799 | if (PyErr_Occurred()) SWIG_fail; | |
32800 | } | |
32801 | { | |
32802 | resultobj = wxPyMake_wxObject(result); | |
32803 | } | |
32804 | return resultobj; | |
32805 | fail: | |
32806 | return NULL; | |
32807 | } | |
32808 | ||
32809 | ||
32810 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32811 | PyObject *resultobj; | |
32812 | wxControl *arg1 = (wxControl *) 0 ; | |
32813 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 32814 | int arg3 ; |
d14a1e28 RD |
32815 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
32816 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
32817 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
32818 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
32819 | long arg6 = (long) 0 ; | |
32820 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
32821 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
32822 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
32823 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
32824 | bool result; | |
32825 | wxPoint temp4 ; | |
32826 | wxSize temp5 ; | |
e811c8ce | 32827 | bool temp8 = False ; |
d14a1e28 RD |
32828 | PyObject * obj0 = 0 ; |
32829 | PyObject * obj1 = 0 ; | |
994141e6 | 32830 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
32831 | PyObject * obj3 = 0 ; |
32832 | PyObject * obj4 = 0 ; | |
994141e6 | 32833 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
32834 | PyObject * obj6 = 0 ; |
32835 | PyObject * obj7 = 0 ; | |
32836 | char *kwnames[] = { | |
32837 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
32838 | }; | |
32839 | ||
994141e6 | 32840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
32841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32843 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
32844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32845 | arg3 = (int) SWIG_AsInt(obj2); | |
32846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
32847 | if (obj3) { |
32848 | { | |
32849 | arg4 = &temp4; | |
32850 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
32851 | } | |
32852 | } | |
32853 | if (obj4) { | |
32854 | { | |
32855 | arg5 = &temp5; | |
32856 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
32857 | } | |
32858 | } | |
994141e6 | 32859 | if (obj5) { |
15afbcd0 RD |
32860 | arg6 = (long) SWIG_AsLong(obj5); |
32861 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 32862 | } |
d14a1e28 | 32863 | if (obj6) { |
15afbcd0 RD |
32864 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
32865 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32866 | SWIG_fail; | |
d14a1e28 | 32867 | if (arg7 == NULL) { |
15afbcd0 RD |
32868 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32869 | SWIG_fail; | |
d14a1e28 RD |
32870 | } |
32871 | } | |
32872 | if (obj7) { | |
32873 | { | |
32874 | arg8 = wxString_in_helper(obj7); | |
32875 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 32876 | temp8 = True; |
d14a1e28 RD |
32877 | } |
32878 | } | |
32879 | { | |
32880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32881 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
32882 | ||
32883 | wxPyEndAllowThreads(__tstate); | |
32884 | if (PyErr_Occurred()) SWIG_fail; | |
32885 | } | |
4f89f6a3 RD |
32886 | { |
32887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32888 | } | |
d14a1e28 RD |
32889 | { |
32890 | if (temp8) | |
32891 | delete arg8; | |
32892 | } | |
32893 | return resultobj; | |
32894 | fail: | |
32895 | { | |
32896 | if (temp8) | |
32897 | delete arg8; | |
32898 | } | |
32899 | return NULL; | |
32900 | } | |
32901 | ||
32902 | ||
32903 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32904 | PyObject *resultobj; | |
32905 | wxControl *arg1 = (wxControl *) 0 ; | |
32906 | wxCommandEvent *arg2 = 0 ; | |
32907 | PyObject * obj0 = 0 ; | |
32908 | PyObject * obj1 = 0 ; | |
32909 | char *kwnames[] = { | |
32910 | (char *) "self",(char *) "event", NULL | |
32911 | }; | |
32912 | ||
32913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32916 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
32917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32918 | SWIG_fail; | |
d14a1e28 | 32919 | if (arg2 == NULL) { |
15afbcd0 RD |
32920 | PyErr_SetString(PyExc_TypeError,"null reference"); |
32921 | SWIG_fail; | |
d14a1e28 RD |
32922 | } |
32923 | { | |
32924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32925 | (arg1)->Command(*arg2); | |
32926 | ||
32927 | wxPyEndAllowThreads(__tstate); | |
32928 | if (PyErr_Occurred()) SWIG_fail; | |
32929 | } | |
32930 | Py_INCREF(Py_None); resultobj = Py_None; | |
32931 | return resultobj; | |
32932 | fail: | |
32933 | return NULL; | |
32934 | } | |
32935 | ||
32936 | ||
32937 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32938 | PyObject *resultobj; | |
32939 | wxControl *arg1 = (wxControl *) 0 ; | |
32940 | wxString result; | |
32941 | PyObject * obj0 = 0 ; | |
32942 | char *kwnames[] = { | |
32943 | (char *) "self", NULL | |
32944 | }; | |
32945 | ||
32946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
32947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32949 | { |
32950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32951 | result = (arg1)->GetLabel(); | |
32952 | ||
32953 | wxPyEndAllowThreads(__tstate); | |
32954 | if (PyErr_Occurred()) SWIG_fail; | |
32955 | } | |
32956 | { | |
32957 | #if wxUSE_UNICODE | |
32958 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32959 | #else | |
32960 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32961 | #endif | |
32962 | } | |
32963 | return resultobj; | |
32964 | fail: | |
32965 | return NULL; | |
32966 | } | |
32967 | ||
32968 | ||
32969 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32970 | PyObject *resultobj; | |
32971 | wxControl *arg1 = (wxControl *) 0 ; | |
32972 | wxString *arg2 = 0 ; | |
e811c8ce | 32973 | bool temp2 = False ; |
d14a1e28 RD |
32974 | PyObject * obj0 = 0 ; |
32975 | PyObject * obj1 = 0 ; | |
32976 | char *kwnames[] = { | |
32977 | (char *) "self",(char *) "label", NULL | |
32978 | }; | |
32979 | ||
32980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
32981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
32982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
32983 | { |
32984 | arg2 = wxString_in_helper(obj1); | |
32985 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 32986 | temp2 = True; |
d14a1e28 RD |
32987 | } |
32988 | { | |
32989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32990 | (arg1)->SetLabel((wxString const &)*arg2); | |
32991 | ||
32992 | wxPyEndAllowThreads(__tstate); | |
32993 | if (PyErr_Occurred()) SWIG_fail; | |
32994 | } | |
32995 | Py_INCREF(Py_None); resultobj = Py_None; | |
32996 | { | |
32997 | if (temp2) | |
32998 | delete arg2; | |
32999 | } | |
33000 | return resultobj; | |
33001 | fail: | |
33002 | { | |
33003 | if (temp2) | |
33004 | delete arg2; | |
33005 | } | |
33006 | return NULL; | |
33007 | } | |
33008 | ||
33009 | ||
74a57fcd RD |
33010 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
33011 | PyObject *resultobj; | |
33012 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33013 | wxVisualAttributes result; | |
33014 | PyObject * obj0 = 0 ; | |
33015 | char *kwnames[] = { | |
33016 | (char *) "variant", NULL | |
33017 | }; | |
33018 | ||
33019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33020 | if (obj0) { | |
33021 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
33022 | if (PyErr_Occurred()) SWIG_fail; | |
33023 | } | |
33024 | { | |
33025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33026 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33027 | ||
33028 | wxPyEndAllowThreads(__tstate); | |
33029 | if (PyErr_Occurred()) SWIG_fail; | |
33030 | } | |
33031 | { | |
33032 | wxVisualAttributes * resultptr; | |
33033 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33034 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33035 | } | |
33036 | return resultobj; | |
33037 | fail: | |
33038 | return NULL; | |
33039 | } | |
33040 | ||
33041 | ||
d14a1e28 RD |
33042 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { |
33043 | PyObject *obj; | |
33044 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33045 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33046 | Py_INCREF(obj); | |
33047 | return Py_BuildValue((char *)""); | |
33048 | } | |
33049 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33050 | PyObject *resultobj; | |
33051 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33052 | wxString *arg2 = 0 ; | |
33053 | PyObject *arg3 = (PyObject *) NULL ; | |
33054 | int result; | |
e811c8ce | 33055 | bool temp2 = False ; |
d14a1e28 RD |
33056 | PyObject * obj0 = 0 ; |
33057 | PyObject * obj1 = 0 ; | |
33058 | PyObject * obj2 = 0 ; | |
33059 | char *kwnames[] = { | |
33060 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33061 | }; | |
33062 | ||
33063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
33064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33066 | { |
33067 | arg2 = wxString_in_helper(obj1); | |
33068 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33069 | temp2 = True; |
d14a1e28 RD |
33070 | } |
33071 | if (obj2) { | |
33072 | arg3 = obj2; | |
33073 | } | |
33074 | { | |
33075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33076 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33077 | ||
33078 | wxPyEndAllowThreads(__tstate); | |
33079 | if (PyErr_Occurred()) SWIG_fail; | |
33080 | } | |
15afbcd0 | 33081 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33082 | { |
33083 | if (temp2) | |
33084 | delete arg2; | |
33085 | } | |
33086 | return resultobj; | |
33087 | fail: | |
33088 | { | |
33089 | if (temp2) | |
33090 | delete arg2; | |
33091 | } | |
33092 | return NULL; | |
33093 | } | |
33094 | ||
33095 | ||
33096 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33097 | PyObject *resultobj; | |
33098 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33099 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 33100 | bool temp2 = False ; |
d14a1e28 RD |
33101 | PyObject * obj0 = 0 ; |
33102 | PyObject * obj1 = 0 ; | |
33103 | char *kwnames[] = { | |
33104 | (char *) "self",(char *) "strings", NULL | |
33105 | }; | |
33106 | ||
33107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33110 | { |
33111 | if (! PySequence_Check(obj1)) { | |
33112 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33113 | SWIG_fail; | |
33114 | } | |
33115 | arg2 = new wxArrayString; | |
3adfb63b | 33116 | temp2 = True; |
d14a1e28 RD |
33117 | int i, len=PySequence_Length(obj1); |
33118 | for (i=0; i<len; i++) { | |
33119 | PyObject* item = PySequence_GetItem(obj1, i); | |
33120 | #if wxUSE_UNICODE | |
33121 | PyObject* str = PyObject_Unicode(item); | |
33122 | #else | |
33123 | PyObject* str = PyObject_Str(item); | |
33124 | #endif | |
74a57fcd | 33125 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
33126 | arg2->Add(Py2wxString(str)); |
33127 | Py_DECREF(item); | |
33128 | Py_DECREF(str); | |
33129 | } | |
33130 | } | |
33131 | { | |
33132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33133 | (arg1)->Append((wxArrayString const &)*arg2); | |
33134 | ||
33135 | wxPyEndAllowThreads(__tstate); | |
33136 | if (PyErr_Occurred()) SWIG_fail; | |
33137 | } | |
33138 | Py_INCREF(Py_None); resultobj = Py_None; | |
33139 | { | |
3adfb63b | 33140 | if (temp2) delete arg2; |
d14a1e28 RD |
33141 | } |
33142 | return resultobj; | |
33143 | fail: | |
33144 | { | |
3adfb63b | 33145 | if (temp2) delete arg2; |
d14a1e28 RD |
33146 | } |
33147 | return NULL; | |
33148 | } | |
33149 | ||
33150 | ||
33151 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33152 | PyObject *resultobj; | |
33153 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33154 | wxString *arg2 = 0 ; | |
33155 | int arg3 ; | |
33156 | PyObject *arg4 = (PyObject *) NULL ; | |
33157 | int result; | |
e811c8ce | 33158 | bool temp2 = False ; |
d14a1e28 RD |
33159 | PyObject * obj0 = 0 ; |
33160 | PyObject * obj1 = 0 ; | |
994141e6 | 33161 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
33162 | PyObject * obj3 = 0 ; |
33163 | char *kwnames[] = { | |
33164 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33165 | }; | |
33166 | ||
994141e6 | 33167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
33168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33170 | { |
33171 | arg2 = wxString_in_helper(obj1); | |
33172 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33173 | temp2 = True; |
d14a1e28 | 33174 | } |
15afbcd0 RD |
33175 | arg3 = (int) SWIG_AsInt(obj2); |
33176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33177 | if (obj3) { |
33178 | arg4 = obj3; | |
33179 | } | |
33180 | { | |
33181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33182 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33183 | ||
33184 | wxPyEndAllowThreads(__tstate); | |
33185 | if (PyErr_Occurred()) SWIG_fail; | |
33186 | } | |
15afbcd0 | 33187 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33188 | { |
33189 | if (temp2) | |
33190 | delete arg2; | |
33191 | } | |
33192 | return resultobj; | |
33193 | fail: | |
33194 | { | |
33195 | if (temp2) | |
33196 | delete arg2; | |
33197 | } | |
33198 | return NULL; | |
33199 | } | |
33200 | ||
33201 | ||
33202 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33203 | PyObject *resultobj; | |
33204 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33205 | PyObject * obj0 = 0 ; | |
33206 | char *kwnames[] = { | |
33207 | (char *) "self", NULL | |
33208 | }; | |
33209 | ||
33210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33213 | { |
33214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33215 | (arg1)->Clear(); | |
33216 | ||
33217 | wxPyEndAllowThreads(__tstate); | |
33218 | if (PyErr_Occurred()) SWIG_fail; | |
33219 | } | |
33220 | Py_INCREF(Py_None); resultobj = Py_None; | |
33221 | return resultobj; | |
33222 | fail: | |
33223 | return NULL; | |
33224 | } | |
33225 | ||
33226 | ||
33227 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33228 | PyObject *resultobj; | |
33229 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33230 | int arg2 ; | |
33231 | PyObject * obj0 = 0 ; | |
994141e6 | 33232 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33233 | char *kwnames[] = { |
33234 | (char *) "self",(char *) "n", NULL | |
33235 | }; | |
33236 | ||
994141e6 | 33237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33240 | arg2 = (int) SWIG_AsInt(obj1); | |
33241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33242 | { |
33243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33244 | (arg1)->Delete(arg2); | |
33245 | ||
33246 | wxPyEndAllowThreads(__tstate); | |
33247 | if (PyErr_Occurred()) SWIG_fail; | |
33248 | } | |
33249 | Py_INCREF(Py_None); resultobj = Py_None; | |
33250 | return resultobj; | |
33251 | fail: | |
33252 | return NULL; | |
33253 | } | |
33254 | ||
33255 | ||
33256 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33257 | PyObject *resultobj; | |
33258 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33259 | int result; | |
33260 | PyObject * obj0 = 0 ; | |
33261 | char *kwnames[] = { | |
33262 | (char *) "self", NULL | |
33263 | }; | |
33264 | ||
33265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33268 | { |
33269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33270 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33271 | ||
33272 | wxPyEndAllowThreads(__tstate); | |
33273 | if (PyErr_Occurred()) SWIG_fail; | |
33274 | } | |
15afbcd0 | 33275 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33276 | return resultobj; |
33277 | fail: | |
33278 | return NULL; | |
33279 | } | |
33280 | ||
33281 | ||
33282 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33283 | PyObject *resultobj; | |
33284 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33285 | bool result; | |
33286 | PyObject * obj0 = 0 ; | |
33287 | char *kwnames[] = { | |
33288 | (char *) "self", NULL | |
33289 | }; | |
33290 | ||
33291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33294 | { |
33295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33296 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33297 | ||
33298 | wxPyEndAllowThreads(__tstate); | |
33299 | if (PyErr_Occurred()) SWIG_fail; | |
33300 | } | |
4f89f6a3 RD |
33301 | { |
33302 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33303 | } | |
d14a1e28 RD |
33304 | return resultobj; |
33305 | fail: | |
33306 | return NULL; | |
33307 | } | |
33308 | ||
33309 | ||
33310 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33311 | PyObject *resultobj; | |
33312 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33313 | int arg2 ; | |
33314 | wxString result; | |
33315 | PyObject * obj0 = 0 ; | |
994141e6 | 33316 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33317 | char *kwnames[] = { |
33318 | (char *) "self",(char *) "n", NULL | |
33319 | }; | |
33320 | ||
994141e6 | 33321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33324 | arg2 = (int) SWIG_AsInt(obj1); | |
33325 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33326 | { |
33327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33328 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33329 | ||
33330 | wxPyEndAllowThreads(__tstate); | |
33331 | if (PyErr_Occurred()) SWIG_fail; | |
33332 | } | |
33333 | { | |
33334 | #if wxUSE_UNICODE | |
33335 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33336 | #else | |
33337 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33338 | #endif | |
33339 | } | |
33340 | return resultobj; | |
33341 | fail: | |
33342 | return NULL; | |
33343 | } | |
33344 | ||
33345 | ||
33346 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33347 | PyObject *resultobj; | |
33348 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33349 | wxArrayString result; | |
33350 | PyObject * obj0 = 0 ; | |
33351 | char *kwnames[] = { | |
33352 | (char *) "self", NULL | |
33353 | }; | |
33354 | ||
33355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33358 | { |
33359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33360 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33361 | ||
33362 | wxPyEndAllowThreads(__tstate); | |
33363 | if (PyErr_Occurred()) SWIG_fail; | |
33364 | } | |
33365 | { | |
33366 | resultobj = wxArrayString2PyList_helper(result); | |
33367 | } | |
33368 | return resultobj; | |
33369 | fail: | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
33374 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33375 | PyObject *resultobj; | |
33376 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33377 | int arg2 ; | |
33378 | wxString *arg3 = 0 ; | |
e811c8ce | 33379 | bool temp3 = False ; |
d14a1e28 | 33380 | PyObject * obj0 = 0 ; |
994141e6 | 33381 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33382 | PyObject * obj2 = 0 ; |
33383 | char *kwnames[] = { | |
33384 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33385 | }; | |
33386 | ||
994141e6 | 33387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33390 | arg2 = (int) SWIG_AsInt(obj1); | |
33391 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33392 | { |
33393 | arg3 = wxString_in_helper(obj2); | |
33394 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 33395 | temp3 = True; |
d14a1e28 RD |
33396 | } |
33397 | { | |
33398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33399 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33400 | ||
33401 | wxPyEndAllowThreads(__tstate); | |
33402 | if (PyErr_Occurred()) SWIG_fail; | |
33403 | } | |
33404 | Py_INCREF(Py_None); resultobj = Py_None; | |
33405 | { | |
33406 | if (temp3) | |
33407 | delete arg3; | |
33408 | } | |
33409 | return resultobj; | |
33410 | fail: | |
33411 | { | |
33412 | if (temp3) | |
33413 | delete arg3; | |
33414 | } | |
33415 | return NULL; | |
33416 | } | |
33417 | ||
33418 | ||
33419 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33420 | PyObject *resultobj; | |
33421 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33422 | wxString *arg2 = 0 ; | |
33423 | int result; | |
e811c8ce | 33424 | bool temp2 = False ; |
d14a1e28 RD |
33425 | PyObject * obj0 = 0 ; |
33426 | PyObject * obj1 = 0 ; | |
33427 | char *kwnames[] = { | |
33428 | (char *) "self",(char *) "s", NULL | |
33429 | }; | |
33430 | ||
33431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
33432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33434 | { |
33435 | arg2 = wxString_in_helper(obj1); | |
33436 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 33437 | temp2 = True; |
d14a1e28 RD |
33438 | } |
33439 | { | |
33440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33441 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33442 | ||
33443 | wxPyEndAllowThreads(__tstate); | |
33444 | if (PyErr_Occurred()) SWIG_fail; | |
33445 | } | |
15afbcd0 | 33446 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33447 | { |
33448 | if (temp2) | |
33449 | delete arg2; | |
33450 | } | |
33451 | return resultobj; | |
33452 | fail: | |
33453 | { | |
33454 | if (temp2) | |
33455 | delete arg2; | |
33456 | } | |
33457 | return NULL; | |
33458 | } | |
33459 | ||
33460 | ||
33461 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33462 | PyObject *resultobj; | |
33463 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33464 | int arg2 ; | |
33465 | PyObject * obj0 = 0 ; | |
994141e6 | 33466 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33467 | char *kwnames[] = { |
33468 | (char *) "self",(char *) "n", NULL | |
33469 | }; | |
33470 | ||
994141e6 | 33471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33474 | arg2 = (int) SWIG_AsInt(obj1); | |
33475 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33476 | { |
33477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33478 | (arg1)->Select(arg2); | |
33479 | ||
33480 | wxPyEndAllowThreads(__tstate); | |
33481 | if (PyErr_Occurred()) SWIG_fail; | |
33482 | } | |
33483 | Py_INCREF(Py_None); resultobj = Py_None; | |
33484 | return resultobj; | |
33485 | fail: | |
33486 | return NULL; | |
33487 | } | |
33488 | ||
33489 | ||
33490 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33491 | PyObject *resultobj; | |
33492 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33493 | int result; | |
33494 | PyObject * obj0 = 0 ; | |
33495 | char *kwnames[] = { | |
33496 | (char *) "self", NULL | |
33497 | }; | |
33498 | ||
33499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33502 | { |
33503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33504 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33505 | ||
33506 | wxPyEndAllowThreads(__tstate); | |
33507 | if (PyErr_Occurred()) SWIG_fail; | |
33508 | } | |
15afbcd0 | 33509 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
33510 | return resultobj; |
33511 | fail: | |
33512 | return NULL; | |
33513 | } | |
33514 | ||
33515 | ||
33516 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33517 | PyObject *resultobj; | |
33518 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33519 | wxString result; | |
33520 | PyObject * obj0 = 0 ; | |
33521 | char *kwnames[] = { | |
33522 | (char *) "self", NULL | |
33523 | }; | |
33524 | ||
33525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33528 | { |
33529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33530 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33531 | ||
33532 | wxPyEndAllowThreads(__tstate); | |
33533 | if (PyErr_Occurred()) SWIG_fail; | |
33534 | } | |
33535 | { | |
33536 | #if wxUSE_UNICODE | |
33537 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33538 | #else | |
33539 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33540 | #endif | |
33541 | } | |
33542 | return resultobj; | |
33543 | fail: | |
33544 | return NULL; | |
33545 | } | |
33546 | ||
33547 | ||
33548 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33549 | PyObject *resultobj; | |
33550 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33551 | int arg2 ; | |
33552 | PyObject *result; | |
33553 | PyObject * obj0 = 0 ; | |
994141e6 | 33554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33555 | char *kwnames[] = { |
33556 | (char *) "self",(char *) "n", NULL | |
33557 | }; | |
33558 | ||
994141e6 | 33559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
33560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33562 | arg2 = (int) SWIG_AsInt(obj1); | |
33563 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33564 | { |
33565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33566 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33567 | ||
33568 | wxPyEndAllowThreads(__tstate); | |
33569 | if (PyErr_Occurred()) SWIG_fail; | |
33570 | } | |
33571 | resultobj = result; | |
33572 | return resultobj; | |
33573 | fail: | |
33574 | return NULL; | |
33575 | } | |
33576 | ||
33577 | ||
33578 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33579 | PyObject *resultobj; | |
33580 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33581 | int arg2 ; | |
33582 | PyObject *arg3 = (PyObject *) 0 ; | |
33583 | PyObject * obj0 = 0 ; | |
994141e6 | 33584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
33585 | PyObject * obj2 = 0 ; |
33586 | char *kwnames[] = { | |
33587 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33588 | }; | |
33589 | ||
994141e6 | 33590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, |
33592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33593 | arg2 = (int) SWIG_AsInt(obj1); | |
33594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33595 | arg3 = obj2; |
33596 | { | |
33597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33598 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33599 | ||
33600 | wxPyEndAllowThreads(__tstate); | |
33601 | if (PyErr_Occurred()) SWIG_fail; | |
33602 | } | |
33603 | Py_INCREF(Py_None); resultobj = Py_None; | |
33604 | return resultobj; | |
33605 | fail: | |
33606 | return NULL; | |
33607 | } | |
33608 | ||
33609 | ||
33610 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33611 | PyObject *obj; | |
33612 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33613 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33614 | Py_INCREF(obj); | |
33615 | return Py_BuildValue((char *)""); | |
33616 | } | |
33617 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33618 | PyObject *obj; | |
33619 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33620 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33621 | Py_INCREF(obj); | |
33622 | return Py_BuildValue((char *)""); | |
33623 | } | |
33624 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33625 | PyObject *resultobj; | |
33626 | wxSizerItem *result; | |
33627 | char *kwnames[] = { | |
33628 | NULL | |
33629 | }; | |
33630 | ||
33631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33632 | { | |
33633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33634 | result = (wxSizerItem *)new wxSizerItem(); | |
33635 | ||
33636 | wxPyEndAllowThreads(__tstate); | |
33637 | if (PyErr_Occurred()) SWIG_fail; | |
33638 | } | |
15afbcd0 | 33639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33640 | return resultobj; |
33641 | fail: | |
33642 | return NULL; | |
33643 | } | |
33644 | ||
33645 | ||
33646 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33647 | PyObject *resultobj; | |
33648 | int arg1 ; | |
33649 | int arg2 ; | |
33650 | int arg3 ; | |
33651 | int arg4 ; | |
33652 | int arg5 ; | |
33653 | wxObject *arg6 = (wxObject *) 0 ; | |
33654 | wxSizerItem *result; | |
994141e6 RD |
33655 | PyObject * obj0 = 0 ; |
33656 | PyObject * obj1 = 0 ; | |
33657 | PyObject * obj2 = 0 ; | |
33658 | PyObject * obj3 = 0 ; | |
33659 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
33660 | PyObject * obj5 = 0 ; |
33661 | char *kwnames[] = { | |
33662 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33663 | }; | |
33664 | ||
994141e6 | 33665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
33666 | arg1 = (int) SWIG_AsInt(obj0); |
33667 | if (PyErr_Occurred()) SWIG_fail; | |
33668 | arg2 = (int) SWIG_AsInt(obj1); | |
33669 | if (PyErr_Occurred()) SWIG_fail; | |
33670 | arg3 = (int) SWIG_AsInt(obj2); | |
33671 | if (PyErr_Occurred()) SWIG_fail; | |
33672 | arg4 = (int) SWIG_AsInt(obj3); | |
33673 | if (PyErr_Occurred()) SWIG_fail; | |
33674 | arg5 = (int) SWIG_AsInt(obj4); | |
33675 | if (PyErr_Occurred()) SWIG_fail; | |
33676 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
33677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33678 | { |
33679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33680 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
33681 | ||
33682 | wxPyEndAllowThreads(__tstate); | |
33683 | if (PyErr_Occurred()) SWIG_fail; | |
33684 | } | |
15afbcd0 | 33685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33686 | return resultobj; |
33687 | fail: | |
33688 | return NULL; | |
33689 | } | |
33690 | ||
33691 | ||
33692 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33693 | PyObject *resultobj; | |
33694 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33695 | int arg2 ; | |
33696 | int arg3 ; | |
33697 | int arg4 ; | |
33698 | wxObject *arg5 = (wxObject *) 0 ; | |
33699 | wxSizerItem *result; | |
33700 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33701 | PyObject * obj1 = 0 ; |
33702 | PyObject * obj2 = 0 ; | |
33703 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33704 | PyObject * obj4 = 0 ; |
33705 | char *kwnames[] = { | |
33706 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33707 | }; | |
33708 | ||
994141e6 | 33709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33712 | arg2 = (int) SWIG_AsInt(obj1); | |
33713 | if (PyErr_Occurred()) SWIG_fail; | |
33714 | arg3 = (int) SWIG_AsInt(obj2); | |
33715 | if (PyErr_Occurred()) SWIG_fail; | |
33716 | arg4 = (int) SWIG_AsInt(obj3); | |
33717 | if (PyErr_Occurred()) SWIG_fail; | |
33718 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33720 | { |
33721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33722 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33723 | ||
33724 | wxPyEndAllowThreads(__tstate); | |
33725 | if (PyErr_Occurred()) SWIG_fail; | |
33726 | } | |
15afbcd0 | 33727 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33728 | return resultobj; |
33729 | fail: | |
33730 | return NULL; | |
33731 | } | |
33732 | ||
33733 | ||
33734 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33735 | PyObject *resultobj; | |
33736 | wxSizer *arg1 = (wxSizer *) 0 ; | |
33737 | int arg2 ; | |
33738 | int arg3 ; | |
33739 | int arg4 ; | |
33740 | wxObject *arg5 = (wxObject *) 0 ; | |
33741 | wxSizerItem *result; | |
33742 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33743 | PyObject * obj1 = 0 ; |
33744 | PyObject * obj2 = 0 ; | |
33745 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
33746 | PyObject * obj4 = 0 ; |
33747 | char *kwnames[] = { | |
33748 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
33749 | }; | |
33750 | ||
994141e6 | 33751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
33752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
33753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33754 | arg2 = (int) SWIG_AsInt(obj1); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | arg3 = (int) SWIG_AsInt(obj2); | |
33757 | if (PyErr_Occurred()) SWIG_fail; | |
33758 | arg4 = (int) SWIG_AsInt(obj3); | |
33759 | if (PyErr_Occurred()) SWIG_fail; | |
33760 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
33761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33762 | { |
33763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33764 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
33765 | ||
33766 | wxPyEndAllowThreads(__tstate); | |
33767 | if (PyErr_Occurred()) SWIG_fail; | |
33768 | } | |
15afbcd0 | 33769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); |
d14a1e28 RD |
33770 | return resultobj; |
33771 | fail: | |
33772 | return NULL; | |
33773 | } | |
33774 | ||
33775 | ||
33776 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33777 | PyObject *resultobj; | |
33778 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33779 | PyObject * obj0 = 0 ; | |
33780 | char *kwnames[] = { | |
33781 | (char *) "self", NULL | |
33782 | }; | |
33783 | ||
33784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33787 | { |
33788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33789 | (arg1)->DeleteWindows(); | |
33790 | ||
33791 | wxPyEndAllowThreads(__tstate); | |
33792 | if (PyErr_Occurred()) SWIG_fail; | |
33793 | } | |
33794 | Py_INCREF(Py_None); resultobj = Py_None; | |
33795 | return resultobj; | |
33796 | fail: | |
33797 | return NULL; | |
33798 | } | |
33799 | ||
33800 | ||
33801 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33802 | PyObject *resultobj; | |
33803 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33804 | PyObject * obj0 = 0 ; | |
33805 | char *kwnames[] = { | |
33806 | (char *) "self", NULL | |
33807 | }; | |
33808 | ||
33809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33812 | { |
33813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33814 | (arg1)->DetachSizer(); | |
33815 | ||
33816 | wxPyEndAllowThreads(__tstate); | |
33817 | if (PyErr_Occurred()) SWIG_fail; | |
33818 | } | |
33819 | Py_INCREF(Py_None); resultobj = Py_None; | |
33820 | return resultobj; | |
33821 | fail: | |
33822 | return NULL; | |
33823 | } | |
33824 | ||
33825 | ||
33826 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33827 | PyObject *resultobj; | |
33828 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33829 | wxSize result; | |
33830 | PyObject * obj0 = 0 ; | |
33831 | char *kwnames[] = { | |
33832 | (char *) "self", NULL | |
33833 | }; | |
33834 | ||
33835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33838 | { |
33839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33840 | result = (arg1)->GetSize(); | |
33841 | ||
33842 | wxPyEndAllowThreads(__tstate); | |
33843 | if (PyErr_Occurred()) SWIG_fail; | |
33844 | } | |
33845 | { | |
33846 | wxSize * resultptr; | |
33847 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33849 | } |
33850 | return resultobj; | |
33851 | fail: | |
33852 | return NULL; | |
33853 | } | |
33854 | ||
33855 | ||
33856 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33857 | PyObject *resultobj; | |
33858 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33859 | wxSize result; | |
33860 | PyObject * obj0 = 0 ; | |
33861 | char *kwnames[] = { | |
33862 | (char *) "self", NULL | |
33863 | }; | |
33864 | ||
33865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33868 | { |
33869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33870 | result = (arg1)->CalcMin(); | |
33871 | ||
33872 | wxPyEndAllowThreads(__tstate); | |
33873 | if (PyErr_Occurred()) SWIG_fail; | |
33874 | } | |
33875 | { | |
33876 | wxSize * resultptr; | |
33877 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33879 | } |
33880 | return resultobj; | |
33881 | fail: | |
33882 | return NULL; | |
33883 | } | |
33884 | ||
33885 | ||
33886 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33887 | PyObject *resultobj; | |
33888 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33889 | wxPoint arg2 ; | |
33890 | wxSize arg3 ; | |
33891 | wxPoint *argp2 ; | |
33892 | wxSize *argp3 ; | |
33893 | PyObject * obj0 = 0 ; | |
33894 | PyObject * obj1 = 0 ; | |
33895 | PyObject * obj2 = 0 ; | |
33896 | char *kwnames[] = { | |
33897 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
33898 | }; | |
33899 | ||
33900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
33901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33903 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
33904 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33905 | arg2 = *argp2; | |
33906 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
33907 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
33908 | arg3 = *argp3; | |
d14a1e28 RD |
33909 | { |
33910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33911 | (arg1)->SetDimension(arg2,arg3); | |
33912 | ||
33913 | wxPyEndAllowThreads(__tstate); | |
33914 | if (PyErr_Occurred()) SWIG_fail; | |
33915 | } | |
33916 | Py_INCREF(Py_None); resultobj = Py_None; | |
33917 | return resultobj; | |
33918 | fail: | |
33919 | return NULL; | |
33920 | } | |
33921 | ||
33922 | ||
33923 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33924 | PyObject *resultobj; | |
33925 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33926 | wxSize result; | |
33927 | PyObject * obj0 = 0 ; | |
33928 | char *kwnames[] = { | |
33929 | (char *) "self", NULL | |
33930 | }; | |
33931 | ||
33932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
33933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
33935 | { |
33936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33937 | result = (arg1)->GetMinSize(); | |
33938 | ||
33939 | wxPyEndAllowThreads(__tstate); | |
33940 | if (PyErr_Occurred()) SWIG_fail; | |
33941 | } | |
33942 | { | |
33943 | wxSize * resultptr; | |
33944 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 33945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
33946 | } |
33947 | return resultobj; | |
33948 | fail: | |
33949 | return NULL; | |
33950 | } | |
33951 | ||
33952 | ||
33953 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33954 | PyObject *resultobj; | |
33955 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33956 | int arg2 ; | |
33957 | int arg3 ; | |
33958 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33959 | PyObject * obj1 = 0 ; |
33960 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33961 | char *kwnames[] = { |
33962 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33963 | }; | |
33964 | ||
994141e6 | 33965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
33967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33968 | arg2 = (int) SWIG_AsInt(obj1); | |
33969 | if (PyErr_Occurred()) SWIG_fail; | |
33970 | arg3 = (int) SWIG_AsInt(obj2); | |
33971 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
33972 | { |
33973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33974 | (arg1)->SetInitSize(arg2,arg3); | |
33975 | ||
33976 | wxPyEndAllowThreads(__tstate); | |
33977 | if (PyErr_Occurred()) SWIG_fail; | |
33978 | } | |
33979 | Py_INCREF(Py_None); resultobj = Py_None; | |
33980 | return resultobj; | |
33981 | fail: | |
33982 | return NULL; | |
33983 | } | |
33984 | ||
33985 | ||
33986 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33987 | PyObject *resultobj; | |
33988 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
33989 | int arg2 ; | |
33990 | int arg3 ; | |
33991 | PyObject * obj0 = 0 ; | |
994141e6 RD |
33992 | PyObject * obj1 = 0 ; |
33993 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
33994 | char *kwnames[] = { |
33995 | (char *) "self",(char *) "width",(char *) "height", NULL | |
33996 | }; | |
33997 | ||
994141e6 | 33998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
33999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34001 | arg2 = (int) SWIG_AsInt(obj1); | |
34002 | if (PyErr_Occurred()) SWIG_fail; | |
34003 | arg3 = (int) SWIG_AsInt(obj2); | |
34004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34005 | { |
34006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34007 | (arg1)->SetRatio(arg2,arg3); | |
34008 | ||
34009 | wxPyEndAllowThreads(__tstate); | |
34010 | if (PyErr_Occurred()) SWIG_fail; | |
34011 | } | |
34012 | Py_INCREF(Py_None); resultobj = Py_None; | |
34013 | return resultobj; | |
34014 | fail: | |
34015 | return NULL; | |
34016 | } | |
34017 | ||
34018 | ||
34019 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34020 | PyObject *resultobj; | |
34021 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34022 | wxSize arg2 ; | |
34023 | wxSize *argp2 ; | |
34024 | PyObject * obj0 = 0 ; | |
34025 | PyObject * obj1 = 0 ; | |
34026 | char *kwnames[] = { | |
34027 | (char *) "self",(char *) "size", NULL | |
34028 | }; | |
34029 | ||
34030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34033 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34034 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34035 | arg2 = *argp2; | |
d14a1e28 RD |
34036 | { |
34037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34038 | (arg1)->SetRatio(arg2); | |
34039 | ||
34040 | wxPyEndAllowThreads(__tstate); | |
34041 | if (PyErr_Occurred()) SWIG_fail; | |
34042 | } | |
34043 | Py_INCREF(Py_None); resultobj = Py_None; | |
34044 | return resultobj; | |
34045 | fail: | |
34046 | return NULL; | |
34047 | } | |
34048 | ||
34049 | ||
34050 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34051 | PyObject *resultobj; | |
34052 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34053 | float arg2 ; | |
34054 | PyObject * obj0 = 0 ; | |
994141e6 | 34055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34056 | char *kwnames[] = { |
34057 | (char *) "self",(char *) "ratio", NULL | |
34058 | }; | |
34059 | ||
994141e6 | 34060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34063 | arg2 = (float) SWIG_AsFloat(obj1); | |
34064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34065 | { |
34066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34067 | (arg1)->SetRatio(arg2); | |
34068 | ||
34069 | wxPyEndAllowThreads(__tstate); | |
34070 | if (PyErr_Occurred()) SWIG_fail; | |
34071 | } | |
34072 | Py_INCREF(Py_None); resultobj = Py_None; | |
34073 | return resultobj; | |
34074 | fail: | |
34075 | return NULL; | |
34076 | } | |
34077 | ||
34078 | ||
34079 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34080 | PyObject *resultobj; | |
34081 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34082 | float result; | |
34083 | PyObject * obj0 = 0 ; | |
34084 | char *kwnames[] = { | |
34085 | (char *) "self", NULL | |
34086 | }; | |
34087 | ||
34088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34091 | { |
34092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34093 | result = (float)(arg1)->GetRatio(); | |
34094 | ||
34095 | wxPyEndAllowThreads(__tstate); | |
34096 | if (PyErr_Occurred()) SWIG_fail; | |
34097 | } | |
15afbcd0 | 34098 | resultobj = SWIG_FromFloat((float)result); |
d14a1e28 RD |
34099 | return resultobj; |
34100 | fail: | |
34101 | return NULL; | |
34102 | } | |
34103 | ||
34104 | ||
34105 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34106 | PyObject *resultobj; | |
34107 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34108 | bool result; | |
34109 | PyObject * obj0 = 0 ; | |
34110 | char *kwnames[] = { | |
34111 | (char *) "self", NULL | |
34112 | }; | |
34113 | ||
34114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34117 | { |
34118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34119 | result = (bool)(arg1)->IsWindow(); | |
34120 | ||
34121 | wxPyEndAllowThreads(__tstate); | |
34122 | if (PyErr_Occurred()) SWIG_fail; | |
34123 | } | |
4f89f6a3 RD |
34124 | { |
34125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34126 | } | |
d14a1e28 RD |
34127 | return resultobj; |
34128 | fail: | |
34129 | return NULL; | |
34130 | } | |
34131 | ||
34132 | ||
34133 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34134 | PyObject *resultobj; | |
34135 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34136 | bool result; | |
34137 | PyObject * obj0 = 0 ; | |
34138 | char *kwnames[] = { | |
34139 | (char *) "self", NULL | |
34140 | }; | |
34141 | ||
34142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34145 | { |
34146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34147 | result = (bool)(arg1)->IsSizer(); | |
34148 | ||
34149 | wxPyEndAllowThreads(__tstate); | |
34150 | if (PyErr_Occurred()) SWIG_fail; | |
34151 | } | |
4f89f6a3 RD |
34152 | { |
34153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34154 | } | |
d14a1e28 RD |
34155 | return resultobj; |
34156 | fail: | |
34157 | return NULL; | |
34158 | } | |
34159 | ||
34160 | ||
34161 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34162 | PyObject *resultobj; | |
34163 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34164 | bool result; | |
34165 | PyObject * obj0 = 0 ; | |
34166 | char *kwnames[] = { | |
34167 | (char *) "self", NULL | |
34168 | }; | |
34169 | ||
34170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34173 | { |
34174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34175 | result = (bool)(arg1)->IsSpacer(); | |
34176 | ||
34177 | wxPyEndAllowThreads(__tstate); | |
34178 | if (PyErr_Occurred()) SWIG_fail; | |
34179 | } | |
4f89f6a3 RD |
34180 | { |
34181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34182 | } | |
d14a1e28 RD |
34183 | return resultobj; |
34184 | fail: | |
34185 | return NULL; | |
34186 | } | |
34187 | ||
34188 | ||
34189 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34190 | PyObject *resultobj; | |
34191 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34192 | int arg2 ; | |
34193 | PyObject * obj0 = 0 ; | |
994141e6 | 34194 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34195 | char *kwnames[] = { |
34196 | (char *) "self",(char *) "proportion", NULL | |
34197 | }; | |
34198 | ||
994141e6 | 34199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34202 | arg2 = (int) SWIG_AsInt(obj1); | |
34203 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34204 | { |
34205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34206 | (arg1)->SetProportion(arg2); | |
34207 | ||
34208 | wxPyEndAllowThreads(__tstate); | |
34209 | if (PyErr_Occurred()) SWIG_fail; | |
34210 | } | |
34211 | Py_INCREF(Py_None); resultobj = Py_None; | |
34212 | return resultobj; | |
34213 | fail: | |
34214 | return NULL; | |
34215 | } | |
34216 | ||
34217 | ||
34218 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34219 | PyObject *resultobj; | |
34220 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34221 | int result; | |
34222 | PyObject * obj0 = 0 ; | |
34223 | char *kwnames[] = { | |
34224 | (char *) "self", NULL | |
34225 | }; | |
34226 | ||
34227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34230 | { |
34231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34232 | result = (int)(arg1)->GetProportion(); | |
34233 | ||
34234 | wxPyEndAllowThreads(__tstate); | |
34235 | if (PyErr_Occurred()) SWIG_fail; | |
34236 | } | |
15afbcd0 | 34237 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34238 | return resultobj; |
34239 | fail: | |
34240 | return NULL; | |
34241 | } | |
34242 | ||
34243 | ||
34244 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34245 | PyObject *resultobj; | |
34246 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34247 | int arg2 ; | |
34248 | PyObject * obj0 = 0 ; | |
994141e6 | 34249 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34250 | char *kwnames[] = { |
34251 | (char *) "self",(char *) "flag", NULL | |
34252 | }; | |
34253 | ||
994141e6 | 34254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34257 | arg2 = (int) SWIG_AsInt(obj1); | |
34258 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34259 | { |
34260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34261 | (arg1)->SetFlag(arg2); | |
34262 | ||
34263 | wxPyEndAllowThreads(__tstate); | |
34264 | if (PyErr_Occurred()) SWIG_fail; | |
34265 | } | |
34266 | Py_INCREF(Py_None); resultobj = Py_None; | |
34267 | return resultobj; | |
34268 | fail: | |
34269 | return NULL; | |
34270 | } | |
34271 | ||
34272 | ||
34273 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34274 | PyObject *resultobj; | |
34275 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34276 | int result; | |
34277 | PyObject * obj0 = 0 ; | |
34278 | char *kwnames[] = { | |
34279 | (char *) "self", NULL | |
34280 | }; | |
34281 | ||
34282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34285 | { |
34286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34287 | result = (int)(arg1)->GetFlag(); | |
34288 | ||
34289 | wxPyEndAllowThreads(__tstate); | |
34290 | if (PyErr_Occurred()) SWIG_fail; | |
34291 | } | |
15afbcd0 | 34292 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34293 | return resultobj; |
34294 | fail: | |
34295 | return NULL; | |
34296 | } | |
34297 | ||
34298 | ||
34299 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34300 | PyObject *resultobj; | |
34301 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34302 | int arg2 ; | |
34303 | PyObject * obj0 = 0 ; | |
994141e6 | 34304 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
34305 | char *kwnames[] = { |
34306 | (char *) "self",(char *) "border", NULL | |
34307 | }; | |
34308 | ||
994141e6 | 34309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
34310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34312 | arg2 = (int) SWIG_AsInt(obj1); | |
34313 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34314 | { |
34315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34316 | (arg1)->SetBorder(arg2); | |
34317 | ||
34318 | wxPyEndAllowThreads(__tstate); | |
34319 | if (PyErr_Occurred()) SWIG_fail; | |
34320 | } | |
34321 | Py_INCREF(Py_None); resultobj = Py_None; | |
34322 | return resultobj; | |
34323 | fail: | |
34324 | return NULL; | |
34325 | } | |
34326 | ||
34327 | ||
34328 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34329 | PyObject *resultobj; | |
34330 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34331 | int result; | |
34332 | PyObject * obj0 = 0 ; | |
34333 | char *kwnames[] = { | |
34334 | (char *) "self", NULL | |
34335 | }; | |
34336 | ||
34337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34340 | { |
34341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34342 | result = (int)(arg1)->GetBorder(); | |
34343 | ||
34344 | wxPyEndAllowThreads(__tstate); | |
34345 | if (PyErr_Occurred()) SWIG_fail; | |
34346 | } | |
15afbcd0 | 34347 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
34348 | return resultobj; |
34349 | fail: | |
34350 | return NULL; | |
34351 | } | |
34352 | ||
34353 | ||
34354 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34355 | PyObject *resultobj; | |
34356 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34357 | wxWindow *result; | |
34358 | PyObject * obj0 = 0 ; | |
34359 | char *kwnames[] = { | |
34360 | (char *) "self", NULL | |
34361 | }; | |
34362 | ||
34363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34366 | { |
34367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34368 | result = (wxWindow *)(arg1)->GetWindow(); | |
34369 | ||
34370 | wxPyEndAllowThreads(__tstate); | |
34371 | if (PyErr_Occurred()) SWIG_fail; | |
34372 | } | |
34373 | { | |
34374 | resultobj = wxPyMake_wxObject(result); | |
34375 | } | |
34376 | return resultobj; | |
34377 | fail: | |
34378 | return NULL; | |
34379 | } | |
34380 | ||
34381 | ||
34382 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34383 | PyObject *resultobj; | |
34384 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34385 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34386 | PyObject * obj0 = 0 ; | |
34387 | PyObject * obj1 = 0 ; | |
34388 | char *kwnames[] = { | |
34389 | (char *) "self",(char *) "window", NULL | |
34390 | }; | |
34391 | ||
34392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34397 | { |
34398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34399 | (arg1)->SetWindow(arg2); | |
34400 | ||
34401 | wxPyEndAllowThreads(__tstate); | |
34402 | if (PyErr_Occurred()) SWIG_fail; | |
34403 | } | |
34404 | Py_INCREF(Py_None); resultobj = Py_None; | |
34405 | return resultobj; | |
34406 | fail: | |
34407 | return NULL; | |
34408 | } | |
34409 | ||
34410 | ||
34411 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34412 | PyObject *resultobj; | |
34413 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34414 | wxSizer *result; | |
34415 | PyObject * obj0 = 0 ; | |
34416 | char *kwnames[] = { | |
34417 | (char *) "self", NULL | |
34418 | }; | |
34419 | ||
34420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34423 | { |
34424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34425 | result = (wxSizer *)(arg1)->GetSizer(); | |
34426 | ||
34427 | wxPyEndAllowThreads(__tstate); | |
34428 | if (PyErr_Occurred()) SWIG_fail; | |
34429 | } | |
34430 | { | |
34431 | resultobj = wxPyMake_wxSizer(result); | |
34432 | } | |
34433 | return resultobj; | |
34434 | fail: | |
34435 | return NULL; | |
34436 | } | |
34437 | ||
34438 | ||
34439 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34440 | PyObject *resultobj; | |
34441 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34442 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34443 | PyObject * obj0 = 0 ; | |
34444 | PyObject * obj1 = 0 ; | |
34445 | char *kwnames[] = { | |
34446 | (char *) "self",(char *) "sizer", NULL | |
34447 | }; | |
34448 | ||
34449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34452 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34454 | { |
34455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34456 | (arg1)->SetSizer(arg2); | |
34457 | ||
34458 | wxPyEndAllowThreads(__tstate); | |
34459 | if (PyErr_Occurred()) SWIG_fail; | |
34460 | } | |
34461 | Py_INCREF(Py_None); resultobj = Py_None; | |
34462 | return resultobj; | |
34463 | fail: | |
34464 | return NULL; | |
34465 | } | |
34466 | ||
34467 | ||
34468 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34469 | PyObject *resultobj; | |
34470 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34471 | wxSize *result; | |
34472 | PyObject * obj0 = 0 ; | |
34473 | char *kwnames[] = { | |
34474 | (char *) "self", NULL | |
34475 | }; | |
34476 | ||
34477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34480 | { |
34481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34482 | { | |
34483 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34484 | result = (wxSize *) &_result_ref; | |
34485 | } | |
34486 | ||
34487 | wxPyEndAllowThreads(__tstate); | |
34488 | if (PyErr_Occurred()) SWIG_fail; | |
34489 | } | |
15afbcd0 | 34490 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); |
d14a1e28 RD |
34491 | return resultobj; |
34492 | fail: | |
34493 | return NULL; | |
34494 | } | |
34495 | ||
34496 | ||
34497 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34498 | PyObject *resultobj; | |
34499 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34500 | wxSize *arg2 = 0 ; | |
34501 | wxSize temp2 ; | |
34502 | PyObject * obj0 = 0 ; | |
34503 | PyObject * obj1 = 0 ; | |
34504 | char *kwnames[] = { | |
34505 | (char *) "self",(char *) "size", NULL | |
34506 | }; | |
34507 | ||
34508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34511 | { |
34512 | arg2 = &temp2; | |
34513 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34514 | } | |
34515 | { | |
34516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34517 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34518 | ||
34519 | wxPyEndAllowThreads(__tstate); | |
34520 | if (PyErr_Occurred()) SWIG_fail; | |
34521 | } | |
34522 | Py_INCREF(Py_None); resultobj = Py_None; | |
34523 | return resultobj; | |
34524 | fail: | |
34525 | return NULL; | |
34526 | } | |
34527 | ||
34528 | ||
34529 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34530 | PyObject *resultobj; | |
34531 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34532 | bool arg2 ; | |
34533 | PyObject * obj0 = 0 ; | |
34534 | PyObject * obj1 = 0 ; | |
34535 | char *kwnames[] = { | |
34536 | (char *) "self",(char *) "show", NULL | |
34537 | }; | |
34538 | ||
34539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34542 | arg2 = (bool) SWIG_AsBool(obj1); | |
34543 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
34544 | { |
34545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34546 | (arg1)->Show(arg2); | |
34547 | ||
34548 | wxPyEndAllowThreads(__tstate); | |
34549 | if (PyErr_Occurred()) SWIG_fail; | |
34550 | } | |
34551 | Py_INCREF(Py_None); resultobj = Py_None; | |
34552 | return resultobj; | |
34553 | fail: | |
34554 | return NULL; | |
34555 | } | |
34556 | ||
34557 | ||
34558 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34559 | PyObject *resultobj; | |
34560 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34561 | bool result; | |
34562 | PyObject * obj0 = 0 ; | |
34563 | char *kwnames[] = { | |
34564 | (char *) "self", NULL | |
34565 | }; | |
34566 | ||
34567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34570 | { |
34571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34572 | result = (bool)(arg1)->IsShown(); | |
34573 | ||
34574 | wxPyEndAllowThreads(__tstate); | |
34575 | if (PyErr_Occurred()) SWIG_fail; | |
34576 | } | |
4f89f6a3 RD |
34577 | { |
34578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34579 | } | |
d14a1e28 RD |
34580 | return resultobj; |
34581 | fail: | |
34582 | return NULL; | |
34583 | } | |
34584 | ||
34585 | ||
34586 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34587 | PyObject *resultobj; | |
34588 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34589 | wxPoint result; | |
34590 | PyObject * obj0 = 0 ; | |
34591 | char *kwnames[] = { | |
34592 | (char *) "self", NULL | |
34593 | }; | |
34594 | ||
34595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34598 | { |
34599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34600 | result = (arg1)->GetPosition(); | |
34601 | ||
34602 | wxPyEndAllowThreads(__tstate); | |
34603 | if (PyErr_Occurred()) SWIG_fail; | |
34604 | } | |
34605 | { | |
34606 | wxPoint * resultptr; | |
34607 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 34608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
34609 | } |
34610 | return resultobj; | |
34611 | fail: | |
34612 | return NULL; | |
34613 | } | |
34614 | ||
34615 | ||
34616 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34617 | PyObject *resultobj; | |
34618 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34619 | PyObject *result; | |
34620 | PyObject * obj0 = 0 ; | |
34621 | char *kwnames[] = { | |
34622 | (char *) "self", NULL | |
34623 | }; | |
34624 | ||
34625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
34626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, |
34627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34628 | { |
34629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34630 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34631 | ||
34632 | wxPyEndAllowThreads(__tstate); | |
34633 | if (PyErr_Occurred()) SWIG_fail; | |
34634 | } | |
34635 | resultobj = result; | |
34636 | return resultobj; | |
34637 | fail: | |
34638 | return NULL; | |
34639 | } | |
34640 | ||
34641 | ||
34642 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
34643 | PyObject *obj; | |
34644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34645 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
34646 | Py_INCREF(obj); | |
34647 | return Py_BuildValue((char *)""); | |
34648 | } | |
34649 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34650 | PyObject *resultobj; | |
34651 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34652 | PyObject *arg2 = (PyObject *) 0 ; | |
34653 | PyObject * obj0 = 0 ; | |
34654 | PyObject * obj1 = 0 ; | |
34655 | char *kwnames[] = { | |
34656 | (char *) "self",(char *) "_self", NULL | |
34657 | }; | |
34658 | ||
34659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34662 | arg2 = obj1; |
34663 | { | |
34664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34665 | wxSizer__setOORInfo(arg1,arg2); | |
34666 | ||
34667 | wxPyEndAllowThreads(__tstate); | |
34668 | if (PyErr_Occurred()) SWIG_fail; | |
34669 | } | |
34670 | Py_INCREF(Py_None); resultobj = Py_None; | |
34671 | return resultobj; | |
34672 | fail: | |
34673 | return NULL; | |
34674 | } | |
34675 | ||
34676 | ||
34677 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34678 | PyObject *resultobj; | |
34679 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34680 | PyObject *arg2 = (PyObject *) 0 ; | |
34681 | int arg3 = (int) 0 ; | |
34682 | int arg4 = (int) 0 ; | |
34683 | int arg5 = (int) 0 ; | |
34684 | PyObject *arg6 = (PyObject *) NULL ; | |
34685 | PyObject * obj0 = 0 ; | |
34686 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34687 | PyObject * obj2 = 0 ; |
34688 | PyObject * obj3 = 0 ; | |
34689 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34690 | PyObject * obj5 = 0 ; |
34691 | char *kwnames[] = { | |
34692 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34693 | }; | |
34694 | ||
994141e6 | 34695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34698 | arg2 = obj1; |
994141e6 | 34699 | if (obj2) { |
15afbcd0 RD |
34700 | arg3 = (int) SWIG_AsInt(obj2); |
34701 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34702 | } |
34703 | if (obj3) { | |
15afbcd0 RD |
34704 | arg4 = (int) SWIG_AsInt(obj3); |
34705 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34706 | } |
34707 | if (obj4) { | |
15afbcd0 RD |
34708 | arg5 = (int) SWIG_AsInt(obj4); |
34709 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34710 | } |
d14a1e28 RD |
34711 | if (obj5) { |
34712 | arg6 = obj5; | |
34713 | } | |
34714 | { | |
34715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34716 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
34717 | ||
34718 | wxPyEndAllowThreads(__tstate); | |
34719 | if (PyErr_Occurred()) SWIG_fail; | |
34720 | } | |
34721 | Py_INCREF(Py_None); resultobj = Py_None; | |
34722 | return resultobj; | |
34723 | fail: | |
34724 | return NULL; | |
34725 | } | |
34726 | ||
34727 | ||
34728 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34729 | PyObject *resultobj; | |
34730 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34731 | int arg2 ; | |
34732 | PyObject *arg3 = (PyObject *) 0 ; | |
34733 | int arg4 = (int) 0 ; | |
34734 | int arg5 = (int) 0 ; | |
34735 | int arg6 = (int) 0 ; | |
34736 | PyObject *arg7 = (PyObject *) NULL ; | |
34737 | PyObject * obj0 = 0 ; | |
994141e6 | 34738 | PyObject * obj1 = 0 ; |
d14a1e28 | 34739 | PyObject * obj2 = 0 ; |
994141e6 RD |
34740 | PyObject * obj3 = 0 ; |
34741 | PyObject * obj4 = 0 ; | |
34742 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
34743 | PyObject * obj6 = 0 ; |
34744 | char *kwnames[] = { | |
34745 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34746 | }; | |
34747 | ||
994141e6 | 34748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
34749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34751 | arg2 = (int) SWIG_AsInt(obj1); | |
34752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 34753 | arg3 = obj2; |
994141e6 | 34754 | if (obj3) { |
15afbcd0 RD |
34755 | arg4 = (int) SWIG_AsInt(obj3); |
34756 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34757 | } |
34758 | if (obj4) { | |
15afbcd0 RD |
34759 | arg5 = (int) SWIG_AsInt(obj4); |
34760 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34761 | } |
34762 | if (obj5) { | |
15afbcd0 RD |
34763 | arg6 = (int) SWIG_AsInt(obj5); |
34764 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34765 | } |
d14a1e28 RD |
34766 | if (obj6) { |
34767 | arg7 = obj6; | |
34768 | } | |
34769 | { | |
34770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34771 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
34772 | ||
34773 | wxPyEndAllowThreads(__tstate); | |
34774 | if (PyErr_Occurred()) SWIG_fail; | |
34775 | } | |
34776 | Py_INCREF(Py_None); resultobj = Py_None; | |
34777 | return resultobj; | |
34778 | fail: | |
34779 | return NULL; | |
34780 | } | |
34781 | ||
34782 | ||
34783 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34784 | PyObject *resultobj; | |
34785 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34786 | PyObject *arg2 = (PyObject *) 0 ; | |
34787 | int arg3 = (int) 0 ; | |
34788 | int arg4 = (int) 0 ; | |
34789 | int arg5 = (int) 0 ; | |
34790 | PyObject *arg6 = (PyObject *) NULL ; | |
34791 | PyObject * obj0 = 0 ; | |
34792 | PyObject * obj1 = 0 ; | |
994141e6 RD |
34793 | PyObject * obj2 = 0 ; |
34794 | PyObject * obj3 = 0 ; | |
34795 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
34796 | PyObject * obj5 = 0 ; |
34797 | char *kwnames[] = { | |
34798 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34799 | }; | |
34800 | ||
994141e6 | 34801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
34802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34804 | arg2 = obj1; |
994141e6 | 34805 | if (obj2) { |
15afbcd0 RD |
34806 | arg3 = (int) SWIG_AsInt(obj2); |
34807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34808 | } |
34809 | if (obj3) { | |
15afbcd0 RD |
34810 | arg4 = (int) SWIG_AsInt(obj3); |
34811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
34812 | } |
34813 | if (obj4) { | |
15afbcd0 RD |
34814 | arg5 = (int) SWIG_AsInt(obj4); |
34815 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 34816 | } |
d14a1e28 RD |
34817 | if (obj5) { |
34818 | arg6 = obj5; | |
34819 | } | |
34820 | { | |
34821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34822 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
34823 | ||
34824 | wxPyEndAllowThreads(__tstate); | |
34825 | if (PyErr_Occurred()) SWIG_fail; | |
34826 | } | |
34827 | Py_INCREF(Py_None); resultobj = Py_None; | |
34828 | return resultobj; | |
34829 | fail: | |
34830 | return NULL; | |
34831 | } | |
34832 | ||
34833 | ||
34834 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34835 | PyObject *resultobj; | |
34836 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34837 | PyObject *arg2 = (PyObject *) 0 ; | |
34838 | bool result; | |
34839 | PyObject * obj0 = 0 ; | |
34840 | PyObject * obj1 = 0 ; | |
34841 | char *kwnames[] = { | |
34842 | (char *) "self",(char *) "item", NULL | |
34843 | }; | |
34844 | ||
34845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34848 | arg2 = obj1; |
34849 | { | |
34850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34851 | result = (bool)wxSizer_Remove(arg1,arg2); | |
34852 | ||
34853 | wxPyEndAllowThreads(__tstate); | |
34854 | if (PyErr_Occurred()) SWIG_fail; | |
34855 | } | |
4f89f6a3 RD |
34856 | { |
34857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34858 | } | |
d14a1e28 RD |
34859 | return resultobj; |
34860 | fail: | |
34861 | return NULL; | |
34862 | } | |
34863 | ||
34864 | ||
34865 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34866 | PyObject *resultobj; | |
34867 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34868 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce RD |
34869 | wxSize *arg3 = 0 ; |
34870 | wxSize temp3 ; | |
d14a1e28 RD |
34871 | PyObject * obj0 = 0 ; |
34872 | PyObject * obj1 = 0 ; | |
34873 | PyObject * obj2 = 0 ; | |
34874 | char *kwnames[] = { | |
34875 | (char *) "self",(char *) "item",(char *) "size", NULL | |
34876 | }; | |
34877 | ||
34878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 34881 | arg2 = obj1; |
e811c8ce RD |
34882 | { |
34883 | arg3 = &temp3; | |
34884 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34885 | } | |
d14a1e28 RD |
34886 | { |
34887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 34888 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); |
d14a1e28 RD |
34889 | |
34890 | wxPyEndAllowThreads(__tstate); | |
34891 | if (PyErr_Occurred()) SWIG_fail; | |
34892 | } | |
34893 | Py_INCREF(Py_None); resultobj = Py_None; | |
34894 | return resultobj; | |
34895 | fail: | |
34896 | return NULL; | |
34897 | } | |
34898 | ||
34899 | ||
34900 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34901 | PyObject *resultobj; | |
34902 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34903 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34904 | PyObject * obj0 = 0 ; | |
34905 | PyObject * obj1 = 0 ; | |
34906 | char *kwnames[] = { | |
34907 | (char *) "self",(char *) "item", NULL | |
34908 | }; | |
34909 | ||
34910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34913 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34915 | { |
34916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34917 | (arg1)->Add(arg2); | |
34918 | ||
34919 | wxPyEndAllowThreads(__tstate); | |
34920 | if (PyErr_Occurred()) SWIG_fail; | |
34921 | } | |
34922 | Py_INCREF(Py_None); resultobj = Py_None; | |
34923 | return resultobj; | |
34924 | fail: | |
34925 | return NULL; | |
34926 | } | |
34927 | ||
34928 | ||
34929 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34930 | PyObject *resultobj; | |
34931 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34932 | size_t arg2 ; | |
34933 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
34934 | PyObject * obj0 = 0 ; | |
34935 | PyObject * obj1 = 0 ; | |
34936 | PyObject * obj2 = 0 ; | |
34937 | char *kwnames[] = { | |
34938 | (char *) "self",(char *) "index",(char *) "item", NULL | |
34939 | }; | |
34940 | ||
34941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
34942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34944 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
34945 | if (PyErr_Occurred()) SWIG_fail; | |
34946 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
34947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34948 | { |
34949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34950 | (arg1)->Insert(arg2,arg3); | |
34951 | ||
34952 | wxPyEndAllowThreads(__tstate); | |
34953 | if (PyErr_Occurred()) SWIG_fail; | |
34954 | } | |
34955 | Py_INCREF(Py_None); resultobj = Py_None; | |
34956 | return resultobj; | |
34957 | fail: | |
34958 | return NULL; | |
34959 | } | |
34960 | ||
34961 | ||
34962 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34963 | PyObject *resultobj; | |
34964 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34965 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
34966 | PyObject * obj0 = 0 ; | |
34967 | PyObject * obj1 = 0 ; | |
34968 | char *kwnames[] = { | |
34969 | (char *) "self",(char *) "item", NULL | |
34970 | }; | |
34971 | ||
34972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
34973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34975 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
34976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
34977 | { |
34978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34979 | (arg1)->Prepend(arg2); | |
34980 | ||
34981 | wxPyEndAllowThreads(__tstate); | |
34982 | if (PyErr_Occurred()) SWIG_fail; | |
34983 | } | |
34984 | Py_INCREF(Py_None); resultobj = Py_None; | |
34985 | return resultobj; | |
34986 | fail: | |
34987 | return NULL; | |
34988 | } | |
34989 | ||
34990 | ||
34991 | static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34992 | PyObject *resultobj; | |
34993 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34994 | int arg2 ; | |
34995 | int arg3 ; | |
34996 | int arg4 ; | |
34997 | int arg5 ; | |
34998 | PyObject * obj0 = 0 ; | |
994141e6 RD |
34999 | PyObject * obj1 = 0 ; |
35000 | PyObject * obj2 = 0 ; | |
35001 | PyObject * obj3 = 0 ; | |
35002 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
35003 | char *kwnames[] = { |
35004 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35005 | }; | |
35006 | ||
994141e6 | 35007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
35008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35010 | arg2 = (int) SWIG_AsInt(obj1); | |
35011 | if (PyErr_Occurred()) SWIG_fail; | |
35012 | arg3 = (int) SWIG_AsInt(obj2); | |
35013 | if (PyErr_Occurred()) SWIG_fail; | |
35014 | arg4 = (int) SWIG_AsInt(obj3); | |
35015 | if (PyErr_Occurred()) SWIG_fail; | |
35016 | arg5 = (int) SWIG_AsInt(obj4); | |
35017 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35018 | { |
35019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35020 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35021 | ||
35022 | wxPyEndAllowThreads(__tstate); | |
35023 | if (PyErr_Occurred()) SWIG_fail; | |
35024 | } | |
35025 | Py_INCREF(Py_None); resultobj = Py_None; | |
35026 | return resultobj; | |
35027 | fail: | |
35028 | return NULL; | |
35029 | } | |
35030 | ||
35031 | ||
35032 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35033 | PyObject *resultobj; | |
35034 | wxSizer *arg1 = (wxSizer *) 0 ; | |
1fc9204a RD |
35035 | wxSize *arg2 = 0 ; |
35036 | wxSize temp2 ; | |
d14a1e28 RD |
35037 | PyObject * obj0 = 0 ; |
35038 | PyObject * obj1 = 0 ; | |
35039 | char *kwnames[] = { | |
35040 | (char *) "self",(char *) "size", NULL | |
35041 | }; | |
35042 | ||
35043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1fc9204a RD |
35046 | { |
35047 | arg2 = &temp2; | |
35048 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35049 | } | |
d14a1e28 RD |
35050 | { |
35051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1fc9204a | 35052 | (arg1)->SetMinSize((wxSize const &)*arg2); |
d14a1e28 RD |
35053 | |
35054 | wxPyEndAllowThreads(__tstate); | |
35055 | if (PyErr_Occurred()) SWIG_fail; | |
35056 | } | |
35057 | Py_INCREF(Py_None); resultobj = Py_None; | |
35058 | return resultobj; | |
35059 | fail: | |
35060 | return NULL; | |
35061 | } | |
35062 | ||
35063 | ||
35064 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35065 | PyObject *resultobj; | |
35066 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35067 | wxSize result; | |
35068 | PyObject * obj0 = 0 ; | |
35069 | char *kwnames[] = { | |
35070 | (char *) "self", NULL | |
35071 | }; | |
35072 | ||
35073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35076 | { |
35077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35078 | result = (arg1)->GetSize(); | |
35079 | ||
35080 | wxPyEndAllowThreads(__tstate); | |
35081 | if (PyErr_Occurred()) SWIG_fail; | |
35082 | } | |
35083 | { | |
35084 | wxSize * resultptr; | |
35085 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35086 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35087 | } |
35088 | return resultobj; | |
35089 | fail: | |
35090 | return NULL; | |
35091 | } | |
35092 | ||
35093 | ||
35094 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35095 | PyObject *resultobj; | |
35096 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35097 | wxPoint result; | |
35098 | PyObject * obj0 = 0 ; | |
35099 | char *kwnames[] = { | |
35100 | (char *) "self", NULL | |
35101 | }; | |
35102 | ||
35103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35106 | { |
35107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35108 | result = (arg1)->GetPosition(); | |
35109 | ||
35110 | wxPyEndAllowThreads(__tstate); | |
35111 | if (PyErr_Occurred()) SWIG_fail; | |
35112 | } | |
35113 | { | |
35114 | wxPoint * resultptr; | |
35115 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 35116 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
35117 | } |
35118 | return resultobj; | |
35119 | fail: | |
35120 | return NULL; | |
35121 | } | |
35122 | ||
35123 | ||
35124 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35125 | PyObject *resultobj; | |
35126 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35127 | wxSize result; | |
35128 | PyObject * obj0 = 0 ; | |
35129 | char *kwnames[] = { | |
35130 | (char *) "self", NULL | |
35131 | }; | |
35132 | ||
35133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35136 | { |
35137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35138 | result = (arg1)->GetMinSize(); | |
35139 | ||
35140 | wxPyEndAllowThreads(__tstate); | |
35141 | if (PyErr_Occurred()) SWIG_fail; | |
35142 | } | |
35143 | { | |
35144 | wxSize * resultptr; | |
35145 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35146 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35147 | } |
35148 | return resultobj; | |
35149 | fail: | |
35150 | return NULL; | |
35151 | } | |
35152 | ||
35153 | ||
35154 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35155 | PyObject *resultobj; | |
35156 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35157 | PyObject * obj0 = 0 ; | |
35158 | char *kwnames[] = { | |
35159 | (char *) "self", NULL | |
35160 | }; | |
35161 | ||
35162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35165 | { |
35166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35167 | (arg1)->RecalcSizes(); | |
35168 | ||
35169 | wxPyEndAllowThreads(__tstate); | |
35170 | if (PyErr_Occurred()) SWIG_fail; | |
35171 | } | |
35172 | Py_INCREF(Py_None); resultobj = Py_None; | |
35173 | return resultobj; | |
35174 | fail: | |
35175 | return NULL; | |
35176 | } | |
35177 | ||
35178 | ||
35179 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35180 | PyObject *resultobj; | |
35181 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35182 | wxSize result; | |
35183 | PyObject * obj0 = 0 ; | |
35184 | char *kwnames[] = { | |
35185 | (char *) "self", NULL | |
35186 | }; | |
35187 | ||
35188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35191 | { |
35192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35193 | result = (arg1)->CalcMin(); | |
35194 | ||
35195 | wxPyEndAllowThreads(__tstate); | |
35196 | if (PyErr_Occurred()) SWIG_fail; | |
35197 | } | |
35198 | { | |
35199 | wxSize * resultptr; | |
35200 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35201 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35202 | } |
35203 | return resultobj; | |
35204 | fail: | |
35205 | return NULL; | |
35206 | } | |
35207 | ||
35208 | ||
35209 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35210 | PyObject *resultobj; | |
35211 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35212 | PyObject * obj0 = 0 ; | |
35213 | char *kwnames[] = { | |
35214 | (char *) "self", NULL | |
35215 | }; | |
35216 | ||
35217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35220 | { |
35221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35222 | (arg1)->Layout(); | |
35223 | ||
35224 | wxPyEndAllowThreads(__tstate); | |
35225 | if (PyErr_Occurred()) SWIG_fail; | |
35226 | } | |
35227 | Py_INCREF(Py_None); resultobj = Py_None; | |
35228 | return resultobj; | |
35229 | fail: | |
35230 | return NULL; | |
35231 | } | |
35232 | ||
35233 | ||
35234 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35235 | PyObject *resultobj; | |
35236 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35237 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35238 | wxSize result; | |
35239 | PyObject * obj0 = 0 ; | |
35240 | PyObject * obj1 = 0 ; | |
35241 | char *kwnames[] = { | |
35242 | (char *) "self",(char *) "window", NULL | |
35243 | }; | |
35244 | ||
35245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35250 | { |
35251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35252 | result = (arg1)->Fit(arg2); | |
35253 | ||
35254 | wxPyEndAllowThreads(__tstate); | |
35255 | if (PyErr_Occurred()) SWIG_fail; | |
35256 | } | |
35257 | { | |
35258 | wxSize * resultptr; | |
35259 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35260 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35261 | } |
35262 | return resultobj; | |
35263 | fail: | |
35264 | return NULL; | |
35265 | } | |
35266 | ||
35267 | ||
35268 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35269 | PyObject *resultobj; | |
35270 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35271 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35272 | PyObject * obj0 = 0 ; | |
35273 | PyObject * obj1 = 0 ; | |
35274 | char *kwnames[] = { | |
35275 | (char *) "self",(char *) "window", NULL | |
35276 | }; | |
35277 | ||
35278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35281 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35283 | { |
35284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35285 | (arg1)->FitInside(arg2); | |
35286 | ||
35287 | wxPyEndAllowThreads(__tstate); | |
35288 | if (PyErr_Occurred()) SWIG_fail; | |
35289 | } | |
35290 | Py_INCREF(Py_None); resultobj = Py_None; | |
35291 | return resultobj; | |
35292 | fail: | |
35293 | return NULL; | |
35294 | } | |
35295 | ||
35296 | ||
35297 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35298 | PyObject *resultobj; | |
35299 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35301 | PyObject * obj0 = 0 ; | |
35302 | PyObject * obj1 = 0 ; | |
35303 | char *kwnames[] = { | |
35304 | (char *) "self",(char *) "window", NULL | |
35305 | }; | |
35306 | ||
35307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35312 | { |
35313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35314 | (arg1)->SetSizeHints(arg2); | |
35315 | ||
35316 | wxPyEndAllowThreads(__tstate); | |
35317 | if (PyErr_Occurred()) SWIG_fail; | |
35318 | } | |
35319 | Py_INCREF(Py_None); resultobj = Py_None; | |
35320 | return resultobj; | |
35321 | fail: | |
35322 | return NULL; | |
35323 | } | |
35324 | ||
35325 | ||
35326 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35327 | PyObject *resultobj; | |
35328 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35330 | PyObject * obj0 = 0 ; | |
35331 | PyObject * obj1 = 0 ; | |
35332 | char *kwnames[] = { | |
35333 | (char *) "self",(char *) "window", NULL | |
35334 | }; | |
35335 | ||
35336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35341 | { |
35342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35343 | (arg1)->SetVirtualSizeHints(arg2); | |
35344 | ||
35345 | wxPyEndAllowThreads(__tstate); | |
35346 | if (PyErr_Occurred()) SWIG_fail; | |
35347 | } | |
35348 | Py_INCREF(Py_None); resultobj = Py_None; | |
35349 | return resultobj; | |
35350 | fail: | |
35351 | return NULL; | |
35352 | } | |
35353 | ||
35354 | ||
35355 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35356 | PyObject *resultobj; | |
35357 | wxSizer *arg1 = (wxSizer *) 0 ; | |
e811c8ce | 35358 | bool arg2 = (bool) False ; |
d14a1e28 RD |
35359 | PyObject * obj0 = 0 ; |
35360 | PyObject * obj1 = 0 ; | |
35361 | char *kwnames[] = { | |
35362 | (char *) "self",(char *) "delete_windows", NULL | |
35363 | }; | |
35364 | ||
35365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 35368 | if (obj1) { |
15afbcd0 RD |
35369 | arg2 = (bool) SWIG_AsBool(obj1); |
35370 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35371 | } |
35372 | { | |
35373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35374 | (arg1)->Clear(arg2); | |
35375 | ||
35376 | wxPyEndAllowThreads(__tstate); | |
35377 | if (PyErr_Occurred()) SWIG_fail; | |
35378 | } | |
35379 | Py_INCREF(Py_None); resultobj = Py_None; | |
35380 | return resultobj; | |
35381 | fail: | |
35382 | return NULL; | |
35383 | } | |
35384 | ||
35385 | ||
35386 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35387 | PyObject *resultobj; | |
35388 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35389 | PyObject * obj0 = 0 ; | |
35390 | char *kwnames[] = { | |
35391 | (char *) "self", NULL | |
35392 | }; | |
35393 | ||
35394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35397 | { |
35398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35399 | (arg1)->DeleteWindows(); | |
35400 | ||
35401 | wxPyEndAllowThreads(__tstate); | |
35402 | if (PyErr_Occurred()) SWIG_fail; | |
35403 | } | |
35404 | Py_INCREF(Py_None); resultobj = Py_None; | |
35405 | return resultobj; | |
35406 | fail: | |
35407 | return NULL; | |
35408 | } | |
35409 | ||
35410 | ||
35411 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35412 | PyObject *resultobj; | |
35413 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35414 | PyObject *result; | |
35415 | PyObject * obj0 = 0 ; | |
35416 | char *kwnames[] = { | |
35417 | (char *) "self", NULL | |
35418 | }; | |
35419 | ||
35420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35423 | { |
35424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35425 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35426 | ||
35427 | wxPyEndAllowThreads(__tstate); | |
35428 | if (PyErr_Occurred()) SWIG_fail; | |
35429 | } | |
35430 | resultobj = result; | |
35431 | return resultobj; | |
35432 | fail: | |
35433 | return NULL; | |
35434 | } | |
35435 | ||
35436 | ||
35437 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35438 | PyObject *resultobj; | |
35439 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35440 | PyObject *arg2 = (PyObject *) 0 ; | |
e811c8ce | 35441 | bool arg3 = (bool) True ; |
d14a1e28 RD |
35442 | PyObject * obj0 = 0 ; |
35443 | PyObject * obj1 = 0 ; | |
35444 | PyObject * obj2 = 0 ; | |
35445 | char *kwnames[] = { | |
35446 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35447 | }; | |
35448 | ||
35449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35452 | arg2 = obj1; |
35453 | if (obj2) { | |
15afbcd0 RD |
35454 | arg3 = (bool) SWIG_AsBool(obj2); |
35455 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35456 | } |
35457 | { | |
35458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35459 | wxSizer_Show(arg1,arg2,arg3); | |
35460 | ||
35461 | wxPyEndAllowThreads(__tstate); | |
35462 | if (PyErr_Occurred()) SWIG_fail; | |
35463 | } | |
35464 | Py_INCREF(Py_None); resultobj = Py_None; | |
35465 | return resultobj; | |
35466 | fail: | |
35467 | return NULL; | |
35468 | } | |
35469 | ||
35470 | ||
35471 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35472 | PyObject *resultobj; | |
35473 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35474 | PyObject *arg2 = (PyObject *) 0 ; | |
35475 | PyObject * obj0 = 0 ; | |
35476 | PyObject * obj1 = 0 ; | |
35477 | char *kwnames[] = { | |
35478 | (char *) "self",(char *) "item", NULL | |
35479 | }; | |
35480 | ||
35481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35484 | arg2 = obj1; |
35485 | { | |
35486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35487 | wxSizer_Hide(arg1,arg2); | |
35488 | ||
35489 | wxPyEndAllowThreads(__tstate); | |
35490 | if (PyErr_Occurred()) SWIG_fail; | |
35491 | } | |
35492 | Py_INCREF(Py_None); resultobj = Py_None; | |
35493 | return resultobj; | |
35494 | fail: | |
35495 | return NULL; | |
35496 | } | |
35497 | ||
35498 | ||
35499 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35500 | PyObject *resultobj; | |
35501 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35502 | PyObject *arg2 = (PyObject *) 0 ; | |
35503 | bool result; | |
35504 | PyObject * obj0 = 0 ; | |
35505 | PyObject * obj1 = 0 ; | |
35506 | char *kwnames[] = { | |
35507 | (char *) "self",(char *) "item", NULL | |
35508 | }; | |
35509 | ||
35510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35513 | arg2 = obj1; |
35514 | { | |
35515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35516 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35517 | ||
35518 | wxPyEndAllowThreads(__tstate); | |
35519 | if (PyErr_Occurred()) SWIG_fail; | |
35520 | } | |
4f89f6a3 RD |
35521 | { |
35522 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35523 | } | |
d14a1e28 RD |
35524 | return resultobj; |
35525 | fail: | |
35526 | return NULL; | |
35527 | } | |
35528 | ||
35529 | ||
35530 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35531 | PyObject *resultobj; | |
35532 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35533 | bool arg2 ; | |
35534 | PyObject * obj0 = 0 ; | |
35535 | PyObject * obj1 = 0 ; | |
35536 | char *kwnames[] = { | |
35537 | (char *) "self",(char *) "show", NULL | |
35538 | }; | |
35539 | ||
35540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
35541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
35542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35543 | arg2 = (bool) SWIG_AsBool(obj1); | |
35544 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35545 | { |
35546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35547 | (arg1)->ShowItems(arg2); | |
35548 | ||
35549 | wxPyEndAllowThreads(__tstate); | |
35550 | if (PyErr_Occurred()) SWIG_fail; | |
35551 | } | |
35552 | Py_INCREF(Py_None); resultobj = Py_None; | |
35553 | return resultobj; | |
35554 | fail: | |
35555 | return NULL; | |
35556 | } | |
35557 | ||
35558 | ||
35559 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35560 | PyObject *obj; | |
35561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35562 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35563 | Py_INCREF(obj); | |
35564 | return Py_BuildValue((char *)""); | |
35565 | } | |
35566 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35567 | PyObject *resultobj; | |
35568 | wxPySizer *result; | |
35569 | char *kwnames[] = { | |
35570 | NULL | |
35571 | }; | |
35572 | ||
35573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35574 | { | |
35575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35576 | result = (wxPySizer *)new wxPySizer(); | |
35577 | ||
35578 | wxPyEndAllowThreads(__tstate); | |
35579 | if (PyErr_Occurred()) SWIG_fail; | |
35580 | } | |
15afbcd0 | 35581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); |
d14a1e28 RD |
35582 | return resultobj; |
35583 | fail: | |
35584 | return NULL; | |
35585 | } | |
35586 | ||
35587 | ||
35588 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35589 | PyObject *resultobj; | |
35590 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35591 | PyObject *arg2 = (PyObject *) 0 ; | |
35592 | PyObject *arg3 = (PyObject *) 0 ; | |
35593 | PyObject * obj0 = 0 ; | |
35594 | PyObject * obj1 = 0 ; | |
35595 | PyObject * obj2 = 0 ; | |
35596 | char *kwnames[] = { | |
35597 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35598 | }; | |
35599 | ||
35600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
35601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, |
35602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35603 | arg2 = obj1; |
35604 | arg3 = obj2; | |
35605 | { | |
35606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35607 | (arg1)->_setCallbackInfo(arg2,arg3); | |
35608 | ||
35609 | wxPyEndAllowThreads(__tstate); | |
35610 | if (PyErr_Occurred()) SWIG_fail; | |
35611 | } | |
35612 | Py_INCREF(Py_None); resultobj = Py_None; | |
35613 | return resultobj; | |
35614 | fail: | |
35615 | return NULL; | |
35616 | } | |
35617 | ||
35618 | ||
35619 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
35620 | PyObject *obj; | |
35621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35622 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
35623 | Py_INCREF(obj); | |
35624 | return Py_BuildValue((char *)""); | |
35625 | } | |
35626 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35627 | PyObject *resultobj; | |
35628 | int arg1 = (int) wxHORIZONTAL ; | |
35629 | wxBoxSizer *result; | |
994141e6 | 35630 | PyObject * obj0 = 0 ; |
d14a1e28 RD |
35631 | char *kwnames[] = { |
35632 | (char *) "orient", NULL | |
35633 | }; | |
35634 | ||
994141e6 RD |
35635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; |
35636 | if (obj0) { | |
15afbcd0 RD |
35637 | arg1 = (int) SWIG_AsInt(obj0); |
35638 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35639 | } |
d14a1e28 RD |
35640 | { |
35641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35642 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
35643 | ||
35644 | wxPyEndAllowThreads(__tstate); | |
35645 | if (PyErr_Occurred()) SWIG_fail; | |
35646 | } | |
15afbcd0 | 35647 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); |
d14a1e28 RD |
35648 | return resultobj; |
35649 | fail: | |
35650 | return NULL; | |
35651 | } | |
35652 | ||
35653 | ||
35654 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35655 | PyObject *resultobj; | |
35656 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35657 | int result; | |
35658 | PyObject * obj0 = 0 ; | |
35659 | char *kwnames[] = { | |
35660 | (char *) "self", NULL | |
35661 | }; | |
35662 | ||
35663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35666 | { |
35667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35668 | result = (int)(arg1)->GetOrientation(); | |
35669 | ||
35670 | wxPyEndAllowThreads(__tstate); | |
35671 | if (PyErr_Occurred()) SWIG_fail; | |
35672 | } | |
15afbcd0 | 35673 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
35674 | return resultobj; |
35675 | fail: | |
35676 | return NULL; | |
35677 | } | |
35678 | ||
35679 | ||
35680 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35681 | PyObject *resultobj; | |
35682 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35683 | int arg2 ; | |
35684 | PyObject * obj0 = 0 ; | |
994141e6 | 35685 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35686 | char *kwnames[] = { |
35687 | (char *) "self",(char *) "orient", NULL | |
35688 | }; | |
35689 | ||
994141e6 | 35690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35693 | arg2 = (int) SWIG_AsInt(obj1); | |
35694 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
35695 | { |
35696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35697 | (arg1)->SetOrientation(arg2); | |
35698 | ||
35699 | wxPyEndAllowThreads(__tstate); | |
35700 | if (PyErr_Occurred()) SWIG_fail; | |
35701 | } | |
35702 | Py_INCREF(Py_None); resultobj = Py_None; | |
35703 | return resultobj; | |
35704 | fail: | |
35705 | return NULL; | |
35706 | } | |
35707 | ||
35708 | ||
35709 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35710 | PyObject *resultobj; | |
35711 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35712 | PyObject * obj0 = 0 ; | |
35713 | char *kwnames[] = { | |
35714 | (char *) "self", NULL | |
35715 | }; | |
35716 | ||
35717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35720 | { |
35721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35722 | (arg1)->RecalcSizes(); | |
35723 | ||
35724 | wxPyEndAllowThreads(__tstate); | |
35725 | if (PyErr_Occurred()) SWIG_fail; | |
35726 | } | |
35727 | Py_INCREF(Py_None); resultobj = Py_None; | |
35728 | return resultobj; | |
35729 | fail: | |
35730 | return NULL; | |
35731 | } | |
35732 | ||
35733 | ||
35734 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35735 | PyObject *resultobj; | |
35736 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
35737 | wxSize result; | |
35738 | PyObject * obj0 = 0 ; | |
35739 | char *kwnames[] = { | |
35740 | (char *) "self", NULL | |
35741 | }; | |
35742 | ||
35743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, |
35745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35746 | { |
35747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35748 | result = (arg1)->CalcMin(); | |
35749 | ||
35750 | wxPyEndAllowThreads(__tstate); | |
35751 | if (PyErr_Occurred()) SWIG_fail; | |
35752 | } | |
35753 | { | |
35754 | wxSize * resultptr; | |
35755 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35756 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35757 | } |
35758 | return resultobj; | |
35759 | fail: | |
35760 | return NULL; | |
35761 | } | |
35762 | ||
35763 | ||
35764 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35765 | PyObject *obj; | |
35766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35767 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
35768 | Py_INCREF(obj); | |
35769 | return Py_BuildValue((char *)""); | |
35770 | } | |
35771 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35772 | PyObject *resultobj; | |
35773 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
35774 | int arg2 = (int) wxHORIZONTAL ; | |
35775 | wxStaticBoxSizer *result; | |
35776 | PyObject * obj0 = 0 ; | |
994141e6 | 35777 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
35778 | char *kwnames[] = { |
35779 | (char *) "box",(char *) "orient", NULL | |
35780 | }; | |
35781 | ||
994141e6 | 35782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
35783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
35784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 35785 | if (obj1) { |
15afbcd0 RD |
35786 | arg2 = (int) SWIG_AsInt(obj1); |
35787 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35788 | } |
d14a1e28 RD |
35789 | { |
35790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35791 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
35792 | ||
35793 | wxPyEndAllowThreads(__tstate); | |
35794 | if (PyErr_Occurred()) SWIG_fail; | |
35795 | } | |
15afbcd0 | 35796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); |
d14a1e28 RD |
35797 | return resultobj; |
35798 | fail: | |
35799 | return NULL; | |
35800 | } | |
35801 | ||
35802 | ||
35803 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35804 | PyObject *resultobj; | |
35805 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35806 | wxStaticBox *result; | |
35807 | PyObject * obj0 = 0 ; | |
35808 | char *kwnames[] = { | |
35809 | (char *) "self", NULL | |
35810 | }; | |
35811 | ||
35812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35815 | { |
35816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35817 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
35818 | ||
35819 | wxPyEndAllowThreads(__tstate); | |
35820 | if (PyErr_Occurred()) SWIG_fail; | |
35821 | } | |
35822 | { | |
35823 | resultobj = wxPyMake_wxObject(result); | |
35824 | } | |
35825 | return resultobj; | |
35826 | fail: | |
35827 | return NULL; | |
35828 | } | |
35829 | ||
35830 | ||
35831 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35832 | PyObject *resultobj; | |
35833 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35834 | PyObject * obj0 = 0 ; | |
35835 | char *kwnames[] = { | |
35836 | (char *) "self", NULL | |
35837 | }; | |
35838 | ||
35839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35842 | { |
35843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35844 | (arg1)->RecalcSizes(); | |
35845 | ||
35846 | wxPyEndAllowThreads(__tstate); | |
35847 | if (PyErr_Occurred()) SWIG_fail; | |
35848 | } | |
35849 | Py_INCREF(Py_None); resultobj = Py_None; | |
35850 | return resultobj; | |
35851 | fail: | |
35852 | return NULL; | |
35853 | } | |
35854 | ||
35855 | ||
35856 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35857 | PyObject *resultobj; | |
35858 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
35859 | wxSize result; | |
35860 | PyObject * obj0 = 0 ; | |
35861 | char *kwnames[] = { | |
35862 | (char *) "self", NULL | |
35863 | }; | |
35864 | ||
35865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, |
35867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35868 | { |
35869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35870 | result = (arg1)->CalcMin(); | |
35871 | ||
35872 | wxPyEndAllowThreads(__tstate); | |
35873 | if (PyErr_Occurred()) SWIG_fail; | |
35874 | } | |
35875 | { | |
35876 | wxSize * resultptr; | |
35877 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35878 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35879 | } |
35880 | return resultobj; | |
35881 | fail: | |
35882 | return NULL; | |
35883 | } | |
35884 | ||
35885 | ||
35886 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
35887 | PyObject *obj; | |
35888 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35889 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
35890 | Py_INCREF(obj); | |
35891 | return Py_BuildValue((char *)""); | |
35892 | } | |
35893 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35894 | PyObject *resultobj; | |
35895 | int arg1 = (int) 1 ; | |
35896 | int arg2 = (int) 0 ; | |
35897 | int arg3 = (int) 0 ; | |
35898 | int arg4 = (int) 0 ; | |
35899 | wxGridSizer *result; | |
994141e6 RD |
35900 | PyObject * obj0 = 0 ; |
35901 | PyObject * obj1 = 0 ; | |
35902 | PyObject * obj2 = 0 ; | |
35903 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
35904 | char *kwnames[] = { |
35905 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
35906 | }; | |
35907 | ||
994141e6 RD |
35908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
35909 | if (obj0) { | |
15afbcd0 RD |
35910 | arg1 = (int) SWIG_AsInt(obj0); |
35911 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35912 | } |
35913 | if (obj1) { | |
15afbcd0 RD |
35914 | arg2 = (int) SWIG_AsInt(obj1); |
35915 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35916 | } |
35917 | if (obj2) { | |
15afbcd0 RD |
35918 | arg3 = (int) SWIG_AsInt(obj2); |
35919 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
35920 | } |
35921 | if (obj3) { | |
15afbcd0 RD |
35922 | arg4 = (int) SWIG_AsInt(obj3); |
35923 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 35924 | } |
d14a1e28 RD |
35925 | { |
35926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35927 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
35928 | ||
35929 | wxPyEndAllowThreads(__tstate); | |
35930 | if (PyErr_Occurred()) SWIG_fail; | |
35931 | } | |
15afbcd0 | 35932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); |
d14a1e28 RD |
35933 | return resultobj; |
35934 | fail: | |
35935 | return NULL; | |
35936 | } | |
35937 | ||
35938 | ||
35939 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35940 | PyObject *resultobj; | |
35941 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35942 | PyObject * obj0 = 0 ; | |
35943 | char *kwnames[] = { | |
35944 | (char *) "self", NULL | |
35945 | }; | |
35946 | ||
35947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35950 | { |
35951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35952 | (arg1)->RecalcSizes(); | |
35953 | ||
35954 | wxPyEndAllowThreads(__tstate); | |
35955 | if (PyErr_Occurred()) SWIG_fail; | |
35956 | } | |
35957 | Py_INCREF(Py_None); resultobj = Py_None; | |
35958 | return resultobj; | |
35959 | fail: | |
35960 | return NULL; | |
35961 | } | |
35962 | ||
35963 | ||
35964 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35965 | PyObject *resultobj; | |
35966 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35967 | wxSize result; | |
35968 | PyObject * obj0 = 0 ; | |
35969 | char *kwnames[] = { | |
35970 | (char *) "self", NULL | |
35971 | }; | |
35972 | ||
35973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
35974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
35975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
35976 | { |
35977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35978 | result = (arg1)->CalcMin(); | |
35979 | ||
35980 | wxPyEndAllowThreads(__tstate); | |
35981 | if (PyErr_Occurred()) SWIG_fail; | |
35982 | } | |
35983 | { | |
35984 | wxSize * resultptr; | |
35985 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 35986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
35987 | } |
35988 | return resultobj; | |
35989 | fail: | |
35990 | return NULL; | |
35991 | } | |
35992 | ||
35993 | ||
35994 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35995 | PyObject *resultobj; | |
35996 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
35997 | int arg2 ; | |
35998 | PyObject * obj0 = 0 ; | |
994141e6 | 35999 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36000 | char *kwnames[] = { |
36001 | (char *) "self",(char *) "cols", NULL | |
36002 | }; | |
36003 | ||
994141e6 | 36004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36007 | arg2 = (int) SWIG_AsInt(obj1); | |
36008 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36009 | { |
36010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36011 | (arg1)->SetCols(arg2); | |
36012 | ||
36013 | wxPyEndAllowThreads(__tstate); | |
36014 | if (PyErr_Occurred()) SWIG_fail; | |
36015 | } | |
36016 | Py_INCREF(Py_None); resultobj = Py_None; | |
36017 | return resultobj; | |
36018 | fail: | |
36019 | return NULL; | |
36020 | } | |
36021 | ||
36022 | ||
36023 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36024 | PyObject *resultobj; | |
36025 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36026 | int arg2 ; | |
36027 | PyObject * obj0 = 0 ; | |
994141e6 | 36028 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36029 | char *kwnames[] = { |
36030 | (char *) "self",(char *) "rows", NULL | |
36031 | }; | |
36032 | ||
994141e6 | 36033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36036 | arg2 = (int) SWIG_AsInt(obj1); | |
36037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36038 | { |
36039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36040 | (arg1)->SetRows(arg2); | |
36041 | ||
36042 | wxPyEndAllowThreads(__tstate); | |
36043 | if (PyErr_Occurred()) SWIG_fail; | |
36044 | } | |
36045 | Py_INCREF(Py_None); resultobj = Py_None; | |
36046 | return resultobj; | |
36047 | fail: | |
36048 | return NULL; | |
36049 | } | |
36050 | ||
36051 | ||
36052 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36053 | PyObject *resultobj; | |
36054 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36055 | int arg2 ; | |
36056 | PyObject * obj0 = 0 ; | |
994141e6 | 36057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36058 | char *kwnames[] = { |
36059 | (char *) "self",(char *) "gap", NULL | |
36060 | }; | |
36061 | ||
994141e6 | 36062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36065 | arg2 = (int) SWIG_AsInt(obj1); | |
36066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36067 | { |
36068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36069 | (arg1)->SetVGap(arg2); | |
36070 | ||
36071 | wxPyEndAllowThreads(__tstate); | |
36072 | if (PyErr_Occurred()) SWIG_fail; | |
36073 | } | |
36074 | Py_INCREF(Py_None); resultobj = Py_None; | |
36075 | return resultobj; | |
36076 | fail: | |
36077 | return NULL; | |
36078 | } | |
36079 | ||
36080 | ||
36081 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36082 | PyObject *resultobj; | |
36083 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36084 | int arg2 ; | |
36085 | PyObject * obj0 = 0 ; | |
994141e6 | 36086 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36087 | char *kwnames[] = { |
36088 | (char *) "self",(char *) "gap", NULL | |
36089 | }; | |
36090 | ||
994141e6 | 36091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36094 | arg2 = (int) SWIG_AsInt(obj1); | |
36095 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36096 | { |
36097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36098 | (arg1)->SetHGap(arg2); | |
36099 | ||
36100 | wxPyEndAllowThreads(__tstate); | |
36101 | if (PyErr_Occurred()) SWIG_fail; | |
36102 | } | |
36103 | Py_INCREF(Py_None); resultobj = Py_None; | |
36104 | return resultobj; | |
36105 | fail: | |
36106 | return NULL; | |
36107 | } | |
36108 | ||
36109 | ||
36110 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36111 | PyObject *resultobj; | |
36112 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36113 | int result; | |
36114 | PyObject * obj0 = 0 ; | |
36115 | char *kwnames[] = { | |
36116 | (char *) "self", NULL | |
36117 | }; | |
36118 | ||
36119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36122 | { |
36123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36124 | result = (int)(arg1)->GetCols(); | |
36125 | ||
36126 | wxPyEndAllowThreads(__tstate); | |
36127 | if (PyErr_Occurred()) SWIG_fail; | |
36128 | } | |
15afbcd0 | 36129 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36130 | return resultobj; |
36131 | fail: | |
36132 | return NULL; | |
36133 | } | |
36134 | ||
36135 | ||
36136 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36137 | PyObject *resultobj; | |
36138 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36139 | int result; | |
36140 | PyObject * obj0 = 0 ; | |
36141 | char *kwnames[] = { | |
36142 | (char *) "self", NULL | |
36143 | }; | |
36144 | ||
36145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36148 | { |
36149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36150 | result = (int)(arg1)->GetRows(); | |
36151 | ||
36152 | wxPyEndAllowThreads(__tstate); | |
36153 | if (PyErr_Occurred()) SWIG_fail; | |
36154 | } | |
15afbcd0 | 36155 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36156 | return resultobj; |
36157 | fail: | |
36158 | return NULL; | |
36159 | } | |
36160 | ||
36161 | ||
36162 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36163 | PyObject *resultobj; | |
36164 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36165 | int result; | |
36166 | PyObject * obj0 = 0 ; | |
36167 | char *kwnames[] = { | |
36168 | (char *) "self", NULL | |
36169 | }; | |
36170 | ||
36171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36174 | { |
36175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36176 | result = (int)(arg1)->GetVGap(); | |
36177 | ||
36178 | wxPyEndAllowThreads(__tstate); | |
36179 | if (PyErr_Occurred()) SWIG_fail; | |
36180 | } | |
15afbcd0 | 36181 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36182 | return resultobj; |
36183 | fail: | |
36184 | return NULL; | |
36185 | } | |
36186 | ||
36187 | ||
36188 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36189 | PyObject *resultobj; | |
36190 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36191 | int result; | |
36192 | PyObject * obj0 = 0 ; | |
36193 | char *kwnames[] = { | |
36194 | (char *) "self", NULL | |
36195 | }; | |
36196 | ||
36197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, |
36199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36200 | { |
36201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36202 | result = (int)(arg1)->GetHGap(); | |
36203 | ||
36204 | wxPyEndAllowThreads(__tstate); | |
36205 | if (PyErr_Occurred()) SWIG_fail; | |
36206 | } | |
15afbcd0 | 36207 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36208 | return resultobj; |
36209 | fail: | |
36210 | return NULL; | |
36211 | } | |
36212 | ||
36213 | ||
36214 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36215 | PyObject *obj; | |
36216 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36217 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36218 | Py_INCREF(obj); | |
36219 | return Py_BuildValue((char *)""); | |
36220 | } | |
36221 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36222 | PyObject *resultobj; | |
36223 | int arg1 = (int) 1 ; | |
36224 | int arg2 = (int) 0 ; | |
36225 | int arg3 = (int) 0 ; | |
36226 | int arg4 = (int) 0 ; | |
36227 | wxFlexGridSizer *result; | |
994141e6 RD |
36228 | PyObject * obj0 = 0 ; |
36229 | PyObject * obj1 = 0 ; | |
36230 | PyObject * obj2 = 0 ; | |
36231 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
36232 | char *kwnames[] = { |
36233 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36234 | }; | |
36235 | ||
994141e6 RD |
36236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
36237 | if (obj0) { | |
15afbcd0 RD |
36238 | arg1 = (int) SWIG_AsInt(obj0); |
36239 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36240 | } |
36241 | if (obj1) { | |
15afbcd0 RD |
36242 | arg2 = (int) SWIG_AsInt(obj1); |
36243 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36244 | } |
36245 | if (obj2) { | |
15afbcd0 RD |
36246 | arg3 = (int) SWIG_AsInt(obj2); |
36247 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36248 | } |
36249 | if (obj3) { | |
15afbcd0 RD |
36250 | arg4 = (int) SWIG_AsInt(obj3); |
36251 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36252 | } |
d14a1e28 RD |
36253 | { |
36254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36255 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36256 | ||
36257 | wxPyEndAllowThreads(__tstate); | |
36258 | if (PyErr_Occurred()) SWIG_fail; | |
36259 | } | |
15afbcd0 | 36260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); |
d14a1e28 RD |
36261 | return resultobj; |
36262 | fail: | |
36263 | return NULL; | |
36264 | } | |
36265 | ||
36266 | ||
36267 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36268 | PyObject *resultobj; | |
36269 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36270 | PyObject * obj0 = 0 ; | |
36271 | char *kwnames[] = { | |
36272 | (char *) "self", NULL | |
36273 | }; | |
36274 | ||
36275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36278 | { |
36279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36280 | (arg1)->RecalcSizes(); | |
36281 | ||
36282 | wxPyEndAllowThreads(__tstate); | |
36283 | if (PyErr_Occurred()) SWIG_fail; | |
36284 | } | |
36285 | Py_INCREF(Py_None); resultobj = Py_None; | |
36286 | return resultobj; | |
36287 | fail: | |
36288 | return NULL; | |
36289 | } | |
36290 | ||
36291 | ||
36292 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36293 | PyObject *resultobj; | |
36294 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36295 | wxSize result; | |
36296 | PyObject * obj0 = 0 ; | |
36297 | char *kwnames[] = { | |
36298 | (char *) "self", NULL | |
36299 | }; | |
36300 | ||
36301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36304 | { |
36305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36306 | result = (arg1)->CalcMin(); | |
36307 | ||
36308 | wxPyEndAllowThreads(__tstate); | |
36309 | if (PyErr_Occurred()) SWIG_fail; | |
36310 | } | |
36311 | { | |
36312 | wxSize * resultptr; | |
36313 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 36314 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
36315 | } |
36316 | return resultobj; | |
36317 | fail: | |
36318 | return NULL; | |
36319 | } | |
36320 | ||
36321 | ||
36322 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36323 | PyObject *resultobj; | |
36324 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36325 | size_t arg2 ; | |
36326 | int arg3 = (int) 0 ; | |
36327 | PyObject * obj0 = 0 ; | |
36328 | PyObject * obj1 = 0 ; | |
994141e6 | 36329 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36330 | char *kwnames[] = { |
36331 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36332 | }; | |
36333 | ||
994141e6 | 36334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36337 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36338 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36339 | if (obj2) { |
15afbcd0 RD |
36340 | arg3 = (int) SWIG_AsInt(obj2); |
36341 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36342 | } |
d14a1e28 RD |
36343 | { |
36344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36345 | (arg1)->AddGrowableRow(arg2,arg3); | |
36346 | ||
36347 | wxPyEndAllowThreads(__tstate); | |
36348 | if (PyErr_Occurred()) SWIG_fail; | |
36349 | } | |
36350 | Py_INCREF(Py_None); resultobj = Py_None; | |
36351 | return resultobj; | |
36352 | fail: | |
36353 | return NULL; | |
36354 | } | |
36355 | ||
36356 | ||
36357 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36358 | PyObject *resultobj; | |
36359 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36360 | size_t arg2 ; | |
36361 | PyObject * obj0 = 0 ; | |
36362 | PyObject * obj1 = 0 ; | |
36363 | char *kwnames[] = { | |
36364 | (char *) "self",(char *) "idx", NULL | |
36365 | }; | |
36366 | ||
36367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36370 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36372 | { |
36373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36374 | (arg1)->RemoveGrowableRow(arg2); | |
36375 | ||
36376 | wxPyEndAllowThreads(__tstate); | |
36377 | if (PyErr_Occurred()) SWIG_fail; | |
36378 | } | |
36379 | Py_INCREF(Py_None); resultobj = Py_None; | |
36380 | return resultobj; | |
36381 | fail: | |
36382 | return NULL; | |
36383 | } | |
36384 | ||
36385 | ||
36386 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36387 | PyObject *resultobj; | |
36388 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36389 | size_t arg2 ; | |
36390 | int arg3 = (int) 0 ; | |
36391 | PyObject * obj0 = 0 ; | |
36392 | PyObject * obj1 = 0 ; | |
994141e6 | 36393 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
36394 | char *kwnames[] = { |
36395 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36396 | }; | |
36397 | ||
994141e6 | 36398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36401 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36402 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36403 | if (obj2) { |
15afbcd0 RD |
36404 | arg3 = (int) SWIG_AsInt(obj2); |
36405 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36406 | } |
d14a1e28 RD |
36407 | { |
36408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36409 | (arg1)->AddGrowableCol(arg2,arg3); | |
36410 | ||
36411 | wxPyEndAllowThreads(__tstate); | |
36412 | if (PyErr_Occurred()) SWIG_fail; | |
36413 | } | |
36414 | Py_INCREF(Py_None); resultobj = Py_None; | |
36415 | return resultobj; | |
36416 | fail: | |
36417 | return NULL; | |
36418 | } | |
36419 | ||
36420 | ||
36421 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36422 | PyObject *resultobj; | |
36423 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36424 | size_t arg2 ; | |
36425 | PyObject * obj0 = 0 ; | |
36426 | PyObject * obj1 = 0 ; | |
36427 | char *kwnames[] = { | |
36428 | (char *) "self",(char *) "idx", NULL | |
36429 | }; | |
36430 | ||
36431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36434 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36435 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36436 | { |
36437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36438 | (arg1)->RemoveGrowableCol(arg2); | |
36439 | ||
36440 | wxPyEndAllowThreads(__tstate); | |
36441 | if (PyErr_Occurred()) SWIG_fail; | |
36442 | } | |
36443 | Py_INCREF(Py_None); resultobj = Py_None; | |
36444 | return resultobj; | |
36445 | fail: | |
36446 | return NULL; | |
36447 | } | |
36448 | ||
36449 | ||
36450 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36451 | PyObject *resultobj; | |
36452 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36453 | int arg2 ; | |
36454 | PyObject * obj0 = 0 ; | |
994141e6 | 36455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36456 | char *kwnames[] = { |
36457 | (char *) "self",(char *) "direction", NULL | |
36458 | }; | |
36459 | ||
994141e6 | 36460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36463 | arg2 = (int) SWIG_AsInt(obj1); | |
36464 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36465 | { |
36466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36467 | (arg1)->SetFlexibleDirection(arg2); | |
36468 | ||
36469 | wxPyEndAllowThreads(__tstate); | |
36470 | if (PyErr_Occurred()) SWIG_fail; | |
36471 | } | |
36472 | Py_INCREF(Py_None); resultobj = Py_None; | |
36473 | return resultobj; | |
36474 | fail: | |
36475 | return NULL; | |
36476 | } | |
36477 | ||
36478 | ||
36479 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36480 | PyObject *resultobj; | |
36481 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36482 | int result; | |
36483 | PyObject * obj0 = 0 ; | |
36484 | char *kwnames[] = { | |
36485 | (char *) "self", NULL | |
36486 | }; | |
36487 | ||
36488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36491 | { |
36492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36493 | result = (int)(arg1)->GetFlexibleDirection(); | |
36494 | ||
36495 | wxPyEndAllowThreads(__tstate); | |
36496 | if (PyErr_Occurred()) SWIG_fail; | |
36497 | } | |
15afbcd0 | 36498 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36499 | return resultobj; |
36500 | fail: | |
36501 | return NULL; | |
36502 | } | |
36503 | ||
36504 | ||
36505 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36506 | PyObject *resultobj; | |
36507 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36508 | int arg2 ; | |
36509 | PyObject * obj0 = 0 ; | |
994141e6 | 36510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36511 | char *kwnames[] = { |
36512 | (char *) "self",(char *) "mode", NULL | |
36513 | }; | |
36514 | ||
994141e6 | 36515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36518 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36520 | { |
36521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36522 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36523 | ||
36524 | wxPyEndAllowThreads(__tstate); | |
36525 | if (PyErr_Occurred()) SWIG_fail; | |
36526 | } | |
36527 | Py_INCREF(Py_None); resultobj = Py_None; | |
36528 | return resultobj; | |
36529 | fail: | |
36530 | return NULL; | |
36531 | } | |
36532 | ||
36533 | ||
36534 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36535 | PyObject *resultobj; | |
36536 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36537 | int result; | |
36538 | PyObject * obj0 = 0 ; | |
36539 | char *kwnames[] = { | |
36540 | (char *) "self", NULL | |
36541 | }; | |
36542 | ||
36543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36546 | { |
36547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36548 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36549 | ||
36550 | wxPyEndAllowThreads(__tstate); | |
36551 | if (PyErr_Occurred()) SWIG_fail; | |
36552 | } | |
15afbcd0 | 36553 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36554 | return resultobj; |
36555 | fail: | |
36556 | return NULL; | |
36557 | } | |
36558 | ||
36559 | ||
e811c8ce RD |
36560 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { |
36561 | PyObject *resultobj; | |
36562 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36563 | wxArrayInt *result; | |
36564 | PyObject * obj0 = 0 ; | |
36565 | char *kwnames[] = { | |
36566 | (char *) "self", NULL | |
36567 | }; | |
36568 | ||
36569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36572 | { |
36573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36574 | { | |
36575 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36576 | result = (wxArrayInt *) &_result_ref; | |
36577 | } | |
36578 | ||
36579 | wxPyEndAllowThreads(__tstate); | |
36580 | if (PyErr_Occurred()) SWIG_fail; | |
36581 | } | |
36582 | { | |
36583 | resultobj = PyList_New(0); | |
36584 | size_t idx; | |
36585 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36586 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36587 | PyList_Append(resultobj, val); | |
36588 | Py_DECREF(val); | |
36589 | } | |
36590 | } | |
36591 | return resultobj; | |
36592 | fail: | |
36593 | return NULL; | |
36594 | } | |
36595 | ||
36596 | ||
36597 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36598 | PyObject *resultobj; | |
36599 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36600 | wxArrayInt *result; | |
36601 | PyObject * obj0 = 0 ; | |
36602 | char *kwnames[] = { | |
36603 | (char *) "self", NULL | |
36604 | }; | |
36605 | ||
36606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, |
36608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
36609 | { |
36610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36611 | { | |
36612 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
36613 | result = (wxArrayInt *) &_result_ref; | |
36614 | } | |
36615 | ||
36616 | wxPyEndAllowThreads(__tstate); | |
36617 | if (PyErr_Occurred()) SWIG_fail; | |
36618 | } | |
36619 | { | |
36620 | resultobj = PyList_New(0); | |
36621 | size_t idx; | |
36622 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36623 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36624 | PyList_Append(resultobj, val); | |
36625 | Py_DECREF(val); | |
36626 | } | |
36627 | } | |
36628 | return resultobj; | |
36629 | fail: | |
36630 | return NULL; | |
36631 | } | |
36632 | ||
36633 | ||
d14a1e28 RD |
36634 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { |
36635 | PyObject *obj; | |
36636 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36637 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
36638 | Py_INCREF(obj); | |
36639 | return Py_BuildValue((char *)""); | |
36640 | } | |
36641 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36642 | PyObject *resultobj; | |
36643 | int arg1 = (int) 0 ; | |
36644 | int arg2 = (int) 0 ; | |
36645 | wxGBPosition *result; | |
994141e6 RD |
36646 | PyObject * obj0 = 0 ; |
36647 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36648 | char *kwnames[] = { |
36649 | (char *) "row",(char *) "col", NULL | |
36650 | }; | |
36651 | ||
994141e6 RD |
36652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; |
36653 | if (obj0) { | |
15afbcd0 RD |
36654 | arg1 = (int) SWIG_AsInt(obj0); |
36655 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36656 | } |
36657 | if (obj1) { | |
15afbcd0 RD |
36658 | arg2 = (int) SWIG_AsInt(obj1); |
36659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36660 | } |
d14a1e28 RD |
36661 | { |
36662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36663 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
36664 | ||
36665 | wxPyEndAllowThreads(__tstate); | |
36666 | if (PyErr_Occurred()) SWIG_fail; | |
36667 | } | |
15afbcd0 | 36668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
36669 | return resultobj; |
36670 | fail: | |
36671 | return NULL; | |
36672 | } | |
36673 | ||
36674 | ||
36675 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36676 | PyObject *resultobj; | |
36677 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36678 | int result; | |
36679 | PyObject * obj0 = 0 ; | |
36680 | char *kwnames[] = { | |
36681 | (char *) "self", NULL | |
36682 | }; | |
36683 | ||
36684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36687 | { |
36688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36689 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
36690 | ||
36691 | wxPyEndAllowThreads(__tstate); | |
36692 | if (PyErr_Occurred()) SWIG_fail; | |
36693 | } | |
15afbcd0 | 36694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36695 | return resultobj; |
36696 | fail: | |
36697 | return NULL; | |
36698 | } | |
36699 | ||
36700 | ||
36701 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36702 | PyObject *resultobj; | |
36703 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36704 | int result; | |
36705 | PyObject * obj0 = 0 ; | |
36706 | char *kwnames[] = { | |
36707 | (char *) "self", NULL | |
36708 | }; | |
36709 | ||
36710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36713 | { |
36714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36715 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
36716 | ||
36717 | wxPyEndAllowThreads(__tstate); | |
36718 | if (PyErr_Occurred()) SWIG_fail; | |
36719 | } | |
15afbcd0 | 36720 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36721 | return resultobj; |
36722 | fail: | |
36723 | return NULL; | |
36724 | } | |
36725 | ||
36726 | ||
36727 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36728 | PyObject *resultobj; | |
36729 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36730 | int arg2 ; | |
36731 | PyObject * obj0 = 0 ; | |
994141e6 | 36732 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36733 | char *kwnames[] = { |
36734 | (char *) "self",(char *) "row", NULL | |
36735 | }; | |
36736 | ||
994141e6 | 36737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36740 | arg2 = (int) SWIG_AsInt(obj1); | |
36741 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36742 | { |
36743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36744 | (arg1)->SetRow(arg2); | |
36745 | ||
36746 | wxPyEndAllowThreads(__tstate); | |
36747 | if (PyErr_Occurred()) SWIG_fail; | |
36748 | } | |
36749 | Py_INCREF(Py_None); resultobj = Py_None; | |
36750 | return resultobj; | |
36751 | fail: | |
36752 | return NULL; | |
36753 | } | |
36754 | ||
36755 | ||
36756 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36757 | PyObject *resultobj; | |
36758 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36759 | int arg2 ; | |
36760 | PyObject * obj0 = 0 ; | |
994141e6 | 36761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
36762 | char *kwnames[] = { |
36763 | (char *) "self",(char *) "col", NULL | |
36764 | }; | |
36765 | ||
994141e6 | 36766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
36767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36769 | arg2 = (int) SWIG_AsInt(obj1); | |
36770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
36771 | { |
36772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36773 | (arg1)->SetCol(arg2); | |
36774 | ||
36775 | wxPyEndAllowThreads(__tstate); | |
36776 | if (PyErr_Occurred()) SWIG_fail; | |
36777 | } | |
36778 | Py_INCREF(Py_None); resultobj = Py_None; | |
36779 | return resultobj; | |
36780 | fail: | |
36781 | return NULL; | |
36782 | } | |
36783 | ||
36784 | ||
36785 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36786 | PyObject *resultobj; | |
36787 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36788 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36789 | bool result; |
4f89f6a3 | 36790 | wxGBPosition temp2 ; |
d14a1e28 RD |
36791 | PyObject * obj0 = 0 ; |
36792 | PyObject * obj1 = 0 ; | |
36793 | char *kwnames[] = { | |
22faec7d | 36794 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36795 | }; |
36796 | ||
36797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36800 | { |
36801 | arg2 = &temp2; | |
36802 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36803 | } | |
d14a1e28 RD |
36804 | { |
36805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36806 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36807 | |
36808 | wxPyEndAllowThreads(__tstate); | |
36809 | if (PyErr_Occurred()) SWIG_fail; | |
36810 | } | |
4f89f6a3 RD |
36811 | { |
36812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36813 | } | |
d14a1e28 RD |
36814 | return resultobj; |
36815 | fail: | |
36816 | return NULL; | |
36817 | } | |
36818 | ||
36819 | ||
36820 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36821 | PyObject *resultobj; | |
36822 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
4f89f6a3 | 36823 | wxGBPosition *arg2 = 0 ; |
d14a1e28 | 36824 | bool result; |
4f89f6a3 | 36825 | wxGBPosition temp2 ; |
d14a1e28 RD |
36826 | PyObject * obj0 = 0 ; |
36827 | PyObject * obj1 = 0 ; | |
36828 | char *kwnames[] = { | |
22faec7d | 36829 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
36830 | }; |
36831 | ||
36832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
36833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
36835 | { |
36836 | arg2 = &temp2; | |
36837 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
36838 | } | |
d14a1e28 RD |
36839 | { |
36840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 36841 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); |
d14a1e28 RD |
36842 | |
36843 | wxPyEndAllowThreads(__tstate); | |
36844 | if (PyErr_Occurred()) SWIG_fail; | |
36845 | } | |
4f89f6a3 RD |
36846 | { |
36847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36848 | } | |
d14a1e28 RD |
36849 | return resultobj; |
36850 | fail: | |
36851 | return NULL; | |
36852 | } | |
36853 | ||
36854 | ||
e811c8ce RD |
36855 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
36856 | PyObject *resultobj; | |
36857 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36858 | int arg2 = (int) 0 ; | |
36859 | int arg3 = (int) 0 ; | |
36860 | PyObject * obj0 = 0 ; | |
994141e6 RD |
36861 | PyObject * obj1 = 0 ; |
36862 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
36863 | char *kwnames[] = { |
36864 | (char *) "self",(char *) "row",(char *) "col", NULL | |
36865 | }; | |
36866 | ||
994141e6 | 36867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
36868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 36870 | if (obj1) { |
15afbcd0 RD |
36871 | arg2 = (int) SWIG_AsInt(obj1); |
36872 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36873 | } |
36874 | if (obj2) { | |
15afbcd0 RD |
36875 | arg3 = (int) SWIG_AsInt(obj2); |
36876 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36877 | } |
e811c8ce RD |
36878 | { |
36879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36880 | wxGBPosition_Set(arg1,arg2,arg3); | |
36881 | ||
36882 | wxPyEndAllowThreads(__tstate); | |
36883 | if (PyErr_Occurred()) SWIG_fail; | |
36884 | } | |
36885 | Py_INCREF(Py_None); resultobj = Py_None; | |
36886 | return resultobj; | |
36887 | fail: | |
36888 | return NULL; | |
36889 | } | |
36890 | ||
36891 | ||
36892 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
36893 | PyObject *resultobj; |
36894 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
36895 | PyObject *result; | |
36896 | PyObject * obj0 = 0 ; | |
36897 | char *kwnames[] = { | |
36898 | (char *) "self", NULL | |
36899 | }; | |
36900 | ||
e811c8ce | 36901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
36902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, |
36903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36904 | { |
36905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 36906 | result = (PyObject *)wxGBPosition_Get(arg1); |
d14a1e28 RD |
36907 | |
36908 | wxPyEndAllowThreads(__tstate); | |
36909 | if (PyErr_Occurred()) SWIG_fail; | |
36910 | } | |
36911 | resultobj = result; | |
36912 | return resultobj; | |
36913 | fail: | |
36914 | return NULL; | |
36915 | } | |
36916 | ||
36917 | ||
36918 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
36919 | PyObject *obj; | |
36920 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36921 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
36922 | Py_INCREF(obj); | |
36923 | return Py_BuildValue((char *)""); | |
36924 | } | |
36925 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36926 | PyObject *resultobj; | |
36927 | int arg1 = (int) 1 ; | |
36928 | int arg2 = (int) 1 ; | |
36929 | wxGBSpan *result; | |
994141e6 RD |
36930 | PyObject * obj0 = 0 ; |
36931 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
36932 | char *kwnames[] = { |
36933 | (char *) "rowspan",(char *) "colspan", NULL | |
36934 | }; | |
36935 | ||
994141e6 RD |
36936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; |
36937 | if (obj0) { | |
15afbcd0 RD |
36938 | arg1 = (int) SWIG_AsInt(obj0); |
36939 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
36940 | } |
36941 | if (obj1) { | |
15afbcd0 RD |
36942 | arg2 = (int) SWIG_AsInt(obj1); |
36943 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 36944 | } |
d14a1e28 RD |
36945 | { |
36946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36947 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
36948 | ||
36949 | wxPyEndAllowThreads(__tstate); | |
36950 | if (PyErr_Occurred()) SWIG_fail; | |
36951 | } | |
15afbcd0 | 36952 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
36953 | return resultobj; |
36954 | fail: | |
36955 | return NULL; | |
36956 | } | |
36957 | ||
36958 | ||
36959 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36960 | PyObject *resultobj; | |
36961 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36962 | int result; | |
36963 | PyObject * obj0 = 0 ; | |
36964 | char *kwnames[] = { | |
36965 | (char *) "self", NULL | |
36966 | }; | |
36967 | ||
36968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36971 | { |
36972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36973 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
36974 | ||
36975 | wxPyEndAllowThreads(__tstate); | |
36976 | if (PyErr_Occurred()) SWIG_fail; | |
36977 | } | |
15afbcd0 | 36978 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
36979 | return resultobj; |
36980 | fail: | |
36981 | return NULL; | |
36982 | } | |
36983 | ||
36984 | ||
36985 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36986 | PyObject *resultobj; | |
36987 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
36988 | int result; | |
36989 | PyObject * obj0 = 0 ; | |
36990 | char *kwnames[] = { | |
36991 | (char *) "self", NULL | |
36992 | }; | |
36993 | ||
36994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
36995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
36996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
36997 | { |
36998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36999 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37000 | ||
37001 | wxPyEndAllowThreads(__tstate); | |
37002 | if (PyErr_Occurred()) SWIG_fail; | |
37003 | } | |
15afbcd0 | 37004 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
37005 | return resultobj; |
37006 | fail: | |
37007 | return NULL; | |
37008 | } | |
37009 | ||
37010 | ||
37011 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37012 | PyObject *resultobj; | |
37013 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37014 | int arg2 ; | |
37015 | PyObject * obj0 = 0 ; | |
994141e6 | 37016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37017 | char *kwnames[] = { |
37018 | (char *) "self",(char *) "rowspan", NULL | |
37019 | }; | |
37020 | ||
994141e6 | 37021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37024 | arg2 = (int) SWIG_AsInt(obj1); | |
37025 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37026 | { |
37027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37028 | (arg1)->SetRowspan(arg2); | |
37029 | ||
37030 | wxPyEndAllowThreads(__tstate); | |
37031 | if (PyErr_Occurred()) SWIG_fail; | |
37032 | } | |
37033 | Py_INCREF(Py_None); resultobj = Py_None; | |
37034 | return resultobj; | |
37035 | fail: | |
37036 | return NULL; | |
37037 | } | |
37038 | ||
37039 | ||
37040 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37041 | PyObject *resultobj; | |
37042 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37043 | int arg2 ; | |
37044 | PyObject * obj0 = 0 ; | |
994141e6 | 37045 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
37046 | char *kwnames[] = { |
37047 | (char *) "self",(char *) "colspan", NULL | |
37048 | }; | |
37049 | ||
994141e6 | 37050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
37051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37053 | arg2 = (int) SWIG_AsInt(obj1); | |
37054 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37055 | { |
37056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37057 | (arg1)->SetColspan(arg2); | |
37058 | ||
37059 | wxPyEndAllowThreads(__tstate); | |
37060 | if (PyErr_Occurred()) SWIG_fail; | |
37061 | } | |
37062 | Py_INCREF(Py_None); resultobj = Py_None; | |
37063 | return resultobj; | |
37064 | fail: | |
37065 | return NULL; | |
37066 | } | |
37067 | ||
37068 | ||
37069 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37070 | PyObject *resultobj; | |
37071 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37072 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37073 | bool result; |
4f89f6a3 | 37074 | wxGBSpan temp2 ; |
d14a1e28 RD |
37075 | PyObject * obj0 = 0 ; |
37076 | PyObject * obj1 = 0 ; | |
37077 | char *kwnames[] = { | |
22faec7d | 37078 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37079 | }; |
37080 | ||
37081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37084 | { |
37085 | arg2 = &temp2; | |
37086 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37087 | } | |
d14a1e28 RD |
37088 | { |
37089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37090 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37091 | |
37092 | wxPyEndAllowThreads(__tstate); | |
37093 | if (PyErr_Occurred()) SWIG_fail; | |
37094 | } | |
4f89f6a3 RD |
37095 | { |
37096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37097 | } | |
d14a1e28 RD |
37098 | return resultobj; |
37099 | fail: | |
37100 | return NULL; | |
37101 | } | |
37102 | ||
37103 | ||
37104 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37105 | PyObject *resultobj; | |
37106 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
4f89f6a3 | 37107 | wxGBSpan *arg2 = 0 ; |
d14a1e28 | 37108 | bool result; |
4f89f6a3 | 37109 | wxGBSpan temp2 ; |
d14a1e28 RD |
37110 | PyObject * obj0 = 0 ; |
37111 | PyObject * obj1 = 0 ; | |
37112 | char *kwnames[] = { | |
22faec7d | 37113 | (char *) "self",(char *) "other", NULL |
d14a1e28 RD |
37114 | }; |
37115 | ||
37116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
37119 | { |
37120 | arg2 = &temp2; | |
37121 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37122 | } | |
d14a1e28 RD |
37123 | { |
37124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4f89f6a3 | 37125 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); |
d14a1e28 RD |
37126 | |
37127 | wxPyEndAllowThreads(__tstate); | |
37128 | if (PyErr_Occurred()) SWIG_fail; | |
37129 | } | |
4f89f6a3 RD |
37130 | { |
37131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37132 | } | |
d14a1e28 RD |
37133 | return resultobj; |
37134 | fail: | |
37135 | return NULL; | |
37136 | } | |
37137 | ||
37138 | ||
e811c8ce RD |
37139 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { |
37140 | PyObject *resultobj; | |
37141 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37142 | int arg2 = (int) 1 ; | |
37143 | int arg3 = (int) 1 ; | |
37144 | PyObject * obj0 = 0 ; | |
994141e6 RD |
37145 | PyObject * obj1 = 0 ; |
37146 | PyObject * obj2 = 0 ; | |
e811c8ce RD |
37147 | char *kwnames[] = { |
37148 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37149 | }; | |
37150 | ||
994141e6 | 37151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
37152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 37154 | if (obj1) { |
15afbcd0 RD |
37155 | arg2 = (int) SWIG_AsInt(obj1); |
37156 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37157 | } |
37158 | if (obj2) { | |
15afbcd0 RD |
37159 | arg3 = (int) SWIG_AsInt(obj2); |
37160 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37161 | } |
e811c8ce RD |
37162 | { |
37163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37164 | wxGBSpan_Set(arg1,arg2,arg3); | |
37165 | ||
37166 | wxPyEndAllowThreads(__tstate); | |
37167 | if (PyErr_Occurred()) SWIG_fail; | |
37168 | } | |
37169 | Py_INCREF(Py_None); resultobj = Py_None; | |
37170 | return resultobj; | |
37171 | fail: | |
37172 | return NULL; | |
37173 | } | |
37174 | ||
37175 | ||
37176 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
37177 | PyObject *resultobj; |
37178 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37179 | PyObject *result; | |
37180 | PyObject * obj0 = 0 ; | |
37181 | char *kwnames[] = { | |
37182 | (char *) "self", NULL | |
37183 | }; | |
37184 | ||
e811c8ce | 37185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
37186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, |
37187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37188 | { |
37189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e811c8ce | 37190 | result = (PyObject *)wxGBSpan_Get(arg1); |
d14a1e28 RD |
37191 | |
37192 | wxPyEndAllowThreads(__tstate); | |
37193 | if (PyErr_Occurred()) SWIG_fail; | |
37194 | } | |
37195 | resultobj = result; | |
37196 | return resultobj; | |
37197 | fail: | |
37198 | return NULL; | |
37199 | } | |
37200 | ||
37201 | ||
37202 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37203 | PyObject *obj; | |
37204 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37205 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37206 | Py_INCREF(obj); | |
37207 | return Py_BuildValue((char *)""); | |
37208 | } | |
37209 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37210 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37211 | return 1; | |
37212 | } | |
37213 | ||
37214 | ||
37215 | static PyObject *_wrap_DefaultSpan_get() { | |
37216 | PyObject *pyobj; | |
37217 | ||
15afbcd0 | 37218 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); |
d14a1e28 RD |
37219 | return pyobj; |
37220 | } | |
37221 | ||
37222 | ||
37223 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37224 | PyObject *resultobj; | |
37225 | wxGBSizerItem *result; | |
37226 | char *kwnames[] = { | |
37227 | NULL | |
37228 | }; | |
37229 | ||
37230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37231 | { | |
37232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37233 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37234 | ||
37235 | wxPyEndAllowThreads(__tstate); | |
37236 | if (PyErr_Occurred()) SWIG_fail; | |
37237 | } | |
15afbcd0 | 37238 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37239 | return resultobj; |
37240 | fail: | |
37241 | return NULL; | |
37242 | } | |
37243 | ||
37244 | ||
37245 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37246 | PyObject *resultobj; | |
37247 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37248 | wxGBPosition *arg2 = 0 ; | |
37249 | wxGBSpan *arg3 = 0 ; | |
37250 | int arg4 ; | |
37251 | int arg5 ; | |
37252 | wxObject *arg6 = (wxObject *) 0 ; | |
37253 | wxGBSizerItem *result; | |
37254 | wxGBPosition temp2 ; | |
37255 | wxGBSpan temp3 ; | |
37256 | PyObject * obj0 = 0 ; | |
37257 | PyObject * obj1 = 0 ; | |
37258 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37259 | PyObject * obj3 = 0 ; |
37260 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37261 | PyObject * obj5 = 0 ; |
37262 | char *kwnames[] = { | |
37263 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37264 | }; | |
37265 | ||
994141e6 | 37266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
37268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37269 | { |
37270 | arg2 = &temp2; | |
37271 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37272 | } | |
37273 | { | |
37274 | arg3 = &temp3; | |
37275 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37276 | } | |
15afbcd0 RD |
37277 | arg4 = (int) SWIG_AsInt(obj3); |
37278 | if (PyErr_Occurred()) SWIG_fail; | |
37279 | arg5 = (int) SWIG_AsInt(obj4); | |
37280 | if (PyErr_Occurred()) SWIG_fail; | |
37281 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37283 | { |
37284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37285 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37286 | ||
37287 | wxPyEndAllowThreads(__tstate); | |
37288 | if (PyErr_Occurred()) SWIG_fail; | |
37289 | } | |
15afbcd0 | 37290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37291 | return resultobj; |
37292 | fail: | |
37293 | return NULL; | |
37294 | } | |
37295 | ||
37296 | ||
37297 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37298 | PyObject *resultobj; | |
37299 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37300 | wxGBPosition *arg2 = 0 ; | |
37301 | wxGBSpan *arg3 = 0 ; | |
37302 | int arg4 ; | |
37303 | int arg5 ; | |
37304 | wxObject *arg6 = (wxObject *) 0 ; | |
37305 | wxGBSizerItem *result; | |
37306 | wxGBPosition temp2 ; | |
37307 | wxGBSpan temp3 ; | |
37308 | PyObject * obj0 = 0 ; | |
37309 | PyObject * obj1 = 0 ; | |
37310 | PyObject * obj2 = 0 ; | |
994141e6 RD |
37311 | PyObject * obj3 = 0 ; |
37312 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
37313 | PyObject * obj5 = 0 ; |
37314 | char *kwnames[] = { | |
37315 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37316 | }; | |
37317 | ||
994141e6 | 37318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
37319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37321 | { |
37322 | arg2 = &temp2; | |
37323 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37324 | } | |
37325 | { | |
37326 | arg3 = &temp3; | |
37327 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37328 | } | |
15afbcd0 RD |
37329 | arg4 = (int) SWIG_AsInt(obj3); |
37330 | if (PyErr_Occurred()) SWIG_fail; | |
37331 | arg5 = (int) SWIG_AsInt(obj4); | |
37332 | if (PyErr_Occurred()) SWIG_fail; | |
37333 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37335 | { |
37336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37337 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37338 | ||
37339 | wxPyEndAllowThreads(__tstate); | |
37340 | if (PyErr_Occurred()) SWIG_fail; | |
37341 | } | |
15afbcd0 | 37342 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37343 | return resultobj; |
37344 | fail: | |
37345 | return NULL; | |
37346 | } | |
37347 | ||
37348 | ||
37349 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37350 | PyObject *resultobj; | |
37351 | int arg1 ; | |
37352 | int arg2 ; | |
37353 | wxGBPosition *arg3 = 0 ; | |
37354 | wxGBSpan *arg4 = 0 ; | |
37355 | int arg5 ; | |
37356 | int arg6 ; | |
37357 | wxObject *arg7 = (wxObject *) 0 ; | |
37358 | wxGBSizerItem *result; | |
37359 | wxGBPosition temp3 ; | |
37360 | wxGBSpan temp4 ; | |
994141e6 RD |
37361 | PyObject * obj0 = 0 ; |
37362 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37363 | PyObject * obj2 = 0 ; |
37364 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37365 | PyObject * obj4 = 0 ; |
37366 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37367 | PyObject * obj6 = 0 ; |
37368 | char *kwnames[] = { | |
37369 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37370 | }; | |
37371 | ||
994141e6 | 37372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37373 | arg1 = (int) SWIG_AsInt(obj0); |
37374 | if (PyErr_Occurred()) SWIG_fail; | |
37375 | arg2 = (int) SWIG_AsInt(obj1); | |
37376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
37377 | { |
37378 | arg3 = &temp3; | |
37379 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37380 | } | |
37381 | { | |
37382 | arg4 = &temp4; | |
37383 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37384 | } | |
15afbcd0 RD |
37385 | arg5 = (int) SWIG_AsInt(obj4); |
37386 | if (PyErr_Occurred()) SWIG_fail; | |
37387 | arg6 = (int) SWIG_AsInt(obj5); | |
37388 | if (PyErr_Occurred()) SWIG_fail; | |
37389 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
37390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37391 | { |
37392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37393 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37394 | ||
37395 | wxPyEndAllowThreads(__tstate); | |
37396 | if (PyErr_Occurred()) SWIG_fail; | |
37397 | } | |
15afbcd0 | 37398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); |
d14a1e28 RD |
37399 | return resultobj; |
37400 | fail: | |
37401 | return NULL; | |
37402 | } | |
37403 | ||
37404 | ||
37405 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37406 | PyObject *resultobj; | |
37407 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37408 | wxGBPosition result; | |
37409 | PyObject * obj0 = 0 ; | |
37410 | char *kwnames[] = { | |
37411 | (char *) "self", NULL | |
37412 | }; | |
37413 | ||
37414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37417 | { |
37418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37419 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37420 | ||
37421 | wxPyEndAllowThreads(__tstate); | |
37422 | if (PyErr_Occurred()) SWIG_fail; | |
37423 | } | |
37424 | { | |
37425 | wxGBPosition * resultptr; | |
37426 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37427 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37428 | } |
37429 | return resultobj; | |
37430 | fail: | |
37431 | return NULL; | |
37432 | } | |
37433 | ||
37434 | ||
37435 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37436 | PyObject *resultobj; | |
37437 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37438 | wxGBSpan result; | |
37439 | PyObject * obj0 = 0 ; | |
37440 | char *kwnames[] = { | |
37441 | (char *) "self", NULL | |
37442 | }; | |
37443 | ||
37444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37447 | { |
37448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37449 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37450 | ||
37451 | wxPyEndAllowThreads(__tstate); | |
37452 | if (PyErr_Occurred()) SWIG_fail; | |
37453 | } | |
37454 | { | |
37455 | wxGBSpan * resultptr; | |
37456 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 37457 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
37458 | } |
37459 | return resultobj; | |
37460 | fail: | |
37461 | return NULL; | |
37462 | } | |
37463 | ||
37464 | ||
37465 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37466 | PyObject *resultobj; | |
37467 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37468 | wxGBPosition *arg2 = 0 ; | |
37469 | bool result; | |
37470 | wxGBPosition temp2 ; | |
37471 | PyObject * obj0 = 0 ; | |
37472 | PyObject * obj1 = 0 ; | |
37473 | char *kwnames[] = { | |
37474 | (char *) "self",(char *) "pos", NULL | |
37475 | }; | |
37476 | ||
37477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37480 | { |
37481 | arg2 = &temp2; | |
37482 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37483 | } | |
37484 | { | |
37485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37486 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37487 | ||
37488 | wxPyEndAllowThreads(__tstate); | |
37489 | if (PyErr_Occurred()) SWIG_fail; | |
37490 | } | |
4f89f6a3 RD |
37491 | { |
37492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37493 | } | |
d14a1e28 RD |
37494 | return resultobj; |
37495 | fail: | |
37496 | return NULL; | |
37497 | } | |
37498 | ||
37499 | ||
37500 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37501 | PyObject *resultobj; | |
37502 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37503 | wxGBSpan *arg2 = 0 ; | |
37504 | bool result; | |
37505 | wxGBSpan temp2 ; | |
37506 | PyObject * obj0 = 0 ; | |
37507 | PyObject * obj1 = 0 ; | |
37508 | char *kwnames[] = { | |
37509 | (char *) "self",(char *) "span", NULL | |
37510 | }; | |
37511 | ||
37512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37515 | { |
37516 | arg2 = &temp2; | |
37517 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37518 | } | |
37519 | { | |
37520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37521 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37522 | ||
37523 | wxPyEndAllowThreads(__tstate); | |
37524 | if (PyErr_Occurred()) SWIG_fail; | |
37525 | } | |
4f89f6a3 RD |
37526 | { |
37527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37528 | } | |
d14a1e28 RD |
37529 | return resultobj; |
37530 | fail: | |
37531 | return NULL; | |
37532 | } | |
37533 | ||
37534 | ||
37535 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
37536 | PyObject *resultobj; | |
37537 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37538 | wxGBSizerItem *arg2 = 0 ; | |
37539 | bool result; | |
37540 | PyObject * obj0 = 0 ; | |
37541 | PyObject * obj1 = 0 ; | |
37542 | ||
37543 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37547 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37548 | SWIG_fail; | |
d14a1e28 | 37549 | if (arg2 == NULL) { |
15afbcd0 RD |
37550 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37551 | SWIG_fail; | |
d14a1e28 RD |
37552 | } |
37553 | { | |
37554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37555 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37556 | ||
37557 | wxPyEndAllowThreads(__tstate); | |
37558 | if (PyErr_Occurred()) SWIG_fail; | |
37559 | } | |
4f89f6a3 RD |
37560 | { |
37561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37562 | } | |
d14a1e28 RD |
37563 | return resultobj; |
37564 | fail: | |
37565 | return NULL; | |
37566 | } | |
37567 | ||
37568 | ||
37569 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37570 | PyObject *resultobj; | |
37571 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37572 | wxGBPosition *arg2 = 0 ; | |
37573 | wxGBSpan *arg3 = 0 ; | |
37574 | bool result; | |
37575 | wxGBPosition temp2 ; | |
37576 | wxGBSpan temp3 ; | |
37577 | PyObject * obj0 = 0 ; | |
37578 | PyObject * obj1 = 0 ; | |
37579 | PyObject * obj2 = 0 ; | |
37580 | ||
37581 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37584 | { |
37585 | arg2 = &temp2; | |
37586 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37587 | } | |
37588 | { | |
37589 | arg3 = &temp3; | |
37590 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37591 | } | |
37592 | { | |
37593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37594 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37595 | ||
37596 | wxPyEndAllowThreads(__tstate); | |
37597 | if (PyErr_Occurred()) SWIG_fail; | |
37598 | } | |
4f89f6a3 RD |
37599 | { |
37600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37601 | } | |
d14a1e28 RD |
37602 | return resultobj; |
37603 | fail: | |
37604 | return NULL; | |
37605 | } | |
37606 | ||
37607 | ||
37608 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
37609 | int argc; | |
37610 | PyObject *argv[4]; | |
37611 | int ii; | |
37612 | ||
37613 | argc = PyObject_Length(args); | |
37614 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
37615 | argv[ii] = PyTuple_GetItem(args,ii); | |
37616 | } | |
37617 | if (argc == 2) { | |
37618 | int _v; | |
37619 | { | |
37620 | void *ptr; | |
15afbcd0 | 37621 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37622 | _v = 0; |
37623 | PyErr_Clear(); | |
37624 | } else { | |
37625 | _v = 1; | |
37626 | } | |
37627 | } | |
37628 | if (_v) { | |
37629 | { | |
37630 | void *ptr; | |
15afbcd0 | 37631 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37632 | _v = 0; |
37633 | PyErr_Clear(); | |
37634 | } else { | |
37635 | _v = 1; | |
37636 | } | |
37637 | } | |
37638 | if (_v) { | |
37639 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
37640 | } | |
37641 | } | |
37642 | } | |
37643 | if (argc == 3) { | |
37644 | int _v; | |
37645 | { | |
37646 | void *ptr; | |
15afbcd0 | 37647 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
37648 | _v = 0; |
37649 | PyErr_Clear(); | |
37650 | } else { | |
37651 | _v = 1; | |
37652 | } | |
37653 | } | |
37654 | if (_v) { | |
37655 | { | |
37656 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
37657 | } | |
37658 | if (_v) { | |
37659 | { | |
37660 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
37661 | } | |
37662 | if (_v) { | |
37663 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
37664 | } | |
37665 | } | |
37666 | } | |
37667 | } | |
37668 | ||
37669 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
37670 | return NULL; | |
37671 | } | |
37672 | ||
37673 | ||
37674 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37675 | PyObject *resultobj; | |
37676 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37677 | int *arg2 = 0 ; | |
37678 | int *arg3 = 0 ; | |
37679 | PyObject * obj0 = 0 ; | |
37680 | PyObject * obj1 = 0 ; | |
37681 | PyObject * obj2 = 0 ; | |
37682 | char *kwnames[] = { | |
37683 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37684 | }; | |
37685 | ||
37686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
37687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
37690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37691 | SWIG_fail; | |
d14a1e28 | 37692 | if (arg2 == NULL) { |
15afbcd0 RD |
37693 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37694 | SWIG_fail; | |
d14a1e28 | 37695 | } |
15afbcd0 RD |
37696 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, |
37697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37698 | SWIG_fail; | |
d14a1e28 | 37699 | if (arg3 == NULL) { |
15afbcd0 RD |
37700 | PyErr_SetString(PyExc_TypeError,"null reference"); |
37701 | SWIG_fail; | |
d14a1e28 RD |
37702 | } |
37703 | { | |
37704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37705 | (arg1)->GetEndPos(*arg2,*arg3); | |
37706 | ||
37707 | wxPyEndAllowThreads(__tstate); | |
37708 | if (PyErr_Occurred()) SWIG_fail; | |
37709 | } | |
37710 | Py_INCREF(Py_None); resultobj = Py_None; | |
37711 | return resultobj; | |
37712 | fail: | |
37713 | return NULL; | |
37714 | } | |
37715 | ||
37716 | ||
37717 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37718 | PyObject *resultobj; | |
37719 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37720 | wxGridBagSizer *result; | |
37721 | PyObject * obj0 = 0 ; | |
37722 | char *kwnames[] = { | |
37723 | (char *) "self", NULL | |
37724 | }; | |
37725 | ||
37726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37729 | { |
37730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37731 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
37732 | ||
37733 | wxPyEndAllowThreads(__tstate); | |
37734 | if (PyErr_Occurred()) SWIG_fail; | |
37735 | } | |
15afbcd0 | 37736 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); |
d14a1e28 RD |
37737 | return resultobj; |
37738 | fail: | |
37739 | return NULL; | |
37740 | } | |
37741 | ||
37742 | ||
37743 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37744 | PyObject *resultobj; | |
37745 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37746 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
37747 | PyObject * obj0 = 0 ; | |
37748 | PyObject * obj1 = 0 ; | |
37749 | char *kwnames[] = { | |
37750 | (char *) "self",(char *) "sizer", NULL | |
37751 | }; | |
37752 | ||
37753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
37755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
37757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37758 | { |
37759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37760 | (arg1)->SetGBSizer(arg2); | |
37761 | ||
37762 | wxPyEndAllowThreads(__tstate); | |
37763 | if (PyErr_Occurred()) SWIG_fail; | |
37764 | } | |
37765 | Py_INCREF(Py_None); resultobj = Py_None; | |
37766 | return resultobj; | |
37767 | fail: | |
37768 | return NULL; | |
37769 | } | |
37770 | ||
37771 | ||
37772 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
37773 | PyObject *obj; | |
37774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37775 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
37776 | Py_INCREF(obj); | |
37777 | return Py_BuildValue((char *)""); | |
37778 | } | |
37779 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37780 | PyObject *resultobj; | |
37781 | int arg1 = (int) 0 ; | |
37782 | int arg2 = (int) 0 ; | |
37783 | wxGridBagSizer *result; | |
994141e6 RD |
37784 | PyObject * obj0 = 0 ; |
37785 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
37786 | char *kwnames[] = { |
37787 | (char *) "vgap",(char *) "hgap", NULL | |
37788 | }; | |
37789 | ||
994141e6 RD |
37790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; |
37791 | if (obj0) { | |
15afbcd0 RD |
37792 | arg1 = (int) SWIG_AsInt(obj0); |
37793 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37794 | } |
37795 | if (obj1) { | |
15afbcd0 RD |
37796 | arg2 = (int) SWIG_AsInt(obj1); |
37797 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37798 | } |
d14a1e28 RD |
37799 | { |
37800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37801 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
37802 | ||
37803 | wxPyEndAllowThreads(__tstate); | |
37804 | if (PyErr_Occurred()) SWIG_fail; | |
37805 | } | |
15afbcd0 | 37806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); |
d14a1e28 RD |
37807 | return resultobj; |
37808 | fail: | |
37809 | return NULL; | |
37810 | } | |
37811 | ||
37812 | ||
37813 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37814 | PyObject *resultobj; | |
37815 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37816 | PyObject *arg2 = (PyObject *) 0 ; | |
37817 | wxGBPosition *arg3 = 0 ; | |
37818 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
37819 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
37820 | int arg5 = (int) 0 ; | |
37821 | int arg6 = (int) 0 ; | |
37822 | PyObject *arg7 = (PyObject *) NULL ; | |
37823 | bool result; | |
37824 | wxGBPosition temp3 ; | |
37825 | wxGBSpan temp4 ; | |
37826 | PyObject * obj0 = 0 ; | |
37827 | PyObject * obj1 = 0 ; | |
37828 | PyObject * obj2 = 0 ; | |
37829 | PyObject * obj3 = 0 ; | |
994141e6 RD |
37830 | PyObject * obj4 = 0 ; |
37831 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
37832 | PyObject * obj6 = 0 ; |
37833 | char *kwnames[] = { | |
37834 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37835 | }; | |
37836 | ||
994141e6 | 37837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
37838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37840 | arg2 = obj1; |
37841 | { | |
37842 | arg3 = &temp3; | |
37843 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37844 | } | |
37845 | if (obj3) { | |
37846 | { | |
37847 | arg4 = &temp4; | |
37848 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37849 | } | |
37850 | } | |
994141e6 | 37851 | if (obj4) { |
15afbcd0 RD |
37852 | arg5 = (int) SWIG_AsInt(obj4); |
37853 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
37854 | } |
37855 | if (obj5) { | |
15afbcd0 RD |
37856 | arg6 = (int) SWIG_AsInt(obj5); |
37857 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 37858 | } |
d14a1e28 RD |
37859 | if (obj6) { |
37860 | arg7 = obj6; | |
37861 | } | |
37862 | { | |
37863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37864 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37865 | ||
37866 | wxPyEndAllowThreads(__tstate); | |
37867 | if (PyErr_Occurred()) SWIG_fail; | |
37868 | } | |
4f89f6a3 RD |
37869 | { |
37870 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37871 | } | |
d14a1e28 RD |
37872 | return resultobj; |
37873 | fail: | |
37874 | return NULL; | |
37875 | } | |
37876 | ||
37877 | ||
37878 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37879 | PyObject *resultobj; | |
37880 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37881 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
37882 | bool result; | |
37883 | PyObject * obj0 = 0 ; | |
37884 | PyObject * obj1 = 0 ; | |
37885 | char *kwnames[] = { | |
37886 | (char *) "self",(char *) "item", NULL | |
37887 | }; | |
37888 | ||
37889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37894 | { |
37895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37896 | result = (bool)(arg1)->Add(arg2); | |
37897 | ||
37898 | wxPyEndAllowThreads(__tstate); | |
37899 | if (PyErr_Occurred()) SWIG_fail; | |
37900 | } | |
4f89f6a3 RD |
37901 | { |
37902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37903 | } | |
d14a1e28 RD |
37904 | return resultobj; |
37905 | fail: | |
37906 | return NULL; | |
37907 | } | |
37908 | ||
37909 | ||
37910 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37911 | PyObject *resultobj; | |
37912 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37913 | wxSize result; | |
37914 | PyObject * obj0 = 0 ; | |
37915 | char *kwnames[] = { | |
37916 | (char *) "self", NULL | |
37917 | }; | |
37918 | ||
37919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
37920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37922 | { |
37923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37924 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
37925 | ||
37926 | wxPyEndAllowThreads(__tstate); | |
37927 | if (PyErr_Occurred()) SWIG_fail; | |
37928 | } | |
37929 | { | |
37930 | wxSize * resultptr; | |
37931 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 37932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
37933 | } |
37934 | return resultobj; | |
37935 | fail: | |
37936 | return NULL; | |
37937 | } | |
37938 | ||
37939 | ||
37940 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37941 | PyObject *resultobj; | |
37942 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37943 | wxSize *arg2 = 0 ; | |
37944 | wxSize temp2 ; | |
37945 | PyObject * obj0 = 0 ; | |
37946 | PyObject * obj1 = 0 ; | |
37947 | char *kwnames[] = { | |
37948 | (char *) "self",(char *) "sz", NULL | |
37949 | }; | |
37950 | ||
37951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37954 | { |
37955 | arg2 = &temp2; | |
37956 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
37957 | } | |
37958 | { | |
37959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37960 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
37961 | ||
37962 | wxPyEndAllowThreads(__tstate); | |
37963 | if (PyErr_Occurred()) SWIG_fail; | |
37964 | } | |
37965 | Py_INCREF(Py_None); resultobj = Py_None; | |
37966 | return resultobj; | |
37967 | fail: | |
37968 | return NULL; | |
37969 | } | |
37970 | ||
37971 | ||
37972 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
37973 | PyObject *resultobj; | |
37974 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
37975 | wxWindow *arg2 = (wxWindow *) 0 ; | |
37976 | wxGBPosition result; | |
37977 | PyObject * obj0 = 0 ; | |
37978 | PyObject * obj1 = 0 ; | |
37979 | ||
37980 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
37981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
37982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37983 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
37984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
37985 | { |
37986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37987 | result = (arg1)->GetItemPosition(arg2); | |
37988 | ||
37989 | wxPyEndAllowThreads(__tstate); | |
37990 | if (PyErr_Occurred()) SWIG_fail; | |
37991 | } | |
37992 | { | |
37993 | wxGBPosition * resultptr; | |
37994 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 37995 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
37996 | } |
37997 | return resultobj; | |
37998 | fail: | |
37999 | return NULL; | |
38000 | } | |
38001 | ||
38002 | ||
38003 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38004 | PyObject *resultobj; | |
38005 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38006 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38007 | wxGBPosition result; | |
38008 | PyObject * obj0 = 0 ; | |
38009 | PyObject * obj1 = 0 ; | |
38010 | ||
38011 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38014 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38016 | { |
38017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38018 | result = (arg1)->GetItemPosition(arg2); | |
38019 | ||
38020 | wxPyEndAllowThreads(__tstate); | |
38021 | if (PyErr_Occurred()) SWIG_fail; | |
38022 | } | |
38023 | { | |
38024 | wxGBPosition * resultptr; | |
38025 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38026 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38027 | } |
38028 | return resultobj; | |
38029 | fail: | |
38030 | return NULL; | |
38031 | } | |
38032 | ||
38033 | ||
38034 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38035 | PyObject *resultobj; | |
38036 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38037 | size_t arg2 ; | |
38038 | wxGBPosition result; | |
38039 | PyObject * obj0 = 0 ; | |
38040 | PyObject * obj1 = 0 ; | |
38041 | ||
38042 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38045 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38046 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38047 | { |
38048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38049 | result = (arg1)->GetItemPosition(arg2); | |
38050 | ||
38051 | wxPyEndAllowThreads(__tstate); | |
38052 | if (PyErr_Occurred()) SWIG_fail; | |
38053 | } | |
38054 | { | |
38055 | wxGBPosition * resultptr; | |
38056 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
15afbcd0 | 38057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); |
d14a1e28 RD |
38058 | } |
38059 | return resultobj; | |
38060 | fail: | |
38061 | return NULL; | |
38062 | } | |
38063 | ||
38064 | ||
38065 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38066 | int argc; | |
38067 | PyObject *argv[3]; | |
38068 | int ii; | |
38069 | ||
38070 | argc = PyObject_Length(args); | |
38071 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38072 | argv[ii] = PyTuple_GetItem(args,ii); | |
38073 | } | |
38074 | if (argc == 2) { | |
38075 | int _v; | |
38076 | { | |
38077 | void *ptr; | |
15afbcd0 | 38078 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38079 | _v = 0; |
38080 | PyErr_Clear(); | |
38081 | } else { | |
38082 | _v = 1; | |
38083 | } | |
38084 | } | |
38085 | if (_v) { | |
38086 | { | |
38087 | void *ptr; | |
15afbcd0 | 38088 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38089 | _v = 0; |
38090 | PyErr_Clear(); | |
38091 | } else { | |
38092 | _v = 1; | |
38093 | } | |
38094 | } | |
38095 | if (_v) { | |
38096 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38097 | } | |
38098 | } | |
38099 | } | |
38100 | if (argc == 2) { | |
38101 | int _v; | |
38102 | { | |
38103 | void *ptr; | |
15afbcd0 | 38104 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38105 | _v = 0; |
38106 | PyErr_Clear(); | |
38107 | } else { | |
38108 | _v = 1; | |
38109 | } | |
38110 | } | |
38111 | if (_v) { | |
38112 | { | |
38113 | void *ptr; | |
15afbcd0 | 38114 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38115 | _v = 0; |
38116 | PyErr_Clear(); | |
38117 | } else { | |
38118 | _v = 1; | |
38119 | } | |
38120 | } | |
38121 | if (_v) { | |
38122 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38123 | } | |
38124 | } | |
38125 | } | |
38126 | if (argc == 2) { | |
38127 | int _v; | |
38128 | { | |
38129 | void *ptr; | |
15afbcd0 | 38130 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38131 | _v = 0; |
38132 | PyErr_Clear(); | |
38133 | } else { | |
38134 | _v = 1; | |
38135 | } | |
38136 | } | |
38137 | if (_v) { | |
15afbcd0 | 38138 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38139 | if (_v) { |
38140 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38141 | } | |
38142 | } | |
38143 | } | |
38144 | ||
38145 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38146 | return NULL; | |
38147 | } | |
38148 | ||
38149 | ||
38150 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38151 | PyObject *resultobj; | |
38152 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38154 | wxGBPosition *arg3 = 0 ; | |
38155 | bool result; | |
38156 | wxGBPosition temp3 ; | |
38157 | PyObject * obj0 = 0 ; | |
38158 | PyObject * obj1 = 0 ; | |
38159 | PyObject * obj2 = 0 ; | |
38160 | ||
38161 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38164 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38166 | { |
38167 | arg3 = &temp3; | |
38168 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38169 | } | |
38170 | { | |
38171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38172 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38173 | ||
38174 | wxPyEndAllowThreads(__tstate); | |
38175 | if (PyErr_Occurred()) SWIG_fail; | |
38176 | } | |
4f89f6a3 RD |
38177 | { |
38178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38179 | } | |
d14a1e28 RD |
38180 | return resultobj; |
38181 | fail: | |
38182 | return NULL; | |
38183 | } | |
38184 | ||
38185 | ||
38186 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38187 | PyObject *resultobj; | |
38188 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38189 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38190 | wxGBPosition *arg3 = 0 ; | |
38191 | bool result; | |
38192 | wxGBPosition temp3 ; | |
38193 | PyObject * obj0 = 0 ; | |
38194 | PyObject * obj1 = 0 ; | |
38195 | PyObject * obj2 = 0 ; | |
38196 | ||
38197 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38202 | { |
38203 | arg3 = &temp3; | |
38204 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38205 | } | |
38206 | { | |
38207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38208 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38209 | ||
38210 | wxPyEndAllowThreads(__tstate); | |
38211 | if (PyErr_Occurred()) SWIG_fail; | |
38212 | } | |
4f89f6a3 RD |
38213 | { |
38214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38215 | } | |
d14a1e28 RD |
38216 | return resultobj; |
38217 | fail: | |
38218 | return NULL; | |
38219 | } | |
38220 | ||
38221 | ||
38222 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38223 | PyObject *resultobj; | |
38224 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38225 | size_t arg2 ; | |
38226 | wxGBPosition *arg3 = 0 ; | |
38227 | bool result; | |
38228 | wxGBPosition temp3 ; | |
38229 | PyObject * obj0 = 0 ; | |
38230 | PyObject * obj1 = 0 ; | |
38231 | PyObject * obj2 = 0 ; | |
38232 | ||
38233 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38236 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38238 | { |
38239 | arg3 = &temp3; | |
38240 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38241 | } | |
38242 | { | |
38243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38244 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38245 | ||
38246 | wxPyEndAllowThreads(__tstate); | |
38247 | if (PyErr_Occurred()) SWIG_fail; | |
38248 | } | |
4f89f6a3 RD |
38249 | { |
38250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38251 | } | |
d14a1e28 RD |
38252 | return resultobj; |
38253 | fail: | |
38254 | return NULL; | |
38255 | } | |
38256 | ||
38257 | ||
38258 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38259 | int argc; | |
38260 | PyObject *argv[4]; | |
38261 | int ii; | |
38262 | ||
38263 | argc = PyObject_Length(args); | |
38264 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38265 | argv[ii] = PyTuple_GetItem(args,ii); | |
38266 | } | |
38267 | if (argc == 3) { | |
38268 | int _v; | |
38269 | { | |
38270 | void *ptr; | |
15afbcd0 | 38271 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38272 | _v = 0; |
38273 | PyErr_Clear(); | |
38274 | } else { | |
38275 | _v = 1; | |
38276 | } | |
38277 | } | |
38278 | if (_v) { | |
38279 | { | |
38280 | void *ptr; | |
15afbcd0 | 38281 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38282 | _v = 0; |
38283 | PyErr_Clear(); | |
38284 | } else { | |
38285 | _v = 1; | |
38286 | } | |
38287 | } | |
38288 | if (_v) { | |
38289 | { | |
38290 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38291 | } | |
38292 | if (_v) { | |
38293 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38294 | } | |
38295 | } | |
38296 | } | |
38297 | } | |
38298 | if (argc == 3) { | |
38299 | int _v; | |
38300 | { | |
38301 | void *ptr; | |
15afbcd0 | 38302 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38303 | _v = 0; |
38304 | PyErr_Clear(); | |
38305 | } else { | |
38306 | _v = 1; | |
38307 | } | |
38308 | } | |
38309 | if (_v) { | |
38310 | { | |
38311 | void *ptr; | |
15afbcd0 | 38312 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38313 | _v = 0; |
38314 | PyErr_Clear(); | |
38315 | } else { | |
38316 | _v = 1; | |
38317 | } | |
38318 | } | |
38319 | if (_v) { | |
38320 | { | |
38321 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38322 | } | |
38323 | if (_v) { | |
38324 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38325 | } | |
38326 | } | |
38327 | } | |
38328 | } | |
38329 | if (argc == 3) { | |
38330 | int _v; | |
38331 | { | |
38332 | void *ptr; | |
15afbcd0 | 38333 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38334 | _v = 0; |
38335 | PyErr_Clear(); | |
38336 | } else { | |
38337 | _v = 1; | |
38338 | } | |
38339 | } | |
38340 | if (_v) { | |
15afbcd0 | 38341 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38342 | if (_v) { |
38343 | { | |
38344 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38345 | } | |
38346 | if (_v) { | |
38347 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38348 | } | |
38349 | } | |
38350 | } | |
38351 | } | |
38352 | ||
38353 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38354 | return NULL; | |
38355 | } | |
38356 | ||
38357 | ||
38358 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38359 | PyObject *resultobj; | |
38360 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38361 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38362 | wxGBSpan result; | |
38363 | PyObject * obj0 = 0 ; | |
38364 | PyObject * obj1 = 0 ; | |
38365 | ||
38366 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38369 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38371 | { |
38372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38373 | result = (arg1)->GetItemSpan(arg2); | |
38374 | ||
38375 | wxPyEndAllowThreads(__tstate); | |
38376 | if (PyErr_Occurred()) SWIG_fail; | |
38377 | } | |
38378 | { | |
38379 | wxGBSpan * resultptr; | |
38380 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38382 | } |
38383 | return resultobj; | |
38384 | fail: | |
38385 | return NULL; | |
38386 | } | |
38387 | ||
38388 | ||
38389 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38390 | PyObject *resultobj; | |
38391 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38392 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38393 | wxGBSpan result; | |
38394 | PyObject * obj0 = 0 ; | |
38395 | PyObject * obj1 = 0 ; | |
38396 | ||
38397 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38400 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38402 | { |
38403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38404 | result = (arg1)->GetItemSpan(arg2); | |
38405 | ||
38406 | wxPyEndAllowThreads(__tstate); | |
38407 | if (PyErr_Occurred()) SWIG_fail; | |
38408 | } | |
38409 | { | |
38410 | wxGBSpan * resultptr; | |
38411 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38413 | } |
38414 | return resultobj; | |
38415 | fail: | |
38416 | return NULL; | |
38417 | } | |
38418 | ||
38419 | ||
38420 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38421 | PyObject *resultobj; | |
38422 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38423 | size_t arg2 ; | |
38424 | wxGBSpan result; | |
38425 | PyObject * obj0 = 0 ; | |
38426 | PyObject * obj1 = 0 ; | |
38427 | ||
38428 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38431 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38432 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38433 | { |
38434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38435 | result = (arg1)->GetItemSpan(arg2); | |
38436 | ||
38437 | wxPyEndAllowThreads(__tstate); | |
38438 | if (PyErr_Occurred()) SWIG_fail; | |
38439 | } | |
38440 | { | |
38441 | wxGBSpan * resultptr; | |
38442 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
15afbcd0 | 38443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); |
d14a1e28 RD |
38444 | } |
38445 | return resultobj; | |
38446 | fail: | |
38447 | return NULL; | |
38448 | } | |
38449 | ||
38450 | ||
38451 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38452 | int argc; | |
38453 | PyObject *argv[3]; | |
38454 | int ii; | |
38455 | ||
38456 | argc = PyObject_Length(args); | |
38457 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38458 | argv[ii] = PyTuple_GetItem(args,ii); | |
38459 | } | |
38460 | if (argc == 2) { | |
38461 | int _v; | |
38462 | { | |
38463 | void *ptr; | |
15afbcd0 | 38464 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38465 | _v = 0; |
38466 | PyErr_Clear(); | |
38467 | } else { | |
38468 | _v = 1; | |
38469 | } | |
38470 | } | |
38471 | if (_v) { | |
38472 | { | |
38473 | void *ptr; | |
15afbcd0 | 38474 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38475 | _v = 0; |
38476 | PyErr_Clear(); | |
38477 | } else { | |
38478 | _v = 1; | |
38479 | } | |
38480 | } | |
38481 | if (_v) { | |
38482 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38483 | } | |
38484 | } | |
38485 | } | |
38486 | if (argc == 2) { | |
38487 | int _v; | |
38488 | { | |
38489 | void *ptr; | |
15afbcd0 | 38490 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38491 | _v = 0; |
38492 | PyErr_Clear(); | |
38493 | } else { | |
38494 | _v = 1; | |
38495 | } | |
38496 | } | |
38497 | if (_v) { | |
38498 | { | |
38499 | void *ptr; | |
15afbcd0 | 38500 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38501 | _v = 0; |
38502 | PyErr_Clear(); | |
38503 | } else { | |
38504 | _v = 1; | |
38505 | } | |
38506 | } | |
38507 | if (_v) { | |
38508 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38509 | } | |
38510 | } | |
38511 | } | |
38512 | if (argc == 2) { | |
38513 | int _v; | |
38514 | { | |
38515 | void *ptr; | |
15afbcd0 | 38516 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38517 | _v = 0; |
38518 | PyErr_Clear(); | |
38519 | } else { | |
38520 | _v = 1; | |
38521 | } | |
38522 | } | |
38523 | if (_v) { | |
15afbcd0 | 38524 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38525 | if (_v) { |
38526 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38527 | } | |
38528 | } | |
38529 | } | |
38530 | ||
38531 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38532 | return NULL; | |
38533 | } | |
38534 | ||
38535 | ||
38536 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38537 | PyObject *resultobj; | |
38538 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38539 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38540 | wxGBSpan *arg3 = 0 ; | |
38541 | bool result; | |
38542 | wxGBSpan temp3 ; | |
38543 | PyObject * obj0 = 0 ; | |
38544 | PyObject * obj1 = 0 ; | |
38545 | PyObject * obj2 = 0 ; | |
38546 | ||
38547 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38550 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38552 | { |
38553 | arg3 = &temp3; | |
38554 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38555 | } | |
38556 | { | |
38557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38558 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38559 | ||
38560 | wxPyEndAllowThreads(__tstate); | |
38561 | if (PyErr_Occurred()) SWIG_fail; | |
38562 | } | |
4f89f6a3 RD |
38563 | { |
38564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38565 | } | |
d14a1e28 RD |
38566 | return resultobj; |
38567 | fail: | |
38568 | return NULL; | |
38569 | } | |
38570 | ||
38571 | ||
38572 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38573 | PyObject *resultobj; | |
38574 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38575 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38576 | wxGBSpan *arg3 = 0 ; | |
38577 | bool result; | |
38578 | wxGBSpan temp3 ; | |
38579 | PyObject * obj0 = 0 ; | |
38580 | PyObject * obj1 = 0 ; | |
38581 | PyObject * obj2 = 0 ; | |
38582 | ||
38583 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38586 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38588 | { |
38589 | arg3 = &temp3; | |
38590 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38591 | } | |
38592 | { | |
38593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38594 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38595 | ||
38596 | wxPyEndAllowThreads(__tstate); | |
38597 | if (PyErr_Occurred()) SWIG_fail; | |
38598 | } | |
4f89f6a3 RD |
38599 | { |
38600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38601 | } | |
d14a1e28 RD |
38602 | return resultobj; |
38603 | fail: | |
38604 | return NULL; | |
38605 | } | |
38606 | ||
38607 | ||
38608 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38609 | PyObject *resultobj; | |
38610 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38611 | size_t arg2 ; | |
38612 | wxGBSpan *arg3 = 0 ; | |
38613 | bool result; | |
38614 | wxGBSpan temp3 ; | |
38615 | PyObject * obj0 = 0 ; | |
38616 | PyObject * obj1 = 0 ; | |
38617 | PyObject * obj2 = 0 ; | |
38618 | ||
38619 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
38620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38622 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38623 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
38624 | { |
38625 | arg3 = &temp3; | |
38626 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38627 | } | |
38628 | { | |
38629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38630 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38631 | ||
38632 | wxPyEndAllowThreads(__tstate); | |
38633 | if (PyErr_Occurred()) SWIG_fail; | |
38634 | } | |
4f89f6a3 RD |
38635 | { |
38636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38637 | } | |
d14a1e28 RD |
38638 | return resultobj; |
38639 | fail: | |
38640 | return NULL; | |
38641 | } | |
38642 | ||
38643 | ||
38644 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
38645 | int argc; | |
38646 | PyObject *argv[4]; | |
38647 | int ii; | |
38648 | ||
38649 | argc = PyObject_Length(args); | |
38650 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38651 | argv[ii] = PyTuple_GetItem(args,ii); | |
38652 | } | |
38653 | if (argc == 3) { | |
38654 | int _v; | |
38655 | { | |
38656 | void *ptr; | |
15afbcd0 | 38657 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38658 | _v = 0; |
38659 | PyErr_Clear(); | |
38660 | } else { | |
38661 | _v = 1; | |
38662 | } | |
38663 | } | |
38664 | if (_v) { | |
38665 | { | |
38666 | void *ptr; | |
15afbcd0 | 38667 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38668 | _v = 0; |
38669 | PyErr_Clear(); | |
38670 | } else { | |
38671 | _v = 1; | |
38672 | } | |
38673 | } | |
38674 | if (_v) { | |
38675 | { | |
38676 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38677 | } | |
38678 | if (_v) { | |
38679 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
38680 | } | |
38681 | } | |
38682 | } | |
38683 | } | |
38684 | if (argc == 3) { | |
38685 | int _v; | |
38686 | { | |
38687 | void *ptr; | |
15afbcd0 | 38688 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38689 | _v = 0; |
38690 | PyErr_Clear(); | |
38691 | } else { | |
38692 | _v = 1; | |
38693 | } | |
38694 | } | |
38695 | if (_v) { | |
38696 | { | |
38697 | void *ptr; | |
15afbcd0 | 38698 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38699 | _v = 0; |
38700 | PyErr_Clear(); | |
38701 | } else { | |
38702 | _v = 1; | |
38703 | } | |
38704 | } | |
38705 | if (_v) { | |
38706 | { | |
38707 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38708 | } | |
38709 | if (_v) { | |
38710 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
38711 | } | |
38712 | } | |
38713 | } | |
38714 | } | |
38715 | if (argc == 3) { | |
38716 | int _v; | |
38717 | { | |
38718 | void *ptr; | |
15afbcd0 | 38719 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38720 | _v = 0; |
38721 | PyErr_Clear(); | |
38722 | } else { | |
38723 | _v = 1; | |
38724 | } | |
38725 | } | |
38726 | if (_v) { | |
15afbcd0 | 38727 | _v = SWIG_CheckUnsignedLong(argv[1]); |
d14a1e28 RD |
38728 | if (_v) { |
38729 | { | |
38730 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38731 | } | |
38732 | if (_v) { | |
38733 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
38734 | } | |
38735 | } | |
38736 | } | |
38737 | } | |
38738 | ||
38739 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
38740 | return NULL; | |
38741 | } | |
38742 | ||
38743 | ||
38744 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
38745 | PyObject *resultobj; | |
38746 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38747 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38748 | wxGBSizerItem *result; | |
38749 | PyObject * obj0 = 0 ; | |
38750 | PyObject * obj1 = 0 ; | |
38751 | ||
38752 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38755 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38757 | { |
38758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38759 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38760 | ||
38761 | wxPyEndAllowThreads(__tstate); | |
38762 | if (PyErr_Occurred()) SWIG_fail; | |
38763 | } | |
15afbcd0 | 38764 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38765 | return resultobj; |
38766 | fail: | |
38767 | return NULL; | |
38768 | } | |
38769 | ||
38770 | ||
38771 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
38772 | PyObject *resultobj; | |
38773 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38774 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38775 | wxGBSizerItem *result; | |
38776 | PyObject * obj0 = 0 ; | |
38777 | PyObject * obj1 = 0 ; | |
38778 | ||
38779 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38784 | { |
38785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38786 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
38787 | ||
38788 | wxPyEndAllowThreads(__tstate); | |
38789 | if (PyErr_Occurred()) SWIG_fail; | |
38790 | } | |
15afbcd0 | 38791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38792 | return resultobj; |
38793 | fail: | |
38794 | return NULL; | |
38795 | } | |
38796 | ||
38797 | ||
38798 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
38799 | int argc; | |
38800 | PyObject *argv[3]; | |
38801 | int ii; | |
38802 | ||
38803 | argc = PyObject_Length(args); | |
38804 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38805 | argv[ii] = PyTuple_GetItem(args,ii); | |
38806 | } | |
38807 | if (argc == 2) { | |
38808 | int _v; | |
38809 | { | |
38810 | void *ptr; | |
15afbcd0 | 38811 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38812 | _v = 0; |
38813 | PyErr_Clear(); | |
38814 | } else { | |
38815 | _v = 1; | |
38816 | } | |
38817 | } | |
38818 | if (_v) { | |
38819 | { | |
38820 | void *ptr; | |
15afbcd0 | 38821 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { |
d14a1e28 RD |
38822 | _v = 0; |
38823 | PyErr_Clear(); | |
38824 | } else { | |
38825 | _v = 1; | |
38826 | } | |
38827 | } | |
38828 | if (_v) { | |
38829 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
38830 | } | |
38831 | } | |
38832 | } | |
38833 | if (argc == 2) { | |
38834 | int _v; | |
38835 | { | |
38836 | void *ptr; | |
15afbcd0 | 38837 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
38838 | _v = 0; |
38839 | PyErr_Clear(); | |
38840 | } else { | |
38841 | _v = 1; | |
38842 | } | |
38843 | } | |
38844 | if (_v) { | |
38845 | { | |
38846 | void *ptr; | |
15afbcd0 | 38847 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { |
d14a1e28 RD |
38848 | _v = 0; |
38849 | PyErr_Clear(); | |
38850 | } else { | |
38851 | _v = 1; | |
38852 | } | |
38853 | } | |
38854 | if (_v) { | |
38855 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
38856 | } | |
38857 | } | |
38858 | } | |
38859 | ||
38860 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
38861 | return NULL; | |
38862 | } | |
38863 | ||
38864 | ||
38865 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38866 | PyObject *resultobj; | |
38867 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38868 | wxGBPosition *arg2 = 0 ; | |
38869 | wxGBSizerItem *result; | |
38870 | wxGBPosition temp2 ; | |
38871 | PyObject * obj0 = 0 ; | |
38872 | PyObject * obj1 = 0 ; | |
38873 | char *kwnames[] = { | |
38874 | (char *) "self",(char *) "pos", NULL | |
38875 | }; | |
38876 | ||
38877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38880 | { |
38881 | arg2 = &temp2; | |
38882 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38883 | } | |
38884 | { | |
38885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38886 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
38887 | ||
38888 | wxPyEndAllowThreads(__tstate); | |
38889 | if (PyErr_Occurred()) SWIG_fail; | |
38890 | } | |
15afbcd0 | 38891 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38892 | return resultobj; |
38893 | fail: | |
38894 | return NULL; | |
38895 | } | |
38896 | ||
38897 | ||
e811c8ce RD |
38898 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
38899 | PyObject *resultobj; | |
38900 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38901 | wxPoint *arg2 = 0 ; | |
38902 | wxGBSizerItem *result; | |
38903 | wxPoint temp2 ; | |
38904 | PyObject * obj0 = 0 ; | |
38905 | PyObject * obj1 = 0 ; | |
38906 | char *kwnames[] = { | |
38907 | (char *) "self",(char *) "pt", NULL | |
38908 | }; | |
38909 | ||
38910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
38913 | { |
38914 | arg2 = &temp2; | |
38915 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38916 | } | |
38917 | { | |
38918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38919 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
38920 | ||
38921 | wxPyEndAllowThreads(__tstate); | |
38922 | if (PyErr_Occurred()) SWIG_fail; | |
38923 | } | |
15afbcd0 | 38924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
e811c8ce RD |
38925 | return resultobj; |
38926 | fail: | |
38927 | return NULL; | |
38928 | } | |
38929 | ||
38930 | ||
d14a1e28 RD |
38931 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { |
38932 | PyObject *resultobj; | |
38933 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38934 | wxObject *arg2 = (wxObject *) 0 ; | |
38935 | wxGBSizerItem *result; | |
38936 | PyObject * obj0 = 0 ; | |
38937 | PyObject * obj1 = 0 ; | |
38938 | char *kwnames[] = { | |
38939 | (char *) "self",(char *) "userData", NULL | |
38940 | }; | |
38941 | ||
38942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
38943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38945 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
38946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38947 | { |
38948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38949 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
38950 | ||
38951 | wxPyEndAllowThreads(__tstate); | |
38952 | if (PyErr_Occurred()) SWIG_fail; | |
38953 | } | |
15afbcd0 | 38954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d14a1e28 RD |
38955 | return resultobj; |
38956 | fail: | |
38957 | return NULL; | |
38958 | } | |
38959 | ||
38960 | ||
38961 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38962 | PyObject *resultobj; | |
38963 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38964 | PyObject * obj0 = 0 ; | |
38965 | char *kwnames[] = { | |
38966 | (char *) "self", NULL | |
38967 | }; | |
38968 | ||
38969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) 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 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38974 | (arg1)->RecalcSizes(); | |
38975 | ||
38976 | wxPyEndAllowThreads(__tstate); | |
38977 | if (PyErr_Occurred()) SWIG_fail; | |
38978 | } | |
38979 | Py_INCREF(Py_None); resultobj = Py_None; | |
38980 | return resultobj; | |
38981 | fail: | |
38982 | return NULL; | |
38983 | } | |
38984 | ||
38985 | ||
38986 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38987 | PyObject *resultobj; | |
38988 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38989 | wxSize result; | |
38990 | PyObject * obj0 = 0 ; | |
38991 | char *kwnames[] = { | |
38992 | (char *) "self", NULL | |
38993 | }; | |
38994 | ||
38995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
38996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
38997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
38998 | { |
38999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39000 | result = (arg1)->CalcMin(); | |
39001 | ||
39002 | wxPyEndAllowThreads(__tstate); | |
39003 | if (PyErr_Occurred()) SWIG_fail; | |
39004 | } | |
39005 | { | |
39006 | wxSize * resultptr; | |
39007 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 39008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
39009 | } |
39010 | return resultobj; | |
39011 | fail: | |
39012 | return NULL; | |
39013 | } | |
39014 | ||
39015 | ||
39016 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
39017 | PyObject *resultobj; | |
39018 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39019 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39020 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39021 | bool result; | |
39022 | PyObject * obj0 = 0 ; | |
39023 | PyObject * obj1 = 0 ; | |
39024 | PyObject * obj2 = 0 ; | |
39025 | ||
39026 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 39031 | if (obj2) { |
15afbcd0 RD |
39032 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, |
39033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39034 | } |
39035 | { | |
39036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39037 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39038 | ||
39039 | wxPyEndAllowThreads(__tstate); | |
39040 | if (PyErr_Occurred()) SWIG_fail; | |
39041 | } | |
4f89f6a3 RD |
39042 | { |
39043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39044 | } | |
d14a1e28 RD |
39045 | return resultobj; |
39046 | fail: | |
39047 | return NULL; | |
39048 | } | |
39049 | ||
39050 | ||
39051 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
39052 | PyObject *resultobj; | |
39053 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39054 | wxGBPosition *arg2 = 0 ; | |
39055 | wxGBSpan *arg3 = 0 ; | |
39056 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39057 | bool result; | |
39058 | wxGBPosition temp2 ; | |
39059 | wxGBSpan temp3 ; | |
39060 | PyObject * obj0 = 0 ; | |
39061 | PyObject * obj1 = 0 ; | |
39062 | PyObject * obj2 = 0 ; | |
39063 | PyObject * obj3 = 0 ; | |
39064 | ||
39065 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
39066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39068 | { |
39069 | arg2 = &temp2; | |
39070 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39071 | } | |
39072 | { | |
39073 | arg3 = &temp3; | |
39074 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39075 | } | |
39076 | if (obj3) { | |
15afbcd0 RD |
39077 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, |
39078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39079 | } |
39080 | { | |
39081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39082 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39083 | ||
39084 | wxPyEndAllowThreads(__tstate); | |
39085 | if (PyErr_Occurred()) SWIG_fail; | |
39086 | } | |
4f89f6a3 RD |
39087 | { |
39088 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39089 | } | |
d14a1e28 RD |
39090 | return resultobj; |
39091 | fail: | |
39092 | return NULL; | |
39093 | } | |
39094 | ||
39095 | ||
39096 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
39097 | int argc; | |
39098 | PyObject *argv[5]; | |
39099 | int ii; | |
39100 | ||
39101 | argc = PyObject_Length(args); | |
39102 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
39103 | argv[ii] = PyTuple_GetItem(args,ii); | |
39104 | } | |
39105 | if ((argc >= 2) && (argc <= 3)) { | |
39106 | int _v; | |
39107 | { | |
39108 | void *ptr; | |
15afbcd0 | 39109 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39110 | _v = 0; |
39111 | PyErr_Clear(); | |
39112 | } else { | |
39113 | _v = 1; | |
39114 | } | |
39115 | } | |
39116 | if (_v) { | |
39117 | { | |
39118 | void *ptr; | |
15afbcd0 | 39119 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
39120 | _v = 0; |
39121 | PyErr_Clear(); | |
39122 | } else { | |
39123 | _v = 1; | |
39124 | } | |
39125 | } | |
39126 | if (_v) { | |
39127 | if (argc <= 2) { | |
39128 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39129 | } | |
39130 | { | |
39131 | void *ptr; | |
15afbcd0 | 39132 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
39133 | _v = 0; |
39134 | PyErr_Clear(); | |
39135 | } else { | |
39136 | _v = 1; | |
39137 | } | |
39138 | } | |
39139 | if (_v) { | |
39140 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39141 | } | |
39142 | } | |
39143 | } | |
39144 | } | |
39145 | if ((argc >= 3) && (argc <= 4)) { | |
39146 | int _v; | |
39147 | { | |
39148 | void *ptr; | |
15afbcd0 | 39149 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { |
d14a1e28 RD |
39150 | _v = 0; |
39151 | PyErr_Clear(); | |
39152 | } else { | |
39153 | _v = 1; | |
39154 | } | |
39155 | } | |
39156 | if (_v) { | |
39157 | { | |
39158 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
39159 | } | |
39160 | if (_v) { | |
39161 | { | |
39162 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39163 | } | |
39164 | if (_v) { | |
39165 | if (argc <= 3) { | |
39166 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39167 | } | |
39168 | { | |
39169 | void *ptr; | |
15afbcd0 | 39170 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { |
d14a1e28 RD |
39171 | _v = 0; |
39172 | PyErr_Clear(); | |
39173 | } else { | |
39174 | _v = 1; | |
39175 | } | |
39176 | } | |
39177 | if (_v) { | |
39178 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39179 | } | |
39180 | } | |
39181 | } | |
39182 | } | |
39183 | } | |
39184 | ||
39185 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
39186 | return NULL; | |
39187 | } | |
39188 | ||
39189 | ||
39190 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
39191 | PyObject *obj; | |
39192 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39193 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39194 | Py_INCREF(obj); | |
39195 | return Py_BuildValue((char *)""); | |
39196 | } | |
39197 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39198 | PyObject *resultobj; | |
39199 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39200 | int arg2 ; | |
39201 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39202 | int arg4 ; | |
39203 | int arg5 = (int) 0 ; | |
39204 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39205 | PyObject * obj0 = 0 ; | |
994141e6 | 39206 | PyObject * obj1 = 0 ; |
d14a1e28 | 39207 | PyObject * obj2 = 0 ; |
994141e6 RD |
39208 | PyObject * obj3 = 0 ; |
39209 | PyObject * obj4 = 0 ; | |
39210 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
39211 | char *kwnames[] = { |
39212 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39213 | }; | |
39214 | ||
994141e6 | 39215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
39216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39218 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39219 | if (PyErr_Occurred()) SWIG_fail; | |
39220 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39222 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39223 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39224 | if (obj4) { |
15afbcd0 RD |
39225 | arg5 = (int) SWIG_AsInt(obj4); |
39226 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
39227 | } |
39228 | if (obj5) { | |
15afbcd0 RD |
39229 | arg6 = (int) SWIG_AsInt(obj5); |
39230 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39231 | } |
d14a1e28 RD |
39232 | { |
39233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39234 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39235 | ||
39236 | wxPyEndAllowThreads(__tstate); | |
39237 | if (PyErr_Occurred()) SWIG_fail; | |
39238 | } | |
39239 | Py_INCREF(Py_None); resultobj = Py_None; | |
39240 | return resultobj; | |
39241 | fail: | |
39242 | return NULL; | |
39243 | } | |
39244 | ||
39245 | ||
39246 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39247 | PyObject *resultobj; | |
39248 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39249 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39250 | int arg3 = (int) 0 ; | |
39251 | PyObject * obj0 = 0 ; | |
39252 | PyObject * obj1 = 0 ; | |
994141e6 | 39253 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39254 | char *kwnames[] = { |
39255 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39256 | }; | |
39257 | ||
994141e6 | 39258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39263 | if (obj2) { |
15afbcd0 RD |
39264 | arg3 = (int) SWIG_AsInt(obj2); |
39265 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39266 | } |
d14a1e28 RD |
39267 | { |
39268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39269 | (arg1)->LeftOf(arg2,arg3); | |
39270 | ||
39271 | wxPyEndAllowThreads(__tstate); | |
39272 | if (PyErr_Occurred()) SWIG_fail; | |
39273 | } | |
39274 | Py_INCREF(Py_None); resultobj = Py_None; | |
39275 | return resultobj; | |
39276 | fail: | |
39277 | return NULL; | |
39278 | } | |
39279 | ||
39280 | ||
39281 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39282 | PyObject *resultobj; | |
39283 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39284 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39285 | int arg3 = (int) 0 ; | |
39286 | PyObject * obj0 = 0 ; | |
39287 | PyObject * obj1 = 0 ; | |
994141e6 | 39288 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39289 | char *kwnames[] = { |
39290 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39291 | }; | |
39292 | ||
994141e6 | 39293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39296 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39298 | if (obj2) { |
15afbcd0 RD |
39299 | arg3 = (int) SWIG_AsInt(obj2); |
39300 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39301 | } |
d14a1e28 RD |
39302 | { |
39303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39304 | (arg1)->RightOf(arg2,arg3); | |
39305 | ||
39306 | wxPyEndAllowThreads(__tstate); | |
39307 | if (PyErr_Occurred()) SWIG_fail; | |
39308 | } | |
39309 | Py_INCREF(Py_None); resultobj = Py_None; | |
39310 | return resultobj; | |
39311 | fail: | |
39312 | return NULL; | |
39313 | } | |
39314 | ||
39315 | ||
39316 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39317 | PyObject *resultobj; | |
39318 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39319 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39320 | int arg3 = (int) 0 ; | |
39321 | PyObject * obj0 = 0 ; | |
39322 | PyObject * obj1 = 0 ; | |
994141e6 | 39323 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39324 | char *kwnames[] = { |
39325 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39326 | }; | |
39327 | ||
994141e6 | 39328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39333 | if (obj2) { |
15afbcd0 RD |
39334 | arg3 = (int) SWIG_AsInt(obj2); |
39335 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39336 | } |
d14a1e28 RD |
39337 | { |
39338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39339 | (arg1)->Above(arg2,arg3); | |
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_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39352 | PyObject *resultobj; | |
39353 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39355 | int arg3 = (int) 0 ; | |
39356 | PyObject * obj0 = 0 ; | |
39357 | PyObject * obj1 = 0 ; | |
994141e6 | 39358 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
39359 | char *kwnames[] = { |
39360 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39361 | }; | |
39362 | ||
994141e6 | 39363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
39364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 39368 | if (obj2) { |
15afbcd0 RD |
39369 | arg3 = (int) SWIG_AsInt(obj2); |
39370 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39371 | } |
d14a1e28 RD |
39372 | { |
39373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39374 | (arg1)->Below(arg2,arg3); | |
39375 | ||
39376 | wxPyEndAllowThreads(__tstate); | |
39377 | if (PyErr_Occurred()) SWIG_fail; | |
39378 | } | |
39379 | Py_INCREF(Py_None); resultobj = Py_None; | |
39380 | return resultobj; | |
39381 | fail: | |
39382 | return NULL; | |
39383 | } | |
39384 | ||
39385 | ||
39386 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39387 | PyObject *resultobj; | |
39388 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39390 | int arg3 ; | |
39391 | int arg4 = (int) 0 ; | |
39392 | PyObject * obj0 = 0 ; | |
39393 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39394 | PyObject * obj2 = 0 ; |
39395 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39396 | char *kwnames[] = { |
39397 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39398 | }; | |
39399 | ||
994141e6 | 39400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39405 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39406 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39407 | if (obj3) { |
15afbcd0 RD |
39408 | arg4 = (int) SWIG_AsInt(obj3); |
39409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 39410 | } |
d14a1e28 RD |
39411 | { |
39412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39413 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39414 | ||
39415 | wxPyEndAllowThreads(__tstate); | |
39416 | if (PyErr_Occurred()) SWIG_fail; | |
39417 | } | |
39418 | Py_INCREF(Py_None); resultobj = Py_None; | |
39419 | return resultobj; | |
39420 | fail: | |
39421 | return NULL; | |
39422 | } | |
39423 | ||
39424 | ||
39425 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39426 | PyObject *resultobj; | |
39427 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39428 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39429 | int arg3 ; | |
39430 | int arg4 ; | |
39431 | PyObject * obj0 = 0 ; | |
39432 | PyObject * obj1 = 0 ; | |
994141e6 RD |
39433 | PyObject * obj2 = 0 ; |
39434 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
39435 | char *kwnames[] = { |
39436 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39437 | }; | |
39438 | ||
994141e6 | 39439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39444 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39445 | if (PyErr_Occurred()) SWIG_fail; | |
39446 | arg4 = (int) SWIG_AsInt(obj3); | |
39447 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39448 | { |
39449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39450 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39451 | ||
39452 | wxPyEndAllowThreads(__tstate); | |
39453 | if (PyErr_Occurred()) SWIG_fail; | |
39454 | } | |
39455 | Py_INCREF(Py_None); resultobj = Py_None; | |
39456 | return resultobj; | |
39457 | fail: | |
39458 | return NULL; | |
39459 | } | |
39460 | ||
39461 | ||
39462 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39463 | PyObject *resultobj; | |
39464 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39465 | int arg2 ; | |
39466 | PyObject * obj0 = 0 ; | |
994141e6 | 39467 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39468 | char *kwnames[] = { |
39469 | (char *) "self",(char *) "val", NULL | |
39470 | }; | |
39471 | ||
994141e6 | 39472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39475 | arg2 = (int) SWIG_AsInt(obj1); | |
39476 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39477 | { |
39478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39479 | (arg1)->Absolute(arg2); | |
39480 | ||
39481 | wxPyEndAllowThreads(__tstate); | |
39482 | if (PyErr_Occurred()) SWIG_fail; | |
39483 | } | |
39484 | Py_INCREF(Py_None); resultobj = Py_None; | |
39485 | return resultobj; | |
39486 | fail: | |
39487 | return NULL; | |
39488 | } | |
39489 | ||
39490 | ||
39491 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39492 | PyObject *resultobj; | |
39493 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39494 | PyObject * obj0 = 0 ; | |
39495 | char *kwnames[] = { | |
39496 | (char *) "self", NULL | |
39497 | }; | |
39498 | ||
39499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39502 | { |
39503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39504 | (arg1)->Unconstrained(); | |
39505 | ||
39506 | wxPyEndAllowThreads(__tstate); | |
39507 | if (PyErr_Occurred()) SWIG_fail; | |
39508 | } | |
39509 | Py_INCREF(Py_None); resultobj = Py_None; | |
39510 | return resultobj; | |
39511 | fail: | |
39512 | return NULL; | |
39513 | } | |
39514 | ||
39515 | ||
39516 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39517 | PyObject *resultobj; | |
39518 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39519 | PyObject * obj0 = 0 ; | |
39520 | char *kwnames[] = { | |
39521 | (char *) "self", NULL | |
39522 | }; | |
39523 | ||
39524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39527 | { |
39528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39529 | (arg1)->AsIs(); | |
39530 | ||
39531 | wxPyEndAllowThreads(__tstate); | |
39532 | if (PyErr_Occurred()) SWIG_fail; | |
39533 | } | |
39534 | Py_INCREF(Py_None); resultobj = Py_None; | |
39535 | return resultobj; | |
39536 | fail: | |
39537 | return NULL; | |
39538 | } | |
39539 | ||
39540 | ||
39541 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39542 | PyObject *resultobj; | |
39543 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39544 | wxWindow *result; | |
39545 | PyObject * obj0 = 0 ; | |
39546 | char *kwnames[] = { | |
39547 | (char *) "self", NULL | |
39548 | }; | |
39549 | ||
39550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39553 | { |
39554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39555 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39556 | ||
39557 | wxPyEndAllowThreads(__tstate); | |
39558 | if (PyErr_Occurred()) SWIG_fail; | |
39559 | } | |
39560 | { | |
39561 | resultobj = wxPyMake_wxObject(result); | |
39562 | } | |
39563 | return resultobj; | |
39564 | fail: | |
39565 | return NULL; | |
39566 | } | |
39567 | ||
39568 | ||
39569 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39570 | PyObject *resultobj; | |
39571 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39572 | int result; | |
39573 | PyObject * obj0 = 0 ; | |
39574 | char *kwnames[] = { | |
39575 | (char *) "self", NULL | |
39576 | }; | |
39577 | ||
39578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39581 | { |
39582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39583 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39584 | ||
39585 | wxPyEndAllowThreads(__tstate); | |
39586 | if (PyErr_Occurred()) SWIG_fail; | |
39587 | } | |
15afbcd0 | 39588 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39589 | return resultobj; |
39590 | fail: | |
39591 | return NULL; | |
39592 | } | |
39593 | ||
39594 | ||
39595 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39596 | PyObject *resultobj; | |
39597 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39598 | int arg2 ; | |
39599 | PyObject * obj0 = 0 ; | |
994141e6 | 39600 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39601 | char *kwnames[] = { |
39602 | (char *) "self",(char *) "which", NULL | |
39603 | }; | |
39604 | ||
994141e6 | 39605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39608 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39609 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39610 | { |
39611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39612 | (arg1)->SetEdge((wxEdge )arg2); | |
39613 | ||
39614 | wxPyEndAllowThreads(__tstate); | |
39615 | if (PyErr_Occurred()) SWIG_fail; | |
39616 | } | |
39617 | Py_INCREF(Py_None); resultobj = Py_None; | |
39618 | return resultobj; | |
39619 | fail: | |
39620 | return NULL; | |
39621 | } | |
39622 | ||
39623 | ||
39624 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39625 | PyObject *resultobj; | |
39626 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39627 | int arg2 ; | |
39628 | PyObject * obj0 = 0 ; | |
994141e6 | 39629 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39630 | char *kwnames[] = { |
39631 | (char *) "self",(char *) "v", NULL | |
39632 | }; | |
39633 | ||
994141e6 | 39634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",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 = (int) SWIG_AsInt(obj1); | |
39638 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39639 | { |
39640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39641 | (arg1)->SetValue(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_GetMargin(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_GetMargin",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)->GetMargin(); | |
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_SetMargin(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 *) "m", NULL | |
39687 | }; | |
39688 | ||
994141e6 | 39689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",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 = (int) SWIG_AsInt(obj1); | |
39693 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39694 | { |
39695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39696 | (arg1)->SetMargin(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_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39709 | PyObject *resultobj; | |
39710 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39711 | int result; | |
39712 | PyObject * obj0 = 0 ; | |
39713 | char *kwnames[] = { | |
39714 | (char *) "self", NULL | |
39715 | }; | |
39716 | ||
39717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39720 | { |
39721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39722 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
39723 | ||
39724 | wxPyEndAllowThreads(__tstate); | |
39725 | if (PyErr_Occurred()) SWIG_fail; | |
39726 | } | |
15afbcd0 | 39727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39728 | return resultobj; |
39729 | fail: | |
39730 | return NULL; | |
39731 | } | |
39732 | ||
39733 | ||
39734 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39735 | PyObject *resultobj; | |
39736 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39737 | int result; | |
39738 | PyObject * obj0 = 0 ; | |
39739 | char *kwnames[] = { | |
39740 | (char *) "self", NULL | |
39741 | }; | |
39742 | ||
39743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39746 | { |
39747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39748 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
39749 | ||
39750 | wxPyEndAllowThreads(__tstate); | |
39751 | if (PyErr_Occurred()) SWIG_fail; | |
39752 | } | |
15afbcd0 | 39753 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39754 | return resultobj; |
39755 | fail: | |
39756 | return NULL; | |
39757 | } | |
39758 | ||
39759 | ||
39760 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39761 | PyObject *resultobj; | |
39762 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39763 | int result; | |
39764 | PyObject * obj0 = 0 ; | |
39765 | char *kwnames[] = { | |
39766 | (char *) "self", NULL | |
39767 | }; | |
39768 | ||
39769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39772 | { |
39773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39774 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
39775 | ||
39776 | wxPyEndAllowThreads(__tstate); | |
39777 | if (PyErr_Occurred()) SWIG_fail; | |
39778 | } | |
15afbcd0 | 39779 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39780 | return resultobj; |
39781 | fail: | |
39782 | return NULL; | |
39783 | } | |
39784 | ||
39785 | ||
39786 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39787 | PyObject *resultobj; | |
39788 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39789 | bool result; | |
39790 | PyObject * obj0 = 0 ; | |
39791 | char *kwnames[] = { | |
39792 | (char *) "self", NULL | |
39793 | }; | |
39794 | ||
39795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39798 | { |
39799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39800 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
39801 | ||
39802 | wxPyEndAllowThreads(__tstate); | |
39803 | if (PyErr_Occurred()) SWIG_fail; | |
39804 | } | |
4f89f6a3 RD |
39805 | { |
39806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39807 | } | |
d14a1e28 RD |
39808 | return resultobj; |
39809 | fail: | |
39810 | return NULL; | |
39811 | } | |
39812 | ||
39813 | ||
39814 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39815 | PyObject *resultobj; | |
39816 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39817 | bool arg2 ; | |
39818 | PyObject * obj0 = 0 ; | |
39819 | PyObject * obj1 = 0 ; | |
39820 | char *kwnames[] = { | |
39821 | (char *) "self",(char *) "d", NULL | |
39822 | }; | |
39823 | ||
39824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39827 | arg2 = (bool) SWIG_AsBool(obj1); | |
39828 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39829 | { |
39830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39831 | (arg1)->SetDone(arg2); | |
39832 | ||
39833 | wxPyEndAllowThreads(__tstate); | |
39834 | if (PyErr_Occurred()) SWIG_fail; | |
39835 | } | |
39836 | Py_INCREF(Py_None); resultobj = Py_None; | |
39837 | return resultobj; | |
39838 | fail: | |
39839 | return NULL; | |
39840 | } | |
39841 | ||
39842 | ||
39843 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39844 | PyObject *resultobj; | |
39845 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39846 | int result; | |
39847 | PyObject * obj0 = 0 ; | |
39848 | char *kwnames[] = { | |
39849 | (char *) "self", NULL | |
39850 | }; | |
39851 | ||
39852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
39853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39855 | { |
39856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39857 | result = (int)(arg1)->GetRelationship(); | |
39858 | ||
39859 | wxPyEndAllowThreads(__tstate); | |
39860 | if (PyErr_Occurred()) SWIG_fail; | |
39861 | } | |
15afbcd0 | 39862 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39863 | return resultobj; |
39864 | fail: | |
39865 | return NULL; | |
39866 | } | |
39867 | ||
39868 | ||
39869 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39870 | PyObject *resultobj; | |
39871 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39872 | int arg2 ; | |
39873 | PyObject * obj0 = 0 ; | |
994141e6 | 39874 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39875 | char *kwnames[] = { |
39876 | (char *) "self",(char *) "r", NULL | |
39877 | }; | |
39878 | ||
994141e6 | 39879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
39880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39882 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
39884 | { |
39885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39886 | (arg1)->SetRelationship((wxRelationship )arg2); | |
39887 | ||
39888 | wxPyEndAllowThreads(__tstate); | |
39889 | if (PyErr_Occurred()) SWIG_fail; | |
39890 | } | |
39891 | Py_INCREF(Py_None); resultobj = Py_None; | |
39892 | return resultobj; | |
39893 | fail: | |
39894 | return NULL; | |
39895 | } | |
39896 | ||
39897 | ||
39898 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39899 | PyObject *resultobj; | |
39900 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39901 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39902 | bool result; | |
39903 | PyObject * obj0 = 0 ; | |
39904 | PyObject * obj1 = 0 ; | |
39905 | char *kwnames[] = { | |
39906 | (char *) "self",(char *) "otherW", NULL | |
39907 | }; | |
39908 | ||
39909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
39910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39914 | { |
39915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39916 | result = (bool)(arg1)->ResetIfWin(arg2); | |
39917 | ||
39918 | wxPyEndAllowThreads(__tstate); | |
39919 | if (PyErr_Occurred()) SWIG_fail; | |
39920 | } | |
4f89f6a3 RD |
39921 | { |
39922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39923 | } | |
d14a1e28 RD |
39924 | return resultobj; |
39925 | fail: | |
39926 | return NULL; | |
39927 | } | |
39928 | ||
39929 | ||
39930 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39931 | PyObject *resultobj; | |
39932 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39933 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
39934 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39935 | bool result; | |
39936 | PyObject * obj0 = 0 ; | |
39937 | PyObject * obj1 = 0 ; | |
39938 | PyObject * obj2 = 0 ; | |
39939 | char *kwnames[] = { | |
39940 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
39941 | }; | |
39942 | ||
39943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
39944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
39947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39948 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39950 | { |
39951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39952 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
39953 | ||
39954 | wxPyEndAllowThreads(__tstate); | |
39955 | if (PyErr_Occurred()) SWIG_fail; | |
39956 | } | |
4f89f6a3 RD |
39957 | { |
39958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39959 | } | |
d14a1e28 RD |
39960 | return resultobj; |
39961 | fail: | |
39962 | return NULL; | |
39963 | } | |
39964 | ||
39965 | ||
39966 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39967 | PyObject *resultobj; | |
39968 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39969 | int arg2 ; | |
39970 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39971 | wxWindow *arg4 = (wxWindow *) 0 ; | |
39972 | int result; | |
39973 | PyObject * obj0 = 0 ; | |
994141e6 | 39974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
39975 | PyObject * obj2 = 0 ; |
39976 | PyObject * obj3 = 0 ; | |
39977 | char *kwnames[] = { | |
39978 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
39979 | }; | |
39980 | ||
994141e6 | 39981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
39982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, |
39983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39984 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
39985 | if (PyErr_Occurred()) SWIG_fail; | |
39986 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39988 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
39989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
39990 | { |
39991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39992 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
39993 | ||
39994 | wxPyEndAllowThreads(__tstate); | |
39995 | if (PyErr_Occurred()) SWIG_fail; | |
39996 | } | |
15afbcd0 | 39997 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
39998 | return resultobj; |
39999 | fail: | |
40000 | return NULL; | |
40001 | } | |
40002 | ||
40003 | ||
40004 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
40005 | PyObject *obj; | |
40006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40007 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40008 | Py_INCREF(obj); | |
40009 | return Py_BuildValue((char *)""); | |
40010 | } | |
40011 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40012 | PyObject *resultobj; | |
40013 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40014 | wxIndividualLayoutConstraint *result; | |
40015 | PyObject * obj0 = 0 ; | |
40016 | char *kwnames[] = { | |
40017 | (char *) "self", NULL | |
40018 | }; | |
40019 | ||
40020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40023 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); |
40024 | ||
15afbcd0 | 40025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40026 | return resultobj; |
40027 | fail: | |
40028 | return NULL; | |
40029 | } | |
40030 | ||
40031 | ||
40032 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40033 | PyObject *resultobj; | |
40034 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40035 | wxIndividualLayoutConstraint *result; | |
40036 | PyObject * obj0 = 0 ; | |
40037 | char *kwnames[] = { | |
40038 | (char *) "self", NULL | |
40039 | }; | |
40040 | ||
40041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40044 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); |
40045 | ||
15afbcd0 | 40046 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40047 | return resultobj; |
40048 | fail: | |
40049 | return NULL; | |
40050 | } | |
40051 | ||
40052 | ||
40053 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40054 | PyObject *resultobj; | |
40055 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40056 | wxIndividualLayoutConstraint *result; | |
40057 | PyObject * obj0 = 0 ; | |
40058 | char *kwnames[] = { | |
40059 | (char *) "self", NULL | |
40060 | }; | |
40061 | ||
40062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40065 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); |
40066 | ||
15afbcd0 | 40067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40068 | return resultobj; |
40069 | fail: | |
40070 | return NULL; | |
40071 | } | |
40072 | ||
40073 | ||
40074 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40075 | PyObject *resultobj; | |
40076 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40077 | wxIndividualLayoutConstraint *result; | |
40078 | PyObject * obj0 = 0 ; | |
40079 | char *kwnames[] = { | |
40080 | (char *) "self", NULL | |
40081 | }; | |
40082 | ||
40083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40086 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); |
40087 | ||
15afbcd0 | 40088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40089 | return resultobj; |
40090 | fail: | |
40091 | return NULL; | |
40092 | } | |
40093 | ||
40094 | ||
40095 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40096 | PyObject *resultobj; | |
40097 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40098 | wxIndividualLayoutConstraint *result; | |
40099 | PyObject * obj0 = 0 ; | |
40100 | char *kwnames[] = { | |
40101 | (char *) "self", NULL | |
40102 | }; | |
40103 | ||
40104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40107 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); |
40108 | ||
15afbcd0 | 40109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40110 | return resultobj; |
40111 | fail: | |
40112 | return NULL; | |
40113 | } | |
40114 | ||
40115 | ||
40116 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40117 | PyObject *resultobj; | |
40118 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40119 | wxIndividualLayoutConstraint *result; | |
40120 | PyObject * obj0 = 0 ; | |
40121 | char *kwnames[] = { | |
40122 | (char *) "self", NULL | |
40123 | }; | |
40124 | ||
40125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40128 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); |
40129 | ||
15afbcd0 | 40130 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40131 | return resultobj; |
40132 | fail: | |
40133 | return NULL; | |
40134 | } | |
40135 | ||
40136 | ||
40137 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40138 | PyObject *resultobj; | |
40139 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40140 | wxIndividualLayoutConstraint *result; | |
40141 | PyObject * obj0 = 0 ; | |
40142 | char *kwnames[] = { | |
40143 | (char *) "self", NULL | |
40144 | }; | |
40145 | ||
40146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40149 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); |
40150 | ||
15afbcd0 | 40151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40152 | return resultobj; |
40153 | fail: | |
40154 | return NULL; | |
40155 | } | |
40156 | ||
40157 | ||
40158 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40159 | PyObject *resultobj; | |
40160 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40161 | wxIndividualLayoutConstraint *result; | |
40162 | PyObject * obj0 = 0 ; | |
40163 | char *kwnames[] = { | |
40164 | (char *) "self", NULL | |
40165 | }; | |
40166 | ||
40167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40170 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); |
40171 | ||
15afbcd0 | 40172 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); |
d14a1e28 RD |
40173 | return resultobj; |
40174 | fail: | |
40175 | return NULL; | |
40176 | } | |
40177 | ||
40178 | ||
40179 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40180 | PyObject *resultobj; | |
40181 | wxLayoutConstraints *result; | |
40182 | char *kwnames[] = { | |
40183 | NULL | |
40184 | }; | |
40185 | ||
40186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40187 | { | |
40188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40189 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40190 | ||
40191 | wxPyEndAllowThreads(__tstate); | |
40192 | if (PyErr_Occurred()) SWIG_fail; | |
40193 | } | |
15afbcd0 | 40194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); |
d14a1e28 RD |
40195 | return resultobj; |
40196 | fail: | |
40197 | return NULL; | |
40198 | } | |
40199 | ||
40200 | ||
40201 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40202 | PyObject *resultobj; | |
40203 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40205 | int *arg3 = (int *) 0 ; | |
40206 | bool result; | |
40207 | int temp3 ; | |
40208 | PyObject * obj0 = 0 ; | |
40209 | PyObject * obj1 = 0 ; | |
40210 | char *kwnames[] = { | |
40211 | (char *) "self",(char *) "win", NULL | |
40212 | }; | |
40213 | ||
40214 | arg3 = &temp3; | |
40215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
40216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40220 | { |
40221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40222 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40223 | ||
40224 | wxPyEndAllowThreads(__tstate); | |
40225 | if (PyErr_Occurred()) SWIG_fail; | |
40226 | } | |
4f89f6a3 RD |
40227 | { |
40228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40229 | } | |
d14a1e28 RD |
40230 | { |
40231 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40232 | resultobj = t_output_helper(resultobj,o); | |
40233 | } | |
40234 | return resultobj; | |
40235 | fail: | |
40236 | return NULL; | |
40237 | } | |
40238 | ||
40239 | ||
40240 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40241 | PyObject *resultobj; | |
40242 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40243 | bool result; | |
40244 | PyObject * obj0 = 0 ; | |
40245 | char *kwnames[] = { | |
40246 | (char *) "self", NULL | |
40247 | }; | |
40248 | ||
40249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
40250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, |
40251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
40252 | { |
40253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40254 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40255 | ||
40256 | wxPyEndAllowThreads(__tstate); | |
40257 | if (PyErr_Occurred()) SWIG_fail; | |
40258 | } | |
4f89f6a3 RD |
40259 | { |
40260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40261 | } | |
d14a1e28 RD |
40262 | return resultobj; |
40263 | fail: | |
40264 | return NULL; | |
40265 | } | |
40266 | ||
40267 | ||
40268 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40269 | PyObject *obj; | |
40270 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40271 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40272 | Py_INCREF(obj); | |
40273 | return Py_BuildValue((char *)""); | |
40274 | } | |
40275 | static PyMethodDef SwigMethods[] = { | |
40276 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
3a04f143 | 40277 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, |
d14a1e28 RD |
40278 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, |
40279 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40280 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40281 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40282 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40283 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40284 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40285 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40286 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40287 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40288 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40289 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40290 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40291 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40292 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40293 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40294 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40295 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40296 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40297 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40298 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, |
40299 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40300 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40301 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, |
40302 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40303 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40304 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40305 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40306 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40307 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40308 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, |
40309 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
40310 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, |
40311 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40312 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 40313 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40314 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, |
40315 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40316 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40317 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40318 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40319 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40320 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40321 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40322 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40323 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40324 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40325 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40326 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40327 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40328 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40329 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, |
40330 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40331 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40332 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40333 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40334 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40335 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40336 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40337 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40338 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40339 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40340 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40341 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40342 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40343 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40344 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40345 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a RD |
40346 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, |
40347 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40348 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40349 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40350 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, |
40351 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40352 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40353 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40354 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40355 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40356 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40357 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40358 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40359 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40360 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40361 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40362 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40363 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40364 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40365 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40366 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40367 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40368 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40369 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40370 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40371 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40372 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40373 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40374 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40375 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40376 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40377 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40378 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40379 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40380 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, |
40381 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40382 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40383 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40384 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40385 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40386 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40387 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40388 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40389 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40390 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40391 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40392 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40393 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40394 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40395 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40396 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40397 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40398 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40399 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40400 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40401 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40402 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, |
40403 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40404 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40405 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40406 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 40407 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40408 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, |
40409 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40410 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40411 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40412 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40413 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40414 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40415 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40416 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40417 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40418 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40419 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40420 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40421 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40422 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40423 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40424 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40425 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40426 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40427 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40428 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40429 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40430 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40431 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40432 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40433 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40434 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40435 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40436 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40437 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40438 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40439 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40440 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40441 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40442 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40443 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40444 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40445 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40446 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40447 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40448 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40449 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40450 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40451 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40452 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40453 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40454 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40455 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40456 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40457 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40458 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40459 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40460 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40461 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40462 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40463 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40464 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40465 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40466 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40467 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40468 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40469 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40470 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40471 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40472 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40473 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40474 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40475 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40476 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40477 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40478 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40479 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40480 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40481 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40482 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40483 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40484 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40485 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40486 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40487 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40488 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40489 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40490 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40491 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40492 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40493 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40494 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40495 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40496 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40497 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40498 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40499 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40500 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 40501 | { (char *)"new_EmptyImage", _wrap_new_EmptyImage, METH_VARARGS }, |
d14a1e28 RD |
40502 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40503 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40504 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40505 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40506 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40507 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40508 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40509 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40510 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40511 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40512 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40513 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40514 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40515 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40516 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40517 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40518 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40519 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40520 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40521 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40522 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40523 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40524 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40525 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40526 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40527 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40528 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40529 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 40530 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40531 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, |
40532 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40533 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40534 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40535 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40536 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40537 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40538 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40539 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40540 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40541 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40542 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40543 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40544 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40545 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40546 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40547 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40548 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40549 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40550 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40551 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40552 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40553 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40554 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40555 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40556 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40557 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40558 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40559 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40560 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40561 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40562 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40563 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40564 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40565 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40566 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40567 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40568 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40569 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40570 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40571 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40572 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40573 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40574 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40575 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40576 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40577 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40578 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40579 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40580 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40581 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40582 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40583 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40584 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40585 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40586 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40587 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40588 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40589 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40590 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40591 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40592 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40593 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40594 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40595 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40596 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40597 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40598 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40599 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40600 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40601 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40602 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40603 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40604 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
40605 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
40606 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40607 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
40608 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40609 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
40610 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40611 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
40612 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40613 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
40614 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40615 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
40616 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
40617 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
40618 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
40619 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
40620 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40621 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
40622 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40623 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
40624 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
40625 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40626 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
40627 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
40628 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40629 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
40630 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
40631 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
40632 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
40633 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
40634 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40635 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
40636 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
40637 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
40638 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
40639 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
40640 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40641 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40642 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
40643 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
40644 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
40645 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
40646 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40647 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40648 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40649 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40650 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
40651 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
40652 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40653 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40654 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
40655 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40656 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
40657 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40658 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
40659 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
40660 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
40661 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
40662 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
40663 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40664 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
40665 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40666 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40667 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40668 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40669 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
40670 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
40671 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
40672 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
40673 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
40676 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40697 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40710 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
40719 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
40725 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
40726 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
40758 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
40761 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
40771 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40776 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
40781 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
40783 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
40785 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
40788 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
40792 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
40795 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
40798 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
40800 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
40804 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
40805 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
40813 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
40817 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
40820 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
40822 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
40824 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
40826 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
40832 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40833 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
40843 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
40845 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
40848 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
40850 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
40854 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40856 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
40858 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
40861 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
40866 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
40867 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
40869 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
40872 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
40876 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
40877 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
40883 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40887 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
40888 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40891 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
40893 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40896 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40897 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
40898 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40913 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, |
40914 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 40922 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
6c3b4aae | 40923 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
40924 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, |
40925 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
40937 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
1e0c8722 RD |
40945 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, |
40946 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
40954 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
40958 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
40959 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, |
40960 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
40962 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
40965 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
40967 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
40968 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, |
40969 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
40971 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40973 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
40975 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
40977 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40978 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
40979 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 RD |
40981 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, |
40982 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
40983 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, |
40984 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
40985 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40992 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
40993 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
40994 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
40995 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
40998 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
40999 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
41016 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, |
41017 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
d14a1e28 RD |
41018 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, |
41019 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
41020 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 41023 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41024 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
41025 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41035 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41037 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, |
41038 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41040 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41044 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
41045 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
41046 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41052 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41053 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd RD |
41068 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, |
41069 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41072 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
41073 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
41079 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
41080 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 41098 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
74a57fcd RD |
41099 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
41100 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 | 41101 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
b2df227b | 41102 | { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 41103 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
b2df227b | 41104 | { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41105 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
41106 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
b2df227b | 41110 | { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41111 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, |
41112 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41114 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
41116 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41118 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
41121 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
41123 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 41124 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, |
d14a1e28 RD |
41125 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
41126 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41133 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
41134 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
41135 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
41136 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
41137 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
41138 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41145 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41148 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41149 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41156 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41158 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 RD |
41160 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, |
41161 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41162 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, |
41163 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
41166 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
41176 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
41177 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
41178 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41179 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
41180 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41183 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41187 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41190 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41193 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41195 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41198 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41200 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41201 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41207 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41208 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41209 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41210 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41211 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41212 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41213 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41215 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41217 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41219 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41221 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41222 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41223 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41225 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41227 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41229 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41230 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41231 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41232 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41233 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41235 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41236 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41238 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41240 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41241 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41242 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41243 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41245 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41246 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41248 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41249 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41250 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41251 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41252 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41253 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41254 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41255 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41261 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41262 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41263 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41264 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41267 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41270 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41271 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41272 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
a95a7133 | 41273 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41274 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
41275 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41276 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41277 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41278 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41279 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41280 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41281 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41282 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41283 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41286 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41287 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41288 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41290 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41291 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41292 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 41298 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41299 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, |
41300 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41301 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41302 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41305 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41309 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41313 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41317 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41318 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41319 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41320 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41321 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41322 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41323 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41324 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41325 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41326 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41327 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41328 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
41329 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41330 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41331 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41332 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41333 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41334 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41335 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41336 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41337 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41338 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41339 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41340 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41341 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41342 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41343 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41344 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41345 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41346 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41347 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41348 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41349 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41350 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41351 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41352 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41353 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41354 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41355 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41356 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41357 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41358 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41359 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41360 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41361 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41362 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41363 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41364 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41365 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41366 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41367 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41368 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41369 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41370 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41371 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41372 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41373 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41374 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41375 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41376 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41377 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
41378 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41379 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41380 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41381 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41382 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41383 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41384 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41385 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41386 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41387 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41388 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41389 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41390 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
41391 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41392 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
41393 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41394 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41395 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
41396 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41397 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41398 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41399 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
41400 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41401 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41402 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41403 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41404 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41405 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41406 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41407 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41408 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41409 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41410 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41411 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41412 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41413 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41414 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41415 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41416 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41417 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41418 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41419 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, |
41420 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41421 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, |
41422 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41423 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41424 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41425 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41426 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41427 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41428 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41429 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, |
41430 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41431 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, |
41432 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41433 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41434 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41435 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41436 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41437 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41438 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
41439 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, |
41440 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
41441 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, |
41442 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41443 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41444 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41445 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41446 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41447 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41448 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41449 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41450 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
41451 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
41452 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41453 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41454 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41455 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41456 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41457 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41458 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41459 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41460 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41461 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41462 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41463 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41464 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41465 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce | 41466 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
41467 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, |
41468 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41469 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41470 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
41471 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
41472 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41473 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41474 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41475 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41476 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41477 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41478 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41479 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41480 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41481 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41482 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41483 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41484 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41485 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41486 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41487 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41488 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41489 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41490 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41491 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41492 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41493 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41494 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41495 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41496 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41497 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41498 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41499 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41500 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41501 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41502 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41503 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41504 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41505 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41506 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41507 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41508 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41509 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41510 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41511 | { NULL, NULL } | |
41512 | }; | |
41513 | ||
41514 | ||
41515 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41516 | ||
41517 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41518 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41519 | } | |
41520 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41521 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41522 | } | |
41523 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41524 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41525 | } | |
41526 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41527 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41528 | } | |
41529 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41530 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41531 | } | |
41532 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41533 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41534 | } | |
41535 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41536 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41537 | } | |
41538 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41539 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41540 | } | |
41541 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41542 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41543 | } | |
41544 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41545 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41546 | } | |
41547 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41548 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41549 | } | |
41550 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41551 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41552 | } | |
41553 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41554 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41555 | } | |
41556 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41557 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41558 | } | |
41559 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41560 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41561 | } | |
41562 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41563 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41564 | } | |
41565 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41566 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41567 | } | |
41568 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41569 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41570 | } | |
41571 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41572 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41573 | } | |
41574 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41575 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41576 | } | |
41577 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41578 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41579 | } | |
41580 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41581 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41582 | } | |
41583 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41584 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41585 | } | |
41586 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41587 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41588 | } | |
41589 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41590 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41591 | } | |
41592 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41593 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41594 | } | |
41595 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41596 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41597 | } | |
41598 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41599 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41600 | } | |
41601 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41602 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41603 | } | |
41604 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41605 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41606 | } | |
41607 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41608 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41609 | } | |
41610 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41611 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41612 | } | |
41613 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41614 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41615 | } | |
41616 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41617 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41618 | } | |
41619 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41620 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41621 | } | |
41622 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41623 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41624 | } | |
41625 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41626 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41627 | } | |
41628 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41629 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41630 | } | |
41631 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41632 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41633 | } | |
41634 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41635 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41636 | } | |
41637 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41638 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41639 | } | |
41640 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41641 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41642 | } | |
41643 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41644 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41645 | } | |
41646 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41647 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41648 | } | |
41649 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
41650 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41651 | } | |
41652 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
41653 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41654 | } | |
41655 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
41656 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
41657 | } | |
41658 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
41659 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
41660 | } | |
41661 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
41662 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
41663 | } | |
41664 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
41665 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
41666 | } | |
41667 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
41668 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41669 | } | |
41670 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
41671 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
41672 | } | |
41673 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
41674 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
41675 | } | |
41676 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
41677 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
41678 | } | |
41679 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
41680 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
41681 | } | |
41682 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
41683 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
41684 | } | |
41685 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
41686 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
41687 | } | |
41688 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
41689 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
41690 | } | |
41691 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
41692 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
41693 | } | |
41694 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
41695 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
41696 | } | |
41697 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
41698 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
41699 | } | |
41700 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
41701 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41702 | } | |
41703 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
41704 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
41705 | } | |
41706 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
41707 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
41708 | } | |
41709 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
41710 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41711 | } | |
41712 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
41713 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41714 | } | |
41715 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
41716 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
41717 | } | |
41718 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
41719 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
41720 | } | |
41721 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
41722 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
41723 | } | |
41724 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
41725 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
41726 | } | |
41727 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
41728 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
41729 | } | |
41730 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
41731 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
41732 | } | |
41733 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
41734 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
41735 | } | |
41736 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
41737 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
41738 | } | |
41739 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41740 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
41741 | } | |
41742 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41743 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
41744 | } | |
41745 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
41746 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
41747 | } | |
41748 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
41749 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
41750 | } | |
41751 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
41752 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
41753 | } | |
41754 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
41755 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41756 | } | |
41757 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
41758 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
41759 | } | |
41760 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
41761 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
41762 | } | |
41763 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
41764 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
41765 | } | |
41766 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
41767 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
41768 | } | |
41769 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
41770 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
41771 | } | |
41772 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
41773 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
41774 | } | |
41775 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
41776 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
41777 | } | |
41778 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
41779 | return (void *)((wxObject *) ((wxSizer *) x)); | |
41780 | } | |
41781 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
41782 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
41783 | } | |
41784 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
41785 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41786 | } | |
41787 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
41788 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
41789 | } | |
41790 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
41791 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
41792 | } | |
41793 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
41794 | return (void *)((wxObject *) ((wxImage *) x)); | |
41795 | } | |
41796 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
41797 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
41798 | } | |
41799 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
41800 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41801 | } | |
41802 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
41803 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
41804 | } | |
41805 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
41806 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
41807 | } | |
41808 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
41809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
41810 | } | |
1e0c8722 RD |
41811 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
41812 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
41813 | } | |
d14a1e28 RD |
41814 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { |
41815 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
41816 | } | |
41817 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
41818 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41819 | } | |
41820 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
41821 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
41822 | } | |
41823 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
41824 | return (void *)((wxObject *) ((wxEvent *) x)); | |
41825 | } | |
41826 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
41827 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
41828 | } | |
41829 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
41830 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
41831 | } | |
41832 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
41833 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
41834 | } | |
41835 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
41836 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
41837 | } | |
41838 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
41839 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
41840 | } | |
41841 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
41842 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41843 | } | |
41844 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
41845 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41846 | } | |
41847 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
41848 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
41849 | } | |
41850 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
41851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
41852 | } | |
41853 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
41854 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
41855 | } | |
41856 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
41857 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
41858 | } | |
41859 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
41860 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
41861 | } | |
41862 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
41863 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
41864 | } | |
41865 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
41866 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
41867 | } | |
41868 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
41869 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
41870 | } | |
41871 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
41872 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
41873 | } | |
41874 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
41875 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
41876 | } | |
41877 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
41878 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
41879 | } | |
41880 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
41881 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
41882 | } | |
41883 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
41884 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
41885 | } | |
41886 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
41887 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
41888 | } | |
41889 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
41890 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
41891 | } | |
41892 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
41893 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
41894 | } | |
41895 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
41896 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
41897 | } | |
41898 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
41899 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41900 | } | |
41901 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
41902 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41903 | } | |
41904 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
41905 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41906 | } | |
41907 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
41908 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41909 | } | |
41910 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
41911 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41912 | } | |
41913 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
41914 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
41915 | } | |
41916 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
41917 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
41918 | } | |
41919 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
41920 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41921 | } | |
41922 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
41923 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
41924 | } | |
41925 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
41926 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
41927 | } | |
41928 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
41929 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
41930 | } | |
41931 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
41932 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
41933 | } | |
41934 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
41935 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
41936 | } | |
41937 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
41938 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
41939 | } | |
41940 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
41941 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
41942 | } | |
41943 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
41944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41945 | } | |
41946 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
41947 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
41948 | } | |
41949 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
41950 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41951 | } | |
41952 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
41953 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41954 | } | |
41955 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
41956 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41957 | } | |
41958 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
41959 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
41960 | } | |
41961 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
41962 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
41963 | } | |
41964 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
41965 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
41966 | } | |
41967 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
41968 | return (void *)((wxWindow *) ((wxControl *) x)); | |
41969 | } | |
41970 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
41971 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
41972 | } | |
41973 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
41974 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
41975 | } | |
41976 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
41977 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41978 | } | |
41979 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
41980 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
41981 | } | |
41982 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
41983 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41984 | } | |
41985 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
41986 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41987 | } | |
41988 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
41989 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41990 | } | |
41991 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
41992 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41993 | } | |
41994 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
41995 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41996 | } | |
41997 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
41998 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41999 | } | |
42000 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42001 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42002 | } | |
15afbcd0 RD |
42003 | 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}}; |
42004 | 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}}; | |
42005 | 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}}; | |
42006 | 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}}; | |
42007 | 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}}; | |
42008 | 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}}; | |
42009 | 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}}; | |
42010 | 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}}; | |
42011 | 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}}; | |
42012 | 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}}; | |
42013 | 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}}; | |
42014 | 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}}; | |
42015 | 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}}; | |
42016 | 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}}; | |
42017 | 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}}; | |
42018 | 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}}; | |
42019 | 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}}; | |
42020 | 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}}; | |
42021 | 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}}; | |
42022 | 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}}; | |
42023 | 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}}; | |
42024 | 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}}; | |
42025 | 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}}; | |
42026 | 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}}; | |
42027 | 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}}; | |
42028 | 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}}; | |
42029 | 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}}; | |
42030 | 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}}; | |
42031 | 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}}; | |
42032 | 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}}; | |
42033 | 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}}; | |
42034 | 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}}; | |
42035 | 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}}; | |
42036 | 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}}; | |
42037 | 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}}; | |
42038 | 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 | 42039 | 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 |
42040 | 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}}; |
42041 | 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}}; | |
42042 | 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}}; | |
42043 | 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}}; | |
42044 | 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}}; | |
42045 | 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}}; | |
42046 | 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}}; | |
42047 | 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}}; | |
42048 | 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}}; | |
42049 | 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}}; | |
42050 | 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}}; | |
42051 | 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}}; | |
42052 | 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}}; | |
42053 | 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}}; | |
42054 | 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}}; | |
42055 | 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}}; | |
42056 | 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}}; | |
42057 | 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}}; | |
42058 | 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}}; | |
42059 | 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}}; | |
42060 | 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}}; | |
42061 | 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}}; | |
42062 | 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}}; | |
42063 | 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}}; | |
42064 | 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}}; | |
42065 | 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}}; | |
42066 | 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}}; | |
42067 | 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}}; | |
42068 | 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}}; | |
42069 | 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}}; | |
42070 | 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}}; | |
42071 | 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}}; | |
42072 | 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}}; | |
42073 | 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}}; | |
42074 | 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}}; | |
42075 | 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}}; | |
42076 | 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}}; | |
42077 | 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}}; | |
42078 | 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}}; | |
42079 | 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}}; | |
42080 | 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}}; | |
42081 | 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}}; | |
42082 | 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}}; | |
42083 | 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}}; | |
42084 | 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}}; | |
42085 | 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}}; | |
42086 | 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}}; | |
42087 | 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}}; | |
42088 | 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}}; | |
42089 | 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}}; | |
42090 | 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}}; | |
42091 | 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}}; | |
42092 | 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}}; | |
42093 | 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}}; | |
42094 | 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}}; | |
42095 | 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}}; | |
42096 | 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}}; | |
42097 | 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}}; | |
42098 | 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}}; | |
42099 | 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}}; | |
42100 | 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}}; | |
42101 | 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}}; | |
42102 | 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}}; | |
42103 | 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}}; | |
42104 | 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}}; | |
42105 | 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}}; | |
42106 | 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}}; | |
42107 | 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}}; | |
42108 | 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}}; | |
42109 | 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}}; | |
42110 | 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}}; | |
42111 | 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}}; | |
42112 | 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}}; | |
42113 | 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}}; | |
42114 | 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}}; | |
42115 | 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}}; | |
42116 | 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}}; | |
42117 | 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 |
42118 | |
42119 | static swig_type_info *swig_types_initial[] = { | |
42120 | _swigt__p_wxLayoutConstraints, | |
42121 | _swigt__p_wxRealPoint, | |
42122 | _swigt__p_wxSizerItem, | |
42123 | _swigt__p_wxGBSizerItem, | |
42124 | _swigt__p_wxScrollEvent, | |
42125 | _swigt__p_wxIndividualLayoutConstraint, | |
42126 | _swigt__p_wxSizer, | |
42127 | _swigt__p_wxBoxSizer, | |
42128 | _swigt__p_wxStaticBoxSizer, | |
42129 | _swigt__p_wxGridBagSizer, | |
42130 | _swigt__p_wxAcceleratorEntry, | |
42131 | _swigt__p_wxUpdateUIEvent, | |
42132 | _swigt__p_wxMenu, | |
42133 | _swigt__p_wxEvent, | |
42134 | _swigt__p_wxGridSizer, | |
42135 | _swigt__p_wxFlexGridSizer, | |
42136 | _swigt__p_wxInitDialogEvent, | |
42137 | _swigt__p_wxItemContainer, | |
42138 | _swigt__p_wxNcPaintEvent, | |
42139 | _swigt__p_wxPaintEvent, | |
42140 | _swigt__p_wxSysColourChangedEvent, | |
42141 | _swigt__p_wxMouseCaptureChangedEvent, | |
42142 | _swigt__p_wxDisplayChangedEvent, | |
42143 | _swigt__p_wxPaletteChangedEvent, | |
42144 | _swigt__p_wxControl, | |
42145 | _swigt__p_wxFont, | |
42146 | _swigt__p_wxMenuBarBase, | |
42147 | _swigt__p_wxSetCursorEvent, | |
42148 | _swigt__p_wxFSFile, | |
42149 | _swigt__p_wxCaret, | |
42150 | _swigt__p_wxRegion, | |
42151 | _swigt__p_wxPoint2D, | |
42152 | _swigt__p_int, | |
42153 | _swigt__p_wxSize, | |
42154 | _swigt__p_wxDC, | |
42155 | _swigt__p_wxPySizer, | |
74a57fcd | 42156 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
42157 | _swigt__p_wxNotifyEvent, |
42158 | _swigt__p_wxPyEvent, | |
42159 | _swigt__p_wxPropagationDisabler, | |
42160 | _swigt__p_wxAppTraits, | |
42161 | _swigt__p_wxArrayString, | |
42162 | _swigt__p_wxShowEvent, | |
42163 | _swigt__p_wxToolTip, | |
4d5c3d91 | 42164 | _swigt__p_wxMaximizeEvent, |
d14a1e28 RD |
42165 | _swigt__p_wxIconizeEvent, |
42166 | _swigt__p_wxActivateEvent, | |
42167 | _swigt__p_wxMoveEvent, | |
42168 | _swigt__p_wxSizeEvent, | |
42169 | _swigt__p_wxQueryNewPaletteEvent, | |
42170 | _swigt__p_wxWindowCreateEvent, | |
42171 | _swigt__p_wxIdleEvent, | |
42172 | _swigt__p_wxMenuItem, | |
42173 | _swigt__p_wxStaticBox, | |
42174 | _swigt__p_long, | |
42175 | _swigt__p_wxTIFFHandler, | |
42176 | _swigt__p_wxXPMHandler, | |
42177 | _swigt__p_wxPNMHandler, | |
42178 | _swigt__p_wxJPEGHandler, | |
42179 | _swigt__p_wxPCXHandler, | |
42180 | _swigt__p_wxGIFHandler, | |
42181 | _swigt__p_wxPNGHandler, | |
42182 | _swigt__p_wxANIHandler, | |
42183 | _swigt__p_wxMemoryFSHandler, | |
42184 | _swigt__p_wxEvtHandler, | |
42185 | _swigt__p_wxCURHandler, | |
42186 | _swigt__p_wxICOHandler, | |
42187 | _swigt__p_wxBMPHandler, | |
42188 | _swigt__p_wxImageHandler, | |
42189 | _swigt__p_wxFileSystemHandler, | |
42190 | _swigt__p_wxPyFileSystemHandler, | |
42191 | _swigt__p_wxInternetFSHandler, | |
4d5c3d91 | 42192 | _swigt__p_wxZipFSHandler, |
d14a1e28 RD |
42193 | _swigt__p_wxRect, |
42194 | _swigt__p_wxGBSpan, | |
42195 | _swigt__p_wxPropagateOnce, | |
42196 | _swigt__p_wxAcceleratorTable, | |
994141e6 | 42197 | _swigt__p_char, |
d14a1e28 RD |
42198 | _swigt__p_wxGBPosition, |
42199 | _swigt__p_wxImage, | |
42200 | _swigt__p_wxFrame, | |
42201 | _swigt__p_wxScrollWinEvent, | |
42202 | _swigt__p_wxImageHistogram, | |
42203 | _swigt__p_byte, | |
42204 | _swigt__p_wxPoint, | |
42205 | _swigt__p_wxCursor, | |
42206 | _swigt__p_wxObject, | |
42207 | _swigt__p_wxPyInputStream, | |
42208 | _swigt__p_wxOutputStream, | |
42209 | _swigt__p_wxInputStream, | |
42210 | _swigt__p_wxDateTime, | |
42211 | _swigt__p_wxKeyEvent, | |
42212 | _swigt__p_wxNavigationKeyEvent, | |
42213 | _swigt__p_wxWindowDestroyEvent, | |
42214 | _swigt__p_wxWindow, | |
42215 | _swigt__p_wxMenuBar, | |
d14a1e28 RD |
42216 | _swigt__p_wxFileSystem, |
42217 | _swigt__p_wxBitmap, | |
42218 | _swigt__p_wxMenuEvent, | |
42219 | _swigt__p_wxContextMenuEvent, | |
42220 | _swigt__p_unsigned_char, | |
42221 | _swigt__p_wxCloseEvent, | |
42222 | _swigt__p_wxEraseEvent, | |
42223 | _swigt__p_wxMouseEvent, | |
42224 | _swigt__p_wxPyApp, | |
42225 | _swigt__p_wxCommandEvent, | |
42226 | _swigt__p_wxPyCommandEvent, | |
7722248d | 42227 | _swigt__p_wxPyDropTarget, |
d14a1e28 RD |
42228 | _swigt__p_wxChildFocusEvent, |
42229 | _swigt__p_wxFocusEvent, | |
42230 | _swigt__p_wxDropFilesEvent, | |
42231 | _swigt__p_wxControlWithItems, | |
42232 | _swigt__p_wxColour, | |
42233 | _swigt__p_wxValidator, | |
42234 | _swigt__p_wxPyValidator, | |
42235 | 0 | |
42236 | }; | |
42237 | ||
42238 | ||
42239 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42240 | ||
42241 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
42242 | {0}}; |
42243 | ||
42244 | #ifdef __cplusplus | |
42245 | } | |
42246 | #endif | |
42247 | ||
42248 | #ifdef __cplusplus | |
42249 | extern "C" | |
42250 | #endif | |
42251 | SWIGEXPORT(void) SWIG_init(void) { | |
42252 | static PyObject *SWIG_globals = 0; | |
42253 | static int typeinit = 0; | |
42254 | PyObject *m, *d; | |
42255 | int i; | |
42256 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42257 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42258 | d = PyModule_GetDict(m); | |
42259 | ||
42260 | if (!typeinit) { | |
42261 | for (i = 0; swig_types_initial[i]; i++) { | |
42262 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42263 | } | |
42264 | typeinit = 1; | |
42265 | } | |
42266 | SWIG_InstallConstants(d,swig_const_table); | |
42267 | ||
42268 | ||
42269 | #ifndef wxPyUSE_EXPORT | |
42270 | // Make our API structure a CObject so other modules can import it | |
42271 | // from this module. | |
42272 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42273 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42274 | Py_XDECREF(cobj); | |
42275 | #endif | |
42276 | ||
15afbcd0 RD |
42277 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); |
42278 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42279 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42280 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42281 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42282 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42283 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42284 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42285 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42286 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42287 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42288 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
15afbcd0 RD |
42289 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); |
42290 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42291 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42292 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42293 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42294 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
15afbcd0 RD |
42295 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); |
42296 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42297 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42298 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42299 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42300 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42301 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
a95a7133 | 42302 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); |
15afbcd0 RD |
42303 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); |
42304 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42305 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42306 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42307 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42308 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42309 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42310 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42311 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42312 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42313 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42314 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42315 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42316 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42317 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42318 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42319 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42320 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42321 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42322 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42323 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42324 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42325 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42326 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42327 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42328 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42329 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42330 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42331 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42332 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42333 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42334 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42335 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42336 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42337 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42338 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42339 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42340 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42341 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42342 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42343 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42344 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42345 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42346 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42347 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42348 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42349 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42350 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42351 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42352 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42353 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42354 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42355 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42356 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42357 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42358 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42359 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42360 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42361 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42362 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42363 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42364 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42365 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42366 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42367 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42368 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42369 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42370 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42371 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42372 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42373 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42374 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42375 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42376 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42377 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42378 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42379 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42380 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42381 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42382 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42383 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42384 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42385 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42386 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42387 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42388 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42389 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42390 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42391 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42392 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42393 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42394 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42395 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42396 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42397 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42398 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42399 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42400 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42401 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42402 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42403 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42404 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42405 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42406 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42407 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42408 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42409 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42410 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42411 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42412 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42413 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42414 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42415 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42416 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42417 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42418 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42419 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42420 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42421 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42422 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42423 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42424 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42425 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42426 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42427 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42428 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42429 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42430 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42431 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42432 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42433 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42434 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42435 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42436 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42437 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42438 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42439 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42440 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42441 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42442 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42443 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42444 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42445 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42446 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42447 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42448 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42449 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42450 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42451 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42452 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42453 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42454 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42455 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42456 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42457 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42458 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42459 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42460 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42461 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42462 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42463 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42464 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42465 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42466 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42467 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42468 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42469 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42470 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42471 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42472 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42473 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42474 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42475 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42476 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42477 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42478 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42479 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42480 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42481 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42482 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42483 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42484 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42485 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42486 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42487 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42488 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42489 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42490 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42491 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42492 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42493 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42494 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42495 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42496 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42497 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42498 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42499 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42500 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42501 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42502 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42503 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42504 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42505 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42506 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42507 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42508 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42509 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42510 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42511 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42512 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42513 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42514 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42515 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42516 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42517 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42518 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42519 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42520 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42521 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42522 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42523 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42524 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42525 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
f52e0cf4 | 42526 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); |
15afbcd0 | 42527 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); |
74a57fcd | 42528 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); |
15afbcd0 RD |
42529 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); |
42530 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42531 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42532 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42533 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42534 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42535 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42536 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42537 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42538 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42539 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42540 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42541 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42542 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42543 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42544 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42545 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42546 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42547 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42548 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42549 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42550 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42551 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42552 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42553 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42554 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42555 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42556 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42557 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42558 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42559 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42560 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42561 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42562 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42563 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42564 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42565 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42566 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42567 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42568 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42569 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42570 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42571 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42572 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42573 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42574 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42575 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42576 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42577 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42578 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42579 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42580 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42581 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42582 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42583 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42584 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42585 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42586 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42587 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42588 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42589 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
42590 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
42591 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
42592 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
42593 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
42594 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
42595 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
42596 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
42597 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
42598 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
42599 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
42600 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
42601 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
42602 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
42603 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
42604 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
42605 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
42606 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
42607 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
42608 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
42609 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
42610 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
42611 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
42612 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
42613 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
42614 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
42615 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
42616 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
42617 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
42618 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
42619 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
42620 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
42621 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
42622 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
42623 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
42624 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
42625 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
42626 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
42627 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
42628 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
42629 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
42630 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
42631 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
42632 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
42633 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
42634 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
42635 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
42636 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
42637 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
42638 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
42639 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
42640 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
42641 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
42642 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
42643 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
42644 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
42645 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
42646 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
42647 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
42648 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
42649 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
42650 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
42651 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
42652 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
42653 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
42654 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
42655 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
42656 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
42657 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
42658 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
42659 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
42660 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
42661 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
42662 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
42663 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
42664 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
42665 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
42666 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
42667 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
42668 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
42669 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
42670 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
42671 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
42672 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
42673 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
42674 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
42675 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
42676 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
42677 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
42678 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
42679 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
42680 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
42681 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
42682 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
42683 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
42684 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
42685 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
42686 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
42687 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
42688 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
42689 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
42690 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
42691 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
42692 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
42693 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
42694 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
42695 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
42696 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
42697 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
42698 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
42699 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
42700 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
42701 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
42702 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
42703 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
42704 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
42705 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
42706 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
42707 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
42708 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
42709 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
42710 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
42711 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
42712 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
42713 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
42714 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
42715 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
42716 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
42717 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
42718 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
42719 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
42720 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
42721 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
42722 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
42723 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
42724 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
42725 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
42726 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
42727 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
42728 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
42729 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
42730 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
42731 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
42732 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
42733 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
42734 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
42735 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
42736 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
42737 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
42738 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
42739 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
42740 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
42741 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
42742 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
42743 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
42744 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
42745 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
42746 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
42747 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
42748 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
42749 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
42750 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
42751 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
42752 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
42753 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
42754 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
42755 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
42756 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
42757 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
42758 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
42759 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
42760 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
42761 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
42762 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
42763 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
42764 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
42765 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
42766 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
42767 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
42768 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
42769 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
42770 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
42771 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
42772 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
42773 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
42774 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
42775 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
42776 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
42777 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
42778 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
42779 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
42780 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
42781 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
42782 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
42783 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
42784 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
42785 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
42786 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
42787 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
42788 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
42789 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
42790 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
42791 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
d14a1e28 | 42792 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
196addbf | 42793 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); |
15afbcd0 RD |
42794 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); |
42795 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
42796 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
42797 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
42798 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
42799 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
42800 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
42801 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
42802 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
42803 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
42804 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
42805 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
42806 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
42807 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
42808 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
42809 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
42810 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
42811 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
42812 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
42813 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
42814 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
42815 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
42816 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
42817 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
42818 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
42819 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
42820 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
42821 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
42822 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
42823 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
42824 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
42825 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
42826 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
42827 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
42828 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
42829 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
42830 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
42831 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
42832 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
42833 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
42834 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
42835 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
42836 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
42837 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
42838 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
42839 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
42840 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
42841 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
42842 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
42843 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
42844 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
d14a1e28 RD |
42845 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
42846 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
15afbcd0 RD |
42847 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); |
42848 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
42849 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
d14a1e28 RD |
42850 | |
42851 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
42852 | ||
42853 | ||
42854 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
42855 | ||
42856 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
42857 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
42858 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
42859 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
42860 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
42861 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
15afbcd0 RD |
42862 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); |
42863 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
42864 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
42865 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
42866 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
42867 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
42868 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
42869 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
42870 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
42871 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
42872 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
42873 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
42874 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
d14a1e28 RD |
42875 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
42876 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
42877 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
42878 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
42879 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
42880 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
42881 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
42882 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
42883 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
42884 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
42885 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
42886 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
42887 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
42888 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
42889 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
42890 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
42891 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
42892 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
42893 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
42894 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
42895 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
42896 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
42897 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
42898 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
42899 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
42900 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
42901 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
42902 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
42903 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
42904 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
42905 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
42906 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
42907 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
42908 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
42909 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
42910 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
42911 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
42912 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
42913 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
42914 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
42915 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
42916 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
42917 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
42918 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
42919 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
42920 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
42921 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
42922 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
42923 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
42924 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
42925 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
42926 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
42927 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
42928 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
42929 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
42930 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
42931 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
42932 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
42933 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
42934 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
42935 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
42936 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
42937 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
42938 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
42939 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
42940 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
42941 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
42942 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
42943 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
42944 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
42945 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
42946 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
42947 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
42948 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
42949 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
42950 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
42951 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
42952 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
42953 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
42954 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
42955 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
42956 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
42957 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
42958 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
42959 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
42960 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
42961 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
42962 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
42963 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
42964 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
42965 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
42966 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
42967 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
42968 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
42969 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
42970 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
42971 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
42972 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
42973 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
42974 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
42975 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
42976 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
42977 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
42978 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
42979 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
42980 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
42981 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
42982 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
42983 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
42984 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
42985 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
42986 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
42987 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
42988 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
15afbcd0 RD |
42989 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); |
42990 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
42991 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
42992 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
42993 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
42994 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
42995 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
42996 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
42997 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
42998 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
42999 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43000 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
43001 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
43002 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
43003 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
1e0c8722 | 43004 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
e811c8ce | 43005 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); |
4276dc52 RD |
43006 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); |
43007 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
43008 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
43009 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
74a57fcd | 43010 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); |
d14a1e28 | 43011 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
b2dc1044 | 43012 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); |
15afbcd0 RD |
43013 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); |
43014 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43015 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
d14a1e28 | 43016 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
15afbcd0 RD |
43017 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); |
43018 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
43019 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
43020 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
43021 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
43022 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
43023 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
43024 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
43025 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
43026 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
43027 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
43028 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
43029 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
43030 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
43031 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
43032 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
43033 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
43034 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
43035 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
d14a1e28 RD |
43036 | |
43037 | // Initialize threading, some globals and such | |
43038 | __wxPyPreStart(d); | |
43039 | ||
43040 | ||
43041 | // Although these are defined in __version__ they need to be here too so | |
43042 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43043 | // versions match. | |
43044 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43045 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43046 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43047 | ||
43048 | } | |
43049 |