]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
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 | ||
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 | ||
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) | |
173 | ||
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) | |
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 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
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[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
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] | |
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]; | |
325 | ||
326 | /* -------- TYPES TABLE (END) -------- */ | |
327 | ||
328 | ||
329 | /*----------------------------------------------- | |
330 | @(target):= _core_.so | |
331 | ------------------------------------------------*/ | |
332 | #define SWIG_init init_core_ | |
333 | ||
334 | #define SWIG_name "_core_" | |
335 | ||
336 | /* Auxiliar swig macros */ | |
337 | ||
338 | #ifdef __cplusplus | |
339 | #define SWIGSTATICINLINE(a) static inline a | |
340 | #define SWIGSTATIC(a) static a | |
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) | |
346 | ||
347 | #ifdef HAVE_NUMERIC_CAST | |
348 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
349 | #else | |
350 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
351 | #endif | |
352 | ||
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 */ | |
365 | ||
366 | ||
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 | |
377 | ||
378 | ||
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 | |
457 | // error should be handled properly in the caller. Returns True on success. | |
458 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
459 | const wxChar* className) { | |
460 | ||
461 | swig_type_info* swigType = wxPyFindSwigType(className); | |
462 | wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr")); | |
463 | ||
464 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
465 | } | |
466 | ||
467 | ||
468 | // Make a SWIGified pointer object suitable for a .this attribute | |
469 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
470 | ||
471 | PyObject* robj = NULL; | |
472 | ||
473 | swig_type_info* swigType = wxPyFindSwigType(className); | |
474 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
475 | ||
476 | #ifdef SWIG_COBJECT_TYPES | |
477 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
478 | #else | |
479 | { | |
480 | char result[1024]; | |
481 | char *r = result; | |
482 | *(r++) = '_'; | |
483 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
484 | strcpy(r, swigType->name); | |
485 | robj = PyString_FromString(result); | |
486 | } | |
487 | #endif | |
488 | ||
489 | return robj; | |
490 | } | |
491 | ||
492 | ||
493 | ||
494 | ||
495 | // Export a C API in a struct. Other modules will be able to load this from | |
496 | // the wx._core_ module and will then have safe access to these functions, | |
497 | // even if they are located in another shared library. | |
498 | static wxPyCoreAPI API = { | |
499 | ||
500 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
501 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
502 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
503 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
504 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
505 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, | |
506 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
507 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
508 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
509 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
510 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
511 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
512 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
513 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
514 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
515 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
516 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
517 | ||
518 | wxPyCheckSwigType, | |
519 | wxPyConstructObject, | |
520 | wxPyConvertSwigPtr, | |
521 | wxPyMakeSwigPtr, | |
522 | ||
523 | wxPyBeginAllowThreads, | |
524 | wxPyEndAllowThreads, | |
525 | wxPyBeginBlockThreads, | |
526 | wxPyEndBlockThreads, | |
527 | ||
528 | wxPy_ConvertList, | |
529 | ||
530 | wxString_in_helper, | |
531 | Py2wxString, | |
532 | wx2PyString, | |
533 | ||
534 | byte_LIST_helper, | |
535 | int_LIST_helper, | |
536 | long_LIST_helper, | |
537 | string_LIST_helper, | |
538 | wxPoint_LIST_helper, | |
539 | wxBitmap_LIST_helper, | |
540 | wxString_LIST_helper, | |
541 | wxAcceleratorEntry_LIST_helper, | |
542 | ||
543 | wxSize_helper, | |
544 | wxPoint_helper, | |
545 | wxRealPoint_helper, | |
546 | wxRect_helper, | |
547 | wxColour_helper, | |
548 | wxPoint2D_helper, | |
549 | ||
550 | wxPySimple_typecheck, | |
551 | wxColour_typecheck, | |
552 | ||
553 | wxPyCBH_setCallbackInfo, | |
554 | wxPyCBH_findCallback, | |
555 | wxPyCBH_callCallback, | |
556 | wxPyCBH_callCallbackObj, | |
557 | wxPyCBH_delete, | |
558 | ||
559 | wxPyMake_wxObject, | |
560 | wxPyMake_wxSizer, | |
561 | wxPyPtrTypeMap_Add, | |
562 | wxPy2int_seq_helper, | |
563 | wxPy4int_seq_helper, | |
564 | wxArrayString2PyList_helper, | |
565 | wxArrayInt2PyList_helper, | |
566 | ||
567 | wxPyClientData_dtor, | |
568 | wxPyUserData_dtor, | |
569 | wxPyOORClientData_dtor, | |
570 | ||
571 | wxPyCBInputStream_create, | |
572 | ||
573 | wxPyInstance_Check, | |
574 | wxPySwigInstance_Check | |
575 | ||
576 | }; | |
577 | ||
578 | #endif | |
579 | ||
580 | ||
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 | ||
593 | static const wxString wxPyEmptyString(wxEmptyString); | |
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 | ||
605 | ||
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 | { | |
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 | } | |
645 | } | |
646 | ||
647 | ||
648 | #if INT_MAX != LONG_MAX | |
649 | SWIGSTATICINLINE(int) | |
650 | SWIG_AsInt(PyObject *obj) | |
651 | { | |
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 | } | |
671 | } | |
672 | ||
673 | PyObject *wxSize_Get(wxSize *self){ | |
674 | bool blocked = wxPyBeginBlockThreads(); | |
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)); | |
678 | wxPyEndBlockThreads(blocked); | |
679 | return tup; | |
680 | } | |
681 | ||
682 | SWIGSTATICINLINE(double) | |
683 | SWIG_AsDouble(PyObject *obj) | |
684 | { | |
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 | } | |
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 | } | |
707 | } | |
708 | ||
709 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
710 | self->x = x; | |
711 | self->y = y; | |
712 | } | |
713 | PyObject *wxRealPoint_Get(wxRealPoint *self){ | |
714 | bool blocked = wxPyBeginBlockThreads(); | |
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)); | |
718 | wxPyEndBlockThreads(blocked); | |
719 | return tup; | |
720 | } | |
721 | ||
722 | SWIGSTATICINLINE(int) | |
723 | SWIG_CheckLong(PyObject* obj) | |
724 | { | |
725 | SWIG_AsLong(obj); | |
726 | if (PyErr_Occurred()) { | |
727 | PyErr_Clear(); | |
728 | return 0; | |
729 | } else { | |
730 | return 1; | |
731 | } | |
732 | } | |
733 | ||
734 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
735 | self->x = x; | |
736 | self->y = y; | |
737 | } | |
738 | PyObject *wxPoint_Get(wxPoint *self){ | |
739 | bool blocked = wxPyBeginBlockThreads(); | |
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)); | |
743 | wxPyEndBlockThreads(blocked); | |
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 | } | |
752 | PyObject *wxRect_Get(wxRect *self){ | |
753 | bool blocked = wxPyBeginBlockThreads(); | |
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)); | |
759 | wxPyEndBlockThreads(blocked); | |
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)) { | |
773 | bool blocked = wxPyBeginBlockThreads(); | |
774 | wxRect* newRect = new wxRect(dest); | |
775 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True); | |
776 | wxPyEndBlockThreads(blocked); | |
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 | } | |
814 | PyObject *wxPoint2D_Get(wxPoint2D *self){ | |
815 | bool blocked = wxPyBeginBlockThreads(); | |
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)); | |
819 | wxPyEndBlockThreads(blocked); | |
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 | } | |
832 | ||
833 | SWIGSTATICINLINE(PyObject*) | |
834 | SWIG_FromChar(char c) | |
835 | { | |
836 | return PyString_FromStringAndSize(&c,1); | |
837 | } | |
838 | ||
839 | ||
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) | |
852 | { | |
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 | } | |
870 | } | |
871 | ||
872 | ||
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) | |
910 | { | |
911 | char c = 0; | |
912 | if (PyInt_Check(obj) || PyLong_Check(obj)) { | |
913 | c = swig_numeric_cast(char, | |
914 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
915 | "char", CHAR_MIN, CHAR_MAX)); | |
916 | } else { | |
917 | SWIG_AsCharArray(obj, &c, 1); | |
918 | if (PyErr_Occurred()) { | |
919 | PyErr_Clear(); | |
920 | PyErr_SetString(PyExc_TypeError, "a char is expected"); | |
921 | } | |
922 | } | |
923 | return c; | |
924 | } | |
925 | ||
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 | ||
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 | ||
994 | SWIGSTATICINLINE(bool) | |
995 | SWIG_AsBool(PyObject *obj) | |
996 | { | |
997 | return PyObject_IsTrue(obj) ? true : false; | |
998 | } | |
999 | ||
1000 | ||
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 | ||
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 | ||
1043 | ||
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 { | |
1067 | long i = SWIG_AsLong(obj); | |
1068 | if ( !PyErr_Occurred() && (i < 0)) { | |
1069 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1070 | } | |
1071 | return i; | |
1072 | } | |
1073 | } | |
1074 | ||
1075 | ||
1076 | SWIGSTATICINLINE(unsigned char) | |
1077 | SWIG_AsUnsignedChar(PyObject *obj) | |
1078 | { | |
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 | } | |
1095 | } | |
1096 | ||
c24da6d6 | 1097 | wxImage *new_wxImage(int width,int height,bool clear){ |
d55e5bfc RD |
1098 | if (width > 0 && height > 0) |
1099 | return new wxImage(width, height, clear); | |
1100 | else | |
1101 | return new wxImage; | |
1102 | } | |
d55e5bfc RD |
1103 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1104 | return new wxImage(bitmap.ConvertToImage()); | |
1105 | } | |
1106 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1107 | // Copy the source data so the wxImage can clean it up later | |
1108 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1109 | if (copy == NULL) { | |
1110 | PyErr_NoMemory(); | |
1111 | return NULL; | |
1112 | } | |
1113 | memcpy(copy, data, width*height*3); | |
1114 | return new wxImage(width, height, copy, False); | |
1115 | } | |
1116 | wxSize wxImage_GetSize(wxImage *self){ | |
1117 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1118 | return size; | |
1119 | } | |
1120 | PyObject *wxImage_GetData(wxImage *self){ | |
1121 | unsigned char* data = self->GetData(); | |
1122 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1123 | PyObject* rv; | |
1124 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1125 | return rv; | |
1126 | } | |
1127 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1128 | unsigned char* dataPtr; | |
1129 | ||
1130 | if (! PyString_Check(data)) { | |
1131 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1132 | return /* NULL */ ; | |
1133 | } | |
1134 | ||
1135 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1136 | dataPtr = (unsigned char*) malloc(len); | |
1137 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1138 | self->SetData(dataPtr); | |
1139 | // wxImage takes ownership of dataPtr... | |
1140 | } | |
1141 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1142 | unsigned char* data = self->GetData(); | |
1143 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1144 | PyObject* rv; | |
1145 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1146 | return rv; | |
1147 | } | |
1148 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1149 | unsigned char* buffer; | |
1150 | int size; | |
1151 | ||
1152 | bool blocked = wxPyBeginBlockThreads(); | |
1153 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1154 | goto done; | |
1155 | ||
1156 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1157 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1158 | goto done; | |
1159 | } | |
1160 | self->SetData(buffer); | |
1161 | done: | |
1162 | wxPyEndBlockThreads(blocked); | |
1163 | } | |
1164 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1165 | unsigned char* data = self->GetAlpha(); | |
1166 | if (! data) { | |
1167 | RETURN_NONE(); | |
1168 | } else { | |
1169 | int len = self->GetWidth() * self->GetHeight(); | |
1170 | PyObject* rv; | |
1171 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1172 | return rv; | |
1173 | } | |
1174 | } | |
1175 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1176 | unsigned char* dataPtr; | |
1177 | ||
1178 | if (! PyString_Check(data)) { | |
1179 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1180 | return /* NULL */ ; | |
1181 | } | |
1182 | ||
1183 | size_t len = self->GetWidth() * self->GetHeight(); | |
1184 | dataPtr = (unsigned char*) malloc(len); | |
1185 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1186 | self->SetAlpha(dataPtr); | |
1187 | // wxImage takes ownership of dataPtr... | |
1188 | } | |
1189 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1190 | unsigned char* data = self->GetAlpha(); | |
1191 | int len = self->GetWidth() * self->GetHeight(); | |
1192 | PyObject* rv; | |
1193 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1194 | return rv; | |
1195 | } | |
1196 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1197 | unsigned char* buffer; | |
1198 | int size; | |
1199 | ||
1200 | bool blocked = wxPyBeginBlockThreads(); | |
1201 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1202 | goto done; | |
1203 | ||
1204 | if (size != self->GetWidth() * self->GetHeight()) { | |
1205 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1206 | goto done; | |
1207 | } | |
1208 | self->SetAlpha(buffer); | |
1209 | done: | |
1210 | wxPyEndBlockThreads(blocked); | |
1211 | } | |
1212 | ||
1213 | SWIGSTATICINLINE(int) | |
1214 | SWIG_CheckUnsignedLong(PyObject* obj) | |
1215 | { | |
1216 | SWIG_AsUnsignedLong(obj); | |
1217 | if (PyErr_Occurred()) { | |
1218 | PyErr_Clear(); | |
1219 | return 0; | |
1220 | } else { | |
1221 | return 1; | |
1222 | } | |
1223 | } | |
1224 | ||
1225 | wxBitmap wxImage_ConvertToBitmap(wxImage *self){ | |
1226 | wxBitmap bitmap(*self); | |
1227 | return bitmap; | |
1228 | } | |
1229 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1230 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1231 | wxBitmap bitmap( mono, 1 ); | |
1232 | return bitmap; | |
1233 | } | |
1234 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1235 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1236 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1237 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1238 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
1239 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ | |
1240 | if (PyCallable_Check(func)) { | |
1241 | self->Connect(id, lastId, eventType, | |
1242 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1243 | new wxPyCallback(func)); | |
1244 | } | |
1245 | else if (func == Py_None) { | |
1246 | self->Disconnect(id, lastId, eventType, | |
1247 | (wxObjectEventFunction) | |
1248 | &wxPyCallback::EventThunker); | |
1249 | } | |
1250 | else { | |
1251 | wxPyBLOCK_THREADS( | |
1252 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1253 | } | |
1254 | } | |
1255 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1256 | return self->Disconnect(id, lastId, eventType, | |
1257 | (wxObjectEventFunction) | |
1258 | &wxPyCallback::EventThunker); | |
1259 | } | |
1260 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1261 | if (_self && _self != Py_None) { | |
1262 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1263 | } | |
1264 | else { | |
1265 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1266 | if (data) { | |
1267 | self->SetClientObject(NULL); // This will delete it too | |
1268 | } | |
1269 | } | |
1270 | } | |
1271 | int wxKeyEvent_GetUniChar(wxKeyEvent *self){ | |
1272 | #if wxUSE_UNICODE | |
1273 | return self->m_uniChar; | |
1274 | #else | |
1275 | return 0; | |
1276 | #endif | |
1277 | } | |
1278 | ||
1279 | #if UINT_MAX < LONG_MAX | |
1280 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
1281 | #else | |
1282 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
1283 | #endif | |
1284 | ||
1285 | ||
1286 | #if UINT_MAX != ULONG_MAX | |
1287 | SWIGSTATICINLINE(unsigned int) | |
1288 | SWIG_AsUnsignedInt(PyObject *obj) | |
1289 | { | |
1290 | return swig_numeric_cast(unsigned int, | |
1291 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
1292 | "unsigned int", UINT_MAX)); | |
1293 | } | |
1294 | #else | |
1295 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
1296 | #endif | |
1297 | ||
1298 | ||
1299 | SWIGSTATICINLINE(int) | |
1300 | SWIG_CheckUnsignedInt(PyObject* obj) | |
1301 | { | |
1302 | SWIG_AsUnsignedInt(obj); | |
1303 | if (PyErr_Occurred()) { | |
1304 | PyErr_Clear(); | |
1305 | return 0; | |
1306 | } else { | |
1307 | return 1; | |
1308 | } | |
1309 | } | |
1310 | ||
1311 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1312 | self->m_size = size; | |
1313 | } | |
1314 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1315 | self->m_pos = pos; | |
1316 | } | |
1317 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1318 | int count = self->GetNumberOfFiles(); | |
1319 | wxString* files = self->GetFiles(); | |
1320 | PyObject* list = PyList_New(count); | |
1321 | ||
1322 | if (!list) { | |
1323 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1324 | return NULL; | |
1325 | } | |
1326 | ||
1327 | for (int i=0; i<count; i++) { | |
1328 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1329 | } | |
1330 | return list; | |
1331 | } | |
1332 | ||
1333 | ||
1334 | wxPyApp *new_wxPyApp(){ | |
1335 | wxPythonApp = new wxPyApp(); | |
1336 | return wxPythonApp; | |
1337 | } | |
1338 | ||
1339 | void wxApp_CleanUp() { | |
1340 | __wxPyCleanup(); | |
1341 | } | |
1342 | ||
1343 | ||
caef1a4d | 1344 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1345 | |
1346 | ||
1347 | ||
1348 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1349 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1350 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1351 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1352 | wxWindowList& list = self->GetChildren(); | |
1353 | return wxPy_ConvertList(&list); | |
1354 | } | |
1355 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1356 | #if wxUSE_HOTKEY | |
1357 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1358 | #else | |
1359 | return False; | |
1360 | #endif | |
1361 | } | |
1362 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1363 | ||
1364 | ||
1365 | ||
1366 | return False; | |
1367 | ||
1368 | } | |
1369 | long wxWindow_GetHandle(wxWindow *self){ | |
1370 | return wxPyGetWinHandle(self); | |
1371 | } | |
1372 | ||
1373 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1374 | return wxWindow::FindWindowById(id, parent); | |
1375 | } | |
1376 | ||
1377 | wxWindow* wxFindWindowByName( const wxString& name, | |
1378 | const wxWindow *parent = NULL ) { | |
1379 | return wxWindow::FindWindowByName(name, parent); | |
1380 | } | |
1381 | ||
1382 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1383 | const wxWindow *parent = NULL ) { | |
1384 | return wxWindow::FindWindowByLabel(label, parent); | |
1385 | } | |
1386 | ||
1387 | ||
1388 | #ifdef __WXMSW__ | |
1389 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1390 | #endif | |
1391 | ||
1392 | ||
1393 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1394 | #ifdef __WXMSW__ | |
1395 | WXHWND hWnd = (WXHWND)_hWnd; | |
1396 | long id = wxGetWindowId(hWnd); | |
1397 | wxWindow* win = new wxWindow; | |
1398 | parent->AddChild(win); | |
1399 | win->SetEventHandler(win); | |
1400 | win->SetHWND(hWnd); | |
1401 | win->SetId(id); | |
1402 | win->SubclassWin(hWnd); | |
1403 | win->AdoptAttributesFromHWND(); | |
1404 | win->SetupColours(); | |
1405 | return win; | |
1406 | #else | |
1407 | wxPyRaiseNotImplemented(); | |
1408 | return NULL; | |
1409 | #endif | |
1410 | } | |
1411 | ||
1412 | ||
1413 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1414 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1415 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1416 | ||
1417 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1418 | ||
1419 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1420 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1421 | wxMenuItemList& list = self->GetMenuItems(); | |
1422 | return wxPy_ConvertList(&list); | |
1423 | } | |
1424 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1425 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1426 | if (clientData) { | |
1427 | wxPyClientData* data = new wxPyClientData(clientData); | |
1428 | return self->Append(item, data); | |
1429 | } else | |
1430 | return self->Append(item); | |
1431 | } | |
1432 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1433 | if (clientData) { | |
1434 | wxPyClientData* data = new wxPyClientData(clientData); | |
1435 | return self->Insert(item, pos, data); | |
1436 | } else | |
1437 | return self->Insert(item, pos); | |
1438 | } | |
1439 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1440 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1441 | if (data) { | |
1442 | Py_INCREF(data->m_obj); | |
1443 | return data->m_obj; | |
1444 | } else { | |
1445 | Py_INCREF(Py_None); | |
1446 | return Py_None; | |
1447 | } | |
1448 | } | |
1449 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1450 | wxPyClientData* data = new wxPyClientData(clientData); | |
1451 | self->SetClientObject(n, data); | |
1452 | } | |
1453 | ||
1454 | ||
1455 | ||
1456 | #include <float.h> | |
1457 | ||
1458 | SWIGSTATIC(float) | |
1459 | SWIG_FloatCast(double value) | |
1460 | { | |
1461 | float f = 0; | |
1462 | if (!PyErr_Occurred()) { | |
1463 | if (value < FLT_MIN) { | |
1464 | PyObject *err = | |
1465 | PyString_FromFormat("value %g is less than float minimum %g", | |
1466 | value, FLT_MIN); | |
1467 | PyErr_SetObject(PyExc_OverflowError, err); | |
1468 | Py_DECREF(err); | |
1469 | } else if (value > FLT_MAX) { | |
1470 | PyObject *err = | |
1471 | PyString_FromFormat("value %g is greater than float maximum %g", | |
1472 | value, FLT_MAX); | |
1473 | PyErr_SetObject(PyExc_OverflowError, err); | |
1474 | Py_DECREF(err); | |
1475 | } else { | |
1476 | f = swig_numeric_cast(float, value); | |
1477 | } | |
1478 | } | |
1479 | return f; | |
1480 | } | |
1481 | ||
1482 | ||
1483 | SWIGSTATICINLINE(float) | |
1484 | SWIG_AsFloat(PyObject *obj) | |
1485 | { | |
1486 | return SWIG_FloatCast(SWIG_AsDouble(obj)); | |
1487 | } | |
1488 | ||
1489 | ||
1490 | SWIGSTATICINLINE(int) | |
1491 | SWIG_CheckFloat(PyObject* obj) | |
1492 | { | |
1493 | SWIG_AsFloat(obj); | |
1494 | if (PyErr_Occurred()) { | |
1495 | PyErr_Clear(); | |
1496 | return 0; | |
1497 | } else { | |
1498 | return 1; | |
1499 | } | |
1500 | } | |
1501 | ||
1502 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1503 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1504 | if (data) { | |
1505 | Py_INCREF(data->m_obj); | |
1506 | return data->m_obj; | |
1507 | } else { | |
1508 | Py_INCREF(Py_None); | |
1509 | return Py_None; | |
1510 | } | |
1511 | } | |
1512 | ||
1513 | // Figure out the type of the sizer item | |
1514 | ||
1515 | struct wxPySizerItemInfo { | |
1516 | wxPySizerItemInfo() | |
1517 | : window(NULL), sizer(NULL), gotSize(False), | |
1518 | size(wxDefaultSize), gotPos(False), pos(-1) | |
1519 | {} | |
1520 | ||
1521 | wxWindow* window; | |
1522 | wxSizer* sizer; | |
1523 | bool gotSize; | |
1524 | wxSize size; | |
1525 | bool gotPos; | |
1526 | int pos; | |
1527 | }; | |
1528 | ||
1529 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1530 | ||
1531 | wxPySizerItemInfo info; | |
1532 | wxSize size; | |
1533 | wxSize* sizePtr = &size; | |
1534 | ||
1535 | // Find out what the type of the item is | |
1536 | // try wxWindow | |
1537 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1538 | PyErr_Clear(); | |
1539 | info.window = NULL; | |
1540 | ||
1541 | // try wxSizer | |
1542 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1543 | PyErr_Clear(); | |
1544 | info.sizer = NULL; | |
1545 | ||
1546 | // try wxSize or (w,h) | |
1547 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1548 | info.size = *sizePtr; | |
1549 | info.gotSize = True; | |
1550 | } | |
1551 | ||
1552 | // or a single int | |
1553 | if (checkIdx && PyInt_Check(item)) { | |
1554 | info.pos = PyInt_AsLong(item); | |
1555 | info.gotPos = True; | |
1556 | } | |
1557 | } | |
1558 | } | |
1559 | ||
1560 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1561 | // no expected type, figure out what kind of error message to generate | |
1562 | if ( !checkSize && !checkIdx ) | |
1563 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1564 | else if ( checkSize && !checkIdx ) | |
1565 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1566 | else if ( !checkSize && checkIdx) | |
1567 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1568 | else | |
1569 | // can this one happen? | |
1570 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1571 | } | |
1572 | ||
1573 | return info; | |
1574 | } | |
1575 | ||
1576 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
1577 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1578 | } | |
1579 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1580 | ||
1581 | wxPyUserData* data = NULL; | |
1582 | bool blocked = wxPyBeginBlockThreads(); | |
1583 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1584 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1585 | data = new wxPyUserData(userData); | |
1586 | wxPyEndBlockThreads(blocked); | |
1587 | ||
1588 | // Now call the real Add method if a valid item type was found | |
1589 | if ( info.window ) | |
1590 | self->Add(info.window, proportion, flag, border, data); | |
1591 | else if ( info.sizer ) | |
1592 | self->Add(info.sizer, proportion, flag, border, data); | |
1593 | else if (info.gotSize) | |
1594 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1595 | proportion, flag, border, data); | |
1596 | } | |
1597 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1598 | ||
1599 | wxPyUserData* data = NULL; | |
1600 | bool blocked = wxPyBeginBlockThreads(); | |
1601 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1602 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1603 | data = new wxPyUserData(userData); | |
1604 | wxPyEndBlockThreads(blocked); | |
1605 | ||
1606 | // Now call the real Insert method if a valid item type was found | |
1607 | if ( info.window ) | |
1608 | self->Insert(before, info.window, proportion, flag, border, data); | |
1609 | else if ( info.sizer ) | |
1610 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1611 | else if (info.gotSize) | |
1612 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1613 | proportion, flag, border, data); | |
1614 | } | |
1615 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1616 | ||
1617 | wxPyUserData* data = NULL; | |
1618 | bool blocked = wxPyBeginBlockThreads(); | |
1619 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1620 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1621 | data = new wxPyUserData(userData); | |
1622 | wxPyEndBlockThreads(blocked); | |
1623 | ||
1624 | // Now call the real Prepend method if a valid item type was found | |
1625 | if ( info.window ) | |
1626 | self->Prepend(info.window, proportion, flag, border, data); | |
1627 | else if ( info.sizer ) | |
1628 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1629 | else if (info.gotSize) | |
1630 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1631 | proportion, flag, border, data); | |
1632 | } | |
1633 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1634 | bool blocked = wxPyBeginBlockThreads(); | |
1635 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1636 | wxPyEndBlockThreads(blocked); | |
1637 | if ( info.window ) | |
1638 | return self->Remove(info.window); | |
1639 | else if ( info.sizer ) | |
1640 | return self->Remove(info.sizer); | |
1641 | else if ( info.gotPos ) | |
1642 | return self->Remove(info.pos); | |
1643 | else | |
1644 | return False; | |
1645 | } | |
1a6bba1e RD |
1646 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1647 | bool blocked = wxPyBeginBlockThreads(); | |
1648 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1649 | wxPyEndBlockThreads(blocked); | |
1650 | if ( info.window ) | |
1651 | return self->Detach(info.window); | |
1652 | else if ( info.sizer ) | |
1653 | return self->Detach(info.sizer); | |
1654 | else if ( info.gotPos ) | |
1655 | return self->Detach(info.pos); | |
1656 | else | |
1657 | return False; | |
1658 | } | |
d55e5bfc RD |
1659 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1660 | bool blocked = wxPyBeginBlockThreads(); | |
1661 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True); | |
1662 | wxPyEndBlockThreads(blocked); | |
1663 | if ( info.window ) | |
1664 | self->SetItemMinSize(info.window, size); | |
1665 | else if ( info.sizer ) | |
1666 | self->SetItemMinSize(info.sizer, size); | |
1667 | else if ( info.gotPos ) | |
1668 | self->SetItemMinSize(info.pos, size); | |
1669 | } | |
1670 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1671 | wxSizerItemList& list = self->GetChildren(); | |
1672 | return wxPy_ConvertList(&list); | |
1673 | } | |
1674 | void wxSizer_Show(wxSizer *self,PyObject *item,bool show){ | |
c24da6d6 | 1675 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1676 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1677 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1678 | if ( info.window ) |
1679 | self->Show(info.window, show); | |
1680 | else if ( info.sizer ) | |
1681 | self->Show(info.sizer, show); | |
1682 | } | |
1683 | void wxSizer_Hide(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1684 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1685 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1686 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1687 | if ( info.window ) |
1688 | self->Hide(info.window); | |
1689 | else if ( info.sizer ) | |
1690 | self->Hide(info.sizer); | |
1691 | } | |
1692 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
c24da6d6 | 1693 | bool blocked = wxPyBeginBlockThreads(); |
d55e5bfc | 1694 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False); |
c24da6d6 | 1695 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1696 | if ( info.window ) |
1697 | return self->IsShown(info.window); | |
1698 | else if ( info.sizer ) | |
1699 | return self->IsShown(info.sizer); | |
1700 | else | |
1701 | return False; | |
1702 | } | |
1703 | ||
1704 | // See pyclasses.h | |
1705 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1706 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1707 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1708 | ||
1709 | ||
1710 | ||
1711 | ||
1712 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1713 | { | |
1714 | if (source == Py_None) { | |
1715 | **obj = wxGBPosition(-1,-1); | |
1716 | return True; | |
1717 | } | |
1718 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1719 | } | |
1720 | ||
1721 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1722 | { | |
1723 | if (source == Py_None) { | |
1724 | **obj = wxGBSpan(-1,-1); | |
1725 | return True; | |
1726 | } | |
1727 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1728 | } | |
1729 | ||
1730 | ||
1731 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
1732 | self->SetRow(row); | |
1733 | self->SetCol(col); | |
1734 | } | |
1735 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
1736 | bool blocked = wxPyBeginBlockThreads(); | |
1737 | PyObject* tup = PyTuple_New(2); | |
1738 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
1739 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
1740 | wxPyEndBlockThreads(blocked); | |
1741 | return tup; | |
1742 | } | |
1743 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
1744 | self->SetRowspan(rowspan); | |
1745 | self->SetColspan(colspan); | |
1746 | } | |
1747 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
1748 | bool blocked = wxPyBeginBlockThreads(); | |
1749 | PyObject* tup = PyTuple_New(2); | |
1750 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
1751 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
1752 | wxPyEndBlockThreads(blocked); | |
1753 | return tup; | |
1754 | } | |
1755 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
1756 | ||
1757 | wxPyUserData* data = NULL; | |
1758 | bool blocked = wxPyBeginBlockThreads(); | |
1759 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False); | |
1760 | if ( userData && (info.window || info.sizer || info.gotSize) ) | |
1761 | data = new wxPyUserData(userData); | |
1762 | wxPyEndBlockThreads(blocked); | |
1763 | ||
1764 | // Now call the real Add method if a valid item type was found | |
1765 | if ( info.window ) | |
1766 | return self->Add(info.window, pos, span, flag, border, data); | |
1767 | else if ( info.sizer ) | |
1768 | return self->Add(info.sizer, pos, span, flag, border, data); | |
1769 | else if (info.gotSize) | |
1770 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1771 | pos, span, flag, border, data); | |
1772 | return False; | |
1773 | } | |
1774 | ||
1775 | ||
1776 | #ifdef __cplusplus | |
1777 | extern "C" { | |
1778 | #endif | |
1779 | static int _wrap_EmptyString_set(PyObject *_val) { | |
1780 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); | |
1781 | return 1; | |
1782 | } | |
1783 | ||
1784 | ||
1785 | static PyObject *_wrap_EmptyString_get() { | |
1786 | PyObject *pyobj; | |
1787 | ||
1788 | { | |
1789 | #if wxUSE_UNICODE | |
1790 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1791 | #else | |
1792 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
1793 | #endif | |
1794 | } | |
1795 | return pyobj; | |
1796 | } | |
1797 | ||
1798 | ||
1799 | static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1800 | PyObject *resultobj; | |
1801 | wxObject *arg1 = (wxObject *) 0 ; | |
1802 | wxString result; | |
1803 | PyObject * obj0 = 0 ; | |
1804 | char *kwnames[] = { | |
1805 | (char *) "self", NULL | |
1806 | }; | |
1807 | ||
1808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
1809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1811 | { | |
1812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1813 | result = wxObject_GetClassName(arg1); | |
1814 | ||
1815 | wxPyEndAllowThreads(__tstate); | |
1816 | if (PyErr_Occurred()) SWIG_fail; | |
1817 | } | |
1818 | { | |
1819 | #if wxUSE_UNICODE | |
1820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
1821 | #else | |
1822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
1823 | #endif | |
1824 | } | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject *resultobj; | |
1833 | wxObject *arg1 = (wxObject *) 0 ; | |
1834 | PyObject * obj0 = 0 ; | |
1835 | char *kwnames[] = { | |
1836 | (char *) "self", NULL | |
1837 | }; | |
1838 | ||
1839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
1840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
1841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1842 | { | |
1843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1844 | wxObject_Destroy(arg1); | |
1845 | ||
1846 | wxPyEndAllowThreads(__tstate); | |
1847 | if (PyErr_Occurred()) SWIG_fail; | |
1848 | } | |
1849 | Py_INCREF(Py_None); resultobj = Py_None; | |
1850 | return resultobj; | |
1851 | fail: | |
1852 | return NULL; | |
1853 | } | |
1854 | ||
1855 | ||
1856 | static PyObject * Object_swigregister(PyObject *self, PyObject *args) { | |
1857 | PyObject *obj; | |
1858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1859 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
1860 | Py_INCREF(obj); | |
1861 | return Py_BuildValue((char *)""); | |
1862 | } | |
1863 | static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1864 | PyObject *resultobj; | |
1865 | wxSize *arg1 = (wxSize *) 0 ; | |
1866 | int arg2 ; | |
1867 | PyObject * obj0 = 0 ; | |
1868 | PyObject * obj1 = 0 ; | |
1869 | char *kwnames[] = { | |
1870 | (char *) "self",(char *) "x", NULL | |
1871 | }; | |
1872 | ||
1873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
1874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1876 | arg2 = (int) SWIG_AsInt(obj1); | |
1877 | if (PyErr_Occurred()) SWIG_fail; | |
1878 | if (arg1) (arg1)->x = arg2; | |
1879 | ||
1880 | Py_INCREF(Py_None); resultobj = Py_None; | |
1881 | return resultobj; | |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject *resultobj; | |
1889 | wxSize *arg1 = (wxSize *) 0 ; | |
1890 | int result; | |
1891 | PyObject * obj0 = 0 ; | |
1892 | char *kwnames[] = { | |
1893 | (char *) "self", NULL | |
1894 | }; | |
1895 | ||
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
1897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1899 | result = (int) ((arg1)->x); | |
1900 | ||
1901 | resultobj = SWIG_FromInt((int)result); | |
1902 | return resultobj; | |
1903 | fail: | |
1904 | return NULL; | |
1905 | } | |
1906 | ||
1907 | ||
1908 | static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1909 | PyObject *resultobj; | |
1910 | wxSize *arg1 = (wxSize *) 0 ; | |
1911 | int arg2 ; | |
1912 | PyObject * obj0 = 0 ; | |
1913 | PyObject * obj1 = 0 ; | |
1914 | char *kwnames[] = { | |
1915 | (char *) "self",(char *) "y", NULL | |
1916 | }; | |
1917 | ||
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
1919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1921 | arg2 = (int) SWIG_AsInt(obj1); | |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
1923 | if (arg1) (arg1)->y = arg2; | |
1924 | ||
1925 | Py_INCREF(Py_None); resultobj = Py_None; | |
1926 | return resultobj; | |
1927 | fail: | |
1928 | return NULL; | |
1929 | } | |
1930 | ||
1931 | ||
1932 | static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1933 | PyObject *resultobj; | |
1934 | wxSize *arg1 = (wxSize *) 0 ; | |
1935 | int result; | |
1936 | PyObject * obj0 = 0 ; | |
1937 | char *kwnames[] = { | |
1938 | (char *) "self", NULL | |
1939 | }; | |
1940 | ||
1941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
1942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1944 | result = (int) ((arg1)->y); | |
1945 | ||
1946 | resultobj = SWIG_FromInt((int)result); | |
1947 | return resultobj; | |
1948 | fail: | |
1949 | return NULL; | |
1950 | } | |
1951 | ||
1952 | ||
1953 | static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1954 | PyObject *resultobj; | |
1955 | int arg1 = (int) 0 ; | |
1956 | int arg2 = (int) 0 ; | |
1957 | wxSize *result; | |
1958 | PyObject * obj0 = 0 ; | |
1959 | PyObject * obj1 = 0 ; | |
1960 | char *kwnames[] = { | |
1961 | (char *) "w",(char *) "h", NULL | |
1962 | }; | |
1963 | ||
1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
1965 | if (obj0) { | |
1966 | arg1 = (int) SWIG_AsInt(obj0); | |
1967 | if (PyErr_Occurred()) SWIG_fail; | |
1968 | } | |
1969 | if (obj1) { | |
1970 | arg2 = (int) SWIG_AsInt(obj1); | |
1971 | if (PyErr_Occurred()) SWIG_fail; | |
1972 | } | |
1973 | { | |
1974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1975 | result = (wxSize *)new wxSize(arg1,arg2); | |
1976 | ||
1977 | wxPyEndAllowThreads(__tstate); | |
1978 | if (PyErr_Occurred()) SWIG_fail; | |
1979 | } | |
1980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
1981 | return resultobj; | |
1982 | fail: | |
1983 | return NULL; | |
1984 | } | |
1985 | ||
1986 | ||
1987 | static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1988 | PyObject *resultobj; | |
1989 | wxSize *arg1 = (wxSize *) 0 ; | |
1990 | PyObject * obj0 = 0 ; | |
1991 | char *kwnames[] = { | |
1992 | (char *) "self", NULL | |
1993 | }; | |
1994 | ||
1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
1996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
1997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1998 | { | |
1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2000 | delete arg1; | |
2001 | ||
2002 | wxPyEndAllowThreads(__tstate); | |
2003 | if (PyErr_Occurred()) SWIG_fail; | |
2004 | } | |
2005 | Py_INCREF(Py_None); resultobj = Py_None; | |
2006 | return resultobj; | |
2007 | fail: | |
2008 | return NULL; | |
2009 | } | |
2010 | ||
2011 | ||
2012 | static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2013 | PyObject *resultobj; | |
2014 | wxSize *arg1 = (wxSize *) 0 ; | |
2015 | wxSize *arg2 = 0 ; | |
2016 | bool result; | |
2017 | wxSize temp2 ; | |
2018 | PyObject * obj0 = 0 ; | |
2019 | PyObject * obj1 = 0 ; | |
2020 | char *kwnames[] = { | |
2021 | (char *) "self",(char *) "sz", NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2027 | { | |
2028 | arg2 = &temp2; | |
2029 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2030 | } | |
2031 | { | |
2032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2033 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2034 | ||
2035 | wxPyEndAllowThreads(__tstate); | |
2036 | if (PyErr_Occurred()) SWIG_fail; | |
2037 | } | |
2038 | { | |
2039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2040 | } | |
2041 | return resultobj; | |
2042 | fail: | |
2043 | return NULL; | |
2044 | } | |
2045 | ||
2046 | ||
2047 | static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2048 | PyObject *resultobj; | |
2049 | wxSize *arg1 = (wxSize *) 0 ; | |
2050 | wxSize *arg2 = 0 ; | |
2051 | bool result; | |
2052 | wxSize temp2 ; | |
2053 | PyObject * obj0 = 0 ; | |
2054 | PyObject * obj1 = 0 ; | |
2055 | char *kwnames[] = { | |
2056 | (char *) "self",(char *) "sz", NULL | |
2057 | }; | |
2058 | ||
2059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2062 | { | |
2063 | arg2 = &temp2; | |
2064 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2065 | } | |
2066 | { | |
2067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2068 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2069 | ||
2070 | wxPyEndAllowThreads(__tstate); | |
2071 | if (PyErr_Occurred()) SWIG_fail; | |
2072 | } | |
2073 | { | |
2074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2075 | } | |
2076 | return resultobj; | |
2077 | fail: | |
2078 | return NULL; | |
2079 | } | |
2080 | ||
2081 | ||
2082 | static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2083 | PyObject *resultobj; | |
2084 | wxSize *arg1 = (wxSize *) 0 ; | |
2085 | wxSize *arg2 = 0 ; | |
2086 | wxSize result; | |
2087 | wxSize temp2 ; | |
2088 | PyObject * obj0 = 0 ; | |
2089 | PyObject * obj1 = 0 ; | |
2090 | char *kwnames[] = { | |
2091 | (char *) "self",(char *) "sz", NULL | |
2092 | }; | |
2093 | ||
2094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2097 | { | |
2098 | arg2 = &temp2; | |
2099 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2100 | } | |
2101 | { | |
2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2103 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2104 | ||
2105 | wxPyEndAllowThreads(__tstate); | |
2106 | if (PyErr_Occurred()) SWIG_fail; | |
2107 | } | |
2108 | { | |
2109 | wxSize * resultptr; | |
2110 | resultptr = new wxSize((wxSize &) result); | |
2111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2112 | } | |
2113 | return resultobj; | |
2114 | fail: | |
2115 | return NULL; | |
2116 | } | |
2117 | ||
2118 | ||
2119 | static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2120 | PyObject *resultobj; | |
2121 | wxSize *arg1 = (wxSize *) 0 ; | |
2122 | wxSize *arg2 = 0 ; | |
2123 | wxSize result; | |
2124 | wxSize temp2 ; | |
2125 | PyObject * obj0 = 0 ; | |
2126 | PyObject * obj1 = 0 ; | |
2127 | char *kwnames[] = { | |
2128 | (char *) "self",(char *) "sz", NULL | |
2129 | }; | |
2130 | ||
2131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2134 | { | |
2135 | arg2 = &temp2; | |
2136 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2137 | } | |
2138 | { | |
2139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2140 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2141 | ||
2142 | wxPyEndAllowThreads(__tstate); | |
2143 | if (PyErr_Occurred()) SWIG_fail; | |
2144 | } | |
2145 | { | |
2146 | wxSize * resultptr; | |
2147 | resultptr = new wxSize((wxSize &) result); | |
2148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2149 | } | |
2150 | return resultobj; | |
2151 | fail: | |
2152 | return NULL; | |
2153 | } | |
2154 | ||
2155 | ||
2156 | static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2157 | PyObject *resultobj; | |
2158 | wxSize *arg1 = (wxSize *) 0 ; | |
2159 | wxSize *arg2 = 0 ; | |
2160 | wxSize temp2 ; | |
2161 | PyObject * obj0 = 0 ; | |
2162 | PyObject * obj1 = 0 ; | |
2163 | char *kwnames[] = { | |
2164 | (char *) "self",(char *) "sz", NULL | |
2165 | }; | |
2166 | ||
2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2170 | { | |
2171 | arg2 = &temp2; | |
2172 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2173 | } | |
2174 | { | |
2175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2176 | (arg1)->IncTo((wxSize const &)*arg2); | |
2177 | ||
2178 | wxPyEndAllowThreads(__tstate); | |
2179 | if (PyErr_Occurred()) SWIG_fail; | |
2180 | } | |
2181 | Py_INCREF(Py_None); resultobj = Py_None; | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
2188 | static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2189 | PyObject *resultobj; | |
2190 | wxSize *arg1 = (wxSize *) 0 ; | |
2191 | wxSize *arg2 = 0 ; | |
2192 | wxSize temp2 ; | |
2193 | PyObject * obj0 = 0 ; | |
2194 | PyObject * obj1 = 0 ; | |
2195 | char *kwnames[] = { | |
2196 | (char *) "self",(char *) "sz", NULL | |
2197 | }; | |
2198 | ||
2199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2202 | { | |
2203 | arg2 = &temp2; | |
2204 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2208 | (arg1)->DecTo((wxSize const &)*arg2); | |
2209 | ||
2210 | wxPyEndAllowThreads(__tstate); | |
2211 | if (PyErr_Occurred()) SWIG_fail; | |
2212 | } | |
2213 | Py_INCREF(Py_None); resultobj = Py_None; | |
2214 | return resultobj; | |
2215 | fail: | |
2216 | return NULL; | |
2217 | } | |
2218 | ||
2219 | ||
2220 | static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2221 | PyObject *resultobj; | |
2222 | wxSize *arg1 = (wxSize *) 0 ; | |
2223 | int arg2 ; | |
2224 | int arg3 ; | |
2225 | PyObject * obj0 = 0 ; | |
2226 | PyObject * obj1 = 0 ; | |
2227 | PyObject * obj2 = 0 ; | |
2228 | char *kwnames[] = { | |
2229 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2230 | }; | |
2231 | ||
2232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2235 | arg2 = (int) SWIG_AsInt(obj1); | |
2236 | if (PyErr_Occurred()) SWIG_fail; | |
2237 | arg3 = (int) SWIG_AsInt(obj2); | |
2238 | if (PyErr_Occurred()) SWIG_fail; | |
2239 | { | |
2240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2241 | (arg1)->Set(arg2,arg3); | |
2242 | ||
2243 | wxPyEndAllowThreads(__tstate); | |
2244 | if (PyErr_Occurred()) SWIG_fail; | |
2245 | } | |
2246 | Py_INCREF(Py_None); resultobj = Py_None; | |
2247 | return resultobj; | |
2248 | fail: | |
2249 | return NULL; | |
2250 | } | |
2251 | ||
2252 | ||
2253 | static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2254 | PyObject *resultobj; | |
2255 | wxSize *arg1 = (wxSize *) 0 ; | |
2256 | int arg2 ; | |
2257 | PyObject * obj0 = 0 ; | |
2258 | PyObject * obj1 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self",(char *) "w", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2266 | arg2 = (int) SWIG_AsInt(obj1); | |
2267 | if (PyErr_Occurred()) SWIG_fail; | |
2268 | { | |
2269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2270 | (arg1)->SetWidth(arg2); | |
2271 | ||
2272 | wxPyEndAllowThreads(__tstate); | |
2273 | if (PyErr_Occurred()) SWIG_fail; | |
2274 | } | |
2275 | Py_INCREF(Py_None); resultobj = Py_None; | |
2276 | return resultobj; | |
2277 | fail: | |
2278 | return NULL; | |
2279 | } | |
2280 | ||
2281 | ||
2282 | static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject *resultobj; | |
2284 | wxSize *arg1 = (wxSize *) 0 ; | |
2285 | int arg2 ; | |
2286 | PyObject * obj0 = 0 ; | |
2287 | PyObject * obj1 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self",(char *) "h", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2295 | arg2 = (int) SWIG_AsInt(obj1); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
2297 | { | |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | (arg1)->SetHeight(arg2); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | Py_INCREF(Py_None); resultobj = Py_None; | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxSize *arg1 = (wxSize *) 0 ; | |
2314 | int result; | |
2315 | PyObject * obj0 = 0 ; | |
2316 | char *kwnames[] = { | |
2317 | (char *) "self", NULL | |
2318 | }; | |
2319 | ||
2320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2323 | { | |
2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2325 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2326 | ||
2327 | wxPyEndAllowThreads(__tstate); | |
2328 | if (PyErr_Occurred()) SWIG_fail; | |
2329 | } | |
2330 | resultobj = SWIG_FromInt((int)result); | |
2331 | return resultobj; | |
2332 | fail: | |
2333 | return NULL; | |
2334 | } | |
2335 | ||
2336 | ||
2337 | static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2338 | PyObject *resultobj; | |
2339 | wxSize *arg1 = (wxSize *) 0 ; | |
2340 | int result; | |
2341 | PyObject * obj0 = 0 ; | |
2342 | char *kwnames[] = { | |
2343 | (char *) "self", NULL | |
2344 | }; | |
2345 | ||
2346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2349 | { | |
2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2351 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2352 | ||
2353 | wxPyEndAllowThreads(__tstate); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
2355 | } | |
2356 | resultobj = SWIG_FromInt((int)result); | |
2357 | return resultobj; | |
2358 | fail: | |
2359 | return NULL; | |
2360 | } | |
2361 | ||
2362 | ||
2363 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2364 | PyObject *resultobj; | |
2365 | wxSize *arg1 = (wxSize *) 0 ; | |
2366 | bool result; | |
2367 | PyObject * obj0 = 0 ; | |
2368 | char *kwnames[] = { | |
2369 | (char *) "self", NULL | |
2370 | }; | |
2371 | ||
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2375 | { | |
2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2377 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2378 | ||
2379 | wxPyEndAllowThreads(__tstate); | |
2380 | if (PyErr_Occurred()) SWIG_fail; | |
2381 | } | |
2382 | { | |
2383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2384 | } | |
2385 | return resultobj; | |
2386 | fail: | |
2387 | return NULL; | |
2388 | } | |
2389 | ||
2390 | ||
2391 | static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2392 | PyObject *resultobj; | |
2393 | wxSize *arg1 = (wxSize *) 0 ; | |
2394 | wxSize *arg2 = 0 ; | |
2395 | wxSize temp2 ; | |
2396 | PyObject * obj0 = 0 ; | |
2397 | PyObject * obj1 = 0 ; | |
2398 | char *kwnames[] = { | |
2399 | (char *) "self",(char *) "size", NULL | |
2400 | }; | |
2401 | ||
2402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2405 | { | |
2406 | arg2 = &temp2; | |
2407 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2408 | } | |
2409 | { | |
2410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2411 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2412 | ||
2413 | wxPyEndAllowThreads(__tstate); | |
2414 | if (PyErr_Occurred()) SWIG_fail; | |
2415 | } | |
2416 | Py_INCREF(Py_None); resultobj = Py_None; | |
2417 | return resultobj; | |
2418 | fail: | |
2419 | return NULL; | |
2420 | } | |
2421 | ||
2422 | ||
2423 | static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2424 | PyObject *resultobj; | |
2425 | wxSize *arg1 = (wxSize *) 0 ; | |
2426 | PyObject *result; | |
2427 | PyObject * obj0 = 0 ; | |
2428 | char *kwnames[] = { | |
2429 | (char *) "self", NULL | |
2430 | }; | |
2431 | ||
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2435 | { | |
2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2437 | result = (PyObject *)wxSize_Get(arg1); | |
2438 | ||
2439 | wxPyEndAllowThreads(__tstate); | |
2440 | if (PyErr_Occurred()) SWIG_fail; | |
2441 | } | |
2442 | resultobj = result; | |
2443 | return resultobj; | |
2444 | fail: | |
2445 | return NULL; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | static PyObject * Size_swigregister(PyObject *self, PyObject *args) { | |
2450 | PyObject *obj; | |
2451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2452 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2453 | Py_INCREF(obj); | |
2454 | return Py_BuildValue((char *)""); | |
2455 | } | |
2456 | static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2457 | PyObject *resultobj; | |
2458 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2459 | double arg2 ; | |
2460 | PyObject * obj0 = 0 ; | |
2461 | PyObject * obj1 = 0 ; | |
2462 | char *kwnames[] = { | |
2463 | (char *) "self",(char *) "x", NULL | |
2464 | }; | |
2465 | ||
2466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2469 | arg2 = (double) SWIG_AsDouble(obj1); | |
2470 | if (PyErr_Occurred()) SWIG_fail; | |
2471 | if (arg1) (arg1)->x = arg2; | |
2472 | ||
2473 | Py_INCREF(Py_None); resultobj = Py_None; | |
2474 | return resultobj; | |
2475 | fail: | |
2476 | return NULL; | |
2477 | } | |
2478 | ||
2479 | ||
2480 | static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2481 | PyObject *resultobj; | |
2482 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2483 | double result; | |
2484 | PyObject * obj0 = 0 ; | |
2485 | char *kwnames[] = { | |
2486 | (char *) "self", NULL | |
2487 | }; | |
2488 | ||
2489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2492 | result = (double) ((arg1)->x); | |
2493 | ||
2494 | resultobj = SWIG_FromDouble((double)result); | |
2495 | return resultobj; | |
2496 | fail: | |
2497 | return NULL; | |
2498 | } | |
2499 | ||
2500 | ||
2501 | static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2502 | PyObject *resultobj; | |
2503 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2504 | double arg2 ; | |
2505 | PyObject * obj0 = 0 ; | |
2506 | PyObject * obj1 = 0 ; | |
2507 | char *kwnames[] = { | |
2508 | (char *) "self",(char *) "y", NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2514 | arg2 = (double) SWIG_AsDouble(obj1); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | if (arg1) (arg1)->y = arg2; | |
2517 | ||
2518 | Py_INCREF(Py_None); resultobj = Py_None; | |
2519 | return resultobj; | |
2520 | fail: | |
2521 | return NULL; | |
2522 | } | |
2523 | ||
2524 | ||
2525 | static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2526 | PyObject *resultobj; | |
2527 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2528 | double result; | |
2529 | PyObject * obj0 = 0 ; | |
2530 | char *kwnames[] = { | |
2531 | (char *) "self", NULL | |
2532 | }; | |
2533 | ||
2534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2537 | result = (double) ((arg1)->y); | |
2538 | ||
2539 | resultobj = SWIG_FromDouble((double)result); | |
2540 | return resultobj; | |
2541 | fail: | |
2542 | return NULL; | |
2543 | } | |
2544 | ||
2545 | ||
2546 | static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2547 | PyObject *resultobj; | |
2548 | double arg1 = (double) 0.0 ; | |
2549 | double arg2 = (double) 0.0 ; | |
2550 | wxRealPoint *result; | |
2551 | PyObject * obj0 = 0 ; | |
2552 | PyObject * obj1 = 0 ; | |
2553 | char *kwnames[] = { | |
2554 | (char *) "x",(char *) "y", NULL | |
2555 | }; | |
2556 | ||
2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2558 | if (obj0) { | |
2559 | arg1 = (double) SWIG_AsDouble(obj0); | |
2560 | if (PyErr_Occurred()) SWIG_fail; | |
2561 | } | |
2562 | if (obj1) { | |
2563 | arg2 = (double) SWIG_AsDouble(obj1); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
2565 | } | |
2566 | { | |
2567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2568 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2569 | ||
2570 | wxPyEndAllowThreads(__tstate); | |
2571 | if (PyErr_Occurred()) SWIG_fail; | |
2572 | } | |
2573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2574 | return resultobj; | |
2575 | fail: | |
2576 | return NULL; | |
2577 | } | |
2578 | ||
2579 | ||
2580 | static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2581 | PyObject *resultobj; | |
2582 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2583 | PyObject * obj0 = 0 ; | |
2584 | char *kwnames[] = { | |
2585 | (char *) "self", NULL | |
2586 | }; | |
2587 | ||
2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2591 | { | |
2592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2593 | delete arg1; | |
2594 | ||
2595 | wxPyEndAllowThreads(__tstate); | |
2596 | if (PyErr_Occurred()) SWIG_fail; | |
2597 | } | |
2598 | Py_INCREF(Py_None); resultobj = Py_None; | |
2599 | return resultobj; | |
2600 | fail: | |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2608 | wxRealPoint *arg2 = 0 ; | |
2609 | bool result; | |
2610 | wxRealPoint temp2 ; | |
2611 | PyObject * obj0 = 0 ; | |
2612 | PyObject * obj1 = 0 ; | |
2613 | char *kwnames[] = { | |
2614 | (char *) "self",(char *) "pt", NULL | |
2615 | }; | |
2616 | ||
2617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2620 | { | |
2621 | arg2 = &temp2; | |
2622 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2623 | } | |
2624 | { | |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2627 | ||
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
2631 | { | |
2632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2633 | } | |
2634 | return resultobj; | |
2635 | fail: | |
2636 | return NULL; | |
2637 | } | |
2638 | ||
2639 | ||
2640 | static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2641 | PyObject *resultobj; | |
2642 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2643 | wxRealPoint *arg2 = 0 ; | |
2644 | bool result; | |
2645 | wxRealPoint temp2 ; | |
2646 | PyObject * obj0 = 0 ; | |
2647 | PyObject * obj1 = 0 ; | |
2648 | char *kwnames[] = { | |
2649 | (char *) "self",(char *) "pt", NULL | |
2650 | }; | |
2651 | ||
2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2655 | { | |
2656 | arg2 = &temp2; | |
2657 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2658 | } | |
2659 | { | |
2660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2661 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2662 | ||
2663 | wxPyEndAllowThreads(__tstate); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
2665 | } | |
2666 | { | |
2667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2668 | } | |
2669 | return resultobj; | |
2670 | fail: | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2678 | wxRealPoint *arg2 = 0 ; | |
2679 | wxRealPoint result; | |
2680 | wxRealPoint temp2 ; | |
2681 | PyObject * obj0 = 0 ; | |
2682 | PyObject * obj1 = 0 ; | |
2683 | char *kwnames[] = { | |
2684 | (char *) "self",(char *) "pt", NULL | |
2685 | }; | |
2686 | ||
2687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2690 | { | |
2691 | arg2 = &temp2; | |
2692 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2693 | } | |
2694 | { | |
2695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2696 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2697 | ||
2698 | wxPyEndAllowThreads(__tstate); | |
2699 | if (PyErr_Occurred()) SWIG_fail; | |
2700 | } | |
2701 | { | |
2702 | wxRealPoint * resultptr; | |
2703 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2705 | } | |
2706 | return resultobj; | |
2707 | fail: | |
2708 | return NULL; | |
2709 | } | |
2710 | ||
2711 | ||
2712 | static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2713 | PyObject *resultobj; | |
2714 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2715 | wxRealPoint *arg2 = 0 ; | |
2716 | wxRealPoint result; | |
2717 | wxRealPoint temp2 ; | |
2718 | PyObject * obj0 = 0 ; | |
2719 | PyObject * obj1 = 0 ; | |
2720 | char *kwnames[] = { | |
2721 | (char *) "self",(char *) "pt", NULL | |
2722 | }; | |
2723 | ||
2724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2727 | { | |
2728 | arg2 = &temp2; | |
2729 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2730 | } | |
2731 | { | |
2732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2733 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
2734 | ||
2735 | wxPyEndAllowThreads(__tstate); | |
2736 | if (PyErr_Occurred()) SWIG_fail; | |
2737 | } | |
2738 | { | |
2739 | wxRealPoint * resultptr; | |
2740 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
2741 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
2742 | } | |
2743 | return resultobj; | |
2744 | fail: | |
2745 | return NULL; | |
2746 | } | |
2747 | ||
2748 | ||
2749 | static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2750 | PyObject *resultobj; | |
2751 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2752 | double arg2 ; | |
2753 | double arg3 ; | |
2754 | PyObject * obj0 = 0 ; | |
2755 | PyObject * obj1 = 0 ; | |
2756 | PyObject * obj2 = 0 ; | |
2757 | char *kwnames[] = { | |
2758 | (char *) "self",(char *) "x",(char *) "y", NULL | |
2759 | }; | |
2760 | ||
2761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2764 | arg2 = (double) SWIG_AsDouble(obj1); | |
2765 | if (PyErr_Occurred()) SWIG_fail; | |
2766 | arg3 = (double) SWIG_AsDouble(obj2); | |
2767 | if (PyErr_Occurred()) SWIG_fail; | |
2768 | { | |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2770 | wxRealPoint_Set(arg1,arg2,arg3); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | } | |
2775 | Py_INCREF(Py_None); resultobj = Py_None; | |
2776 | return resultobj; | |
2777 | fail: | |
2778 | return NULL; | |
2779 | } | |
2780 | ||
2781 | ||
2782 | static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2783 | PyObject *resultobj; | |
2784 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2785 | PyObject *result; | |
2786 | PyObject * obj0 = 0 ; | |
2787 | char *kwnames[] = { | |
2788 | (char *) "self", NULL | |
2789 | }; | |
2790 | ||
2791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
2792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2794 | { | |
2795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2796 | result = (PyObject *)wxRealPoint_Get(arg1); | |
2797 | ||
2798 | wxPyEndAllowThreads(__tstate); | |
2799 | if (PyErr_Occurred()) SWIG_fail; | |
2800 | } | |
2801 | resultobj = result; | |
2802 | return resultobj; | |
2803 | fail: | |
2804 | return NULL; | |
2805 | } | |
2806 | ||
2807 | ||
2808 | static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) { | |
2809 | PyObject *obj; | |
2810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2811 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
2812 | Py_INCREF(obj); | |
2813 | return Py_BuildValue((char *)""); | |
2814 | } | |
2815 | static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2816 | PyObject *resultobj; | |
2817 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2818 | int arg2 ; | |
2819 | PyObject * obj0 = 0 ; | |
2820 | PyObject * obj1 = 0 ; | |
2821 | char *kwnames[] = { | |
2822 | (char *) "self",(char *) "x", NULL | |
2823 | }; | |
2824 | ||
2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2828 | arg2 = (int) SWIG_AsInt(obj1); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
2830 | if (arg1) (arg1)->x = arg2; | |
2831 | ||
2832 | Py_INCREF(Py_None); resultobj = Py_None; | |
2833 | return resultobj; | |
2834 | fail: | |
2835 | return NULL; | |
2836 | } | |
2837 | ||
2838 | ||
2839 | static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2840 | PyObject *resultobj; | |
2841 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2842 | int result; | |
2843 | PyObject * obj0 = 0 ; | |
2844 | char *kwnames[] = { | |
2845 | (char *) "self", NULL | |
2846 | }; | |
2847 | ||
2848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
2849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2851 | result = (int) ((arg1)->x); | |
2852 | ||
2853 | resultobj = SWIG_FromInt((int)result); | |
2854 | return resultobj; | |
2855 | fail: | |
2856 | return NULL; | |
2857 | } | |
2858 | ||
2859 | ||
2860 | static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2861 | PyObject *resultobj; | |
2862 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2863 | int arg2 ; | |
2864 | PyObject * obj0 = 0 ; | |
2865 | PyObject * obj1 = 0 ; | |
2866 | char *kwnames[] = { | |
2867 | (char *) "self",(char *) "y", NULL | |
2868 | }; | |
2869 | ||
2870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2873 | arg2 = (int) SWIG_AsInt(obj1); | |
2874 | if (PyErr_Occurred()) SWIG_fail; | |
2875 | if (arg1) (arg1)->y = arg2; | |
2876 | ||
2877 | Py_INCREF(Py_None); resultobj = Py_None; | |
2878 | return resultobj; | |
2879 | fail: | |
2880 | return NULL; | |
2881 | } | |
2882 | ||
2883 | ||
2884 | static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2885 | PyObject *resultobj; | |
2886 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2887 | int result; | |
2888 | PyObject * obj0 = 0 ; | |
2889 | char *kwnames[] = { | |
2890 | (char *) "self", NULL | |
2891 | }; | |
2892 | ||
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
2894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2896 | result = (int) ((arg1)->y); | |
2897 | ||
2898 | resultobj = SWIG_FromInt((int)result); | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject *resultobj; | |
2907 | int arg1 = (int) 0 ; | |
2908 | int arg2 = (int) 0 ; | |
2909 | wxPoint *result; | |
2910 | PyObject * obj0 = 0 ; | |
2911 | PyObject * obj1 = 0 ; | |
2912 | char *kwnames[] = { | |
2913 | (char *) "x",(char *) "y", NULL | |
2914 | }; | |
2915 | ||
2916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
2917 | if (obj0) { | |
2918 | arg1 = (int) SWIG_AsInt(obj0); | |
2919 | if (PyErr_Occurred()) SWIG_fail; | |
2920 | } | |
2921 | if (obj1) { | |
2922 | arg2 = (int) SWIG_AsInt(obj1); | |
2923 | if (PyErr_Occurred()) SWIG_fail; | |
2924 | } | |
2925 | { | |
2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2927 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
2928 | ||
2929 | wxPyEndAllowThreads(__tstate); | |
2930 | if (PyErr_Occurred()) SWIG_fail; | |
2931 | } | |
2932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
2933 | return resultobj; | |
2934 | fail: | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
2939 | static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject *resultobj; | |
2941 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2942 | PyObject * obj0 = 0 ; | |
2943 | char *kwnames[] = { | |
2944 | (char *) "self", NULL | |
2945 | }; | |
2946 | ||
2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
2948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2950 | { | |
2951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2952 | delete arg1; | |
2953 | ||
2954 | wxPyEndAllowThreads(__tstate); | |
2955 | if (PyErr_Occurred()) SWIG_fail; | |
2956 | } | |
2957 | Py_INCREF(Py_None); resultobj = Py_None; | |
2958 | return resultobj; | |
2959 | fail: | |
2960 | return NULL; | |
2961 | } | |
2962 | ||
2963 | ||
2964 | static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2965 | PyObject *resultobj; | |
2966 | wxPoint *arg1 = (wxPoint *) 0 ; | |
2967 | wxPoint *arg2 = 0 ; | |
2968 | bool result; | |
2969 | wxPoint temp2 ; | |
2970 | PyObject * obj0 = 0 ; | |
2971 | PyObject * obj1 = 0 ; | |
2972 | char *kwnames[] = { | |
2973 | (char *) "self",(char *) "pt", NULL | |
2974 | }; | |
2975 | ||
2976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
2978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2979 | { | |
2980 | arg2 = &temp2; | |
2981 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
2982 | } | |
2983 | { | |
2984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2985 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
2986 | ||
2987 | wxPyEndAllowThreads(__tstate); | |
2988 | if (PyErr_Occurred()) SWIG_fail; | |
2989 | } | |
2990 | { | |
2991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2992 | } | |
2993 | return resultobj; | |
2994 | fail: | |
2995 | return NULL; | |
2996 | } | |
2997 | ||
2998 | ||
2999 | static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3000 | PyObject *resultobj; | |
3001 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3002 | wxPoint *arg2 = 0 ; | |
3003 | bool result; | |
3004 | wxPoint temp2 ; | |
3005 | PyObject * obj0 = 0 ; | |
3006 | PyObject * obj1 = 0 ; | |
3007 | char *kwnames[] = { | |
3008 | (char *) "self",(char *) "pt", NULL | |
3009 | }; | |
3010 | ||
3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3014 | { | |
3015 | arg2 = &temp2; | |
3016 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3017 | } | |
3018 | { | |
3019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3020 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3021 | ||
3022 | wxPyEndAllowThreads(__tstate); | |
3023 | if (PyErr_Occurred()) SWIG_fail; | |
3024 | } | |
3025 | { | |
3026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3027 | } | |
3028 | return resultobj; | |
3029 | fail: | |
3030 | return NULL; | |
3031 | } | |
3032 | ||
3033 | ||
3034 | static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3035 | PyObject *resultobj; | |
3036 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3037 | wxPoint *arg2 = 0 ; | |
3038 | wxPoint result; | |
3039 | wxPoint temp2 ; | |
3040 | PyObject * obj0 = 0 ; | |
3041 | PyObject * obj1 = 0 ; | |
3042 | char *kwnames[] = { | |
3043 | (char *) "self",(char *) "pt", NULL | |
3044 | }; | |
3045 | ||
3046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3049 | { | |
3050 | arg2 = &temp2; | |
3051 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3052 | } | |
3053 | { | |
3054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3055 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3056 | ||
3057 | wxPyEndAllowThreads(__tstate); | |
3058 | if (PyErr_Occurred()) SWIG_fail; | |
3059 | } | |
3060 | { | |
3061 | wxPoint * resultptr; | |
3062 | resultptr = new wxPoint((wxPoint &) result); | |
3063 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3064 | } | |
3065 | return resultobj; | |
3066 | fail: | |
3067 | return NULL; | |
3068 | } | |
3069 | ||
3070 | ||
3071 | static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3072 | PyObject *resultobj; | |
3073 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3074 | wxPoint *arg2 = 0 ; | |
3075 | wxPoint result; | |
3076 | wxPoint temp2 ; | |
3077 | PyObject * obj0 = 0 ; | |
3078 | PyObject * obj1 = 0 ; | |
3079 | char *kwnames[] = { | |
3080 | (char *) "self",(char *) "pt", NULL | |
3081 | }; | |
3082 | ||
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3086 | { | |
3087 | arg2 = &temp2; | |
3088 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3089 | } | |
3090 | { | |
3091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3092 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3093 | ||
3094 | wxPyEndAllowThreads(__tstate); | |
3095 | if (PyErr_Occurred()) SWIG_fail; | |
3096 | } | |
3097 | { | |
3098 | wxPoint * resultptr; | |
3099 | resultptr = new wxPoint((wxPoint &) result); | |
3100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3101 | } | |
3102 | return resultobj; | |
3103 | fail: | |
3104 | return NULL; | |
3105 | } | |
3106 | ||
3107 | ||
3108 | static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3109 | PyObject *resultobj; | |
3110 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3111 | wxPoint *arg2 = 0 ; | |
3112 | wxPoint *result; | |
3113 | wxPoint temp2 ; | |
3114 | PyObject * obj0 = 0 ; | |
3115 | PyObject * obj1 = 0 ; | |
3116 | char *kwnames[] = { | |
3117 | (char *) "self",(char *) "pt", NULL | |
3118 | }; | |
3119 | ||
3120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3123 | { | |
3124 | arg2 = &temp2; | |
3125 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3126 | } | |
3127 | { | |
3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3129 | { | |
3130 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3131 | result = (wxPoint *) &_result_ref; | |
3132 | } | |
3133 | ||
3134 | wxPyEndAllowThreads(__tstate); | |
3135 | if (PyErr_Occurred()) SWIG_fail; | |
3136 | } | |
3137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3138 | return resultobj; | |
3139 | fail: | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | ||
3144 | static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3145 | PyObject *resultobj; | |
3146 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3147 | wxPoint *arg2 = 0 ; | |
3148 | wxPoint *result; | |
3149 | wxPoint temp2 ; | |
3150 | PyObject * obj0 = 0 ; | |
3151 | PyObject * obj1 = 0 ; | |
3152 | char *kwnames[] = { | |
3153 | (char *) "self",(char *) "pt", NULL | |
3154 | }; | |
3155 | ||
3156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3159 | { | |
3160 | arg2 = &temp2; | |
3161 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3162 | } | |
3163 | { | |
3164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3165 | { | |
3166 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3167 | result = (wxPoint *) &_result_ref; | |
3168 | } | |
3169 | ||
3170 | wxPyEndAllowThreads(__tstate); | |
3171 | if (PyErr_Occurred()) SWIG_fail; | |
3172 | } | |
3173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
3174 | return resultobj; | |
3175 | fail: | |
3176 | return NULL; | |
3177 | } | |
3178 | ||
3179 | ||
3180 | static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3181 | PyObject *resultobj; | |
3182 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3183 | long arg2 ; | |
3184 | long arg3 ; | |
3185 | PyObject * obj0 = 0 ; | |
3186 | PyObject * obj1 = 0 ; | |
3187 | PyObject * obj2 = 0 ; | |
3188 | char *kwnames[] = { | |
3189 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3190 | }; | |
3191 | ||
3192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3195 | arg2 = (long) SWIG_AsLong(obj1); | |
3196 | if (PyErr_Occurred()) SWIG_fail; | |
3197 | arg3 = (long) SWIG_AsLong(obj2); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | { | |
3200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3201 | wxPoint_Set(arg1,arg2,arg3); | |
3202 | ||
3203 | wxPyEndAllowThreads(__tstate); | |
3204 | if (PyErr_Occurred()) SWIG_fail; | |
3205 | } | |
3206 | Py_INCREF(Py_None); resultobj = Py_None; | |
3207 | return resultobj; | |
3208 | fail: | |
3209 | return NULL; | |
3210 | } | |
3211 | ||
3212 | ||
3213 | static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3214 | PyObject *resultobj; | |
3215 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3216 | PyObject *result; | |
3217 | PyObject * obj0 = 0 ; | |
3218 | char *kwnames[] = { | |
3219 | (char *) "self", NULL | |
3220 | }; | |
3221 | ||
3222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3225 | { | |
3226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3227 | result = (PyObject *)wxPoint_Get(arg1); | |
3228 | ||
3229 | wxPyEndAllowThreads(__tstate); | |
3230 | if (PyErr_Occurred()) SWIG_fail; | |
3231 | } | |
3232 | resultobj = result; | |
3233 | return resultobj; | |
3234 | fail: | |
3235 | return NULL; | |
3236 | } | |
3237 | ||
3238 | ||
3239 | static PyObject * Point_swigregister(PyObject *self, PyObject *args) { | |
3240 | PyObject *obj; | |
3241 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3242 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3243 | Py_INCREF(obj); | |
3244 | return Py_BuildValue((char *)""); | |
3245 | } | |
3246 | static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | int arg1 = (int) 0 ; | |
3249 | int arg2 = (int) 0 ; | |
3250 | int arg3 = (int) 0 ; | |
3251 | int arg4 = (int) 0 ; | |
3252 | wxRect *result; | |
3253 | PyObject * obj0 = 0 ; | |
3254 | PyObject * obj1 = 0 ; | |
3255 | PyObject * obj2 = 0 ; | |
3256 | PyObject * obj3 = 0 ; | |
3257 | char *kwnames[] = { | |
3258 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3259 | }; | |
3260 | ||
3261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3262 | if (obj0) { | |
3263 | arg1 = (int) SWIG_AsInt(obj0); | |
3264 | if (PyErr_Occurred()) SWIG_fail; | |
3265 | } | |
3266 | if (obj1) { | |
3267 | arg2 = (int) SWIG_AsInt(obj1); | |
3268 | if (PyErr_Occurred()) SWIG_fail; | |
3269 | } | |
3270 | if (obj2) { | |
3271 | arg3 = (int) SWIG_AsInt(obj2); | |
3272 | if (PyErr_Occurred()) SWIG_fail; | |
3273 | } | |
3274 | if (obj3) { | |
3275 | arg4 = (int) SWIG_AsInt(obj3); | |
3276 | if (PyErr_Occurred()) SWIG_fail; | |
3277 | } | |
3278 | { | |
3279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3280 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3281 | ||
3282 | wxPyEndAllowThreads(__tstate); | |
3283 | if (PyErr_Occurred()) SWIG_fail; | |
3284 | } | |
3285 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3286 | return resultobj; | |
3287 | fail: | |
3288 | return NULL; | |
3289 | } | |
3290 | ||
3291 | ||
3292 | static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3293 | PyObject *resultobj; | |
3294 | wxPoint *arg1 = 0 ; | |
3295 | wxPoint *arg2 = 0 ; | |
3296 | wxRect *result; | |
3297 | wxPoint temp1 ; | |
3298 | wxPoint temp2 ; | |
3299 | PyObject * obj0 = 0 ; | |
3300 | PyObject * obj1 = 0 ; | |
3301 | char *kwnames[] = { | |
3302 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3306 | { | |
3307 | arg1 = &temp1; | |
3308 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3309 | } | |
3310 | { | |
3311 | arg2 = &temp2; | |
3312 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3313 | } | |
3314 | { | |
3315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3316 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3317 | ||
3318 | wxPyEndAllowThreads(__tstate); | |
3319 | if (PyErr_Occurred()) SWIG_fail; | |
3320 | } | |
3321 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3322 | return resultobj; | |
3323 | fail: | |
3324 | return NULL; | |
3325 | } | |
3326 | ||
3327 | ||
3328 | static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3329 | PyObject *resultobj; | |
3330 | wxPoint *arg1 = 0 ; | |
3331 | wxSize *arg2 = 0 ; | |
3332 | wxRect *result; | |
3333 | wxPoint temp1 ; | |
3334 | wxSize temp2 ; | |
3335 | PyObject * obj0 = 0 ; | |
3336 | PyObject * obj1 = 0 ; | |
3337 | char *kwnames[] = { | |
3338 | (char *) "pos",(char *) "size", NULL | |
3339 | }; | |
3340 | ||
3341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3342 | { | |
3343 | arg1 = &temp1; | |
3344 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3345 | } | |
3346 | { | |
3347 | arg2 = &temp2; | |
3348 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3349 | } | |
3350 | { | |
3351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3352 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3353 | ||
3354 | wxPyEndAllowThreads(__tstate); | |
3355 | if (PyErr_Occurred()) SWIG_fail; | |
3356 | } | |
3357 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3358 | return resultobj; | |
3359 | fail: | |
3360 | return NULL; | |
3361 | } | |
3362 | ||
3363 | ||
3364 | static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3365 | PyObject *resultobj; | |
3366 | wxRect *arg1 = (wxRect *) 0 ; | |
3367 | PyObject * obj0 = 0 ; | |
3368 | char *kwnames[] = { | |
3369 | (char *) "self", NULL | |
3370 | }; | |
3371 | ||
3372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3375 | { | |
3376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3377 | delete arg1; | |
3378 | ||
3379 | wxPyEndAllowThreads(__tstate); | |
3380 | if (PyErr_Occurred()) SWIG_fail; | |
3381 | } | |
3382 | Py_INCREF(Py_None); resultobj = Py_None; | |
3383 | return resultobj; | |
3384 | fail: | |
3385 | return NULL; | |
3386 | } | |
3387 | ||
3388 | ||
3389 | static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3390 | PyObject *resultobj; | |
3391 | wxRect *arg1 = (wxRect *) 0 ; | |
3392 | int result; | |
3393 | PyObject * obj0 = 0 ; | |
3394 | char *kwnames[] = { | |
3395 | (char *) "self", NULL | |
3396 | }; | |
3397 | ||
3398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3401 | { | |
3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3403 | result = (int)((wxRect const *)arg1)->GetX(); | |
3404 | ||
3405 | wxPyEndAllowThreads(__tstate); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | } | |
3408 | resultobj = SWIG_FromInt((int)result); | |
3409 | return resultobj; | |
3410 | fail: | |
3411 | return NULL; | |
3412 | } | |
3413 | ||
3414 | ||
3415 | static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject *resultobj; | |
3417 | wxRect *arg1 = (wxRect *) 0 ; | |
3418 | int arg2 ; | |
3419 | PyObject * obj0 = 0 ; | |
3420 | PyObject * obj1 = 0 ; | |
3421 | char *kwnames[] = { | |
3422 | (char *) "self",(char *) "x", NULL | |
3423 | }; | |
3424 | ||
3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3428 | arg2 = (int) SWIG_AsInt(obj1); | |
3429 | if (PyErr_Occurred()) SWIG_fail; | |
3430 | { | |
3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3432 | (arg1)->SetX(arg2); | |
3433 | ||
3434 | wxPyEndAllowThreads(__tstate); | |
3435 | if (PyErr_Occurred()) SWIG_fail; | |
3436 | } | |
3437 | Py_INCREF(Py_None); resultobj = Py_None; | |
3438 | return resultobj; | |
3439 | fail: | |
3440 | return NULL; | |
3441 | } | |
3442 | ||
3443 | ||
3444 | static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3445 | PyObject *resultobj; | |
3446 | wxRect *arg1 = (wxRect *) 0 ; | |
3447 | int result; | |
3448 | PyObject * obj0 = 0 ; | |
3449 | char *kwnames[] = { | |
3450 | (char *) "self", NULL | |
3451 | }; | |
3452 | ||
3453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3456 | { | |
3457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3458 | result = (int)(arg1)->GetY(); | |
3459 | ||
3460 | wxPyEndAllowThreads(__tstate); | |
3461 | if (PyErr_Occurred()) SWIG_fail; | |
3462 | } | |
3463 | resultobj = SWIG_FromInt((int)result); | |
3464 | return resultobj; | |
3465 | fail: | |
3466 | return NULL; | |
3467 | } | |
3468 | ||
3469 | ||
3470 | static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3471 | PyObject *resultobj; | |
3472 | wxRect *arg1 = (wxRect *) 0 ; | |
3473 | int arg2 ; | |
3474 | PyObject * obj0 = 0 ; | |
3475 | PyObject * obj1 = 0 ; | |
3476 | char *kwnames[] = { | |
3477 | (char *) "self",(char *) "y", NULL | |
3478 | }; | |
3479 | ||
3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3483 | arg2 = (int) SWIG_AsInt(obj1); | |
3484 | if (PyErr_Occurred()) SWIG_fail; | |
3485 | { | |
3486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3487 | (arg1)->SetY(arg2); | |
3488 | ||
3489 | wxPyEndAllowThreads(__tstate); | |
3490 | if (PyErr_Occurred()) SWIG_fail; | |
3491 | } | |
3492 | Py_INCREF(Py_None); resultobj = Py_None; | |
3493 | return resultobj; | |
3494 | fail: | |
3495 | return NULL; | |
3496 | } | |
3497 | ||
3498 | ||
3499 | static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3500 | PyObject *resultobj; | |
3501 | wxRect *arg1 = (wxRect *) 0 ; | |
3502 | int result; | |
3503 | PyObject * obj0 = 0 ; | |
3504 | char *kwnames[] = { | |
3505 | (char *) "self", NULL | |
3506 | }; | |
3507 | ||
3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3511 | { | |
3512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3513 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3514 | ||
3515 | wxPyEndAllowThreads(__tstate); | |
3516 | if (PyErr_Occurred()) SWIG_fail; | |
3517 | } | |
3518 | resultobj = SWIG_FromInt((int)result); | |
3519 | return resultobj; | |
3520 | fail: | |
3521 | return NULL; | |
3522 | } | |
3523 | ||
3524 | ||
3525 | static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3526 | PyObject *resultobj; | |
3527 | wxRect *arg1 = (wxRect *) 0 ; | |
3528 | int arg2 ; | |
3529 | PyObject * obj0 = 0 ; | |
3530 | PyObject * obj1 = 0 ; | |
3531 | char *kwnames[] = { | |
3532 | (char *) "self",(char *) "w", NULL | |
3533 | }; | |
3534 | ||
3535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3538 | arg2 = (int) SWIG_AsInt(obj1); | |
3539 | if (PyErr_Occurred()) SWIG_fail; | |
3540 | { | |
3541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3542 | (arg1)->SetWidth(arg2); | |
3543 | ||
3544 | wxPyEndAllowThreads(__tstate); | |
3545 | if (PyErr_Occurred()) SWIG_fail; | |
3546 | } | |
3547 | Py_INCREF(Py_None); resultobj = Py_None; | |
3548 | return resultobj; | |
3549 | fail: | |
3550 | return NULL; | |
3551 | } | |
3552 | ||
3553 | ||
3554 | static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3555 | PyObject *resultobj; | |
3556 | wxRect *arg1 = (wxRect *) 0 ; | |
3557 | int result; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | char *kwnames[] = { | |
3560 | (char *) "self", NULL | |
3561 | }; | |
3562 | ||
3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3566 | { | |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | resultobj = SWIG_FromInt((int)result); | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
3580 | static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject *resultobj; | |
3582 | wxRect *arg1 = (wxRect *) 0 ; | |
3583 | int arg2 ; | |
3584 | PyObject * obj0 = 0 ; | |
3585 | PyObject * obj1 = 0 ; | |
3586 | char *kwnames[] = { | |
3587 | (char *) "self",(char *) "h", NULL | |
3588 | }; | |
3589 | ||
3590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3593 | arg2 = (int) SWIG_AsInt(obj1); | |
3594 | if (PyErr_Occurred()) SWIG_fail; | |
3595 | { | |
3596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3597 | (arg1)->SetHeight(arg2); | |
3598 | ||
3599 | wxPyEndAllowThreads(__tstate); | |
3600 | if (PyErr_Occurred()) SWIG_fail; | |
3601 | } | |
3602 | Py_INCREF(Py_None); resultobj = Py_None; | |
3603 | return resultobj; | |
3604 | fail: | |
3605 | return NULL; | |
3606 | } | |
3607 | ||
3608 | ||
3609 | static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3610 | PyObject *resultobj; | |
3611 | wxRect *arg1 = (wxRect *) 0 ; | |
3612 | wxPoint result; | |
3613 | PyObject * obj0 = 0 ; | |
3614 | char *kwnames[] = { | |
3615 | (char *) "self", NULL | |
3616 | }; | |
3617 | ||
3618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | result = ((wxRect const *)arg1)->GetPosition(); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
3628 | { | |
3629 | wxPoint * resultptr; | |
3630 | resultptr = new wxPoint((wxPoint &) result); | |
3631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3632 | } | |
3633 | return resultobj; | |
3634 | fail: | |
3635 | return NULL; | |
3636 | } | |
3637 | ||
3638 | ||
3639 | static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3640 | PyObject *resultobj; | |
3641 | wxRect *arg1 = (wxRect *) 0 ; | |
3642 | wxPoint *arg2 = 0 ; | |
3643 | wxPoint temp2 ; | |
3644 | PyObject * obj0 = 0 ; | |
3645 | PyObject * obj1 = 0 ; | |
3646 | char *kwnames[] = { | |
3647 | (char *) "self",(char *) "p", NULL | |
3648 | }; | |
3649 | ||
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3653 | { | |
3654 | arg2 = &temp2; | |
3655 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3656 | } | |
3657 | { | |
3658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3659 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3660 | ||
3661 | wxPyEndAllowThreads(__tstate); | |
3662 | if (PyErr_Occurred()) SWIG_fail; | |
3663 | } | |
3664 | Py_INCREF(Py_None); resultobj = Py_None; | |
3665 | return resultobj; | |
3666 | fail: | |
3667 | return NULL; | |
3668 | } | |
3669 | ||
3670 | ||
3671 | static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3672 | PyObject *resultobj; | |
3673 | wxRect *arg1 = (wxRect *) 0 ; | |
3674 | wxSize result; | |
3675 | PyObject * obj0 = 0 ; | |
3676 | char *kwnames[] = { | |
3677 | (char *) "self", NULL | |
3678 | }; | |
3679 | ||
3680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3683 | { | |
3684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3685 | result = ((wxRect const *)arg1)->GetSize(); | |
3686 | ||
3687 | wxPyEndAllowThreads(__tstate); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | } | |
3690 | { | |
3691 | wxSize * resultptr; | |
3692 | resultptr = new wxSize((wxSize &) result); | |
3693 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3694 | } | |
3695 | return resultobj; | |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
3701 | static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject *resultobj; | |
3703 | wxRect *arg1 = (wxRect *) 0 ; | |
3704 | wxSize *arg2 = 0 ; | |
3705 | wxSize temp2 ; | |
3706 | PyObject * obj0 = 0 ; | |
3707 | PyObject * obj1 = 0 ; | |
3708 | char *kwnames[] = { | |
3709 | (char *) "self",(char *) "s", NULL | |
3710 | }; | |
3711 | ||
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
3713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3715 | { | |
3716 | arg2 = &temp2; | |
3717 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3718 | } | |
3719 | { | |
3720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3721 | (arg1)->SetSize((wxSize const &)*arg2); | |
3722 | ||
3723 | wxPyEndAllowThreads(__tstate); | |
3724 | if (PyErr_Occurred()) SWIG_fail; | |
3725 | } | |
3726 | Py_INCREF(Py_None); resultobj = Py_None; | |
3727 | return resultobj; | |
3728 | fail: | |
3729 | return NULL; | |
3730 | } | |
3731 | ||
3732 | ||
3733 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject *resultobj; | |
3735 | wxRect *arg1 = (wxRect *) 0 ; | |
3736 | wxPoint result; | |
3737 | PyObject * obj0 = 0 ; | |
3738 | char *kwnames[] = { | |
3739 | (char *) "self", NULL | |
3740 | }; | |
3741 | ||
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
3743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3745 | { | |
3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3747 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
3748 | ||
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
3751 | } | |
3752 | { | |
3753 | wxPoint * resultptr; | |
3754 | resultptr = new wxPoint((wxPoint &) result); | |
3755 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3756 | } | |
3757 | return resultobj; | |
3758 | fail: | |
3759 | return NULL; | |
3760 | } | |
3761 | ||
3762 | ||
3763 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3764 | PyObject *resultobj; | |
3765 | wxRect *arg1 = (wxRect *) 0 ; | |
3766 | wxPoint *arg2 = 0 ; | |
3767 | wxPoint temp2 ; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | PyObject * obj1 = 0 ; | |
3770 | char *kwnames[] = { | |
3771 | (char *) "self",(char *) "p", NULL | |
3772 | }; | |
3773 | ||
3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
3775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3777 | { | |
3778 | arg2 = &temp2; | |
3779 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3780 | } | |
3781 | { | |
3782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3783 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
3784 | ||
3785 | wxPyEndAllowThreads(__tstate); | |
3786 | if (PyErr_Occurred()) SWIG_fail; | |
3787 | } | |
3788 | Py_INCREF(Py_None); resultobj = Py_None; | |
3789 | return resultobj; | |
3790 | fail: | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
3795 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3796 | PyObject *resultobj; | |
3797 | wxRect *arg1 = (wxRect *) 0 ; | |
3798 | wxPoint result; | |
3799 | PyObject * obj0 = 0 ; | |
3800 | char *kwnames[] = { | |
3801 | (char *) "self", NULL | |
3802 | }; | |
3803 | ||
3804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
3805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3807 | { | |
3808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3809 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
3810 | ||
3811 | wxPyEndAllowThreads(__tstate); | |
3812 | if (PyErr_Occurred()) SWIG_fail; | |
3813 | } | |
3814 | { | |
3815 | wxPoint * resultptr; | |
3816 | resultptr = new wxPoint((wxPoint &) result); | |
3817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3818 | } | |
3819 | return resultobj; | |
3820 | fail: | |
3821 | return NULL; | |
3822 | } | |
3823 | ||
3824 | ||
3825 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3826 | PyObject *resultobj; | |
3827 | wxRect *arg1 = (wxRect *) 0 ; | |
3828 | wxPoint *arg2 = 0 ; | |
3829 | wxPoint temp2 ; | |
3830 | PyObject * obj0 = 0 ; | |
3831 | PyObject * obj1 = 0 ; | |
3832 | char *kwnames[] = { | |
3833 | (char *) "self",(char *) "p", NULL | |
3834 | }; | |
3835 | ||
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
3837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3839 | { | |
3840 | arg2 = &temp2; | |
3841 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3842 | } | |
3843 | { | |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
3850 | Py_INCREF(Py_None); resultobj = Py_None; | |
3851 | return resultobj; | |
3852 | fail: | |
3853 | return NULL; | |
3854 | } | |
3855 | ||
3856 | ||
3857 | static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3858 | PyObject *resultobj; | |
3859 | wxRect *arg1 = (wxRect *) 0 ; | |
3860 | int result; | |
3861 | PyObject * obj0 = 0 ; | |
3862 | char *kwnames[] = { | |
3863 | (char *) "self", NULL | |
3864 | }; | |
3865 | ||
3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
3867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3869 | { | |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3871 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
3872 | ||
3873 | wxPyEndAllowThreads(__tstate); | |
3874 | if (PyErr_Occurred()) SWIG_fail; | |
3875 | } | |
3876 | resultobj = SWIG_FromInt((int)result); | |
3877 | return resultobj; | |
3878 | fail: | |
3879 | return NULL; | |
3880 | } | |
3881 | ||
3882 | ||
3883 | static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3884 | PyObject *resultobj; | |
3885 | wxRect *arg1 = (wxRect *) 0 ; | |
3886 | int result; | |
3887 | PyObject * obj0 = 0 ; | |
3888 | char *kwnames[] = { | |
3889 | (char *) "self", NULL | |
3890 | }; | |
3891 | ||
3892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
3893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3895 | { | |
3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3897 | result = (int)((wxRect const *)arg1)->GetTop(); | |
3898 | ||
3899 | wxPyEndAllowThreads(__tstate); | |
3900 | if (PyErr_Occurred()) SWIG_fail; | |
3901 | } | |
3902 | resultobj = SWIG_FromInt((int)result); | |
3903 | return resultobj; | |
3904 | fail: | |
3905 | return NULL; | |
3906 | } | |
3907 | ||
3908 | ||
3909 | static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3910 | PyObject *resultobj; | |
3911 | wxRect *arg1 = (wxRect *) 0 ; | |
3912 | int result; | |
3913 | PyObject * obj0 = 0 ; | |
3914 | char *kwnames[] = { | |
3915 | (char *) "self", NULL | |
3916 | }; | |
3917 | ||
3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
3919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3921 | { | |
3922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3923 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
3924 | ||
3925 | wxPyEndAllowThreads(__tstate); | |
3926 | if (PyErr_Occurred()) SWIG_fail; | |
3927 | } | |
3928 | resultobj = SWIG_FromInt((int)result); | |
3929 | return resultobj; | |
3930 | fail: | |
3931 | return NULL; | |
3932 | } | |
3933 | ||
3934 | ||
3935 | static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3936 | PyObject *resultobj; | |
3937 | wxRect *arg1 = (wxRect *) 0 ; | |
3938 | int result; | |
3939 | PyObject * obj0 = 0 ; | |
3940 | char *kwnames[] = { | |
3941 | (char *) "self", NULL | |
3942 | }; | |
3943 | ||
3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
3945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3947 | { | |
3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3949 | result = (int)((wxRect const *)arg1)->GetRight(); | |
3950 | ||
3951 | wxPyEndAllowThreads(__tstate); | |
3952 | if (PyErr_Occurred()) SWIG_fail; | |
3953 | } | |
3954 | resultobj = SWIG_FromInt((int)result); | |
3955 | return resultobj; | |
3956 | fail: | |
3957 | return NULL; | |
3958 | } | |
3959 | ||
3960 | ||
3961 | static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3962 | PyObject *resultobj; | |
3963 | wxRect *arg1 = (wxRect *) 0 ; | |
3964 | int arg2 ; | |
3965 | PyObject * obj0 = 0 ; | |
3966 | PyObject * obj1 = 0 ; | |
3967 | char *kwnames[] = { | |
3968 | (char *) "self",(char *) "left", NULL | |
3969 | }; | |
3970 | ||
3971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
3972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3974 | arg2 = (int) SWIG_AsInt(obj1); | |
3975 | if (PyErr_Occurred()) SWIG_fail; | |
3976 | { | |
3977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3978 | (arg1)->SetLeft(arg2); | |
3979 | ||
3980 | wxPyEndAllowThreads(__tstate); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | Py_INCREF(Py_None); resultobj = Py_None; | |
3984 | return resultobj; | |
3985 | fail: | |
3986 | return NULL; | |
3987 | } | |
3988 | ||
3989 | ||
3990 | static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3991 | PyObject *resultobj; | |
3992 | wxRect *arg1 = (wxRect *) 0 ; | |
3993 | int arg2 ; | |
3994 | PyObject * obj0 = 0 ; | |
3995 | PyObject * obj1 = 0 ; | |
3996 | char *kwnames[] = { | |
3997 | (char *) "self",(char *) "right", NULL | |
3998 | }; | |
3999 | ||
4000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4003 | arg2 = (int) SWIG_AsInt(obj1); | |
4004 | if (PyErr_Occurred()) SWIG_fail; | |
4005 | { | |
4006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4007 | (arg1)->SetRight(arg2); | |
4008 | ||
4009 | wxPyEndAllowThreads(__tstate); | |
4010 | if (PyErr_Occurred()) SWIG_fail; | |
4011 | } | |
4012 | Py_INCREF(Py_None); resultobj = Py_None; | |
4013 | return resultobj; | |
4014 | fail: | |
4015 | return NULL; | |
4016 | } | |
4017 | ||
4018 | ||
4019 | static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4020 | PyObject *resultobj; | |
4021 | wxRect *arg1 = (wxRect *) 0 ; | |
4022 | int arg2 ; | |
4023 | PyObject * obj0 = 0 ; | |
4024 | PyObject * obj1 = 0 ; | |
4025 | char *kwnames[] = { | |
4026 | (char *) "self",(char *) "top", NULL | |
4027 | }; | |
4028 | ||
4029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4032 | arg2 = (int) SWIG_AsInt(obj1); | |
4033 | if (PyErr_Occurred()) SWIG_fail; | |
4034 | { | |
4035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4036 | (arg1)->SetTop(arg2); | |
4037 | ||
4038 | wxPyEndAllowThreads(__tstate); | |
4039 | if (PyErr_Occurred()) SWIG_fail; | |
4040 | } | |
4041 | Py_INCREF(Py_None); resultobj = Py_None; | |
4042 | return resultobj; | |
4043 | fail: | |
4044 | return NULL; | |
4045 | } | |
4046 | ||
4047 | ||
4048 | static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4049 | PyObject *resultobj; | |
4050 | wxRect *arg1 = (wxRect *) 0 ; | |
4051 | int arg2 ; | |
4052 | PyObject * obj0 = 0 ; | |
4053 | PyObject * obj1 = 0 ; | |
4054 | char *kwnames[] = { | |
4055 | (char *) "self",(char *) "bottom", NULL | |
4056 | }; | |
4057 | ||
4058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4061 | arg2 = (int) SWIG_AsInt(obj1); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
4063 | { | |
4064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4065 | (arg1)->SetBottom(arg2); | |
4066 | ||
4067 | wxPyEndAllowThreads(__tstate); | |
4068 | if (PyErr_Occurred()) SWIG_fail; | |
4069 | } | |
4070 | Py_INCREF(Py_None); resultobj = Py_None; | |
4071 | return resultobj; | |
4072 | fail: | |
4073 | return NULL; | |
4074 | } | |
4075 | ||
4076 | ||
4077 | static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4078 | PyObject *resultobj; | |
4079 | wxRect *arg1 = (wxRect *) 0 ; | |
4080 | int arg2 ; | |
4081 | int arg3 ; | |
4082 | wxRect *result; | |
4083 | PyObject * obj0 = 0 ; | |
4084 | PyObject * obj1 = 0 ; | |
4085 | PyObject * obj2 = 0 ; | |
4086 | char *kwnames[] = { | |
4087 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4088 | }; | |
4089 | ||
4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4093 | arg2 = (int) SWIG_AsInt(obj1); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
4095 | arg3 = (int) SWIG_AsInt(obj2); | |
4096 | if (PyErr_Occurred()) SWIG_fail; | |
4097 | { | |
4098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4099 | { | |
4100 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4101 | result = (wxRect *) &_result_ref; | |
4102 | } | |
4103 | ||
4104 | wxPyEndAllowThreads(__tstate); | |
4105 | if (PyErr_Occurred()) SWIG_fail; | |
4106 | } | |
4107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4108 | return resultobj; | |
4109 | fail: | |
4110 | return NULL; | |
4111 | } | |
4112 | ||
4113 | ||
4114 | static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4115 | PyObject *resultobj; | |
4116 | wxRect *arg1 = (wxRect *) 0 ; | |
4117 | int arg2 ; | |
4118 | int arg3 ; | |
4119 | wxRect *result; | |
4120 | PyObject * obj0 = 0 ; | |
4121 | PyObject * obj1 = 0 ; | |
4122 | PyObject * obj2 = 0 ; | |
4123 | char *kwnames[] = { | |
4124 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4125 | }; | |
4126 | ||
4127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4130 | arg2 = (int) SWIG_AsInt(obj1); | |
4131 | if (PyErr_Occurred()) SWIG_fail; | |
4132 | arg3 = (int) SWIG_AsInt(obj2); | |
4133 | if (PyErr_Occurred()) SWIG_fail; | |
4134 | { | |
4135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4136 | { | |
4137 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4138 | result = (wxRect *) &_result_ref; | |
4139 | } | |
4140 | ||
4141 | wxPyEndAllowThreads(__tstate); | |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4145 | return resultobj; | |
4146 | fail: | |
4147 | return NULL; | |
4148 | } | |
4149 | ||
4150 | ||
4151 | static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4152 | PyObject *resultobj; | |
4153 | wxRect *arg1 = (wxRect *) 0 ; | |
4154 | int arg2 ; | |
4155 | int arg3 ; | |
4156 | PyObject * obj0 = 0 ; | |
4157 | PyObject * obj1 = 0 ; | |
4158 | PyObject * obj2 = 0 ; | |
4159 | char *kwnames[] = { | |
4160 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4161 | }; | |
4162 | ||
4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4166 | arg2 = (int) SWIG_AsInt(obj1); | |
4167 | if (PyErr_Occurred()) SWIG_fail; | |
4168 | arg3 = (int) SWIG_AsInt(obj2); | |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
4170 | { | |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | (arg1)->Offset(arg2,arg3); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
4177 | Py_INCREF(Py_None); resultobj = Py_None; | |
4178 | return resultobj; | |
4179 | fail: | |
4180 | return NULL; | |
4181 | } | |
4182 | ||
4183 | ||
4184 | static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4185 | PyObject *resultobj; | |
4186 | wxRect *arg1 = (wxRect *) 0 ; | |
4187 | wxPoint *arg2 = 0 ; | |
4188 | wxPoint temp2 ; | |
4189 | PyObject * obj0 = 0 ; | |
4190 | PyObject * obj1 = 0 ; | |
4191 | char *kwnames[] = { | |
4192 | (char *) "self",(char *) "pt", NULL | |
4193 | }; | |
4194 | ||
4195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4198 | { | |
4199 | arg2 = &temp2; | |
4200 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4201 | } | |
4202 | { | |
4203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4204 | (arg1)->Offset((wxPoint const &)*arg2); | |
4205 | ||
4206 | wxPyEndAllowThreads(__tstate); | |
4207 | if (PyErr_Occurred()) SWIG_fail; | |
4208 | } | |
4209 | Py_INCREF(Py_None); resultobj = Py_None; | |
4210 | return resultobj; | |
4211 | fail: | |
4212 | return NULL; | |
4213 | } | |
4214 | ||
4215 | ||
4216 | static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4217 | PyObject *resultobj; | |
4218 | wxRect *arg1 = (wxRect *) 0 ; | |
4219 | wxRect *arg2 = 0 ; | |
4220 | wxRect *result; | |
4221 | wxRect temp2 ; | |
4222 | PyObject * obj0 = 0 ; | |
4223 | PyObject * obj1 = 0 ; | |
4224 | char *kwnames[] = { | |
4225 | (char *) "self",(char *) "rect", NULL | |
4226 | }; | |
4227 | ||
4228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4231 | { | |
4232 | arg2 = &temp2; | |
4233 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4234 | } | |
4235 | { | |
4236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4237 | { | |
4238 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4239 | result = (wxRect *) &_result_ref; | |
4240 | } | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4246 | return resultobj; | |
4247 | fail: | |
4248 | return NULL; | |
4249 | } | |
4250 | ||
4251 | ||
4252 | static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4253 | PyObject *resultobj; | |
4254 | wxRect *arg1 = (wxRect *) 0 ; | |
4255 | wxRect *arg2 = 0 ; | |
4256 | wxRect result; | |
4257 | wxRect temp2 ; | |
4258 | PyObject * obj0 = 0 ; | |
4259 | PyObject * obj1 = 0 ; | |
4260 | char *kwnames[] = { | |
4261 | (char *) "self",(char *) "rect", NULL | |
4262 | }; | |
4263 | ||
4264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4267 | { | |
4268 | arg2 = &temp2; | |
4269 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4270 | } | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
4278 | { | |
4279 | wxRect * resultptr; | |
4280 | resultptr = new wxRect((wxRect &) result); | |
4281 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4282 | } | |
4283 | return resultobj; | |
4284 | fail: | |
4285 | return NULL; | |
4286 | } | |
4287 | ||
4288 | ||
4289 | static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4290 | PyObject *resultobj; | |
4291 | wxRect *arg1 = (wxRect *) 0 ; | |
4292 | wxRect *arg2 = 0 ; | |
4293 | wxRect *result; | |
4294 | wxRect temp2 ; | |
4295 | PyObject * obj0 = 0 ; | |
4296 | PyObject * obj1 = 0 ; | |
4297 | char *kwnames[] = { | |
4298 | (char *) "self",(char *) "rect", NULL | |
4299 | }; | |
4300 | ||
4301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4304 | { | |
4305 | arg2 = &temp2; | |
4306 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4307 | } | |
4308 | { | |
4309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4310 | { | |
4311 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4312 | result = (wxRect *) &_result_ref; | |
4313 | } | |
4314 | ||
4315 | wxPyEndAllowThreads(__tstate); | |
4316 | if (PyErr_Occurred()) SWIG_fail; | |
4317 | } | |
4318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4319 | return resultobj; | |
4320 | fail: | |
4321 | return NULL; | |
4322 | } | |
4323 | ||
4324 | ||
4325 | static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4326 | PyObject *resultobj; | |
4327 | wxRect *arg1 = (wxRect *) 0 ; | |
4328 | wxRect *arg2 = 0 ; | |
4329 | bool result; | |
4330 | wxRect temp2 ; | |
4331 | PyObject * obj0 = 0 ; | |
4332 | PyObject * obj1 = 0 ; | |
4333 | char *kwnames[] = { | |
4334 | (char *) "self",(char *) "rect", NULL | |
4335 | }; | |
4336 | ||
4337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4340 | { | |
4341 | arg2 = &temp2; | |
4342 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4343 | } | |
4344 | { | |
4345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4346 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4347 | ||
4348 | wxPyEndAllowThreads(__tstate); | |
4349 | if (PyErr_Occurred()) SWIG_fail; | |
4350 | } | |
4351 | { | |
4352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4353 | } | |
4354 | return resultobj; | |
4355 | fail: | |
4356 | return NULL; | |
4357 | } | |
4358 | ||
4359 | ||
4360 | static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4361 | PyObject *resultobj; | |
4362 | wxRect *arg1 = (wxRect *) 0 ; | |
4363 | wxRect *arg2 = 0 ; | |
4364 | bool result; | |
4365 | wxRect temp2 ; | |
4366 | PyObject * obj0 = 0 ; | |
4367 | PyObject * obj1 = 0 ; | |
4368 | char *kwnames[] = { | |
4369 | (char *) "self",(char *) "rect", NULL | |
4370 | }; | |
4371 | ||
4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4375 | { | |
4376 | arg2 = &temp2; | |
4377 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4378 | } | |
4379 | { | |
4380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4381 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4382 | ||
4383 | wxPyEndAllowThreads(__tstate); | |
4384 | if (PyErr_Occurred()) SWIG_fail; | |
4385 | } | |
4386 | { | |
4387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4388 | } | |
4389 | return resultobj; | |
4390 | fail: | |
4391 | return NULL; | |
4392 | } | |
4393 | ||
4394 | ||
4395 | static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4396 | PyObject *resultobj; | |
4397 | wxRect *arg1 = (wxRect *) 0 ; | |
4398 | int arg2 ; | |
4399 | int arg3 ; | |
4400 | bool result; | |
4401 | PyObject * obj0 = 0 ; | |
4402 | PyObject * obj1 = 0 ; | |
4403 | PyObject * obj2 = 0 ; | |
4404 | char *kwnames[] = { | |
4405 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4406 | }; | |
4407 | ||
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4411 | arg2 = (int) SWIG_AsInt(obj1); | |
4412 | if (PyErr_Occurred()) SWIG_fail; | |
4413 | arg3 = (int) SWIG_AsInt(obj2); | |
4414 | if (PyErr_Occurred()) SWIG_fail; | |
4415 | { | |
4416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4417 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4418 | ||
4419 | wxPyEndAllowThreads(__tstate); | |
4420 | if (PyErr_Occurred()) SWIG_fail; | |
4421 | } | |
4422 | { | |
4423 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4424 | } | |
4425 | return resultobj; | |
4426 | fail: | |
4427 | return NULL; | |
4428 | } | |
4429 | ||
4430 | ||
4431 | static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject *resultobj; | |
4433 | wxRect *arg1 = (wxRect *) 0 ; | |
4434 | wxPoint *arg2 = 0 ; | |
4435 | bool result; | |
4436 | wxPoint temp2 ; | |
4437 | PyObject * obj0 = 0 ; | |
4438 | PyObject * obj1 = 0 ; | |
4439 | char *kwnames[] = { | |
4440 | (char *) "self",(char *) "pt", NULL | |
4441 | }; | |
4442 | ||
4443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4446 | { | |
4447 | arg2 = &temp2; | |
4448 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4449 | } | |
4450 | { | |
4451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4452 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4453 | ||
4454 | wxPyEndAllowThreads(__tstate); | |
4455 | if (PyErr_Occurred()) SWIG_fail; | |
4456 | } | |
4457 | { | |
4458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4459 | } | |
4460 | return resultobj; | |
4461 | fail: | |
4462 | return NULL; | |
4463 | } | |
4464 | ||
4465 | ||
4466 | static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4467 | PyObject *resultobj; | |
4468 | wxRect *arg1 = (wxRect *) 0 ; | |
4469 | wxRect *arg2 = 0 ; | |
4470 | bool result; | |
4471 | wxRect temp2 ; | |
4472 | PyObject * obj0 = 0 ; | |
4473 | PyObject * obj1 = 0 ; | |
4474 | char *kwnames[] = { | |
4475 | (char *) "self",(char *) "rect", NULL | |
4476 | }; | |
4477 | ||
4478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4481 | { | |
4482 | arg2 = &temp2; | |
4483 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4484 | } | |
4485 | { | |
4486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4487 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4488 | ||
4489 | wxPyEndAllowThreads(__tstate); | |
4490 | if (PyErr_Occurred()) SWIG_fail; | |
4491 | } | |
4492 | { | |
4493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4494 | } | |
4495 | return resultobj; | |
4496 | fail: | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject *resultobj; | |
4503 | wxRect *arg1 = (wxRect *) 0 ; | |
4504 | int arg2 ; | |
4505 | PyObject * obj0 = 0 ; | |
4506 | PyObject * obj1 = 0 ; | |
4507 | char *kwnames[] = { | |
4508 | (char *) "self",(char *) "x", NULL | |
4509 | }; | |
4510 | ||
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4514 | arg2 = (int) SWIG_AsInt(obj1); | |
4515 | if (PyErr_Occurred()) SWIG_fail; | |
4516 | if (arg1) (arg1)->x = arg2; | |
4517 | ||
4518 | Py_INCREF(Py_None); resultobj = Py_None; | |
4519 | return resultobj; | |
4520 | fail: | |
4521 | return NULL; | |
4522 | } | |
4523 | ||
4524 | ||
4525 | static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4526 | PyObject *resultobj; | |
4527 | wxRect *arg1 = (wxRect *) 0 ; | |
4528 | int result; | |
4529 | PyObject * obj0 = 0 ; | |
4530 | char *kwnames[] = { | |
4531 | (char *) "self", NULL | |
4532 | }; | |
4533 | ||
4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4537 | result = (int) ((arg1)->x); | |
4538 | ||
4539 | resultobj = SWIG_FromInt((int)result); | |
4540 | return resultobj; | |
4541 | fail: | |
4542 | return NULL; | |
4543 | } | |
4544 | ||
4545 | ||
4546 | static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4547 | PyObject *resultobj; | |
4548 | wxRect *arg1 = (wxRect *) 0 ; | |
4549 | int arg2 ; | |
4550 | PyObject * obj0 = 0 ; | |
4551 | PyObject * obj1 = 0 ; | |
4552 | char *kwnames[] = { | |
4553 | (char *) "self",(char *) "y", NULL | |
4554 | }; | |
4555 | ||
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4559 | arg2 = (int) SWIG_AsInt(obj1); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
4561 | if (arg1) (arg1)->y = arg2; | |
4562 | ||
4563 | Py_INCREF(Py_None); resultobj = Py_None; | |
4564 | return resultobj; | |
4565 | fail: | |
4566 | return NULL; | |
4567 | } | |
4568 | ||
4569 | ||
4570 | static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4571 | PyObject *resultobj; | |
4572 | wxRect *arg1 = (wxRect *) 0 ; | |
4573 | int result; | |
4574 | PyObject * obj0 = 0 ; | |
4575 | char *kwnames[] = { | |
4576 | (char *) "self", NULL | |
4577 | }; | |
4578 | ||
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4582 | result = (int) ((arg1)->y); | |
4583 | ||
4584 | resultobj = SWIG_FromInt((int)result); | |
4585 | return resultobj; | |
4586 | fail: | |
4587 | return NULL; | |
4588 | } | |
4589 | ||
4590 | ||
4591 | static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4592 | PyObject *resultobj; | |
4593 | wxRect *arg1 = (wxRect *) 0 ; | |
4594 | int arg2 ; | |
4595 | PyObject * obj0 = 0 ; | |
4596 | PyObject * obj1 = 0 ; | |
4597 | char *kwnames[] = { | |
4598 | (char *) "self",(char *) "width", NULL | |
4599 | }; | |
4600 | ||
4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4604 | arg2 = (int) SWIG_AsInt(obj1); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | if (arg1) (arg1)->width = arg2; | |
4607 | ||
4608 | Py_INCREF(Py_None); resultobj = Py_None; | |
4609 | return resultobj; | |
4610 | fail: | |
4611 | return NULL; | |
4612 | } | |
4613 | ||
4614 | ||
4615 | static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4616 | PyObject *resultobj; | |
4617 | wxRect *arg1 = (wxRect *) 0 ; | |
4618 | int result; | |
4619 | PyObject * obj0 = 0 ; | |
4620 | char *kwnames[] = { | |
4621 | (char *) "self", NULL | |
4622 | }; | |
4623 | ||
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4627 | result = (int) ((arg1)->width); | |
4628 | ||
4629 | resultobj = SWIG_FromInt((int)result); | |
4630 | return resultobj; | |
4631 | fail: | |
4632 | return NULL; | |
4633 | } | |
4634 | ||
4635 | ||
4636 | static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4637 | PyObject *resultobj; | |
4638 | wxRect *arg1 = (wxRect *) 0 ; | |
4639 | int arg2 ; | |
4640 | PyObject * obj0 = 0 ; | |
4641 | PyObject * obj1 = 0 ; | |
4642 | char *kwnames[] = { | |
4643 | (char *) "self",(char *) "height", NULL | |
4644 | }; | |
4645 | ||
4646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4649 | arg2 = (int) SWIG_AsInt(obj1); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | if (arg1) (arg1)->height = arg2; | |
4652 | ||
4653 | Py_INCREF(Py_None); resultobj = Py_None; | |
4654 | return resultobj; | |
4655 | fail: | |
4656 | return NULL; | |
4657 | } | |
4658 | ||
4659 | ||
4660 | static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4661 | PyObject *resultobj; | |
4662 | wxRect *arg1 = (wxRect *) 0 ; | |
4663 | int result; | |
4664 | PyObject * obj0 = 0 ; | |
4665 | char *kwnames[] = { | |
4666 | (char *) "self", NULL | |
4667 | }; | |
4668 | ||
4669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4672 | result = (int) ((arg1)->height); | |
4673 | ||
4674 | resultobj = SWIG_FromInt((int)result); | |
4675 | return resultobj; | |
4676 | fail: | |
4677 | return NULL; | |
4678 | } | |
4679 | ||
4680 | ||
4681 | static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4682 | PyObject *resultobj; | |
4683 | wxRect *arg1 = (wxRect *) 0 ; | |
4684 | int arg2 = (int) 0 ; | |
4685 | int arg3 = (int) 0 ; | |
4686 | int arg4 = (int) 0 ; | |
4687 | int arg5 = (int) 0 ; | |
4688 | PyObject * obj0 = 0 ; | |
4689 | PyObject * obj1 = 0 ; | |
4690 | PyObject * obj2 = 0 ; | |
4691 | PyObject * obj3 = 0 ; | |
4692 | PyObject * obj4 = 0 ; | |
4693 | char *kwnames[] = { | |
4694 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4695 | }; | |
4696 | ||
4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4700 | if (obj1) { | |
4701 | arg2 = (int) SWIG_AsInt(obj1); | |
4702 | if (PyErr_Occurred()) SWIG_fail; | |
4703 | } | |
4704 | if (obj2) { | |
4705 | arg3 = (int) SWIG_AsInt(obj2); | |
4706 | if (PyErr_Occurred()) SWIG_fail; | |
4707 | } | |
4708 | if (obj3) { | |
4709 | arg4 = (int) SWIG_AsInt(obj3); | |
4710 | if (PyErr_Occurred()) SWIG_fail; | |
4711 | } | |
4712 | if (obj4) { | |
4713 | arg5 = (int) SWIG_AsInt(obj4); | |
4714 | if (PyErr_Occurred()) SWIG_fail; | |
4715 | } | |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) SWIG_fail; | |
4722 | } | |
4723 | Py_INCREF(Py_None); resultobj = Py_None; | |
4724 | return resultobj; | |
4725 | fail: | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
4730 | static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4731 | PyObject *resultobj; | |
4732 | wxRect *arg1 = (wxRect *) 0 ; | |
4733 | PyObject *result; | |
4734 | PyObject * obj0 = 0 ; | |
4735 | char *kwnames[] = { | |
4736 | (char *) "self", NULL | |
4737 | }; | |
4738 | ||
4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
4740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4742 | { | |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4744 | result = (PyObject *)wxRect_Get(arg1); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
4747 | if (PyErr_Occurred()) SWIG_fail; | |
4748 | } | |
4749 | resultobj = result; | |
4750 | return resultobj; | |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject * Rect_swigregister(PyObject *self, PyObject *args) { | |
4757 | PyObject *obj; | |
4758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4759 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
4760 | Py_INCREF(obj); | |
4761 | return Py_BuildValue((char *)""); | |
4762 | } | |
4763 | static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject *resultobj; | |
4765 | wxRect *arg1 = (wxRect *) 0 ; | |
4766 | wxRect *arg2 = (wxRect *) 0 ; | |
4767 | PyObject *result; | |
4768 | PyObject * obj0 = 0 ; | |
4769 | PyObject * obj1 = 0 ; | |
4770 | char *kwnames[] = { | |
4771 | (char *) "r1",(char *) "r2", NULL | |
4772 | }; | |
4773 | ||
4774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
4775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4777 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
4778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4779 | { | |
4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4781 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
4782 | ||
4783 | wxPyEndAllowThreads(__tstate); | |
4784 | if (PyErr_Occurred()) SWIG_fail; | |
4785 | } | |
4786 | resultobj = result; | |
4787 | return resultobj; | |
4788 | fail: | |
4789 | return NULL; | |
4790 | } | |
4791 | ||
4792 | ||
4793 | static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4794 | PyObject *resultobj; | |
4795 | double arg1 = (double) 0.0 ; | |
4796 | double arg2 = (double) 0.0 ; | |
4797 | wxPoint2D *result; | |
4798 | PyObject * obj0 = 0 ; | |
4799 | PyObject * obj1 = 0 ; | |
4800 | char *kwnames[] = { | |
4801 | (char *) "x",(char *) "y", NULL | |
4802 | }; | |
4803 | ||
4804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
4805 | if (obj0) { | |
4806 | arg1 = (double) SWIG_AsDouble(obj0); | |
4807 | if (PyErr_Occurred()) SWIG_fail; | |
4808 | } | |
4809 | if (obj1) { | |
4810 | arg2 = (double) SWIG_AsDouble(obj1); | |
4811 | if (PyErr_Occurred()) SWIG_fail; | |
4812 | } | |
4813 | { | |
4814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4815 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
4816 | ||
4817 | wxPyEndAllowThreads(__tstate); | |
4818 | if (PyErr_Occurred()) SWIG_fail; | |
4819 | } | |
4820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4821 | return resultobj; | |
4822 | fail: | |
4823 | return NULL; | |
4824 | } | |
4825 | ||
4826 | ||
4827 | static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4828 | PyObject *resultobj; | |
4829 | wxPoint2D *arg1 = 0 ; | |
4830 | wxPoint2D *result; | |
4831 | wxPoint2D temp1 ; | |
4832 | PyObject * obj0 = 0 ; | |
4833 | char *kwnames[] = { | |
4834 | (char *) "pt", NULL | |
4835 | }; | |
4836 | ||
4837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
4838 | { | |
4839 | arg1 = &temp1; | |
4840 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
4841 | } | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
4845 | ||
4846 | wxPyEndAllowThreads(__tstate); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
4849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
4856 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject *resultobj; | |
4858 | wxPoint *arg1 = 0 ; | |
4859 | wxPoint2D *result; | |
4860 | wxPoint temp1 ; | |
4861 | PyObject * obj0 = 0 ; | |
4862 | char *kwnames[] = { | |
4863 | (char *) "pt", NULL | |
4864 | }; | |
4865 | ||
4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
4867 | { | |
4868 | arg1 = &temp1; | |
4869 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
4870 | } | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
4874 | ||
4875 | wxPyEndAllowThreads(__tstate); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | } | |
4878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
4879 | return resultobj; | |
4880 | fail: | |
4881 | return NULL; | |
4882 | } | |
4883 | ||
4884 | ||
4885 | static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject *resultobj; | |
4887 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4888 | int *arg2 = (int *) 0 ; | |
4889 | int *arg3 = (int *) 0 ; | |
4890 | int temp2 ; | |
4891 | int temp3 ; | |
4892 | PyObject * obj0 = 0 ; | |
4893 | char *kwnames[] = { | |
4894 | (char *) "self", NULL | |
4895 | }; | |
4896 | ||
4897 | arg2 = &temp2; | |
4898 | arg3 = &temp3; | |
4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; | |
4900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4902 | { | |
4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4904 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
4905 | ||
4906 | wxPyEndAllowThreads(__tstate); | |
4907 | if (PyErr_Occurred()) SWIG_fail; | |
4908 | } | |
4909 | Py_INCREF(Py_None); resultobj = Py_None; | |
4910 | { | |
4911 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4912 | resultobj = t_output_helper(resultobj,o); | |
4913 | } | |
4914 | { | |
4915 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4916 | resultobj = t_output_helper(resultobj,o); | |
4917 | } | |
4918 | return resultobj; | |
4919 | fail: | |
4920 | return NULL; | |
4921 | } | |
4922 | ||
4923 | ||
4924 | static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4925 | PyObject *resultobj; | |
4926 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4927 | int *arg2 = (int *) 0 ; | |
4928 | int *arg3 = (int *) 0 ; | |
4929 | int temp2 ; | |
4930 | int temp3 ; | |
4931 | PyObject * obj0 = 0 ; | |
4932 | char *kwnames[] = { | |
4933 | (char *) "self", NULL | |
4934 | }; | |
4935 | ||
4936 | arg2 = &temp2; | |
4937 | arg3 = &temp3; | |
4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; | |
4939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4941 | { | |
4942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4943 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
4944 | ||
4945 | wxPyEndAllowThreads(__tstate); | |
4946 | if (PyErr_Occurred()) SWIG_fail; | |
4947 | } | |
4948 | Py_INCREF(Py_None); resultobj = Py_None; | |
4949 | { | |
4950 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
4951 | resultobj = t_output_helper(resultobj,o); | |
4952 | } | |
4953 | { | |
4954 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
4955 | resultobj = t_output_helper(resultobj,o); | |
4956 | } | |
4957 | return resultobj; | |
4958 | fail: | |
4959 | return NULL; | |
4960 | } | |
4961 | ||
4962 | ||
4963 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4964 | PyObject *resultobj; | |
4965 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4966 | double result; | |
4967 | PyObject * obj0 = 0 ; | |
4968 | char *kwnames[] = { | |
4969 | (char *) "self", NULL | |
4970 | }; | |
4971 | ||
4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
4973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
4974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4975 | { | |
4976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4977 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
4978 | ||
4979 | wxPyEndAllowThreads(__tstate); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | resultobj = SWIG_FromDouble((double)result); | |
4983 | return resultobj; | |
4984 | fail: | |
4985 | return NULL; | |
4986 | } | |
4987 | ||
4988 | ||
4989 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4990 | PyObject *resultobj; | |
4991 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
4992 | double result; | |
4993 | PyObject * obj0 = 0 ; | |
4994 | char *kwnames[] = { | |
4995 | (char *) "self", NULL | |
4996 | }; | |
4997 | ||
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5001 | { | |
5002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5003 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5004 | ||
5005 | wxPyEndAllowThreads(__tstate); | |
5006 | if (PyErr_Occurred()) SWIG_fail; | |
5007 | } | |
5008 | resultobj = SWIG_FromDouble((double)result); | |
5009 | return resultobj; | |
5010 | fail: | |
5011 | return NULL; | |
5012 | } | |
5013 | ||
5014 | ||
5015 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5016 | PyObject *resultobj; | |
5017 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5018 | double arg2 ; | |
5019 | PyObject * obj0 = 0 ; | |
5020 | PyObject * obj1 = 0 ; | |
5021 | char *kwnames[] = { | |
5022 | (char *) "self",(char *) "length", NULL | |
5023 | }; | |
5024 | ||
5025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5028 | arg2 = (double) SWIG_AsDouble(obj1); | |
5029 | if (PyErr_Occurred()) SWIG_fail; | |
5030 | { | |
5031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5032 | (arg1)->SetVectorLength(arg2); | |
5033 | ||
5034 | wxPyEndAllowThreads(__tstate); | |
5035 | if (PyErr_Occurred()) SWIG_fail; | |
5036 | } | |
5037 | Py_INCREF(Py_None); resultobj = Py_None; | |
5038 | return resultobj; | |
5039 | fail: | |
5040 | return NULL; | |
5041 | } | |
5042 | ||
5043 | ||
5044 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5045 | PyObject *resultobj; | |
5046 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5047 | double arg2 ; | |
5048 | PyObject * obj0 = 0 ; | |
5049 | PyObject * obj1 = 0 ; | |
5050 | char *kwnames[] = { | |
5051 | (char *) "self",(char *) "degrees", NULL | |
5052 | }; | |
5053 | ||
5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5057 | arg2 = (double) SWIG_AsDouble(obj1); | |
5058 | if (PyErr_Occurred()) SWIG_fail; | |
5059 | { | |
5060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5061 | (arg1)->SetVectorAngle(arg2); | |
5062 | ||
5063 | wxPyEndAllowThreads(__tstate); | |
5064 | if (PyErr_Occurred()) SWIG_fail; | |
5065 | } | |
5066 | Py_INCREF(Py_None); resultobj = Py_None; | |
5067 | return resultobj; | |
5068 | fail: | |
5069 | return NULL; | |
5070 | } | |
5071 | ||
5072 | ||
5073 | static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5074 | PyObject *resultobj; | |
5075 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5076 | wxPoint2D *arg2 = 0 ; | |
5077 | double result; | |
5078 | wxPoint2D temp2 ; | |
5079 | PyObject * obj0 = 0 ; | |
5080 | PyObject * obj1 = 0 ; | |
5081 | char *kwnames[] = { | |
5082 | (char *) "self",(char *) "pt", NULL | |
5083 | }; | |
5084 | ||
5085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5088 | { | |
5089 | arg2 = &temp2; | |
5090 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5091 | } | |
5092 | { | |
5093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5094 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5095 | ||
5096 | wxPyEndAllowThreads(__tstate); | |
5097 | if (PyErr_Occurred()) SWIG_fail; | |
5098 | } | |
5099 | resultobj = SWIG_FromDouble((double)result); | |
5100 | return resultobj; | |
5101 | fail: | |
5102 | return NULL; | |
5103 | } | |
5104 | ||
5105 | ||
5106 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject *resultobj; | |
5108 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5109 | wxPoint2D *arg2 = 0 ; | |
5110 | double result; | |
5111 | wxPoint2D temp2 ; | |
5112 | PyObject * obj0 = 0 ; | |
5113 | PyObject * obj1 = 0 ; | |
5114 | char *kwnames[] = { | |
5115 | (char *) "self",(char *) "pt", NULL | |
5116 | }; | |
5117 | ||
5118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5121 | { | |
5122 | arg2 = &temp2; | |
5123 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5124 | } | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5128 | ||
5129 | wxPyEndAllowThreads(__tstate); | |
5130 | if (PyErr_Occurred()) SWIG_fail; | |
5131 | } | |
5132 | resultobj = SWIG_FromDouble((double)result); | |
5133 | return resultobj; | |
5134 | fail: | |
5135 | return NULL; | |
5136 | } | |
5137 | ||
5138 | ||
5139 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5140 | PyObject *resultobj; | |
5141 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5142 | wxPoint2D *arg2 = 0 ; | |
5143 | double result; | |
5144 | wxPoint2D temp2 ; | |
5145 | PyObject * obj0 = 0 ; | |
5146 | PyObject * obj1 = 0 ; | |
5147 | char *kwnames[] = { | |
5148 | (char *) "self",(char *) "vec", NULL | |
5149 | }; | |
5150 | ||
5151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5154 | { | |
5155 | arg2 = &temp2; | |
5156 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5157 | } | |
5158 | { | |
5159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5160 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5161 | ||
5162 | wxPyEndAllowThreads(__tstate); | |
5163 | if (PyErr_Occurred()) SWIG_fail; | |
5164 | } | |
5165 | resultobj = SWIG_FromDouble((double)result); | |
5166 | return resultobj; | |
5167 | fail: | |
5168 | return NULL; | |
5169 | } | |
5170 | ||
5171 | ||
5172 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5173 | PyObject *resultobj; | |
5174 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5175 | wxPoint2D *arg2 = 0 ; | |
5176 | double result; | |
5177 | wxPoint2D temp2 ; | |
5178 | PyObject * obj0 = 0 ; | |
5179 | PyObject * obj1 = 0 ; | |
5180 | char *kwnames[] = { | |
5181 | (char *) "self",(char *) "vec", NULL | |
5182 | }; | |
5183 | ||
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5187 | { | |
5188 | arg2 = &temp2; | |
5189 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5190 | } | |
5191 | { | |
5192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5193 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5194 | ||
5195 | wxPyEndAllowThreads(__tstate); | |
5196 | if (PyErr_Occurred()) SWIG_fail; | |
5197 | } | |
5198 | resultobj = SWIG_FromDouble((double)result); | |
5199 | return resultobj; | |
5200 | fail: | |
5201 | return NULL; | |
5202 | } | |
5203 | ||
5204 | ||
5205 | static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5206 | PyObject *resultobj; | |
5207 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5208 | wxPoint2D result; | |
5209 | PyObject * obj0 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "self", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | result = (arg1)->operator -(); | |
5220 | ||
5221 | wxPyEndAllowThreads(__tstate); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
5224 | { | |
5225 | wxPoint2D * resultptr; | |
5226 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5227 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5228 | } | |
5229 | return resultobj; | |
5230 | fail: | |
5231 | return NULL; | |
5232 | } | |
5233 | ||
5234 | ||
5235 | static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5236 | PyObject *resultobj; | |
5237 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5238 | wxPoint2D *arg2 = 0 ; | |
5239 | wxPoint2D *result; | |
5240 | wxPoint2D temp2 ; | |
5241 | PyObject * obj0 = 0 ; | |
5242 | PyObject * obj1 = 0 ; | |
5243 | char *kwnames[] = { | |
5244 | (char *) "self",(char *) "pt", NULL | |
5245 | }; | |
5246 | ||
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5250 | { | |
5251 | arg2 = &temp2; | |
5252 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5253 | } | |
5254 | { | |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | { | |
5257 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5258 | result = (wxPoint2D *) &_result_ref; | |
5259 | } | |
5260 | ||
5261 | wxPyEndAllowThreads(__tstate); | |
5262 | if (PyErr_Occurred()) SWIG_fail; | |
5263 | } | |
5264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | return NULL; | |
5268 | } | |
5269 | ||
5270 | ||
5271 | static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject *resultobj; | |
5273 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5274 | wxPoint2D *arg2 = 0 ; | |
5275 | wxPoint2D *result; | |
5276 | wxPoint2D temp2 ; | |
5277 | PyObject * obj0 = 0 ; | |
5278 | PyObject * obj1 = 0 ; | |
5279 | char *kwnames[] = { | |
5280 | (char *) "self",(char *) "pt", NULL | |
5281 | }; | |
5282 | ||
5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5286 | { | |
5287 | arg2 = &temp2; | |
5288 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5289 | } | |
5290 | { | |
5291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5292 | { | |
5293 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5294 | result = (wxPoint2D *) &_result_ref; | |
5295 | } | |
5296 | ||
5297 | wxPyEndAllowThreads(__tstate); | |
5298 | if (PyErr_Occurred()) SWIG_fail; | |
5299 | } | |
5300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5301 | return resultobj; | |
5302 | fail: | |
5303 | return NULL; | |
5304 | } | |
5305 | ||
5306 | ||
5307 | static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5308 | PyObject *resultobj; | |
5309 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5310 | wxPoint2D *arg2 = 0 ; | |
5311 | wxPoint2D *result; | |
5312 | wxPoint2D temp2 ; | |
5313 | PyObject * obj0 = 0 ; | |
5314 | PyObject * obj1 = 0 ; | |
5315 | char *kwnames[] = { | |
5316 | (char *) "self",(char *) "pt", NULL | |
5317 | }; | |
5318 | ||
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5322 | { | |
5323 | arg2 = &temp2; | |
5324 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5325 | } | |
5326 | { | |
5327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5328 | { | |
5329 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5330 | result = (wxPoint2D *) &_result_ref; | |
5331 | } | |
5332 | ||
5333 | wxPyEndAllowThreads(__tstate); | |
5334 | if (PyErr_Occurred()) SWIG_fail; | |
5335 | } | |
5336 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5337 | return resultobj; | |
5338 | fail: | |
5339 | return NULL; | |
5340 | } | |
5341 | ||
5342 | ||
5343 | static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5344 | PyObject *resultobj; | |
5345 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5346 | wxPoint2D *arg2 = 0 ; | |
5347 | wxPoint2D *result; | |
5348 | wxPoint2D temp2 ; | |
5349 | PyObject * obj0 = 0 ; | |
5350 | PyObject * obj1 = 0 ; | |
5351 | char *kwnames[] = { | |
5352 | (char *) "self",(char *) "pt", NULL | |
5353 | }; | |
5354 | ||
5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5358 | { | |
5359 | arg2 = &temp2; | |
5360 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5361 | } | |
5362 | { | |
5363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5364 | { | |
5365 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5366 | result = (wxPoint2D *) &_result_ref; | |
5367 | } | |
5368 | ||
5369 | wxPyEndAllowThreads(__tstate); | |
5370 | if (PyErr_Occurred()) SWIG_fail; | |
5371 | } | |
5372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0); | |
5373 | return resultobj; | |
5374 | fail: | |
5375 | return NULL; | |
5376 | } | |
5377 | ||
5378 | ||
5379 | static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5380 | PyObject *resultobj; | |
5381 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5382 | wxPoint2D *arg2 = 0 ; | |
5383 | bool result; | |
5384 | wxPoint2D temp2 ; | |
5385 | PyObject * obj0 = 0 ; | |
5386 | PyObject * obj1 = 0 ; | |
5387 | char *kwnames[] = { | |
5388 | (char *) "self",(char *) "pt", NULL | |
5389 | }; | |
5390 | ||
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5394 | { | |
5395 | arg2 = &temp2; | |
5396 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5397 | } | |
5398 | { | |
5399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5400 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5401 | ||
5402 | wxPyEndAllowThreads(__tstate); | |
5403 | if (PyErr_Occurred()) SWIG_fail; | |
5404 | } | |
5405 | { | |
5406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5407 | } | |
5408 | return resultobj; | |
5409 | fail: | |
5410 | return NULL; | |
5411 | } | |
5412 | ||
5413 | ||
5414 | static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5415 | PyObject *resultobj; | |
5416 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5417 | wxPoint2D *arg2 = 0 ; | |
5418 | bool result; | |
5419 | wxPoint2D temp2 ; | |
5420 | PyObject * obj0 = 0 ; | |
5421 | PyObject * obj1 = 0 ; | |
5422 | char *kwnames[] = { | |
5423 | (char *) "self",(char *) "pt", NULL | |
5424 | }; | |
5425 | ||
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5429 | { | |
5430 | arg2 = &temp2; | |
5431 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5432 | } | |
5433 | { | |
5434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5435 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5436 | ||
5437 | wxPyEndAllowThreads(__tstate); | |
5438 | if (PyErr_Occurred()) SWIG_fail; | |
5439 | } | |
5440 | { | |
5441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5442 | } | |
5443 | return resultobj; | |
5444 | fail: | |
5445 | return NULL; | |
5446 | } | |
5447 | ||
5448 | ||
5449 | static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5450 | PyObject *resultobj; | |
5451 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5452 | double arg2 ; | |
5453 | PyObject * obj0 = 0 ; | |
5454 | PyObject * obj1 = 0 ; | |
5455 | char *kwnames[] = { | |
5456 | (char *) "self",(char *) "m_x", NULL | |
5457 | }; | |
5458 | ||
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5462 | arg2 = (double) SWIG_AsDouble(obj1); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | if (arg1) (arg1)->m_x = arg2; | |
5465 | ||
5466 | Py_INCREF(Py_None); resultobj = Py_None; | |
5467 | return resultobj; | |
5468 | fail: | |
5469 | return NULL; | |
5470 | } | |
5471 | ||
5472 | ||
5473 | static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5474 | PyObject *resultobj; | |
5475 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5476 | double result; | |
5477 | PyObject * obj0 = 0 ; | |
5478 | char *kwnames[] = { | |
5479 | (char *) "self", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5485 | result = (double) ((arg1)->m_x); | |
5486 | ||
5487 | resultobj = SWIG_FromDouble((double)result); | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5497 | double arg2 ; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | PyObject * obj1 = 0 ; | |
5500 | char *kwnames[] = { | |
5501 | (char *) "self",(char *) "m_y", NULL | |
5502 | }; | |
5503 | ||
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5507 | arg2 = (double) SWIG_AsDouble(obj1); | |
5508 | if (PyErr_Occurred()) SWIG_fail; | |
5509 | if (arg1) (arg1)->m_y = arg2; | |
5510 | ||
5511 | Py_INCREF(Py_None); resultobj = Py_None; | |
5512 | return resultobj; | |
5513 | fail: | |
5514 | return NULL; | |
5515 | } | |
5516 | ||
5517 | ||
5518 | static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5519 | PyObject *resultobj; | |
5520 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5521 | double result; | |
5522 | PyObject * obj0 = 0 ; | |
5523 | char *kwnames[] = { | |
5524 | (char *) "self", NULL | |
5525 | }; | |
5526 | ||
5527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5530 | result = (double) ((arg1)->m_y); | |
5531 | ||
5532 | resultobj = SWIG_FromDouble((double)result); | |
5533 | return resultobj; | |
5534 | fail: | |
5535 | return NULL; | |
5536 | } | |
5537 | ||
5538 | ||
5539 | static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5540 | PyObject *resultobj; | |
5541 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5542 | double arg2 = (double) 0 ; | |
5543 | double arg3 = (double) 0 ; | |
5544 | PyObject * obj0 = 0 ; | |
5545 | PyObject * obj1 = 0 ; | |
5546 | PyObject * obj2 = 0 ; | |
5547 | char *kwnames[] = { | |
5548 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5549 | }; | |
5550 | ||
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5554 | if (obj1) { | |
5555 | arg2 = (double) SWIG_AsDouble(obj1); | |
5556 | if (PyErr_Occurred()) SWIG_fail; | |
5557 | } | |
5558 | if (obj2) { | |
5559 | arg3 = (double) SWIG_AsDouble(obj2); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
5562 | { | |
5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5564 | wxPoint2D_Set(arg1,arg2,arg3); | |
5565 | ||
5566 | wxPyEndAllowThreads(__tstate); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | } | |
5569 | Py_INCREF(Py_None); resultobj = Py_None; | |
5570 | return resultobj; | |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
5576 | static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5577 | PyObject *resultobj; | |
5578 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5579 | PyObject *result; | |
5580 | PyObject * obj0 = 0 ; | |
5581 | char *kwnames[] = { | |
5582 | (char *) "self", NULL | |
5583 | }; | |
5584 | ||
5585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5588 | { | |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5591 | ||
5592 | wxPyEndAllowThreads(__tstate); | |
5593 | if (PyErr_Occurred()) SWIG_fail; | |
5594 | } | |
5595 | resultobj = result; | |
5596 | return resultobj; | |
5597 | fail: | |
5598 | return NULL; | |
5599 | } | |
5600 | ||
5601 | ||
5602 | static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) { | |
5603 | PyObject *obj; | |
5604 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5605 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5606 | Py_INCREF(obj); | |
5607 | return Py_BuildValue((char *)""); | |
5608 | } | |
5609 | static int _wrap_DefaultPosition_set(PyObject *_val) { | |
5610 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); | |
5611 | return 1; | |
5612 | } | |
5613 | ||
5614 | ||
5615 | static PyObject *_wrap_DefaultPosition_get() { | |
5616 | PyObject *pyobj; | |
5617 | ||
5618 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5619 | return pyobj; | |
5620 | } | |
5621 | ||
5622 | ||
5623 | static int _wrap_DefaultSize_set(PyObject *_val) { | |
5624 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); | |
5625 | return 1; | |
5626 | } | |
5627 | ||
5628 | ||
5629 | static PyObject *_wrap_DefaultSize_get() { | |
5630 | PyObject *pyobj; | |
5631 | ||
5632 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5633 | return pyobj; | |
5634 | } | |
5635 | ||
5636 | ||
5637 | static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5638 | PyObject *resultobj; | |
5639 | PyObject *arg1 = (PyObject *) 0 ; | |
5640 | wxPyInputStream *result; | |
5641 | PyObject * obj0 = 0 ; | |
5642 | char *kwnames[] = { | |
5643 | (char *) "p", NULL | |
5644 | }; | |
5645 | ||
5646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5647 | arg1 = obj0; | |
5648 | { | |
5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5650 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5651 | ||
5652 | wxPyEndAllowThreads(__tstate); | |
5653 | if (PyErr_Occurred()) SWIG_fail; | |
5654 | } | |
5655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5656 | return resultobj; | |
5657 | fail: | |
5658 | return NULL; | |
5659 | } | |
5660 | ||
5661 | ||
5662 | static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject *resultobj; | |
5664 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5665 | PyObject * obj0 = 0 ; | |
5666 | char *kwnames[] = { | |
5667 | (char *) "self", NULL | |
5668 | }; | |
5669 | ||
5670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5673 | { | |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | (arg1)->close(); | |
5676 | ||
5677 | wxPyEndAllowThreads(__tstate); | |
5678 | if (PyErr_Occurred()) SWIG_fail; | |
5679 | } | |
5680 | Py_INCREF(Py_None); resultobj = Py_None; | |
5681 | return resultobj; | |
5682 | fail: | |
5683 | return NULL; | |
5684 | } | |
5685 | ||
5686 | ||
5687 | static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5688 | PyObject *resultobj; | |
5689 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5690 | PyObject * obj0 = 0 ; | |
5691 | char *kwnames[] = { | |
5692 | (char *) "self", NULL | |
5693 | }; | |
5694 | ||
5695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5698 | { | |
5699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5700 | (arg1)->flush(); | |
5701 | ||
5702 | wxPyEndAllowThreads(__tstate); | |
5703 | if (PyErr_Occurred()) SWIG_fail; | |
5704 | } | |
5705 | Py_INCREF(Py_None); resultobj = Py_None; | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
5712 | static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5713 | PyObject *resultobj; | |
5714 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5715 | bool result; | |
5716 | PyObject * obj0 = 0 ; | |
5717 | char *kwnames[] = { | |
5718 | (char *) "self", NULL | |
5719 | }; | |
5720 | ||
5721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
5722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5724 | { | |
5725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5726 | result = (bool)(arg1)->eof(); | |
5727 | ||
5728 | wxPyEndAllowThreads(__tstate); | |
5729 | if (PyErr_Occurred()) SWIG_fail; | |
5730 | } | |
5731 | { | |
5732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5733 | } | |
5734 | return resultobj; | |
5735 | fail: | |
5736 | return NULL; | |
5737 | } | |
5738 | ||
5739 | ||
5740 | static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5741 | PyObject *resultobj; | |
5742 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5743 | int arg2 = (int) -1 ; | |
5744 | PyObject *result; | |
5745 | PyObject * obj0 = 0 ; | |
5746 | PyObject * obj1 = 0 ; | |
5747 | char *kwnames[] = { | |
5748 | (char *) "self",(char *) "size", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
5752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5754 | if (obj1) { | |
5755 | arg2 = (int) SWIG_AsInt(obj1); | |
5756 | if (PyErr_Occurred()) SWIG_fail; | |
5757 | } | |
5758 | { | |
5759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5760 | result = (PyObject *)(arg1)->read(arg2); | |
5761 | ||
5762 | wxPyEndAllowThreads(__tstate); | |
5763 | if (PyErr_Occurred()) SWIG_fail; | |
5764 | } | |
5765 | resultobj = result; | |
5766 | return resultobj; | |
5767 | fail: | |
5768 | return NULL; | |
5769 | } | |
5770 | ||
5771 | ||
5772 | static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5773 | PyObject *resultobj; | |
5774 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5775 | int arg2 = (int) -1 ; | |
5776 | PyObject *result; | |
5777 | PyObject * obj0 = 0 ; | |
5778 | PyObject * obj1 = 0 ; | |
5779 | char *kwnames[] = { | |
5780 | (char *) "self",(char *) "size", NULL | |
5781 | }; | |
5782 | ||
5783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
5784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5786 | if (obj1) { | |
5787 | arg2 = (int) SWIG_AsInt(obj1); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | { | |
5791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5792 | result = (PyObject *)(arg1)->readline(arg2); | |
5793 | ||
5794 | wxPyEndAllowThreads(__tstate); | |
5795 | if (PyErr_Occurred()) SWIG_fail; | |
5796 | } | |
5797 | resultobj = result; | |
5798 | return resultobj; | |
5799 | fail: | |
5800 | return NULL; | |
5801 | } | |
5802 | ||
5803 | ||
5804 | static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5805 | PyObject *resultobj; | |
5806 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5807 | int arg2 = (int) -1 ; | |
5808 | PyObject *result; | |
5809 | PyObject * obj0 = 0 ; | |
5810 | PyObject * obj1 = 0 ; | |
5811 | char *kwnames[] = { | |
5812 | (char *) "self",(char *) "sizehint", NULL | |
5813 | }; | |
5814 | ||
5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
5816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5818 | if (obj1) { | |
5819 | arg2 = (int) SWIG_AsInt(obj1); | |
5820 | if (PyErr_Occurred()) SWIG_fail; | |
5821 | } | |
5822 | { | |
5823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5824 | result = (PyObject *)(arg1)->readlines(arg2); | |
5825 | ||
5826 | wxPyEndAllowThreads(__tstate); | |
5827 | if (PyErr_Occurred()) SWIG_fail; | |
5828 | } | |
5829 | resultobj = result; | |
5830 | return resultobj; | |
5831 | fail: | |
5832 | return NULL; | |
5833 | } | |
5834 | ||
5835 | ||
5836 | static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5837 | PyObject *resultobj; | |
5838 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5839 | int arg2 ; | |
5840 | int arg3 = (int) 0 ; | |
5841 | PyObject * obj0 = 0 ; | |
5842 | PyObject * obj1 = 0 ; | |
5843 | PyObject * obj2 = 0 ; | |
5844 | char *kwnames[] = { | |
5845 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
5846 | }; | |
5847 | ||
5848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5851 | arg2 = (int) SWIG_AsInt(obj1); | |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
5853 | if (obj2) { | |
5854 | arg3 = (int) SWIG_AsInt(obj2); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | { | |
5858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5859 | (arg1)->seek(arg2,arg3); | |
5860 | ||
5861 | wxPyEndAllowThreads(__tstate); | |
5862 | if (PyErr_Occurred()) SWIG_fail; | |
5863 | } | |
5864 | Py_INCREF(Py_None); resultobj = Py_None; | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | return NULL; | |
5868 | } | |
5869 | ||
5870 | ||
5871 | static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5872 | PyObject *resultobj; | |
5873 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5874 | int result; | |
5875 | PyObject * obj0 = 0 ; | |
5876 | char *kwnames[] = { | |
5877 | (char *) "self", NULL | |
5878 | }; | |
5879 | ||
5880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
5881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | result = (int)(arg1)->tell(); | |
5886 | ||
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
5890 | resultobj = SWIG_FromInt((int)result); | |
5891 | return resultobj; | |
5892 | fail: | |
5893 | return NULL; | |
5894 | } | |
5895 | ||
5896 | ||
5897 | static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject *resultobj; | |
5899 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5900 | char result; | |
5901 | PyObject * obj0 = 0 ; | |
5902 | char *kwnames[] = { | |
5903 | (char *) "self", NULL | |
5904 | }; | |
5905 | ||
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
5907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5909 | { | |
5910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5911 | result = (char)(arg1)->Peek(); | |
5912 | ||
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | resultobj = SWIG_FromChar((char)result); | |
5917 | return resultobj; | |
5918 | fail: | |
5919 | return NULL; | |
5920 | } | |
5921 | ||
5922 | ||
5923 | static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject *resultobj; | |
5925 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5926 | char result; | |
5927 | PyObject * obj0 = 0 ; | |
5928 | char *kwnames[] = { | |
5929 | (char *) "self", NULL | |
5930 | }; | |
5931 | ||
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
5933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5935 | { | |
5936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5937 | result = (char)(arg1)->GetC(); | |
5938 | ||
5939 | wxPyEndAllowThreads(__tstate); | |
5940 | if (PyErr_Occurred()) SWIG_fail; | |
5941 | } | |
5942 | resultobj = SWIG_FromChar((char)result); | |
5943 | return resultobj; | |
5944 | fail: | |
5945 | return NULL; | |
5946 | } | |
5947 | ||
5948 | ||
5949 | static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5950 | PyObject *resultobj; | |
5951 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5952 | size_t result; | |
5953 | PyObject * obj0 = 0 ; | |
5954 | char *kwnames[] = { | |
5955 | (char *) "self", NULL | |
5956 | }; | |
5957 | ||
5958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
5959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5961 | { | |
5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5963 | result = (size_t)(arg1)->LastRead(); | |
5964 | ||
5965 | wxPyEndAllowThreads(__tstate); | |
5966 | if (PyErr_Occurred()) SWIG_fail; | |
5967 | } | |
5968 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
5969 | return resultobj; | |
5970 | fail: | |
5971 | return NULL; | |
5972 | } | |
5973 | ||
5974 | ||
5975 | static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject *resultobj; | |
5977 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5978 | bool result; | |
5979 | PyObject * obj0 = 0 ; | |
5980 | char *kwnames[] = { | |
5981 | (char *) "self", NULL | |
5982 | }; | |
5983 | ||
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
5985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5987 | { | |
5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5989 | result = (bool)(arg1)->CanRead(); | |
5990 | ||
5991 | wxPyEndAllowThreads(__tstate); | |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
5993 | } | |
5994 | { | |
5995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5996 | } | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6006 | bool result; | |
6007 | PyObject * obj0 = 0 ; | |
6008 | char *kwnames[] = { | |
6009 | (char *) "self", NULL | |
6010 | }; | |
6011 | ||
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6015 | { | |
6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6017 | result = (bool)(arg1)->Eof(); | |
6018 | ||
6019 | wxPyEndAllowThreads(__tstate); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | } | |
6022 | { | |
6023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6024 | } | |
6025 | return resultobj; | |
6026 | fail: | |
6027 | return NULL; | |
6028 | } | |
6029 | ||
6030 | ||
6031 | static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6032 | PyObject *resultobj; | |
6033 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6034 | char arg2 ; | |
6035 | bool result; | |
6036 | PyObject * obj0 = 0 ; | |
6037 | PyObject * obj1 = 0 ; | |
6038 | char *kwnames[] = { | |
6039 | (char *) "self",(char *) "c", NULL | |
6040 | }; | |
6041 | ||
6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6045 | arg2 = (char) SWIG_AsChar(obj1); | |
6046 | if (PyErr_Occurred()) SWIG_fail; | |
6047 | { | |
6048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6049 | result = (bool)(arg1)->Ungetch(arg2); | |
6050 | ||
6051 | wxPyEndAllowThreads(__tstate); | |
6052 | if (PyErr_Occurred()) SWIG_fail; | |
6053 | } | |
6054 | { | |
6055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6056 | } | |
6057 | return resultobj; | |
6058 | fail: | |
6059 | return NULL; | |
6060 | } | |
6061 | ||
6062 | ||
6063 | static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6064 | PyObject *resultobj; | |
6065 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6066 | long arg2 ; | |
6067 | int arg3 = (int) wxFromStart ; | |
6068 | long result; | |
6069 | PyObject * obj0 = 0 ; | |
6070 | PyObject * obj1 = 0 ; | |
6071 | PyObject * obj2 = 0 ; | |
6072 | char *kwnames[] = { | |
6073 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6074 | }; | |
6075 | ||
6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6079 | arg2 = (long) SWIG_AsLong(obj1); | |
6080 | if (PyErr_Occurred()) SWIG_fail; | |
6081 | if (obj2) { | |
6082 | arg3 = (wxSeekMode) SWIG_AsInt(obj2); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | { | |
6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6087 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6088 | ||
6089 | wxPyEndAllowThreads(__tstate); | |
6090 | if (PyErr_Occurred()) SWIG_fail; | |
6091 | } | |
6092 | resultobj = SWIG_FromLong((long)result); | |
6093 | return resultobj; | |
6094 | fail: | |
6095 | return NULL; | |
6096 | } | |
6097 | ||
6098 | ||
6099 | static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6100 | PyObject *resultobj; | |
6101 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6102 | long result; | |
6103 | PyObject * obj0 = 0 ; | |
6104 | char *kwnames[] = { | |
6105 | (char *) "self", NULL | |
6106 | }; | |
6107 | ||
6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6111 | { | |
6112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6113 | result = (long)(arg1)->TellI(); | |
6114 | ||
6115 | wxPyEndAllowThreads(__tstate); | |
6116 | if (PyErr_Occurred()) SWIG_fail; | |
6117 | } | |
6118 | resultobj = SWIG_FromLong((long)result); | |
6119 | return resultobj; | |
6120 | fail: | |
6121 | return NULL; | |
6122 | } | |
6123 | ||
6124 | ||
6125 | static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) { | |
6126 | PyObject *obj; | |
6127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6128 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6129 | Py_INCREF(obj); | |
6130 | return Py_BuildValue((char *)""); | |
6131 | } | |
6132 | static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject *resultobj; | |
6134 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6135 | PyObject *arg2 = (PyObject *) 0 ; | |
6136 | PyObject * obj0 = 0 ; | |
6137 | PyObject * obj1 = 0 ; | |
6138 | char *kwnames[] = { | |
6139 | (char *) "self",(char *) "obj", NULL | |
6140 | }; | |
6141 | ||
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6145 | arg2 = obj1; | |
6146 | { | |
6147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6148 | wxOutputStream_write(arg1,arg2); | |
6149 | ||
6150 | wxPyEndAllowThreads(__tstate); | |
6151 | if (PyErr_Occurred()) SWIG_fail; | |
6152 | } | |
6153 | Py_INCREF(Py_None); resultobj = Py_None; | |
6154 | return resultobj; | |
6155 | fail: | |
6156 | return NULL; | |
6157 | } | |
6158 | ||
6159 | ||
6160 | static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) { | |
6161 | PyObject *obj; | |
6162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6163 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6164 | Py_INCREF(obj); | |
6165 | return Py_BuildValue((char *)""); | |
6166 | } | |
6167 | static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6168 | PyObject *resultobj; | |
6169 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6170 | wxString *arg2 = 0 ; | |
6171 | wxString *arg3 = 0 ; | |
6172 | wxString *arg4 = 0 ; | |
6173 | wxDateTime arg5 ; | |
6174 | wxFSFile *result; | |
6175 | wxPyInputStream *temp1 ; | |
6176 | bool created1 ; | |
6177 | bool temp2 = False ; | |
6178 | bool temp3 = False ; | |
6179 | bool temp4 = False ; | |
6180 | wxDateTime *argp5 ; | |
6181 | PyObject * obj0 = 0 ; | |
6182 | PyObject * obj1 = 0 ; | |
6183 | PyObject * obj2 = 0 ; | |
6184 | PyObject * obj3 = 0 ; | |
6185 | PyObject * obj4 = 0 ; | |
6186 | char *kwnames[] = { | |
6187 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6188 | }; | |
6189 | ||
6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6191 | { | |
6192 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6193 | arg1 = temp1->m_wxis; | |
6194 | created1 = False; | |
6195 | } else { | |
6196 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
6197 | arg1 = wxPyCBInputStream_create(obj0, False); | |
6198 | if (arg1 == NULL) { | |
6199 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6200 | SWIG_fail; | |
6201 | } | |
6202 | created1 = True; | |
6203 | } | |
6204 | } | |
6205 | { | |
6206 | arg2 = wxString_in_helper(obj1); | |
6207 | if (arg2 == NULL) SWIG_fail; | |
6208 | temp2 = True; | |
6209 | } | |
6210 | { | |
6211 | arg3 = wxString_in_helper(obj2); | |
6212 | if (arg3 == NULL) SWIG_fail; | |
6213 | temp3 = True; | |
6214 | } | |
6215 | { | |
6216 | arg4 = wxString_in_helper(obj3); | |
6217 | if (arg4 == NULL) SWIG_fail; | |
6218 | temp4 = True; | |
6219 | } | |
6220 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6221 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6222 | arg5 = *argp5; | |
6223 | { | |
6224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6225 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6226 | ||
6227 | wxPyEndAllowThreads(__tstate); | |
6228 | if (PyErr_Occurred()) SWIG_fail; | |
6229 | } | |
6230 | { | |
6231 | resultobj = wxPyMake_wxObject(result); | |
6232 | } | |
6233 | { | |
6234 | if (created1) | |
6235 | delete arg1; | |
6236 | } | |
6237 | { | |
6238 | if (temp2) | |
6239 | delete arg2; | |
6240 | } | |
6241 | { | |
6242 | if (temp3) | |
6243 | delete arg3; | |
6244 | } | |
6245 | { | |
6246 | if (temp4) | |
6247 | delete arg4; | |
6248 | } | |
6249 | return resultobj; | |
6250 | fail: | |
6251 | { | |
6252 | if (created1) | |
6253 | delete arg1; | |
6254 | } | |
6255 | { | |
6256 | if (temp2) | |
6257 | delete arg2; | |
6258 | } | |
6259 | { | |
6260 | if (temp3) | |
6261 | delete arg3; | |
6262 | } | |
6263 | { | |
6264 | if (temp4) | |
6265 | delete arg4; | |
6266 | } | |
6267 | return NULL; | |
6268 | } | |
6269 | ||
6270 | ||
6271 | static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6272 | PyObject *resultobj; | |
6273 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6274 | PyObject * obj0 = 0 ; | |
6275 | char *kwnames[] = { | |
6276 | (char *) "self", NULL | |
6277 | }; | |
6278 | ||
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6282 | { | |
6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6284 | delete arg1; | |
6285 | ||
6286 | wxPyEndAllowThreads(__tstate); | |
6287 | if (PyErr_Occurred()) SWIG_fail; | |
6288 | } | |
6289 | Py_INCREF(Py_None); resultobj = Py_None; | |
6290 | return resultobj; | |
6291 | fail: | |
6292 | return NULL; | |
6293 | } | |
6294 | ||
6295 | ||
6296 | static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6297 | PyObject *resultobj; | |
6298 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6299 | wxInputStream *result; | |
6300 | PyObject * obj0 = 0 ; | |
6301 | char *kwnames[] = { | |
6302 | (char *) "self", NULL | |
6303 | }; | |
6304 | ||
6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6308 | { | |
6309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6310 | result = (wxInputStream *)(arg1)->GetStream(); | |
6311 | ||
6312 | wxPyEndAllowThreads(__tstate); | |
6313 | if (PyErr_Occurred()) SWIG_fail; | |
6314 | } | |
6315 | { | |
6316 | wxPyInputStream * _ptr = NULL; | |
6317 | ||
6318 | if (result) { | |
6319 | _ptr = new wxPyInputStream(result); | |
6320 | } | |
6321 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True); | |
6322 | } | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
6329 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6330 | PyObject *resultobj; | |
6331 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6332 | wxString *result; | |
6333 | PyObject * obj0 = 0 ; | |
6334 | char *kwnames[] = { | |
6335 | (char *) "self", NULL | |
6336 | }; | |
6337 | ||
6338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6341 | { | |
6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6343 | { | |
6344 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6345 | result = (wxString *) &_result_ref; | |
6346 | } | |
6347 | ||
6348 | wxPyEndAllowThreads(__tstate); | |
6349 | if (PyErr_Occurred()) SWIG_fail; | |
6350 | } | |
6351 | { | |
6352 | #if wxUSE_UNICODE | |
6353 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6354 | #else | |
6355 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6356 | #endif | |
6357 | } | |
6358 | return resultobj; | |
6359 | fail: | |
6360 | return NULL; | |
6361 | } | |
6362 | ||
6363 | ||
6364 | static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6365 | PyObject *resultobj; | |
6366 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6367 | wxString *result; | |
6368 | PyObject * obj0 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "self", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6376 | { | |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | { | |
6379 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6380 | result = (wxString *) &_result_ref; | |
6381 | } | |
6382 | ||
6383 | wxPyEndAllowThreads(__tstate); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
6386 | { | |
6387 | #if wxUSE_UNICODE | |
6388 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6389 | #else | |
6390 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6391 | #endif | |
6392 | } | |
6393 | return resultobj; | |
6394 | fail: | |
6395 | return NULL; | |
6396 | } | |
6397 | ||
6398 | ||
6399 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6400 | PyObject *resultobj; | |
6401 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6402 | wxString *result; | |
6403 | PyObject * obj0 = 0 ; | |
6404 | char *kwnames[] = { | |
6405 | (char *) "self", NULL | |
6406 | }; | |
6407 | ||
6408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | { | |
6414 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6415 | result = (wxString *) &_result_ref; | |
6416 | } | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | { | |
6422 | #if wxUSE_UNICODE | |
6423 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6424 | #else | |
6425 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6426 | #endif | |
6427 | } | |
6428 | return resultobj; | |
6429 | fail: | |
6430 | return NULL; | |
6431 | } | |
6432 | ||
6433 | ||
6434 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6435 | PyObject *resultobj; | |
6436 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6437 | wxDateTime result; | |
6438 | PyObject * obj0 = 0 ; | |
6439 | char *kwnames[] = { | |
6440 | (char *) "self", NULL | |
6441 | }; | |
6442 | ||
6443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6446 | { | |
6447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6448 | result = (arg1)->GetModificationTime(); | |
6449 | ||
6450 | wxPyEndAllowThreads(__tstate); | |
6451 | if (PyErr_Occurred()) SWIG_fail; | |
6452 | } | |
6453 | { | |
6454 | wxDateTime * resultptr; | |
6455 | resultptr = new wxDateTime((wxDateTime &) result); | |
6456 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6457 | } | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) { | |
6465 | PyObject *obj; | |
6466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6467 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6468 | Py_INCREF(obj); | |
6469 | return Py_BuildValue((char *)""); | |
6470 | } | |
6471 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6472 | PyObject *obj; | |
6473 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6474 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6475 | Py_INCREF(obj); | |
6476 | return Py_BuildValue((char *)""); | |
6477 | } | |
6478 | static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6479 | PyObject *resultobj; | |
6480 | wxPyFileSystemHandler *result; | |
6481 | char *kwnames[] = { | |
6482 | NULL | |
6483 | }; | |
6484 | ||
6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6486 | { | |
6487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6488 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6489 | ||
6490 | wxPyEndAllowThreads(__tstate); | |
6491 | if (PyErr_Occurred()) SWIG_fail; | |
6492 | } | |
6493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6494 | return resultobj; | |
6495 | fail: | |
6496 | return NULL; | |
6497 | } | |
6498 | ||
6499 | ||
6500 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6501 | PyObject *resultobj; | |
6502 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6503 | PyObject *arg2 = (PyObject *) 0 ; | |
6504 | PyObject *arg3 = (PyObject *) 0 ; | |
6505 | PyObject * obj0 = 0 ; | |
6506 | PyObject * obj1 = 0 ; | |
6507 | PyObject * obj2 = 0 ; | |
6508 | char *kwnames[] = { | |
6509 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6510 | }; | |
6511 | ||
6512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6515 | arg2 = obj1; | |
6516 | arg3 = obj2; | |
6517 | { | |
6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6519 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6520 | ||
6521 | wxPyEndAllowThreads(__tstate); | |
6522 | if (PyErr_Occurred()) SWIG_fail; | |
6523 | } | |
6524 | Py_INCREF(Py_None); resultobj = Py_None; | |
6525 | return resultobj; | |
6526 | fail: | |
6527 | return NULL; | |
6528 | } | |
6529 | ||
6530 | ||
6531 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6532 | PyObject *resultobj; | |
6533 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6534 | wxString *arg2 = 0 ; | |
6535 | bool result; | |
6536 | bool temp2 = False ; | |
6537 | PyObject * obj0 = 0 ; | |
6538 | PyObject * obj1 = 0 ; | |
6539 | char *kwnames[] = { | |
6540 | (char *) "self",(char *) "location", NULL | |
6541 | }; | |
6542 | ||
6543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6546 | { | |
6547 | arg2 = wxString_in_helper(obj1); | |
6548 | if (arg2 == NULL) SWIG_fail; | |
6549 | temp2 = True; | |
6550 | } | |
6551 | { | |
6552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6553 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6554 | ||
6555 | wxPyEndAllowThreads(__tstate); | |
6556 | if (PyErr_Occurred()) SWIG_fail; | |
6557 | } | |
6558 | { | |
6559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6560 | } | |
6561 | { | |
6562 | if (temp2) | |
6563 | delete arg2; | |
6564 | } | |
6565 | return resultobj; | |
6566 | fail: | |
6567 | { | |
6568 | if (temp2) | |
6569 | delete arg2; | |
6570 | } | |
6571 | return NULL; | |
6572 | } | |
6573 | ||
6574 | ||
6575 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6576 | PyObject *resultobj; | |
6577 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6578 | wxFileSystem *arg2 = 0 ; | |
6579 | wxString *arg3 = 0 ; | |
6580 | wxFSFile *result; | |
6581 | bool temp3 = False ; | |
6582 | PyObject * obj0 = 0 ; | |
6583 | PyObject * obj1 = 0 ; | |
6584 | PyObject * obj2 = 0 ; | |
6585 | char *kwnames[] = { | |
6586 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6587 | }; | |
6588 | ||
6589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6592 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6594 | SWIG_fail; | |
6595 | if (arg2 == NULL) { | |
6596 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6597 | SWIG_fail; | |
6598 | } | |
6599 | { | |
6600 | arg3 = wxString_in_helper(obj2); | |
6601 | if (arg3 == NULL) SWIG_fail; | |
6602 | temp3 = True; | |
6603 | } | |
6604 | { | |
6605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6606 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6607 | ||
6608 | wxPyEndAllowThreads(__tstate); | |
6609 | if (PyErr_Occurred()) SWIG_fail; | |
6610 | } | |
6611 | { | |
6612 | resultobj = wxPyMake_wxObject(result); | |
6613 | } | |
6614 | { | |
6615 | if (temp3) | |
6616 | delete arg3; | |
6617 | } | |
6618 | return resultobj; | |
6619 | fail: | |
6620 | { | |
6621 | if (temp3) | |
6622 | delete arg3; | |
6623 | } | |
6624 | return NULL; | |
6625 | } | |
6626 | ||
6627 | ||
6628 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6629 | PyObject *resultobj; | |
6630 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6631 | wxString *arg2 = 0 ; | |
6632 | int arg3 = (int) 0 ; | |
6633 | wxString result; | |
6634 | bool temp2 = False ; | |
6635 | PyObject * obj0 = 0 ; | |
6636 | PyObject * obj1 = 0 ; | |
6637 | PyObject * obj2 = 0 ; | |
6638 | char *kwnames[] = { | |
6639 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6640 | }; | |
6641 | ||
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6645 | { | |
6646 | arg2 = wxString_in_helper(obj1); | |
6647 | if (arg2 == NULL) SWIG_fail; | |
6648 | temp2 = True; | |
6649 | } | |
6650 | if (obj2) { | |
6651 | arg3 = (int) SWIG_AsInt(obj2); | |
6652 | if (PyErr_Occurred()) SWIG_fail; | |
6653 | } | |
6654 | { | |
6655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6656 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6657 | ||
6658 | wxPyEndAllowThreads(__tstate); | |
6659 | if (PyErr_Occurred()) SWIG_fail; | |
6660 | } | |
6661 | { | |
6662 | #if wxUSE_UNICODE | |
6663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6664 | #else | |
6665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6666 | #endif | |
6667 | } | |
6668 | { | |
6669 | if (temp2) | |
6670 | delete arg2; | |
6671 | } | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | { | |
6675 | if (temp2) | |
6676 | delete arg2; | |
6677 | } | |
6678 | return NULL; | |
6679 | } | |
6680 | ||
6681 | ||
6682 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6683 | PyObject *resultobj; | |
6684 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6685 | wxString result; | |
6686 | PyObject * obj0 = 0 ; | |
6687 | char *kwnames[] = { | |
6688 | (char *) "self", NULL | |
6689 | }; | |
6690 | ||
6691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6694 | { | |
6695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6696 | result = (arg1)->FindNext(); | |
6697 | ||
6698 | wxPyEndAllowThreads(__tstate); | |
6699 | if (PyErr_Occurred()) SWIG_fail; | |
6700 | } | |
6701 | { | |
6702 | #if wxUSE_UNICODE | |
6703 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6704 | #else | |
6705 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6706 | #endif | |
6707 | } | |
6708 | return resultobj; | |
6709 | fail: | |
6710 | return NULL; | |
6711 | } | |
6712 | ||
6713 | ||
6714 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6715 | PyObject *resultobj; | |
6716 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6717 | wxString *arg2 = 0 ; | |
6718 | wxString result; | |
6719 | bool temp2 = False ; | |
6720 | PyObject * obj0 = 0 ; | |
6721 | PyObject * obj1 = 0 ; | |
6722 | char *kwnames[] = { | |
6723 | (char *) "self",(char *) "location", NULL | |
6724 | }; | |
6725 | ||
6726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
6727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6729 | { | |
6730 | arg2 = wxString_in_helper(obj1); | |
6731 | if (arg2 == NULL) SWIG_fail; | |
6732 | temp2 = True; | |
6733 | } | |
6734 | { | |
6735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6736 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
6737 | ||
6738 | wxPyEndAllowThreads(__tstate); | |
6739 | if (PyErr_Occurred()) SWIG_fail; | |
6740 | } | |
6741 | { | |
6742 | #if wxUSE_UNICODE | |
6743 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6744 | #else | |
6745 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6746 | #endif | |
6747 | } | |
6748 | { | |
6749 | if (temp2) | |
6750 | delete arg2; | |
6751 | } | |
6752 | return resultobj; | |
6753 | fail: | |
6754 | { | |
6755 | if (temp2) | |
6756 | delete arg2; | |
6757 | } | |
6758 | return NULL; | |
6759 | } | |
6760 | ||
6761 | ||
6762 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6763 | PyObject *resultobj; | |
6764 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6765 | wxString *arg2 = 0 ; | |
6766 | wxString result; | |
6767 | bool temp2 = False ; | |
6768 | PyObject * obj0 = 0 ; | |
6769 | PyObject * obj1 = 0 ; | |
6770 | char *kwnames[] = { | |
6771 | (char *) "self",(char *) "location", NULL | |
6772 | }; | |
6773 | ||
6774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
6775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6777 | { | |
6778 | arg2 = wxString_in_helper(obj1); | |
6779 | if (arg2 == NULL) SWIG_fail; | |
6780 | temp2 = True; | |
6781 | } | |
6782 | { | |
6783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6784 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
6785 | ||
6786 | wxPyEndAllowThreads(__tstate); | |
6787 | if (PyErr_Occurred()) SWIG_fail; | |
6788 | } | |
6789 | { | |
6790 | #if wxUSE_UNICODE | |
6791 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6792 | #else | |
6793 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6794 | #endif | |
6795 | } | |
6796 | { | |
6797 | if (temp2) | |
6798 | delete arg2; | |
6799 | } | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | { | |
6803 | if (temp2) | |
6804 | delete arg2; | |
6805 | } | |
6806 | return NULL; | |
6807 | } | |
6808 | ||
6809 | ||
6810 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6811 | PyObject *resultobj; | |
6812 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6813 | wxString *arg2 = 0 ; | |
6814 | wxString result; | |
6815 | bool temp2 = False ; | |
6816 | PyObject * obj0 = 0 ; | |
6817 | PyObject * obj1 = 0 ; | |
6818 | char *kwnames[] = { | |
6819 | (char *) "self",(char *) "location", NULL | |
6820 | }; | |
6821 | ||
6822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
6823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6825 | { | |
6826 | arg2 = wxString_in_helper(obj1); | |
6827 | if (arg2 == NULL) SWIG_fail; | |
6828 | temp2 = True; | |
6829 | } | |
6830 | { | |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6832 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
6833 | ||
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) SWIG_fail; | |
6836 | } | |
6837 | { | |
6838 | #if wxUSE_UNICODE | |
6839 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6840 | #else | |
6841 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6842 | #endif | |
6843 | } | |
6844 | { | |
6845 | if (temp2) | |
6846 | delete arg2; | |
6847 | } | |
6848 | return resultobj; | |
6849 | fail: | |
6850 | { | |
6851 | if (temp2) | |
6852 | delete arg2; | |
6853 | } | |
6854 | return NULL; | |
6855 | } | |
6856 | ||
6857 | ||
6858 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6859 | PyObject *resultobj; | |
6860 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6861 | wxString *arg2 = 0 ; | |
6862 | wxString result; | |
6863 | bool temp2 = False ; | |
6864 | PyObject * obj0 = 0 ; | |
6865 | PyObject * obj1 = 0 ; | |
6866 | char *kwnames[] = { | |
6867 | (char *) "self",(char *) "location", NULL | |
6868 | }; | |
6869 | ||
6870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
6871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6873 | { | |
6874 | arg2 = wxString_in_helper(obj1); | |
6875 | if (arg2 == NULL) SWIG_fail; | |
6876 | temp2 = True; | |
6877 | } | |
6878 | { | |
6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6880 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
6881 | ||
6882 | wxPyEndAllowThreads(__tstate); | |
6883 | if (PyErr_Occurred()) SWIG_fail; | |
6884 | } | |
6885 | { | |
6886 | #if wxUSE_UNICODE | |
6887 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6888 | #else | |
6889 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6890 | #endif | |
6891 | } | |
6892 | { | |
6893 | if (temp2) | |
6894 | delete arg2; | |
6895 | } | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | { | |
6899 | if (temp2) | |
6900 | delete arg2; | |
6901 | } | |
6902 | return NULL; | |
6903 | } | |
6904 | ||
6905 | ||
6906 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj; | |
6908 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6909 | wxString *arg2 = 0 ; | |
6910 | wxString result; | |
6911 | bool temp2 = False ; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | PyObject * obj1 = 0 ; | |
6914 | char *kwnames[] = { | |
6915 | (char *) "self",(char *) "location", NULL | |
6916 | }; | |
6917 | ||
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
6919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6921 | { | |
6922 | arg2 = wxString_in_helper(obj1); | |
6923 | if (arg2 == NULL) SWIG_fail; | |
6924 | temp2 = True; | |
6925 | } | |
6926 | { | |
6927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6928 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
6929 | ||
6930 | wxPyEndAllowThreads(__tstate); | |
6931 | if (PyErr_Occurred()) SWIG_fail; | |
6932 | } | |
6933 | { | |
6934 | #if wxUSE_UNICODE | |
6935 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6936 | #else | |
6937 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6938 | #endif | |
6939 | } | |
6940 | { | |
6941 | if (temp2) | |
6942 | delete arg2; | |
6943 | } | |
6944 | return resultobj; | |
6945 | fail: | |
6946 | { | |
6947 | if (temp2) | |
6948 | delete arg2; | |
6949 | } | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
6954 | static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) { | |
6955 | PyObject *obj; | |
6956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6957 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
6958 | Py_INCREF(obj); | |
6959 | return Py_BuildValue((char *)""); | |
6960 | } | |
6961 | static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6962 | PyObject *resultobj; | |
6963 | wxFileSystem *result; | |
6964 | char *kwnames[] = { | |
6965 | NULL | |
6966 | }; | |
6967 | ||
6968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
6969 | { | |
6970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6971 | result = (wxFileSystem *)new wxFileSystem(); | |
6972 | ||
6973 | wxPyEndAllowThreads(__tstate); | |
6974 | if (PyErr_Occurred()) SWIG_fail; | |
6975 | } | |
6976 | { | |
6977 | resultobj = wxPyMake_wxObject(result); | |
6978 | } | |
6979 | return resultobj; | |
6980 | fail: | |
6981 | return NULL; | |
6982 | } | |
6983 | ||
6984 | ||
6985 | static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6986 | PyObject *resultobj; | |
6987 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
6988 | PyObject * obj0 = 0 ; | |
6989 | char *kwnames[] = { | |
6990 | (char *) "self", NULL | |
6991 | }; | |
6992 | ||
6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
6994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
6995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6996 | { | |
6997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6998 | delete arg1; | |
6999 | ||
7000 | wxPyEndAllowThreads(__tstate); | |
7001 | if (PyErr_Occurred()) SWIG_fail; | |
7002 | } | |
7003 | Py_INCREF(Py_None); resultobj = Py_None; | |
7004 | return resultobj; | |
7005 | fail: | |
7006 | return NULL; | |
7007 | } | |
7008 | ||
7009 | ||
7010 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7011 | PyObject *resultobj; | |
7012 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7013 | wxString *arg2 = 0 ; | |
7014 | bool arg3 = (bool) False ; | |
7015 | bool temp2 = False ; | |
7016 | PyObject * obj0 = 0 ; | |
7017 | PyObject * obj1 = 0 ; | |
7018 | PyObject * obj2 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7026 | { | |
7027 | arg2 = wxString_in_helper(obj1); | |
7028 | if (arg2 == NULL) SWIG_fail; | |
7029 | temp2 = True; | |
7030 | } | |
7031 | if (obj2) { | |
7032 | arg3 = (bool) SWIG_AsBool(obj2); | |
7033 | if (PyErr_Occurred()) SWIG_fail; | |
7034 | } | |
7035 | { | |
7036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7037 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7038 | ||
7039 | wxPyEndAllowThreads(__tstate); | |
7040 | if (PyErr_Occurred()) SWIG_fail; | |
7041 | } | |
7042 | Py_INCREF(Py_None); resultobj = Py_None; | |
7043 | { | |
7044 | if (temp2) | |
7045 | delete arg2; | |
7046 | } | |
7047 | return resultobj; | |
7048 | fail: | |
7049 | { | |
7050 | if (temp2) | |
7051 | delete arg2; | |
7052 | } | |
7053 | return NULL; | |
7054 | } | |
7055 | ||
7056 | ||
7057 | static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7058 | PyObject *resultobj; | |
7059 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7060 | wxString result; | |
7061 | PyObject * obj0 = 0 ; | |
7062 | char *kwnames[] = { | |
7063 | (char *) "self", NULL | |
7064 | }; | |
7065 | ||
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7069 | { | |
7070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7071 | result = (arg1)->GetPath(); | |
7072 | ||
7073 | wxPyEndAllowThreads(__tstate); | |
7074 | if (PyErr_Occurred()) SWIG_fail; | |
7075 | } | |
7076 | { | |
7077 | #if wxUSE_UNICODE | |
7078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7079 | #else | |
7080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7081 | #endif | |
7082 | } | |
7083 | return resultobj; | |
7084 | fail: | |
7085 | return NULL; | |
7086 | } | |
7087 | ||
7088 | ||
7089 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject *resultobj; | |
7091 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7092 | wxString *arg2 = 0 ; | |
7093 | wxFSFile *result; | |
7094 | bool temp2 = False ; | |
7095 | PyObject * obj0 = 0 ; | |
7096 | PyObject * obj1 = 0 ; | |
7097 | char *kwnames[] = { | |
7098 | (char *) "self",(char *) "location", NULL | |
7099 | }; | |
7100 | ||
7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7104 | { | |
7105 | arg2 = wxString_in_helper(obj1); | |
7106 | if (arg2 == NULL) SWIG_fail; | |
7107 | temp2 = True; | |
7108 | } | |
7109 | { | |
7110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7111 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7112 | ||
7113 | wxPyEndAllowThreads(__tstate); | |
7114 | if (PyErr_Occurred()) SWIG_fail; | |
7115 | } | |
7116 | { | |
7117 | resultobj = wxPyMake_wxObject(result); | |
7118 | } | |
7119 | { | |
7120 | if (temp2) | |
7121 | delete arg2; | |
7122 | } | |
7123 | return resultobj; | |
7124 | fail: | |
7125 | { | |
7126 | if (temp2) | |
7127 | delete arg2; | |
7128 | } | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7136 | wxString *arg2 = 0 ; | |
7137 | int arg3 = (int) 0 ; | |
7138 | wxString result; | |
7139 | bool temp2 = False ; | |
7140 | PyObject * obj0 = 0 ; | |
7141 | PyObject * obj1 = 0 ; | |
7142 | PyObject * obj2 = 0 ; | |
7143 | char *kwnames[] = { | |
7144 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7145 | }; | |
7146 | ||
7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7150 | { | |
7151 | arg2 = wxString_in_helper(obj1); | |
7152 | if (arg2 == NULL) SWIG_fail; | |
7153 | temp2 = True; | |
7154 | } | |
7155 | if (obj2) { | |
7156 | arg3 = (int) SWIG_AsInt(obj2); | |
7157 | if (PyErr_Occurred()) SWIG_fail; | |
7158 | } | |
7159 | { | |
7160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7161 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7162 | ||
7163 | wxPyEndAllowThreads(__tstate); | |
7164 | if (PyErr_Occurred()) SWIG_fail; | |
7165 | } | |
7166 | { | |
7167 | #if wxUSE_UNICODE | |
7168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7169 | #else | |
7170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7171 | #endif | |
7172 | } | |
7173 | { | |
7174 | if (temp2) | |
7175 | delete arg2; | |
7176 | } | |
7177 | return resultobj; | |
7178 | fail: | |
7179 | { | |
7180 | if (temp2) | |
7181 | delete arg2; | |
7182 | } | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7188 | PyObject *resultobj; | |
7189 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7190 | wxString result; | |
7191 | PyObject * obj0 = 0 ; | |
7192 | char *kwnames[] = { | |
7193 | (char *) "self", NULL | |
7194 | }; | |
7195 | ||
7196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7199 | { | |
7200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7201 | result = (arg1)->FindNext(); | |
7202 | ||
7203 | wxPyEndAllowThreads(__tstate); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | { | |
7207 | #if wxUSE_UNICODE | |
7208 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7209 | #else | |
7210 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7211 | #endif | |
7212 | } | |
7213 | return resultobj; | |
7214 | fail: | |
7215 | return NULL; | |
7216 | } | |
7217 | ||
7218 | ||
7219 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7220 | PyObject *resultobj; | |
7221 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7222 | PyObject * obj0 = 0 ; | |
7223 | char *kwnames[] = { | |
7224 | (char *) "handler", NULL | |
7225 | }; | |
7226 | ||
7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7230 | { | |
7231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7232 | wxFileSystem::AddHandler(arg1); | |
7233 | ||
7234 | wxPyEndAllowThreads(__tstate); | |
7235 | if (PyErr_Occurred()) SWIG_fail; | |
7236 | } | |
7237 | Py_INCREF(Py_None); resultobj = Py_None; | |
7238 | return resultobj; | |
7239 | fail: | |
7240 | return NULL; | |
7241 | } | |
7242 | ||
7243 | ||
7244 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject *resultobj; | |
7246 | char *kwnames[] = { | |
7247 | NULL | |
7248 | }; | |
7249 | ||
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7251 | { | |
7252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7253 | wxFileSystem::CleanUpHandlers(); | |
7254 | ||
7255 | wxPyEndAllowThreads(__tstate); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | Py_INCREF(Py_None); resultobj = Py_None; | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7266 | PyObject *resultobj; | |
7267 | wxString *arg1 = 0 ; | |
7268 | wxString result; | |
7269 | bool temp1 = False ; | |
7270 | PyObject * obj0 = 0 ; | |
7271 | char *kwnames[] = { | |
7272 | (char *) "filename", NULL | |
7273 | }; | |
7274 | ||
7275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7276 | { | |
7277 | arg1 = wxString_in_helper(obj0); | |
7278 | if (arg1 == NULL) SWIG_fail; | |
7279 | temp1 = True; | |
7280 | } | |
7281 | { | |
7282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7283 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7284 | ||
7285 | wxPyEndAllowThreads(__tstate); | |
7286 | if (PyErr_Occurred()) SWIG_fail; | |
7287 | } | |
7288 | { | |
7289 | #if wxUSE_UNICODE | |
7290 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7291 | #else | |
7292 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7293 | #endif | |
7294 | } | |
7295 | { | |
7296 | if (temp1) | |
7297 | delete arg1; | |
7298 | } | |
7299 | return resultobj; | |
7300 | fail: | |
7301 | { | |
7302 | if (temp1) | |
7303 | delete arg1; | |
7304 | } | |
7305 | return NULL; | |
7306 | } | |
7307 | ||
7308 | ||
7309 | static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) { | |
7310 | PyObject *obj; | |
7311 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7312 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7313 | Py_INCREF(obj); | |
7314 | return Py_BuildValue((char *)""); | |
7315 | } | |
7316 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject *resultobj; | |
7318 | wxString *arg1 = 0 ; | |
7319 | wxString result; | |
7320 | bool temp1 = False ; | |
7321 | PyObject * obj0 = 0 ; | |
7322 | char *kwnames[] = { | |
7323 | (char *) "url", NULL | |
7324 | }; | |
7325 | ||
7326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7327 | { | |
7328 | arg1 = wxString_in_helper(obj0); | |
7329 | if (arg1 == NULL) SWIG_fail; | |
7330 | temp1 = True; | |
7331 | } | |
7332 | { | |
7333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7334 | result = wxFileSystem_URLToFileName((wxString const &)*arg1); | |
7335 | ||
7336 | wxPyEndAllowThreads(__tstate); | |
7337 | if (PyErr_Occurred()) SWIG_fail; | |
7338 | } | |
7339 | { | |
7340 | #if wxUSE_UNICODE | |
7341 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7342 | #else | |
7343 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7344 | #endif | |
7345 | } | |
7346 | { | |
7347 | if (temp1) | |
7348 | delete arg1; | |
7349 | } | |
7350 | return resultobj; | |
7351 | fail: | |
7352 | { | |
7353 | if (temp1) | |
7354 | delete arg1; | |
7355 | } | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject *resultobj; | |
7362 | wxInternetFSHandler *result; | |
7363 | char *kwnames[] = { | |
7364 | NULL | |
7365 | }; | |
7366 | ||
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7368 | { | |
7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7370 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7371 | ||
7372 | wxPyEndAllowThreads(__tstate); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | } | |
7375 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7376 | return resultobj; | |
7377 | fail: | |
7378 | return NULL; | |
7379 | } | |
7380 | ||
7381 | ||
7382 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7383 | PyObject *resultobj; | |
7384 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7385 | wxString *arg2 = 0 ; | |
7386 | bool result; | |
7387 | bool temp2 = False ; | |
7388 | PyObject * obj0 = 0 ; | |
7389 | PyObject * obj1 = 0 ; | |
7390 | char *kwnames[] = { | |
7391 | (char *) "self",(char *) "location", NULL | |
7392 | }; | |
7393 | ||
7394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7397 | { | |
7398 | arg2 = wxString_in_helper(obj1); | |
7399 | if (arg2 == NULL) SWIG_fail; | |
7400 | temp2 = True; | |
7401 | } | |
7402 | { | |
7403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7404 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7405 | ||
7406 | wxPyEndAllowThreads(__tstate); | |
7407 | if (PyErr_Occurred()) SWIG_fail; | |
7408 | } | |
7409 | { | |
7410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7411 | } | |
7412 | { | |
7413 | if (temp2) | |
7414 | delete arg2; | |
7415 | } | |
7416 | return resultobj; | |
7417 | fail: | |
7418 | { | |
7419 | if (temp2) | |
7420 | delete arg2; | |
7421 | } | |
7422 | return NULL; | |
7423 | } | |
7424 | ||
7425 | ||
7426 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7427 | PyObject *resultobj; | |
7428 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7429 | wxFileSystem *arg2 = 0 ; | |
7430 | wxString *arg3 = 0 ; | |
7431 | wxFSFile *result; | |
7432 | bool temp3 = False ; | |
7433 | PyObject * obj0 = 0 ; | |
7434 | PyObject * obj1 = 0 ; | |
7435 | PyObject * obj2 = 0 ; | |
7436 | char *kwnames[] = { | |
7437 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7438 | }; | |
7439 | ||
7440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7443 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7444 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7445 | SWIG_fail; | |
7446 | if (arg2 == NULL) { | |
7447 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7448 | SWIG_fail; | |
7449 | } | |
7450 | { | |
7451 | arg3 = wxString_in_helper(obj2); | |
7452 | if (arg3 == NULL) SWIG_fail; | |
7453 | temp3 = True; | |
7454 | } | |
7455 | { | |
7456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7457 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7458 | ||
7459 | wxPyEndAllowThreads(__tstate); | |
7460 | if (PyErr_Occurred()) SWIG_fail; | |
7461 | } | |
7462 | { | |
7463 | resultobj = wxPyMake_wxObject(result); | |
7464 | } | |
7465 | { | |
7466 | if (temp3) | |
7467 | delete arg3; | |
7468 | } | |
7469 | return resultobj; | |
7470 | fail: | |
7471 | { | |
7472 | if (temp3) | |
7473 | delete arg3; | |
7474 | } | |
7475 | return NULL; | |
7476 | } | |
7477 | ||
7478 | ||
7479 | static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7480 | PyObject *obj; | |
7481 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7482 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7483 | Py_INCREF(obj); | |
7484 | return Py_BuildValue((char *)""); | |
7485 | } | |
7486 | static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7487 | PyObject *resultobj; | |
7488 | wxZipFSHandler *result; | |
7489 | char *kwnames[] = { | |
7490 | NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7494 | { | |
7495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7496 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7497 | ||
7498 | wxPyEndAllowThreads(__tstate); | |
7499 | if (PyErr_Occurred()) SWIG_fail; | |
7500 | } | |
7501 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7502 | return resultobj; | |
7503 | fail: | |
7504 | return NULL; | |
7505 | } | |
7506 | ||
7507 | ||
7508 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7509 | PyObject *resultobj; | |
7510 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7511 | wxString *arg2 = 0 ; | |
7512 | bool result; | |
7513 | bool temp2 = False ; | |
7514 | PyObject * obj0 = 0 ; | |
7515 | PyObject * obj1 = 0 ; | |
7516 | char *kwnames[] = { | |
7517 | (char *) "self",(char *) "location", NULL | |
7518 | }; | |
7519 | ||
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7523 | { | |
7524 | arg2 = wxString_in_helper(obj1); | |
7525 | if (arg2 == NULL) SWIG_fail; | |
7526 | temp2 = True; | |
7527 | } | |
7528 | { | |
7529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7530 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7531 | ||
7532 | wxPyEndAllowThreads(__tstate); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | { | |
7536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7537 | } | |
7538 | { | |
7539 | if (temp2) | |
7540 | delete arg2; | |
7541 | } | |
7542 | return resultobj; | |
7543 | fail: | |
7544 | { | |
7545 | if (temp2) | |
7546 | delete arg2; | |
7547 | } | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
7552 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7555 | wxFileSystem *arg2 = 0 ; | |
7556 | wxString *arg3 = 0 ; | |
7557 | wxFSFile *result; | |
7558 | bool temp3 = False ; | |
7559 | PyObject * obj0 = 0 ; | |
7560 | PyObject * obj1 = 0 ; | |
7561 | PyObject * obj2 = 0 ; | |
7562 | char *kwnames[] = { | |
7563 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7564 | }; | |
7565 | ||
7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7569 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7570 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7571 | SWIG_fail; | |
7572 | if (arg2 == NULL) { | |
7573 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7574 | SWIG_fail; | |
7575 | } | |
7576 | { | |
7577 | arg3 = wxString_in_helper(obj2); | |
7578 | if (arg3 == NULL) SWIG_fail; | |
7579 | temp3 = True; | |
7580 | } | |
7581 | { | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | { | |
7589 | resultobj = wxPyMake_wxObject(result); | |
7590 | } | |
7591 | { | |
7592 | if (temp3) | |
7593 | delete arg3; | |
7594 | } | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | { | |
7598 | if (temp3) | |
7599 | delete arg3; | |
7600 | } | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
7605 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject *resultobj; | |
7607 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7608 | wxString *arg2 = 0 ; | |
7609 | int arg3 = (int) 0 ; | |
7610 | wxString result; | |
7611 | bool temp2 = False ; | |
7612 | PyObject * obj0 = 0 ; | |
7613 | PyObject * obj1 = 0 ; | |
7614 | PyObject * obj2 = 0 ; | |
7615 | char *kwnames[] = { | |
7616 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7617 | }; | |
7618 | ||
7619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7622 | { | |
7623 | arg2 = wxString_in_helper(obj1); | |
7624 | if (arg2 == NULL) SWIG_fail; | |
7625 | temp2 = True; | |
7626 | } | |
7627 | if (obj2) { | |
7628 | arg3 = (int) SWIG_AsInt(obj2); | |
7629 | if (PyErr_Occurred()) SWIG_fail; | |
7630 | } | |
7631 | { | |
7632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7633 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | { | |
7639 | #if wxUSE_UNICODE | |
7640 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7641 | #else | |
7642 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7643 | #endif | |
7644 | } | |
7645 | { | |
7646 | if (temp2) | |
7647 | delete arg2; | |
7648 | } | |
7649 | return resultobj; | |
7650 | fail: | |
7651 | { | |
7652 | if (temp2) | |
7653 | delete arg2; | |
7654 | } | |
7655 | return NULL; | |
7656 | } | |
7657 | ||
7658 | ||
7659 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7660 | PyObject *resultobj; | |
7661 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7662 | wxString result; | |
7663 | PyObject * obj0 = 0 ; | |
7664 | char *kwnames[] = { | |
7665 | (char *) "self", NULL | |
7666 | }; | |
7667 | ||
7668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7671 | { | |
7672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7673 | result = (arg1)->FindNext(); | |
7674 | ||
7675 | wxPyEndAllowThreads(__tstate); | |
7676 | if (PyErr_Occurred()) SWIG_fail; | |
7677 | } | |
7678 | { | |
7679 | #if wxUSE_UNICODE | |
7680 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7681 | #else | |
7682 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7683 | #endif | |
7684 | } | |
7685 | return resultobj; | |
7686 | fail: | |
7687 | return NULL; | |
7688 | } | |
7689 | ||
7690 | ||
7691 | static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) { | |
7692 | PyObject *obj; | |
7693 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7694 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7695 | Py_INCREF(obj); | |
7696 | return Py_BuildValue((char *)""); | |
7697 | } | |
7698 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxString *arg1 = 0 ; | |
7701 | wxImage *arg2 = 0 ; | |
7702 | long arg3 ; | |
7703 | bool temp1 = False ; | |
7704 | PyObject * obj0 = 0 ; | |
7705 | PyObject * obj1 = 0 ; | |
7706 | PyObject * obj2 = 0 ; | |
7707 | char *kwnames[] = { | |
7708 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
7709 | }; | |
7710 | ||
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7712 | { | |
7713 | arg1 = wxString_in_helper(obj0); | |
7714 | if (arg1 == NULL) SWIG_fail; | |
7715 | temp1 = True; | |
7716 | } | |
7717 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
7718 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7719 | SWIG_fail; | |
7720 | if (arg2 == NULL) { | |
7721 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7722 | SWIG_fail; | |
7723 | } | |
7724 | arg3 = (long) SWIG_AsLong(obj2); | |
7725 | if (PyErr_Occurred()) SWIG_fail; | |
7726 | { | |
7727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7728 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
7729 | ||
7730 | wxPyEndAllowThreads(__tstate); | |
7731 | if (PyErr_Occurred()) SWIG_fail; | |
7732 | } | |
7733 | Py_INCREF(Py_None); resultobj = Py_None; | |
7734 | { | |
7735 | if (temp1) | |
7736 | delete arg1; | |
7737 | } | |
7738 | return resultobj; | |
7739 | fail: | |
7740 | { | |
7741 | if (temp1) | |
7742 | delete arg1; | |
7743 | } | |
7744 | return NULL; | |
7745 | } | |
7746 | ||
7747 | ||
7748 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject *resultobj; | |
7750 | wxString *arg1 = 0 ; | |
7751 | wxBitmap *arg2 = 0 ; | |
7752 | long arg3 ; | |
7753 | bool temp1 = False ; | |
7754 | PyObject * obj0 = 0 ; | |
7755 | PyObject * obj1 = 0 ; | |
7756 | PyObject * obj2 = 0 ; | |
7757 | char *kwnames[] = { | |
7758 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
7759 | }; | |
7760 | ||
7761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7762 | { | |
7763 | arg1 = wxString_in_helper(obj0); | |
7764 | if (arg1 == NULL) SWIG_fail; | |
7765 | temp1 = True; | |
7766 | } | |
7767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
7768 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7769 | SWIG_fail; | |
7770 | if (arg2 == NULL) { | |
7771 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7772 | SWIG_fail; | |
7773 | } | |
7774 | arg3 = (long) SWIG_AsLong(obj2); | |
7775 | if (PyErr_Occurred()) SWIG_fail; | |
7776 | { | |
7777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7778 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
7779 | ||
7780 | wxPyEndAllowThreads(__tstate); | |
7781 | if (PyErr_Occurred()) SWIG_fail; | |
7782 | } | |
7783 | Py_INCREF(Py_None); resultobj = Py_None; | |
7784 | { | |
7785 | if (temp1) | |
7786 | delete arg1; | |
7787 | } | |
7788 | return resultobj; | |
7789 | fail: | |
7790 | { | |
7791 | if (temp1) | |
7792 | delete arg1; | |
7793 | } | |
7794 | return NULL; | |
7795 | } | |
7796 | ||
7797 | ||
7798 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7799 | PyObject *resultobj; | |
7800 | wxString *arg1 = 0 ; | |
7801 | PyObject *arg2 = (PyObject *) 0 ; | |
7802 | bool temp1 = False ; | |
7803 | PyObject * obj0 = 0 ; | |
7804 | PyObject * obj1 = 0 ; | |
7805 | char *kwnames[] = { | |
7806 | (char *) "filename",(char *) "data", NULL | |
7807 | }; | |
7808 | ||
7809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
7810 | { | |
7811 | arg1 = wxString_in_helper(obj0); | |
7812 | if (arg1 == NULL) SWIG_fail; | |
7813 | temp1 = True; | |
7814 | } | |
7815 | arg2 = obj1; | |
7816 | { | |
7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7818 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
7819 | ||
7820 | wxPyEndAllowThreads(__tstate); | |
7821 | if (PyErr_Occurred()) SWIG_fail; | |
7822 | } | |
7823 | Py_INCREF(Py_None); resultobj = Py_None; | |
7824 | { | |
7825 | if (temp1) | |
7826 | delete arg1; | |
7827 | } | |
7828 | return resultobj; | |
7829 | fail: | |
7830 | { | |
7831 | if (temp1) | |
7832 | delete arg1; | |
7833 | } | |
7834 | return NULL; | |
7835 | } | |
7836 | ||
7837 | ||
7838 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7839 | PyObject *resultobj; | |
7840 | wxMemoryFSHandler *result; | |
7841 | char *kwnames[] = { | |
7842 | NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
7846 | { | |
7847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7848 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
7849 | ||
7850 | wxPyEndAllowThreads(__tstate); | |
7851 | if (PyErr_Occurred()) SWIG_fail; | |
7852 | } | |
7853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
7854 | return resultobj; | |
7855 | fail: | |
7856 | return NULL; | |
7857 | } | |
7858 | ||
7859 | ||
7860 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7861 | PyObject *resultobj; | |
7862 | wxString *arg1 = 0 ; | |
7863 | bool temp1 = False ; | |
7864 | PyObject * obj0 = 0 ; | |
7865 | char *kwnames[] = { | |
7866 | (char *) "filename", NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
7870 | { | |
7871 | arg1 = wxString_in_helper(obj0); | |
7872 | if (arg1 == NULL) SWIG_fail; | |
7873 | temp1 = True; | |
7874 | } | |
7875 | { | |
7876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7877 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
7878 | ||
7879 | wxPyEndAllowThreads(__tstate); | |
7880 | if (PyErr_Occurred()) SWIG_fail; | |
7881 | } | |
7882 | Py_INCREF(Py_None); resultobj = Py_None; | |
7883 | { | |
7884 | if (temp1) | |
7885 | delete arg1; | |
7886 | } | |
7887 | return resultobj; | |
7888 | fail: | |
7889 | { | |
7890 | if (temp1) | |
7891 | delete arg1; | |
7892 | } | |
7893 | return NULL; | |
7894 | } | |
7895 | ||
7896 | ||
7897 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7898 | PyObject *resultobj; | |
7899 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7900 | wxString *arg2 = 0 ; | |
7901 | bool result; | |
7902 | bool temp2 = False ; | |
7903 | PyObject * obj0 = 0 ; | |
7904 | PyObject * obj1 = 0 ; | |
7905 | char *kwnames[] = { | |
7906 | (char *) "self",(char *) "location", NULL | |
7907 | }; | |
7908 | ||
7909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7912 | { | |
7913 | arg2 = wxString_in_helper(obj1); | |
7914 | if (arg2 == NULL) SWIG_fail; | |
7915 | temp2 = True; | |
7916 | } | |
7917 | { | |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
7924 | { | |
7925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7926 | } | |
7927 | { | |
7928 | if (temp2) | |
7929 | delete arg2; | |
7930 | } | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | { | |
7934 | if (temp2) | |
7935 | delete arg2; | |
7936 | } | |
7937 | return NULL; | |
7938 | } | |
7939 | ||
7940 | ||
7941 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7942 | PyObject *resultobj; | |
7943 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7944 | wxFileSystem *arg2 = 0 ; | |
7945 | wxString *arg3 = 0 ; | |
7946 | wxFSFile *result; | |
7947 | bool temp3 = False ; | |
7948 | PyObject * obj0 = 0 ; | |
7949 | PyObject * obj1 = 0 ; | |
7950 | PyObject * obj2 = 0 ; | |
7951 | char *kwnames[] = { | |
7952 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
7957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7960 | SWIG_fail; | |
7961 | if (arg2 == NULL) { | |
7962 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7963 | SWIG_fail; | |
7964 | } | |
7965 | { | |
7966 | arg3 = wxString_in_helper(obj2); | |
7967 | if (arg3 == NULL) SWIG_fail; | |
7968 | temp3 = True; | |
7969 | } | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | { | |
7978 | resultobj = wxPyMake_wxObject(result); | |
7979 | } | |
7980 | { | |
7981 | if (temp3) | |
7982 | delete arg3; | |
7983 | } | |
7984 | return resultobj; | |
7985 | fail: | |
7986 | { | |
7987 | if (temp3) | |
7988 | delete arg3; | |
7989 | } | |
7990 | return NULL; | |
7991 | } | |
7992 | ||
7993 | ||
7994 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7995 | PyObject *resultobj; | |
7996 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
7997 | wxString *arg2 = 0 ; | |
7998 | int arg3 = (int) 0 ; | |
7999 | wxString result; | |
8000 | bool temp2 = False ; | |
8001 | PyObject * obj0 = 0 ; | |
8002 | PyObject * obj1 = 0 ; | |
8003 | PyObject * obj2 = 0 ; | |
8004 | char *kwnames[] = { | |
8005 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8006 | }; | |
8007 | ||
8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8011 | { | |
8012 | arg2 = wxString_in_helper(obj1); | |
8013 | if (arg2 == NULL) SWIG_fail; | |
8014 | temp2 = True; | |
8015 | } | |
8016 | if (obj2) { | |
8017 | arg3 = (int) SWIG_AsInt(obj2); | |
8018 | if (PyErr_Occurred()) SWIG_fail; | |
8019 | } | |
8020 | { | |
8021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8022 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8023 | ||
8024 | wxPyEndAllowThreads(__tstate); | |
8025 | if (PyErr_Occurred()) SWIG_fail; | |
8026 | } | |
8027 | { | |
8028 | #if wxUSE_UNICODE | |
8029 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8030 | #else | |
8031 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8032 | #endif | |
8033 | } | |
8034 | { | |
8035 | if (temp2) | |
8036 | delete arg2; | |
8037 | } | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | { | |
8041 | if (temp2) | |
8042 | delete arg2; | |
8043 | } | |
8044 | return NULL; | |
8045 | } | |
8046 | ||
8047 | ||
8048 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8049 | PyObject *resultobj; | |
8050 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8051 | wxString result; | |
8052 | PyObject * obj0 = 0 ; | |
8053 | char *kwnames[] = { | |
8054 | (char *) "self", NULL | |
8055 | }; | |
8056 | ||
8057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8060 | { | |
8061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8062 | result = (arg1)->FindNext(); | |
8063 | ||
8064 | wxPyEndAllowThreads(__tstate); | |
8065 | if (PyErr_Occurred()) SWIG_fail; | |
8066 | } | |
8067 | { | |
8068 | #if wxUSE_UNICODE | |
8069 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8070 | #else | |
8071 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8072 | #endif | |
8073 | } | |
8074 | return resultobj; | |
8075 | fail: | |
8076 | return NULL; | |
8077 | } | |
8078 | ||
8079 | ||
8080 | static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) { | |
8081 | PyObject *obj; | |
8082 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8083 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8084 | Py_INCREF(obj); | |
8085 | return Py_BuildValue((char *)""); | |
8086 | } | |
8087 | static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8088 | PyObject *resultobj; | |
8089 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8090 | wxString result; | |
8091 | PyObject * obj0 = 0 ; | |
8092 | char *kwnames[] = { | |
8093 | (char *) "self", NULL | |
8094 | }; | |
8095 | ||
8096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8099 | { | |
8100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8101 | result = (arg1)->GetName(); | |
8102 | ||
8103 | wxPyEndAllowThreads(__tstate); | |
8104 | if (PyErr_Occurred()) SWIG_fail; | |
8105 | } | |
8106 | { | |
8107 | #if wxUSE_UNICODE | |
8108 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8109 | #else | |
8110 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8111 | #endif | |
8112 | } | |
8113 | return resultobj; | |
8114 | fail: | |
8115 | return NULL; | |
8116 | } | |
8117 | ||
8118 | ||
8119 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8120 | PyObject *resultobj; | |
8121 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8122 | wxString result; | |
8123 | PyObject * obj0 = 0 ; | |
8124 | char *kwnames[] = { | |
8125 | (char *) "self", NULL | |
8126 | }; | |
8127 | ||
8128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8131 | { | |
8132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8133 | result = (arg1)->GetExtension(); | |
8134 | ||
8135 | wxPyEndAllowThreads(__tstate); | |
8136 | if (PyErr_Occurred()) SWIG_fail; | |
8137 | } | |
8138 | { | |
8139 | #if wxUSE_UNICODE | |
8140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8141 | #else | |
8142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8143 | #endif | |
8144 | } | |
8145 | return resultobj; | |
8146 | fail: | |
8147 | return NULL; | |
8148 | } | |
8149 | ||
8150 | ||
8151 | static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8152 | PyObject *resultobj; | |
8153 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8154 | long result; | |
8155 | PyObject * obj0 = 0 ; | |
8156 | char *kwnames[] = { | |
8157 | (char *) "self", NULL | |
8158 | }; | |
8159 | ||
8160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8163 | { | |
8164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8165 | result = (long)(arg1)->GetType(); | |
8166 | ||
8167 | wxPyEndAllowThreads(__tstate); | |
8168 | if (PyErr_Occurred()) SWIG_fail; | |
8169 | } | |
8170 | resultobj = SWIG_FromLong((long)result); | |
8171 | return resultobj; | |
8172 | fail: | |
8173 | return NULL; | |
8174 | } | |
8175 | ||
8176 | ||
8177 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8178 | PyObject *resultobj; | |
8179 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8180 | wxString result; | |
8181 | PyObject * obj0 = 0 ; | |
8182 | char *kwnames[] = { | |
8183 | (char *) "self", NULL | |
8184 | }; | |
8185 | ||
8186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8189 | { | |
8190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8191 | result = (arg1)->GetMimeType(); | |
8192 | ||
8193 | wxPyEndAllowThreads(__tstate); | |
8194 | if (PyErr_Occurred()) SWIG_fail; | |
8195 | } | |
8196 | { | |
8197 | #if wxUSE_UNICODE | |
8198 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8199 | #else | |
8200 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8201 | #endif | |
8202 | } | |
8203 | return resultobj; | |
8204 | fail: | |
8205 | return NULL; | |
8206 | } | |
8207 | ||
8208 | ||
8209 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8210 | PyObject *resultobj; | |
8211 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8212 | wxString *arg2 = 0 ; | |
8213 | bool result; | |
8214 | bool temp2 = False ; | |
8215 | PyObject * obj0 = 0 ; | |
8216 | PyObject * obj1 = 0 ; | |
8217 | char *kwnames[] = { | |
8218 | (char *) "self",(char *) "name", NULL | |
8219 | }; | |
8220 | ||
8221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8224 | { | |
8225 | arg2 = wxString_in_helper(obj1); | |
8226 | if (arg2 == NULL) SWIG_fail; | |
8227 | temp2 = True; | |
8228 | } | |
8229 | { | |
8230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8231 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8232 | ||
8233 | wxPyEndAllowThreads(__tstate); | |
8234 | if (PyErr_Occurred()) SWIG_fail; | |
8235 | } | |
8236 | { | |
8237 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8238 | } | |
8239 | { | |
8240 | if (temp2) | |
8241 | delete arg2; | |
8242 | } | |
8243 | return resultobj; | |
8244 | fail: | |
8245 | { | |
8246 | if (temp2) | |
8247 | delete arg2; | |
8248 | } | |
8249 | return NULL; | |
8250 | } | |
8251 | ||
8252 | ||
8253 | static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8254 | PyObject *resultobj; | |
8255 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8256 | wxString *arg2 = 0 ; | |
8257 | bool temp2 = False ; | |
8258 | PyObject * obj0 = 0 ; | |
8259 | PyObject * obj1 = 0 ; | |
8260 | char *kwnames[] = { | |
8261 | (char *) "self",(char *) "name", NULL | |
8262 | }; | |
8263 | ||
8264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8267 | { | |
8268 | arg2 = wxString_in_helper(obj1); | |
8269 | if (arg2 == NULL) SWIG_fail; | |
8270 | temp2 = True; | |
8271 | } | |
8272 | { | |
8273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8274 | (arg1)->SetName((wxString const &)*arg2); | |
8275 | ||
8276 | wxPyEndAllowThreads(__tstate); | |
8277 | if (PyErr_Occurred()) SWIG_fail; | |
8278 | } | |
8279 | Py_INCREF(Py_None); resultobj = Py_None; | |
8280 | { | |
8281 | if (temp2) | |
8282 | delete arg2; | |
8283 | } | |
8284 | return resultobj; | |
8285 | fail: | |
8286 | { | |
8287 | if (temp2) | |
8288 | delete arg2; | |
8289 | } | |
8290 | return NULL; | |
8291 | } | |
8292 | ||
8293 | ||
8294 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8295 | PyObject *resultobj; | |
8296 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8297 | wxString *arg2 = 0 ; | |
8298 | bool temp2 = False ; | |
8299 | PyObject * obj0 = 0 ; | |
8300 | PyObject * obj1 = 0 ; | |
8301 | char *kwnames[] = { | |
8302 | (char *) "self",(char *) "extension", NULL | |
8303 | }; | |
8304 | ||
8305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8308 | { | |
8309 | arg2 = wxString_in_helper(obj1); | |
8310 | if (arg2 == NULL) SWIG_fail; | |
8311 | temp2 = True; | |
8312 | } | |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | (arg1)->SetExtension((wxString const &)*arg2); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | Py_INCREF(Py_None); resultobj = Py_None; | |
8321 | { | |
8322 | if (temp2) | |
8323 | delete arg2; | |
8324 | } | |
8325 | return resultobj; | |
8326 | fail: | |
8327 | { | |
8328 | if (temp2) | |
8329 | delete arg2; | |
8330 | } | |
8331 | return NULL; | |
8332 | } | |
8333 | ||
8334 | ||
8335 | static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8336 | PyObject *resultobj; | |
8337 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8338 | long arg2 ; | |
8339 | PyObject * obj0 = 0 ; | |
8340 | PyObject * obj1 = 0 ; | |
8341 | char *kwnames[] = { | |
8342 | (char *) "self",(char *) "type", NULL | |
8343 | }; | |
8344 | ||
8345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8348 | arg2 = (long) SWIG_AsLong(obj1); | |
8349 | if (PyErr_Occurred()) SWIG_fail; | |
8350 | { | |
8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8352 | (arg1)->SetType(arg2); | |
8353 | ||
8354 | wxPyEndAllowThreads(__tstate); | |
8355 | if (PyErr_Occurred()) SWIG_fail; | |
8356 | } | |
8357 | Py_INCREF(Py_None); resultobj = Py_None; | |
8358 | return resultobj; | |
8359 | fail: | |
8360 | return NULL; | |
8361 | } | |
8362 | ||
8363 | ||
8364 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject *resultobj; | |
8366 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8367 | wxString *arg2 = 0 ; | |
8368 | bool temp2 = False ; | |
8369 | PyObject * obj0 = 0 ; | |
8370 | PyObject * obj1 = 0 ; | |
8371 | char *kwnames[] = { | |
8372 | (char *) "self",(char *) "mimetype", NULL | |
8373 | }; | |
8374 | ||
8375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8378 | { | |
8379 | arg2 = wxString_in_helper(obj1); | |
8380 | if (arg2 == NULL) SWIG_fail; | |
8381 | temp2 = True; | |
8382 | } | |
8383 | { | |
8384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8385 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8386 | ||
8387 | wxPyEndAllowThreads(__tstate); | |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
8389 | } | |
8390 | Py_INCREF(Py_None); resultobj = Py_None; | |
8391 | { | |
8392 | if (temp2) | |
8393 | delete arg2; | |
8394 | } | |
8395 | return resultobj; | |
8396 | fail: | |
8397 | { | |
8398 | if (temp2) | |
8399 | delete arg2; | |
8400 | } | |
8401 | return NULL; | |
8402 | } | |
8403 | ||
8404 | ||
8405 | static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) { | |
8406 | PyObject *obj; | |
8407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8408 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8409 | Py_INCREF(obj); | |
8410 | return Py_BuildValue((char *)""); | |
8411 | } | |
8412 | static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8413 | PyObject *resultobj; | |
8414 | wxImageHistogram *result; | |
8415 | char *kwnames[] = { | |
8416 | NULL | |
8417 | }; | |
8418 | ||
8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8420 | { | |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
8427 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8428 | return resultobj; | |
8429 | fail: | |
8430 | return NULL; | |
8431 | } | |
8432 | ||
8433 | ||
8434 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8435 | PyObject *resultobj; | |
8436 | unsigned char arg1 ; | |
8437 | unsigned char arg2 ; | |
8438 | unsigned char arg3 ; | |
8439 | unsigned long result; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | PyObject * obj1 = 0 ; | |
8442 | PyObject * obj2 = 0 ; | |
8443 | char *kwnames[] = { | |
8444 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8445 | }; | |
8446 | ||
8447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8448 | arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0); | |
8449 | if (PyErr_Occurred()) SWIG_fail; | |
8450 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8451 | if (PyErr_Occurred()) SWIG_fail; | |
8452 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | { | |
8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8456 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8457 | ||
8458 | wxPyEndAllowThreads(__tstate); | |
8459 | if (PyErr_Occurred()) SWIG_fail; | |
8460 | } | |
8461 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
8462 | return resultobj; | |
8463 | fail: | |
8464 | return NULL; | |
8465 | } | |
8466 | ||
8467 | ||
8468 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8469 | PyObject *resultobj; | |
8470 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8471 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8472 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8473 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8474 | unsigned char arg5 = (unsigned char) 1 ; | |
8475 | unsigned char arg6 = (unsigned char) 0 ; | |
8476 | unsigned char arg7 = (unsigned char) 0 ; | |
8477 | bool result; | |
8478 | unsigned char temp2 ; | |
8479 | unsigned char temp3 ; | |
8480 | unsigned char temp4 ; | |
8481 | PyObject * obj0 = 0 ; | |
8482 | PyObject * obj1 = 0 ; | |
8483 | PyObject * obj2 = 0 ; | |
8484 | PyObject * obj3 = 0 ; | |
8485 | char *kwnames[] = { | |
8486 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8487 | }; | |
8488 | ||
8489 | arg2 = &temp2; | |
8490 | arg3 = &temp3; | |
8491 | arg4 = &temp4; | |
8492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8495 | if (obj1) { | |
8496 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
8499 | if (obj2) { | |
8500 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | } | |
8503 | if (obj3) { | |
8504 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
8505 | if (PyErr_Occurred()) SWIG_fail; | |
8506 | } | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8516 | } | |
8517 | { | |
8518 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8519 | resultobj = t_output_helper(resultobj,o); | |
8520 | } | |
8521 | { | |
8522 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8523 | resultobj = t_output_helper(resultobj,o); | |
8524 | } | |
8525 | { | |
8526 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8527 | resultobj = t_output_helper(resultobj,o); | |
8528 | } | |
8529 | return resultobj; | |
8530 | fail: | |
8531 | return NULL; | |
8532 | } | |
8533 | ||
8534 | ||
8535 | static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) { | |
8536 | PyObject *obj; | |
8537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8538 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8539 | Py_INCREF(obj); | |
8540 | return Py_BuildValue((char *)""); | |
8541 | } | |
8542 | static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8543 | PyObject *resultobj; | |
8544 | wxString *arg1 = 0 ; | |
8545 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8546 | int arg3 = (int) -1 ; | |
8547 | wxImage *result; | |
8548 | bool temp1 = False ; | |
8549 | PyObject * obj0 = 0 ; | |
8550 | PyObject * obj1 = 0 ; | |
8551 | PyObject * obj2 = 0 ; | |
8552 | char *kwnames[] = { | |
8553 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8554 | }; | |
8555 | ||
8556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8557 | { | |
8558 | arg1 = wxString_in_helper(obj0); | |
8559 | if (arg1 == NULL) SWIG_fail; | |
8560 | temp1 = True; | |
8561 | } | |
8562 | if (obj1) { | |
8563 | arg2 = (long) SWIG_AsLong(obj1); | |
8564 | if (PyErr_Occurred()) SWIG_fail; | |
8565 | } | |
8566 | if (obj2) { | |
8567 | arg3 = (int) SWIG_AsInt(obj2); | |
8568 | if (PyErr_Occurred()) SWIG_fail; | |
8569 | } | |
8570 | { | |
8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8572 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8573 | ||
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8578 | { | |
8579 | if (temp1) | |
8580 | delete arg1; | |
8581 | } | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | { | |
8585 | if (temp1) | |
8586 | delete arg1; | |
8587 | } | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
8592 | static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8593 | PyObject *resultobj; | |
8594 | wxImage *arg1 = (wxImage *) 0 ; | |
8595 | PyObject * obj0 = 0 ; | |
8596 | char *kwnames[] = { | |
8597 | (char *) "self", NULL | |
8598 | }; | |
8599 | ||
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8603 | { | |
8604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8605 | delete arg1; | |
8606 | ||
8607 | wxPyEndAllowThreads(__tstate); | |
8608 | if (PyErr_Occurred()) SWIG_fail; | |
8609 | } | |
8610 | Py_INCREF(Py_None); resultobj = Py_None; | |
8611 | return resultobj; | |
8612 | fail: | |
8613 | return NULL; | |
8614 | } | |
8615 | ||
8616 | ||
8617 | static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8618 | PyObject *resultobj; | |
8619 | wxString *arg1 = 0 ; | |
8620 | wxString *arg2 = 0 ; | |
8621 | int arg3 = (int) -1 ; | |
8622 | wxImage *result; | |
8623 | bool temp1 = False ; | |
8624 | bool temp2 = False ; | |
8625 | PyObject * obj0 = 0 ; | |
8626 | PyObject * obj1 = 0 ; | |
8627 | PyObject * obj2 = 0 ; | |
8628 | char *kwnames[] = { | |
8629 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8630 | }; | |
8631 | ||
8632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8633 | { | |
8634 | arg1 = wxString_in_helper(obj0); | |
8635 | if (arg1 == NULL) SWIG_fail; | |
8636 | temp1 = True; | |
8637 | } | |
8638 | { | |
8639 | arg2 = wxString_in_helper(obj1); | |
8640 | if (arg2 == NULL) SWIG_fail; | |
8641 | temp2 = True; | |
8642 | } | |
8643 | if (obj2) { | |
8644 | arg3 = (int) SWIG_AsInt(obj2); | |
8645 | if (PyErr_Occurred()) SWIG_fail; | |
8646 | } | |
8647 | { | |
8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8649 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8650 | ||
8651 | wxPyEndAllowThreads(__tstate); | |
8652 | if (PyErr_Occurred()) SWIG_fail; | |
8653 | } | |
8654 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8655 | { | |
8656 | if (temp1) | |
8657 | delete arg1; | |
8658 | } | |
8659 | { | |
8660 | if (temp2) | |
8661 | delete arg2; | |
8662 | } | |
8663 | return resultobj; | |
8664 | fail: | |
8665 | { | |
8666 | if (temp1) | |
8667 | delete arg1; | |
8668 | } | |
8669 | { | |
8670 | if (temp2) | |
8671 | delete arg2; | |
8672 | } | |
8673 | return NULL; | |
8674 | } | |
8675 | ||
8676 | ||
8677 | static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject *resultobj; | |
8679 | wxInputStream *arg1 = 0 ; | |
8680 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8681 | int arg3 = (int) -1 ; | |
8682 | wxImage *result; | |
8683 | wxPyInputStream *temp1 ; | |
8684 | bool created1 ; | |
8685 | PyObject * obj0 = 0 ; | |
8686 | PyObject * obj1 = 0 ; | |
8687 | PyObject * obj2 = 0 ; | |
8688 | char *kwnames[] = { | |
8689 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8690 | }; | |
8691 | ||
8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8693 | { | |
8694 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8695 | arg1 = temp1->m_wxis; | |
8696 | created1 = False; | |
8697 | } else { | |
8698 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8699 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8700 | if (arg1 == NULL) { | |
8701 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8702 | SWIG_fail; | |
8703 | } | |
8704 | created1 = True; | |
8705 | } | |
8706 | } | |
8707 | if (obj1) { | |
8708 | arg2 = (long) SWIG_AsLong(obj1); | |
8709 | if (PyErr_Occurred()) SWIG_fail; | |
8710 | } | |
8711 | if (obj2) { | |
8712 | arg3 = (int) SWIG_AsInt(obj2); | |
8713 | if (PyErr_Occurred()) SWIG_fail; | |
8714 | } | |
8715 | { | |
8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8717 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
8718 | ||
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8723 | { | |
8724 | if (created1) | |
8725 | delete arg1; | |
8726 | } | |
8727 | return resultobj; | |
8728 | fail: | |
8729 | { | |
8730 | if (created1) | |
8731 | delete arg1; | |
8732 | } | |
8733 | return NULL; | |
8734 | } | |
8735 | ||
8736 | ||
8737 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8738 | PyObject *resultobj; | |
8739 | wxInputStream *arg1 = 0 ; | |
8740 | wxString *arg2 = 0 ; | |
8741 | int arg3 = (int) -1 ; | |
8742 | wxImage *result; | |
8743 | wxPyInputStream *temp1 ; | |
8744 | bool created1 ; | |
8745 | bool temp2 = False ; | |
8746 | PyObject * obj0 = 0 ; | |
8747 | PyObject * obj1 = 0 ; | |
8748 | PyObject * obj2 = 0 ; | |
8749 | char *kwnames[] = { | |
8750 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
8751 | }; | |
8752 | ||
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8754 | { | |
8755 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8756 | arg1 = temp1->m_wxis; | |
8757 | created1 = False; | |
8758 | } else { | |
8759 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
8760 | arg1 = wxPyCBInputStream_create(obj0, False); | |
8761 | if (arg1 == NULL) { | |
8762 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8763 | SWIG_fail; | |
8764 | } | |
8765 | created1 = True; | |
8766 | } | |
8767 | } | |
8768 | { | |
8769 | arg2 = wxString_in_helper(obj1); | |
8770 | if (arg2 == NULL) SWIG_fail; | |
8771 | temp2 = True; | |
8772 | } | |
8773 | if (obj2) { | |
8774 | arg3 = (int) SWIG_AsInt(obj2); | |
8775 | if (PyErr_Occurred()) SWIG_fail; | |
8776 | } | |
8777 | { | |
8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8779 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
8780 | ||
8781 | wxPyEndAllowThreads(__tstate); | |
8782 | if (PyErr_Occurred()) SWIG_fail; | |
8783 | } | |
8784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8785 | { | |
8786 | if (created1) | |
8787 | delete arg1; | |
8788 | } | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | return resultobj; | |
8794 | fail: | |
8795 | { | |
8796 | if (created1) | |
8797 | delete arg1; | |
8798 | } | |
8799 | { | |
8800 | if (temp2) | |
8801 | delete arg2; | |
8802 | } | |
8803 | return NULL; | |
8804 | } | |
8805 | ||
8806 | ||
c24da6d6 | 8807 | static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8808 | PyObject *resultobj; |
8809 | int arg1 = (int) 0 ; | |
8810 | int arg2 = (int) 0 ; | |
8811 | bool arg3 = (bool) True ; | |
8812 | wxImage *result; | |
8813 | PyObject * obj0 = 0 ; | |
8814 | PyObject * obj1 = 0 ; | |
8815 | PyObject * obj2 = 0 ; | |
c24da6d6 RD |
8816 | char *kwnames[] = { |
8817 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
8818 | }; | |
d55e5bfc | 8819 | |
c24da6d6 | 8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
8821 | if (obj0) { |
8822 | arg1 = (int) SWIG_AsInt(obj0); | |
8823 | if (PyErr_Occurred()) SWIG_fail; | |
8824 | } | |
8825 | if (obj1) { | |
8826 | arg2 = (int) SWIG_AsInt(obj1); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
8829 | if (obj2) { | |
8830 | arg3 = (bool) SWIG_AsBool(obj2); | |
8831 | if (PyErr_Occurred()) SWIG_fail; | |
8832 | } | |
8833 | { | |
8834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 8835 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
8836 | |
8837 | wxPyEndAllowThreads(__tstate); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8841 | return resultobj; | |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
d55e5bfc RD |
8847 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { |
8848 | PyObject *resultobj; | |
8849 | wxBitmap *arg1 = 0 ; | |
8850 | wxImage *result; | |
8851 | PyObject * obj0 = 0 ; | |
8852 | char *kwnames[] = { | |
8853 | (char *) "bitmap", NULL | |
8854 | }; | |
8855 | ||
8856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
8857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
8858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8859 | SWIG_fail; | |
8860 | if (arg1 == NULL) { | |
8861 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8862 | SWIG_fail; | |
8863 | } | |
8864 | { | |
8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8866 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
8867 | ||
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
8871 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8872 | return resultobj; | |
8873 | fail: | |
8874 | return NULL; | |
8875 | } | |
8876 | ||
8877 | ||
8878 | static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8879 | PyObject *resultobj; | |
8880 | int arg1 ; | |
8881 | int arg2 ; | |
8882 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8883 | wxImage *result; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | PyObject * obj1 = 0 ; | |
8886 | PyObject * obj2 = 0 ; | |
8887 | char *kwnames[] = { | |
8888 | (char *) "width",(char *) "height",(char *) "data", NULL | |
8889 | }; | |
8890 | ||
8891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8892 | arg1 = (int) SWIG_AsInt(obj0); | |
8893 | if (PyErr_Occurred()) SWIG_fail; | |
8894 | arg2 = (int) SWIG_AsInt(obj1); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | wxImage *arg1 = (wxImage *) 0 ; | |
8915 | int arg2 ; | |
8916 | int arg3 ; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | PyObject * obj1 = 0 ; | |
8919 | PyObject * obj2 = 0 ; | |
8920 | char *kwnames[] = { | |
8921 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8922 | }; | |
8923 | ||
8924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8927 | arg2 = (int) SWIG_AsInt(obj1); | |
8928 | if (PyErr_Occurred()) SWIG_fail; | |
8929 | arg3 = (int) SWIG_AsInt(obj2); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | { | |
8932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8933 | (arg1)->Create(arg2,arg3); | |
8934 | ||
8935 | wxPyEndAllowThreads(__tstate); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
8937 | } | |
8938 | Py_INCREF(Py_None); resultobj = Py_None; | |
8939 | return resultobj; | |
8940 | fail: | |
8941 | return NULL; | |
8942 | } | |
8943 | ||
8944 | ||
8945 | static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8946 | PyObject *resultobj; | |
8947 | wxImage *arg1 = (wxImage *) 0 ; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "self", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
8954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8956 | { | |
8957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8958 | (arg1)->Destroy(); | |
8959 | ||
8960 | wxPyEndAllowThreads(__tstate); | |
8961 | if (PyErr_Occurred()) SWIG_fail; | |
8962 | } | |
8963 | Py_INCREF(Py_None); resultobj = Py_None; | |
8964 | return resultobj; | |
8965 | fail: | |
8966 | return NULL; | |
8967 | } | |
8968 | ||
8969 | ||
8970 | static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8971 | PyObject *resultobj; | |
8972 | wxImage *arg1 = (wxImage *) 0 ; | |
8973 | int arg2 ; | |
8974 | int arg3 ; | |
8975 | SwigValueWrapper< wxImage > result; | |
8976 | PyObject * obj0 = 0 ; | |
8977 | PyObject * obj1 = 0 ; | |
8978 | PyObject * obj2 = 0 ; | |
8979 | char *kwnames[] = { | |
8980 | (char *) "self",(char *) "width",(char *) "height", NULL | |
8981 | }; | |
8982 | ||
8983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8986 | arg2 = (int) SWIG_AsInt(obj1); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | arg3 = (int) SWIG_AsInt(obj2); | |
8989 | if (PyErr_Occurred()) SWIG_fail; | |
8990 | { | |
8991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8992 | result = (arg1)->Scale(arg2,arg3); | |
8993 | ||
8994 | wxPyEndAllowThreads(__tstate); | |
8995 | if (PyErr_Occurred()) SWIG_fail; | |
8996 | } | |
8997 | { | |
8998 | wxImage * resultptr; | |
8999 | resultptr = new wxImage((wxImage &) result); | |
9000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9001 | } | |
9002 | return resultobj; | |
9003 | fail: | |
9004 | return NULL; | |
9005 | } | |
9006 | ||
9007 | ||
9008 | static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9009 | PyObject *resultobj; | |
9010 | wxImage *arg1 = (wxImage *) 0 ; | |
9011 | int arg2 ; | |
9012 | int arg3 ; | |
9013 | SwigValueWrapper< wxImage > result; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | PyObject * obj2 = 0 ; | |
9017 | char *kwnames[] = { | |
9018 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9019 | }; | |
9020 | ||
9021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9024 | arg2 = (int) SWIG_AsInt(obj1); | |
9025 | if (PyErr_Occurred()) SWIG_fail; | |
9026 | arg3 = (int) SWIG_AsInt(obj2); | |
9027 | if (PyErr_Occurred()) SWIG_fail; | |
9028 | { | |
9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9030 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9031 | ||
9032 | wxPyEndAllowThreads(__tstate); | |
9033 | if (PyErr_Occurred()) SWIG_fail; | |
9034 | } | |
9035 | { | |
9036 | wxImage * resultptr; | |
9037 | resultptr = new wxImage((wxImage &) result); | |
9038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9039 | } | |
9040 | return resultobj; | |
9041 | fail: | |
9042 | return NULL; | |
9043 | } | |
9044 | ||
9045 | ||
9046 | static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9047 | PyObject *resultobj; | |
9048 | wxImage *arg1 = (wxImage *) 0 ; | |
9049 | int arg2 ; | |
9050 | int arg3 ; | |
9051 | wxImage *result; | |
9052 | PyObject * obj0 = 0 ; | |
9053 | PyObject * obj1 = 0 ; | |
9054 | PyObject * obj2 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9062 | arg2 = (int) SWIG_AsInt(obj1); | |
9063 | if (PyErr_Occurred()) SWIG_fail; | |
9064 | arg3 = (int) SWIG_AsInt(obj2); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | { | |
9067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9068 | { | |
9069 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9070 | result = (wxImage *) &_result_ref; | |
9071 | } | |
9072 | ||
9073 | wxPyEndAllowThreads(__tstate); | |
9074 | if (PyErr_Occurred()) SWIG_fail; | |
9075 | } | |
9076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9077 | return resultobj; | |
9078 | fail: | |
9079 | return NULL; | |
9080 | } | |
9081 | ||
9082 | ||
9083 | static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9084 | PyObject *resultobj; | |
9085 | wxImage *arg1 = (wxImage *) 0 ; | |
9086 | int arg2 ; | |
9087 | int arg3 ; | |
9088 | unsigned char arg4 ; | |
9089 | unsigned char arg5 ; | |
9090 | unsigned char arg6 ; | |
9091 | PyObject * obj0 = 0 ; | |
9092 | PyObject * obj1 = 0 ; | |
9093 | PyObject * obj2 = 0 ; | |
9094 | PyObject * obj3 = 0 ; | |
9095 | PyObject * obj4 = 0 ; | |
9096 | PyObject * obj5 = 0 ; | |
9097 | char *kwnames[] = { | |
9098 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9099 | }; | |
9100 | ||
9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9104 | arg2 = (int) SWIG_AsInt(obj1); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | arg3 = (int) SWIG_AsInt(obj2); | |
9107 | if (PyErr_Occurred()) SWIG_fail; | |
9108 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
9110 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | { | |
9115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9116 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9117 | ||
9118 | wxPyEndAllowThreads(__tstate); | |
9119 | if (PyErr_Occurred()) SWIG_fail; | |
9120 | } | |
9121 | Py_INCREF(Py_None); resultobj = Py_None; | |
9122 | return resultobj; | |
9123 | fail: | |
9124 | return NULL; | |
9125 | } | |
9126 | ||
9127 | ||
9128 | static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9129 | PyObject *resultobj; | |
9130 | wxImage *arg1 = (wxImage *) 0 ; | |
9131 | int arg2 ; | |
9132 | int arg3 ; | |
9133 | unsigned char result; | |
9134 | PyObject * obj0 = 0 ; | |
9135 | PyObject * obj1 = 0 ; | |
9136 | PyObject * obj2 = 0 ; | |
9137 | char *kwnames[] = { | |
9138 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9139 | }; | |
9140 | ||
9141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9144 | arg2 = (int) SWIG_AsInt(obj1); | |
9145 | if (PyErr_Occurred()) SWIG_fail; | |
9146 | arg3 = (int) SWIG_AsInt(obj2); | |
9147 | if (PyErr_Occurred()) SWIG_fail; | |
9148 | { | |
9149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9150 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9151 | ||
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
9155 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9156 | return resultobj; | |
9157 | fail: | |
9158 | return NULL; | |
9159 | } | |
9160 | ||
9161 | ||
9162 | static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9163 | PyObject *resultobj; | |
9164 | wxImage *arg1 = (wxImage *) 0 ; | |
9165 | int arg2 ; | |
9166 | int arg3 ; | |
9167 | unsigned char result; | |
9168 | PyObject * obj0 = 0 ; | |
9169 | PyObject * obj1 = 0 ; | |
9170 | PyObject * obj2 = 0 ; | |
9171 | char *kwnames[] = { | |
9172 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9173 | }; | |
9174 | ||
9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9178 | arg2 = (int) SWIG_AsInt(obj1); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | arg3 = (int) SWIG_AsInt(obj2); | |
9181 | if (PyErr_Occurred()) SWIG_fail; | |
9182 | { | |
9183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9184 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9185 | ||
9186 | wxPyEndAllowThreads(__tstate); | |
9187 | if (PyErr_Occurred()) SWIG_fail; | |
9188 | } | |
9189 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9190 | return resultobj; | |
9191 | fail: | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
9196 | static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9197 | PyObject *resultobj; | |
9198 | wxImage *arg1 = (wxImage *) 0 ; | |
9199 | int arg2 ; | |
9200 | int arg3 ; | |
9201 | unsigned char result; | |
9202 | PyObject * obj0 = 0 ; | |
9203 | PyObject * obj1 = 0 ; | |
9204 | PyObject * obj2 = 0 ; | |
9205 | char *kwnames[] = { | |
9206 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9207 | }; | |
9208 | ||
9209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9212 | arg2 = (int) SWIG_AsInt(obj1); | |
9213 | if (PyErr_Occurred()) SWIG_fail; | |
9214 | arg3 = (int) SWIG_AsInt(obj2); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | { | |
9217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9218 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9219 | ||
9220 | wxPyEndAllowThreads(__tstate); | |
9221 | if (PyErr_Occurred()) SWIG_fail; | |
9222 | } | |
9223 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9224 | return resultobj; | |
9225 | fail: | |
9226 | return NULL; | |
9227 | } | |
9228 | ||
9229 | ||
9230 | static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject *resultobj; | |
9232 | wxImage *arg1 = (wxImage *) 0 ; | |
9233 | int arg2 ; | |
9234 | int arg3 ; | |
9235 | unsigned char arg4 ; | |
9236 | PyObject * obj0 = 0 ; | |
9237 | PyObject * obj1 = 0 ; | |
9238 | PyObject * obj2 = 0 ; | |
9239 | PyObject * obj3 = 0 ; | |
9240 | char *kwnames[] = { | |
9241 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9242 | }; | |
9243 | ||
9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
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; | |
9251 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
9252 | if (PyErr_Occurred()) SWIG_fail; | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
9260 | Py_INCREF(Py_None); resultobj = Py_None; | |
9261 | return resultobj; | |
9262 | fail: | |
9263 | return NULL; | |
9264 | } | |
9265 | ||
9266 | ||
9267 | static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9268 | PyObject *resultobj; | |
9269 | wxImage *arg1 = (wxImage *) 0 ; | |
9270 | int arg2 ; | |
9271 | int arg3 ; | |
9272 | unsigned char result; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | PyObject * obj1 = 0 ; | |
9275 | PyObject * obj2 = 0 ; | |
9276 | char *kwnames[] = { | |
9277 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9278 | }; | |
9279 | ||
9280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9283 | arg2 = (int) SWIG_AsInt(obj1); | |
9284 | if (PyErr_Occurred()) SWIG_fail; | |
9285 | arg3 = (int) SWIG_AsInt(obj2); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | { | |
9288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9289 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9290 | ||
9291 | wxPyEndAllowThreads(__tstate); | |
9292 | if (PyErr_Occurred()) SWIG_fail; | |
9293 | } | |
9294 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
9295 | return resultobj; | |
9296 | fail: | |
9297 | return NULL; | |
9298 | } | |
9299 | ||
9300 | ||
9301 | static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9302 | PyObject *resultobj; | |
9303 | wxImage *arg1 = (wxImage *) 0 ; | |
9304 | bool result; | |
9305 | PyObject * obj0 = 0 ; | |
9306 | char *kwnames[] = { | |
9307 | (char *) "self", NULL | |
9308 | }; | |
9309 | ||
9310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9313 | { | |
9314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9315 | result = (bool)(arg1)->HasAlpha(); | |
9316 | ||
9317 | wxPyEndAllowThreads(__tstate); | |
9318 | if (PyErr_Occurred()) SWIG_fail; | |
9319 | } | |
9320 | { | |
9321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9322 | } | |
9323 | return resultobj; | |
9324 | fail: | |
9325 | return NULL; | |
9326 | } | |
9327 | ||
9328 | ||
9329 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9330 | PyObject *resultobj; | |
9331 | wxImage *arg1 = (wxImage *) 0 ; | |
9332 | byte *arg2 = (byte *) 0 ; | |
9333 | byte *arg3 = (byte *) 0 ; | |
9334 | byte *arg4 = (byte *) 0 ; | |
9335 | byte arg5 = (byte) 0 ; | |
9336 | byte arg6 = (byte) 0 ; | |
9337 | byte arg7 = (byte) 0 ; | |
9338 | bool result; | |
9339 | byte temp2 ; | |
9340 | byte temp3 ; | |
9341 | byte temp4 ; | |
9342 | PyObject * obj0 = 0 ; | |
9343 | PyObject * obj1 = 0 ; | |
9344 | PyObject * obj2 = 0 ; | |
9345 | PyObject * obj3 = 0 ; | |
9346 | char *kwnames[] = { | |
9347 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9348 | }; | |
9349 | ||
9350 | arg2 = &temp2; | |
9351 | arg3 = &temp3; | |
9352 | arg4 = &temp4; | |
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9356 | if (obj1) { | |
9357 | arg5 = (byte) SWIG_AsUnsignedChar(obj1); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
9360 | if (obj2) { | |
9361 | arg6 = (byte) SWIG_AsUnsignedChar(obj2); | |
9362 | if (PyErr_Occurred()) SWIG_fail; | |
9363 | } | |
9364 | if (obj3) { | |
9365 | arg7 = (byte) SWIG_AsUnsignedChar(obj3); | |
9366 | if (PyErr_Occurred()) SWIG_fail; | |
9367 | } | |
9368 | { | |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9377 | } | |
9378 | { | |
9379 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
9380 | resultobj = t_output_helper(resultobj,o); | |
9381 | } | |
9382 | { | |
9383 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9384 | resultobj = t_output_helper(resultobj,o); | |
9385 | } | |
9386 | { | |
9387 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9388 | resultobj = t_output_helper(resultobj,o); | |
9389 | } | |
9390 | return resultobj; | |
9391 | fail: | |
9392 | return NULL; | |
9393 | } | |
9394 | ||
9395 | ||
9396 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject *resultobj; | |
9398 | wxImage *arg1 = (wxImage *) 0 ; | |
9399 | wxImage *arg2 = 0 ; | |
9400 | byte arg3 ; | |
9401 | byte arg4 ; | |
9402 | byte arg5 ; | |
9403 | bool result; | |
9404 | PyObject * obj0 = 0 ; | |
9405 | PyObject * obj1 = 0 ; | |
9406 | PyObject * obj2 = 0 ; | |
9407 | PyObject * obj3 = 0 ; | |
9408 | PyObject * obj4 = 0 ; | |
9409 | char *kwnames[] = { | |
9410 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9411 | }; | |
9412 | ||
9413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9416 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9417 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9418 | SWIG_fail; | |
9419 | if (arg2 == NULL) { | |
9420 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9421 | SWIG_fail; | |
9422 | } | |
9423 | arg3 = (byte) SWIG_AsUnsignedChar(obj2); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | arg4 = (byte) SWIG_AsUnsignedChar(obj3); | |
9426 | if (PyErr_Occurred()) SWIG_fail; | |
9427 | arg5 = (byte) SWIG_AsUnsignedChar(obj4); | |
9428 | if (PyErr_Occurred()) SWIG_fail; | |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | { | |
9437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9438 | } | |
9439 | return resultobj; | |
9440 | fail: | |
9441 | return NULL; | |
9442 | } | |
9443 | ||
9444 | ||
9445 | static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject *resultobj; | |
9447 | wxString *arg1 = 0 ; | |
9448 | bool result; | |
9449 | bool temp1 = False ; | |
9450 | PyObject * obj0 = 0 ; | |
9451 | char *kwnames[] = { | |
9452 | (char *) "name", NULL | |
9453 | }; | |
9454 | ||
9455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9456 | { | |
9457 | arg1 = wxString_in_helper(obj0); | |
9458 | if (arg1 == NULL) SWIG_fail; | |
9459 | temp1 = True; | |
9460 | } | |
9461 | { | |
9462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9463 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9464 | ||
9465 | wxPyEndAllowThreads(__tstate); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
9467 | } | |
9468 | { | |
9469 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9470 | } | |
9471 | { | |
9472 | if (temp1) | |
9473 | delete arg1; | |
9474 | } | |
9475 | return resultobj; | |
9476 | fail: | |
9477 | { | |
9478 | if (temp1) | |
9479 | delete arg1; | |
9480 | } | |
9481 | return NULL; | |
9482 | } | |
9483 | ||
9484 | ||
9485 | static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9486 | PyObject *resultobj; | |
9487 | wxString *arg1 = 0 ; | |
9488 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9489 | int result; | |
9490 | bool temp1 = False ; | |
9491 | PyObject * obj0 = 0 ; | |
9492 | PyObject * obj1 = 0 ; | |
9493 | char *kwnames[] = { | |
9494 | (char *) "name",(char *) "type", NULL | |
9495 | }; | |
9496 | ||
9497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9498 | { | |
9499 | arg1 = wxString_in_helper(obj0); | |
9500 | if (arg1 == NULL) SWIG_fail; | |
9501 | temp1 = True; | |
9502 | } | |
9503 | if (obj1) { | |
9504 | arg2 = (long) SWIG_AsLong(obj1); | |
9505 | if (PyErr_Occurred()) SWIG_fail; | |
9506 | } | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9510 | ||
9511 | wxPyEndAllowThreads(__tstate); | |
9512 | if (PyErr_Occurred()) SWIG_fail; | |
9513 | } | |
9514 | resultobj = SWIG_FromInt((int)result); | |
9515 | { | |
9516 | if (temp1) | |
9517 | delete arg1; | |
9518 | } | |
9519 | return resultobj; | |
9520 | fail: | |
9521 | { | |
9522 | if (temp1) | |
9523 | delete arg1; | |
9524 | } | |
9525 | return NULL; | |
9526 | } | |
9527 | ||
9528 | ||
9529 | static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9530 | PyObject *resultobj; | |
9531 | wxImage *arg1 = (wxImage *) 0 ; | |
9532 | wxString *arg2 = 0 ; | |
9533 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9534 | int arg4 = (int) -1 ; | |
9535 | bool result; | |
9536 | bool temp2 = False ; | |
9537 | PyObject * obj0 = 0 ; | |
9538 | PyObject * obj1 = 0 ; | |
9539 | PyObject * obj2 = 0 ; | |
9540 | PyObject * obj3 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9548 | { | |
9549 | arg2 = wxString_in_helper(obj1); | |
9550 | if (arg2 == NULL) SWIG_fail; | |
9551 | temp2 = True; | |
9552 | } | |
9553 | if (obj2) { | |
9554 | arg3 = (long) SWIG_AsLong(obj2); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | } | |
9557 | if (obj3) { | |
9558 | arg4 = (int) SWIG_AsInt(obj3); | |
9559 | if (PyErr_Occurred()) SWIG_fail; | |
9560 | } | |
9561 | { | |
9562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9563 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9564 | ||
9565 | wxPyEndAllowThreads(__tstate); | |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
9567 | } | |
9568 | { | |
9569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9570 | } | |
9571 | { | |
9572 | if (temp2) | |
9573 | delete arg2; | |
9574 | } | |
9575 | return resultobj; | |
9576 | fail: | |
9577 | { | |
9578 | if (temp2) | |
9579 | delete arg2; | |
9580 | } | |
9581 | return NULL; | |
9582 | } | |
9583 | ||
9584 | ||
9585 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9586 | PyObject *resultobj; | |
9587 | wxImage *arg1 = (wxImage *) 0 ; | |
9588 | wxString *arg2 = 0 ; | |
9589 | wxString *arg3 = 0 ; | |
9590 | int arg4 = (int) -1 ; | |
9591 | bool result; | |
9592 | bool temp2 = False ; | |
9593 | bool temp3 = False ; | |
9594 | PyObject * obj0 = 0 ; | |
9595 | PyObject * obj1 = 0 ; | |
9596 | PyObject * obj2 = 0 ; | |
9597 | PyObject * obj3 = 0 ; | |
9598 | char *kwnames[] = { | |
9599 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9600 | }; | |
9601 | ||
9602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9605 | { | |
9606 | arg2 = wxString_in_helper(obj1); | |
9607 | if (arg2 == NULL) SWIG_fail; | |
9608 | temp2 = True; | |
9609 | } | |
9610 | { | |
9611 | arg3 = wxString_in_helper(obj2); | |
9612 | if (arg3 == NULL) SWIG_fail; | |
9613 | temp3 = True; | |
9614 | } | |
9615 | if (obj3) { | |
9616 | arg4 = (int) SWIG_AsInt(obj3); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | { | |
9620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9621 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9622 | ||
9623 | wxPyEndAllowThreads(__tstate); | |
9624 | if (PyErr_Occurred()) SWIG_fail; | |
9625 | } | |
9626 | { | |
9627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9628 | } | |
9629 | { | |
9630 | if (temp2) | |
9631 | delete arg2; | |
9632 | } | |
9633 | { | |
9634 | if (temp3) | |
9635 | delete arg3; | |
9636 | } | |
9637 | return resultobj; | |
9638 | fail: | |
9639 | { | |
9640 | if (temp2) | |
9641 | delete arg2; | |
9642 | } | |
9643 | { | |
9644 | if (temp3) | |
9645 | delete arg3; | |
9646 | } | |
9647 | return NULL; | |
9648 | } | |
9649 | ||
9650 | ||
9651 | static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9652 | PyObject *resultobj; | |
9653 | wxImage *arg1 = (wxImage *) 0 ; | |
9654 | wxString *arg2 = 0 ; | |
9655 | int arg3 ; | |
9656 | bool result; | |
9657 | bool temp2 = False ; | |
9658 | PyObject * obj0 = 0 ; | |
9659 | PyObject * obj1 = 0 ; | |
9660 | PyObject * obj2 = 0 ; | |
9661 | char *kwnames[] = { | |
9662 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9663 | }; | |
9664 | ||
9665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9668 | { | |
9669 | arg2 = wxString_in_helper(obj1); | |
9670 | if (arg2 == NULL) SWIG_fail; | |
9671 | temp2 = True; | |
9672 | } | |
9673 | arg3 = (int) SWIG_AsInt(obj2); | |
9674 | if (PyErr_Occurred()) SWIG_fail; | |
9675 | { | |
9676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9677 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
9678 | ||
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | { | |
9683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9684 | } | |
9685 | { | |
9686 | if (temp2) | |
9687 | delete arg2; | |
9688 | } | |
9689 | return resultobj; | |
9690 | fail: | |
9691 | { | |
9692 | if (temp2) | |
9693 | delete arg2; | |
9694 | } | |
9695 | return NULL; | |
9696 | } | |
9697 | ||
9698 | ||
9699 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9700 | PyObject *resultobj; | |
9701 | wxImage *arg1 = (wxImage *) 0 ; | |
9702 | wxString *arg2 = 0 ; | |
9703 | wxString *arg3 = 0 ; | |
9704 | bool result; | |
9705 | bool temp2 = False ; | |
9706 | bool temp3 = False ; | |
9707 | PyObject * obj0 = 0 ; | |
9708 | PyObject * obj1 = 0 ; | |
9709 | PyObject * obj2 = 0 ; | |
9710 | char *kwnames[] = { | |
9711 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
9712 | }; | |
9713 | ||
9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9717 | { | |
9718 | arg2 = wxString_in_helper(obj1); | |
9719 | if (arg2 == NULL) SWIG_fail; | |
9720 | temp2 = True; | |
9721 | } | |
9722 | { | |
9723 | arg3 = wxString_in_helper(obj2); | |
9724 | if (arg3 == NULL) SWIG_fail; | |
9725 | temp3 = True; | |
9726 | } | |
9727 | { | |
9728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9729 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
9730 | ||
9731 | wxPyEndAllowThreads(__tstate); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | } | |
9734 | { | |
9735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9736 | } | |
9737 | { | |
9738 | if (temp2) | |
9739 | delete arg2; | |
9740 | } | |
9741 | { | |
9742 | if (temp3) | |
9743 | delete arg3; | |
9744 | } | |
9745 | return resultobj; | |
9746 | fail: | |
9747 | { | |
9748 | if (temp2) | |
9749 | delete arg2; | |
9750 | } | |
9751 | { | |
9752 | if (temp3) | |
9753 | delete arg3; | |
9754 | } | |
9755 | return NULL; | |
9756 | } | |
9757 | ||
9758 | ||
9759 | static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9760 | PyObject *resultobj; | |
9761 | wxInputStream *arg1 = 0 ; | |
9762 | bool result; | |
9763 | wxPyInputStream *temp1 ; | |
9764 | bool created1 ; | |
9765 | PyObject * obj0 = 0 ; | |
9766 | char *kwnames[] = { | |
9767 | (char *) "stream", NULL | |
9768 | }; | |
9769 | ||
9770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
9771 | { | |
9772 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9773 | arg1 = temp1->m_wxis; | |
9774 | created1 = False; | |
9775 | } else { | |
9776 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9777 | arg1 = wxPyCBInputStream_create(obj0, False); | |
9778 | if (arg1 == NULL) { | |
9779 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9780 | SWIG_fail; | |
9781 | } | |
9782 | created1 = True; | |
9783 | } | |
9784 | } | |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | result = (bool)wxImage::CanRead(*arg1); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) SWIG_fail; | |
9791 | } | |
9792 | { | |
9793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9794 | } | |
9795 | { | |
9796 | if (created1) | |
9797 | delete arg1; | |
9798 | } | |
9799 | return resultobj; | |
9800 | fail: | |
9801 | { | |
9802 | if (created1) | |
9803 | delete arg1; | |
9804 | } | |
9805 | return NULL; | |
9806 | } | |
9807 | ||
9808 | ||
9809 | static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject *resultobj; | |
9811 | wxImage *arg1 = (wxImage *) 0 ; | |
9812 | wxInputStream *arg2 = 0 ; | |
9813 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9814 | int arg4 = (int) -1 ; | |
9815 | bool result; | |
9816 | wxPyInputStream *temp2 ; | |
9817 | bool created2 ; | |
9818 | PyObject * obj0 = 0 ; | |
9819 | PyObject * obj1 = 0 ; | |
9820 | PyObject * obj2 = 0 ; | |
9821 | PyObject * obj3 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9829 | { | |
9830 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9831 | arg2 = temp2->m_wxis; | |
9832 | created2 = False; | |
9833 | } else { | |
9834 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9835 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9836 | if (arg2 == NULL) { | |
9837 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9838 | SWIG_fail; | |
9839 | } | |
9840 | created2 = True; | |
9841 | } | |
9842 | } | |
9843 | if (obj2) { | |
9844 | arg3 = (long) SWIG_AsLong(obj2); | |
9845 | if (PyErr_Occurred()) SWIG_fail; | |
9846 | } | |
9847 | if (obj3) { | |
9848 | arg4 = (int) SWIG_AsInt(obj3); | |
9849 | if (PyErr_Occurred()) SWIG_fail; | |
9850 | } | |
9851 | { | |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
9854 | ||
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | { | |
9859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9860 | } | |
9861 | { | |
9862 | if (created2) | |
9863 | delete arg2; | |
9864 | } | |
9865 | return resultobj; | |
9866 | fail: | |
9867 | { | |
9868 | if (created2) | |
9869 | delete arg2; | |
9870 | } | |
9871 | return NULL; | |
9872 | } | |
9873 | ||
9874 | ||
9875 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9876 | PyObject *resultobj; | |
9877 | wxImage *arg1 = (wxImage *) 0 ; | |
9878 | wxInputStream *arg2 = 0 ; | |
9879 | wxString *arg3 = 0 ; | |
9880 | int arg4 = (int) -1 ; | |
9881 | bool result; | |
9882 | wxPyInputStream *temp2 ; | |
9883 | bool created2 ; | |
9884 | bool temp3 = False ; | |
9885 | PyObject * obj0 = 0 ; | |
9886 | PyObject * obj1 = 0 ; | |
9887 | PyObject * obj2 = 0 ; | |
9888 | PyObject * obj3 = 0 ; | |
9889 | char *kwnames[] = { | |
9890 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9891 | }; | |
9892 | ||
9893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9896 | { | |
9897 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
9898 | arg2 = temp2->m_wxis; | |
9899 | created2 = False; | |
9900 | } else { | |
9901 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
9902 | arg2 = wxPyCBInputStream_create(obj1, False); | |
9903 | if (arg2 == NULL) { | |
9904 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9905 | SWIG_fail; | |
9906 | } | |
9907 | created2 = True; | |
9908 | } | |
9909 | } | |
9910 | { | |
9911 | arg3 = wxString_in_helper(obj2); | |
9912 | if (arg3 == NULL) SWIG_fail; | |
9913 | temp3 = True; | |
9914 | } | |
9915 | if (obj3) { | |
9916 | arg4 = (int) SWIG_AsInt(obj3); | |
9917 | if (PyErr_Occurred()) SWIG_fail; | |
9918 | } | |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | { | |
9927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9928 | } | |
9929 | { | |
9930 | if (created2) | |
9931 | delete arg2; | |
9932 | } | |
9933 | { | |
9934 | if (temp3) | |
9935 | delete arg3; | |
9936 | } | |
9937 | return resultobj; | |
9938 | fail: | |
9939 | { | |
9940 | if (created2) | |
9941 | delete arg2; | |
9942 | } | |
9943 | { | |
9944 | if (temp3) | |
9945 | delete arg3; | |
9946 | } | |
9947 | return NULL; | |
9948 | } | |
9949 | ||
9950 | ||
9951 | static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9952 | PyObject *resultobj; | |
9953 | wxImage *arg1 = (wxImage *) 0 ; | |
9954 | bool result; | |
9955 | PyObject * obj0 = 0 ; | |
9956 | char *kwnames[] = { | |
9957 | (char *) "self", NULL | |
9958 | }; | |
9959 | ||
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
9961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9963 | { | |
9964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9965 | result = (bool)(arg1)->Ok(); | |
9966 | ||
9967 | wxPyEndAllowThreads(__tstate); | |
9968 | if (PyErr_Occurred()) SWIG_fail; | |
9969 | } | |
9970 | { | |
9971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9972 | } | |
9973 | return resultobj; | |
9974 | fail: | |
9975 | return NULL; | |
9976 | } | |
9977 | ||
9978 | ||
9979 | static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9980 | PyObject *resultobj; | |
9981 | wxImage *arg1 = (wxImage *) 0 ; | |
9982 | int result; | |
9983 | PyObject * obj0 = 0 ; | |
9984 | char *kwnames[] = { | |
9985 | (char *) "self", NULL | |
9986 | }; | |
9987 | ||
9988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
9989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9991 | { | |
9992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9993 | result = (int)(arg1)->GetWidth(); | |
9994 | ||
9995 | wxPyEndAllowThreads(__tstate); | |
9996 | if (PyErr_Occurred()) SWIG_fail; | |
9997 | } | |
9998 | resultobj = SWIG_FromInt((int)result); | |
9999 | return resultobj; | |
10000 | fail: | |
10001 | return NULL; | |
10002 | } | |
10003 | ||
10004 | ||
10005 | static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10006 | PyObject *resultobj; | |
10007 | wxImage *arg1 = (wxImage *) 0 ; | |
10008 | int result; | |
10009 | PyObject * obj0 = 0 ; | |
10010 | char *kwnames[] = { | |
10011 | (char *) "self", NULL | |
10012 | }; | |
10013 | ||
10014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10017 | { | |
10018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10019 | result = (int)(arg1)->GetHeight(); | |
10020 | ||
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
10024 | resultobj = SWIG_FromInt((int)result); | |
10025 | return resultobj; | |
10026 | fail: | |
10027 | return NULL; | |
10028 | } | |
10029 | ||
10030 | ||
10031 | static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10032 | PyObject *resultobj; | |
10033 | wxImage *arg1 = (wxImage *) 0 ; | |
10034 | wxSize result; | |
10035 | PyObject * obj0 = 0 ; | |
10036 | char *kwnames[] = { | |
10037 | (char *) "self", NULL | |
10038 | }; | |
10039 | ||
10040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | result = wxImage_GetSize(arg1); | |
10046 | ||
10047 | wxPyEndAllowThreads(__tstate); | |
10048 | if (PyErr_Occurred()) SWIG_fail; | |
10049 | } | |
10050 | { | |
10051 | wxSize * resultptr; | |
10052 | resultptr = new wxSize((wxSize &) result); | |
10053 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10054 | } | |
10055 | return resultobj; | |
10056 | fail: | |
10057 | return NULL; | |
10058 | } | |
10059 | ||
10060 | ||
10061 | static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10062 | PyObject *resultobj; | |
10063 | wxImage *arg1 = (wxImage *) 0 ; | |
10064 | wxRect *arg2 = 0 ; | |
10065 | SwigValueWrapper< wxImage > result; | |
10066 | wxRect temp2 ; | |
10067 | PyObject * obj0 = 0 ; | |
10068 | PyObject * obj1 = 0 ; | |
10069 | char *kwnames[] = { | |
10070 | (char *) "self",(char *) "rect", NULL | |
10071 | }; | |
10072 | ||
10073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10076 | { | |
10077 | arg2 = &temp2; | |
10078 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10079 | } | |
10080 | { | |
10081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10082 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10083 | ||
10084 | wxPyEndAllowThreads(__tstate); | |
10085 | if (PyErr_Occurred()) SWIG_fail; | |
10086 | } | |
10087 | { | |
10088 | wxImage * resultptr; | |
10089 | resultptr = new wxImage((wxImage &) result); | |
10090 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10091 | } | |
10092 | return resultobj; | |
10093 | fail: | |
10094 | return NULL; | |
10095 | } | |
10096 | ||
10097 | ||
10098 | static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10099 | PyObject *resultobj; | |
10100 | wxImage *arg1 = (wxImage *) 0 ; | |
10101 | SwigValueWrapper< wxImage > result; | |
10102 | PyObject * obj0 = 0 ; | |
10103 | char *kwnames[] = { | |
10104 | (char *) "self", NULL | |
10105 | }; | |
10106 | ||
10107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10110 | { | |
10111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10112 | result = (arg1)->Copy(); | |
10113 | ||
10114 | wxPyEndAllowThreads(__tstate); | |
10115 | if (PyErr_Occurred()) SWIG_fail; | |
10116 | } | |
10117 | { | |
10118 | wxImage * resultptr; | |
10119 | resultptr = new wxImage((wxImage &) result); | |
10120 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10121 | } | |
10122 | return resultobj; | |
10123 | fail: | |
10124 | return NULL; | |
10125 | } | |
10126 | ||
10127 | ||
10128 | static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10129 | PyObject *resultobj; | |
10130 | wxImage *arg1 = (wxImage *) 0 ; | |
10131 | wxImage *arg2 = 0 ; | |
10132 | int arg3 ; | |
10133 | int arg4 ; | |
10134 | PyObject * obj0 = 0 ; | |
10135 | PyObject * obj1 = 0 ; | |
10136 | PyObject * obj2 = 0 ; | |
10137 | PyObject * obj3 = 0 ; | |
10138 | char *kwnames[] = { | |
10139 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10140 | }; | |
10141 | ||
10142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10145 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10146 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10147 | SWIG_fail; | |
10148 | if (arg2 == NULL) { | |
10149 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10150 | SWIG_fail; | |
10151 | } | |
10152 | arg3 = (int) SWIG_AsInt(obj2); | |
10153 | if (PyErr_Occurred()) SWIG_fail; | |
10154 | arg4 = (int) SWIG_AsInt(obj3); | |
10155 | if (PyErr_Occurred()) SWIG_fail; | |
10156 | { | |
10157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10158 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10159 | ||
10160 | wxPyEndAllowThreads(__tstate); | |
10161 | if (PyErr_Occurred()) SWIG_fail; | |
10162 | } | |
10163 | Py_INCREF(Py_None); resultobj = Py_None; | |
10164 | return resultobj; | |
10165 | fail: | |
10166 | return NULL; | |
10167 | } | |
10168 | ||
10169 | ||
10170 | static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10171 | PyObject *resultobj; | |
10172 | wxImage *arg1 = (wxImage *) 0 ; | |
10173 | PyObject *result; | |
10174 | PyObject * obj0 = 0 ; | |
10175 | char *kwnames[] = { | |
10176 | (char *) "self", NULL | |
10177 | }; | |
10178 | ||
10179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10182 | { | |
10183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10184 | result = (PyObject *)wxImage_GetData(arg1); | |
10185 | ||
10186 | wxPyEndAllowThreads(__tstate); | |
10187 | if (PyErr_Occurred()) SWIG_fail; | |
10188 | } | |
10189 | resultobj = result; | |
10190 | return resultobj; | |
10191 | fail: | |
10192 | return NULL; | |
10193 | } | |
10194 | ||
10195 | ||
10196 | static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10197 | PyObject *resultobj; | |
10198 | wxImage *arg1 = (wxImage *) 0 ; | |
10199 | PyObject *arg2 = (PyObject *) 0 ; | |
10200 | PyObject * obj0 = 0 ; | |
10201 | PyObject * obj1 = 0 ; | |
10202 | char *kwnames[] = { | |
10203 | (char *) "self",(char *) "data", NULL | |
10204 | }; | |
10205 | ||
10206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10209 | arg2 = obj1; | |
10210 | { | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10212 | wxImage_SetData(arg1,arg2); | |
10213 | ||
10214 | wxPyEndAllowThreads(__tstate); | |
10215 | if (PyErr_Occurred()) SWIG_fail; | |
10216 | } | |
10217 | Py_INCREF(Py_None); resultobj = Py_None; | |
10218 | return resultobj; | |
10219 | fail: | |
10220 | return NULL; | |
10221 | } | |
10222 | ||
10223 | ||
10224 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10225 | PyObject *resultobj; | |
10226 | wxImage *arg1 = (wxImage *) 0 ; | |
10227 | PyObject *result; | |
10228 | PyObject * obj0 = 0 ; | |
10229 | char *kwnames[] = { | |
10230 | (char *) "self", NULL | |
10231 | }; | |
10232 | ||
10233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10236 | { | |
10237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10238 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10239 | ||
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = result; | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
10247 | } | |
10248 | ||
10249 | ||
10250 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10251 | PyObject *resultobj; | |
10252 | wxImage *arg1 = (wxImage *) 0 ; | |
10253 | PyObject *arg2 = (PyObject *) 0 ; | |
10254 | PyObject * obj0 = 0 ; | |
10255 | PyObject * obj1 = 0 ; | |
10256 | char *kwnames[] = { | |
10257 | (char *) "self",(char *) "data", NULL | |
10258 | }; | |
10259 | ||
10260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10263 | arg2 = obj1; | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | wxImage_SetDataBuffer(arg1,arg2); | |
10267 | ||
10268 | wxPyEndAllowThreads(__tstate); | |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | Py_INCREF(Py_None); resultobj = Py_None; | |
10272 | return resultobj; | |
10273 | fail: | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
10278 | static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10279 | PyObject *resultobj; | |
10280 | wxImage *arg1 = (wxImage *) 0 ; | |
10281 | PyObject *result; | |
10282 | PyObject * obj0 = 0 ; | |
10283 | char *kwnames[] = { | |
10284 | (char *) "self", NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | resultobj = result; | |
10298 | return resultobj; | |
10299 | fail: | |
10300 | return NULL; | |
10301 | } | |
10302 | ||
10303 | ||
10304 | static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10305 | PyObject *resultobj; | |
10306 | wxImage *arg1 = (wxImage *) 0 ; | |
10307 | PyObject *arg2 = (PyObject *) 0 ; | |
10308 | PyObject * obj0 = 0 ; | |
10309 | PyObject * obj1 = 0 ; | |
10310 | char *kwnames[] = { | |
10311 | (char *) "self",(char *) "data", NULL | |
10312 | }; | |
10313 | ||
10314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10317 | arg2 = obj1; | |
10318 | { | |
10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10320 | wxImage_SetAlphaData(arg1,arg2); | |
10321 | ||
10322 | wxPyEndAllowThreads(__tstate); | |
10323 | if (PyErr_Occurred()) SWIG_fail; | |
10324 | } | |
10325 | Py_INCREF(Py_None); resultobj = Py_None; | |
10326 | return resultobj; | |
10327 | fail: | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
10332 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj; | |
10334 | wxImage *arg1 = (wxImage *) 0 ; | |
10335 | PyObject *result; | |
10336 | PyObject * obj0 = 0 ; | |
10337 | char *kwnames[] = { | |
10338 | (char *) "self", NULL | |
10339 | }; | |
10340 | ||
10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = result; | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxImage *arg1 = (wxImage *) 0 ; | |
10361 | PyObject *arg2 = (PyObject *) 0 ; | |
10362 | PyObject * obj0 = 0 ; | |
10363 | PyObject * obj1 = 0 ; | |
10364 | char *kwnames[] = { | |
10365 | (char *) "self",(char *) "data", NULL | |
10366 | }; | |
10367 | ||
10368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10371 | arg2 = obj1; | |
10372 | { | |
10373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10374 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10375 | ||
10376 | wxPyEndAllowThreads(__tstate); | |
10377 | if (PyErr_Occurred()) SWIG_fail; | |
10378 | } | |
10379 | Py_INCREF(Py_None); resultobj = Py_None; | |
10380 | return resultobj; | |
10381 | fail: | |
10382 | return NULL; | |
10383 | } | |
10384 | ||
10385 | ||
10386 | static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10387 | PyObject *resultobj; | |
10388 | wxImage *arg1 = (wxImage *) 0 ; | |
10389 | unsigned char arg2 ; | |
10390 | unsigned char arg3 ; | |
10391 | unsigned char arg4 ; | |
10392 | PyObject * obj0 = 0 ; | |
10393 | PyObject * obj1 = 0 ; | |
10394 | PyObject * obj2 = 0 ; | |
10395 | PyObject * obj3 = 0 ; | |
10396 | char *kwnames[] = { | |
10397 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10398 | }; | |
10399 | ||
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10403 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10404 | if (PyErr_Occurred()) SWIG_fail; | |
10405 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10406 | if (PyErr_Occurred()) SWIG_fail; | |
10407 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10408 | if (PyErr_Occurred()) SWIG_fail; | |
10409 | { | |
10410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10411 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10412 | ||
10413 | wxPyEndAllowThreads(__tstate); | |
10414 | if (PyErr_Occurred()) SWIG_fail; | |
10415 | } | |
10416 | Py_INCREF(Py_None); resultobj = Py_None; | |
10417 | return resultobj; | |
10418 | fail: | |
10419 | return NULL; | |
10420 | } | |
10421 | ||
10422 | ||
10423 | static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10424 | PyObject *resultobj; | |
10425 | wxImage *arg1 = (wxImage *) 0 ; | |
10426 | unsigned char result; | |
10427 | PyObject * obj0 = 0 ; | |
10428 | char *kwnames[] = { | |
10429 | (char *) "self", NULL | |
10430 | }; | |
10431 | ||
10432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10435 | { | |
10436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10437 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10438 | ||
10439 | wxPyEndAllowThreads(__tstate); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | } | |
10442 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | return NULL; | |
10446 | } | |
10447 | ||
10448 | ||
10449 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10450 | PyObject *resultobj; | |
10451 | wxImage *arg1 = (wxImage *) 0 ; | |
10452 | unsigned char result; | |
10453 | PyObject * obj0 = 0 ; | |
10454 | char *kwnames[] = { | |
10455 | (char *) "self", NULL | |
10456 | }; | |
10457 | ||
10458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10461 | { | |
10462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10463 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10464 | ||
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10469 | return resultobj; | |
10470 | fail: | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
10475 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject *resultobj; | |
10477 | wxImage *arg1 = (wxImage *) 0 ; | |
10478 | unsigned char result; | |
10479 | PyObject * obj0 = 0 ; | |
10480 | char *kwnames[] = { | |
10481 | (char *) "self", NULL | |
10482 | }; | |
10483 | ||
10484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10487 | { | |
10488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10489 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10490 | ||
10491 | wxPyEndAllowThreads(__tstate); | |
10492 | if (PyErr_Occurred()) SWIG_fail; | |
10493 | } | |
10494 | resultobj = SWIG_FromUnsignedChar((unsigned char)result); | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
10498 | } | |
10499 | ||
10500 | ||
10501 | static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10502 | PyObject *resultobj; | |
10503 | wxImage *arg1 = (wxImage *) 0 ; | |
10504 | bool arg2 = (bool) True ; | |
10505 | PyObject * obj0 = 0 ; | |
10506 | PyObject * obj1 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "self",(char *) "mask", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10514 | if (obj1) { | |
10515 | arg2 = (bool) SWIG_AsBool(obj1); | |
10516 | if (PyErr_Occurred()) SWIG_fail; | |
10517 | } | |
10518 | { | |
10519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10520 | (arg1)->SetMask(arg2); | |
10521 | ||
10522 | wxPyEndAllowThreads(__tstate); | |
10523 | if (PyErr_Occurred()) SWIG_fail; | |
10524 | } | |
10525 | Py_INCREF(Py_None); resultobj = Py_None; | |
10526 | return resultobj; | |
10527 | fail: | |
10528 | return NULL; | |
10529 | } | |
10530 | ||
10531 | ||
10532 | static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10533 | PyObject *resultobj; | |
10534 | wxImage *arg1 = (wxImage *) 0 ; | |
10535 | bool result; | |
10536 | PyObject * obj0 = 0 ; | |
10537 | char *kwnames[] = { | |
10538 | (char *) "self", NULL | |
10539 | }; | |
10540 | ||
10541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | result = (bool)(arg1)->HasMask(); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
10551 | { | |
10552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10553 | } | |
10554 | return resultobj; | |
10555 | fail: | |
10556 | return NULL; | |
10557 | } | |
10558 | ||
10559 | ||
10560 | static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10561 | PyObject *resultobj; | |
10562 | wxImage *arg1 = (wxImage *) 0 ; | |
10563 | double arg2 ; | |
10564 | wxPoint *arg3 = 0 ; | |
10565 | bool arg4 = (bool) True ; | |
10566 | wxPoint *arg5 = (wxPoint *) NULL ; | |
10567 | SwigValueWrapper< wxImage > result; | |
10568 | wxPoint temp3 ; | |
10569 | PyObject * obj0 = 0 ; | |
10570 | PyObject * obj1 = 0 ; | |
10571 | PyObject * obj2 = 0 ; | |
10572 | PyObject * obj3 = 0 ; | |
10573 | PyObject * obj4 = 0 ; | |
10574 | char *kwnames[] = { | |
10575 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10576 | }; | |
10577 | ||
10578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10581 | arg2 = (double) SWIG_AsDouble(obj1); | |
10582 | if (PyErr_Occurred()) SWIG_fail; | |
10583 | { | |
10584 | arg3 = &temp3; | |
10585 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10586 | } | |
10587 | if (obj3) { | |
10588 | arg4 = (bool) SWIG_AsBool(obj3); | |
10589 | if (PyErr_Occurred()) SWIG_fail; | |
10590 | } | |
10591 | if (obj4) { | |
10592 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10594 | } | |
10595 | { | |
10596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10597 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10598 | ||
10599 | wxPyEndAllowThreads(__tstate); | |
10600 | if (PyErr_Occurred()) SWIG_fail; | |
10601 | } | |
10602 | { | |
10603 | wxImage * resultptr; | |
10604 | resultptr = new wxImage((wxImage &) result); | |
10605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10606 | } | |
10607 | return resultobj; | |
10608 | fail: | |
10609 | return NULL; | |
10610 | } | |
10611 | ||
10612 | ||
10613 | static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10614 | PyObject *resultobj; | |
10615 | wxImage *arg1 = (wxImage *) 0 ; | |
10616 | bool arg2 = (bool) True ; | |
10617 | SwigValueWrapper< wxImage > result; | |
10618 | PyObject * obj0 = 0 ; | |
10619 | PyObject * obj1 = 0 ; | |
10620 | char *kwnames[] = { | |
10621 | (char *) "self",(char *) "clockwise", NULL | |
10622 | }; | |
10623 | ||
10624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10627 | if (obj1) { | |
10628 | arg2 = (bool) SWIG_AsBool(obj1); | |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
10630 | } | |
10631 | { | |
10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10633 | result = (arg1)->Rotate90(arg2); | |
10634 | ||
10635 | wxPyEndAllowThreads(__tstate); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | { | |
10639 | wxImage * resultptr; | |
10640 | resultptr = new wxImage((wxImage &) result); | |
10641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10642 | } | |
10643 | return resultobj; | |
10644 | fail: | |
10645 | return NULL; | |
10646 | } | |
10647 | ||
10648 | ||
10649 | static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10650 | PyObject *resultobj; | |
10651 | wxImage *arg1 = (wxImage *) 0 ; | |
10652 | bool arg2 = (bool) True ; | |
10653 | SwigValueWrapper< wxImage > result; | |
10654 | PyObject * obj0 = 0 ; | |
10655 | PyObject * obj1 = 0 ; | |
10656 | char *kwnames[] = { | |
10657 | (char *) "self",(char *) "horizontally", NULL | |
10658 | }; | |
10659 | ||
10660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10663 | if (obj1) { | |
10664 | arg2 = (bool) SWIG_AsBool(obj1); | |
10665 | if (PyErr_Occurred()) SWIG_fail; | |
10666 | } | |
10667 | { | |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | result = (arg1)->Mirror(arg2); | |
10670 | ||
10671 | wxPyEndAllowThreads(__tstate); | |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
10673 | } | |
10674 | { | |
10675 | wxImage * resultptr; | |
10676 | resultptr = new wxImage((wxImage &) result); | |
10677 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10678 | } | |
10679 | return resultobj; | |
10680 | fail: | |
10681 | return NULL; | |
10682 | } | |
10683 | ||
10684 | ||
10685 | static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10686 | PyObject *resultobj; | |
10687 | wxImage *arg1 = (wxImage *) 0 ; | |
10688 | unsigned char arg2 ; | |
10689 | unsigned char arg3 ; | |
10690 | unsigned char arg4 ; | |
10691 | unsigned char arg5 ; | |
10692 | unsigned char arg6 ; | |
10693 | unsigned char arg7 ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | PyObject * obj2 = 0 ; | |
10697 | PyObject * obj3 = 0 ; | |
10698 | PyObject * obj4 = 0 ; | |
10699 | PyObject * obj5 = 0 ; | |
10700 | PyObject * obj6 = 0 ; | |
10701 | char *kwnames[] = { | |
10702 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
10703 | }; | |
10704 | ||
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10708 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
10710 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10711 | if (PyErr_Occurred()) SWIG_fail; | |
10712 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10713 | if (PyErr_Occurred()) SWIG_fail; | |
10714 | arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4); | |
10715 | if (PyErr_Occurred()) SWIG_fail; | |
10716 | arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5); | |
10717 | if (PyErr_Occurred()) SWIG_fail; | |
10718 | arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6); | |
10719 | if (PyErr_Occurred()) SWIG_fail; | |
10720 | { | |
10721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10722 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
10723 | ||
10724 | wxPyEndAllowThreads(__tstate); | |
10725 | if (PyErr_Occurred()) SWIG_fail; | |
10726 | } | |
10727 | Py_INCREF(Py_None); resultobj = Py_None; | |
10728 | return resultobj; | |
10729 | fail: | |
10730 | return NULL; | |
10731 | } | |
10732 | ||
10733 | ||
10734 | static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10735 | PyObject *resultobj; | |
10736 | wxImage *arg1 = (wxImage *) 0 ; | |
10737 | unsigned char arg2 ; | |
10738 | unsigned char arg3 ; | |
10739 | unsigned char arg4 ; | |
10740 | SwigValueWrapper< wxImage > result; | |
10741 | PyObject * obj0 = 0 ; | |
10742 | PyObject * obj1 = 0 ; | |
10743 | PyObject * obj2 = 0 ; | |
10744 | PyObject * obj3 = 0 ; | |
10745 | char *kwnames[] = { | |
10746 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10747 | }; | |
10748 | ||
10749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10752 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
10753 | if (PyErr_Occurred()) SWIG_fail; | |
10754 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
10755 | if (PyErr_Occurred()) SWIG_fail; | |
10756 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
10757 | if (PyErr_Occurred()) SWIG_fail; | |
10758 | { | |
10759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10760 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
10761 | ||
10762 | wxPyEndAllowThreads(__tstate); | |
10763 | if (PyErr_Occurred()) SWIG_fail; | |
10764 | } | |
10765 | { | |
10766 | wxImage * resultptr; | |
10767 | resultptr = new wxImage((wxImage &) result); | |
10768 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10769 | } | |
10770 | return resultobj; | |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
10776 | static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10777 | PyObject *resultobj; | |
10778 | wxImage *arg1 = (wxImage *) 0 ; | |
10779 | wxString *arg2 = 0 ; | |
10780 | wxString *arg3 = 0 ; | |
10781 | bool temp2 = False ; | |
10782 | bool temp3 = False ; | |
10783 | PyObject * obj0 = 0 ; | |
10784 | PyObject * obj1 = 0 ; | |
10785 | PyObject * obj2 = 0 ; | |
10786 | char *kwnames[] = { | |
10787 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10788 | }; | |
10789 | ||
10790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10793 | { | |
10794 | arg2 = wxString_in_helper(obj1); | |
10795 | if (arg2 == NULL) SWIG_fail; | |
10796 | temp2 = True; | |
10797 | } | |
10798 | { | |
10799 | arg3 = wxString_in_helper(obj2); | |
10800 | if (arg3 == NULL) SWIG_fail; | |
10801 | temp3 = True; | |
10802 | } | |
10803 | { | |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
10806 | ||
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
10810 | Py_INCREF(Py_None); resultobj = Py_None; | |
10811 | { | |
10812 | if (temp2) | |
10813 | delete arg2; | |
10814 | } | |
10815 | { | |
10816 | if (temp3) | |
10817 | delete arg3; | |
10818 | } | |
10819 | return resultobj; | |
10820 | fail: | |
10821 | { | |
10822 | if (temp2) | |
10823 | delete arg2; | |
10824 | } | |
10825 | { | |
10826 | if (temp3) | |
10827 | delete arg3; | |
10828 | } | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10834 | PyObject *resultobj; | |
10835 | wxImage *arg1 = (wxImage *) 0 ; | |
10836 | wxString *arg2 = 0 ; | |
10837 | int arg3 ; | |
10838 | bool temp2 = False ; | |
10839 | PyObject * obj0 = 0 ; | |
10840 | PyObject * obj1 = 0 ; | |
10841 | PyObject * obj2 = 0 ; | |
10842 | char *kwnames[] = { | |
10843 | (char *) "self",(char *) "name",(char *) "value", NULL | |
10844 | }; | |
10845 | ||
10846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10849 | { | |
10850 | arg2 = wxString_in_helper(obj1); | |
10851 | if (arg2 == NULL) SWIG_fail; | |
10852 | temp2 = True; | |
10853 | } | |
10854 | arg3 = (int) SWIG_AsInt(obj2); | |
10855 | if (PyErr_Occurred()) SWIG_fail; | |
10856 | { | |
10857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10858 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
10859 | ||
10860 | wxPyEndAllowThreads(__tstate); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | } | |
10863 | Py_INCREF(Py_None); resultobj = Py_None; | |
10864 | { | |
10865 | if (temp2) | |
10866 | delete arg2; | |
10867 | } | |
10868 | return resultobj; | |
10869 | fail: | |
10870 | { | |
10871 | if (temp2) | |
10872 | delete arg2; | |
10873 | } | |
10874 | return NULL; | |
10875 | } | |
10876 | ||
10877 | ||
10878 | static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10879 | PyObject *resultobj; | |
10880 | wxImage *arg1 = (wxImage *) 0 ; | |
10881 | wxString *arg2 = 0 ; | |
10882 | wxString result; | |
10883 | bool temp2 = False ; | |
10884 | PyObject * obj0 = 0 ; | |
10885 | PyObject * obj1 = 0 ; | |
10886 | char *kwnames[] = { | |
10887 | (char *) "self",(char *) "name", NULL | |
10888 | }; | |
10889 | ||
10890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
10891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10893 | { | |
10894 | arg2 = wxString_in_helper(obj1); | |
10895 | if (arg2 == NULL) SWIG_fail; | |
10896 | temp2 = True; | |
10897 | } | |
10898 | { | |
10899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10900 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
10901 | ||
10902 | wxPyEndAllowThreads(__tstate); | |
10903 | if (PyErr_Occurred()) SWIG_fail; | |
10904 | } | |
10905 | { | |
10906 | #if wxUSE_UNICODE | |
10907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10908 | #else | |
10909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10910 | #endif | |
10911 | } | |
10912 | { | |
10913 | if (temp2) | |
10914 | delete arg2; | |
10915 | } | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | { | |
10919 | if (temp2) | |
10920 | delete arg2; | |
10921 | } | |
10922 | return NULL; | |
10923 | } | |
10924 | ||
10925 | ||
10926 | static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxImage *arg1 = (wxImage *) 0 ; | |
10929 | wxString *arg2 = 0 ; | |
10930 | int result; | |
10931 | bool temp2 = False ; | |
10932 | PyObject * obj0 = 0 ; | |
10933 | PyObject * obj1 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "name", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10941 | { | |
10942 | arg2 = wxString_in_helper(obj1); | |
10943 | if (arg2 == NULL) SWIG_fail; | |
10944 | temp2 = True; | |
10945 | } | |
10946 | { | |
10947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10948 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
10949 | ||
10950 | wxPyEndAllowThreads(__tstate); | |
10951 | if (PyErr_Occurred()) SWIG_fail; | |
10952 | } | |
10953 | resultobj = SWIG_FromInt((int)result); | |
10954 | { | |
10955 | if (temp2) | |
10956 | delete arg2; | |
10957 | } | |
10958 | return resultobj; | |
10959 | fail: | |
10960 | { | |
10961 | if (temp2) | |
10962 | delete arg2; | |
10963 | } | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
10968 | static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10969 | PyObject *resultobj; | |
10970 | wxImage *arg1 = (wxImage *) 0 ; | |
10971 | wxString *arg2 = 0 ; | |
10972 | bool result; | |
10973 | bool temp2 = False ; | |
10974 | PyObject * obj0 = 0 ; | |
10975 | PyObject * obj1 = 0 ; | |
10976 | char *kwnames[] = { | |
10977 | (char *) "self",(char *) "name", NULL | |
10978 | }; | |
10979 | ||
10980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
10981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10983 | { | |
10984 | arg2 = wxString_in_helper(obj1); | |
10985 | if (arg2 == NULL) SWIG_fail; | |
10986 | temp2 = True; | |
10987 | } | |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | { | |
10996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10997 | } | |
10998 | { | |
10999 | if (temp2) | |
11000 | delete arg2; | |
11001 | } | |
11002 | return resultobj; | |
11003 | fail: | |
11004 | { | |
11005 | if (temp2) | |
11006 | delete arg2; | |
11007 | } | |
11008 | return NULL; | |
11009 | } | |
11010 | ||
11011 | ||
11012 | static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11013 | PyObject *resultobj; | |
11014 | wxImage *arg1 = (wxImage *) 0 ; | |
11015 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11016 | unsigned long result; | |
11017 | PyObject * obj0 = 0 ; | |
11018 | PyObject * obj1 = 0 ; | |
11019 | char *kwnames[] = { | |
11020 | (char *) "self",(char *) "stopafter", NULL | |
11021 | }; | |
11022 | ||
11023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11026 | if (obj1) { | |
11027 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
11028 | if (PyErr_Occurred()) SWIG_fail; | |
11029 | } | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
11037 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11038 | return resultobj; | |
11039 | fail: | |
11040 | return NULL; | |
11041 | } | |
11042 | ||
11043 | ||
11044 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11045 | PyObject *resultobj; | |
11046 | wxImage *arg1 = (wxImage *) 0 ; | |
11047 | wxImageHistogram *arg2 = 0 ; | |
11048 | unsigned long result; | |
11049 | PyObject * obj0 = 0 ; | |
11050 | PyObject * obj1 = 0 ; | |
11051 | char *kwnames[] = { | |
11052 | (char *) "self",(char *) "h", NULL | |
11053 | }; | |
11054 | ||
11055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11060 | SWIG_fail; | |
11061 | if (arg2 == NULL) { | |
11062 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11063 | SWIG_fail; | |
11064 | } | |
11065 | { | |
11066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11067 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11068 | ||
11069 | wxPyEndAllowThreads(__tstate); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
11073 | return resultobj; | |
11074 | fail: | |
11075 | return NULL; | |
11076 | } | |
11077 | ||
11078 | ||
11079 | static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11080 | PyObject *resultobj; | |
11081 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11082 | PyObject * obj0 = 0 ; | |
11083 | char *kwnames[] = { | |
11084 | (char *) "handler", NULL | |
11085 | }; | |
11086 | ||
11087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11090 | { | |
11091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11092 | wxImage::AddHandler(arg1); | |
11093 | ||
11094 | wxPyEndAllowThreads(__tstate); | |
11095 | if (PyErr_Occurred()) SWIG_fail; | |
11096 | } | |
11097 | Py_INCREF(Py_None); resultobj = Py_None; | |
11098 | return resultobj; | |
11099 | fail: | |
11100 | return NULL; | |
11101 | } | |
11102 | ||
11103 | ||
11104 | static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11105 | PyObject *resultobj; | |
11106 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11107 | PyObject * obj0 = 0 ; | |
11108 | char *kwnames[] = { | |
11109 | (char *) "handler", NULL | |
11110 | }; | |
11111 | ||
11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11115 | { | |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11117 | wxImage::InsertHandler(arg1); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
11120 | if (PyErr_Occurred()) SWIG_fail; | |
11121 | } | |
11122 | Py_INCREF(Py_None); resultobj = Py_None; | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
11129 | static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11130 | PyObject *resultobj; | |
11131 | wxString *arg1 = 0 ; | |
11132 | bool result; | |
11133 | bool temp1 = False ; | |
11134 | PyObject * obj0 = 0 ; | |
11135 | char *kwnames[] = { | |
11136 | (char *) "name", NULL | |
11137 | }; | |
11138 | ||
11139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11140 | { | |
11141 | arg1 = wxString_in_helper(obj0); | |
11142 | if (arg1 == NULL) SWIG_fail; | |
11143 | temp1 = True; | |
11144 | } | |
11145 | { | |
11146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11147 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11148 | ||
11149 | wxPyEndAllowThreads(__tstate); | |
11150 | if (PyErr_Occurred()) SWIG_fail; | |
11151 | } | |
11152 | { | |
11153 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11154 | } | |
11155 | { | |
11156 | if (temp1) | |
11157 | delete arg1; | |
11158 | } | |
11159 | return resultobj; | |
11160 | fail: | |
11161 | { | |
11162 | if (temp1) | |
11163 | delete arg1; | |
11164 | } | |
11165 | return NULL; | |
11166 | } | |
11167 | ||
11168 | ||
11169 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11170 | PyObject *resultobj; | |
11171 | wxString result; | |
11172 | char *kwnames[] = { | |
11173 | NULL | |
11174 | }; | |
11175 | ||
11176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11177 | { | |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | result = wxImage::GetImageExtWildcard(); | |
11180 | ||
11181 | wxPyEndAllowThreads(__tstate); | |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | { | |
11185 | #if wxUSE_UNICODE | |
11186 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11187 | #else | |
11188 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11189 | #endif | |
11190 | } | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject *resultobj; | |
11199 | wxImage *arg1 = (wxImage *) 0 ; | |
11200 | wxBitmap result; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | char *kwnames[] = { | |
11203 | (char *) "self", NULL | |
11204 | }; | |
11205 | ||
11206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail; | |
11207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11209 | { | |
11210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11211 | result = wxImage_ConvertToBitmap(arg1); | |
11212 | ||
11213 | wxPyEndAllowThreads(__tstate); | |
11214 | if (PyErr_Occurred()) SWIG_fail; | |
11215 | } | |
11216 | { | |
11217 | wxBitmap * resultptr; | |
11218 | resultptr = new wxBitmap((wxBitmap &) result); | |
11219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11220 | } | |
11221 | return resultobj; | |
11222 | fail: | |
11223 | return NULL; | |
11224 | } | |
11225 | ||
11226 | ||
11227 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject *resultobj; | |
11229 | wxImage *arg1 = (wxImage *) 0 ; | |
11230 | unsigned char arg2 ; | |
11231 | unsigned char arg3 ; | |
11232 | unsigned char arg4 ; | |
11233 | wxBitmap result; | |
11234 | PyObject * obj0 = 0 ; | |
11235 | PyObject * obj1 = 0 ; | |
11236 | PyObject * obj2 = 0 ; | |
11237 | PyObject * obj3 = 0 ; | |
11238 | char *kwnames[] = { | |
11239 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11240 | }; | |
11241 | ||
11242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11245 | arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1); | |
11246 | if (PyErr_Occurred()) SWIG_fail; | |
11247 | arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2); | |
11248 | if (PyErr_Occurred()) SWIG_fail; | |
11249 | arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3); | |
11250 | if (PyErr_Occurred()) SWIG_fail; | |
11251 | { | |
11252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11253 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11254 | ||
11255 | wxPyEndAllowThreads(__tstate); | |
11256 | if (PyErr_Occurred()) SWIG_fail; | |
11257 | } | |
11258 | { | |
11259 | wxBitmap * resultptr; | |
11260 | resultptr = new wxBitmap((wxBitmap &) result); | |
11261 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11262 | } | |
11263 | return resultobj; | |
11264 | fail: | |
11265 | return NULL; | |
11266 | } | |
11267 | ||
11268 | ||
11269 | static PyObject * Image_swigregister(PyObject *self, PyObject *args) { | |
11270 | PyObject *obj; | |
11271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11272 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11273 | Py_INCREF(obj); | |
11274 | return Py_BuildValue((char *)""); | |
11275 | } | |
11276 | static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11277 | PyObject *resultobj; | |
11278 | char *kwnames[] = { | |
11279 | NULL | |
11280 | }; | |
11281 | ||
11282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail; | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | wxInitAllImageHandlers(); | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | Py_INCREF(Py_None); resultobj = Py_None; | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static int _wrap_NullImage_set(PyObject *_val) { | |
11298 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); | |
11299 | return 1; | |
11300 | } | |
11301 | ||
11302 | ||
11303 | static PyObject *_wrap_NullImage_get() { | |
11304 | PyObject *pyobj; | |
11305 | ||
11306 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11307 | return pyobj; | |
11308 | } | |
11309 | ||
11310 | ||
11311 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) { | |
11312 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); | |
11313 | return 1; | |
11314 | } | |
11315 | ||
11316 | ||
11317 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11318 | PyObject *pyobj; | |
11319 | ||
11320 | { | |
11321 | #if wxUSE_UNICODE | |
11322 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11323 | #else | |
11324 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11325 | #endif | |
11326 | } | |
11327 | return pyobj; | |
11328 | } | |
11329 | ||
11330 | ||
11331 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) { | |
11332 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); | |
11333 | return 1; | |
11334 | } | |
11335 | ||
11336 | ||
11337 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11338 | PyObject *pyobj; | |
11339 | ||
11340 | { | |
11341 | #if wxUSE_UNICODE | |
11342 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11343 | #else | |
11344 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11345 | #endif | |
11346 | } | |
11347 | return pyobj; | |
11348 | } | |
11349 | ||
11350 | ||
11351 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) { | |
11352 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); | |
11353 | return 1; | |
11354 | } | |
11355 | ||
11356 | ||
11357 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11358 | PyObject *pyobj; | |
11359 | ||
11360 | { | |
11361 | #if wxUSE_UNICODE | |
11362 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11363 | #else | |
11364 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11365 | #endif | |
11366 | } | |
11367 | return pyobj; | |
11368 | } | |
11369 | ||
11370 | ||
11371 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) { | |
11372 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); | |
11373 | return 1; | |
11374 | } | |
11375 | ||
11376 | ||
11377 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11378 | PyObject *pyobj; | |
11379 | ||
11380 | { | |
11381 | #if wxUSE_UNICODE | |
11382 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11383 | #else | |
11384 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11385 | #endif | |
11386 | } | |
11387 | return pyobj; | |
11388 | } | |
11389 | ||
11390 | ||
11391 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) { | |
11392 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); | |
11393 | return 1; | |
11394 | } | |
11395 | ||
11396 | ||
11397 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11398 | PyObject *pyobj; | |
11399 | ||
11400 | { | |
11401 | #if wxUSE_UNICODE | |
11402 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11403 | #else | |
11404 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11405 | #endif | |
11406 | } | |
11407 | return pyobj; | |
11408 | } | |
11409 | ||
11410 | ||
11411 | static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11412 | PyObject *resultobj; | |
11413 | wxBMPHandler *result; | |
11414 | char *kwnames[] = { | |
11415 | NULL | |
11416 | }; | |
11417 | ||
11418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11419 | { | |
11420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11421 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11422 | ||
11423 | wxPyEndAllowThreads(__tstate); | |
11424 | if (PyErr_Occurred()) SWIG_fail; | |
11425 | } | |
11426 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11427 | return resultobj; | |
11428 | fail: | |
11429 | return NULL; | |
11430 | } | |
11431 | ||
11432 | ||
11433 | static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) { | |
11434 | PyObject *obj; | |
11435 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11436 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11437 | Py_INCREF(obj); | |
11438 | return Py_BuildValue((char *)""); | |
11439 | } | |
11440 | static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject *resultobj; | |
11442 | wxICOHandler *result; | |
11443 | char *kwnames[] = { | |
11444 | NULL | |
11445 | }; | |
11446 | ||
11447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11448 | { | |
11449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11450 | result = (wxICOHandler *)new wxICOHandler(); | |
11451 | ||
11452 | wxPyEndAllowThreads(__tstate); | |
11453 | if (PyErr_Occurred()) SWIG_fail; | |
11454 | } | |
11455 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11456 | return resultobj; | |
11457 | fail: | |
11458 | return NULL; | |
11459 | } | |
11460 | ||
11461 | ||
11462 | static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) { | |
11463 | PyObject *obj; | |
11464 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11465 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11466 | Py_INCREF(obj); | |
11467 | return Py_BuildValue((char *)""); | |
11468 | } | |
11469 | static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11470 | PyObject *resultobj; | |
11471 | wxCURHandler *result; | |
11472 | char *kwnames[] = { | |
11473 | NULL | |
11474 | }; | |
11475 | ||
11476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11477 | { | |
11478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11479 | result = (wxCURHandler *)new wxCURHandler(); | |
11480 | ||
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) { | |
11492 | PyObject *obj; | |
11493 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11494 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11495 | Py_INCREF(obj); | |
11496 | return Py_BuildValue((char *)""); | |
11497 | } | |
11498 | static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11499 | PyObject *resultobj; | |
11500 | wxANIHandler *result; | |
11501 | char *kwnames[] = { | |
11502 | NULL | |
11503 | }; | |
11504 | ||
11505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11506 | { | |
11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11508 | result = (wxANIHandler *)new wxANIHandler(); | |
11509 | ||
11510 | wxPyEndAllowThreads(__tstate); | |
11511 | if (PyErr_Occurred()) SWIG_fail; | |
11512 | } | |
11513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11514 | return resultobj; | |
11515 | fail: | |
11516 | return NULL; | |
11517 | } | |
11518 | ||
11519 | ||
11520 | static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) { | |
11521 | PyObject *obj; | |
11522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11523 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11524 | Py_INCREF(obj); | |
11525 | return Py_BuildValue((char *)""); | |
11526 | } | |
11527 | static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11528 | PyObject *resultobj; | |
11529 | wxPNGHandler *result; | |
11530 | char *kwnames[] = { | |
11531 | NULL | |
11532 | }; | |
11533 | ||
11534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11535 | { | |
11536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11537 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11538 | ||
11539 | wxPyEndAllowThreads(__tstate); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
11542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11543 | return resultobj; | |
11544 | fail: | |
11545 | return NULL; | |
11546 | } | |
11547 | ||
11548 | ||
11549 | static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) { | |
11550 | PyObject *obj; | |
11551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11552 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11553 | Py_INCREF(obj); | |
11554 | return Py_BuildValue((char *)""); | |
11555 | } | |
11556 | static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj; | |
11558 | wxGIFHandler *result; | |
11559 | char *kwnames[] = { | |
11560 | NULL | |
11561 | }; | |
11562 | ||
11563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11564 | { | |
11565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11566 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11567 | ||
11568 | wxPyEndAllowThreads(__tstate); | |
11569 | if (PyErr_Occurred()) SWIG_fail; | |
11570 | } | |
11571 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11572 | return resultobj; | |
11573 | fail: | |
11574 | return NULL; | |
11575 | } | |
11576 | ||
11577 | ||
11578 | static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) { | |
11579 | PyObject *obj; | |
11580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11581 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11582 | Py_INCREF(obj); | |
11583 | return Py_BuildValue((char *)""); | |
11584 | } | |
11585 | static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11586 | PyObject *resultobj; | |
11587 | wxPCXHandler *result; | |
11588 | char *kwnames[] = { | |
11589 | NULL | |
11590 | }; | |
11591 | ||
11592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11593 | { | |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11601 | return resultobj; | |
11602 | fail: | |
11603 | return NULL; | |
11604 | } | |
11605 | ||
11606 | ||
11607 | static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) { | |
11608 | PyObject *obj; | |
11609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11610 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11611 | Py_INCREF(obj); | |
11612 | return Py_BuildValue((char *)""); | |
11613 | } | |
11614 | static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11615 | PyObject *resultobj; | |
11616 | wxJPEGHandler *result; | |
11617 | char *kwnames[] = { | |
11618 | NULL | |
11619 | }; | |
11620 | ||
11621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11622 | { | |
11623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11624 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11625 | ||
11626 | wxPyEndAllowThreads(__tstate); | |
11627 | if (PyErr_Occurred()) SWIG_fail; | |
11628 | } | |
11629 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11630 | return resultobj; | |
11631 | fail: | |
11632 | return NULL; | |
11633 | } | |
11634 | ||
11635 | ||
11636 | static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) { | |
11637 | PyObject *obj; | |
11638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11639 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11640 | Py_INCREF(obj); | |
11641 | return Py_BuildValue((char *)""); | |
11642 | } | |
11643 | static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11644 | PyObject *resultobj; | |
11645 | wxPNMHandler *result; | |
11646 | char *kwnames[] = { | |
11647 | NULL | |
11648 | }; | |
11649 | ||
11650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11651 | { | |
11652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11653 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11654 | ||
11655 | wxPyEndAllowThreads(__tstate); | |
11656 | if (PyErr_Occurred()) SWIG_fail; | |
11657 | } | |
11658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11659 | return resultobj; | |
11660 | fail: | |
11661 | return NULL; | |
11662 | } | |
11663 | ||
11664 | ||
11665 | static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) { | |
11666 | PyObject *obj; | |
11667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11668 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11669 | Py_INCREF(obj); | |
11670 | return Py_BuildValue((char *)""); | |
11671 | } | |
11672 | static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11673 | PyObject *resultobj; | |
11674 | wxXPMHandler *result; | |
11675 | char *kwnames[] = { | |
11676 | NULL | |
11677 | }; | |
11678 | ||
11679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11680 | { | |
11681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11682 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11683 | ||
11684 | wxPyEndAllowThreads(__tstate); | |
11685 | if (PyErr_Occurred()) SWIG_fail; | |
11686 | } | |
11687 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
11688 | return resultobj; | |
11689 | fail: | |
11690 | return NULL; | |
11691 | } | |
11692 | ||
11693 | ||
11694 | static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) { | |
11695 | PyObject *obj; | |
11696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11697 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
11698 | Py_INCREF(obj); | |
11699 | return Py_BuildValue((char *)""); | |
11700 | } | |
11701 | static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11702 | PyObject *resultobj; | |
11703 | wxTIFFHandler *result; | |
11704 | char *kwnames[] = { | |
11705 | NULL | |
11706 | }; | |
11707 | ||
11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
11709 | { | |
11710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11711 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
11712 | ||
11713 | wxPyEndAllowThreads(__tstate); | |
11714 | if (PyErr_Occurred()) SWIG_fail; | |
11715 | } | |
11716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
11717 | return resultobj; | |
11718 | fail: | |
11719 | return NULL; | |
11720 | } | |
11721 | ||
11722 | ||
11723 | static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) { | |
11724 | PyObject *obj; | |
11725 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11726 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
11727 | Py_INCREF(obj); | |
11728 | return Py_BuildValue((char *)""); | |
11729 | } | |
11730 | static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11731 | PyObject *resultobj; | |
11732 | wxEvtHandler *result; | |
11733 | char *kwnames[] = { | |
11734 | NULL | |
11735 | }; | |
11736 | ||
11737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
11738 | { | |
11739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11740 | result = (wxEvtHandler *)new wxEvtHandler(); | |
11741 | ||
11742 | wxPyEndAllowThreads(__tstate); | |
11743 | if (PyErr_Occurred()) SWIG_fail; | |
11744 | } | |
11745 | { | |
11746 | resultobj = wxPyMake_wxObject(result); | |
11747 | } | |
11748 | return resultobj; | |
11749 | fail: | |
11750 | return NULL; | |
11751 | } | |
11752 | ||
11753 | ||
11754 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11755 | PyObject *resultobj; | |
11756 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11757 | wxEvtHandler *result; | |
11758 | PyObject * obj0 = 0 ; | |
11759 | char *kwnames[] = { | |
11760 | (char *) "self", NULL | |
11761 | }; | |
11762 | ||
11763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
11764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
11769 | ||
11770 | wxPyEndAllowThreads(__tstate); | |
11771 | if (PyErr_Occurred()) SWIG_fail; | |
11772 | } | |
11773 | { | |
11774 | resultobj = wxPyMake_wxObject(result); | |
11775 | } | |
11776 | return resultobj; | |
11777 | fail: | |
11778 | return NULL; | |
11779 | } | |
11780 | ||
11781 | ||
11782 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11785 | wxEvtHandler *result; | |
11786 | PyObject * obj0 = 0 ; | |
11787 | char *kwnames[] = { | |
11788 | (char *) "self", NULL | |
11789 | }; | |
11790 | ||
11791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
11792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11794 | { | |
11795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11796 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
11797 | ||
11798 | wxPyEndAllowThreads(__tstate); | |
11799 | if (PyErr_Occurred()) SWIG_fail; | |
11800 | } | |
11801 | { | |
11802 | resultobj = wxPyMake_wxObject(result); | |
11803 | } | |
11804 | return resultobj; | |
11805 | fail: | |
11806 | return NULL; | |
11807 | } | |
11808 | ||
11809 | ||
11810 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11811 | PyObject *resultobj; | |
11812 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11813 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11814 | PyObject * obj0 = 0 ; | |
11815 | PyObject * obj1 = 0 ; | |
11816 | char *kwnames[] = { | |
11817 | (char *) "self",(char *) "handler", NULL | |
11818 | }; | |
11819 | ||
11820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
11821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11823 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11825 | { | |
11826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11827 | (arg1)->SetNextHandler(arg2); | |
11828 | ||
11829 | wxPyEndAllowThreads(__tstate); | |
11830 | if (PyErr_Occurred()) SWIG_fail; | |
11831 | } | |
11832 | Py_INCREF(Py_None); resultobj = Py_None; | |
11833 | return resultobj; | |
11834 | fail: | |
11835 | return NULL; | |
11836 | } | |
11837 | ||
11838 | ||
11839 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11840 | PyObject *resultobj; | |
11841 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11842 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
11843 | PyObject * obj0 = 0 ; | |
11844 | PyObject * obj1 = 0 ; | |
11845 | char *kwnames[] = { | |
11846 | (char *) "self",(char *) "handler", NULL | |
11847 | }; | |
11848 | ||
11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
11850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
11853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11854 | { | |
11855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11856 | (arg1)->SetPreviousHandler(arg2); | |
11857 | ||
11858 | wxPyEndAllowThreads(__tstate); | |
11859 | if (PyErr_Occurred()) SWIG_fail; | |
11860 | } | |
11861 | Py_INCREF(Py_None); resultobj = Py_None; | |
11862 | return resultobj; | |
11863 | fail: | |
11864 | return NULL; | |
11865 | } | |
11866 | ||
11867 | ||
11868 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11869 | PyObject *resultobj; | |
11870 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11871 | bool result; | |
11872 | PyObject * obj0 = 0 ; | |
11873 | char *kwnames[] = { | |
11874 | (char *) "self", NULL | |
11875 | }; | |
11876 | ||
11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
11878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11880 | { | |
11881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11882 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
11883 | ||
11884 | wxPyEndAllowThreads(__tstate); | |
11885 | if (PyErr_Occurred()) SWIG_fail; | |
11886 | } | |
11887 | { | |
11888 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11889 | } | |
11890 | return resultobj; | |
11891 | fail: | |
11892 | return NULL; | |
11893 | } | |
11894 | ||
11895 | ||
11896 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11897 | PyObject *resultobj; | |
11898 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11899 | bool arg2 ; | |
11900 | PyObject * obj0 = 0 ; | |
11901 | PyObject * obj1 = 0 ; | |
11902 | char *kwnames[] = { | |
11903 | (char *) "self",(char *) "enabled", NULL | |
11904 | }; | |
11905 | ||
11906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
11907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11909 | arg2 = (bool) SWIG_AsBool(obj1); | |
11910 | if (PyErr_Occurred()) SWIG_fail; | |
11911 | { | |
11912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11913 | (arg1)->SetEvtHandlerEnabled(arg2); | |
11914 | ||
11915 | wxPyEndAllowThreads(__tstate); | |
11916 | if (PyErr_Occurred()) SWIG_fail; | |
11917 | } | |
11918 | Py_INCREF(Py_None); resultobj = Py_None; | |
11919 | return resultobj; | |
11920 | fail: | |
11921 | return NULL; | |
11922 | } | |
11923 | ||
11924 | ||
11925 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11926 | PyObject *resultobj; | |
11927 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11928 | wxEvent *arg2 = 0 ; | |
11929 | bool result; | |
11930 | PyObject * obj0 = 0 ; | |
11931 | PyObject * obj1 = 0 ; | |
11932 | char *kwnames[] = { | |
11933 | (char *) "self",(char *) "event", NULL | |
11934 | }; | |
11935 | ||
11936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
11937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11941 | SWIG_fail; | |
11942 | if (arg2 == NULL) { | |
11943 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11944 | SWIG_fail; | |
11945 | } | |
11946 | { | |
11947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11948 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
11949 | ||
11950 | wxPyEndAllowThreads(__tstate); | |
11951 | if (PyErr_Occurred()) SWIG_fail; | |
11952 | } | |
11953 | { | |
11954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11955 | } | |
11956 | return resultobj; | |
11957 | fail: | |
11958 | return NULL; | |
11959 | } | |
11960 | ||
11961 | ||
11962 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11963 | PyObject *resultobj; | |
11964 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11965 | wxEvent *arg2 = 0 ; | |
11966 | PyObject * obj0 = 0 ; | |
11967 | PyObject * obj1 = 0 ; | |
11968 | char *kwnames[] = { | |
11969 | (char *) "self",(char *) "event", NULL | |
11970 | }; | |
11971 | ||
11972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
11973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
11974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11975 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
11976 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11977 | SWIG_fail; | |
11978 | if (arg2 == NULL) { | |
11979 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11980 | SWIG_fail; | |
11981 | } | |
11982 | { | |
11983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11984 | (arg1)->AddPendingEvent(*arg2); | |
11985 | ||
11986 | wxPyEndAllowThreads(__tstate); | |
11987 | if (PyErr_Occurred()) SWIG_fail; | |
11988 | } | |
11989 | Py_INCREF(Py_None); resultobj = Py_None; | |
11990 | return resultobj; | |
11991 | fail: | |
11992 | return NULL; | |
11993 | } | |
11994 | ||
11995 | ||
11996 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11997 | PyObject *resultobj; | |
11998 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
11999 | PyObject * obj0 = 0 ; | |
12000 | char *kwnames[] = { | |
12001 | (char *) "self", NULL | |
12002 | }; | |
12003 | ||
12004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12009 | (arg1)->ProcessPendingEvents(); | |
12010 | ||
12011 | wxPyEndAllowThreads(__tstate); | |
12012 | if (PyErr_Occurred()) SWIG_fail; | |
12013 | } | |
12014 | Py_INCREF(Py_None); resultobj = Py_None; | |
12015 | return resultobj; | |
12016 | fail: | |
12017 | return NULL; | |
12018 | } | |
12019 | ||
12020 | ||
12021 | static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12022 | PyObject *resultobj; | |
12023 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12024 | int arg2 ; | |
12025 | int arg3 ; | |
12026 | int arg4 ; | |
12027 | PyObject *arg5 = (PyObject *) 0 ; | |
12028 | PyObject * obj0 = 0 ; | |
12029 | PyObject * obj1 = 0 ; | |
12030 | PyObject * obj2 = 0 ; | |
12031 | PyObject * obj3 = 0 ; | |
12032 | PyObject * obj4 = 0 ; | |
12033 | char *kwnames[] = { | |
12034 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12040 | arg2 = (int) SWIG_AsInt(obj1); | |
12041 | if (PyErr_Occurred()) SWIG_fail; | |
12042 | arg3 = (int) SWIG_AsInt(obj2); | |
12043 | if (PyErr_Occurred()) SWIG_fail; | |
12044 | arg4 = (int) SWIG_AsInt(obj3); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | arg5 = obj4; | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | Py_INCREF(Py_None); resultobj = Py_None; | |
12055 | return resultobj; | |
12056 | fail: | |
12057 | return NULL; | |
12058 | } | |
12059 | ||
12060 | ||
12061 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12062 | PyObject *resultobj; | |
12063 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12064 | int arg2 ; | |
12065 | int arg3 = (int) -1 ; | |
12066 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12067 | bool result; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | PyObject * obj2 = 0 ; | |
12071 | PyObject * obj3 = 0 ; | |
12072 | char *kwnames[] = { | |
12073 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12074 | }; | |
12075 | ||
12076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12079 | arg2 = (int) SWIG_AsInt(obj1); | |
12080 | if (PyErr_Occurred()) SWIG_fail; | |
12081 | if (obj2) { | |
12082 | arg3 = (int) SWIG_AsInt(obj2); | |
12083 | if (PyErr_Occurred()) SWIG_fail; | |
12084 | } | |
12085 | if (obj3) { | |
12086 | arg4 = (wxEventType) SWIG_AsInt(obj3); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | { | |
12090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12091 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12092 | ||
12093 | wxPyEndAllowThreads(__tstate); | |
12094 | if (PyErr_Occurred()) SWIG_fail; | |
12095 | } | |
12096 | { | |
12097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12098 | } | |
12099 | return resultobj; | |
12100 | fail: | |
12101 | return NULL; | |
12102 | } | |
12103 | ||
12104 | ||
12105 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12106 | PyObject *resultobj; | |
12107 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12108 | PyObject *arg2 = (PyObject *) 0 ; | |
12109 | PyObject * obj0 = 0 ; | |
12110 | PyObject * obj1 = 0 ; | |
12111 | char *kwnames[] = { | |
12112 | (char *) "self",(char *) "_self", NULL | |
12113 | }; | |
12114 | ||
12115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12118 | arg2 = obj1; | |
12119 | { | |
12120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12121 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12122 | ||
12123 | wxPyEndAllowThreads(__tstate); | |
12124 | if (PyErr_Occurred()) SWIG_fail; | |
12125 | } | |
12126 | Py_INCREF(Py_None); resultobj = Py_None; | |
12127 | return resultobj; | |
12128 | fail: | |
12129 | return NULL; | |
12130 | } | |
12131 | ||
12132 | ||
12133 | static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) { | |
12134 | PyObject *obj; | |
12135 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12136 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12137 | Py_INCREF(obj); | |
12138 | return Py_BuildValue((char *)""); | |
12139 | } | |
12140 | static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12141 | PyObject *resultobj; | |
12142 | wxEventType result; | |
12143 | char *kwnames[] = { | |
12144 | NULL | |
12145 | }; | |
12146 | ||
12147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12148 | { | |
12149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12150 | result = (wxEventType)wxNewEventType(); | |
12151 | ||
12152 | wxPyEndAllowThreads(__tstate); | |
12153 | if (PyErr_Occurred()) SWIG_fail; | |
12154 | } | |
12155 | resultobj = SWIG_FromInt((int)result); | |
12156 | return resultobj; | |
12157 | fail: | |
12158 | return NULL; | |
12159 | } | |
12160 | ||
12161 | ||
12162 | static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12163 | PyObject *resultobj; | |
12164 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12165 | PyObject * obj0 = 0 ; | |
12166 | char *kwnames[] = { | |
12167 | (char *) "self", NULL | |
12168 | }; | |
12169 | ||
12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12173 | { | |
12174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12175 | delete arg1; | |
12176 | ||
12177 | wxPyEndAllowThreads(__tstate); | |
12178 | if (PyErr_Occurred()) SWIG_fail; | |
12179 | } | |
12180 | Py_INCREF(Py_None); resultobj = Py_None; | |
12181 | return resultobj; | |
12182 | fail: | |
12183 | return NULL; | |
12184 | } | |
12185 | ||
12186 | ||
12187 | static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12188 | PyObject *resultobj; | |
12189 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12190 | wxEventType arg2 ; | |
12191 | PyObject * obj0 = 0 ; | |
12192 | PyObject * obj1 = 0 ; | |
12193 | char *kwnames[] = { | |
12194 | (char *) "self",(char *) "typ", NULL | |
12195 | }; | |
12196 | ||
12197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12200 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
12201 | if (PyErr_Occurred()) SWIG_fail; | |
12202 | { | |
12203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12204 | (arg1)->SetEventType(arg2); | |
12205 | ||
12206 | wxPyEndAllowThreads(__tstate); | |
12207 | if (PyErr_Occurred()) SWIG_fail; | |
12208 | } | |
12209 | Py_INCREF(Py_None); resultobj = Py_None; | |
12210 | return resultobj; | |
12211 | fail: | |
12212 | return NULL; | |
12213 | } | |
12214 | ||
12215 | ||
12216 | static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12217 | PyObject *resultobj; | |
12218 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12219 | wxEventType result; | |
12220 | PyObject * obj0 = 0 ; | |
12221 | char *kwnames[] = { | |
12222 | (char *) "self", NULL | |
12223 | }; | |
12224 | ||
12225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12228 | { | |
12229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12230 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12231 | ||
12232 | wxPyEndAllowThreads(__tstate); | |
12233 | if (PyErr_Occurred()) SWIG_fail; | |
12234 | } | |
12235 | resultobj = SWIG_FromInt((int)result); | |
12236 | return resultobj; | |
12237 | fail: | |
12238 | return NULL; | |
12239 | } | |
12240 | ||
12241 | ||
12242 | static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12243 | PyObject *resultobj; | |
12244 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12245 | wxObject *result; | |
12246 | PyObject * obj0 = 0 ; | |
12247 | char *kwnames[] = { | |
12248 | (char *) "self", NULL | |
12249 | }; | |
12250 | ||
12251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12254 | { | |
12255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12256 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12257 | ||
12258 | wxPyEndAllowThreads(__tstate); | |
12259 | if (PyErr_Occurred()) SWIG_fail; | |
12260 | } | |
12261 | { | |
12262 | resultobj = wxPyMake_wxObject(result); | |
12263 | } | |
12264 | return resultobj; | |
12265 | fail: | |
12266 | return NULL; | |
12267 | } | |
12268 | ||
12269 | ||
12270 | static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12271 | PyObject *resultobj; | |
12272 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12273 | wxObject *arg2 = (wxObject *) 0 ; | |
12274 | PyObject * obj0 = 0 ; | |
12275 | PyObject * obj1 = 0 ; | |
12276 | char *kwnames[] = { | |
12277 | (char *) "self",(char *) "obj", NULL | |
12278 | }; | |
12279 | ||
12280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12283 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12285 | { | |
12286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12287 | (arg1)->SetEventObject(arg2); | |
12288 | ||
12289 | wxPyEndAllowThreads(__tstate); | |
12290 | if (PyErr_Occurred()) SWIG_fail; | |
12291 | } | |
12292 | Py_INCREF(Py_None); resultobj = Py_None; | |
12293 | return resultobj; | |
12294 | fail: | |
12295 | return NULL; | |
12296 | } | |
12297 | ||
12298 | ||
12299 | static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12300 | PyObject *resultobj; | |
12301 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12302 | long result; | |
12303 | PyObject * obj0 = 0 ; | |
12304 | char *kwnames[] = { | |
12305 | (char *) "self", NULL | |
12306 | }; | |
12307 | ||
12308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12311 | { | |
12312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12313 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12314 | ||
12315 | wxPyEndAllowThreads(__tstate); | |
12316 | if (PyErr_Occurred()) SWIG_fail; | |
12317 | } | |
12318 | resultobj = SWIG_FromLong((long)result); | |
12319 | return resultobj; | |
12320 | fail: | |
12321 | return NULL; | |
12322 | } | |
12323 | ||
12324 | ||
12325 | static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12326 | PyObject *resultobj; | |
12327 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12328 | long arg2 = (long) 0 ; | |
12329 | PyObject * obj0 = 0 ; | |
12330 | PyObject * obj1 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self",(char *) "ts", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12338 | if (obj1) { | |
12339 | arg2 = (long) SWIG_AsLong(obj1); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | { | |
12343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12344 | (arg1)->SetTimestamp(arg2); | |
12345 | ||
12346 | wxPyEndAllowThreads(__tstate); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | } | |
12349 | Py_INCREF(Py_None); resultobj = Py_None; | |
12350 | return resultobj; | |
12351 | fail: | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
12356 | static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12357 | PyObject *resultobj; | |
12358 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12359 | int result; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12368 | { | |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
12375 | resultobj = SWIG_FromInt((int)result); | |
12376 | return resultobj; | |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12385 | int arg2 ; | |
12386 | PyObject * obj0 = 0 ; | |
12387 | PyObject * obj1 = 0 ; | |
12388 | char *kwnames[] = { | |
12389 | (char *) "self",(char *) "Id", NULL | |
12390 | }; | |
12391 | ||
12392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12395 | arg2 = (int) SWIG_AsInt(obj1); | |
12396 | if (PyErr_Occurred()) SWIG_fail; | |
12397 | { | |
12398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12399 | (arg1)->SetId(arg2); | |
12400 | ||
12401 | wxPyEndAllowThreads(__tstate); | |
12402 | if (PyErr_Occurred()) SWIG_fail; | |
12403 | } | |
12404 | Py_INCREF(Py_None); resultobj = Py_None; | |
12405 | return resultobj; | |
12406 | fail: | |
12407 | return NULL; | |
12408 | } | |
12409 | ||
12410 | ||
12411 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12412 | PyObject *resultobj; | |
12413 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12414 | bool result; | |
12415 | PyObject * obj0 = 0 ; | |
12416 | char *kwnames[] = { | |
12417 | (char *) "self", NULL | |
12418 | }; | |
12419 | ||
12420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12423 | { | |
12424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12425 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12426 | ||
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | { | |
12431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12432 | } | |
12433 | return resultobj; | |
12434 | fail: | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
12439 | static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12440 | PyObject *resultobj; | |
12441 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12442 | bool arg2 = (bool) True ; | |
12443 | PyObject * obj0 = 0 ; | |
12444 | PyObject * obj1 = 0 ; | |
12445 | char *kwnames[] = { | |
12446 | (char *) "self",(char *) "skip", NULL | |
12447 | }; | |
12448 | ||
12449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12452 | if (obj1) { | |
12453 | arg2 = (bool) SWIG_AsBool(obj1); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
12455 | } | |
12456 | { | |
12457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12458 | (arg1)->Skip(arg2); | |
12459 | ||
12460 | wxPyEndAllowThreads(__tstate); | |
12461 | if (PyErr_Occurred()) SWIG_fail; | |
12462 | } | |
12463 | Py_INCREF(Py_None); resultobj = Py_None; | |
12464 | return resultobj; | |
12465 | fail: | |
12466 | return NULL; | |
12467 | } | |
12468 | ||
12469 | ||
12470 | static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12471 | PyObject *resultobj; | |
12472 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12473 | bool result; | |
12474 | PyObject * obj0 = 0 ; | |
12475 | char *kwnames[] = { | |
12476 | (char *) "self", NULL | |
12477 | }; | |
12478 | ||
12479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12482 | { | |
12483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12484 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12485 | ||
12486 | wxPyEndAllowThreads(__tstate); | |
12487 | if (PyErr_Occurred()) SWIG_fail; | |
12488 | } | |
12489 | { | |
12490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12491 | } | |
12492 | return resultobj; | |
12493 | fail: | |
12494 | return NULL; | |
12495 | } | |
12496 | ||
12497 | ||
12498 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12499 | PyObject *resultobj; | |
12500 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12501 | bool result; | |
12502 | PyObject * obj0 = 0 ; | |
12503 | char *kwnames[] = { | |
12504 | (char *) "self", NULL | |
12505 | }; | |
12506 | ||
12507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12510 | { | |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12512 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12513 | ||
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
12517 | { | |
12518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12519 | } | |
12520 | return resultobj; | |
12521 | fail: | |
12522 | return NULL; | |
12523 | } | |
12524 | ||
12525 | ||
12526 | static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12527 | PyObject *resultobj; | |
12528 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12529 | int result; | |
12530 | PyObject * obj0 = 0 ; | |
12531 | char *kwnames[] = { | |
12532 | (char *) "self", NULL | |
12533 | }; | |
12534 | ||
12535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12538 | { | |
12539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12540 | result = (int)(arg1)->StopPropagation(); | |
12541 | ||
12542 | wxPyEndAllowThreads(__tstate); | |
12543 | if (PyErr_Occurred()) SWIG_fail; | |
12544 | } | |
12545 | resultobj = SWIG_FromInt((int)result); | |
12546 | return resultobj; | |
12547 | fail: | |
12548 | return NULL; | |
12549 | } | |
12550 | ||
12551 | ||
12552 | static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12553 | PyObject *resultobj; | |
12554 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12555 | int arg2 ; | |
12556 | PyObject * obj0 = 0 ; | |
12557 | PyObject * obj1 = 0 ; | |
12558 | char *kwnames[] = { | |
12559 | (char *) "self",(char *) "propagationLevel", NULL | |
12560 | }; | |
12561 | ||
12562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12565 | arg2 = (int) SWIG_AsInt(obj1); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | { | |
12568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12569 | (arg1)->ResumePropagation(arg2); | |
12570 | ||
12571 | wxPyEndAllowThreads(__tstate); | |
12572 | if (PyErr_Occurred()) SWIG_fail; | |
12573 | } | |
12574 | Py_INCREF(Py_None); resultobj = Py_None; | |
12575 | return resultobj; | |
12576 | fail: | |
12577 | return NULL; | |
12578 | } | |
12579 | ||
12580 | ||
12581 | static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12582 | PyObject *resultobj; | |
12583 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12584 | wxEvent *result; | |
12585 | PyObject * obj0 = 0 ; | |
12586 | char *kwnames[] = { | |
12587 | (char *) "self", NULL | |
12588 | }; | |
12589 | ||
12590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12593 | { | |
12594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12595 | result = (wxEvent *)(arg1)->Clone(); | |
12596 | ||
12597 | wxPyEndAllowThreads(__tstate); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
12600 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12601 | return resultobj; | |
12602 | fail: | |
12603 | return NULL; | |
12604 | } | |
12605 | ||
12606 | ||
12607 | static PyObject * Event_swigregister(PyObject *self, PyObject *args) { | |
12608 | PyObject *obj; | |
12609 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12610 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12611 | Py_INCREF(obj); | |
12612 | return Py_BuildValue((char *)""); | |
12613 | } | |
12614 | static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12615 | PyObject *resultobj; | |
12616 | wxEvent *arg1 = 0 ; | |
12617 | wxPropagationDisabler *result; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "event", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12625 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12626 | SWIG_fail; | |
12627 | if (arg1 == NULL) { | |
12628 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12629 | SWIG_fail; | |
12630 | } | |
12631 | { | |
12632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12633 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
12634 | ||
12635 | wxPyEndAllowThreads(__tstate); | |
12636 | if (PyErr_Occurred()) SWIG_fail; | |
12637 | } | |
12638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
12639 | return resultobj; | |
12640 | fail: | |
12641 | return NULL; | |
12642 | } | |
12643 | ||
12644 | ||
12645 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12646 | PyObject *resultobj; | |
12647 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
12648 | PyObject * obj0 = 0 ; | |
12649 | char *kwnames[] = { | |
12650 | (char *) "self", NULL | |
12651 | }; | |
12652 | ||
12653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | delete arg1; | |
12659 | ||
12660 | wxPyEndAllowThreads(__tstate); | |
12661 | if (PyErr_Occurred()) SWIG_fail; | |
12662 | } | |
12663 | Py_INCREF(Py_None); resultobj = Py_None; | |
12664 | return resultobj; | |
12665 | fail: | |
12666 | return NULL; | |
12667 | } | |
12668 | ||
12669 | ||
12670 | static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) { | |
12671 | PyObject *obj; | |
12672 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12673 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
12674 | Py_INCREF(obj); | |
12675 | return Py_BuildValue((char *)""); | |
12676 | } | |
12677 | static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12678 | PyObject *resultobj; | |
12679 | wxEvent *arg1 = 0 ; | |
12680 | wxPropagateOnce *result; | |
12681 | PyObject * obj0 = 0 ; | |
12682 | char *kwnames[] = { | |
12683 | (char *) "event", NULL | |
12684 | }; | |
12685 | ||
12686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
12687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12688 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12689 | SWIG_fail; | |
12690 | if (arg1 == NULL) { | |
12691 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12692 | SWIG_fail; | |
12693 | } | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
12702 | return resultobj; | |
12703 | fail: | |
12704 | return NULL; | |
12705 | } | |
12706 | ||
12707 | ||
12708 | static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12709 | PyObject *resultobj; | |
12710 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
12711 | PyObject * obj0 = 0 ; | |
12712 | char *kwnames[] = { | |
12713 | (char *) "self", NULL | |
12714 | }; | |
12715 | ||
12716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
12717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
12718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12719 | { | |
12720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12721 | delete arg1; | |
12722 | ||
12723 | wxPyEndAllowThreads(__tstate); | |
12724 | if (PyErr_Occurred()) SWIG_fail; | |
12725 | } | |
12726 | Py_INCREF(Py_None); resultobj = Py_None; | |
12727 | return resultobj; | |
12728 | fail: | |
12729 | return NULL; | |
12730 | } | |
12731 | ||
12732 | ||
12733 | static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) { | |
12734 | PyObject *obj; | |
12735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12736 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
12737 | Py_INCREF(obj); | |
12738 | return Py_BuildValue((char *)""); | |
12739 | } | |
12740 | static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12741 | PyObject *resultobj; | |
12742 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12743 | int arg2 = (int) 0 ; | |
12744 | wxCommandEvent *result; | |
12745 | PyObject * obj0 = 0 ; | |
12746 | PyObject * obj1 = 0 ; | |
12747 | char *kwnames[] = { | |
12748 | (char *) "commandType",(char *) "winid", NULL | |
12749 | }; | |
12750 | ||
12751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
12752 | if (obj0) { | |
12753 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | if (obj1) { | |
12757 | arg2 = (int) SWIG_AsInt(obj1); | |
12758 | if (PyErr_Occurred()) SWIG_fail; | |
12759 | } | |
12760 | { | |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
12767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
12768 | return resultobj; | |
12769 | fail: | |
12770 | return NULL; | |
12771 | } | |
12772 | ||
12773 | ||
12774 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12775 | PyObject *resultobj; | |
12776 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12777 | int result; | |
12778 | PyObject * obj0 = 0 ; | |
12779 | char *kwnames[] = { | |
12780 | (char *) "self", NULL | |
12781 | }; | |
12782 | ||
12783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12786 | { | |
12787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12788 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
12789 | ||
12790 | wxPyEndAllowThreads(__tstate); | |
12791 | if (PyErr_Occurred()) SWIG_fail; | |
12792 | } | |
12793 | resultobj = SWIG_FromInt((int)result); | |
12794 | return resultobj; | |
12795 | fail: | |
12796 | return NULL; | |
12797 | } | |
12798 | ||
12799 | ||
12800 | static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12801 | PyObject *resultobj; | |
12802 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12803 | wxString *arg2 = 0 ; | |
12804 | bool temp2 = False ; | |
12805 | PyObject * obj0 = 0 ; | |
12806 | PyObject * obj1 = 0 ; | |
12807 | char *kwnames[] = { | |
12808 | (char *) "self",(char *) "s", NULL | |
12809 | }; | |
12810 | ||
12811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
12812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12814 | { | |
12815 | arg2 = wxString_in_helper(obj1); | |
12816 | if (arg2 == NULL) SWIG_fail; | |
12817 | temp2 = True; | |
12818 | } | |
12819 | { | |
12820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12821 | (arg1)->SetString((wxString const &)*arg2); | |
12822 | ||
12823 | wxPyEndAllowThreads(__tstate); | |
12824 | if (PyErr_Occurred()) SWIG_fail; | |
12825 | } | |
12826 | Py_INCREF(Py_None); resultobj = Py_None; | |
12827 | { | |
12828 | if (temp2) | |
12829 | delete arg2; | |
12830 | } | |
12831 | return resultobj; | |
12832 | fail: | |
12833 | { | |
12834 | if (temp2) | |
12835 | delete arg2; | |
12836 | } | |
12837 | return NULL; | |
12838 | } | |
12839 | ||
12840 | ||
12841 | static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12842 | PyObject *resultobj; | |
12843 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12844 | wxString result; | |
12845 | PyObject * obj0 = 0 ; | |
12846 | char *kwnames[] = { | |
12847 | (char *) "self", NULL | |
12848 | }; | |
12849 | ||
12850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
12851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12853 | { | |
12854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12855 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
12856 | ||
12857 | wxPyEndAllowThreads(__tstate); | |
12858 | if (PyErr_Occurred()) SWIG_fail; | |
12859 | } | |
12860 | { | |
12861 | #if wxUSE_UNICODE | |
12862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12863 | #else | |
12864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12865 | #endif | |
12866 | } | |
12867 | return resultobj; | |
12868 | fail: | |
12869 | return NULL; | |
12870 | } | |
12871 | ||
12872 | ||
12873 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12874 | PyObject *resultobj; | |
12875 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12876 | bool result; | |
12877 | PyObject * obj0 = 0 ; | |
12878 | char *kwnames[] = { | |
12879 | (char *) "self", NULL | |
12880 | }; | |
12881 | ||
12882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
12883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12885 | { | |
12886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12887 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
12888 | ||
12889 | wxPyEndAllowThreads(__tstate); | |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
12891 | } | |
12892 | { | |
12893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | return NULL; | |
12898 | } | |
12899 | ||
12900 | ||
12901 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12902 | PyObject *resultobj; | |
12903 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12904 | bool result; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | char *kwnames[] = { | |
12907 | (char *) "self", NULL | |
12908 | }; | |
12909 | ||
12910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
12911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12913 | { | |
12914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12915 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
12916 | ||
12917 | wxPyEndAllowThreads(__tstate); | |
12918 | if (PyErr_Occurred()) SWIG_fail; | |
12919 | } | |
12920 | { | |
12921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12922 | } | |
12923 | return resultobj; | |
12924 | fail: | |
12925 | return NULL; | |
12926 | } | |
12927 | ||
12928 | ||
12929 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12930 | PyObject *resultobj; | |
12931 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12932 | long arg2 ; | |
12933 | PyObject * obj0 = 0 ; | |
12934 | PyObject * obj1 = 0 ; | |
12935 | char *kwnames[] = { | |
12936 | (char *) "self",(char *) "extraLong", NULL | |
12937 | }; | |
12938 | ||
12939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
12940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12942 | arg2 = (long) SWIG_AsLong(obj1); | |
12943 | if (PyErr_Occurred()) SWIG_fail; | |
12944 | { | |
12945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12946 | (arg1)->SetExtraLong(arg2); | |
12947 | ||
12948 | wxPyEndAllowThreads(__tstate); | |
12949 | if (PyErr_Occurred()) SWIG_fail; | |
12950 | } | |
12951 | Py_INCREF(Py_None); resultobj = Py_None; | |
12952 | return resultobj; | |
12953 | fail: | |
12954 | return NULL; | |
12955 | } | |
12956 | ||
12957 | ||
12958 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12959 | PyObject *resultobj; | |
12960 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12961 | long result; | |
12962 | PyObject * obj0 = 0 ; | |
12963 | char *kwnames[] = { | |
12964 | (char *) "self", NULL | |
12965 | }; | |
12966 | ||
12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
12968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12972 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
12973 | ||
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | resultobj = SWIG_FromLong((long)result); | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
12984 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12985 | PyObject *resultobj; | |
12986 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
12987 | int arg2 ; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | PyObject * obj1 = 0 ; | |
12990 | char *kwnames[] = { | |
12991 | (char *) "self",(char *) "i", NULL | |
12992 | }; | |
12993 | ||
12994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
12995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
12996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12997 | arg2 = (int) SWIG_AsInt(obj1); | |
12998 | if (PyErr_Occurred()) SWIG_fail; | |
12999 | { | |
13000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13001 | (arg1)->SetInt(arg2); | |
13002 | ||
13003 | wxPyEndAllowThreads(__tstate); | |
13004 | if (PyErr_Occurred()) SWIG_fail; | |
13005 | } | |
13006 | Py_INCREF(Py_None); resultobj = Py_None; | |
13007 | return resultobj; | |
13008 | fail: | |
13009 | return NULL; | |
13010 | } | |
13011 | ||
13012 | ||
13013 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13014 | PyObject *resultobj; | |
13015 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13016 | long result; | |
13017 | PyObject * obj0 = 0 ; | |
13018 | char *kwnames[] = { | |
13019 | (char *) "self", NULL | |
13020 | }; | |
13021 | ||
13022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13025 | { | |
13026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13027 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13028 | ||
13029 | wxPyEndAllowThreads(__tstate); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | resultobj = SWIG_FromLong((long)result); | |
13033 | return resultobj; | |
13034 | fail: | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
13039 | static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13040 | PyObject *resultobj; | |
13041 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13042 | wxEvent *result; | |
13043 | PyObject * obj0 = 0 ; | |
13044 | char *kwnames[] = { | |
13045 | (char *) "self", NULL | |
13046 | }; | |
13047 | ||
13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13051 | { | |
13052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13053 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13054 | ||
13055 | wxPyEndAllowThreads(__tstate); | |
13056 | if (PyErr_Occurred()) SWIG_fail; | |
13057 | } | |
13058 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13059 | return resultobj; | |
13060 | fail: | |
13061 | return NULL; | |
13062 | } | |
13063 | ||
13064 | ||
13065 | static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) { | |
13066 | PyObject *obj; | |
13067 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13068 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13069 | Py_INCREF(obj); | |
13070 | return Py_BuildValue((char *)""); | |
13071 | } | |
13072 | static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13073 | PyObject *resultobj; | |
13074 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13075 | int arg2 = (int) 0 ; | |
13076 | wxNotifyEvent *result; | |
13077 | PyObject * obj0 = 0 ; | |
13078 | PyObject * obj1 = 0 ; | |
13079 | char *kwnames[] = { | |
13080 | (char *) "commandType",(char *) "winid", NULL | |
13081 | }; | |
13082 | ||
13083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13084 | if (obj0) { | |
13085 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13086 | if (PyErr_Occurred()) SWIG_fail; | |
13087 | } | |
13088 | if (obj1) { | |
13089 | arg2 = (int) SWIG_AsInt(obj1); | |
13090 | if (PyErr_Occurred()) SWIG_fail; | |
13091 | } | |
13092 | { | |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
13106 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13107 | PyObject *resultobj; | |
13108 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13109 | PyObject * obj0 = 0 ; | |
13110 | char *kwnames[] = { | |
13111 | (char *) "self", NULL | |
13112 | }; | |
13113 | ||
13114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13117 | { | |
13118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13119 | (arg1)->Veto(); | |
13120 | ||
13121 | wxPyEndAllowThreads(__tstate); | |
13122 | if (PyErr_Occurred()) SWIG_fail; | |
13123 | } | |
13124 | Py_INCREF(Py_None); resultobj = Py_None; | |
13125 | return resultobj; | |
13126 | fail: | |
13127 | return NULL; | |
13128 | } | |
13129 | ||
13130 | ||
13131 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13132 | PyObject *resultobj; | |
13133 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13134 | PyObject * obj0 = 0 ; | |
13135 | char *kwnames[] = { | |
13136 | (char *) "self", NULL | |
13137 | }; | |
13138 | ||
13139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13142 | { | |
13143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13144 | (arg1)->Allow(); | |
13145 | ||
13146 | wxPyEndAllowThreads(__tstate); | |
13147 | if (PyErr_Occurred()) SWIG_fail; | |
13148 | } | |
13149 | Py_INCREF(Py_None); resultobj = Py_None; | |
13150 | return resultobj; | |
13151 | fail: | |
13152 | return NULL; | |
13153 | } | |
13154 | ||
13155 | ||
13156 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13157 | PyObject *resultobj; | |
13158 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13159 | bool result; | |
13160 | PyObject * obj0 = 0 ; | |
13161 | char *kwnames[] = { | |
13162 | (char *) "self", NULL | |
13163 | }; | |
13164 | ||
13165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13168 | { | |
13169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13170 | result = (bool)(arg1)->IsAllowed(); | |
13171 | ||
13172 | wxPyEndAllowThreads(__tstate); | |
13173 | if (PyErr_Occurred()) SWIG_fail; | |
13174 | } | |
13175 | { | |
13176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13177 | } | |
13178 | return resultobj; | |
13179 | fail: | |
13180 | return NULL; | |
13181 | } | |
13182 | ||
13183 | ||
13184 | static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) { | |
13185 | PyObject *obj; | |
13186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13187 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13188 | Py_INCREF(obj); | |
13189 | return Py_BuildValue((char *)""); | |
13190 | } | |
13191 | static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13192 | PyObject *resultobj; | |
13193 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13194 | int arg2 = (int) 0 ; | |
13195 | int arg3 = (int) 0 ; | |
13196 | int arg4 = (int) 0 ; | |
13197 | wxScrollEvent *result; | |
13198 | PyObject * obj0 = 0 ; | |
13199 | PyObject * obj1 = 0 ; | |
13200 | PyObject * obj2 = 0 ; | |
13201 | PyObject * obj3 = 0 ; | |
13202 | char *kwnames[] = { | |
13203 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13204 | }; | |
13205 | ||
13206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13207 | if (obj0) { | |
13208 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13209 | if (PyErr_Occurred()) SWIG_fail; | |
13210 | } | |
13211 | if (obj1) { | |
13212 | arg2 = (int) SWIG_AsInt(obj1); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | if (obj2) { | |
13216 | arg3 = (int) SWIG_AsInt(obj2); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | if (obj3) { | |
13220 | arg4 = (int) SWIG_AsInt(obj3); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
13222 | } | |
13223 | { | |
13224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13225 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13226 | ||
13227 | wxPyEndAllowThreads(__tstate); | |
13228 | if (PyErr_Occurred()) SWIG_fail; | |
13229 | } | |
13230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13231 | return resultobj; | |
13232 | fail: | |
13233 | return NULL; | |
13234 | } | |
13235 | ||
13236 | ||
13237 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13238 | PyObject *resultobj; | |
13239 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13240 | int result; | |
13241 | PyObject * obj0 = 0 ; | |
13242 | char *kwnames[] = { | |
13243 | (char *) "self", NULL | |
13244 | }; | |
13245 | ||
13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13249 | { | |
13250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13251 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13252 | ||
13253 | wxPyEndAllowThreads(__tstate); | |
13254 | if (PyErr_Occurred()) SWIG_fail; | |
13255 | } | |
13256 | resultobj = SWIG_FromInt((int)result); | |
13257 | return resultobj; | |
13258 | fail: | |
13259 | return NULL; | |
13260 | } | |
13261 | ||
13262 | ||
13263 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13264 | PyObject *resultobj; | |
13265 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13266 | int result; | |
13267 | PyObject * obj0 = 0 ; | |
13268 | char *kwnames[] = { | |
13269 | (char *) "self", NULL | |
13270 | }; | |
13271 | ||
13272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13275 | { | |
13276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13277 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13278 | ||
13279 | wxPyEndAllowThreads(__tstate); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | resultobj = SWIG_FromInt((int)result); | |
13283 | return resultobj; | |
13284 | fail: | |
13285 | return NULL; | |
13286 | } | |
13287 | ||
13288 | ||
13289 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13290 | PyObject *resultobj; | |
13291 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13292 | int arg2 ; | |
13293 | PyObject * obj0 = 0 ; | |
13294 | PyObject * obj1 = 0 ; | |
13295 | char *kwnames[] = { | |
13296 | (char *) "self",(char *) "orient", NULL | |
13297 | }; | |
13298 | ||
13299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13302 | arg2 = (int) SWIG_AsInt(obj1); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | { | |
13305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13306 | (arg1)->SetOrientation(arg2); | |
13307 | ||
13308 | wxPyEndAllowThreads(__tstate); | |
13309 | if (PyErr_Occurred()) SWIG_fail; | |
13310 | } | |
13311 | Py_INCREF(Py_None); resultobj = Py_None; | |
13312 | return resultobj; | |
13313 | fail: | |
13314 | return NULL; | |
13315 | } | |
13316 | ||
13317 | ||
13318 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13319 | PyObject *resultobj; | |
13320 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13321 | int arg2 ; | |
13322 | PyObject * obj0 = 0 ; | |
13323 | PyObject * obj1 = 0 ; | |
13324 | char *kwnames[] = { | |
13325 | (char *) "self",(char *) "pos", NULL | |
13326 | }; | |
13327 | ||
13328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13331 | arg2 = (int) SWIG_AsInt(obj1); | |
13332 | if (PyErr_Occurred()) SWIG_fail; | |
13333 | { | |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13335 | (arg1)->SetPosition(arg2); | |
13336 | ||
13337 | wxPyEndAllowThreads(__tstate); | |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | Py_INCREF(Py_None); resultobj = Py_None; | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) { | |
13348 | PyObject *obj; | |
13349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13350 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13351 | Py_INCREF(obj); | |
13352 | return Py_BuildValue((char *)""); | |
13353 | } | |
13354 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13355 | PyObject *resultobj; | |
13356 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13357 | int arg2 = (int) 0 ; | |
13358 | int arg3 = (int) 0 ; | |
13359 | wxScrollWinEvent *result; | |
13360 | PyObject * obj0 = 0 ; | |
13361 | PyObject * obj1 = 0 ; | |
13362 | PyObject * obj2 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13368 | if (obj0) { | |
13369 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13370 | if (PyErr_Occurred()) SWIG_fail; | |
13371 | } | |
13372 | if (obj1) { | |
13373 | arg2 = (int) SWIG_AsInt(obj1); | |
13374 | if (PyErr_Occurred()) SWIG_fail; | |
13375 | } | |
13376 | if (obj2) { | |
13377 | arg3 = (int) SWIG_AsInt(obj2); | |
13378 | if (PyErr_Occurred()) SWIG_fail; | |
13379 | } | |
13380 | { | |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
13387 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13397 | int result; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | char *kwnames[] = { | |
13400 | (char *) "self", NULL | |
13401 | }; | |
13402 | ||
13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13406 | { | |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | resultobj = SWIG_FromInt((int)result); | |
13414 | return resultobj; | |
13415 | fail: | |
13416 | return NULL; | |
13417 | } | |
13418 | ||
13419 | ||
13420 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13421 | PyObject *resultobj; | |
13422 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13423 | int result; | |
13424 | PyObject * obj0 = 0 ; | |
13425 | char *kwnames[] = { | |
13426 | (char *) "self", NULL | |
13427 | }; | |
13428 | ||
13429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13432 | { | |
13433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13434 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13435 | ||
13436 | wxPyEndAllowThreads(__tstate); | |
13437 | if (PyErr_Occurred()) SWIG_fail; | |
13438 | } | |
13439 | resultobj = SWIG_FromInt((int)result); | |
13440 | return resultobj; | |
13441 | fail: | |
13442 | return NULL; | |
13443 | } | |
13444 | ||
13445 | ||
13446 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13447 | PyObject *resultobj; | |
13448 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13449 | int arg2 ; | |
13450 | PyObject * obj0 = 0 ; | |
13451 | PyObject * obj1 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "self",(char *) "orient", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13459 | arg2 = (int) SWIG_AsInt(obj1); | |
13460 | if (PyErr_Occurred()) SWIG_fail; | |
13461 | { | |
13462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13463 | (arg1)->SetOrientation(arg2); | |
13464 | ||
13465 | wxPyEndAllowThreads(__tstate); | |
13466 | if (PyErr_Occurred()) SWIG_fail; | |
13467 | } | |
13468 | Py_INCREF(Py_None); resultobj = Py_None; | |
13469 | return resultobj; | |
13470 | fail: | |
13471 | return NULL; | |
13472 | } | |
13473 | ||
13474 | ||
13475 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13476 | PyObject *resultobj; | |
13477 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13478 | int arg2 ; | |
13479 | PyObject * obj0 = 0 ; | |
13480 | PyObject * obj1 = 0 ; | |
13481 | char *kwnames[] = { | |
13482 | (char *) "self",(char *) "pos", NULL | |
13483 | }; | |
13484 | ||
13485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13488 | arg2 = (int) SWIG_AsInt(obj1); | |
13489 | if (PyErr_Occurred()) SWIG_fail; | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | (arg1)->SetPosition(arg2); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | Py_INCREF(Py_None); resultobj = Py_None; | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
13504 | static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) { | |
13505 | PyObject *obj; | |
13506 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13507 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13508 | Py_INCREF(obj); | |
13509 | return Py_BuildValue((char *)""); | |
13510 | } | |
13511 | static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13512 | PyObject *resultobj; | |
13513 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13514 | wxMouseEvent *result; | |
13515 | PyObject * obj0 = 0 ; | |
13516 | char *kwnames[] = { | |
13517 | (char *) "mouseType", NULL | |
13518 | }; | |
13519 | ||
13520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13521 | if (obj0) { | |
13522 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
13523 | if (PyErr_Occurred()) SWIG_fail; | |
13524 | } | |
13525 | { | |
13526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13527 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13528 | ||
13529 | wxPyEndAllowThreads(__tstate); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
13531 | } | |
13532 | { | |
13533 | resultobj = wxPyMake_wxObject(result); | |
13534 | } | |
13535 | return resultobj; | |
13536 | fail: | |
13537 | return NULL; | |
13538 | } | |
13539 | ||
13540 | ||
13541 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13542 | PyObject *resultobj; | |
13543 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13544 | bool result; | |
13545 | PyObject * obj0 = 0 ; | |
13546 | char *kwnames[] = { | |
13547 | (char *) "self", NULL | |
13548 | }; | |
13549 | ||
13550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13553 | { | |
13554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13555 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13556 | ||
13557 | wxPyEndAllowThreads(__tstate); | |
13558 | if (PyErr_Occurred()) SWIG_fail; | |
13559 | } | |
13560 | { | |
13561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13562 | } | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj; | |
13571 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13572 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13573 | bool result; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | PyObject * obj1 = 0 ; | |
13576 | char *kwnames[] = { | |
13577 | (char *) "self",(char *) "but", NULL | |
13578 | }; | |
13579 | ||
13580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13583 | if (obj1) { | |
13584 | arg2 = (int) SWIG_AsInt(obj1); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
13587 | { | |
13588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13589 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13590 | ||
13591 | wxPyEndAllowThreads(__tstate); | |
13592 | if (PyErr_Occurred()) SWIG_fail; | |
13593 | } | |
13594 | { | |
13595 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13596 | } | |
13597 | return resultobj; | |
13598 | fail: | |
13599 | return NULL; | |
13600 | } | |
13601 | ||
13602 | ||
13603 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13604 | PyObject *resultobj; | |
13605 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13606 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13607 | bool result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | PyObject * obj1 = 0 ; | |
13610 | char *kwnames[] = { | |
13611 | (char *) "self",(char *) "but", NULL | |
13612 | }; | |
13613 | ||
13614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13617 | if (obj1) { | |
13618 | arg2 = (int) SWIG_AsInt(obj1); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
13621 | { | |
13622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13623 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13624 | ||
13625 | wxPyEndAllowThreads(__tstate); | |
13626 | if (PyErr_Occurred()) SWIG_fail; | |
13627 | } | |
13628 | { | |
13629 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13630 | } | |
13631 | return resultobj; | |
13632 | fail: | |
13633 | return NULL; | |
13634 | } | |
13635 | ||
13636 | ||
13637 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13638 | PyObject *resultobj; | |
13639 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13640 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13641 | bool result; | |
13642 | PyObject * obj0 = 0 ; | |
13643 | PyObject * obj1 = 0 ; | |
13644 | char *kwnames[] = { | |
13645 | (char *) "self",(char *) "but", NULL | |
13646 | }; | |
13647 | ||
13648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
13649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13651 | if (obj1) { | |
13652 | arg2 = (int) SWIG_AsInt(obj1); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
13655 | { | |
13656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13657 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
13658 | ||
13659 | wxPyEndAllowThreads(__tstate); | |
13660 | if (PyErr_Occurred()) SWIG_fail; | |
13661 | } | |
13662 | { | |
13663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13664 | } | |
13665 | return resultobj; | |
13666 | fail: | |
13667 | return NULL; | |
13668 | } | |
13669 | ||
13670 | ||
13671 | static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13672 | PyObject *resultobj; | |
13673 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13674 | int arg2 ; | |
13675 | bool result; | |
13676 | PyObject * obj0 = 0 ; | |
13677 | PyObject * obj1 = 0 ; | |
13678 | char *kwnames[] = { | |
13679 | (char *) "self",(char *) "but", NULL | |
13680 | }; | |
13681 | ||
13682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
13683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13685 | arg2 = (int) SWIG_AsInt(obj1); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | { | |
13688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13689 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
13690 | ||
13691 | wxPyEndAllowThreads(__tstate); | |
13692 | if (PyErr_Occurred()) SWIG_fail; | |
13693 | } | |
13694 | { | |
13695 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13696 | } | |
13697 | return resultobj; | |
13698 | fail: | |
13699 | return NULL; | |
13700 | } | |
13701 | ||
13702 | ||
13703 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13704 | PyObject *resultobj; | |
13705 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13706 | int arg2 ; | |
13707 | bool result; | |
13708 | PyObject * obj0 = 0 ; | |
13709 | PyObject * obj1 = 0 ; | |
13710 | char *kwnames[] = { | |
13711 | (char *) "self",(char *) "but", NULL | |
13712 | }; | |
13713 | ||
13714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
13715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13717 | arg2 = (int) SWIG_AsInt(obj1); | |
13718 | if (PyErr_Occurred()) SWIG_fail; | |
13719 | { | |
13720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13721 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
13722 | ||
13723 | wxPyEndAllowThreads(__tstate); | |
13724 | if (PyErr_Occurred()) SWIG_fail; | |
13725 | } | |
13726 | { | |
13727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13728 | } | |
13729 | return resultobj; | |
13730 | fail: | |
13731 | return NULL; | |
13732 | } | |
13733 | ||
13734 | ||
13735 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13736 | PyObject *resultobj; | |
13737 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13738 | int result; | |
13739 | PyObject * obj0 = 0 ; | |
13740 | char *kwnames[] = { | |
13741 | (char *) "self", NULL | |
13742 | }; | |
13743 | ||
13744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
13745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13747 | { | |
13748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13749 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
13750 | ||
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
13754 | resultobj = SWIG_FromInt((int)result); | |
13755 | return resultobj; | |
13756 | fail: | |
13757 | return NULL; | |
13758 | } | |
13759 | ||
13760 | ||
13761 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13762 | PyObject *resultobj; | |
13763 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13764 | bool result; | |
13765 | PyObject * obj0 = 0 ; | |
13766 | char *kwnames[] = { | |
13767 | (char *) "self", NULL | |
13768 | }; | |
13769 | ||
13770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
13771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13773 | { | |
13774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13775 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
13776 | ||
13777 | wxPyEndAllowThreads(__tstate); | |
13778 | if (PyErr_Occurred()) SWIG_fail; | |
13779 | } | |
13780 | { | |
13781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13782 | } | |
13783 | return resultobj; | |
13784 | fail: | |
13785 | return NULL; | |
13786 | } | |
13787 | ||
13788 | ||
13789 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13790 | PyObject *resultobj; | |
13791 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13792 | bool result; | |
13793 | PyObject * obj0 = 0 ; | |
13794 | char *kwnames[] = { | |
13795 | (char *) "self", NULL | |
13796 | }; | |
13797 | ||
13798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
13799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13801 | { | |
13802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13803 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
13804 | ||
13805 | wxPyEndAllowThreads(__tstate); | |
13806 | if (PyErr_Occurred()) SWIG_fail; | |
13807 | } | |
13808 | { | |
13809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13810 | } | |
13811 | return resultobj; | |
13812 | fail: | |
13813 | return NULL; | |
13814 | } | |
13815 | ||
13816 | ||
13817 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13818 | PyObject *resultobj; | |
13819 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13820 | bool result; | |
13821 | PyObject * obj0 = 0 ; | |
13822 | char *kwnames[] = { | |
13823 | (char *) "self", NULL | |
13824 | }; | |
13825 | ||
13826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
13827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13829 | { | |
13830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13831 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
13832 | ||
13833 | wxPyEndAllowThreads(__tstate); | |
13834 | if (PyErr_Occurred()) SWIG_fail; | |
13835 | } | |
13836 | { | |
13837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13838 | } | |
13839 | return resultobj; | |
13840 | fail: | |
13841 | return NULL; | |
13842 | } | |
13843 | ||
13844 | ||
13845 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13846 | PyObject *resultobj; | |
13847 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13848 | bool result; | |
13849 | PyObject * obj0 = 0 ; | |
13850 | char *kwnames[] = { | |
13851 | (char *) "self", NULL | |
13852 | }; | |
13853 | ||
13854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
13855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13857 | { | |
13858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13859 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
13860 | ||
13861 | wxPyEndAllowThreads(__tstate); | |
13862 | if (PyErr_Occurred()) SWIG_fail; | |
13863 | } | |
13864 | { | |
13865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13866 | } | |
13867 | return resultobj; | |
13868 | fail: | |
13869 | return NULL; | |
13870 | } | |
13871 | ||
13872 | ||
13873 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13874 | PyObject *resultobj; | |
13875 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13876 | bool result; | |
13877 | PyObject * obj0 = 0 ; | |
13878 | char *kwnames[] = { | |
13879 | (char *) "self", NULL | |
13880 | }; | |
13881 | ||
13882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
13883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13885 | { | |
13886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13887 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
13888 | ||
13889 | wxPyEndAllowThreads(__tstate); | |
13890 | if (PyErr_Occurred()) SWIG_fail; | |
13891 | } | |
13892 | { | |
13893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13894 | } | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13902 | PyObject *resultobj; | |
13903 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13904 | bool result; | |
13905 | PyObject * obj0 = 0 ; | |
13906 | char *kwnames[] = { | |
13907 | (char *) "self", NULL | |
13908 | }; | |
13909 | ||
13910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
13911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13913 | { | |
13914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13915 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
13916 | ||
13917 | wxPyEndAllowThreads(__tstate); | |
13918 | if (PyErr_Occurred()) SWIG_fail; | |
13919 | } | |
13920 | { | |
13921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13922 | } | |
13923 | return resultobj; | |
13924 | fail: | |
13925 | return NULL; | |
13926 | } | |
13927 | ||
13928 | ||
13929 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13930 | PyObject *resultobj; | |
13931 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13932 | bool result; | |
13933 | PyObject * obj0 = 0 ; | |
13934 | char *kwnames[] = { | |
13935 | (char *) "self", NULL | |
13936 | }; | |
13937 | ||
13938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
13939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13941 | { | |
13942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13943 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
13944 | ||
13945 | wxPyEndAllowThreads(__tstate); | |
13946 | if (PyErr_Occurred()) SWIG_fail; | |
13947 | } | |
13948 | { | |
13949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13950 | } | |
13951 | return resultobj; | |
13952 | fail: | |
13953 | return NULL; | |
13954 | } | |
13955 | ||
13956 | ||
13957 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13958 | PyObject *resultobj; | |
13959 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13960 | bool result; | |
13961 | PyObject * obj0 = 0 ; | |
13962 | char *kwnames[] = { | |
13963 | (char *) "self", NULL | |
13964 | }; | |
13965 | ||
13966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
13967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13969 | { | |
13970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13971 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
13972 | ||
13973 | wxPyEndAllowThreads(__tstate); | |
13974 | if (PyErr_Occurred()) SWIG_fail; | |
13975 | } | |
13976 | { | |
13977 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13978 | } | |
13979 | return resultobj; | |
13980 | fail: | |
13981 | return NULL; | |
13982 | } | |
13983 | ||
13984 | ||
13985 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13986 | PyObject *resultobj; | |
13987 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13988 | bool result; | |
13989 | PyObject * obj0 = 0 ; | |
13990 | char *kwnames[] = { | |
13991 | (char *) "self", NULL | |
13992 | }; | |
13993 | ||
13994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
13995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13997 | { | |
13998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13999 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14000 | ||
14001 | wxPyEndAllowThreads(__tstate); | |
14002 | if (PyErr_Occurred()) SWIG_fail; | |
14003 | } | |
14004 | { | |
14005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14006 | } | |
14007 | return resultobj; | |
14008 | fail: | |
14009 | return NULL; | |
14010 | } | |
14011 | ||
14012 | ||
14013 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14014 | PyObject *resultobj; | |
14015 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14016 | bool result; | |
14017 | PyObject * obj0 = 0 ; | |
14018 | char *kwnames[] = { | |
14019 | (char *) "self", NULL | |
14020 | }; | |
14021 | ||
14022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14025 | { | |
14026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14027 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14028 | ||
14029 | wxPyEndAllowThreads(__tstate); | |
14030 | if (PyErr_Occurred()) SWIG_fail; | |
14031 | } | |
14032 | { | |
14033 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14034 | } | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14042 | PyObject *resultobj; | |
14043 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14044 | bool result; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | char *kwnames[] = { | |
14047 | (char *) "self", NULL | |
14048 | }; | |
14049 | ||
14050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14053 | { | |
14054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14055 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14056 | ||
14057 | wxPyEndAllowThreads(__tstate); | |
14058 | if (PyErr_Occurred()) SWIG_fail; | |
14059 | } | |
14060 | { | |
14061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14062 | } | |
14063 | return resultobj; | |
14064 | fail: | |
14065 | return NULL; | |
14066 | } | |
14067 | ||
14068 | ||
14069 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14070 | PyObject *resultobj; | |
14071 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14072 | bool result; | |
14073 | PyObject * obj0 = 0 ; | |
14074 | char *kwnames[] = { | |
14075 | (char *) "self", NULL | |
14076 | }; | |
14077 | ||
14078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14081 | { | |
14082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14083 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14084 | ||
14085 | wxPyEndAllowThreads(__tstate); | |
14086 | if (PyErr_Occurred()) SWIG_fail; | |
14087 | } | |
14088 | { | |
14089 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14090 | } | |
14091 | return resultobj; | |
14092 | fail: | |
14093 | return NULL; | |
14094 | } | |
14095 | ||
14096 | ||
14097 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14098 | PyObject *resultobj; | |
14099 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14100 | bool result; | |
14101 | PyObject * obj0 = 0 ; | |
14102 | char *kwnames[] = { | |
14103 | (char *) "self", NULL | |
14104 | }; | |
14105 | ||
14106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14109 | { | |
14110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14111 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14112 | ||
14113 | wxPyEndAllowThreads(__tstate); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
14115 | } | |
14116 | { | |
14117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14118 | } | |
14119 | return resultobj; | |
14120 | fail: | |
14121 | return NULL; | |
14122 | } | |
14123 | ||
14124 | ||
14125 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14126 | PyObject *resultobj; | |
14127 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14128 | bool result; | |
14129 | PyObject * obj0 = 0 ; | |
14130 | char *kwnames[] = { | |
14131 | (char *) "self", NULL | |
14132 | }; | |
14133 | ||
14134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14137 | { | |
14138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14139 | result = (bool)(arg1)->LeftIsDown(); | |
14140 | ||
14141 | wxPyEndAllowThreads(__tstate); | |
14142 | if (PyErr_Occurred()) SWIG_fail; | |
14143 | } | |
14144 | { | |
14145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14146 | } | |
14147 | return resultobj; | |
14148 | fail: | |
14149 | return NULL; | |
14150 | } | |
14151 | ||
14152 | ||
14153 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14154 | PyObject *resultobj; | |
14155 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14156 | bool result; | |
14157 | PyObject * obj0 = 0 ; | |
14158 | char *kwnames[] = { | |
14159 | (char *) "self", NULL | |
14160 | }; | |
14161 | ||
14162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14165 | { | |
14166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14167 | result = (bool)(arg1)->MiddleIsDown(); | |
14168 | ||
14169 | wxPyEndAllowThreads(__tstate); | |
14170 | if (PyErr_Occurred()) SWIG_fail; | |
14171 | } | |
14172 | { | |
14173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14174 | } | |
14175 | return resultobj; | |
14176 | fail: | |
14177 | return NULL; | |
14178 | } | |
14179 | ||
14180 | ||
14181 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14182 | PyObject *resultobj; | |
14183 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14184 | bool result; | |
14185 | PyObject * obj0 = 0 ; | |
14186 | char *kwnames[] = { | |
14187 | (char *) "self", NULL | |
14188 | }; | |
14189 | ||
14190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14193 | { | |
14194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14195 | result = (bool)(arg1)->RightIsDown(); | |
14196 | ||
14197 | wxPyEndAllowThreads(__tstate); | |
14198 | if (PyErr_Occurred()) SWIG_fail; | |
14199 | } | |
14200 | { | |
14201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14202 | } | |
14203 | return resultobj; | |
14204 | fail: | |
14205 | return NULL; | |
14206 | } | |
14207 | ||
14208 | ||
14209 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14210 | PyObject *resultobj; | |
14211 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14212 | bool result; | |
14213 | PyObject * obj0 = 0 ; | |
14214 | char *kwnames[] = { | |
14215 | (char *) "self", NULL | |
14216 | }; | |
14217 | ||
14218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14221 | { | |
14222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14223 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14224 | ||
14225 | wxPyEndAllowThreads(__tstate); | |
14226 | if (PyErr_Occurred()) SWIG_fail; | |
14227 | } | |
14228 | { | |
14229 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14230 | } | |
14231 | return resultobj; | |
14232 | fail: | |
14233 | return NULL; | |
14234 | } | |
14235 | ||
14236 | ||
14237 | static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14238 | PyObject *resultobj; | |
14239 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14240 | bool result; | |
14241 | PyObject * obj0 = 0 ; | |
14242 | char *kwnames[] = { | |
14243 | (char *) "self", NULL | |
14244 | }; | |
14245 | ||
14246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14249 | { | |
14250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14251 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14252 | ||
14253 | wxPyEndAllowThreads(__tstate); | |
14254 | if (PyErr_Occurred()) SWIG_fail; | |
14255 | } | |
14256 | { | |
14257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14258 | } | |
14259 | return resultobj; | |
14260 | fail: | |
14261 | return NULL; | |
14262 | } | |
14263 | ||
14264 | ||
14265 | static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14266 | PyObject *resultobj; | |
14267 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14268 | bool result; | |
14269 | PyObject * obj0 = 0 ; | |
14270 | char *kwnames[] = { | |
14271 | (char *) "self", NULL | |
14272 | }; | |
14273 | ||
14274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14277 | { | |
14278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14279 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14280 | ||
14281 | wxPyEndAllowThreads(__tstate); | |
14282 | if (PyErr_Occurred()) SWIG_fail; | |
14283 | } | |
14284 | { | |
14285 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14286 | } | |
14287 | return resultobj; | |
14288 | fail: | |
14289 | return NULL; | |
14290 | } | |
14291 | ||
14292 | ||
14293 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14294 | PyObject *resultobj; | |
14295 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14296 | bool result; | |
14297 | PyObject * obj0 = 0 ; | |
14298 | char *kwnames[] = { | |
14299 | (char *) "self", NULL | |
14300 | }; | |
14301 | ||
14302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14305 | { | |
14306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14307 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14308 | ||
14309 | wxPyEndAllowThreads(__tstate); | |
14310 | if (PyErr_Occurred()) SWIG_fail; | |
14311 | } | |
14312 | { | |
14313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14314 | } | |
14315 | return resultobj; | |
14316 | fail: | |
14317 | return NULL; | |
14318 | } | |
14319 | ||
14320 | ||
14321 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14322 | PyObject *resultobj; | |
14323 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14324 | wxPoint result; | |
14325 | PyObject * obj0 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14333 | { | |
14334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14335 | result = (arg1)->GetPosition(); | |
14336 | ||
14337 | wxPyEndAllowThreads(__tstate); | |
14338 | if (PyErr_Occurred()) SWIG_fail; | |
14339 | } | |
14340 | { | |
14341 | wxPoint * resultptr; | |
14342 | resultptr = new wxPoint((wxPoint &) result); | |
14343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14344 | } | |
14345 | return resultobj; | |
14346 | fail: | |
14347 | return NULL; | |
14348 | } | |
14349 | ||
14350 | ||
14351 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14352 | PyObject *resultobj; | |
14353 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14354 | long *arg2 = (long *) 0 ; | |
14355 | long *arg3 = (long *) 0 ; | |
14356 | long temp2 ; | |
14357 | long temp3 ; | |
14358 | PyObject * obj0 = 0 ; | |
14359 | char *kwnames[] = { | |
14360 | (char *) "self", NULL | |
14361 | }; | |
14362 | ||
14363 | arg2 = &temp2; | |
14364 | arg3 = &temp3; | |
14365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
14366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | (arg1)->GetPosition(arg2,arg3); | |
14371 | ||
14372 | wxPyEndAllowThreads(__tstate); | |
14373 | if (PyErr_Occurred()) SWIG_fail; | |
14374 | } | |
14375 | Py_INCREF(Py_None); resultobj = Py_None; | |
14376 | { | |
14377 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
14378 | resultobj = t_output_helper(resultobj,o); | |
14379 | } | |
14380 | { | |
14381 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14382 | resultobj = t_output_helper(resultobj,o); | |
14383 | } | |
14384 | return resultobj; | |
14385 | fail: | |
14386 | return NULL; | |
14387 | } | |
14388 | ||
14389 | ||
14390 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14391 | PyObject *resultobj; | |
14392 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14393 | wxDC *arg2 = 0 ; | |
14394 | wxPoint result; | |
14395 | PyObject * obj0 = 0 ; | |
14396 | PyObject * obj1 = 0 ; | |
14397 | char *kwnames[] = { | |
14398 | (char *) "self",(char *) "dc", NULL | |
14399 | }; | |
14400 | ||
14401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14406 | SWIG_fail; | |
14407 | if (arg2 == NULL) { | |
14408 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14409 | SWIG_fail; | |
14410 | } | |
14411 | { | |
14412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14413 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14414 | ||
14415 | wxPyEndAllowThreads(__tstate); | |
14416 | if (PyErr_Occurred()) SWIG_fail; | |
14417 | } | |
14418 | { | |
14419 | wxPoint * resultptr; | |
14420 | resultptr = new wxPoint((wxPoint &) result); | |
14421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14422 | } | |
14423 | return resultobj; | |
14424 | fail: | |
14425 | return NULL; | |
14426 | } | |
14427 | ||
14428 | ||
14429 | static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14430 | PyObject *resultobj; | |
14431 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14432 | int result; | |
14433 | PyObject * obj0 = 0 ; | |
14434 | char *kwnames[] = { | |
14435 | (char *) "self", NULL | |
14436 | }; | |
14437 | ||
14438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14441 | { | |
14442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14443 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14444 | ||
14445 | wxPyEndAllowThreads(__tstate); | |
14446 | if (PyErr_Occurred()) SWIG_fail; | |
14447 | } | |
14448 | resultobj = SWIG_FromInt((int)result); | |
14449 | return resultobj; | |
14450 | fail: | |
14451 | return NULL; | |
14452 | } | |
14453 | ||
14454 | ||
14455 | static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14456 | PyObject *resultobj; | |
14457 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14458 | int result; | |
14459 | PyObject * obj0 = 0 ; | |
14460 | char *kwnames[] = { | |
14461 | (char *) "self", NULL | |
14462 | }; | |
14463 | ||
14464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14467 | { | |
14468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14469 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14470 | ||
14471 | wxPyEndAllowThreads(__tstate); | |
14472 | if (PyErr_Occurred()) SWIG_fail; | |
14473 | } | |
14474 | resultobj = SWIG_FromInt((int)result); | |
14475 | return resultobj; | |
14476 | fail: | |
14477 | return NULL; | |
14478 | } | |
14479 | ||
14480 | ||
14481 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14482 | PyObject *resultobj; | |
14483 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14484 | int result; | |
14485 | PyObject * obj0 = 0 ; | |
14486 | char *kwnames[] = { | |
14487 | (char *) "self", NULL | |
14488 | }; | |
14489 | ||
14490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14493 | { | |
14494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14495 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14496 | ||
14497 | wxPyEndAllowThreads(__tstate); | |
14498 | if (PyErr_Occurred()) SWIG_fail; | |
14499 | } | |
14500 | resultobj = SWIG_FromInt((int)result); | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14510 | int result; | |
14511 | PyObject * obj0 = 0 ; | |
14512 | char *kwnames[] = { | |
14513 | (char *) "self", NULL | |
14514 | }; | |
14515 | ||
14516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14522 | ||
14523 | wxPyEndAllowThreads(__tstate); | |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | resultobj = SWIG_FromInt((int)result); | |
14527 | return resultobj; | |
14528 | fail: | |
14529 | return NULL; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14534 | PyObject *resultobj; | |
14535 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14536 | int result; | |
14537 | PyObject * obj0 = 0 ; | |
14538 | char *kwnames[] = { | |
14539 | (char *) "self", NULL | |
14540 | }; | |
14541 | ||
14542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14545 | { | |
14546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14547 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14548 | ||
14549 | wxPyEndAllowThreads(__tstate); | |
14550 | if (PyErr_Occurred()) SWIG_fail; | |
14551 | } | |
14552 | resultobj = SWIG_FromInt((int)result); | |
14553 | return resultobj; | |
14554 | fail: | |
14555 | return NULL; | |
14556 | } | |
14557 | ||
14558 | ||
14559 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14560 | PyObject *resultobj; | |
14561 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14562 | bool result; | |
14563 | PyObject * obj0 = 0 ; | |
14564 | char *kwnames[] = { | |
14565 | (char *) "self", NULL | |
14566 | }; | |
14567 | ||
14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14571 | { | |
14572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14573 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14574 | ||
14575 | wxPyEndAllowThreads(__tstate); | |
14576 | if (PyErr_Occurred()) SWIG_fail; | |
14577 | } | |
14578 | { | |
14579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14580 | } | |
14581 | return resultobj; | |
14582 | fail: | |
14583 | return NULL; | |
14584 | } | |
14585 | ||
14586 | ||
14587 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14588 | PyObject *resultobj; | |
14589 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14590 | int arg2 ; | |
14591 | PyObject * obj0 = 0 ; | |
14592 | PyObject * obj1 = 0 ; | |
14593 | char *kwnames[] = { | |
14594 | (char *) "self",(char *) "m_x", NULL | |
14595 | }; | |
14596 | ||
14597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14600 | arg2 = (int) SWIG_AsInt(obj1); | |
14601 | if (PyErr_Occurred()) SWIG_fail; | |
14602 | if (arg1) (arg1)->m_x = arg2; | |
14603 | ||
14604 | Py_INCREF(Py_None); resultobj = Py_None; | |
14605 | return resultobj; | |
14606 | fail: | |
14607 | return NULL; | |
14608 | } | |
14609 | ||
14610 | ||
14611 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14612 | PyObject *resultobj; | |
14613 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14614 | int result; | |
14615 | PyObject * obj0 = 0 ; | |
14616 | char *kwnames[] = { | |
14617 | (char *) "self", NULL | |
14618 | }; | |
14619 | ||
14620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
14621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14623 | result = (int) ((arg1)->m_x); | |
14624 | ||
14625 | resultobj = SWIG_FromInt((int)result); | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj; | |
14634 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14635 | int arg2 ; | |
14636 | PyObject * obj0 = 0 ; | |
14637 | PyObject * obj1 = 0 ; | |
14638 | char *kwnames[] = { | |
14639 | (char *) "self",(char *) "m_y", NULL | |
14640 | }; | |
14641 | ||
14642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
14643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14645 | arg2 = (int) SWIG_AsInt(obj1); | |
14646 | if (PyErr_Occurred()) SWIG_fail; | |
14647 | if (arg1) (arg1)->m_y = arg2; | |
14648 | ||
14649 | Py_INCREF(Py_None); resultobj = Py_None; | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
14656 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14657 | PyObject *resultobj; | |
14658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14659 | int result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | char *kwnames[] = { | |
14662 | (char *) "self", NULL | |
14663 | }; | |
14664 | ||
14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
14666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14668 | result = (int) ((arg1)->m_y); | |
14669 | ||
14670 | resultobj = SWIG_FromInt((int)result); | |
14671 | return resultobj; | |
14672 | fail: | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14678 | PyObject *resultobj; | |
14679 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14680 | bool arg2 ; | |
14681 | PyObject * obj0 = 0 ; | |
14682 | PyObject * obj1 = 0 ; | |
14683 | char *kwnames[] = { | |
14684 | (char *) "self",(char *) "m_leftDown", NULL | |
14685 | }; | |
14686 | ||
14687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14690 | arg2 = (bool) SWIG_AsBool(obj1); | |
14691 | if (PyErr_Occurred()) SWIG_fail; | |
14692 | if (arg1) (arg1)->m_leftDown = arg2; | |
14693 | ||
14694 | Py_INCREF(Py_None); resultobj = Py_None; | |
14695 | return resultobj; | |
14696 | fail: | |
14697 | return NULL; | |
14698 | } | |
14699 | ||
14700 | ||
14701 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14702 | PyObject *resultobj; | |
14703 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14704 | bool result; | |
14705 | PyObject * obj0 = 0 ; | |
14706 | char *kwnames[] = { | |
14707 | (char *) "self", NULL | |
14708 | }; | |
14709 | ||
14710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
14711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14713 | result = (bool) ((arg1)->m_leftDown); | |
14714 | ||
14715 | { | |
14716 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14717 | } | |
14718 | return resultobj; | |
14719 | fail: | |
14720 | return NULL; | |
14721 | } | |
14722 | ||
14723 | ||
14724 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14725 | PyObject *resultobj; | |
14726 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14727 | bool arg2 ; | |
14728 | PyObject * obj0 = 0 ; | |
14729 | PyObject * obj1 = 0 ; | |
14730 | char *kwnames[] = { | |
14731 | (char *) "self",(char *) "m_middleDown", NULL | |
14732 | }; | |
14733 | ||
14734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14737 | arg2 = (bool) SWIG_AsBool(obj1); | |
14738 | if (PyErr_Occurred()) SWIG_fail; | |
14739 | if (arg1) (arg1)->m_middleDown = arg2; | |
14740 | ||
14741 | Py_INCREF(Py_None); resultobj = Py_None; | |
14742 | return resultobj; | |
14743 | fail: | |
14744 | return NULL; | |
14745 | } | |
14746 | ||
14747 | ||
14748 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14749 | PyObject *resultobj; | |
14750 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14751 | bool result; | |
14752 | PyObject * obj0 = 0 ; | |
14753 | char *kwnames[] = { | |
14754 | (char *) "self", NULL | |
14755 | }; | |
14756 | ||
14757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
14758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14760 | result = (bool) ((arg1)->m_middleDown); | |
14761 | ||
14762 | { | |
14763 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14764 | } | |
14765 | return resultobj; | |
14766 | fail: | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14772 | PyObject *resultobj; | |
14773 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14774 | bool arg2 ; | |
14775 | PyObject * obj0 = 0 ; | |
14776 | PyObject * obj1 = 0 ; | |
14777 | char *kwnames[] = { | |
14778 | (char *) "self",(char *) "m_rightDown", NULL | |
14779 | }; | |
14780 | ||
14781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14784 | arg2 = (bool) SWIG_AsBool(obj1); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | if (arg1) (arg1)->m_rightDown = arg2; | |
14787 | ||
14788 | Py_INCREF(Py_None); resultobj = Py_None; | |
14789 | return resultobj; | |
14790 | fail: | |
14791 | return NULL; | |
14792 | } | |
14793 | ||
14794 | ||
14795 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14796 | PyObject *resultobj; | |
14797 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14798 | bool result; | |
14799 | PyObject * obj0 = 0 ; | |
14800 | char *kwnames[] = { | |
14801 | (char *) "self", NULL | |
14802 | }; | |
14803 | ||
14804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
14805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14807 | result = (bool) ((arg1)->m_rightDown); | |
14808 | ||
14809 | { | |
14810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14811 | } | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
14818 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14819 | PyObject *resultobj; | |
14820 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14821 | bool arg2 ; | |
14822 | PyObject * obj0 = 0 ; | |
14823 | PyObject * obj1 = 0 ; | |
14824 | char *kwnames[] = { | |
14825 | (char *) "self",(char *) "m_controlDown", NULL | |
14826 | }; | |
14827 | ||
14828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14831 | arg2 = (bool) SWIG_AsBool(obj1); | |
14832 | if (PyErr_Occurred()) SWIG_fail; | |
14833 | if (arg1) (arg1)->m_controlDown = arg2; | |
14834 | ||
14835 | Py_INCREF(Py_None); resultobj = Py_None; | |
14836 | return resultobj; | |
14837 | fail: | |
14838 | return NULL; | |
14839 | } | |
14840 | ||
14841 | ||
14842 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14843 | PyObject *resultobj; | |
14844 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14845 | bool result; | |
14846 | PyObject * obj0 = 0 ; | |
14847 | char *kwnames[] = { | |
14848 | (char *) "self", NULL | |
14849 | }; | |
14850 | ||
14851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
14852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14854 | result = (bool) ((arg1)->m_controlDown); | |
14855 | ||
14856 | { | |
14857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14858 | } | |
14859 | return resultobj; | |
14860 | fail: | |
14861 | return NULL; | |
14862 | } | |
14863 | ||
14864 | ||
14865 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14866 | PyObject *resultobj; | |
14867 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14868 | bool arg2 ; | |
14869 | PyObject * obj0 = 0 ; | |
14870 | PyObject * obj1 = 0 ; | |
14871 | char *kwnames[] = { | |
14872 | (char *) "self",(char *) "m_shiftDown", NULL | |
14873 | }; | |
14874 | ||
14875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14878 | arg2 = (bool) SWIG_AsBool(obj1); | |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
14880 | if (arg1) (arg1)->m_shiftDown = arg2; | |
14881 | ||
14882 | Py_INCREF(Py_None); resultobj = Py_None; | |
14883 | return resultobj; | |
14884 | fail: | |
14885 | return NULL; | |
14886 | } | |
14887 | ||
14888 | ||
14889 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14890 | PyObject *resultobj; | |
14891 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14892 | bool result; | |
14893 | PyObject * obj0 = 0 ; | |
14894 | char *kwnames[] = { | |
14895 | (char *) "self", NULL | |
14896 | }; | |
14897 | ||
14898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
14899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14901 | result = (bool) ((arg1)->m_shiftDown); | |
14902 | ||
14903 | { | |
14904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14905 | } | |
14906 | return resultobj; | |
14907 | fail: | |
14908 | return NULL; | |
14909 | } | |
14910 | ||
14911 | ||
14912 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14913 | PyObject *resultobj; | |
14914 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14915 | bool arg2 ; | |
14916 | PyObject * obj0 = 0 ; | |
14917 | PyObject * obj1 = 0 ; | |
14918 | char *kwnames[] = { | |
14919 | (char *) "self",(char *) "m_altDown", NULL | |
14920 | }; | |
14921 | ||
14922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14925 | arg2 = (bool) SWIG_AsBool(obj1); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | if (arg1) (arg1)->m_altDown = arg2; | |
14928 | ||
14929 | Py_INCREF(Py_None); resultobj = Py_None; | |
14930 | return resultobj; | |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
14936 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14937 | PyObject *resultobj; | |
14938 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14939 | bool result; | |
14940 | PyObject * obj0 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
14946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14948 | result = (bool) ((arg1)->m_altDown); | |
14949 | ||
14950 | { | |
14951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14952 | } | |
14953 | return resultobj; | |
14954 | fail: | |
14955 | return NULL; | |
14956 | } | |
14957 | ||
14958 | ||
14959 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14960 | PyObject *resultobj; | |
14961 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14962 | bool arg2 ; | |
14963 | PyObject * obj0 = 0 ; | |
14964 | PyObject * obj1 = 0 ; | |
14965 | char *kwnames[] = { | |
14966 | (char *) "self",(char *) "m_metaDown", NULL | |
14967 | }; | |
14968 | ||
14969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
14970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14972 | arg2 = (bool) SWIG_AsBool(obj1); | |
14973 | if (PyErr_Occurred()) SWIG_fail; | |
14974 | if (arg1) (arg1)->m_metaDown = arg2; | |
14975 | ||
14976 | Py_INCREF(Py_None); resultobj = Py_None; | |
14977 | return resultobj; | |
14978 | fail: | |
14979 | return NULL; | |
14980 | } | |
14981 | ||
14982 | ||
14983 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14984 | PyObject *resultobj; | |
14985 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14986 | bool result; | |
14987 | PyObject * obj0 = 0 ; | |
14988 | char *kwnames[] = { | |
14989 | (char *) "self", NULL | |
14990 | }; | |
14991 | ||
14992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
14993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14995 | result = (bool) ((arg1)->m_metaDown); | |
14996 | ||
14997 | { | |
14998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14999 | } | |
15000 | return resultobj; | |
15001 | fail: | |
15002 | return NULL; | |
15003 | } | |
15004 | ||
15005 | ||
15006 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15007 | PyObject *resultobj; | |
15008 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15009 | int arg2 ; | |
15010 | PyObject * obj0 = 0 ; | |
15011 | PyObject * obj1 = 0 ; | |
15012 | char *kwnames[] = { | |
15013 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15014 | }; | |
15015 | ||
15016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15019 | arg2 = (int) SWIG_AsInt(obj1); | |
15020 | if (PyErr_Occurred()) SWIG_fail; | |
15021 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15022 | ||
15023 | Py_INCREF(Py_None); resultobj = Py_None; | |
15024 | return resultobj; | |
15025 | fail: | |
15026 | return NULL; | |
15027 | } | |
15028 | ||
15029 | ||
15030 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15031 | PyObject *resultobj; | |
15032 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15033 | int result; | |
15034 | PyObject * obj0 = 0 ; | |
15035 | char *kwnames[] = { | |
15036 | (char *) "self", NULL | |
15037 | }; | |
15038 | ||
15039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15042 | result = (int) ((arg1)->m_wheelRotation); | |
15043 | ||
15044 | resultobj = SWIG_FromInt((int)result); | |
15045 | return resultobj; | |
15046 | fail: | |
15047 | return NULL; | |
15048 | } | |
15049 | ||
15050 | ||
15051 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15052 | PyObject *resultobj; | |
15053 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15054 | int arg2 ; | |
15055 | PyObject * obj0 = 0 ; | |
15056 | PyObject * obj1 = 0 ; | |
15057 | char *kwnames[] = { | |
15058 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15059 | }; | |
15060 | ||
15061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15064 | arg2 = (int) SWIG_AsInt(obj1); | |
15065 | if (PyErr_Occurred()) SWIG_fail; | |
15066 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15067 | ||
15068 | Py_INCREF(Py_None); resultobj = Py_None; | |
15069 | return resultobj; | |
15070 | fail: | |
15071 | return NULL; | |
15072 | } | |
15073 | ||
15074 | ||
15075 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15076 | PyObject *resultobj; | |
15077 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15078 | int result; | |
15079 | PyObject * obj0 = 0 ; | |
15080 | char *kwnames[] = { | |
15081 | (char *) "self", NULL | |
15082 | }; | |
15083 | ||
15084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15087 | result = (int) ((arg1)->m_wheelDelta); | |
15088 | ||
15089 | resultobj = SWIG_FromInt((int)result); | |
15090 | return resultobj; | |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
15096 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15097 | PyObject *resultobj; | |
15098 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15099 | int arg2 ; | |
15100 | PyObject * obj0 = 0 ; | |
15101 | PyObject * obj1 = 0 ; | |
15102 | char *kwnames[] = { | |
15103 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15104 | }; | |
15105 | ||
15106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15109 | arg2 = (int) SWIG_AsInt(obj1); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15112 | ||
15113 | Py_INCREF(Py_None); resultobj = Py_None; | |
15114 | return resultobj; | |
15115 | fail: | |
15116 | return NULL; | |
15117 | } | |
15118 | ||
15119 | ||
15120 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15121 | PyObject *resultobj; | |
15122 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15123 | int result; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "self", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | result = (int) ((arg1)->m_linesPerAction); | |
15133 | ||
15134 | resultobj = SWIG_FromInt((int)result); | |
15135 | return resultobj; | |
15136 | fail: | |
15137 | return NULL; | |
15138 | } | |
15139 | ||
15140 | ||
15141 | static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) { | |
15142 | PyObject *obj; | |
15143 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15144 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15145 | Py_INCREF(obj); | |
15146 | return Py_BuildValue((char *)""); | |
15147 | } | |
15148 | static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | int arg1 = (int) 0 ; | |
15151 | int arg2 = (int) 0 ; | |
15152 | wxSetCursorEvent *result; | |
15153 | PyObject * obj0 = 0 ; | |
15154 | PyObject * obj1 = 0 ; | |
15155 | char *kwnames[] = { | |
15156 | (char *) "x",(char *) "y", NULL | |
15157 | }; | |
15158 | ||
15159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15160 | if (obj0) { | |
15161 | arg1 = (int) SWIG_AsInt(obj0); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | if (obj1) { | |
15165 | arg2 = (int) SWIG_AsInt(obj1); | |
15166 | if (PyErr_Occurred()) SWIG_fail; | |
15167 | } | |
15168 | { | |
15169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15170 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15176 | return resultobj; | |
15177 | fail: | |
15178 | return NULL; | |
15179 | } | |
15180 | ||
15181 | ||
15182 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15183 | PyObject *resultobj; | |
15184 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15185 | int result; | |
15186 | PyObject * obj0 = 0 ; | |
15187 | char *kwnames[] = { | |
15188 | (char *) "self", NULL | |
15189 | }; | |
15190 | ||
15191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15194 | { | |
15195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15196 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15197 | ||
15198 | wxPyEndAllowThreads(__tstate); | |
15199 | if (PyErr_Occurred()) SWIG_fail; | |
15200 | } | |
15201 | resultobj = SWIG_FromInt((int)result); | |
15202 | return resultobj; | |
15203 | fail: | |
15204 | return NULL; | |
15205 | } | |
15206 | ||
15207 | ||
15208 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15209 | PyObject *resultobj; | |
15210 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15211 | int result; | |
15212 | PyObject * obj0 = 0 ; | |
15213 | char *kwnames[] = { | |
15214 | (char *) "self", NULL | |
15215 | }; | |
15216 | ||
15217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15223 | ||
15224 | wxPyEndAllowThreads(__tstate); | |
15225 | if (PyErr_Occurred()) SWIG_fail; | |
15226 | } | |
15227 | resultobj = SWIG_FromInt((int)result); | |
15228 | return resultobj; | |
15229 | fail: | |
15230 | return NULL; | |
15231 | } | |
15232 | ||
15233 | ||
15234 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15235 | PyObject *resultobj; | |
15236 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15237 | wxCursor *arg2 = 0 ; | |
15238 | PyObject * obj0 = 0 ; | |
15239 | PyObject * obj1 = 0 ; | |
15240 | char *kwnames[] = { | |
15241 | (char *) "self",(char *) "cursor", NULL | |
15242 | }; | |
15243 | ||
15244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15248 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15249 | SWIG_fail; | |
15250 | if (arg2 == NULL) { | |
15251 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15252 | SWIG_fail; | |
15253 | } | |
15254 | { | |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15257 | ||
15258 | wxPyEndAllowThreads(__tstate); | |
15259 | if (PyErr_Occurred()) SWIG_fail; | |
15260 | } | |
15261 | Py_INCREF(Py_None); resultobj = Py_None; | |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
15265 | } | |
15266 | ||
15267 | ||
15268 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15269 | PyObject *resultobj; | |
15270 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15271 | wxCursor *result; | |
15272 | PyObject * obj0 = 0 ; | |
15273 | char *kwnames[] = { | |
15274 | (char *) "self", NULL | |
15275 | }; | |
15276 | ||
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15280 | { | |
15281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15282 | { | |
15283 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15284 | result = (wxCursor *) &_result_ref; | |
15285 | } | |
15286 | ||
15287 | wxPyEndAllowThreads(__tstate); | |
15288 | if (PyErr_Occurred()) SWIG_fail; | |
15289 | } | |
15290 | { | |
15291 | wxCursor* resultptr = new wxCursor(*result); | |
15292 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15293 | } | |
15294 | return resultobj; | |
15295 | fail: | |
15296 | return NULL; | |
15297 | } | |
15298 | ||
15299 | ||
15300 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15301 | PyObject *resultobj; | |
15302 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15303 | bool result; | |
15304 | PyObject * obj0 = 0 ; | |
15305 | char *kwnames[] = { | |
15306 | (char *) "self", NULL | |
15307 | }; | |
15308 | ||
15309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | { | |
15320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15321 | } | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
15325 | } | |
15326 | ||
15327 | ||
15328 | static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) { | |
15329 | PyObject *obj; | |
15330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15331 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15332 | Py_INCREF(obj); | |
15333 | return Py_BuildValue((char *)""); | |
15334 | } | |
15335 | static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj; | |
15337 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15338 | wxKeyEvent *result; | |
15339 | PyObject * obj0 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "keyType", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15345 | if (obj0) { | |
15346 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15347 | if (PyErr_Occurred()) SWIG_fail; | |
15348 | } | |
15349 | { | |
15350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15351 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15352 | ||
15353 | wxPyEndAllowThreads(__tstate); | |
15354 | if (PyErr_Occurred()) SWIG_fail; | |
15355 | } | |
15356 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15357 | return resultobj; | |
15358 | fail: | |
15359 | return NULL; | |
15360 | } | |
15361 | ||
15362 | ||
15363 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15364 | PyObject *resultobj; | |
15365 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15366 | bool result; | |
15367 | PyObject * obj0 = 0 ; | |
15368 | char *kwnames[] = { | |
15369 | (char *) "self", NULL | |
15370 | }; | |
15371 | ||
15372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15375 | { | |
15376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15377 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15378 | ||
15379 | wxPyEndAllowThreads(__tstate); | |
15380 | if (PyErr_Occurred()) SWIG_fail; | |
15381 | } | |
15382 | { | |
15383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15384 | } | |
15385 | return resultobj; | |
15386 | fail: | |
15387 | return NULL; | |
15388 | } | |
15389 | ||
15390 | ||
15391 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15392 | PyObject *resultobj; | |
15393 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15394 | bool result; | |
15395 | PyObject * obj0 = 0 ; | |
15396 | char *kwnames[] = { | |
15397 | (char *) "self", NULL | |
15398 | }; | |
15399 | ||
15400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15403 | { | |
15404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15405 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15406 | ||
15407 | wxPyEndAllowThreads(__tstate); | |
15408 | if (PyErr_Occurred()) SWIG_fail; | |
15409 | } | |
15410 | { | |
15411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15412 | } | |
15413 | return resultobj; | |
15414 | fail: | |
15415 | return NULL; | |
15416 | } | |
15417 | ||
15418 | ||
15419 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj; | |
15421 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15422 | bool result; | |
15423 | PyObject * obj0 = 0 ; | |
15424 | char *kwnames[] = { | |
15425 | (char *) "self", NULL | |
15426 | }; | |
15427 | ||
15428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15431 | { | |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15434 | ||
15435 | wxPyEndAllowThreads(__tstate); | |
15436 | if (PyErr_Occurred()) SWIG_fail; | |
15437 | } | |
15438 | { | |
15439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15440 | } | |
15441 | return resultobj; | |
15442 | fail: | |
15443 | return NULL; | |
15444 | } | |
15445 | ||
15446 | ||
15447 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15448 | PyObject *resultobj; | |
15449 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15450 | bool result; | |
15451 | PyObject * obj0 = 0 ; | |
15452 | char *kwnames[] = { | |
15453 | (char *) "self", NULL | |
15454 | }; | |
15455 | ||
15456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15459 | { | |
15460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15461 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15462 | ||
15463 | wxPyEndAllowThreads(__tstate); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
15466 | { | |
15467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15468 | } | |
15469 | return resultobj; | |
15470 | fail: | |
15471 | return NULL; | |
15472 | } | |
15473 | ||
15474 | ||
15475 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15476 | PyObject *resultobj; | |
15477 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15478 | bool result; | |
15479 | PyObject * obj0 = 0 ; | |
15480 | char *kwnames[] = { | |
15481 | (char *) "self", NULL | |
15482 | }; | |
15483 | ||
15484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15487 | { | |
15488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15489 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15490 | ||
15491 | wxPyEndAllowThreads(__tstate); | |
15492 | if (PyErr_Occurred()) SWIG_fail; | |
15493 | } | |
15494 | { | |
15495 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15496 | } | |
15497 | return resultobj; | |
15498 | fail: | |
15499 | return NULL; | |
15500 | } | |
15501 | ||
15502 | ||
15503 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15504 | PyObject *resultobj; | |
15505 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15506 | int result; | |
15507 | PyObject * obj0 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15515 | { | |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | resultobj = SWIG_FromInt((int)result); | |
15523 | return resultobj; | |
15524 | fail: | |
15525 | return NULL; | |
15526 | } | |
15527 | ||
15528 | ||
15529 | static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15530 | PyObject *resultobj; | |
15531 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15532 | int result; | |
15533 | PyObject * obj0 = 0 ; | |
15534 | char *kwnames[] = { | |
15535 | (char *) "self", NULL | |
15536 | }; | |
15537 | ||
15538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail; | |
15539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15541 | { | |
15542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15543 | result = (int)wxKeyEvent_GetUniChar(arg1); | |
15544 | ||
15545 | wxPyEndAllowThreads(__tstate); | |
15546 | if (PyErr_Occurred()) SWIG_fail; | |
15547 | } | |
15548 | resultobj = SWIG_FromInt((int)result); | |
15549 | return resultobj; | |
15550 | fail: | |
15551 | return NULL; | |
15552 | } | |
15553 | ||
15554 | ||
15555 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15556 | PyObject *resultobj; | |
15557 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15558 | unsigned int result; | |
15559 | PyObject * obj0 = 0 ; | |
15560 | char *kwnames[] = { | |
15561 | (char *) "self", NULL | |
15562 | }; | |
15563 | ||
15564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15567 | { | |
15568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15569 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15570 | ||
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
15574 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15582 | PyObject *resultobj; | |
15583 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15584 | unsigned int result; | |
15585 | PyObject * obj0 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15593 | { | |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
15596 | ||
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
15600 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
15601 | return resultobj; | |
15602 | fail: | |
15603 | return NULL; | |
15604 | } | |
15605 | ||
15606 | ||
15607 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15608 | PyObject *resultobj; | |
15609 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15610 | wxPoint result; | |
15611 | PyObject * obj0 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15619 | { | |
15620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15621 | result = (arg1)->GetPosition(); | |
15622 | ||
15623 | wxPyEndAllowThreads(__tstate); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
15626 | { | |
15627 | wxPoint * resultptr; | |
15628 | resultptr = new wxPoint((wxPoint &) result); | |
15629 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15630 | } | |
15631 | return resultobj; | |
15632 | fail: | |
15633 | return NULL; | |
15634 | } | |
15635 | ||
15636 | ||
15637 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15638 | PyObject *resultobj; | |
15639 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15640 | long *arg2 = (long *) 0 ; | |
15641 | long *arg3 = (long *) 0 ; | |
15642 | long temp2 ; | |
15643 | long temp3 ; | |
15644 | PyObject * obj0 = 0 ; | |
15645 | char *kwnames[] = { | |
15646 | (char *) "self", NULL | |
15647 | }; | |
15648 | ||
15649 | arg2 = &temp2; | |
15650 | arg3 = &temp3; | |
15651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; | |
15652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15654 | { | |
15655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15656 | (arg1)->GetPosition(arg2,arg3); | |
15657 | ||
15658 | wxPyEndAllowThreads(__tstate); | |
15659 | if (PyErr_Occurred()) SWIG_fail; | |
15660 | } | |
15661 | Py_INCREF(Py_None); resultobj = Py_None; | |
15662 | { | |
15663 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
15664 | resultobj = t_output_helper(resultobj,o); | |
15665 | } | |
15666 | { | |
15667 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15668 | resultobj = t_output_helper(resultobj,o); | |
15669 | } | |
15670 | return resultobj; | |
15671 | fail: | |
15672 | return NULL; | |
15673 | } | |
15674 | ||
15675 | ||
15676 | static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15677 | PyObject *resultobj; | |
15678 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15679 | int result; | |
15680 | PyObject * obj0 = 0 ; | |
15681 | char *kwnames[] = { | |
15682 | (char *) "self", NULL | |
15683 | }; | |
15684 | ||
15685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
15686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15688 | { | |
15689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15690 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
15691 | ||
15692 | wxPyEndAllowThreads(__tstate); | |
15693 | if (PyErr_Occurred()) SWIG_fail; | |
15694 | } | |
15695 | resultobj = SWIG_FromInt((int)result); | |
15696 | return resultobj; | |
15697 | fail: | |
15698 | return NULL; | |
15699 | } | |
15700 | ||
15701 | ||
15702 | static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15703 | PyObject *resultobj; | |
15704 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15705 | int result; | |
15706 | PyObject * obj0 = 0 ; | |
15707 | char *kwnames[] = { | |
15708 | (char *) "self", NULL | |
15709 | }; | |
15710 | ||
15711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
15712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15714 | { | |
15715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15716 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
15717 | ||
15718 | wxPyEndAllowThreads(__tstate); | |
15719 | if (PyErr_Occurred()) SWIG_fail; | |
15720 | } | |
15721 | resultobj = SWIG_FromInt((int)result); | |
15722 | return resultobj; | |
15723 | fail: | |
15724 | return NULL; | |
15725 | } | |
15726 | ||
15727 | ||
15728 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15729 | PyObject *resultobj; | |
15730 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15731 | int arg2 ; | |
15732 | PyObject * obj0 = 0 ; | |
15733 | PyObject * obj1 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self",(char *) "m_x", NULL | |
15736 | }; | |
15737 | ||
15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15741 | arg2 = (int) SWIG_AsInt(obj1); | |
15742 | if (PyErr_Occurred()) SWIG_fail; | |
15743 | if (arg1) (arg1)->m_x = arg2; | |
15744 | ||
15745 | Py_INCREF(Py_None); resultobj = Py_None; | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15753 | PyObject *resultobj; | |
15754 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15755 | int result; | |
15756 | PyObject * obj0 = 0 ; | |
15757 | char *kwnames[] = { | |
15758 | (char *) "self", NULL | |
15759 | }; | |
15760 | ||
15761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15764 | result = (int) ((arg1)->m_x); | |
15765 | ||
15766 | resultobj = SWIG_FromInt((int)result); | |
15767 | return resultobj; | |
15768 | fail: | |
15769 | return NULL; | |
15770 | } | |
15771 | ||
15772 | ||
15773 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15774 | PyObject *resultobj; | |
15775 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15776 | int arg2 ; | |
15777 | PyObject * obj0 = 0 ; | |
15778 | PyObject * obj1 = 0 ; | |
15779 | char *kwnames[] = { | |
15780 | (char *) "self",(char *) "m_y", NULL | |
15781 | }; | |
15782 | ||
15783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15786 | arg2 = (int) SWIG_AsInt(obj1); | |
15787 | if (PyErr_Occurred()) SWIG_fail; | |
15788 | if (arg1) (arg1)->m_y = arg2; | |
15789 | ||
15790 | Py_INCREF(Py_None); resultobj = Py_None; | |
15791 | return resultobj; | |
15792 | fail: | |
15793 | return NULL; | |
15794 | } | |
15795 | ||
15796 | ||
15797 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15798 | PyObject *resultobj; | |
15799 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15800 | int result; | |
15801 | PyObject * obj0 = 0 ; | |
15802 | char *kwnames[] = { | |
15803 | (char *) "self", NULL | |
15804 | }; | |
15805 | ||
15806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15809 | result = (int) ((arg1)->m_y); | |
15810 | ||
15811 | resultobj = SWIG_FromInt((int)result); | |
15812 | return resultobj; | |
15813 | fail: | |
15814 | return NULL; | |
15815 | } | |
15816 | ||
15817 | ||
15818 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15819 | PyObject *resultobj; | |
15820 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15821 | long arg2 ; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | PyObject * obj1 = 0 ; | |
15824 | char *kwnames[] = { | |
15825 | (char *) "self",(char *) "m_keyCode", NULL | |
15826 | }; | |
15827 | ||
15828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
15829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15831 | arg2 = (long) SWIG_AsLong(obj1); | |
15832 | if (PyErr_Occurred()) SWIG_fail; | |
15833 | if (arg1) (arg1)->m_keyCode = arg2; | |
15834 | ||
15835 | Py_INCREF(Py_None); resultobj = Py_None; | |
15836 | return resultobj; | |
15837 | fail: | |
15838 | return NULL; | |
15839 | } | |
15840 | ||
15841 | ||
15842 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15843 | PyObject *resultobj; | |
15844 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15845 | long result; | |
15846 | PyObject * obj0 = 0 ; | |
15847 | char *kwnames[] = { | |
15848 | (char *) "self", NULL | |
15849 | }; | |
15850 | ||
15851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
15852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15854 | result = (long) ((arg1)->m_keyCode); | |
15855 | ||
15856 | resultobj = SWIG_FromLong((long)result); | |
15857 | return resultobj; | |
15858 | fail: | |
15859 | return NULL; | |
15860 | } | |
15861 | ||
15862 | ||
15863 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15864 | PyObject *resultobj; | |
15865 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15866 | bool arg2 ; | |
15867 | PyObject * obj0 = 0 ; | |
15868 | PyObject * obj1 = 0 ; | |
15869 | char *kwnames[] = { | |
15870 | (char *) "self",(char *) "m_controlDown", NULL | |
15871 | }; | |
15872 | ||
15873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15876 | arg2 = (bool) SWIG_AsBool(obj1); | |
15877 | if (PyErr_Occurred()) SWIG_fail; | |
15878 | if (arg1) (arg1)->m_controlDown = arg2; | |
15879 | ||
15880 | Py_INCREF(Py_None); resultobj = Py_None; | |
15881 | return resultobj; | |
15882 | fail: | |
15883 | return NULL; | |
15884 | } | |
15885 | ||
15886 | ||
15887 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15888 | PyObject *resultobj; | |
15889 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15890 | bool result; | |
15891 | PyObject * obj0 = 0 ; | |
15892 | char *kwnames[] = { | |
15893 | (char *) "self", NULL | |
15894 | }; | |
15895 | ||
15896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15899 | result = (bool) ((arg1)->m_controlDown); | |
15900 | ||
15901 | { | |
15902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | return NULL; | |
15907 | } | |
15908 | ||
15909 | ||
15910 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15911 | PyObject *resultobj; | |
15912 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15913 | bool arg2 ; | |
15914 | PyObject * obj0 = 0 ; | |
15915 | PyObject * obj1 = 0 ; | |
15916 | char *kwnames[] = { | |
15917 | (char *) "self",(char *) "m_shiftDown", NULL | |
15918 | }; | |
15919 | ||
15920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15923 | arg2 = (bool) SWIG_AsBool(obj1); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15926 | ||
15927 | Py_INCREF(Py_None); resultobj = Py_None; | |
15928 | return resultobj; | |
15929 | fail: | |
15930 | return NULL; | |
15931 | } | |
15932 | ||
15933 | ||
15934 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15935 | PyObject *resultobj; | |
15936 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15937 | bool result; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15946 | result = (bool) ((arg1)->m_shiftDown); | |
15947 | ||
15948 | { | |
15949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15950 | } | |
15951 | return resultobj; | |
15952 | fail: | |
15953 | return NULL; | |
15954 | } | |
15955 | ||
15956 | ||
15957 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15958 | PyObject *resultobj; | |
15959 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15960 | bool arg2 ; | |
15961 | PyObject * obj0 = 0 ; | |
15962 | PyObject * obj1 = 0 ; | |
15963 | char *kwnames[] = { | |
15964 | (char *) "self",(char *) "m_altDown", NULL | |
15965 | }; | |
15966 | ||
15967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15970 | arg2 = (bool) SWIG_AsBool(obj1); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | if (arg1) (arg1)->m_altDown = arg2; | |
15973 | ||
15974 | Py_INCREF(Py_None); resultobj = Py_None; | |
15975 | return resultobj; | |
15976 | fail: | |
15977 | return NULL; | |
15978 | } | |
15979 | ||
15980 | ||
15981 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15982 | PyObject *resultobj; | |
15983 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15984 | bool result; | |
15985 | PyObject * obj0 = 0 ; | |
15986 | char *kwnames[] = { | |
15987 | (char *) "self", NULL | |
15988 | }; | |
15989 | ||
15990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15993 | result = (bool) ((arg1)->m_altDown); | |
15994 | ||
15995 | { | |
15996 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15997 | } | |
15998 | return resultobj; | |
15999 | fail: | |
16000 | return NULL; | |
16001 | } | |
16002 | ||
16003 | ||
16004 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16005 | PyObject *resultobj; | |
16006 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16007 | bool arg2 ; | |
16008 | PyObject * obj0 = 0 ; | |
16009 | PyObject * obj1 = 0 ; | |
16010 | char *kwnames[] = { | |
16011 | (char *) "self",(char *) "m_metaDown", NULL | |
16012 | }; | |
16013 | ||
16014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16017 | arg2 = (bool) SWIG_AsBool(obj1); | |
16018 | if (PyErr_Occurred()) SWIG_fail; | |
16019 | if (arg1) (arg1)->m_metaDown = arg2; | |
16020 | ||
16021 | Py_INCREF(Py_None); resultobj = Py_None; | |
16022 | return resultobj; | |
16023 | fail: | |
16024 | return NULL; | |
16025 | } | |
16026 | ||
16027 | ||
16028 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16029 | PyObject *resultobj; | |
16030 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16031 | bool result; | |
16032 | PyObject * obj0 = 0 ; | |
16033 | char *kwnames[] = { | |
16034 | (char *) "self", NULL | |
16035 | }; | |
16036 | ||
16037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16040 | result = (bool) ((arg1)->m_metaDown); | |
16041 | ||
16042 | { | |
16043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16044 | } | |
16045 | return resultobj; | |
16046 | fail: | |
16047 | return NULL; | |
16048 | } | |
16049 | ||
16050 | ||
16051 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16052 | PyObject *resultobj; | |
16053 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16054 | bool arg2 ; | |
16055 | PyObject * obj0 = 0 ; | |
16056 | PyObject * obj1 = 0 ; | |
16057 | char *kwnames[] = { | |
16058 | (char *) "self",(char *) "m_scanCode", NULL | |
16059 | }; | |
16060 | ||
16061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16064 | arg2 = (bool) SWIG_AsBool(obj1); | |
16065 | if (PyErr_Occurred()) SWIG_fail; | |
16066 | if (arg1) (arg1)->m_scanCode = arg2; | |
16067 | ||
16068 | Py_INCREF(Py_None); resultobj = Py_None; | |
16069 | return resultobj; | |
16070 | fail: | |
16071 | return NULL; | |
16072 | } | |
16073 | ||
16074 | ||
16075 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16076 | PyObject *resultobj; | |
16077 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16078 | bool result; | |
16079 | PyObject * obj0 = 0 ; | |
16080 | char *kwnames[] = { | |
16081 | (char *) "self", NULL | |
16082 | }; | |
16083 | ||
16084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16087 | result = (bool) ((arg1)->m_scanCode); | |
16088 | ||
16089 | { | |
16090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16091 | } | |
16092 | return resultobj; | |
16093 | fail: | |
16094 | return NULL; | |
16095 | } | |
16096 | ||
16097 | ||
16098 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16099 | PyObject *resultobj; | |
16100 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16101 | unsigned int arg2 ; | |
16102 | PyObject * obj0 = 0 ; | |
16103 | PyObject * obj1 = 0 ; | |
16104 | char *kwnames[] = { | |
16105 | (char *) "self",(char *) "m_rawCode", NULL | |
16106 | }; | |
16107 | ||
16108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16111 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16112 | if (PyErr_Occurred()) SWIG_fail; | |
16113 | if (arg1) (arg1)->m_rawCode = arg2; | |
16114 | ||
16115 | Py_INCREF(Py_None); resultobj = Py_None; | |
16116 | return resultobj; | |
16117 | fail: | |
16118 | return NULL; | |
16119 | } | |
16120 | ||
16121 | ||
16122 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16123 | PyObject *resultobj; | |
16124 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16125 | unsigned int result; | |
16126 | PyObject * obj0 = 0 ; | |
16127 | char *kwnames[] = { | |
16128 | (char *) "self", NULL | |
16129 | }; | |
16130 | ||
16131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16134 | result = (unsigned int) ((arg1)->m_rawCode); | |
16135 | ||
16136 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16137 | return resultobj; | |
16138 | fail: | |
16139 | return NULL; | |
16140 | } | |
16141 | ||
16142 | ||
16143 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16144 | PyObject *resultobj; | |
16145 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16146 | unsigned int arg2 ; | |
16147 | PyObject * obj0 = 0 ; | |
16148 | PyObject * obj1 = 0 ; | |
16149 | char *kwnames[] = { | |
16150 | (char *) "self",(char *) "m_rawFlags", NULL | |
16151 | }; | |
16152 | ||
16153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16156 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
16157 | if (PyErr_Occurred()) SWIG_fail; | |
16158 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16159 | ||
16160 | Py_INCREF(Py_None); resultobj = Py_None; | |
16161 | return resultobj; | |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj; | |
16169 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16170 | unsigned int result; | |
16171 | PyObject * obj0 = 0 ; | |
16172 | char *kwnames[] = { | |
16173 | (char *) "self", NULL | |
16174 | }; | |
16175 | ||
16176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16179 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16180 | ||
16181 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
16182 | return resultobj; | |
16183 | fail: | |
16184 | return NULL; | |
16185 | } | |
16186 | ||
16187 | ||
16188 | static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) { | |
16189 | PyObject *obj; | |
16190 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16191 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16192 | Py_INCREF(obj); | |
16193 | return Py_BuildValue((char *)""); | |
16194 | } | |
16195 | static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16196 | PyObject *resultobj; | |
16197 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16198 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16199 | int arg2 = (int) 0 ; | |
16200 | wxSizeEvent *result; | |
16201 | wxSize temp1 ; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | PyObject * obj1 = 0 ; | |
16204 | char *kwnames[] = { | |
16205 | (char *) "sz",(char *) "winid", NULL | |
16206 | }; | |
16207 | ||
16208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16209 | if (obj0) { | |
16210 | { | |
16211 | arg1 = &temp1; | |
16212 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16213 | } | |
16214 | } | |
16215 | if (obj1) { | |
16216 | arg2 = (int) SWIG_AsInt(obj1); | |
16217 | if (PyErr_Occurred()) SWIG_fail; | |
16218 | } | |
16219 | { | |
16220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16221 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16222 | ||
16223 | wxPyEndAllowThreads(__tstate); | |
16224 | if (PyErr_Occurred()) SWIG_fail; | |
16225 | } | |
16226 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16227 | return resultobj; | |
16228 | fail: | |
16229 | return NULL; | |
16230 | } | |
16231 | ||
16232 | ||
16233 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16234 | PyObject *resultobj; | |
16235 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16236 | wxSize result; | |
16237 | PyObject * obj0 = 0 ; | |
16238 | char *kwnames[] = { | |
16239 | (char *) "self", NULL | |
16240 | }; | |
16241 | ||
16242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16245 | { | |
16246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16247 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
16252 | { | |
16253 | wxSize * resultptr; | |
16254 | resultptr = new wxSize((wxSize &) result); | |
16255 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16256 | } | |
16257 | return resultobj; | |
16258 | fail: | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
16263 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16264 | PyObject *resultobj; | |
16265 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16266 | wxRect result; | |
16267 | PyObject * obj0 = 0 ; | |
16268 | char *kwnames[] = { | |
16269 | (char *) "self", NULL | |
16270 | }; | |
16271 | ||
16272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16275 | { | |
16276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16277 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16278 | ||
16279 | wxPyEndAllowThreads(__tstate); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | } | |
16282 | { | |
16283 | wxRect * resultptr; | |
16284 | resultptr = new wxRect((wxRect &) result); | |
16285 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16286 | } | |
16287 | return resultobj; | |
16288 | fail: | |
16289 | return NULL; | |
16290 | } | |
16291 | ||
16292 | ||
16293 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16294 | PyObject *resultobj; | |
16295 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16296 | wxRect arg2 ; | |
16297 | wxRect *argp2 ; | |
16298 | PyObject * obj0 = 0 ; | |
16299 | PyObject * obj1 = 0 ; | |
16300 | char *kwnames[] = { | |
16301 | (char *) "self",(char *) "rect", NULL | |
16302 | }; | |
16303 | ||
16304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16307 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16308 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16309 | arg2 = *argp2; | |
16310 | { | |
16311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16312 | (arg1)->SetRect(arg2); | |
16313 | ||
16314 | wxPyEndAllowThreads(__tstate); | |
16315 | if (PyErr_Occurred()) SWIG_fail; | |
16316 | } | |
16317 | Py_INCREF(Py_None); resultobj = Py_None; | |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16325 | PyObject *resultobj; | |
16326 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16327 | wxSize arg2 ; | |
16328 | wxSize *argp2 ; | |
16329 | PyObject * obj0 = 0 ; | |
16330 | PyObject * obj1 = 0 ; | |
16331 | char *kwnames[] = { | |
16332 | (char *) "self",(char *) "size", NULL | |
16333 | }; | |
16334 | ||
16335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16338 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16339 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16340 | arg2 = *argp2; | |
16341 | { | |
16342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16343 | wxSizeEvent_SetSize(arg1,arg2); | |
16344 | ||
16345 | wxPyEndAllowThreads(__tstate); | |
16346 | if (PyErr_Occurred()) SWIG_fail; | |
16347 | } | |
16348 | Py_INCREF(Py_None); resultobj = Py_None; | |
16349 | return resultobj; | |
16350 | fail: | |
16351 | return NULL; | |
16352 | } | |
16353 | ||
16354 | ||
16355 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16356 | PyObject *resultobj; | |
16357 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16358 | wxSize *arg2 = (wxSize *) 0 ; | |
16359 | PyObject * obj0 = 0 ; | |
16360 | PyObject * obj1 = 0 ; | |
16361 | char *kwnames[] = { | |
16362 | (char *) "self",(char *) "m_size", NULL | |
16363 | }; | |
16364 | ||
16365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16368 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16370 | if (arg1) (arg1)->m_size = *arg2; | |
16371 | ||
16372 | Py_INCREF(Py_None); resultobj = Py_None; | |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16380 | PyObject *resultobj; | |
16381 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16382 | wxSize *result; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16391 | result = (wxSize *)& ((arg1)->m_size); | |
16392 | ||
16393 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16394 | return resultobj; | |
16395 | fail: | |
16396 | return NULL; | |
16397 | } | |
16398 | ||
16399 | ||
16400 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16401 | PyObject *resultobj; | |
16402 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16403 | wxRect *arg2 = (wxRect *) 0 ; | |
16404 | PyObject * obj0 = 0 ; | |
16405 | PyObject * obj1 = 0 ; | |
16406 | char *kwnames[] = { | |
16407 | (char *) "self",(char *) "m_rect", NULL | |
16408 | }; | |
16409 | ||
16410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16415 | if (arg1) (arg1)->m_rect = *arg2; | |
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_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16425 | PyObject *resultobj; | |
16426 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16427 | wxRect *result; | |
16428 | PyObject * obj0 = 0 ; | |
16429 | char *kwnames[] = { | |
16430 | (char *) "self", NULL | |
16431 | }; | |
16432 | ||
16433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16436 | result = (wxRect *)& ((arg1)->m_rect); | |
16437 | ||
16438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16439 | return resultobj; | |
16440 | fail: | |
16441 | return NULL; | |
16442 | } | |
16443 | ||
16444 | ||
16445 | static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) { | |
16446 | PyObject *obj; | |
16447 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16448 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16449 | Py_INCREF(obj); | |
16450 | return Py_BuildValue((char *)""); | |
16451 | } | |
16452 | static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16453 | PyObject *resultobj; | |
16454 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16455 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16456 | int arg2 = (int) 0 ; | |
16457 | wxMoveEvent *result; | |
16458 | wxPoint temp1 ; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | PyObject * obj1 = 0 ; | |
16461 | char *kwnames[] = { | |
16462 | (char *) "pos",(char *) "winid", NULL | |
16463 | }; | |
16464 | ||
16465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16466 | if (obj0) { | |
16467 | { | |
16468 | arg1 = &temp1; | |
16469 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16470 | } | |
16471 | } | |
16472 | if (obj1) { | |
16473 | arg2 = (int) SWIG_AsInt(obj1); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
16475 | } | |
16476 | { | |
16477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16478 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16479 | ||
16480 | wxPyEndAllowThreads(__tstate); | |
16481 | if (PyErr_Occurred()) SWIG_fail; | |
16482 | } | |
16483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16484 | return resultobj; | |
16485 | fail: | |
16486 | return NULL; | |
16487 | } | |
16488 | ||
16489 | ||
16490 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16491 | PyObject *resultobj; | |
16492 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16493 | wxPoint result; | |
16494 | PyObject * obj0 = 0 ; | |
16495 | char *kwnames[] = { | |
16496 | (char *) "self", NULL | |
16497 | }; | |
16498 | ||
16499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16502 | { | |
16503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16504 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16505 | ||
16506 | wxPyEndAllowThreads(__tstate); | |
16507 | if (PyErr_Occurred()) SWIG_fail; | |
16508 | } | |
16509 | { | |
16510 | wxPoint * resultptr; | |
16511 | resultptr = new wxPoint((wxPoint &) result); | |
16512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16513 | } | |
16514 | return resultobj; | |
16515 | fail: | |
16516 | return NULL; | |
16517 | } | |
16518 | ||
16519 | ||
16520 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16521 | PyObject *resultobj; | |
16522 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16523 | wxRect result; | |
16524 | PyObject * obj0 = 0 ; | |
16525 | char *kwnames[] = { | |
16526 | (char *) "self", NULL | |
16527 | }; | |
16528 | ||
16529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16532 | { | |
16533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16534 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16535 | ||
16536 | wxPyEndAllowThreads(__tstate); | |
16537 | if (PyErr_Occurred()) SWIG_fail; | |
16538 | } | |
16539 | { | |
16540 | wxRect * resultptr; | |
16541 | resultptr = new wxRect((wxRect &) result); | |
16542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16543 | } | |
16544 | return resultobj; | |
16545 | fail: | |
16546 | return NULL; | |
16547 | } | |
16548 | ||
16549 | ||
16550 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj; | |
16552 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16553 | wxRect arg2 ; | |
16554 | wxRect *argp2 ; | |
16555 | PyObject * obj0 = 0 ; | |
16556 | PyObject * obj1 = 0 ; | |
16557 | char *kwnames[] = { | |
16558 | (char *) "self",(char *) "rect", NULL | |
16559 | }; | |
16560 | ||
16561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16564 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16565 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16566 | arg2 = *argp2; | |
16567 | { | |
16568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16569 | (arg1)->SetRect(arg2); | |
16570 | ||
16571 | wxPyEndAllowThreads(__tstate); | |
16572 | if (PyErr_Occurred()) SWIG_fail; | |
16573 | } | |
16574 | Py_INCREF(Py_None); resultobj = Py_None; | |
16575 | return resultobj; | |
16576 | fail: | |
16577 | return NULL; | |
16578 | } | |
16579 | ||
16580 | ||
16581 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16582 | PyObject *resultobj; | |
16583 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16584 | wxPoint arg2 ; | |
16585 | wxPoint *argp2 ; | |
16586 | PyObject * obj0 = 0 ; | |
16587 | PyObject * obj1 = 0 ; | |
16588 | char *kwnames[] = { | |
16589 | (char *) "self",(char *) "pos", NULL | |
16590 | }; | |
16591 | ||
16592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
16593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16595 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
16596 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16597 | arg2 = *argp2; | |
16598 | { | |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | wxMoveEvent_SetPosition(arg1,arg2); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | Py_INCREF(Py_None); resultobj = Py_None; | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16615 | wxPoint *arg2 = (wxPoint *) 0 ; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | PyObject * obj1 = 0 ; | |
16618 | char *kwnames[] = { | |
16619 | (char *) "self",(char *) "m_pos", NULL | |
16620 | }; | |
16621 | ||
16622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
16623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
16626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16627 | if (arg1) (arg1)->m_pos = *arg2; | |
16628 | ||
16629 | Py_INCREF(Py_None); resultobj = Py_None; | |
16630 | return resultobj; | |
16631 | fail: | |
16632 | return NULL; | |
16633 | } | |
16634 | ||
16635 | ||
16636 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16637 | PyObject *resultobj; | |
16638 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16639 | wxPoint *result; | |
16640 | PyObject * obj0 = 0 ; | |
16641 | char *kwnames[] = { | |
16642 | (char *) "self", NULL | |
16643 | }; | |
16644 | ||
16645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
16646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16648 | result = (wxPoint *)& ((arg1)->m_pos); | |
16649 | ||
16650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
16651 | return resultobj; | |
16652 | fail: | |
16653 | return NULL; | |
16654 | } | |
16655 | ||
16656 | ||
16657 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16658 | PyObject *resultobj; | |
16659 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16660 | wxRect *arg2 = (wxRect *) 0 ; | |
16661 | PyObject * obj0 = 0 ; | |
16662 | PyObject * obj1 = 0 ; | |
16663 | char *kwnames[] = { | |
16664 | (char *) "self",(char *) "m_rect", NULL | |
16665 | }; | |
16666 | ||
16667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16672 | if (arg1) (arg1)->m_rect = *arg2; | |
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_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16682 | PyObject *resultobj; | |
16683 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16684 | wxRect *result; | |
16685 | PyObject * obj0 = 0 ; | |
16686 | char *kwnames[] = { | |
16687 | (char *) "self", NULL | |
16688 | }; | |
16689 | ||
16690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16693 | result = (wxRect *)& ((arg1)->m_rect); | |
16694 | ||
16695 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16696 | return resultobj; | |
16697 | fail: | |
16698 | return NULL; | |
16699 | } | |
16700 | ||
16701 | ||
16702 | static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) { | |
16703 | PyObject *obj; | |
16704 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16705 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
16706 | Py_INCREF(obj); | |
16707 | return Py_BuildValue((char *)""); | |
16708 | } | |
16709 | static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16710 | PyObject *resultobj; | |
16711 | int arg1 = (int) 0 ; | |
16712 | wxPaintEvent *result; | |
16713 | PyObject * obj0 = 0 ; | |
16714 | char *kwnames[] = { | |
16715 | (char *) "Id", NULL | |
16716 | }; | |
16717 | ||
16718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
16719 | if (obj0) { | |
16720 | arg1 = (int) SWIG_AsInt(obj0); | |
16721 | if (PyErr_Occurred()) SWIG_fail; | |
16722 | } | |
16723 | { | |
16724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16725 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
16726 | ||
16727 | wxPyEndAllowThreads(__tstate); | |
16728 | if (PyErr_Occurred()) SWIG_fail; | |
16729 | } | |
16730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
16731 | return resultobj; | |
16732 | fail: | |
16733 | return NULL; | |
16734 | } | |
16735 | ||
16736 | ||
16737 | static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16738 | PyObject *obj; | |
16739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16740 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
16741 | Py_INCREF(obj); | |
16742 | return Py_BuildValue((char *)""); | |
16743 | } | |
16744 | static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16745 | PyObject *resultobj; | |
16746 | int arg1 = (int) 0 ; | |
16747 | wxNcPaintEvent *result; | |
16748 | PyObject * obj0 = 0 ; | |
16749 | char *kwnames[] = { | |
16750 | (char *) "winid", NULL | |
16751 | }; | |
16752 | ||
16753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
16754 | if (obj0) { | |
16755 | arg1 = (int) SWIG_AsInt(obj0); | |
16756 | if (PyErr_Occurred()) SWIG_fail; | |
16757 | } | |
16758 | { | |
16759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16760 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
16761 | ||
16762 | wxPyEndAllowThreads(__tstate); | |
16763 | if (PyErr_Occurred()) SWIG_fail; | |
16764 | } | |
16765 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
16766 | return resultobj; | |
16767 | fail: | |
16768 | return NULL; | |
16769 | } | |
16770 | ||
16771 | ||
16772 | static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) { | |
16773 | PyObject *obj; | |
16774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16775 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
16776 | Py_INCREF(obj); | |
16777 | return Py_BuildValue((char *)""); | |
16778 | } | |
16779 | static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16780 | PyObject *resultobj; | |
16781 | int arg1 = (int) 0 ; | |
16782 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
16783 | wxEraseEvent *result; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | PyObject * obj1 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "Id",(char *) "dc", NULL | |
16788 | }; | |
16789 | ||
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
16791 | if (obj0) { | |
16792 | arg1 = (int) SWIG_AsInt(obj0); | |
16793 | if (PyErr_Occurred()) SWIG_fail; | |
16794 | } | |
16795 | if (obj1) { | |
16796 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
16797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16798 | } | |
16799 | { | |
16800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16801 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
16802 | ||
16803 | wxPyEndAllowThreads(__tstate); | |
16804 | if (PyErr_Occurred()) SWIG_fail; | |
16805 | } | |
16806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
16807 | return resultobj; | |
16808 | fail: | |
16809 | return NULL; | |
16810 | } | |
16811 | ||
16812 | ||
16813 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16814 | PyObject *resultobj; | |
16815 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
16816 | wxDC *result; | |
16817 | PyObject * obj0 = 0 ; | |
16818 | char *kwnames[] = { | |
16819 | (char *) "self", NULL | |
16820 | }; | |
16821 | ||
16822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
16823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
16824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | { | |
16833 | resultobj = wxPyMake_wxObject(result); | |
16834 | } | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) { | |
16842 | PyObject *obj; | |
16843 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16844 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
16845 | Py_INCREF(obj); | |
16846 | return Py_BuildValue((char *)""); | |
16847 | } | |
16848 | static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16849 | PyObject *resultobj; | |
16850 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16851 | int arg2 = (int) 0 ; | |
16852 | wxFocusEvent *result; | |
16853 | PyObject * obj0 = 0 ; | |
16854 | PyObject * obj1 = 0 ; | |
16855 | char *kwnames[] = { | |
16856 | (char *) "type",(char *) "winid", NULL | |
16857 | }; | |
16858 | ||
16859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
16860 | if (obj0) { | |
16861 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
16864 | if (obj1) { | |
16865 | arg2 = (int) SWIG_AsInt(obj1); | |
16866 | if (PyErr_Occurred()) SWIG_fail; | |
16867 | } | |
16868 | { | |
16869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16870 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
16871 | ||
16872 | wxPyEndAllowThreads(__tstate); | |
16873 | if (PyErr_Occurred()) SWIG_fail; | |
16874 | } | |
16875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
16876 | return resultobj; | |
16877 | fail: | |
16878 | return NULL; | |
16879 | } | |
16880 | ||
16881 | ||
16882 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16883 | PyObject *resultobj; | |
16884 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16885 | wxWindow *result; | |
16886 | PyObject * obj0 = 0 ; | |
16887 | char *kwnames[] = { | |
16888 | (char *) "self", NULL | |
16889 | }; | |
16890 | ||
16891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16894 | { | |
16895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16896 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
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 *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16911 | PyObject *resultobj; | |
16912 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
16913 | wxWindow *arg2 = (wxWindow *) 0 ; | |
16914 | PyObject * obj0 = 0 ; | |
16915 | PyObject * obj1 = 0 ; | |
16916 | char *kwnames[] = { | |
16917 | (char *) "self",(char *) "win", NULL | |
16918 | }; | |
16919 | ||
16920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
16921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
16922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
16924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16925 | { | |
16926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16927 | (arg1)->SetWindow(arg2); | |
16928 | ||
16929 | wxPyEndAllowThreads(__tstate); | |
16930 | if (PyErr_Occurred()) SWIG_fail; | |
16931 | } | |
16932 | Py_INCREF(Py_None); resultobj = Py_None; | |
16933 | return resultobj; | |
16934 | fail: | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
16939 | static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) { | |
16940 | PyObject *obj; | |
16941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16942 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
16943 | Py_INCREF(obj); | |
16944 | return Py_BuildValue((char *)""); | |
16945 | } | |
16946 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16947 | PyObject *resultobj; | |
16948 | wxWindow *arg1 = (wxWindow *) NULL ; | |
16949 | wxChildFocusEvent *result; | |
16950 | PyObject * obj0 = 0 ; | |
16951 | char *kwnames[] = { | |
16952 | (char *) "win", NULL | |
16953 | }; | |
16954 | ||
16955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
16956 | if (obj0) { | |
16957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
16958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16959 | } | |
16960 | { | |
16961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16962 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
16963 | ||
16964 | wxPyEndAllowThreads(__tstate); | |
16965 | if (PyErr_Occurred()) SWIG_fail; | |
16966 | } | |
16967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
16968 | return resultobj; | |
16969 | fail: | |
16970 | return NULL; | |
16971 | } | |
16972 | ||
16973 | ||
16974 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16975 | PyObject *resultobj; | |
16976 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
16977 | wxWindow *result; | |
16978 | PyObject * obj0 = 0 ; | |
16979 | char *kwnames[] = { | |
16980 | (char *) "self", NULL | |
16981 | }; | |
16982 | ||
16983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
16984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
16985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16986 | { | |
16987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16988 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
16989 | ||
16990 | wxPyEndAllowThreads(__tstate); | |
16991 | if (PyErr_Occurred()) SWIG_fail; | |
16992 | } | |
16993 | { | |
16994 | resultobj = wxPyMake_wxObject(result); | |
16995 | } | |
16996 | return resultobj; | |
16997 | fail: | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
17002 | static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) { | |
17003 | PyObject *obj; | |
17004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17005 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17006 | Py_INCREF(obj); | |
17007 | return Py_BuildValue((char *)""); | |
17008 | } | |
17009 | static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17010 | PyObject *resultobj; | |
17011 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17012 | bool arg2 = (bool) True ; | |
17013 | int arg3 = (int) 0 ; | |
17014 | wxActivateEvent *result; | |
17015 | PyObject * obj0 = 0 ; | |
17016 | PyObject * obj1 = 0 ; | |
17017 | PyObject * obj2 = 0 ; | |
17018 | char *kwnames[] = { | |
17019 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17020 | }; | |
17021 | ||
17022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17023 | if (obj0) { | |
17024 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17025 | if (PyErr_Occurred()) SWIG_fail; | |
17026 | } | |
17027 | if (obj1) { | |
17028 | arg2 = (bool) SWIG_AsBool(obj1); | |
17029 | if (PyErr_Occurred()) SWIG_fail; | |
17030 | } | |
17031 | if (obj2) { | |
17032 | arg3 = (int) SWIG_AsInt(obj2); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | } | |
17035 | { | |
17036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17037 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17038 | ||
17039 | wxPyEndAllowThreads(__tstate); | |
17040 | if (PyErr_Occurred()) SWIG_fail; | |
17041 | } | |
17042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17043 | return resultobj; | |
17044 | fail: | |
17045 | return NULL; | |
17046 | } | |
17047 | ||
17048 | ||
17049 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17050 | PyObject *resultobj; | |
17051 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17052 | bool result; | |
17053 | PyObject * obj0 = 0 ; | |
17054 | char *kwnames[] = { | |
17055 | (char *) "self", NULL | |
17056 | }; | |
17057 | ||
17058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17061 | { | |
17062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17063 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17064 | ||
17065 | wxPyEndAllowThreads(__tstate); | |
17066 | if (PyErr_Occurred()) SWIG_fail; | |
17067 | } | |
17068 | { | |
17069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17070 | } | |
17071 | return resultobj; | |
17072 | fail: | |
17073 | return NULL; | |
17074 | } | |
17075 | ||
17076 | ||
17077 | static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) { | |
17078 | PyObject *obj; | |
17079 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17080 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17081 | Py_INCREF(obj); | |
17082 | return Py_BuildValue((char *)""); | |
17083 | } | |
17084 | static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17085 | PyObject *resultobj; | |
17086 | int arg1 = (int) 0 ; | |
17087 | wxInitDialogEvent *result; | |
17088 | PyObject * obj0 = 0 ; | |
17089 | char *kwnames[] = { | |
17090 | (char *) "Id", NULL | |
17091 | }; | |
17092 | ||
17093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17094 | if (obj0) { | |
17095 | arg1 = (int) SWIG_AsInt(obj0); | |
17096 | if (PyErr_Occurred()) SWIG_fail; | |
17097 | } | |
17098 | { | |
17099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17100 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17101 | ||
17102 | wxPyEndAllowThreads(__tstate); | |
17103 | if (PyErr_Occurred()) SWIG_fail; | |
17104 | } | |
17105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17106 | return resultobj; | |
17107 | fail: | |
17108 | return NULL; | |
17109 | } | |
17110 | ||
17111 | ||
17112 | static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) { | |
17113 | PyObject *obj; | |
17114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17115 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17116 | Py_INCREF(obj); | |
17117 | return Py_BuildValue((char *)""); | |
17118 | } | |
17119 | static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17120 | PyObject *resultobj; | |
17121 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17122 | int arg2 = (int) 0 ; | |
17123 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17124 | wxMenuEvent *result; | |
17125 | PyObject * obj0 = 0 ; | |
17126 | PyObject * obj1 = 0 ; | |
17127 | PyObject * obj2 = 0 ; | |
17128 | char *kwnames[] = { | |
17129 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17130 | }; | |
17131 | ||
17132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17133 | if (obj0) { | |
17134 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17135 | if (PyErr_Occurred()) SWIG_fail; | |
17136 | } | |
17137 | if (obj1) { | |
17138 | arg2 = (int) SWIG_AsInt(obj1); | |
17139 | if (PyErr_Occurred()) SWIG_fail; | |
17140 | } | |
17141 | if (obj2) { | |
17142 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17144 | } | |
17145 | { | |
17146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17147 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17148 | ||
17149 | wxPyEndAllowThreads(__tstate); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
17152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17153 | return resultobj; | |
17154 | fail: | |
17155 | return NULL; | |
17156 | } | |
17157 | ||
17158 | ||
17159 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17160 | PyObject *resultobj; | |
17161 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17162 | int result; | |
17163 | PyObject * obj0 = 0 ; | |
17164 | char *kwnames[] = { | |
17165 | (char *) "self", NULL | |
17166 | }; | |
17167 | ||
17168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17171 | { | |
17172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17173 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17174 | ||
17175 | wxPyEndAllowThreads(__tstate); | |
17176 | if (PyErr_Occurred()) SWIG_fail; | |
17177 | } | |
17178 | resultobj = SWIG_FromInt((int)result); | |
17179 | return resultobj; | |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
17185 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
17187 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17188 | bool result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self", NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | { | |
17205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17206 | } | |
17207 | return resultobj; | |
17208 | fail: | |
17209 | return NULL; | |
17210 | } | |
17211 | ||
17212 | ||
17213 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17214 | PyObject *resultobj; | |
17215 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17216 | wxMenu *result; | |
17217 | PyObject * obj0 = 0 ; | |
17218 | char *kwnames[] = { | |
17219 | (char *) "self", NULL | |
17220 | }; | |
17221 | ||
17222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17225 | { | |
17226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17227 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17228 | ||
17229 | wxPyEndAllowThreads(__tstate); | |
17230 | if (PyErr_Occurred()) SWIG_fail; | |
17231 | } | |
17232 | { | |
17233 | resultobj = wxPyMake_wxObject(result); | |
17234 | } | |
17235 | return resultobj; | |
17236 | fail: | |
17237 | return NULL; | |
17238 | } | |
17239 | ||
17240 | ||
17241 | static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) { | |
17242 | PyObject *obj; | |
17243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17244 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17245 | Py_INCREF(obj); | |
17246 | return Py_BuildValue((char *)""); | |
17247 | } | |
17248 | static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17249 | PyObject *resultobj; | |
17250 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17251 | int arg2 = (int) 0 ; | |
17252 | wxCloseEvent *result; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | PyObject * obj1 = 0 ; | |
17255 | char *kwnames[] = { | |
17256 | (char *) "type",(char *) "winid", NULL | |
17257 | }; | |
17258 | ||
17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17260 | if (obj0) { | |
17261 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
17262 | if (PyErr_Occurred()) SWIG_fail; | |
17263 | } | |
17264 | if (obj1) { | |
17265 | arg2 = (int) SWIG_AsInt(obj1); | |
17266 | if (PyErr_Occurred()) SWIG_fail; | |
17267 | } | |
17268 | { | |
17269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17270 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17271 | ||
17272 | wxPyEndAllowThreads(__tstate); | |
17273 | if (PyErr_Occurred()) SWIG_fail; | |
17274 | } | |
17275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17276 | return resultobj; | |
17277 | fail: | |
17278 | return NULL; | |
17279 | } | |
17280 | ||
17281 | ||
17282 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17283 | PyObject *resultobj; | |
17284 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17285 | bool arg2 ; | |
17286 | PyObject * obj0 = 0 ; | |
17287 | PyObject * obj1 = 0 ; | |
17288 | char *kwnames[] = { | |
17289 | (char *) "self",(char *) "logOff", NULL | |
17290 | }; | |
17291 | ||
17292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17295 | arg2 = (bool) SWIG_AsBool(obj1); | |
17296 | if (PyErr_Occurred()) SWIG_fail; | |
17297 | { | |
17298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17299 | (arg1)->SetLoggingOff(arg2); | |
17300 | ||
17301 | wxPyEndAllowThreads(__tstate); | |
17302 | if (PyErr_Occurred()) SWIG_fail; | |
17303 | } | |
17304 | Py_INCREF(Py_None); resultobj = Py_None; | |
17305 | return resultobj; | |
17306 | fail: | |
17307 | return NULL; | |
17308 | } | |
17309 | ||
17310 | ||
17311 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17312 | PyObject *resultobj; | |
17313 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17314 | bool result; | |
17315 | PyObject * obj0 = 0 ; | |
17316 | char *kwnames[] = { | |
17317 | (char *) "self", NULL | |
17318 | }; | |
17319 | ||
17320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17323 | { | |
17324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17325 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17326 | ||
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
17330 | { | |
17331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17332 | } | |
17333 | return resultobj; | |
17334 | fail: | |
17335 | return NULL; | |
17336 | } | |
17337 | ||
17338 | ||
17339 | static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17340 | PyObject *resultobj; | |
17341 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17342 | bool arg2 = (bool) True ; | |
17343 | PyObject * obj0 = 0 ; | |
17344 | PyObject * obj1 = 0 ; | |
17345 | char *kwnames[] = { | |
17346 | (char *) "self",(char *) "veto", NULL | |
17347 | }; | |
17348 | ||
17349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17352 | if (obj1) { | |
17353 | arg2 = (bool) SWIG_AsBool(obj1); | |
17354 | if (PyErr_Occurred()) SWIG_fail; | |
17355 | } | |
17356 | { | |
17357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17358 | (arg1)->Veto(arg2); | |
17359 | ||
17360 | wxPyEndAllowThreads(__tstate); | |
17361 | if (PyErr_Occurred()) SWIG_fail; | |
17362 | } | |
17363 | Py_INCREF(Py_None); resultobj = Py_None; | |
17364 | return resultobj; | |
17365 | fail: | |
17366 | return NULL; | |
17367 | } | |
17368 | ||
17369 | ||
17370 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17371 | PyObject *resultobj; | |
17372 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17373 | bool arg2 ; | |
17374 | PyObject * obj0 = 0 ; | |
17375 | PyObject * obj1 = 0 ; | |
17376 | char *kwnames[] = { | |
17377 | (char *) "self",(char *) "canVeto", NULL | |
17378 | }; | |
17379 | ||
17380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17383 | arg2 = (bool) SWIG_AsBool(obj1); | |
17384 | if (PyErr_Occurred()) SWIG_fail; | |
17385 | { | |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | (arg1)->SetCanVeto(arg2); | |
17388 | ||
17389 | wxPyEndAllowThreads(__tstate); | |
17390 | if (PyErr_Occurred()) SWIG_fail; | |
17391 | } | |
17392 | Py_INCREF(Py_None); resultobj = Py_None; | |
17393 | return resultobj; | |
17394 | fail: | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
17399 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17400 | PyObject *resultobj; | |
17401 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17402 | bool result; | |
17403 | PyObject * obj0 = 0 ; | |
17404 | char *kwnames[] = { | |
17405 | (char *) "self", NULL | |
17406 | }; | |
17407 | ||
17408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17411 | { | |
17412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17413 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17414 | ||
17415 | wxPyEndAllowThreads(__tstate); | |
17416 | if (PyErr_Occurred()) SWIG_fail; | |
17417 | } | |
17418 | { | |
17419 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17420 | } | |
17421 | return resultobj; | |
17422 | fail: | |
17423 | return NULL; | |
17424 | } | |
17425 | ||
17426 | ||
17427 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17428 | PyObject *resultobj; | |
17429 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17430 | bool result; | |
17431 | PyObject * obj0 = 0 ; | |
17432 | char *kwnames[] = { | |
17433 | (char *) "self", NULL | |
17434 | }; | |
17435 | ||
17436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17439 | { | |
17440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17441 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17442 | ||
17443 | wxPyEndAllowThreads(__tstate); | |
17444 | if (PyErr_Occurred()) SWIG_fail; | |
17445 | } | |
17446 | { | |
17447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17448 | } | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
17455 | static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) { | |
17456 | PyObject *obj; | |
17457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17458 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17459 | Py_INCREF(obj); | |
17460 | return Py_BuildValue((char *)""); | |
17461 | } | |
17462 | static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17463 | PyObject *resultobj; | |
17464 | int arg1 = (int) 0 ; | |
17465 | bool arg2 = (bool) False ; | |
17466 | wxShowEvent *result; | |
17467 | PyObject * obj0 = 0 ; | |
17468 | PyObject * obj1 = 0 ; | |
17469 | char *kwnames[] = { | |
17470 | (char *) "winid",(char *) "show", NULL | |
17471 | }; | |
17472 | ||
17473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17474 | if (obj0) { | |
17475 | arg1 = (int) SWIG_AsInt(obj0); | |
17476 | if (PyErr_Occurred()) SWIG_fail; | |
17477 | } | |
17478 | if (obj1) { | |
17479 | arg2 = (bool) SWIG_AsBool(obj1); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
17482 | { | |
17483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17484 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17485 | ||
17486 | wxPyEndAllowThreads(__tstate); | |
17487 | if (PyErr_Occurred()) SWIG_fail; | |
17488 | } | |
17489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17490 | return resultobj; | |
17491 | fail: | |
17492 | return NULL; | |
17493 | } | |
17494 | ||
17495 | ||
17496 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17497 | PyObject *resultobj; | |
17498 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17499 | bool arg2 ; | |
17500 | PyObject * obj0 = 0 ; | |
17501 | PyObject * obj1 = 0 ; | |
17502 | char *kwnames[] = { | |
17503 | (char *) "self",(char *) "show", NULL | |
17504 | }; | |
17505 | ||
17506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17509 | arg2 = (bool) SWIG_AsBool(obj1); | |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
17511 | { | |
17512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17513 | (arg1)->SetShow(arg2); | |
17514 | ||
17515 | wxPyEndAllowThreads(__tstate); | |
17516 | if (PyErr_Occurred()) SWIG_fail; | |
17517 | } | |
17518 | Py_INCREF(Py_None); resultobj = Py_None; | |
17519 | return resultobj; | |
17520 | fail: | |
17521 | return NULL; | |
17522 | } | |
17523 | ||
17524 | ||
17525 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17526 | PyObject *resultobj; | |
17527 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17528 | bool result; | |
17529 | PyObject * obj0 = 0 ; | |
17530 | char *kwnames[] = { | |
17531 | (char *) "self", NULL | |
17532 | }; | |
17533 | ||
17534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17537 | { | |
17538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17539 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17540 | ||
17541 | wxPyEndAllowThreads(__tstate); | |
17542 | if (PyErr_Occurred()) SWIG_fail; | |
17543 | } | |
17544 | { | |
17545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17546 | } | |
17547 | return resultobj; | |
17548 | fail: | |
17549 | return NULL; | |
17550 | } | |
17551 | ||
17552 | ||
17553 | static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) { | |
17554 | PyObject *obj; | |
17555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17556 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17557 | Py_INCREF(obj); | |
17558 | return Py_BuildValue((char *)""); | |
17559 | } | |
17560 | static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17561 | PyObject *resultobj; | |
17562 | int arg1 = (int) 0 ; | |
17563 | bool arg2 = (bool) True ; | |
17564 | wxIconizeEvent *result; | |
17565 | PyObject * obj0 = 0 ; | |
17566 | PyObject * obj1 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "id",(char *) "iconized", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17572 | if (obj0) { | |
17573 | arg1 = (int) SWIG_AsInt(obj0); | |
17574 | if (PyErr_Occurred()) SWIG_fail; | |
17575 | } | |
17576 | if (obj1) { | |
17577 | arg2 = (bool) SWIG_AsBool(obj1); | |
17578 | if (PyErr_Occurred()) SWIG_fail; | |
17579 | } | |
17580 | { | |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
17583 | ||
17584 | wxPyEndAllowThreads(__tstate); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
17588 | return resultobj; | |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17595 | PyObject *resultobj; | |
17596 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 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:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
17604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
17605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17606 | { | |
17607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17608 | result = (bool)(arg1)->Iconized(); | |
17609 | ||
17610 | wxPyEndAllowThreads(__tstate); | |
17611 | if (PyErr_Occurred()) SWIG_fail; | |
17612 | } | |
17613 | { | |
17614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17615 | } | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17623 | PyObject *obj; | |
17624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17625 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
17626 | Py_INCREF(obj); | |
17627 | return Py_BuildValue((char *)""); | |
17628 | } | |
17629 | static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | int arg1 = (int) 0 ; | |
17632 | wxMaximizeEvent *result; | |
17633 | PyObject * obj0 = 0 ; | |
17634 | char *kwnames[] = { | |
17635 | (char *) "id", NULL | |
17636 | }; | |
17637 | ||
17638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
17639 | if (obj0) { | |
17640 | arg1 = (int) SWIG_AsInt(obj0); | |
17641 | if (PyErr_Occurred()) SWIG_fail; | |
17642 | } | |
17643 | { | |
17644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17645 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
17646 | ||
17647 | wxPyEndAllowThreads(__tstate); | |
17648 | if (PyErr_Occurred()) SWIG_fail; | |
17649 | } | |
17650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
17651 | return resultobj; | |
17652 | fail: | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) { | |
17658 | PyObject *obj; | |
17659 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17660 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
17661 | Py_INCREF(obj); | |
17662 | return Py_BuildValue((char *)""); | |
17663 | } | |
17664 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17665 | PyObject *resultobj; | |
17666 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17667 | wxPoint result; | |
17668 | PyObject * obj0 = 0 ; | |
17669 | char *kwnames[] = { | |
17670 | (char *) "self", NULL | |
17671 | }; | |
17672 | ||
17673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17676 | { | |
17677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17678 | result = (arg1)->GetPosition(); | |
17679 | ||
17680 | wxPyEndAllowThreads(__tstate); | |
17681 | if (PyErr_Occurred()) SWIG_fail; | |
17682 | } | |
17683 | { | |
17684 | wxPoint * resultptr; | |
17685 | resultptr = new wxPoint((wxPoint &) result); | |
17686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17687 | } | |
17688 | return resultobj; | |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17695 | PyObject *resultobj; | |
17696 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17697 | int result; | |
17698 | PyObject * obj0 = 0 ; | |
17699 | char *kwnames[] = { | |
17700 | (char *) "self", NULL | |
17701 | }; | |
17702 | ||
17703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
17704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17706 | { | |
17707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17708 | result = (int)(arg1)->GetNumberOfFiles(); | |
17709 | ||
17710 | wxPyEndAllowThreads(__tstate); | |
17711 | if (PyErr_Occurred()) SWIG_fail; | |
17712 | } | |
17713 | resultobj = SWIG_FromInt((int)result); | |
17714 | return resultobj; | |
17715 | fail: | |
17716 | return NULL; | |
17717 | } | |
17718 | ||
17719 | ||
17720 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17721 | PyObject *resultobj; | |
17722 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
17723 | PyObject *result; | |
17724 | PyObject * obj0 = 0 ; | |
17725 | char *kwnames[] = { | |
17726 | (char *) "self", NULL | |
17727 | }; | |
17728 | ||
17729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
17730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
17731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17732 | { | |
17733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17734 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
17735 | ||
17736 | wxPyEndAllowThreads(__tstate); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | resultobj = result; | |
17740 | return resultobj; | |
17741 | fail: | |
17742 | return NULL; | |
17743 | } | |
17744 | ||
17745 | ||
17746 | static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) { | |
17747 | PyObject *obj; | |
17748 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17749 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
17750 | Py_INCREF(obj); | |
17751 | return Py_BuildValue((char *)""); | |
17752 | } | |
17753 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17754 | PyObject *resultobj; | |
17755 | int arg1 = (int) 0 ; | |
17756 | wxUpdateUIEvent *result; | |
17757 | PyObject * obj0 = 0 ; | |
17758 | char *kwnames[] = { | |
17759 | (char *) "commandId", NULL | |
17760 | }; | |
17761 | ||
17762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
17763 | if (obj0) { | |
17764 | arg1 = (int) SWIG_AsInt(obj0); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | } | |
17767 | { | |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17784 | bool result; | |
17785 | PyObject * obj0 = 0 ; | |
17786 | char *kwnames[] = { | |
17787 | (char *) "self", NULL | |
17788 | }; | |
17789 | ||
17790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
17791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17793 | { | |
17794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17795 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
17796 | ||
17797 | wxPyEndAllowThreads(__tstate); | |
17798 | if (PyErr_Occurred()) SWIG_fail; | |
17799 | } | |
17800 | { | |
17801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17802 | } | |
17803 | return resultobj; | |
17804 | fail: | |
17805 | return NULL; | |
17806 | } | |
17807 | ||
17808 | ||
17809 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17810 | PyObject *resultobj; | |
17811 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17812 | bool result; | |
17813 | PyObject * obj0 = 0 ; | |
17814 | char *kwnames[] = { | |
17815 | (char *) "self", NULL | |
17816 | }; | |
17817 | ||
17818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
17819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
17824 | ||
17825 | wxPyEndAllowThreads(__tstate); | |
17826 | if (PyErr_Occurred()) SWIG_fail; | |
17827 | } | |
17828 | { | |
17829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17830 | } | |
17831 | return resultobj; | |
17832 | fail: | |
17833 | return NULL; | |
17834 | } | |
17835 | ||
17836 | ||
17837 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17838 | PyObject *resultobj; | |
17839 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17840 | wxString result; | |
17841 | PyObject * obj0 = 0 ; | |
17842 | char *kwnames[] = { | |
17843 | (char *) "self", NULL | |
17844 | }; | |
17845 | ||
17846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
17847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17849 | { | |
17850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17851 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
17852 | ||
17853 | wxPyEndAllowThreads(__tstate); | |
17854 | if (PyErr_Occurred()) SWIG_fail; | |
17855 | } | |
17856 | { | |
17857 | #if wxUSE_UNICODE | |
17858 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17859 | #else | |
17860 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17861 | #endif | |
17862 | } | |
17863 | return resultobj; | |
17864 | fail: | |
17865 | return NULL; | |
17866 | } | |
17867 | ||
17868 | ||
17869 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17870 | PyObject *resultobj; | |
17871 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17872 | bool result; | |
17873 | PyObject * obj0 = 0 ; | |
17874 | char *kwnames[] = { | |
17875 | (char *) "self", NULL | |
17876 | }; | |
17877 | ||
17878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
17879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17881 | { | |
17882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17883 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
17884 | ||
17885 | wxPyEndAllowThreads(__tstate); | |
17886 | if (PyErr_Occurred()) SWIG_fail; | |
17887 | } | |
17888 | { | |
17889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17890 | } | |
17891 | return resultobj; | |
17892 | fail: | |
17893 | return NULL; | |
17894 | } | |
17895 | ||
17896 | ||
17897 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17898 | PyObject *resultobj; | |
17899 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17900 | bool result; | |
17901 | PyObject * obj0 = 0 ; | |
17902 | char *kwnames[] = { | |
17903 | (char *) "self", NULL | |
17904 | }; | |
17905 | ||
17906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
17907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17909 | { | |
17910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17911 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
17912 | ||
17913 | wxPyEndAllowThreads(__tstate); | |
17914 | if (PyErr_Occurred()) SWIG_fail; | |
17915 | } | |
17916 | { | |
17917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17918 | } | |
17919 | return resultobj; | |
17920 | fail: | |
17921 | return NULL; | |
17922 | } | |
17923 | ||
17924 | ||
17925 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17926 | PyObject *resultobj; | |
17927 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17928 | bool result; | |
17929 | PyObject * obj0 = 0 ; | |
17930 | char *kwnames[] = { | |
17931 | (char *) "self", NULL | |
17932 | }; | |
17933 | ||
17934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
17935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17937 | { | |
17938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17939 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
17940 | ||
17941 | wxPyEndAllowThreads(__tstate); | |
17942 | if (PyErr_Occurred()) SWIG_fail; | |
17943 | } | |
17944 | { | |
17945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17946 | } | |
17947 | return resultobj; | |
17948 | fail: | |
17949 | return NULL; | |
17950 | } | |
17951 | ||
17952 | ||
17953 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17954 | PyObject *resultobj; | |
17955 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17956 | bool arg2 ; | |
17957 | PyObject * obj0 = 0 ; | |
17958 | PyObject * obj1 = 0 ; | |
17959 | char *kwnames[] = { | |
17960 | (char *) "self",(char *) "check", NULL | |
17961 | }; | |
17962 | ||
17963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
17964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17966 | arg2 = (bool) SWIG_AsBool(obj1); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | { | |
17969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17970 | (arg1)->Check(arg2); | |
17971 | ||
17972 | wxPyEndAllowThreads(__tstate); | |
17973 | if (PyErr_Occurred()) SWIG_fail; | |
17974 | } | |
17975 | Py_INCREF(Py_None); resultobj = Py_None; | |
17976 | return resultobj; | |
17977 | fail: | |
17978 | return NULL; | |
17979 | } | |
17980 | ||
17981 | ||
17982 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17983 | PyObject *resultobj; | |
17984 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
17985 | bool arg2 ; | |
17986 | PyObject * obj0 = 0 ; | |
17987 | PyObject * obj1 = 0 ; | |
17988 | char *kwnames[] = { | |
17989 | (char *) "self",(char *) "enable", NULL | |
17990 | }; | |
17991 | ||
17992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
17993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
17994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17995 | arg2 = (bool) SWIG_AsBool(obj1); | |
17996 | if (PyErr_Occurred()) SWIG_fail; | |
17997 | { | |
17998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17999 | (arg1)->Enable(arg2); | |
18000 | ||
18001 | wxPyEndAllowThreads(__tstate); | |
18002 | if (PyErr_Occurred()) SWIG_fail; | |
18003 | } | |
18004 | Py_INCREF(Py_None); resultobj = Py_None; | |
18005 | return resultobj; | |
18006 | fail: | |
18007 | return NULL; | |
18008 | } | |
18009 | ||
18010 | ||
18011 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18012 | PyObject *resultobj; | |
18013 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18014 | wxString *arg2 = 0 ; | |
18015 | bool temp2 = False ; | |
18016 | PyObject * obj0 = 0 ; | |
18017 | PyObject * obj1 = 0 ; | |
18018 | char *kwnames[] = { | |
18019 | (char *) "self",(char *) "text", NULL | |
18020 | }; | |
18021 | ||
18022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18025 | { | |
18026 | arg2 = wxString_in_helper(obj1); | |
18027 | if (arg2 == NULL) SWIG_fail; | |
18028 | temp2 = True; | |
18029 | } | |
18030 | { | |
18031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18032 | (arg1)->SetText((wxString const &)*arg2); | |
18033 | ||
18034 | wxPyEndAllowThreads(__tstate); | |
18035 | if (PyErr_Occurred()) SWIG_fail; | |
18036 | } | |
18037 | Py_INCREF(Py_None); resultobj = Py_None; | |
18038 | { | |
18039 | if (temp2) | |
18040 | delete arg2; | |
18041 | } | |
18042 | return resultobj; | |
18043 | fail: | |
18044 | { | |
18045 | if (temp2) | |
18046 | delete arg2; | |
18047 | } | |
18048 | return NULL; | |
18049 | } | |
18050 | ||
18051 | ||
18052 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18053 | PyObject *resultobj; | |
18054 | long arg1 ; | |
18055 | PyObject * obj0 = 0 ; | |
18056 | char *kwnames[] = { | |
18057 | (char *) "updateInterval", NULL | |
18058 | }; | |
18059 | ||
18060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
18061 | arg1 = (long) SWIG_AsLong(obj0); | |
18062 | if (PyErr_Occurred()) SWIG_fail; | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18066 | ||
18067 | wxPyEndAllowThreads(__tstate); | |
18068 | if (PyErr_Occurred()) SWIG_fail; | |
18069 | } | |
18070 | Py_INCREF(Py_None); resultobj = Py_None; | |
18071 | return resultobj; | |
18072 | fail: | |
18073 | return NULL; | |
18074 | } | |
18075 | ||
18076 | ||
18077 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18078 | PyObject *resultobj; | |
18079 | long result; | |
18080 | char *kwnames[] = { | |
18081 | NULL | |
18082 | }; | |
18083 | ||
18084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18085 | { | |
18086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18087 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18088 | ||
18089 | wxPyEndAllowThreads(__tstate); | |
18090 | if (PyErr_Occurred()) SWIG_fail; | |
18091 | } | |
18092 | resultobj = SWIG_FromLong((long)result); | |
18093 | return resultobj; | |
18094 | fail: | |
18095 | return NULL; | |
18096 | } | |
18097 | ||
18098 | ||
18099 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18100 | PyObject *resultobj; | |
18101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18102 | bool result; | |
18103 | PyObject * obj0 = 0 ; | |
18104 | char *kwnames[] = { | |
18105 | (char *) "win", NULL | |
18106 | }; | |
18107 | ||
18108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18111 | { | |
18112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18113 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18114 | ||
18115 | wxPyEndAllowThreads(__tstate); | |
18116 | if (PyErr_Occurred()) SWIG_fail; | |
18117 | } | |
18118 | { | |
18119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18120 | } | |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | char *kwnames[] = { | |
18130 | NULL | |
18131 | }; | |
18132 | ||
18133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18134 | { | |
18135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18136 | wxUpdateUIEvent::ResetUpdateTime(); | |
18137 | ||
18138 | wxPyEndAllowThreads(__tstate); | |
18139 | if (PyErr_Occurred()) SWIG_fail; | |
18140 | } | |
18141 | Py_INCREF(Py_None); resultobj = Py_None; | |
18142 | return resultobj; | |
18143 | fail: | |
18144 | return NULL; | |
18145 | } | |
18146 | ||
18147 | ||
18148 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18149 | PyObject *resultobj; | |
18150 | int arg1 ; | |
18151 | PyObject * obj0 = 0 ; | |
18152 | char *kwnames[] = { | |
18153 | (char *) "mode", NULL | |
18154 | }; | |
18155 | ||
18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
18157 | arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0); | |
18158 | if (PyErr_Occurred()) SWIG_fail; | |
18159 | { | |
18160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18161 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18162 | ||
18163 | wxPyEndAllowThreads(__tstate); | |
18164 | if (PyErr_Occurred()) SWIG_fail; | |
18165 | } | |
18166 | Py_INCREF(Py_None); resultobj = Py_None; | |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
18173 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18174 | PyObject *resultobj; | |
18175 | int result; | |
18176 | char *kwnames[] = { | |
18177 | NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18181 | { | |
18182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18183 | result = (int)wxUpdateUIEvent::GetMode(); | |
18184 | ||
18185 | wxPyEndAllowThreads(__tstate); | |
18186 | if (PyErr_Occurred()) SWIG_fail; | |
18187 | } | |
18188 | resultobj = SWIG_FromInt((int)result); | |
18189 | return resultobj; | |
18190 | fail: | |
18191 | return NULL; | |
18192 | } | |
18193 | ||
18194 | ||
18195 | static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) { | |
18196 | PyObject *obj; | |
18197 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18198 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18199 | Py_INCREF(obj); | |
18200 | return Py_BuildValue((char *)""); | |
18201 | } | |
18202 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18203 | PyObject *resultobj; | |
18204 | wxSysColourChangedEvent *result; | |
18205 | char *kwnames[] = { | |
18206 | NULL | |
18207 | }; | |
18208 | ||
18209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18210 | { | |
18211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18212 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18213 | ||
18214 | wxPyEndAllowThreads(__tstate); | |
18215 | if (PyErr_Occurred()) SWIG_fail; | |
18216 | } | |
18217 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18218 | return resultobj; | |
18219 | fail: | |
18220 | return NULL; | |
18221 | } | |
18222 | ||
18223 | ||
18224 | static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18225 | PyObject *obj; | |
18226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18227 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18228 | Py_INCREF(obj); | |
18229 | return Py_BuildValue((char *)""); | |
18230 | } | |
18231 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18232 | PyObject *resultobj; | |
18233 | int arg1 = (int) 0 ; | |
18234 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18235 | wxMouseCaptureChangedEvent *result; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | PyObject * obj1 = 0 ; | |
18238 | char *kwnames[] = { | |
18239 | (char *) "winid",(char *) "gainedCapture", NULL | |
18240 | }; | |
18241 | ||
18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18243 | if (obj0) { | |
18244 | arg1 = (int) SWIG_AsInt(obj0); | |
18245 | if (PyErr_Occurred()) SWIG_fail; | |
18246 | } | |
18247 | if (obj1) { | |
18248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18250 | } | |
18251 | { | |
18252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18253 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18254 | ||
18255 | wxPyEndAllowThreads(__tstate); | |
18256 | if (PyErr_Occurred()) SWIG_fail; | |
18257 | } | |
18258 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18259 | return resultobj; | |
18260 | fail: | |
18261 | return NULL; | |
18262 | } | |
18263 | ||
18264 | ||
18265 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18266 | PyObject *resultobj; | |
18267 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18268 | wxWindow *result; | |
18269 | PyObject * obj0 = 0 ; | |
18270 | char *kwnames[] = { | |
18271 | (char *) "self", NULL | |
18272 | }; | |
18273 | ||
18274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | { | |
18285 | resultobj = wxPyMake_wxObject(result); | |
18286 | } | |
18287 | return resultobj; | |
18288 | fail: | |
18289 | return NULL; | |
18290 | } | |
18291 | ||
18292 | ||
18293 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18294 | PyObject *obj; | |
18295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18296 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18297 | Py_INCREF(obj); | |
18298 | return Py_BuildValue((char *)""); | |
18299 | } | |
18300 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18301 | PyObject *resultobj; | |
18302 | wxDisplayChangedEvent *result; | |
18303 | char *kwnames[] = { | |
18304 | NULL | |
18305 | }; | |
18306 | ||
18307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18311 | ||
18312 | wxPyEndAllowThreads(__tstate); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | } | |
18315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
18322 | static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18323 | PyObject *obj; | |
18324 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18325 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18326 | Py_INCREF(obj); | |
18327 | return Py_BuildValue((char *)""); | |
18328 | } | |
18329 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18330 | PyObject *resultobj; | |
18331 | int arg1 = (int) 0 ; | |
18332 | wxPaletteChangedEvent *result; | |
18333 | PyObject * obj0 = 0 ; | |
18334 | char *kwnames[] = { | |
18335 | (char *) "id", NULL | |
18336 | }; | |
18337 | ||
18338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18339 | if (obj0) { | |
18340 | arg1 = (int) SWIG_AsInt(obj0); | |
18341 | if (PyErr_Occurred()) SWIG_fail; | |
18342 | } | |
18343 | { | |
18344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18345 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18346 | ||
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18351 | return resultobj; | |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
18357 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18358 | PyObject *resultobj; | |
18359 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18361 | PyObject * obj0 = 0 ; | |
18362 | PyObject * obj1 = 0 ; | |
18363 | char *kwnames[] = { | |
18364 | (char *) "self",(char *) "win", NULL | |
18365 | }; | |
18366 | ||
18367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18372 | { | |
18373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18374 | (arg1)->SetChangedWindow(arg2); | |
18375 | ||
18376 | wxPyEndAllowThreads(__tstate); | |
18377 | if (PyErr_Occurred()) SWIG_fail; | |
18378 | } | |
18379 | Py_INCREF(Py_None); resultobj = Py_None; | |
18380 | return resultobj; | |
18381 | fail: | |
18382 | return NULL; | |
18383 | } | |
18384 | ||
18385 | ||
18386 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18387 | PyObject *resultobj; | |
18388 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18389 | wxWindow *result; | |
18390 | PyObject * obj0 = 0 ; | |
18391 | char *kwnames[] = { | |
18392 | (char *) "self", NULL | |
18393 | }; | |
18394 | ||
18395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18398 | { | |
18399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18400 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18401 | ||
18402 | wxPyEndAllowThreads(__tstate); | |
18403 | if (PyErr_Occurred()) SWIG_fail; | |
18404 | } | |
18405 | { | |
18406 | resultobj = wxPyMake_wxObject(result); | |
18407 | } | |
18408 | return resultobj; | |
18409 | fail: | |
18410 | return NULL; | |
18411 | } | |
18412 | ||
18413 | ||
18414 | static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) { | |
18415 | PyObject *obj; | |
18416 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18417 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18418 | Py_INCREF(obj); | |
18419 | return Py_BuildValue((char *)""); | |
18420 | } | |
18421 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18422 | PyObject *resultobj; | |
18423 | int arg1 = (int) 0 ; | |
18424 | wxQueryNewPaletteEvent *result; | |
18425 | PyObject * obj0 = 0 ; | |
18426 | char *kwnames[] = { | |
18427 | (char *) "winid", NULL | |
18428 | }; | |
18429 | ||
18430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18431 | if (obj0) { | |
18432 | arg1 = (int) SWIG_AsInt(obj0); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | { | |
18436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18437 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18438 | ||
18439 | wxPyEndAllowThreads(__tstate); | |
18440 | if (PyErr_Occurred()) SWIG_fail; | |
18441 | } | |
18442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
18449 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18450 | PyObject *resultobj; | |
18451 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18452 | bool arg2 ; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | PyObject * obj1 = 0 ; | |
18455 | char *kwnames[] = { | |
18456 | (char *) "self",(char *) "realized", NULL | |
18457 | }; | |
18458 | ||
18459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18462 | arg2 = (bool) SWIG_AsBool(obj1); | |
18463 | if (PyErr_Occurred()) SWIG_fail; | |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | (arg1)->SetPaletteRealized(arg2); | |
18467 | ||
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | Py_INCREF(Py_None); resultobj = Py_None; | |
18472 | return resultobj; | |
18473 | fail: | |
18474 | return NULL; | |
18475 | } | |
18476 | ||
18477 | ||
18478 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18479 | PyObject *resultobj; | |
18480 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18481 | bool result; | |
18482 | PyObject * obj0 = 0 ; | |
18483 | char *kwnames[] = { | |
18484 | (char *) "self", NULL | |
18485 | }; | |
18486 | ||
18487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18490 | { | |
18491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18492 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18493 | ||
18494 | wxPyEndAllowThreads(__tstate); | |
18495 | if (PyErr_Occurred()) SWIG_fail; | |
18496 | } | |
18497 | { | |
18498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18499 | } | |
18500 | return resultobj; | |
18501 | fail: | |
18502 | return NULL; | |
18503 | } | |
18504 | ||
18505 | ||
18506 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) { | |
18507 | PyObject *obj; | |
18508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18509 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18510 | Py_INCREF(obj); | |
18511 | return Py_BuildValue((char *)""); | |
18512 | } | |
18513 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18514 | PyObject *resultobj; | |
18515 | wxNavigationKeyEvent *result; | |
18516 | char *kwnames[] = { | |
18517 | NULL | |
18518 | }; | |
18519 | ||
18520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18521 | { | |
18522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18523 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18524 | ||
18525 | wxPyEndAllowThreads(__tstate); | |
18526 | if (PyErr_Occurred()) SWIG_fail; | |
18527 | } | |
18528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18529 | return resultobj; | |
18530 | fail: | |
18531 | return NULL; | |
18532 | } | |
18533 | ||
18534 | ||
18535 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18536 | PyObject *resultobj; | |
18537 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18538 | bool result; | |
18539 | PyObject * obj0 = 0 ; | |
18540 | char *kwnames[] = { | |
18541 | (char *) "self", NULL | |
18542 | }; | |
18543 | ||
18544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18547 | { | |
18548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18549 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18550 | ||
18551 | wxPyEndAllowThreads(__tstate); | |
18552 | if (PyErr_Occurred()) SWIG_fail; | |
18553 | } | |
18554 | { | |
18555 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18556 | } | |
18557 | return resultobj; | |
18558 | fail: | |
18559 | return NULL; | |
18560 | } | |
18561 | ||
18562 | ||
18563 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18564 | PyObject *resultobj; | |
18565 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18566 | bool arg2 ; | |
18567 | PyObject * obj0 = 0 ; | |
18568 | PyObject * obj1 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self",(char *) "bForward", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18576 | arg2 = (bool) SWIG_AsBool(obj1); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | { | |
18579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18580 | (arg1)->SetDirection(arg2); | |
18581 | ||
18582 | wxPyEndAllowThreads(__tstate); | |
18583 | if (PyErr_Occurred()) SWIG_fail; | |
18584 | } | |
18585 | Py_INCREF(Py_None); resultobj = Py_None; | |
18586 | return resultobj; | |
18587 | fail: | |
18588 | return NULL; | |
18589 | } | |
18590 | ||
18591 | ||
18592 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18593 | PyObject *resultobj; | |
18594 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18595 | bool result; | |
18596 | PyObject * obj0 = 0 ; | |
18597 | char *kwnames[] = { | |
18598 | (char *) "self", NULL | |
18599 | }; | |
18600 | ||
18601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
18602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18604 | { | |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | { | |
18612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18613 | } | |
18614 | return resultobj; | |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
18620 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18621 | PyObject *resultobj; | |
18622 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18623 | bool arg2 ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "bIs", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18633 | arg2 = (bool) SWIG_AsBool(obj1); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | { | |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | (arg1)->SetWindowChange(arg2); | |
18638 | ||
18639 | wxPyEndAllowThreads(__tstate); | |
18640 | if (PyErr_Occurred()) SWIG_fail; | |
18641 | } | |
18642 | Py_INCREF(Py_None); resultobj = Py_None; | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
18649 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18650 | PyObject *resultobj; | |
18651 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18652 | wxWindow *result; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | char *kwnames[] = { | |
18655 | (char *) "self", NULL | |
18656 | }; | |
18657 | ||
18658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
18659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18661 | { | |
18662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18663 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
18664 | ||
18665 | wxPyEndAllowThreads(__tstate); | |
18666 | if (PyErr_Occurred()) SWIG_fail; | |
18667 | } | |
18668 | { | |
18669 | resultobj = wxPyMake_wxObject(result); | |
18670 | } | |
18671 | return resultobj; | |
18672 | fail: | |
18673 | return NULL; | |
18674 | } | |
18675 | ||
18676 | ||
18677 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18678 | PyObject *resultobj; | |
18679 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18680 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18681 | PyObject * obj0 = 0 ; | |
18682 | PyObject * obj1 = 0 ; | |
18683 | char *kwnames[] = { | |
18684 | (char *) "self",(char *) "win", NULL | |
18685 | }; | |
18686 | ||
18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
18688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18692 | { | |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18694 | (arg1)->SetCurrentFocus(arg2); | |
18695 | ||
18696 | wxPyEndAllowThreads(__tstate); | |
18697 | if (PyErr_Occurred()) SWIG_fail; | |
18698 | } | |
18699 | Py_INCREF(Py_None); resultobj = Py_None; | |
18700 | return resultobj; | |
18701 | fail: | |
18702 | return NULL; | |
18703 | } | |
18704 | ||
18705 | ||
18706 | static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) { | |
18707 | PyObject *obj; | |
18708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18709 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
18710 | Py_INCREF(obj); | |
18711 | return Py_BuildValue((char *)""); | |
18712 | } | |
18713 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18714 | PyObject *resultobj; | |
18715 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18716 | wxWindowCreateEvent *result; | |
18717 | PyObject * obj0 = 0 ; | |
18718 | char *kwnames[] = { | |
18719 | (char *) "win", NULL | |
18720 | }; | |
18721 | ||
18722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
18723 | if (obj0) { | |
18724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18726 | } | |
18727 | { | |
18728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18729 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
18730 | ||
18731 | wxPyEndAllowThreads(__tstate); | |
18732 | if (PyErr_Occurred()) SWIG_fail; | |
18733 | } | |
18734 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
18735 | return resultobj; | |
18736 | fail: | |
18737 | return NULL; | |
18738 | } | |
18739 | ||
18740 | ||
18741 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18742 | PyObject *resultobj; | |
18743 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
18744 | wxWindow *result; | |
18745 | PyObject * obj0 = 0 ; | |
18746 | char *kwnames[] = { | |
18747 | (char *) "self", NULL | |
18748 | }; | |
18749 | ||
18750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
18752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18753 | { | |
18754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18755 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
18756 | ||
18757 | wxPyEndAllowThreads(__tstate); | |
18758 | if (PyErr_Occurred()) SWIG_fail; | |
18759 | } | |
18760 | { | |
18761 | resultobj = wxPyMake_wxObject(result); | |
18762 | } | |
18763 | return resultobj; | |
18764 | fail: | |
18765 | return NULL; | |
18766 | } | |
18767 | ||
18768 | ||
18769 | static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) { | |
18770 | PyObject *obj; | |
18771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18772 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
18773 | Py_INCREF(obj); | |
18774 | return Py_BuildValue((char *)""); | |
18775 | } | |
18776 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18777 | PyObject *resultobj; | |
18778 | wxWindow *arg1 = (wxWindow *) NULL ; | |
18779 | wxWindowDestroyEvent *result; | |
18780 | PyObject * obj0 = 0 ; | |
18781 | char *kwnames[] = { | |
18782 | (char *) "win", NULL | |
18783 | }; | |
18784 | ||
18785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
18786 | if (obj0) { | |
18787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18789 | } | |
18790 | { | |
18791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18792 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
18793 | ||
18794 | wxPyEndAllowThreads(__tstate); | |
18795 | if (PyErr_Occurred()) SWIG_fail; | |
18796 | } | |
18797 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
18798 | return resultobj; | |
18799 | fail: | |
18800 | return NULL; | |
18801 | } | |
18802 | ||
18803 | ||
18804 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18805 | PyObject *resultobj; | |
18806 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
18807 | wxWindow *result; | |
18808 | PyObject * obj0 = 0 ; | |
18809 | char *kwnames[] = { | |
18810 | (char *) "self", NULL | |
18811 | }; | |
18812 | ||
18813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
18814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
18815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18816 | { | |
18817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18818 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
18819 | ||
18820 | wxPyEndAllowThreads(__tstate); | |
18821 | if (PyErr_Occurred()) SWIG_fail; | |
18822 | } | |
18823 | { | |
18824 | resultobj = wxPyMake_wxObject(result); | |
18825 | } | |
18826 | return resultobj; | |
18827 | fail: | |
18828 | return NULL; | |
18829 | } | |
18830 | ||
18831 | ||
18832 | static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) { | |
18833 | PyObject *obj; | |
18834 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18835 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
18836 | Py_INCREF(obj); | |
18837 | return Py_BuildValue((char *)""); | |
18838 | } | |
18839 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj; | |
18841 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
18842 | int arg2 = (int) 0 ; | |
18843 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
18844 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18845 | wxContextMenuEvent *result; | |
18846 | wxPoint temp3 ; | |
18847 | PyObject * obj0 = 0 ; | |
18848 | PyObject * obj1 = 0 ; | |
18849 | PyObject * obj2 = 0 ; | |
18850 | char *kwnames[] = { | |
18851 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
18852 | }; | |
18853 | ||
18854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18855 | if (obj0) { | |
18856 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
18857 | if (PyErr_Occurred()) SWIG_fail; | |
18858 | } | |
18859 | if (obj1) { | |
18860 | arg2 = (int) SWIG_AsInt(obj1); | |
18861 | if (PyErr_Occurred()) SWIG_fail; | |
18862 | } | |
18863 | if (obj2) { | |
18864 | { | |
18865 | arg3 = &temp3; | |
18866 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18867 | } | |
18868 | } | |
18869 | { | |
18870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18871 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
18872 | ||
18873 | wxPyEndAllowThreads(__tstate); | |
18874 | if (PyErr_Occurred()) SWIG_fail; | |
18875 | } | |
18876 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
18877 | return resultobj; | |
18878 | fail: | |
18879 | return NULL; | |
18880 | } | |
18881 | ||
18882 | ||
18883 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18884 | PyObject *resultobj; | |
18885 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18886 | wxPoint *result; | |
18887 | PyObject * obj0 = 0 ; | |
18888 | char *kwnames[] = { | |
18889 | (char *) "self", NULL | |
18890 | }; | |
18891 | ||
18892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18895 | { | |
18896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18897 | { | |
18898 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
18899 | result = (wxPoint *) &_result_ref; | |
18900 | } | |
18901 | ||
18902 | wxPyEndAllowThreads(__tstate); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
18905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
18906 | return resultobj; | |
18907 | fail: | |
18908 | return NULL; | |
18909 | } | |
18910 | ||
18911 | ||
18912 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18913 | PyObject *resultobj; | |
18914 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
18915 | wxPoint *arg2 = 0 ; | |
18916 | wxPoint temp2 ; | |
18917 | PyObject * obj0 = 0 ; | |
18918 | PyObject * obj1 = 0 ; | |
18919 | char *kwnames[] = { | |
18920 | (char *) "self",(char *) "pos", NULL | |
18921 | }; | |
18922 | ||
18923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
18924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
18925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18926 | { | |
18927 | arg2 = &temp2; | |
18928 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18929 | } | |
18930 | { | |
18931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18932 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
18933 | ||
18934 | wxPyEndAllowThreads(__tstate); | |
18935 | if (PyErr_Occurred()) SWIG_fail; | |
18936 | } | |
18937 | Py_INCREF(Py_None); resultobj = Py_None; | |
18938 | return resultobj; | |
18939 | fail: | |
18940 | return NULL; | |
18941 | } | |
18942 | ||
18943 | ||
18944 | static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) { | |
18945 | PyObject *obj; | |
18946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18947 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
18948 | Py_INCREF(obj); | |
18949 | return Py_BuildValue((char *)""); | |
18950 | } | |
18951 | static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18952 | PyObject *resultobj; | |
18953 | wxIdleEvent *result; | |
18954 | char *kwnames[] = { | |
18955 | NULL | |
18956 | }; | |
18957 | ||
18958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
18959 | { | |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18961 | result = (wxIdleEvent *)new wxIdleEvent(); | |
18962 | ||
18963 | wxPyEndAllowThreads(__tstate); | |
18964 | if (PyErr_Occurred()) SWIG_fail; | |
18965 | } | |
18966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | return NULL; | |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18974 | PyObject *resultobj; | |
18975 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
18976 | bool arg2 = (bool) True ; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | PyObject * obj1 = 0 ; | |
18979 | char *kwnames[] = { | |
18980 | (char *) "self",(char *) "needMore", NULL | |
18981 | }; | |
18982 | ||
18983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
18984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
18985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18986 | if (obj1) { | |
18987 | arg2 = (bool) SWIG_AsBool(obj1); | |
18988 | if (PyErr_Occurred()) SWIG_fail; | |
18989 | } | |
18990 | { | |
18991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18992 | (arg1)->RequestMore(arg2); | |
18993 | ||
18994 | wxPyEndAllowThreads(__tstate); | |
18995 | if (PyErr_Occurred()) SWIG_fail; | |
18996 | } | |
18997 | Py_INCREF(Py_None); resultobj = Py_None; | |
18998 | return resultobj; | |
18999 | fail: | |
19000 | return NULL; | |
19001 | } | |
19002 | ||
19003 | ||
19004 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19005 | PyObject *resultobj; | |
19006 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19007 | bool result; | |
19008 | PyObject * obj0 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19016 | { | |
19017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19018 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19019 | ||
19020 | wxPyEndAllowThreads(__tstate); | |
19021 | if (PyErr_Occurred()) SWIG_fail; | |
19022 | } | |
19023 | { | |
19024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19025 | } | |
19026 | return resultobj; | |
19027 | fail: | |
19028 | return NULL; | |
19029 | } | |
19030 | ||
19031 | ||
19032 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19033 | PyObject *resultobj; | |
19034 | int arg1 ; | |
19035 | PyObject * obj0 = 0 ; | |
19036 | char *kwnames[] = { | |
19037 | (char *) "mode", NULL | |
19038 | }; | |
19039 | ||
19040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
19041 | arg1 = (wxIdleMode) SWIG_AsInt(obj0); | |
19042 | if (PyErr_Occurred()) SWIG_fail; | |
19043 | { | |
19044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19045 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19046 | ||
19047 | wxPyEndAllowThreads(__tstate); | |
19048 | if (PyErr_Occurred()) SWIG_fail; | |
19049 | } | |
19050 | Py_INCREF(Py_None); resultobj = Py_None; | |
19051 | return resultobj; | |
19052 | fail: | |
19053 | return NULL; | |
19054 | } | |
19055 | ||
19056 | ||
19057 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19058 | PyObject *resultobj; | |
19059 | int result; | |
19060 | char *kwnames[] = { | |
19061 | NULL | |
19062 | }; | |
19063 | ||
19064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19065 | { | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19067 | result = (int)wxIdleEvent::GetMode(); | |
19068 | ||
19069 | wxPyEndAllowThreads(__tstate); | |
19070 | if (PyErr_Occurred()) SWIG_fail; | |
19071 | } | |
19072 | resultobj = SWIG_FromInt((int)result); | |
19073 | return resultobj; | |
19074 | fail: | |
19075 | return NULL; | |
19076 | } | |
19077 | ||
19078 | ||
19079 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19080 | PyObject *resultobj; | |
19081 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19082 | bool result; | |
19083 | PyObject * obj0 = 0 ; | |
19084 | char *kwnames[] = { | |
19085 | (char *) "win", NULL | |
19086 | }; | |
19087 | ||
19088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19091 | { | |
19092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19093 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19094 | ||
19095 | wxPyEndAllowThreads(__tstate); | |
19096 | if (PyErr_Occurred()) SWIG_fail; | |
19097 | } | |
19098 | { | |
19099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19100 | } | |
19101 | return resultobj; | |
19102 | fail: | |
19103 | return NULL; | |
19104 | } | |
19105 | ||
19106 | ||
19107 | static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) { | |
19108 | PyObject *obj; | |
19109 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19110 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19111 | Py_INCREF(obj); | |
19112 | return Py_BuildValue((char *)""); | |
19113 | } | |
19114 | static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | int arg1 = (int) 0 ; | |
19117 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19118 | wxPyEvent *result; | |
19119 | PyObject * obj0 = 0 ; | |
19120 | PyObject * obj1 = 0 ; | |
19121 | char *kwnames[] = { | |
19122 | (char *) "winid",(char *) "commandType", NULL | |
19123 | }; | |
19124 | ||
19125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19126 | if (obj0) { | |
19127 | arg1 = (int) SWIG_AsInt(obj0); | |
19128 | if (PyErr_Occurred()) SWIG_fail; | |
19129 | } | |
19130 | if (obj1) { | |
19131 | arg2 = (wxEventType) SWIG_AsInt(obj1); | |
19132 | if (PyErr_Occurred()) SWIG_fail; | |
19133 | } | |
19134 | { | |
19135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19136 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19137 | ||
19138 | wxPyEndAllowThreads(__tstate); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
19140 | } | |
19141 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19142 | return resultobj; | |
19143 | fail: | |
19144 | return NULL; | |
19145 | } | |
19146 | ||
19147 | ||
19148 | static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19149 | PyObject *resultobj; | |
19150 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19151 | PyObject * obj0 = 0 ; | |
19152 | char *kwnames[] = { | |
19153 | (char *) "self", NULL | |
19154 | }; | |
19155 | ||
19156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19159 | { | |
19160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19161 | delete arg1; | |
19162 | ||
19163 | wxPyEndAllowThreads(__tstate); | |
19164 | if (PyErr_Occurred()) SWIG_fail; | |
19165 | } | |
19166 | Py_INCREF(Py_None); resultobj = Py_None; | |
19167 | return resultobj; | |
19168 | fail: | |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
19173 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19174 | PyObject *resultobj; | |
19175 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19176 | PyObject *arg2 = (PyObject *) 0 ; | |
19177 | PyObject * obj0 = 0 ; | |
19178 | PyObject * obj1 = 0 ; | |
19179 | char *kwnames[] = { | |
19180 | (char *) "self",(char *) "self", NULL | |
19181 | }; | |
19182 | ||
19183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19186 | arg2 = obj1; | |
19187 | { | |
19188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19189 | (arg1)->SetSelf(arg2); | |
19190 | ||
19191 | wxPyEndAllowThreads(__tstate); | |
19192 | if (PyErr_Occurred()) SWIG_fail; | |
19193 | } | |
19194 | Py_INCREF(Py_None); resultobj = Py_None; | |
19195 | return resultobj; | |
19196 | fail: | |
19197 | return NULL; | |
19198 | } | |
19199 | ||
19200 | ||
19201 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19202 | PyObject *resultobj; | |
19203 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19204 | PyObject *result; | |
19205 | PyObject * obj0 = 0 ; | |
19206 | char *kwnames[] = { | |
19207 | (char *) "self", NULL | |
19208 | }; | |
19209 | ||
19210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19213 | { | |
19214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19215 | result = (PyObject *)(arg1)->GetSelf(); | |
19216 | ||
19217 | wxPyEndAllowThreads(__tstate); | |
19218 | if (PyErr_Occurred()) SWIG_fail; | |
19219 | } | |
19220 | resultobj = result; | |
19221 | return resultobj; | |
19222 | fail: | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
19227 | static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) { | |
19228 | PyObject *obj; | |
19229 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19230 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19231 | Py_INCREF(obj); | |
19232 | return Py_BuildValue((char *)""); | |
19233 | } | |
19234 | static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19235 | PyObject *resultobj; | |
19236 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19237 | int arg2 = (int) 0 ; | |
19238 | wxPyCommandEvent *result; | |
19239 | PyObject * obj0 = 0 ; | |
19240 | PyObject * obj1 = 0 ; | |
19241 | char *kwnames[] = { | |
19242 | (char *) "commandType",(char *) "id", NULL | |
19243 | }; | |
19244 | ||
19245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19246 | if (obj0) { | |
19247 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | if (obj1) { | |
19251 | arg2 = (int) SWIG_AsInt(obj1); | |
19252 | if (PyErr_Occurred()) SWIG_fail; | |
19253 | } | |
19254 | { | |
19255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19256 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19257 | ||
19258 | wxPyEndAllowThreads(__tstate); | |
19259 | if (PyErr_Occurred()) SWIG_fail; | |
19260 | } | |
19261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19262 | return resultobj; | |
19263 | fail: | |
19264 | return NULL; | |
19265 | } | |
19266 | ||
19267 | ||
19268 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19269 | PyObject *resultobj; | |
19270 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19271 | PyObject * obj0 = 0 ; | |
19272 | char *kwnames[] = { | |
19273 | (char *) "self", NULL | |
19274 | }; | |
19275 | ||
19276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19279 | { | |
19280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19281 | delete arg1; | |
19282 | ||
19283 | wxPyEndAllowThreads(__tstate); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
19285 | } | |
19286 | Py_INCREF(Py_None); resultobj = Py_None; | |
19287 | return resultobj; | |
19288 | fail: | |
19289 | return NULL; | |
19290 | } | |
19291 | ||
19292 | ||
19293 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19294 | PyObject *resultobj; | |
19295 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19296 | PyObject *arg2 = (PyObject *) 0 ; | |
19297 | PyObject * obj0 = 0 ; | |
19298 | PyObject * obj1 = 0 ; | |
19299 | char *kwnames[] = { | |
19300 | (char *) "self",(char *) "self", NULL | |
19301 | }; | |
19302 | ||
19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19306 | arg2 = obj1; | |
19307 | { | |
19308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19309 | (arg1)->SetSelf(arg2); | |
19310 | ||
19311 | wxPyEndAllowThreads(__tstate); | |
19312 | if (PyErr_Occurred()) SWIG_fail; | |
19313 | } | |
19314 | Py_INCREF(Py_None); resultobj = Py_None; | |
19315 | return resultobj; | |
19316 | fail: | |
19317 | return NULL; | |
19318 | } | |
19319 | ||
19320 | ||
19321 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19322 | PyObject *resultobj; | |
19323 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19324 | PyObject *result; | |
19325 | PyObject * obj0 = 0 ; | |
19326 | char *kwnames[] = { | |
19327 | (char *) "self", NULL | |
19328 | }; | |
19329 | ||
19330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19333 | { | |
19334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19335 | result = (PyObject *)(arg1)->GetSelf(); | |
19336 | ||
19337 | wxPyEndAllowThreads(__tstate); | |
19338 | if (PyErr_Occurred()) SWIG_fail; | |
19339 | } | |
19340 | resultobj = result; | |
19341 | return resultobj; | |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) { | |
19348 | PyObject *obj; | |
19349 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19350 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19351 | Py_INCREF(obj); | |
19352 | return Py_BuildValue((char *)""); | |
19353 | } | |
19354 | static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19355 | PyObject *resultobj; | |
19356 | wxPyApp *result; | |
19357 | char *kwnames[] = { | |
19358 | NULL | |
19359 | }; | |
19360 | ||
19361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19362 | { | |
19363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19364 | result = (wxPyApp *)new_wxPyApp(); | |
19365 | ||
19366 | wxPyEndAllowThreads(__tstate); | |
19367 | if (PyErr_Occurred()) SWIG_fail; | |
19368 | } | |
19369 | { | |
19370 | resultobj = wxPyMake_wxObject(result); | |
19371 | } | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj; | |
19380 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | char *kwnames[] = { | |
19383 | (char *) "self", NULL | |
19384 | }; | |
19385 | ||
19386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19389 | { | |
19390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19391 | delete arg1; | |
19392 | ||
19393 | wxPyEndAllowThreads(__tstate); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
19395 | } | |
19396 | Py_INCREF(Py_None); resultobj = Py_None; | |
19397 | return resultobj; | |
19398 | fail: | |
19399 | return NULL; | |
19400 | } | |
19401 | ||
19402 | ||
19403 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19404 | PyObject *resultobj; | |
19405 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19406 | PyObject *arg2 = (PyObject *) 0 ; | |
19407 | PyObject *arg3 = (PyObject *) 0 ; | |
19408 | PyObject * obj0 = 0 ; | |
19409 | PyObject * obj1 = 0 ; | |
19410 | PyObject * obj2 = 0 ; | |
19411 | char *kwnames[] = { | |
19412 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19413 | }; | |
19414 | ||
19415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19418 | arg2 = obj1; | |
19419 | arg3 = obj2; | |
19420 | { | |
19421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19422 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19423 | ||
19424 | wxPyEndAllowThreads(__tstate); | |
19425 | if (PyErr_Occurred()) SWIG_fail; | |
19426 | } | |
19427 | Py_INCREF(Py_None); resultobj = Py_None; | |
19428 | return resultobj; | |
19429 | fail: | |
19430 | return NULL; | |
19431 | } | |
19432 | ||
19433 | ||
19434 | static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19435 | PyObject *resultobj; | |
19436 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19437 | wxString result; | |
19438 | PyObject * obj0 = 0 ; | |
19439 | char *kwnames[] = { | |
19440 | (char *) "self", NULL | |
19441 | }; | |
19442 | ||
19443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19446 | { | |
19447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19448 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19449 | ||
19450 | wxPyEndAllowThreads(__tstate); | |
19451 | if (PyErr_Occurred()) SWIG_fail; | |
19452 | } | |
19453 | { | |
19454 | #if wxUSE_UNICODE | |
19455 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19456 | #else | |
19457 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19458 | #endif | |
19459 | } | |
19460 | return resultobj; | |
19461 | fail: | |
19462 | return NULL; | |
19463 | } | |
19464 | ||
19465 | ||
19466 | static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19467 | PyObject *resultobj; | |
19468 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19469 | wxString *arg2 = 0 ; | |
19470 | bool temp2 = False ; | |
19471 | PyObject * obj0 = 0 ; | |
19472 | PyObject * obj1 = 0 ; | |
19473 | char *kwnames[] = { | |
19474 | (char *) "self",(char *) "name", NULL | |
19475 | }; | |
19476 | ||
19477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19480 | { | |
19481 | arg2 = wxString_in_helper(obj1); | |
19482 | if (arg2 == NULL) SWIG_fail; | |
19483 | temp2 = True; | |
19484 | } | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | (arg1)->SetAppName((wxString const &)*arg2); | |
19488 | ||
19489 | wxPyEndAllowThreads(__tstate); | |
19490 | if (PyErr_Occurred()) SWIG_fail; | |
19491 | } | |
19492 | Py_INCREF(Py_None); resultobj = Py_None; | |
19493 | { | |
19494 | if (temp2) | |
19495 | delete arg2; | |
19496 | } | |
19497 | return resultobj; | |
19498 | fail: | |
19499 | { | |
19500 | if (temp2) | |
19501 | delete arg2; | |
19502 | } | |
19503 | return NULL; | |
19504 | } | |
19505 | ||
19506 | ||
19507 | static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19508 | PyObject *resultobj; | |
19509 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19510 | wxString result; | |
19511 | PyObject * obj0 = 0 ; | |
19512 | char *kwnames[] = { | |
19513 | (char *) "self", NULL | |
19514 | }; | |
19515 | ||
19516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19521 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
19526 | { | |
19527 | #if wxUSE_UNICODE | |
19528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19529 | #else | |
19530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19531 | #endif | |
19532 | } | |
19533 | return resultobj; | |
19534 | fail: | |
19535 | return NULL; | |
19536 | } | |
19537 | ||
19538 | ||
19539 | static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19540 | PyObject *resultobj; | |
19541 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19542 | wxString *arg2 = 0 ; | |
19543 | bool temp2 = False ; | |
19544 | PyObject * obj0 = 0 ; | |
19545 | PyObject * obj1 = 0 ; | |
19546 | char *kwnames[] = { | |
19547 | (char *) "self",(char *) "name", NULL | |
19548 | }; | |
19549 | ||
19550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
19551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19553 | { | |
19554 | arg2 = wxString_in_helper(obj1); | |
19555 | if (arg2 == NULL) SWIG_fail; | |
19556 | temp2 = True; | |
19557 | } | |
19558 | { | |
19559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19560 | (arg1)->SetClassName((wxString const &)*arg2); | |
19561 | ||
19562 | wxPyEndAllowThreads(__tstate); | |
19563 | if (PyErr_Occurred()) SWIG_fail; | |
19564 | } | |
19565 | Py_INCREF(Py_None); resultobj = Py_None; | |
19566 | { | |
19567 | if (temp2) | |
19568 | delete arg2; | |
19569 | } | |
19570 | return resultobj; | |
19571 | fail: | |
19572 | { | |
19573 | if (temp2) | |
19574 | delete arg2; | |
19575 | } | |
19576 | return NULL; | |
19577 | } | |
19578 | ||
19579 | ||
19580 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19581 | PyObject *resultobj; | |
19582 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19583 | wxString *result; | |
19584 | PyObject * obj0 = 0 ; | |
19585 | char *kwnames[] = { | |
19586 | (char *) "self", NULL | |
19587 | }; | |
19588 | ||
19589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
19590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19592 | { | |
19593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19594 | { | |
19595 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
19596 | result = (wxString *) &_result_ref; | |
19597 | } | |
19598 | ||
19599 | wxPyEndAllowThreads(__tstate); | |
19600 | if (PyErr_Occurred()) SWIG_fail; | |
19601 | } | |
19602 | { | |
19603 | #if wxUSE_UNICODE | |
19604 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19605 | #else | |
19606 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19607 | #endif | |
19608 | } | |
19609 | return resultobj; | |
19610 | fail: | |
19611 | return NULL; | |
19612 | } | |
19613 | ||
19614 | ||
19615 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19616 | PyObject *resultobj; | |
19617 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19618 | wxString *arg2 = 0 ; | |
19619 | bool temp2 = False ; | |
19620 | PyObject * obj0 = 0 ; | |
19621 | PyObject * obj1 = 0 ; | |
19622 | char *kwnames[] = { | |
19623 | (char *) "self",(char *) "name", NULL | |
19624 | }; | |
19625 | ||
19626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
19627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19629 | { | |
19630 | arg2 = wxString_in_helper(obj1); | |
19631 | if (arg2 == NULL) SWIG_fail; | |
19632 | temp2 = True; | |
19633 | } | |
19634 | { | |
19635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19636 | (arg1)->SetVendorName((wxString const &)*arg2); | |
19637 | ||
19638 | wxPyEndAllowThreads(__tstate); | |
19639 | if (PyErr_Occurred()) SWIG_fail; | |
19640 | } | |
19641 | Py_INCREF(Py_None); resultobj = Py_None; | |
19642 | { | |
19643 | if (temp2) | |
19644 | delete arg2; | |
19645 | } | |
19646 | return resultobj; | |
19647 | fail: | |
19648 | { | |
19649 | if (temp2) | |
19650 | delete arg2; | |
19651 | } | |
19652 | return NULL; | |
19653 | } | |
19654 | ||
19655 | ||
19656 | static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19657 | PyObject *resultobj; | |
19658 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19659 | wxAppTraits *result; | |
19660 | PyObject * obj0 = 0 ; | |
19661 | char *kwnames[] = { | |
19662 | (char *) "self", NULL | |
19663 | }; | |
19664 | ||
19665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
19666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19668 | { | |
19669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19670 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
19671 | ||
19672 | wxPyEndAllowThreads(__tstate); | |
19673 | if (PyErr_Occurred()) SWIG_fail; | |
19674 | } | |
19675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
19676 | return resultobj; | |
19677 | fail: | |
19678 | return NULL; | |
19679 | } | |
19680 | ||
19681 | ||
19682 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19683 | PyObject *resultobj; | |
19684 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19685 | PyObject * obj0 = 0 ; | |
19686 | char *kwnames[] = { | |
19687 | (char *) "self", NULL | |
19688 | }; | |
19689 | ||
19690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
19691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19693 | { | |
19694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19695 | (arg1)->ProcessPendingEvents(); | |
19696 | ||
19697 | wxPyEndAllowThreads(__tstate); | |
19698 | if (PyErr_Occurred()) SWIG_fail; | |
19699 | } | |
19700 | Py_INCREF(Py_None); resultobj = Py_None; | |
19701 | return resultobj; | |
19702 | fail: | |
19703 | return NULL; | |
19704 | } | |
19705 | ||
19706 | ||
19707 | static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19708 | PyObject *resultobj; | |
19709 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19710 | bool arg2 = (bool) False ; | |
19711 | bool result; | |
19712 | PyObject * obj0 = 0 ; | |
19713 | PyObject * obj1 = 0 ; | |
19714 | char *kwnames[] = { | |
19715 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
19716 | }; | |
19717 | ||
19718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
19719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19721 | if (obj1) { | |
19722 | arg2 = (bool) SWIG_AsBool(obj1); | |
19723 | if (PyErr_Occurred()) SWIG_fail; | |
19724 | } | |
19725 | { | |
19726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19727 | result = (bool)(arg1)->Yield(arg2); | |
19728 | ||
19729 | wxPyEndAllowThreads(__tstate); | |
19730 | if (PyErr_Occurred()) SWIG_fail; | |
19731 | } | |
19732 | { | |
19733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19734 | } | |
19735 | return resultobj; | |
19736 | fail: | |
19737 | return NULL; | |
19738 | } | |
19739 | ||
19740 | ||
19741 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19742 | PyObject *resultobj; | |
19743 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19744 | PyObject * obj0 = 0 ; | |
19745 | char *kwnames[] = { | |
19746 | (char *) "self", NULL | |
19747 | }; | |
19748 | ||
19749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
19750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19752 | { | |
19753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19754 | (arg1)->WakeUpIdle(); | |
19755 | ||
19756 | wxPyEndAllowThreads(__tstate); | |
19757 | if (PyErr_Occurred()) SWIG_fail; | |
19758 | } | |
19759 | Py_INCREF(Py_None); resultobj = Py_None; | |
19760 | return resultobj; | |
19761 | fail: | |
19762 | return NULL; | |
19763 | } | |
19764 | ||
19765 | ||
19766 | static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19767 | PyObject *resultobj; | |
19768 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19769 | int result; | |
19770 | PyObject * obj0 = 0 ; | |
19771 | char *kwnames[] = { | |
19772 | (char *) "self", NULL | |
19773 | }; | |
19774 | ||
19775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
19776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19778 | { | |
19779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19780 | result = (int)(arg1)->MainLoop(); | |
19781 | ||
19782 | wxPyEndAllowThreads(__tstate); | |
19783 | if (PyErr_Occurred()) SWIG_fail; | |
19784 | } | |
19785 | resultobj = SWIG_FromInt((int)result); | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj; | |
19794 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19795 | PyObject * obj0 = 0 ; | |
19796 | char *kwnames[] = { | |
19797 | (char *) "self", NULL | |
19798 | }; | |
19799 | ||
19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
19801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19803 | { | |
19804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19805 | (arg1)->Exit(); | |
19806 | ||
19807 | wxPyEndAllowThreads(__tstate); | |
19808 | if (PyErr_Occurred()) SWIG_fail; | |
19809 | } | |
19810 | Py_INCREF(Py_None); resultobj = Py_None; | |
19811 | return resultobj; | |
19812 | fail: | |
19813 | return NULL; | |
19814 | } | |
19815 | ||
19816 | ||
19817 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19818 | PyObject *resultobj; | |
19819 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19820 | PyObject * obj0 = 0 ; | |
19821 | char *kwnames[] = { | |
19822 | (char *) "self", NULL | |
19823 | }; | |
19824 | ||
19825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
19826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | (arg1)->ExitMainLoop(); | |
19831 | ||
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | Py_INCREF(Py_None); resultobj = Py_None; | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19843 | PyObject *resultobj; | |
19844 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19845 | bool result; | |
19846 | PyObject * obj0 = 0 ; | |
19847 | char *kwnames[] = { | |
19848 | (char *) "self", NULL | |
19849 | }; | |
19850 | ||
19851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
19852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19854 | { | |
19855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19856 | result = (bool)(arg1)->Pending(); | |
19857 | ||
19858 | wxPyEndAllowThreads(__tstate); | |
19859 | if (PyErr_Occurred()) SWIG_fail; | |
19860 | } | |
19861 | { | |
19862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19863 | } | |
19864 | return resultobj; | |
19865 | fail: | |
19866 | return NULL; | |
19867 | } | |
19868 | ||
19869 | ||
19870 | static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19871 | PyObject *resultobj; | |
19872 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19873 | bool result; | |
19874 | PyObject * obj0 = 0 ; | |
19875 | char *kwnames[] = { | |
19876 | (char *) "self", NULL | |
19877 | }; | |
19878 | ||
19879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
19880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19882 | { | |
19883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19884 | result = (bool)(arg1)->Dispatch(); | |
19885 | ||
19886 | wxPyEndAllowThreads(__tstate); | |
19887 | if (PyErr_Occurred()) SWIG_fail; | |
19888 | } | |
19889 | { | |
19890 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19891 | } | |
19892 | return resultobj; | |
19893 | fail: | |
19894 | return NULL; | |
19895 | } | |
19896 | ||
19897 | ||
19898 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19899 | PyObject *resultobj; | |
19900 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19901 | bool result; | |
19902 | PyObject * obj0 = 0 ; | |
19903 | char *kwnames[] = { | |
19904 | (char *) "self", NULL | |
19905 | }; | |
19906 | ||
19907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
19908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19910 | { | |
19911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19912 | result = (bool)(arg1)->ProcessIdle(); | |
19913 | ||
19914 | wxPyEndAllowThreads(__tstate); | |
19915 | if (PyErr_Occurred()) SWIG_fail; | |
19916 | } | |
19917 | { | |
19918 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19919 | } | |
19920 | return resultobj; | |
19921 | fail: | |
19922 | return NULL; | |
19923 | } | |
19924 | ||
19925 | ||
19926 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19927 | PyObject *resultobj; | |
19928 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19929 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19930 | wxIdleEvent *arg3 = 0 ; | |
19931 | bool result; | |
19932 | PyObject * obj0 = 0 ; | |
19933 | PyObject * obj1 = 0 ; | |
19934 | PyObject * obj2 = 0 ; | |
19935 | char *kwnames[] = { | |
19936 | (char *) "self",(char *) "win",(char *) "event", NULL | |
19937 | }; | |
19938 | ||
19939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19942 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19944 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
19945 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19946 | SWIG_fail; | |
19947 | if (arg3 == NULL) { | |
19948 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19949 | SWIG_fail; | |
19950 | } | |
19951 | { | |
19952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19953 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
19954 | ||
19955 | wxPyEndAllowThreads(__tstate); | |
19956 | if (PyErr_Occurred()) SWIG_fail; | |
19957 | } | |
19958 | { | |
19959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19960 | } | |
19961 | return resultobj; | |
19962 | fail: | |
19963 | return NULL; | |
19964 | } | |
19965 | ||
19966 | ||
19967 | static PyObject *_wrap_PyApp_IsActive(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_IsActive",kwnames,&obj0)) goto fail; | |
19977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19979 | { | |
19980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19981 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
19982 | ||
19983 | wxPyEndAllowThreads(__tstate); | |
19984 | if (PyErr_Occurred()) SWIG_fail; | |
19985 | } | |
19986 | { | |
19987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19988 | } | |
19989 | return resultobj; | |
19990 | fail: | |
19991 | return NULL; | |
19992 | } | |
19993 | ||
19994 | ||
19995 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19996 | PyObject *resultobj; | |
19997 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19998 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19999 | PyObject * obj0 = 0 ; | |
20000 | PyObject * obj1 = 0 ; | |
20001 | char *kwnames[] = { | |
20002 | (char *) "self",(char *) "win", NULL | |
20003 | }; | |
20004 | ||
20005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20010 | { | |
20011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20012 | (arg1)->SetTopWindow(arg2); | |
20013 | ||
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | Py_INCREF(Py_None); resultobj = Py_None; | |
20018 | return resultobj; | |
20019 | fail: | |
20020 | return NULL; | |
20021 | } | |
20022 | ||
20023 | ||
20024 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20025 | PyObject *resultobj; | |
20026 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20027 | wxWindow *result; | |
20028 | PyObject * obj0 = 0 ; | |
20029 | char *kwnames[] = { | |
20030 | (char *) "self", NULL | |
20031 | }; | |
20032 | ||
20033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20036 | { | |
20037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20038 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20039 | ||
20040 | wxPyEndAllowThreads(__tstate); | |
20041 | if (PyErr_Occurred()) SWIG_fail; | |
20042 | } | |
20043 | { | |
20044 | resultobj = wxPyMake_wxObject(result); | |
20045 | } | |
20046 | return resultobj; | |
20047 | fail: | |
20048 | return NULL; | |
20049 | } | |
20050 | ||
20051 | ||
20052 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20053 | PyObject *resultobj; | |
20054 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20055 | bool arg2 ; | |
20056 | PyObject * obj0 = 0 ; | |
20057 | PyObject * obj1 = 0 ; | |
20058 | char *kwnames[] = { | |
20059 | (char *) "self",(char *) "flag", NULL | |
20060 | }; | |
20061 | ||
20062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20065 | arg2 = (bool) SWIG_AsBool(obj1); | |
20066 | if (PyErr_Occurred()) SWIG_fail; | |
20067 | { | |
20068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20069 | (arg1)->SetExitOnFrameDelete(arg2); | |
20070 | ||
20071 | wxPyEndAllowThreads(__tstate); | |
20072 | if (PyErr_Occurred()) SWIG_fail; | |
20073 | } | |
20074 | Py_INCREF(Py_None); resultobj = Py_None; | |
20075 | return resultobj; | |
20076 | fail: | |
20077 | return NULL; | |
20078 | } | |
20079 | ||
20080 | ||
20081 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20082 | PyObject *resultobj; | |
20083 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20084 | bool result; | |
20085 | PyObject * obj0 = 0 ; | |
20086 | char *kwnames[] = { | |
20087 | (char *) "self", NULL | |
20088 | }; | |
20089 | ||
20090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20093 | { | |
20094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20095 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20096 | ||
20097 | wxPyEndAllowThreads(__tstate); | |
20098 | if (PyErr_Occurred()) SWIG_fail; | |
20099 | } | |
20100 | { | |
20101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20102 | } | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | return NULL; | |
20106 | } | |
20107 | ||
20108 | ||
20109 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20110 | PyObject *resultobj; | |
20111 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20112 | bool arg2 ; | |
20113 | PyObject * obj0 = 0 ; | |
20114 | PyObject * obj1 = 0 ; | |
20115 | char *kwnames[] = { | |
20116 | (char *) "self",(char *) "flag", NULL | |
20117 | }; | |
20118 | ||
20119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20122 | arg2 = (bool) SWIG_AsBool(obj1); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | { | |
20125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20126 | (arg1)->SetUseBestVisual(arg2); | |
20127 | ||
20128 | wxPyEndAllowThreads(__tstate); | |
20129 | if (PyErr_Occurred()) SWIG_fail; | |
20130 | } | |
20131 | Py_INCREF(Py_None); resultobj = Py_None; | |
20132 | return resultobj; | |
20133 | fail: | |
20134 | return NULL; | |
20135 | } | |
20136 | ||
20137 | ||
20138 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20139 | PyObject *resultobj; | |
20140 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20141 | bool result; | |
20142 | PyObject * obj0 = 0 ; | |
20143 | char *kwnames[] = { | |
20144 | (char *) "self", NULL | |
20145 | }; | |
20146 | ||
20147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20150 | { | |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20153 | ||
20154 | wxPyEndAllowThreads(__tstate); | |
20155 | if (PyErr_Occurred()) SWIG_fail; | |
20156 | } | |
20157 | { | |
20158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20159 | } | |
20160 | return resultobj; | |
20161 | fail: | |
20162 | return NULL; | |
20163 | } | |
20164 | ||
20165 | ||
20166 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20167 | PyObject *resultobj; | |
20168 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20169 | int arg2 ; | |
20170 | PyObject * obj0 = 0 ; | |
20171 | PyObject * obj1 = 0 ; | |
20172 | char *kwnames[] = { | |
20173 | (char *) "self",(char *) "mode", NULL | |
20174 | }; | |
20175 | ||
20176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20179 | arg2 = (int) SWIG_AsInt(obj1); | |
20180 | if (PyErr_Occurred()) SWIG_fail; | |
20181 | { | |
20182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20183 | (arg1)->SetPrintMode(arg2); | |
20184 | ||
20185 | wxPyEndAllowThreads(__tstate); | |
20186 | if (PyErr_Occurred()) SWIG_fail; | |
20187 | } | |
20188 | Py_INCREF(Py_None); resultobj = Py_None; | |
20189 | return resultobj; | |
20190 | fail: | |
20191 | return NULL; | |
20192 | } | |
20193 | ||
20194 | ||
20195 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20196 | PyObject *resultobj; | |
20197 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20198 | int result; | |
20199 | PyObject * obj0 = 0 ; | |
20200 | char *kwnames[] = { | |
20201 | (char *) "self", NULL | |
20202 | }; | |
20203 | ||
20204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20207 | { | |
20208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20209 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20210 | ||
20211 | wxPyEndAllowThreads(__tstate); | |
20212 | if (PyErr_Occurred()) SWIG_fail; | |
20213 | } | |
20214 | resultobj = SWIG_FromInt((int)result); | |
20215 | return resultobj; | |
20216 | fail: | |
20217 | return NULL; | |
20218 | } | |
20219 | ||
20220 | ||
20221 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20222 | PyObject *resultobj; | |
20223 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20224 | int arg2 ; | |
20225 | PyObject * obj0 = 0 ; | |
20226 | PyObject * obj1 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "self",(char *) "mode", NULL | |
20229 | }; | |
20230 | ||
20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20234 | arg2 = (int) SWIG_AsInt(obj1); | |
20235 | if (PyErr_Occurred()) SWIG_fail; | |
20236 | { | |
20237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20238 | (arg1)->SetAssertMode(arg2); | |
20239 | ||
20240 | wxPyEndAllowThreads(__tstate); | |
20241 | if (PyErr_Occurred()) SWIG_fail; | |
20242 | } | |
20243 | Py_INCREF(Py_None); resultobj = Py_None; | |
20244 | return resultobj; | |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20253 | int result; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | char *kwnames[] = { | |
20256 | (char *) "self", NULL | |
20257 | }; | |
20258 | ||
20259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20262 | { | |
20263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20264 | result = (int)(arg1)->GetAssertMode(); | |
20265 | ||
20266 | wxPyEndAllowThreads(__tstate); | |
20267 | if (PyErr_Occurred()) SWIG_fail; | |
20268 | } | |
20269 | resultobj = SWIG_FromInt((int)result); | |
20270 | return resultobj; | |
20271 | fail: | |
20272 | return NULL; | |
20273 | } | |
20274 | ||
20275 | ||
20276 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20277 | PyObject *resultobj; | |
20278 | bool result; | |
20279 | char *kwnames[] = { | |
20280 | NULL | |
20281 | }; | |
20282 | ||
20283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20284 | { | |
20285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20286 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20287 | ||
20288 | wxPyEndAllowThreads(__tstate); | |
20289 | if (PyErr_Occurred()) SWIG_fail; | |
20290 | } | |
20291 | { | |
20292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20293 | } | |
20294 | return resultobj; | |
20295 | fail: | |
20296 | return NULL; | |
20297 | } | |
20298 | ||
20299 | ||
20300 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20301 | PyObject *resultobj; | |
20302 | long result; | |
20303 | char *kwnames[] = { | |
20304 | NULL | |
20305 | }; | |
20306 | ||
20307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20308 | { | |
20309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20310 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20311 | ||
20312 | wxPyEndAllowThreads(__tstate); | |
20313 | if (PyErr_Occurred()) SWIG_fail; | |
20314 | } | |
20315 | resultobj = SWIG_FromLong((long)result); | |
20316 | return resultobj; | |
20317 | fail: | |
20318 | return NULL; | |
20319 | } | |
20320 | ||
20321 | ||
20322 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20323 | PyObject *resultobj; | |
20324 | long result; | |
20325 | char *kwnames[] = { | |
20326 | NULL | |
20327 | }; | |
20328 | ||
20329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20330 | { | |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | resultobj = SWIG_FromLong((long)result); | |
20338 | return resultobj; | |
20339 | fail: | |
20340 | return NULL; | |
20341 | } | |
20342 | ||
20343 | ||
20344 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20345 | PyObject *resultobj; | |
20346 | long result; | |
20347 | char *kwnames[] = { | |
20348 | NULL | |
20349 | }; | |
20350 | ||
20351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20352 | { | |
20353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20354 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20355 | ||
20356 | wxPyEndAllowThreads(__tstate); | |
20357 | if (PyErr_Occurred()) SWIG_fail; | |
20358 | } | |
20359 | resultobj = SWIG_FromLong((long)result); | |
20360 | return resultobj; | |
20361 | fail: | |
20362 | return NULL; | |
20363 | } | |
20364 | ||
20365 | ||
20366 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20367 | PyObject *resultobj; | |
20368 | wxString result; | |
20369 | char *kwnames[] = { | |
20370 | NULL | |
20371 | }; | |
20372 | ||
20373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20374 | { | |
20375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20376 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20377 | ||
20378 | wxPyEndAllowThreads(__tstate); | |
20379 | if (PyErr_Occurred()) SWIG_fail; | |
20380 | } | |
20381 | { | |
20382 | #if wxUSE_UNICODE | |
20383 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20384 | #else | |
20385 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20386 | #endif | |
20387 | } | |
20388 | return resultobj; | |
20389 | fail: | |
20390 | return NULL; | |
20391 | } | |
20392 | ||
20393 | ||
20394 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20395 | PyObject *resultobj; | |
20396 | bool arg1 ; | |
20397 | PyObject * obj0 = 0 ; | |
20398 | char *kwnames[] = { | |
20399 | (char *) "val", NULL | |
20400 | }; | |
20401 | ||
20402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
20403 | arg1 = (bool) SWIG_AsBool(obj0); | |
20404 | if (PyErr_Occurred()) SWIG_fail; | |
20405 | { | |
20406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20407 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20408 | ||
20409 | wxPyEndAllowThreads(__tstate); | |
20410 | if (PyErr_Occurred()) SWIG_fail; | |
20411 | } | |
20412 | Py_INCREF(Py_None); resultobj = Py_None; | |
20413 | return resultobj; | |
20414 | fail: | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20420 | PyObject *resultobj; | |
20421 | long arg1 ; | |
20422 | PyObject * obj0 = 0 ; | |
20423 | char *kwnames[] = { | |
20424 | (char *) "val", NULL | |
20425 | }; | |
20426 | ||
20427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
20428 | arg1 = (long) SWIG_AsLong(obj0); | |
20429 | if (PyErr_Occurred()) SWIG_fail; | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
20437 | Py_INCREF(Py_None); resultobj = Py_None; | |
20438 | return resultobj; | |
20439 | fail: | |
20440 | return NULL; | |
20441 | } | |
20442 | ||
20443 | ||
20444 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20445 | PyObject *resultobj; | |
20446 | long arg1 ; | |
20447 | PyObject * obj0 = 0 ; | |
20448 | char *kwnames[] = { | |
20449 | (char *) "val", NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
20453 | arg1 = (long) SWIG_AsLong(obj0); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | { | |
20456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20457 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20458 | ||
20459 | wxPyEndAllowThreads(__tstate); | |
20460 | if (PyErr_Occurred()) SWIG_fail; | |
20461 | } | |
20462 | Py_INCREF(Py_None); resultobj = Py_None; | |
20463 | return resultobj; | |
20464 | fail: | |
20465 | return NULL; | |
20466 | } | |
20467 | ||
20468 | ||
20469 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20470 | PyObject *resultobj; | |
20471 | long arg1 ; | |
20472 | PyObject * obj0 = 0 ; | |
20473 | char *kwnames[] = { | |
20474 | (char *) "val", NULL | |
20475 | }; | |
20476 | ||
20477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
20478 | arg1 = (long) SWIG_AsLong(obj0); | |
20479 | if (PyErr_Occurred()) SWIG_fail; | |
20480 | { | |
20481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20482 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20483 | ||
20484 | wxPyEndAllowThreads(__tstate); | |
20485 | if (PyErr_Occurred()) SWIG_fail; | |
20486 | } | |
20487 | Py_INCREF(Py_None); resultobj = Py_None; | |
20488 | return resultobj; | |
20489 | fail: | |
20490 | return NULL; | |
20491 | } | |
20492 | ||
20493 | ||
20494 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20495 | PyObject *resultobj; | |
20496 | wxString *arg1 = 0 ; | |
20497 | bool temp1 = False ; | |
20498 | PyObject * obj0 = 0 ; | |
20499 | char *kwnames[] = { | |
20500 | (char *) "val", NULL | |
20501 | }; | |
20502 | ||
20503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20504 | { | |
20505 | arg1 = wxString_in_helper(obj0); | |
20506 | if (arg1 == NULL) SWIG_fail; | |
20507 | temp1 = True; | |
20508 | } | |
20509 | { | |
20510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20511 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20512 | ||
20513 | wxPyEndAllowThreads(__tstate); | |
20514 | if (PyErr_Occurred()) SWIG_fail; | |
20515 | } | |
20516 | Py_INCREF(Py_None); resultobj = Py_None; | |
20517 | { | |
20518 | if (temp1) | |
20519 | delete arg1; | |
20520 | } | |
20521 | return resultobj; | |
20522 | fail: | |
20523 | { | |
20524 | if (temp1) | |
20525 | delete arg1; | |
20526 | } | |
20527 | return NULL; | |
20528 | } | |
20529 | ||
20530 | ||
20531 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20532 | PyObject *resultobj; | |
20533 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20534 | PyObject * obj0 = 0 ; | |
20535 | char *kwnames[] = { | |
20536 | (char *) "self", NULL | |
20537 | }; | |
20538 | ||
20539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20542 | { | |
20543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20544 | (arg1)->_BootstrapApp(); | |
20545 | ||
20546 | wxPyEndAllowThreads(__tstate); | |
20547 | if (PyErr_Occurred()) SWIG_fail; | |
20548 | } | |
20549 | Py_INCREF(Py_None); resultobj = Py_None; | |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20557 | PyObject *resultobj; | |
20558 | int result; | |
20559 | char *kwnames[] = { | |
20560 | NULL | |
20561 | }; | |
20562 | ||
20563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
20564 | { | |
20565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20566 | result = (int)wxPyApp::GetComCtl32Version(); | |
20567 | ||
20568 | wxPyEndAllowThreads(__tstate); | |
20569 | if (PyErr_Occurred()) SWIG_fail; | |
20570 | } | |
20571 | resultobj = SWIG_FromInt((int)result); | |
20572 | return resultobj; | |
20573 | fail: | |
20574 | return NULL; | |
20575 | } | |
20576 | ||
20577 | ||
20578 | static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) { | |
20579 | PyObject *obj; | |
20580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20581 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
20582 | Py_INCREF(obj); | |
20583 | return Py_BuildValue((char *)""); | |
20584 | } | |
20585 | static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20586 | PyObject *resultobj; | |
20587 | char *kwnames[] = { | |
20588 | NULL | |
20589 | }; | |
20590 | ||
20591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
20592 | { | |
20593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20594 | wxExit(); | |
20595 | ||
20596 | wxPyEndAllowThreads(__tstate); | |
20597 | if (PyErr_Occurred()) SWIG_fail; | |
20598 | } | |
20599 | Py_INCREF(Py_None); resultobj = Py_None; | |
20600 | return resultobj; | |
20601 | fail: | |
20602 | return NULL; | |
20603 | } | |
20604 | ||
20605 | ||
20606 | static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20607 | PyObject *resultobj; | |
20608 | bool result; | |
20609 | char *kwnames[] = { | |
20610 | NULL | |
20611 | }; | |
20612 | ||
20613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
20614 | { | |
20615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20616 | result = (bool)wxYield(); | |
20617 | ||
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | { | |
20622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20623 | } | |
20624 | return resultobj; | |
20625 | fail: | |
20626 | return NULL; | |
20627 | } | |
20628 | ||
20629 | ||
20630 | static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20631 | PyObject *resultobj; | |
20632 | bool result; | |
20633 | char *kwnames[] = { | |
20634 | NULL | |
20635 | }; | |
20636 | ||
20637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
20638 | { | |
20639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20640 | result = (bool)wxYieldIfNeeded(); | |
20641 | ||
20642 | wxPyEndAllowThreads(__tstate); | |
20643 | if (PyErr_Occurred()) SWIG_fail; | |
20644 | } | |
20645 | { | |
20646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20647 | } | |
20648 | return resultobj; | |
20649 | fail: | |
20650 | return NULL; | |
20651 | } | |
20652 | ||
20653 | ||
20654 | static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj; | |
20656 | wxWindow *arg1 = (wxWindow *) NULL ; | |
20657 | bool arg2 = (bool) False ; | |
20658 | bool result; | |
20659 | PyObject * obj0 = 0 ; | |
20660 | PyObject * obj1 = 0 ; | |
20661 | char *kwnames[] = { | |
20662 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
20663 | }; | |
20664 | ||
20665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
20666 | if (obj0) { | |
20667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20669 | } | |
20670 | if (obj1) { | |
20671 | arg2 = (bool) SWIG_AsBool(obj1); | |
20672 | if (PyErr_Occurred()) SWIG_fail; | |
20673 | } | |
20674 | { | |
20675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20676 | result = (bool)wxSafeYield(arg1,arg2); | |
20677 | ||
20678 | wxPyEndAllowThreads(__tstate); | |
20679 | if (PyErr_Occurred()) SWIG_fail; | |
20680 | } | |
20681 | { | |
20682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20683 | } | |
20684 | return resultobj; | |
20685 | fail: | |
20686 | return NULL; | |
20687 | } | |
20688 | ||
20689 | ||
20690 | static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20691 | PyObject *resultobj; | |
20692 | char *kwnames[] = { | |
20693 | NULL | |
20694 | }; | |
20695 | ||
20696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
20697 | { | |
20698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20699 | wxWakeUpIdle(); | |
20700 | ||
20701 | wxPyEndAllowThreads(__tstate); | |
20702 | if (PyErr_Occurred()) SWIG_fail; | |
20703 | } | |
20704 | Py_INCREF(Py_None); resultobj = Py_None; | |
20705 | return resultobj; | |
20706 | fail: | |
20707 | return NULL; | |
20708 | } | |
20709 | ||
20710 | ||
20711 | static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20712 | PyObject *resultobj; | |
20713 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
20714 | wxEvent *arg2 = 0 ; | |
20715 | PyObject * obj0 = 0 ; | |
20716 | PyObject * obj1 = 0 ; | |
20717 | char *kwnames[] = { | |
20718 | (char *) "dest",(char *) "event", NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
20722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
20723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20726 | SWIG_fail; | |
20727 | if (arg2 == NULL) { | |
20728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20729 | SWIG_fail; | |
20730 | } | |
20731 | { | |
20732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20733 | wxPostEvent(arg1,*arg2); | |
20734 | ||
20735 | wxPyEndAllowThreads(__tstate); | |
20736 | if (PyErr_Occurred()) SWIG_fail; | |
20737 | } | |
20738 | Py_INCREF(Py_None); resultobj = Py_None; | |
20739 | return resultobj; | |
20740 | fail: | |
20741 | return NULL; | |
20742 | } | |
20743 | ||
20744 | ||
20745 | static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20746 | PyObject *resultobj; | |
20747 | char *kwnames[] = { | |
20748 | NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
20752 | { | |
20753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20754 | wxApp_CleanUp(); | |
20755 | ||
20756 | wxPyEndAllowThreads(__tstate); | |
20757 | if (PyErr_Occurred()) SWIG_fail; | |
20758 | } | |
20759 | Py_INCREF(Py_None); resultobj = Py_None; | |
20760 | return resultobj; | |
20761 | fail: | |
20762 | return NULL; | |
20763 | } | |
20764 | ||
20765 | ||
20766 | static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20767 | PyObject *resultobj; | |
20768 | wxPyApp *result; | |
20769 | char *kwnames[] = { | |
20770 | NULL | |
20771 | }; | |
20772 | ||
20773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
20774 | { | |
20775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 20776 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
20777 | |
20778 | wxPyEndAllowThreads(__tstate); | |
20779 | if (PyErr_Occurred()) SWIG_fail; | |
20780 | } | |
20781 | { | |
20782 | resultobj = wxPyMake_wxObject(result); | |
20783 | } | |
20784 | return resultobj; | |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
20790 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20791 | PyObject *resultobj; | |
20792 | int arg1 = (int) 0 ; | |
20793 | int arg2 = (int) 0 ; | |
20794 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
20795 | wxAcceleratorEntry *result; |
20796 | PyObject * obj0 = 0 ; | |
20797 | PyObject * obj1 = 0 ; | |
20798 | PyObject * obj2 = 0 ; | |
d55e5bfc | 20799 | char *kwnames[] = { |
c24da6d6 | 20800 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
20801 | }; |
20802 | ||
c24da6d6 | 20803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
20804 | if (obj0) { |
20805 | arg1 = (int) SWIG_AsInt(obj0); | |
20806 | if (PyErr_Occurred()) SWIG_fail; | |
20807 | } | |
20808 | if (obj1) { | |
20809 | arg2 = (int) SWIG_AsInt(obj1); | |
20810 | if (PyErr_Occurred()) SWIG_fail; | |
20811 | } | |
20812 | if (obj2) { | |
20813 | arg3 = (int) SWIG_AsInt(obj2); | |
20814 | if (PyErr_Occurred()) SWIG_fail; | |
20815 | } | |
d55e5bfc RD |
20816 | { |
20817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 20818 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
20819 | |
20820 | wxPyEndAllowThreads(__tstate); | |
20821 | if (PyErr_Occurred()) SWIG_fail; | |
20822 | } | |
20823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
20824 | return resultobj; | |
20825 | fail: | |
20826 | return NULL; | |
20827 | } | |
20828 | ||
20829 | ||
20830 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20831 | PyObject *resultobj; | |
20832 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20833 | PyObject * obj0 = 0 ; | |
20834 | char *kwnames[] = { | |
20835 | (char *) "self", NULL | |
20836 | }; | |
20837 | ||
20838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
20839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20841 | { | |
20842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20843 | delete arg1; | |
20844 | ||
20845 | wxPyEndAllowThreads(__tstate); | |
20846 | if (PyErr_Occurred()) SWIG_fail; | |
20847 | } | |
20848 | Py_INCREF(Py_None); resultobj = Py_None; | |
20849 | return resultobj; | |
20850 | fail: | |
20851 | return NULL; | |
20852 | } | |
20853 | ||
20854 | ||
20855 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20856 | PyObject *resultobj; | |
20857 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20858 | int arg2 ; | |
20859 | int arg3 ; | |
20860 | int arg4 ; | |
d55e5bfc RD |
20861 | PyObject * obj0 = 0 ; |
20862 | PyObject * obj1 = 0 ; | |
20863 | PyObject * obj2 = 0 ; | |
20864 | PyObject * obj3 = 0 ; | |
d55e5bfc | 20865 | char *kwnames[] = { |
c24da6d6 | 20866 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
20867 | }; |
20868 | ||
c24da6d6 | 20869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
20870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
20871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20872 | arg2 = (int) SWIG_AsInt(obj1); | |
20873 | if (PyErr_Occurred()) SWIG_fail; | |
20874 | arg3 = (int) SWIG_AsInt(obj2); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | arg4 = (int) SWIG_AsInt(obj3); | |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc RD |
20878 | { |
20879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c24da6d6 | 20880 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
20881 | |
20882 | wxPyEndAllowThreads(__tstate); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
20885 | Py_INCREF(Py_None); resultobj = Py_None; | |
20886 | return resultobj; | |
20887 | fail: | |
20888 | return NULL; | |
20889 | } | |
20890 | ||
20891 | ||
d55e5bfc RD |
20892 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { |
20893 | PyObject *resultobj; | |
20894 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20895 | int result; | |
20896 | PyObject * obj0 = 0 ; | |
20897 | char *kwnames[] = { | |
20898 | (char *) "self", NULL | |
20899 | }; | |
20900 | ||
20901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
20902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20904 | { | |
20905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20906 | result = (int)(arg1)->GetFlags(); | |
20907 | ||
20908 | wxPyEndAllowThreads(__tstate); | |
20909 | if (PyErr_Occurred()) SWIG_fail; | |
20910 | } | |
20911 | resultobj = SWIG_FromInt((int)result); | |
20912 | return resultobj; | |
20913 | fail: | |
20914 | return NULL; | |
20915 | } | |
20916 | ||
20917 | ||
20918 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20919 | PyObject *resultobj; | |
20920 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20921 | int result; | |
20922 | PyObject * obj0 = 0 ; | |
20923 | char *kwnames[] = { | |
20924 | (char *) "self", NULL | |
20925 | }; | |
20926 | ||
20927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
20928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | result = (int)(arg1)->GetKeyCode(); | |
20933 | ||
20934 | wxPyEndAllowThreads(__tstate); | |
20935 | if (PyErr_Occurred()) SWIG_fail; | |
20936 | } | |
20937 | resultobj = SWIG_FromInt((int)result); | |
20938 | return resultobj; | |
20939 | fail: | |
20940 | return NULL; | |
20941 | } | |
20942 | ||
20943 | ||
20944 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20945 | PyObject *resultobj; | |
20946 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
20947 | int result; | |
20948 | PyObject * obj0 = 0 ; | |
20949 | char *kwnames[] = { | |
20950 | (char *) "self", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
20954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
20955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20956 | { | |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | result = (int)(arg1)->GetCommand(); | |
20959 | ||
20960 | wxPyEndAllowThreads(__tstate); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
20962 | } | |
20963 | resultobj = SWIG_FromInt((int)result); | |
20964 | return resultobj; | |
20965 | fail: | |
20966 | return NULL; | |
20967 | } | |
20968 | ||
20969 | ||
20970 | static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) { | |
20971 | PyObject *obj; | |
20972 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20973 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
20974 | Py_INCREF(obj); | |
20975 | return Py_BuildValue((char *)""); | |
20976 | } | |
20977 | static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20978 | PyObject *resultobj; | |
20979 | int arg1 ; | |
20980 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
20981 | wxAcceleratorTable *result; | |
20982 | PyObject * obj0 = 0 ; | |
20983 | char *kwnames[] = { | |
20984 | (char *) "n", NULL | |
20985 | }; | |
20986 | ||
20987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
20988 | { | |
20989 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
20990 | if (arg2) arg1 = PyList_Size(obj0); | |
20991 | else arg1 = 0; | |
20992 | } | |
20993 | { | |
20994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20995 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
20996 | ||
20997 | wxPyEndAllowThreads(__tstate); | |
20998 | if (PyErr_Occurred()) SWIG_fail; | |
20999 | } | |
21000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21001 | { | |
21002 | delete [] arg2; | |
21003 | } | |
21004 | return resultobj; | |
21005 | fail: | |
21006 | { | |
21007 | delete [] arg2; | |
21008 | } | |
21009 | return NULL; | |
21010 | } | |
21011 | ||
21012 | ||
21013 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21014 | PyObject *resultobj; | |
21015 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21016 | PyObject * obj0 = 0 ; | |
21017 | char *kwnames[] = { | |
21018 | (char *) "self", NULL | |
21019 | }; | |
21020 | ||
21021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21024 | { | |
21025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21026 | delete arg1; | |
21027 | ||
21028 | wxPyEndAllowThreads(__tstate); | |
21029 | if (PyErr_Occurred()) SWIG_fail; | |
21030 | } | |
21031 | Py_INCREF(Py_None); resultobj = Py_None; | |
21032 | return resultobj; | |
21033 | fail: | |
21034 | return NULL; | |
21035 | } | |
21036 | ||
21037 | ||
21038 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21039 | PyObject *resultobj; | |
21040 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21041 | bool result; | |
21042 | PyObject * obj0 = 0 ; | |
21043 | char *kwnames[] = { | |
21044 | (char *) "self", NULL | |
21045 | }; | |
21046 | ||
21047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21050 | { | |
21051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21052 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21053 | ||
21054 | wxPyEndAllowThreads(__tstate); | |
21055 | if (PyErr_Occurred()) SWIG_fail; | |
21056 | } | |
21057 | { | |
21058 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21059 | } | |
21060 | return resultobj; | |
21061 | fail: | |
21062 | return NULL; | |
21063 | } | |
21064 | ||
21065 | ||
21066 | static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) { | |
21067 | PyObject *obj; | |
21068 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21069 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21070 | Py_INCREF(obj); | |
21071 | return Py_BuildValue((char *)""); | |
21072 | } | |
21073 | static int _wrap_NullAcceleratorTable_set(PyObject *_val) { | |
21074 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); | |
21075 | return 1; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21080 | PyObject *pyobj; | |
21081 | ||
21082 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21083 | return pyobj; | |
21084 | } | |
21085 | ||
21086 | ||
21087 | static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21088 | PyObject *resultobj; | |
21089 | wxString *arg1 = 0 ; | |
21090 | wxAcceleratorEntry *result; | |
21091 | bool temp1 = False ; | |
21092 | PyObject * obj0 = 0 ; | |
21093 | char *kwnames[] = { | |
21094 | (char *) "label", NULL | |
21095 | }; | |
21096 | ||
21097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21098 | { | |
21099 | arg1 = wxString_in_helper(obj0); | |
21100 | if (arg1 == NULL) SWIG_fail; | |
21101 | temp1 = True; | |
21102 | } | |
21103 | { | |
21104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21105 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21106 | ||
21107 | wxPyEndAllowThreads(__tstate); | |
21108 | if (PyErr_Occurred()) SWIG_fail; | |
21109 | } | |
21110 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21111 | { | |
21112 | if (temp1) | |
21113 | delete arg1; | |
21114 | } | |
21115 | return resultobj; | |
21116 | fail: | |
21117 | { | |
21118 | if (temp1) | |
21119 | delete arg1; | |
21120 | } | |
21121 | return NULL; | |
21122 | } | |
21123 | ||
21124 | ||
21125 | static int _wrap_PanelNameStr_set(PyObject *_val) { | |
21126 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); | |
21127 | return 1; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | static PyObject *_wrap_PanelNameStr_get() { | |
21132 | PyObject *pyobj; | |
21133 | ||
21134 | { | |
21135 | #if wxUSE_UNICODE | |
21136 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21137 | #else | |
21138 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21139 | #endif | |
21140 | } | |
21141 | return pyobj; | |
21142 | } | |
21143 | ||
21144 | ||
21145 | static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21146 | PyObject *resultobj; | |
21147 | wxVisualAttributes *result; | |
21148 | char *kwnames[] = { | |
21149 | NULL | |
21150 | }; | |
21151 | ||
21152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21153 | { | |
21154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21155 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21156 | ||
21157 | wxPyEndAllowThreads(__tstate); | |
21158 | if (PyErr_Occurred()) SWIG_fail; | |
21159 | } | |
21160 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21161 | return resultobj; | |
21162 | fail: | |
21163 | return NULL; | |
21164 | } | |
21165 | ||
21166 | ||
21167 | static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21168 | PyObject *resultobj; | |
21169 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21170 | PyObject * obj0 = 0 ; | |
21171 | char *kwnames[] = { | |
21172 | (char *) "self", NULL | |
21173 | }; | |
21174 | ||
21175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21178 | { | |
21179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21180 | delete_wxVisualAttributes(arg1); | |
21181 | ||
21182 | wxPyEndAllowThreads(__tstate); | |
21183 | if (PyErr_Occurred()) SWIG_fail; | |
21184 | } | |
21185 | Py_INCREF(Py_None); resultobj = Py_None; | |
21186 | return resultobj; | |
21187 | fail: | |
21188 | return NULL; | |
21189 | } | |
21190 | ||
21191 | ||
21192 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21193 | PyObject *resultobj; | |
21194 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21195 | wxFont *arg2 = (wxFont *) 0 ; | |
21196 | PyObject * obj0 = 0 ; | |
21197 | PyObject * obj1 = 0 ; | |
21198 | char *kwnames[] = { | |
21199 | (char *) "self",(char *) "font", NULL | |
21200 | }; | |
21201 | ||
21202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21207 | if (arg1) (arg1)->font = *arg2; | |
21208 | ||
21209 | Py_INCREF(Py_None); resultobj = Py_None; | |
21210 | return resultobj; | |
21211 | fail: | |
21212 | return NULL; | |
21213 | } | |
21214 | ||
21215 | ||
21216 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21217 | PyObject *resultobj; | |
21218 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21219 | wxFont *result; | |
21220 | PyObject * obj0 = 0 ; | |
21221 | char *kwnames[] = { | |
21222 | (char *) "self", NULL | |
21223 | }; | |
21224 | ||
21225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21228 | result = (wxFont *)& ((arg1)->font); | |
21229 | ||
21230 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21231 | return resultobj; | |
21232 | fail: | |
21233 | return NULL; | |
21234 | } | |
21235 | ||
21236 | ||
21237 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21238 | PyObject *resultobj; | |
21239 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21240 | wxColour *arg2 = (wxColour *) 0 ; | |
21241 | PyObject * obj0 = 0 ; | |
21242 | PyObject * obj1 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "self",(char *) "colFg", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21252 | if (arg1) (arg1)->colFg = *arg2; | |
21253 | ||
21254 | Py_INCREF(Py_None); resultobj = Py_None; | |
21255 | return resultobj; | |
21256 | fail: | |
21257 | return NULL; | |
21258 | } | |
21259 | ||
21260 | ||
21261 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21262 | PyObject *resultobj; | |
21263 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21264 | wxColour *result; | |
21265 | PyObject * obj0 = 0 ; | |
21266 | char *kwnames[] = { | |
21267 | (char *) "self", NULL | |
21268 | }; | |
21269 | ||
21270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21273 | result = (wxColour *)& ((arg1)->colFg); | |
21274 | ||
21275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
21282 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21283 | PyObject *resultobj; | |
21284 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21285 | wxColour *arg2 = (wxColour *) 0 ; | |
21286 | PyObject * obj0 = 0 ; | |
21287 | PyObject * obj1 = 0 ; | |
21288 | char *kwnames[] = { | |
21289 | (char *) "self",(char *) "colBg", NULL | |
21290 | }; | |
21291 | ||
21292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21295 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21297 | if (arg1) (arg1)->colBg = *arg2; | |
21298 | ||
21299 | Py_INCREF(Py_None); resultobj = Py_None; | |
21300 | return resultobj; | |
21301 | fail: | |
21302 | return NULL; | |
21303 | } | |
21304 | ||
21305 | ||
21306 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21307 | PyObject *resultobj; | |
21308 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21309 | wxColour *result; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | char *kwnames[] = { | |
21312 | (char *) "self", NULL | |
21313 | }; | |
21314 | ||
21315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
21316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21318 | result = (wxColour *)& ((arg1)->colBg); | |
21319 | ||
21320 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) { | |
21328 | PyObject *obj; | |
21329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21330 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
21331 | Py_INCREF(obj); | |
21332 | return Py_BuildValue((char *)""); | |
21333 | } | |
21334 | static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21335 | PyObject *resultobj; | |
21336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21337 | int arg2 = (int) (int)-1 ; | |
21338 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21339 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21340 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21341 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21342 | long arg5 = (long) 0 ; | |
21343 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
21344 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
21345 | wxWindow *result; | |
21346 | wxPoint temp3 ; | |
21347 | wxSize temp4 ; | |
21348 | bool temp6 = False ; | |
21349 | PyObject * obj0 = 0 ; | |
21350 | PyObject * obj1 = 0 ; | |
21351 | PyObject * obj2 = 0 ; | |
21352 | PyObject * obj3 = 0 ; | |
21353 | PyObject * obj4 = 0 ; | |
21354 | PyObject * obj5 = 0 ; | |
21355 | char *kwnames[] = { | |
21356 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21357 | }; | |
21358 | ||
21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
21360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21362 | if (obj1) { | |
21363 | arg2 = (int const) SWIG_AsInt(obj1); | |
21364 | if (PyErr_Occurred()) SWIG_fail; | |
21365 | } | |
21366 | if (obj2) { | |
21367 | { | |
21368 | arg3 = &temp3; | |
21369 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21370 | } | |
21371 | } | |
21372 | if (obj3) { | |
21373 | { | |
21374 | arg4 = &temp4; | |
21375 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21376 | } | |
21377 | } | |
21378 | if (obj4) { | |
21379 | arg5 = (long) SWIG_AsLong(obj4); | |
21380 | if (PyErr_Occurred()) SWIG_fail; | |
21381 | } | |
21382 | if (obj5) { | |
21383 | { | |
21384 | arg6 = wxString_in_helper(obj5); | |
21385 | if (arg6 == NULL) SWIG_fail; | |
21386 | temp6 = True; | |
21387 | } | |
21388 | } | |
21389 | { | |
21390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21391 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
21392 | ||
21393 | wxPyEndAllowThreads(__tstate); | |
21394 | if (PyErr_Occurred()) SWIG_fail; | |
21395 | } | |
21396 | { | |
21397 | resultobj = wxPyMake_wxObject(result); | |
21398 | } | |
21399 | { | |
21400 | if (temp6) | |
21401 | delete arg6; | |
21402 | } | |
21403 | return resultobj; | |
21404 | fail: | |
21405 | { | |
21406 | if (temp6) | |
21407 | delete arg6; | |
21408 | } | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
21413 | static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21414 | PyObject *resultobj; | |
21415 | wxWindow *result; | |
21416 | char *kwnames[] = { | |
21417 | NULL | |
21418 | }; | |
21419 | ||
21420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
21421 | { | |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | result = (wxWindow *)new wxWindow(); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | { | |
21429 | resultobj = wxPyMake_wxObject(result); | |
21430 | } | |
21431 | return resultobj; | |
21432 | fail: | |
21433 | return NULL; | |
21434 | } | |
21435 | ||
21436 | ||
21437 | static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21438 | PyObject *resultobj; | |
21439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21440 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21441 | int arg3 = (int) (int)-1 ; | |
21442 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21443 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21444 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21445 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21446 | long arg6 = (long) 0 ; | |
21447 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
21448 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21449 | bool result; | |
21450 | wxPoint temp4 ; | |
21451 | wxSize temp5 ; | |
21452 | bool temp7 = False ; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | PyObject * obj1 = 0 ; | |
21455 | PyObject * obj2 = 0 ; | |
21456 | PyObject * obj3 = 0 ; | |
21457 | PyObject * obj4 = 0 ; | |
21458 | PyObject * obj5 = 0 ; | |
21459 | PyObject * obj6 = 0 ; | |
21460 | char *kwnames[] = { | |
21461 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
21462 | }; | |
21463 | ||
21464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21469 | if (obj2) { | |
21470 | arg3 = (int const) SWIG_AsInt(obj2); | |
21471 | if (PyErr_Occurred()) SWIG_fail; | |
21472 | } | |
21473 | if (obj3) { | |
21474 | { | |
21475 | arg4 = &temp4; | |
21476 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21477 | } | |
21478 | } | |
21479 | if (obj4) { | |
21480 | { | |
21481 | arg5 = &temp5; | |
21482 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21483 | } | |
21484 | } | |
21485 | if (obj5) { | |
21486 | arg6 = (long) SWIG_AsLong(obj5); | |
21487 | if (PyErr_Occurred()) SWIG_fail; | |
21488 | } | |
21489 | if (obj6) { | |
21490 | { | |
21491 | arg7 = wxString_in_helper(obj6); | |
21492 | if (arg7 == NULL) SWIG_fail; | |
21493 | temp7 = True; | |
21494 | } | |
21495 | } | |
21496 | { | |
21497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21498 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
21499 | ||
21500 | wxPyEndAllowThreads(__tstate); | |
21501 | if (PyErr_Occurred()) SWIG_fail; | |
21502 | } | |
21503 | { | |
21504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21505 | } | |
21506 | { | |
21507 | if (temp7) | |
21508 | delete arg7; | |
21509 | } | |
21510 | return resultobj; | |
21511 | fail: | |
21512 | { | |
21513 | if (temp7) | |
21514 | delete arg7; | |
21515 | } | |
21516 | return NULL; | |
21517 | } | |
21518 | ||
21519 | ||
21520 | static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21521 | PyObject *resultobj; | |
21522 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21523 | bool arg2 = (bool) False ; | |
21524 | bool result; | |
21525 | PyObject * obj0 = 0 ; | |
21526 | PyObject * obj1 = 0 ; | |
21527 | char *kwnames[] = { | |
21528 | (char *) "self",(char *) "force", NULL | |
21529 | }; | |
21530 | ||
21531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
21532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21534 | if (obj1) { | |
21535 | arg2 = (bool) SWIG_AsBool(obj1); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | } | |
21538 | { | |
21539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21540 | result = (bool)(arg1)->Close(arg2); | |
21541 | ||
21542 | wxPyEndAllowThreads(__tstate); | |
21543 | if (PyErr_Occurred()) SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21547 | } | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
21554 | static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21555 | PyObject *resultobj; | |
21556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21557 | bool result; | |
21558 | PyObject * obj0 = 0 ; | |
21559 | char *kwnames[] = { | |
21560 | (char *) "self", NULL | |
21561 | }; | |
21562 | ||
21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
21564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21566 | { | |
21567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21568 | result = (bool)(arg1)->Destroy(); | |
21569 | ||
21570 | wxPyEndAllowThreads(__tstate); | |
21571 | if (PyErr_Occurred()) SWIG_fail; | |
21572 | } | |
21573 | { | |
21574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21575 | } | |
21576 | return resultobj; | |
21577 | fail: | |
21578 | return NULL; | |
21579 | } | |
21580 | ||
21581 | ||
21582 | static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21583 | PyObject *resultobj; | |
21584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21585 | bool result; | |
21586 | PyObject * obj0 = 0 ; | |
21587 | char *kwnames[] = { | |
21588 | (char *) "self", NULL | |
21589 | }; | |
21590 | ||
21591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
21592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21594 | { | |
21595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21596 | result = (bool)(arg1)->DestroyChildren(); | |
21597 | ||
21598 | wxPyEndAllowThreads(__tstate); | |
21599 | if (PyErr_Occurred()) SWIG_fail; | |
21600 | } | |
21601 | { | |
21602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21603 | } | |
21604 | return resultobj; | |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
21610 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21611 | PyObject *resultobj; | |
21612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21613 | bool result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | { | |
21630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21631 | } | |
21632 | return resultobj; | |
21633 | fail: | |
21634 | return NULL; | |
21635 | } | |
21636 | ||
21637 | ||
21638 | static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21639 | PyObject *resultobj; | |
21640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21641 | wxString *arg2 = 0 ; | |
21642 | bool temp2 = False ; | |
21643 | PyObject * obj0 = 0 ; | |
21644 | PyObject * obj1 = 0 ; | |
21645 | char *kwnames[] = { | |
21646 | (char *) "self",(char *) "title", NULL | |
21647 | }; | |
21648 | ||
21649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
21650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21652 | { | |
21653 | arg2 = wxString_in_helper(obj1); | |
21654 | if (arg2 == NULL) SWIG_fail; | |
21655 | temp2 = True; | |
21656 | } | |
21657 | { | |
21658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21659 | (arg1)->SetTitle((wxString const &)*arg2); | |
21660 | ||
21661 | wxPyEndAllowThreads(__tstate); | |
21662 | if (PyErr_Occurred()) SWIG_fail; | |
21663 | } | |
21664 | Py_INCREF(Py_None); resultobj = Py_None; | |
21665 | { | |
21666 | if (temp2) | |
21667 | delete arg2; | |
21668 | } | |
21669 | return resultobj; | |
21670 | fail: | |
21671 | { | |
21672 | if (temp2) | |
21673 | delete arg2; | |
21674 | } | |
21675 | return NULL; | |
21676 | } | |
21677 | ||
21678 | ||
21679 | static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21680 | PyObject *resultobj; | |
21681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21682 | wxString result; | |
21683 | PyObject * obj0 = 0 ; | |
21684 | char *kwnames[] = { | |
21685 | (char *) "self", NULL | |
21686 | }; | |
21687 | ||
21688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
21689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21691 | { | |
21692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21693 | result = ((wxWindow const *)arg1)->GetTitle(); | |
21694 | ||
21695 | wxPyEndAllowThreads(__tstate); | |
21696 | if (PyErr_Occurred()) SWIG_fail; | |
21697 | } | |
21698 | { | |
21699 | #if wxUSE_UNICODE | |
21700 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21701 | #else | |
21702 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21703 | #endif | |
21704 | } | |
21705 | return resultobj; | |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
21711 | static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21712 | PyObject *resultobj; | |
21713 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21714 | wxString *arg2 = 0 ; | |
21715 | bool temp2 = False ; | |
21716 | PyObject * obj0 = 0 ; | |
21717 | PyObject * obj1 = 0 ; | |
21718 | char *kwnames[] = { | |
21719 | (char *) "self",(char *) "label", NULL | |
21720 | }; | |
21721 | ||
21722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
21723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21725 | { | |
21726 | arg2 = wxString_in_helper(obj1); | |
21727 | if (arg2 == NULL) SWIG_fail; | |
21728 | temp2 = True; | |
21729 | } | |
21730 | { | |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21732 | (arg1)->SetLabel((wxString const &)*arg2); | |
21733 | ||
21734 | wxPyEndAllowThreads(__tstate); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
21737 | Py_INCREF(Py_None); resultobj = Py_None; | |
21738 | { | |
21739 | if (temp2) | |
21740 | delete arg2; | |
21741 | } | |
21742 | return resultobj; | |
21743 | fail: | |
21744 | { | |
21745 | if (temp2) | |
21746 | delete arg2; | |
21747 | } | |
21748 | return NULL; | |
21749 | } | |
21750 | ||
21751 | ||
21752 | static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21753 | PyObject *resultobj; | |
21754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21755 | wxString result; | |
21756 | PyObject * obj0 = 0 ; | |
21757 | char *kwnames[] = { | |
21758 | (char *) "self", NULL | |
21759 | }; | |
21760 | ||
21761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
21762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21764 | { | |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = ((wxWindow const *)arg1)->GetLabel(); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
21771 | { | |
21772 | #if wxUSE_UNICODE | |
21773 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21774 | #else | |
21775 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21776 | #endif | |
21777 | } | |
21778 | return resultobj; | |
21779 | fail: | |
21780 | return NULL; | |
21781 | } | |
21782 | ||
21783 | ||
21784 | static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21785 | PyObject *resultobj; | |
21786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21787 | wxString *arg2 = 0 ; | |
21788 | bool temp2 = False ; | |
21789 | PyObject * obj0 = 0 ; | |
21790 | PyObject * obj1 = 0 ; | |
21791 | char *kwnames[] = { | |
21792 | (char *) "self",(char *) "name", NULL | |
21793 | }; | |
21794 | ||
21795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
21796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21798 | { | |
21799 | arg2 = wxString_in_helper(obj1); | |
21800 | if (arg2 == NULL) SWIG_fail; | |
21801 | temp2 = True; | |
21802 | } | |
21803 | { | |
21804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21805 | (arg1)->SetName((wxString const &)*arg2); | |
21806 | ||
21807 | wxPyEndAllowThreads(__tstate); | |
21808 | if (PyErr_Occurred()) SWIG_fail; | |
21809 | } | |
21810 | Py_INCREF(Py_None); resultobj = Py_None; | |
21811 | { | |
21812 | if (temp2) | |
21813 | delete arg2; | |
21814 | } | |
21815 | return resultobj; | |
21816 | fail: | |
21817 | { | |
21818 | if (temp2) | |
21819 | delete arg2; | |
21820 | } | |
21821 | return NULL; | |
21822 | } | |
21823 | ||
21824 | ||
21825 | static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21826 | PyObject *resultobj; | |
21827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21828 | wxString result; | |
21829 | PyObject * obj0 = 0 ; | |
21830 | char *kwnames[] = { | |
21831 | (char *) "self", NULL | |
21832 | }; | |
21833 | ||
21834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
21835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21837 | { | |
21838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21839 | result = ((wxWindow const *)arg1)->GetName(); | |
21840 | ||
21841 | wxPyEndAllowThreads(__tstate); | |
21842 | if (PyErr_Occurred()) SWIG_fail; | |
21843 | } | |
21844 | { | |
21845 | #if wxUSE_UNICODE | |
21846 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21847 | #else | |
21848 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21849 | #endif | |
21850 | } | |
21851 | return resultobj; | |
21852 | fail: | |
21853 | return NULL; | |
21854 | } | |
21855 | ||
21856 | ||
21857 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21858 | PyObject *resultobj; | |
21859 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21860 | int arg2 ; | |
21861 | PyObject * obj0 = 0 ; | |
21862 | PyObject * obj1 = 0 ; | |
21863 | char *kwnames[] = { | |
21864 | (char *) "self",(char *) "variant", NULL | |
21865 | }; | |
21866 | ||
21867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
21868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21870 | arg2 = (wxWindowVariant) SWIG_AsInt(obj1); | |
21871 | if (PyErr_Occurred()) SWIG_fail; | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
21875 | ||
21876 | wxPyEndAllowThreads(__tstate); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | } | |
21879 | Py_INCREF(Py_None); resultobj = Py_None; | |
21880 | return resultobj; | |
21881 | fail: | |
21882 | return NULL; | |
21883 | } | |
21884 | ||
21885 | ||
21886 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21887 | PyObject *resultobj; | |
21888 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21889 | int result; | |
21890 | PyObject * obj0 = 0 ; | |
21891 | char *kwnames[] = { | |
21892 | (char *) "self", NULL | |
21893 | }; | |
21894 | ||
21895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
21896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21898 | { | |
21899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21900 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
21901 | ||
21902 | wxPyEndAllowThreads(__tstate); | |
21903 | if (PyErr_Occurred()) SWIG_fail; | |
21904 | } | |
21905 | resultobj = SWIG_FromInt((int)result); | |
21906 | return resultobj; | |
21907 | fail: | |
21908 | return NULL; | |
21909 | } | |
21910 | ||
21911 | ||
21912 | static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21913 | PyObject *resultobj; | |
21914 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21915 | int arg2 ; | |
21916 | PyObject * obj0 = 0 ; | |
21917 | PyObject * obj1 = 0 ; | |
21918 | char *kwnames[] = { | |
21919 | (char *) "self",(char *) "winid", NULL | |
21920 | }; | |
21921 | ||
21922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
21923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21925 | arg2 = (int) SWIG_AsInt(obj1); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | { | |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21929 | (arg1)->SetId(arg2); | |
21930 | ||
21931 | wxPyEndAllowThreads(__tstate); | |
21932 | if (PyErr_Occurred()) SWIG_fail; | |
21933 | } | |
21934 | Py_INCREF(Py_None); resultobj = Py_None; | |
21935 | return resultobj; | |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
21941 | static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21942 | PyObject *resultobj; | |
21943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21944 | int result; | |
21945 | PyObject * obj0 = 0 ; | |
21946 | char *kwnames[] = { | |
21947 | (char *) "self", NULL | |
21948 | }; | |
21949 | ||
21950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
21951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21953 | { | |
21954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21955 | result = (int)((wxWindow const *)arg1)->GetId(); | |
21956 | ||
21957 | wxPyEndAllowThreads(__tstate); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | } | |
21960 | resultobj = SWIG_FromInt((int)result); | |
21961 | return resultobj; | |
21962 | fail: | |
21963 | return NULL; | |
21964 | } | |
21965 | ||
21966 | ||
21967 | static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21968 | PyObject *resultobj; | |
21969 | int result; | |
21970 | char *kwnames[] = { | |
21971 | NULL | |
21972 | }; | |
21973 | ||
21974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
21975 | { | |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21977 | result = (int)wxWindow::NewControlId(); | |
21978 | ||
21979 | wxPyEndAllowThreads(__tstate); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | resultobj = SWIG_FromInt((int)result); | |
21983 | return resultobj; | |
21984 | fail: | |
21985 | return NULL; | |
21986 | } | |
21987 | ||
21988 | ||
21989 | static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21990 | PyObject *resultobj; | |
21991 | int arg1 ; | |
21992 | int result; | |
21993 | PyObject * obj0 = 0 ; | |
21994 | char *kwnames[] = { | |
21995 | (char *) "winid", NULL | |
21996 | }; | |
21997 | ||
21998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
21999 | arg1 = (int) SWIG_AsInt(obj0); | |
22000 | if (PyErr_Occurred()) SWIG_fail; | |
22001 | { | |
22002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22003 | result = (int)wxWindow::NextControlId(arg1); | |
22004 | ||
22005 | wxPyEndAllowThreads(__tstate); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | resultobj = SWIG_FromInt((int)result); | |
22009 | return resultobj; | |
22010 | fail: | |
22011 | return NULL; | |
22012 | } | |
22013 | ||
22014 | ||
22015 | static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22016 | PyObject *resultobj; | |
22017 | int arg1 ; | |
22018 | int result; | |
22019 | PyObject * obj0 = 0 ; | |
22020 | char *kwnames[] = { | |
22021 | (char *) "winid", NULL | |
22022 | }; | |
22023 | ||
22024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
22025 | arg1 = (int) SWIG_AsInt(obj0); | |
22026 | if (PyErr_Occurred()) SWIG_fail; | |
22027 | { | |
22028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22029 | result = (int)wxWindow::PrevControlId(arg1); | |
22030 | ||
22031 | wxPyEndAllowThreads(__tstate); | |
22032 | if (PyErr_Occurred()) SWIG_fail; | |
22033 | } | |
22034 | resultobj = SWIG_FromInt((int)result); | |
22035 | return resultobj; | |
22036 | fail: | |
22037 | return NULL; | |
22038 | } | |
22039 | ||
22040 | ||
22041 | static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22042 | PyObject *resultobj; | |
22043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22044 | wxSize *arg2 = 0 ; | |
22045 | wxSize temp2 ; | |
22046 | PyObject * obj0 = 0 ; | |
22047 | PyObject * obj1 = 0 ; | |
22048 | char *kwnames[] = { | |
22049 | (char *) "self",(char *) "size", NULL | |
22050 | }; | |
22051 | ||
22052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22055 | { | |
22056 | arg2 = &temp2; | |
22057 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22058 | } | |
22059 | { | |
22060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22061 | (arg1)->SetSize((wxSize const &)*arg2); | |
22062 | ||
22063 | wxPyEndAllowThreads(__tstate); | |
22064 | if (PyErr_Occurred()) SWIG_fail; | |
22065 | } | |
22066 | Py_INCREF(Py_None); resultobj = Py_None; | |
22067 | return resultobj; | |
22068 | fail: | |
22069 | return NULL; | |
22070 | } | |
22071 | ||
22072 | ||
22073 | static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22074 | PyObject *resultobj; | |
22075 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22076 | int arg2 ; | |
22077 | int arg3 ; | |
22078 | int arg4 ; | |
22079 | int arg5 ; | |
22080 | int arg6 = (int) wxSIZE_AUTO ; | |
22081 | PyObject * obj0 = 0 ; | |
22082 | PyObject * obj1 = 0 ; | |
22083 | PyObject * obj2 = 0 ; | |
22084 | PyObject * obj3 = 0 ; | |
22085 | PyObject * obj4 = 0 ; | |
22086 | PyObject * obj5 = 0 ; | |
22087 | char *kwnames[] = { | |
22088 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22089 | }; | |
22090 | ||
22091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22094 | arg2 = (int) SWIG_AsInt(obj1); | |
22095 | if (PyErr_Occurred()) SWIG_fail; | |
22096 | arg3 = (int) SWIG_AsInt(obj2); | |
22097 | if (PyErr_Occurred()) SWIG_fail; | |
22098 | arg4 = (int) SWIG_AsInt(obj3); | |
22099 | if (PyErr_Occurred()) SWIG_fail; | |
22100 | arg5 = (int) SWIG_AsInt(obj4); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | if (obj5) { | |
22103 | arg6 = (int) SWIG_AsInt(obj5); | |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
22105 | } | |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22109 | ||
22110 | wxPyEndAllowThreads(__tstate); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | } | |
22113 | Py_INCREF(Py_None); resultobj = Py_None; | |
22114 | return resultobj; | |
22115 | fail: | |
22116 | return NULL; | |
22117 | } | |
22118 | ||
22119 | ||
22120 | static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22121 | PyObject *resultobj; | |
22122 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22123 | wxRect *arg2 = 0 ; | |
22124 | int arg3 = (int) wxSIZE_AUTO ; | |
22125 | wxRect temp2 ; | |
22126 | PyObject * obj0 = 0 ; | |
22127 | PyObject * obj1 = 0 ; | |
22128 | PyObject * obj2 = 0 ; | |
22129 | char *kwnames[] = { | |
22130 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22131 | }; | |
22132 | ||
22133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22136 | { | |
22137 | arg2 = &temp2; | |
22138 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22139 | } | |
22140 | if (obj2) { | |
22141 | arg3 = (int) SWIG_AsInt(obj2); | |
22142 | if (PyErr_Occurred()) SWIG_fail; | |
22143 | } | |
22144 | { | |
22145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22146 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22147 | ||
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
22151 | Py_INCREF(Py_None); resultobj = Py_None; | |
22152 | return resultobj; | |
22153 | fail: | |
22154 | return NULL; | |
22155 | } | |
22156 | ||
22157 | ||
22158 | static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22159 | PyObject *resultobj; | |
22160 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22161 | int arg2 ; | |
22162 | int arg3 ; | |
22163 | PyObject * obj0 = 0 ; | |
22164 | PyObject * obj1 = 0 ; | |
22165 | PyObject * obj2 = 0 ; | |
22166 | char *kwnames[] = { | |
22167 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22168 | }; | |
22169 | ||
22170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22173 | arg2 = (int) SWIG_AsInt(obj1); | |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | arg3 = (int) SWIG_AsInt(obj2); | |
22176 | if (PyErr_Occurred()) SWIG_fail; | |
22177 | { | |
22178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22179 | (arg1)->SetSize(arg2,arg3); | |
22180 | ||
22181 | wxPyEndAllowThreads(__tstate); | |
22182 | if (PyErr_Occurred()) SWIG_fail; | |
22183 | } | |
22184 | Py_INCREF(Py_None); resultobj = Py_None; | |
22185 | return resultobj; | |
22186 | fail: | |
22187 | return NULL; | |
22188 | } | |
22189 | ||
22190 | ||
22191 | static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22192 | PyObject *resultobj; | |
22193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22194 | wxPoint *arg2 = 0 ; | |
22195 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22196 | wxPoint temp2 ; | |
22197 | PyObject * obj0 = 0 ; | |
22198 | PyObject * obj1 = 0 ; | |
22199 | PyObject * obj2 = 0 ; | |
22200 | char *kwnames[] = { | |
22201 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22202 | }; | |
22203 | ||
22204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22207 | { | |
22208 | arg2 = &temp2; | |
22209 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22210 | } | |
22211 | if (obj2) { | |
22212 | arg3 = (int) SWIG_AsInt(obj2); | |
22213 | if (PyErr_Occurred()) SWIG_fail; | |
22214 | } | |
22215 | { | |
22216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22217 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22218 | ||
22219 | wxPyEndAllowThreads(__tstate); | |
22220 | if (PyErr_Occurred()) SWIG_fail; | |
22221 | } | |
22222 | Py_INCREF(Py_None); resultobj = Py_None; | |
22223 | return resultobj; | |
22224 | fail: | |
22225 | return NULL; | |
22226 | } | |
22227 | ||
22228 | ||
22229 | static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22230 | PyObject *resultobj; | |
22231 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22232 | int arg2 ; | |
22233 | int arg3 ; | |
22234 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22235 | PyObject * obj0 = 0 ; | |
22236 | PyObject * obj1 = 0 ; | |
22237 | PyObject * obj2 = 0 ; | |
22238 | PyObject * obj3 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22246 | arg2 = (int) SWIG_AsInt(obj1); | |
22247 | if (PyErr_Occurred()) SWIG_fail; | |
22248 | arg3 = (int) SWIG_AsInt(obj2); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | if (obj3) { | |
22251 | arg4 = (int) SWIG_AsInt(obj3); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | } | |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | (arg1)->Move(arg2,arg3,arg4); | |
22257 | ||
22258 | wxPyEndAllowThreads(__tstate); | |
22259 | if (PyErr_Occurred()) SWIG_fail; | |
22260 | } | |
22261 | Py_INCREF(Py_None); resultobj = Py_None; | |
22262 | return resultobj; | |
22263 | fail: | |
22264 | return NULL; | |
22265 | } | |
22266 | ||
22267 | ||
22268 | static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22269 | PyObject *resultobj; | |
22270 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22279 | { | |
22280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22281 | (arg1)->Raise(); | |
22282 | ||
22283 | wxPyEndAllowThreads(__tstate); | |
22284 | if (PyErr_Occurred()) SWIG_fail; | |
22285 | } | |
22286 | Py_INCREF(Py_None); resultobj = Py_None; | |
22287 | return resultobj; | |
22288 | fail: | |
22289 | return NULL; | |
22290 | } | |
22291 | ||
22292 | ||
22293 | static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22294 | PyObject *resultobj; | |
22295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22296 | PyObject * obj0 = 0 ; | |
22297 | char *kwnames[] = { | |
22298 | (char *) "self", NULL | |
22299 | }; | |
22300 | ||
22301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
22302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22304 | { | |
22305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22306 | (arg1)->Lower(); | |
22307 | ||
22308 | wxPyEndAllowThreads(__tstate); | |
22309 | if (PyErr_Occurred()) SWIG_fail; | |
22310 | } | |
22311 | Py_INCREF(Py_None); resultobj = Py_None; | |
22312 | return resultobj; | |
22313 | fail: | |
22314 | return NULL; | |
22315 | } | |
22316 | ||
22317 | ||
22318 | static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22319 | PyObject *resultobj; | |
22320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22321 | wxSize *arg2 = 0 ; | |
22322 | wxSize temp2 ; | |
22323 | PyObject * obj0 = 0 ; | |
22324 | PyObject * obj1 = 0 ; | |
22325 | char *kwnames[] = { | |
22326 | (char *) "self",(char *) "size", NULL | |
22327 | }; | |
22328 | ||
22329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
22330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22332 | { | |
22333 | arg2 = &temp2; | |
22334 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22335 | } | |
22336 | { | |
22337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22338 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
22339 | ||
22340 | wxPyEndAllowThreads(__tstate); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | } | |
22343 | Py_INCREF(Py_None); resultobj = Py_None; | |
22344 | return resultobj; | |
22345 | fail: | |
22346 | return NULL; | |
22347 | } | |
22348 | ||
22349 | ||
22350 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22351 | PyObject *resultobj; | |
22352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22353 | int arg2 ; | |
22354 | int arg3 ; | |
22355 | PyObject * obj0 = 0 ; | |
22356 | PyObject * obj1 = 0 ; | |
22357 | PyObject * obj2 = 0 ; | |
22358 | char *kwnames[] = { | |
22359 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22360 | }; | |
22361 | ||
22362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22365 | arg2 = (int) SWIG_AsInt(obj1); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | arg3 = (int) SWIG_AsInt(obj2); | |
22368 | if (PyErr_Occurred()) SWIG_fail; | |
22369 | { | |
22370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22371 | (arg1)->SetClientSize(arg2,arg3); | |
22372 | ||
22373 | wxPyEndAllowThreads(__tstate); | |
22374 | if (PyErr_Occurred()) SWIG_fail; | |
22375 | } | |
22376 | Py_INCREF(Py_None); resultobj = Py_None; | |
22377 | return resultobj; | |
22378 | fail: | |
22379 | return NULL; | |
22380 | } | |
22381 | ||
22382 | ||
22383 | static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22384 | PyObject *resultobj; | |
22385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22386 | wxRect *arg2 = 0 ; | |
22387 | wxRect temp2 ; | |
22388 | PyObject * obj0 = 0 ; | |
22389 | PyObject * obj1 = 0 ; | |
22390 | char *kwnames[] = { | |
22391 | (char *) "self",(char *) "rect", NULL | |
22392 | }; | |
22393 | ||
22394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
22395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22397 | { | |
22398 | arg2 = &temp2; | |
22399 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22400 | } | |
22401 | { | |
22402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22403 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
22404 | ||
22405 | wxPyEndAllowThreads(__tstate); | |
22406 | if (PyErr_Occurred()) SWIG_fail; | |
22407 | } | |
22408 | Py_INCREF(Py_None); resultobj = Py_None; | |
22409 | return resultobj; | |
22410 | fail: | |
22411 | return NULL; | |
22412 | } | |
22413 | ||
22414 | ||
22415 | static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22416 | PyObject *resultobj; | |
22417 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22418 | wxPoint result; | |
22419 | PyObject * obj0 = 0 ; | |
22420 | char *kwnames[] = { | |
22421 | (char *) "self", NULL | |
22422 | }; | |
22423 | ||
22424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
22425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22427 | { | |
22428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22429 | result = (arg1)->GetPosition(); | |
22430 | ||
22431 | wxPyEndAllowThreads(__tstate); | |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
22433 | } | |
22434 | { | |
22435 | wxPoint * resultptr; | |
22436 | resultptr = new wxPoint((wxPoint &) result); | |
22437 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22438 | } | |
22439 | return resultobj; | |
22440 | fail: | |
22441 | return NULL; | |
22442 | } | |
22443 | ||
22444 | ||
22445 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22446 | PyObject *resultobj; | |
22447 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22448 | int *arg2 = (int *) 0 ; | |
22449 | int *arg3 = (int *) 0 ; | |
22450 | int temp2 ; | |
22451 | int temp3 ; | |
22452 | PyObject * obj0 = 0 ; | |
22453 | char *kwnames[] = { | |
22454 | (char *) "self", NULL | |
22455 | }; | |
22456 | ||
22457 | arg2 = &temp2; | |
22458 | arg3 = &temp3; | |
22459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; | |
22460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22462 | { | |
22463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22464 | (arg1)->GetPosition(arg2,arg3); | |
22465 | ||
22466 | wxPyEndAllowThreads(__tstate); | |
22467 | if (PyErr_Occurred()) SWIG_fail; | |
22468 | } | |
22469 | Py_INCREF(Py_None); resultobj = Py_None; | |
22470 | { | |
22471 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22472 | resultobj = t_output_helper(resultobj,o); | |
22473 | } | |
22474 | { | |
22475 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22476 | resultobj = t_output_helper(resultobj,o); | |
22477 | } | |
22478 | return resultobj; | |
22479 | fail: | |
22480 | return NULL; | |
22481 | } | |
22482 | ||
22483 | ||
22484 | static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22485 | PyObject *resultobj; | |
22486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22487 | wxSize result; | |
22488 | PyObject * obj0 = 0 ; | |
22489 | char *kwnames[] = { | |
22490 | (char *) "self", NULL | |
22491 | }; | |
22492 | ||
22493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
22494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22496 | { | |
22497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22498 | result = ((wxWindow const *)arg1)->GetSize(); | |
22499 | ||
22500 | wxPyEndAllowThreads(__tstate); | |
22501 | if (PyErr_Occurred()) SWIG_fail; | |
22502 | } | |
22503 | { | |
22504 | wxSize * resultptr; | |
22505 | resultptr = new wxSize((wxSize &) result); | |
22506 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22507 | } | |
22508 | return resultobj; | |
22509 | fail: | |
22510 | return NULL; | |
22511 | } | |
22512 | ||
22513 | ||
22514 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22515 | PyObject *resultobj; | |
22516 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22517 | int *arg2 = (int *) 0 ; | |
22518 | int *arg3 = (int *) 0 ; | |
22519 | int temp2 ; | |
22520 | int temp3 ; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self", NULL | |
22524 | }; | |
22525 | ||
22526 | arg2 = &temp2; | |
22527 | arg3 = &temp3; | |
22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; | |
22529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22531 | { | |
22532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22533 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
22534 | ||
22535 | wxPyEndAllowThreads(__tstate); | |
22536 | if (PyErr_Occurred()) SWIG_fail; | |
22537 | } | |
22538 | Py_INCREF(Py_None); resultobj = Py_None; | |
22539 | { | |
22540 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22541 | resultobj = t_output_helper(resultobj,o); | |
22542 | } | |
22543 | { | |
22544 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22545 | resultobj = t_output_helper(resultobj,o); | |
22546 | } | |
22547 | return resultobj; | |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
22553 | static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22554 | PyObject *resultobj; | |
22555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22556 | wxRect result; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
22563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22565 | { | |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | result = ((wxWindow const *)arg1)->GetRect(); | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
22572 | { | |
22573 | wxRect * resultptr; | |
22574 | resultptr = new wxRect((wxRect &) result); | |
22575 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22576 | } | |
22577 | return resultobj; | |
22578 | fail: | |
22579 | return NULL; | |
22580 | } | |
22581 | ||
22582 | ||
22583 | static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22584 | PyObject *resultobj; | |
22585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22586 | wxSize result; | |
22587 | PyObject * obj0 = 0 ; | |
22588 | char *kwnames[] = { | |
22589 | (char *) "self", NULL | |
22590 | }; | |
22591 | ||
22592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
22593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22595 | { | |
22596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22597 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
22598 | ||
22599 | wxPyEndAllowThreads(__tstate); | |
22600 | if (PyErr_Occurred()) SWIG_fail; | |
22601 | } | |
22602 | { | |
22603 | wxSize * resultptr; | |
22604 | resultptr = new wxSize((wxSize &) result); | |
22605 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22606 | } | |
22607 | return resultobj; | |
22608 | fail: | |
22609 | return NULL; | |
22610 | } | |
22611 | ||
22612 | ||
22613 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22614 | PyObject *resultobj; | |
22615 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22616 | int *arg2 = (int *) 0 ; | |
22617 | int *arg3 = (int *) 0 ; | |
22618 | int temp2 ; | |
22619 | int temp3 ; | |
22620 | PyObject * obj0 = 0 ; | |
22621 | char *kwnames[] = { | |
22622 | (char *) "self", NULL | |
22623 | }; | |
22624 | ||
22625 | arg2 = &temp2; | |
22626 | arg3 = &temp3; | |
22627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; | |
22628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22630 | { | |
22631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22632 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
22633 | ||
22634 | wxPyEndAllowThreads(__tstate); | |
22635 | if (PyErr_Occurred()) SWIG_fail; | |
22636 | } | |
22637 | Py_INCREF(Py_None); resultobj = Py_None; | |
22638 | { | |
22639 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22640 | resultobj = t_output_helper(resultobj,o); | |
22641 | } | |
22642 | { | |
22643 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22644 | resultobj = t_output_helper(resultobj,o); | |
22645 | } | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
22652 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22653 | PyObject *resultobj; | |
22654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22655 | wxPoint result; | |
22656 | PyObject * obj0 = 0 ; | |
22657 | char *kwnames[] = { | |
22658 | (char *) "self", NULL | |
22659 | }; | |
22660 | ||
22661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
22662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22664 | { | |
22665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22666 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
22667 | ||
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
22671 | { | |
22672 | wxPoint * resultptr; | |
22673 | resultptr = new wxPoint((wxPoint &) result); | |
22674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22675 | } | |
22676 | return resultobj; | |
22677 | fail: | |
22678 | return NULL; | |
22679 | } | |
22680 | ||
22681 | ||
22682 | static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22683 | PyObject *resultobj; | |
22684 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22685 | wxRect result; | |
22686 | PyObject * obj0 = 0 ; | |
22687 | char *kwnames[] = { | |
22688 | (char *) "self", NULL | |
22689 | }; | |
22690 | ||
22691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
22692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22694 | { | |
22695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22696 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
22697 | ||
22698 | wxPyEndAllowThreads(__tstate); | |
22699 | if (PyErr_Occurred()) SWIG_fail; | |
22700 | } | |
22701 | { | |
22702 | wxRect * resultptr; | |
22703 | resultptr = new wxRect((wxRect &) result); | |
22704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22705 | } | |
22706 | return resultobj; | |
22707 | fail: | |
22708 | return NULL; | |
22709 | } | |
22710 | ||
22711 | ||
22712 | static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22713 | PyObject *resultobj; | |
22714 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22715 | wxSize result; | |
22716 | PyObject * obj0 = 0 ; | |
22717 | char *kwnames[] = { | |
22718 | (char *) "self", NULL | |
22719 | }; | |
22720 | ||
22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
22722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
22727 | ||
22728 | wxPyEndAllowThreads(__tstate); | |
22729 | if (PyErr_Occurred()) SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | wxSize * resultptr; | |
22733 | resultptr = new wxSize((wxSize &) result); | |
22734 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22735 | } | |
22736 | return resultobj; | |
22737 | fail: | |
22738 | return NULL; | |
22739 | } | |
22740 | ||
22741 | ||
22742 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22743 | PyObject *resultobj; | |
22744 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22745 | int *arg2 = (int *) 0 ; | |
22746 | int *arg3 = (int *) 0 ; | |
22747 | int temp2 ; | |
22748 | int temp3 ; | |
22749 | PyObject * obj0 = 0 ; | |
22750 | char *kwnames[] = { | |
22751 | (char *) "self", NULL | |
22752 | }; | |
22753 | ||
22754 | arg2 = &temp2; | |
22755 | arg3 = &temp3; | |
22756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; | |
22757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22759 | { | |
22760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22761 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
22762 | ||
22763 | wxPyEndAllowThreads(__tstate); | |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
22765 | } | |
22766 | Py_INCREF(Py_None); resultobj = Py_None; | |
22767 | { | |
22768 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
22769 | resultobj = t_output_helper(resultobj,o); | |
22770 | } | |
22771 | { | |
22772 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22773 | resultobj = t_output_helper(resultobj,o); | |
22774 | } | |
22775 | return resultobj; | |
22776 | fail: | |
22777 | return NULL; | |
22778 | } | |
22779 | ||
22780 | ||
22781 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22782 | PyObject *resultobj; | |
22783 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22784 | wxSize result; | |
22785 | PyObject * obj0 = 0 ; | |
22786 | char *kwnames[] = { | |
22787 | (char *) "self", NULL | |
22788 | }; | |
22789 | ||
22790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
22791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22793 | { | |
22794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22795 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
22796 | ||
22797 | wxPyEndAllowThreads(__tstate); | |
22798 | if (PyErr_Occurred()) SWIG_fail; | |
22799 | } | |
22800 | { | |
22801 | wxSize * resultptr; | |
22802 | resultptr = new wxSize((wxSize &) result); | |
22803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22804 | } | |
22805 | return resultobj; | |
22806 | fail: | |
22807 | return NULL; | |
22808 | } | |
22809 | ||
22810 | ||
22811 | static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22812 | PyObject *resultobj; | |
22813 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22814 | int arg2 = (int) wxBOTH ; | |
22815 | PyObject * obj0 = 0 ; | |
22816 | PyObject * obj1 = 0 ; | |
22817 | char *kwnames[] = { | |
22818 | (char *) "self",(char *) "direction", NULL | |
22819 | }; | |
22820 | ||
22821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
22822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22824 | if (obj1) { | |
22825 | arg2 = (int) SWIG_AsInt(obj1); | |
22826 | if (PyErr_Occurred()) SWIG_fail; | |
22827 | } | |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22830 | (arg1)->Center(arg2); | |
22831 | ||
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
22835 | Py_INCREF(Py_None); resultobj = Py_None; | |
22836 | return resultobj; | |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
22842 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22843 | PyObject *resultobj; | |
22844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22845 | int arg2 = (int) wxBOTH ; | |
22846 | PyObject * obj0 = 0 ; | |
22847 | PyObject * obj1 = 0 ; | |
22848 | char *kwnames[] = { | |
22849 | (char *) "self",(char *) "dir", NULL | |
22850 | }; | |
22851 | ||
22852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
22853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22855 | if (obj1) { | |
22856 | arg2 = (int) SWIG_AsInt(obj1); | |
22857 | if (PyErr_Occurred()) SWIG_fail; | |
22858 | } | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | (arg1)->CenterOnScreen(arg2); | |
22862 | ||
22863 | wxPyEndAllowThreads(__tstate); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
22866 | Py_INCREF(Py_None); resultobj = Py_None; | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22874 | PyObject *resultobj; | |
22875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22876 | int arg2 = (int) wxBOTH ; | |
22877 | PyObject * obj0 = 0 ; | |
22878 | PyObject * obj1 = 0 ; | |
22879 | char *kwnames[] = { | |
22880 | (char *) "self",(char *) "dir", NULL | |
22881 | }; | |
22882 | ||
22883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
22884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22886 | if (obj1) { | |
22887 | arg2 = (int) SWIG_AsInt(obj1); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | } | |
22890 | { | |
22891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22892 | (arg1)->CenterOnParent(arg2); | |
22893 | ||
22894 | wxPyEndAllowThreads(__tstate); | |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
22896 | } | |
22897 | Py_INCREF(Py_None); resultobj = Py_None; | |
22898 | return resultobj; | |
22899 | fail: | |
22900 | return NULL; | |
22901 | } | |
22902 | ||
22903 | ||
22904 | static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22905 | PyObject *resultobj; | |
22906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22907 | PyObject * obj0 = 0 ; | |
22908 | char *kwnames[] = { | |
22909 | (char *) "self", NULL | |
22910 | }; | |
22911 | ||
22912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
22913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22915 | { | |
22916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22917 | (arg1)->Fit(); | |
22918 | ||
22919 | wxPyEndAllowThreads(__tstate); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | } | |
22922 | Py_INCREF(Py_None); resultobj = Py_None; | |
22923 | return resultobj; | |
22924 | fail: | |
22925 | return NULL; | |
22926 | } | |
22927 | ||
22928 | ||
22929 | static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22930 | PyObject *resultobj; | |
22931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22932 | PyObject * obj0 = 0 ; | |
22933 | char *kwnames[] = { | |
22934 | (char *) "self", NULL | |
22935 | }; | |
22936 | ||
22937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
22938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22940 | { | |
22941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22942 | (arg1)->FitInside(); | |
22943 | ||
22944 | wxPyEndAllowThreads(__tstate); | |
22945 | if (PyErr_Occurred()) SWIG_fail; | |
22946 | } | |
22947 | Py_INCREF(Py_None); resultobj = Py_None; | |
22948 | return resultobj; | |
22949 | fail: | |
22950 | return NULL; | |
22951 | } | |
22952 | ||
22953 | ||
22954 | static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
22955 | PyObject *resultobj; | |
22956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22957 | int arg2 ; | |
22958 | int arg3 ; | |
22959 | int arg4 = (int) -1 ; | |
22960 | int arg5 = (int) -1 ; | |
22961 | int arg6 = (int) -1 ; | |
22962 | int arg7 = (int) -1 ; | |
22963 | PyObject * obj0 = 0 ; | |
22964 | PyObject * obj1 = 0 ; | |
22965 | PyObject * obj2 = 0 ; | |
22966 | PyObject * obj3 = 0 ; | |
22967 | PyObject * obj4 = 0 ; | |
22968 | PyObject * obj5 = 0 ; | |
22969 | PyObject * obj6 = 0 ; | |
22970 | ||
22971 | if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22974 | arg2 = (int) SWIG_AsInt(obj1); | |
22975 | if (PyErr_Occurred()) SWIG_fail; | |
22976 | arg3 = (int) SWIG_AsInt(obj2); | |
22977 | if (PyErr_Occurred()) SWIG_fail; | |
22978 | if (obj3) { | |
22979 | arg4 = (int) SWIG_AsInt(obj3); | |
22980 | if (PyErr_Occurred()) SWIG_fail; | |
22981 | } | |
22982 | if (obj4) { | |
22983 | arg5 = (int) SWIG_AsInt(obj4); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
22986 | if (obj5) { | |
22987 | arg6 = (int) SWIG_AsInt(obj5); | |
22988 | if (PyErr_Occurred()) SWIG_fail; | |
22989 | } | |
22990 | if (obj6) { | |
22991 | arg7 = (int) SWIG_AsInt(obj6); | |
22992 | if (PyErr_Occurred()) SWIG_fail; | |
22993 | } | |
22994 | { | |
22995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22996 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
22997 | ||
22998 | wxPyEndAllowThreads(__tstate); | |
22999 | if (PyErr_Occurred()) SWIG_fail; | |
23000 | } | |
23001 | Py_INCREF(Py_None); resultobj = Py_None; | |
23002 | return resultobj; | |
23003 | fail: | |
23004 | return NULL; | |
23005 | } | |
23006 | ||
23007 | ||
23008 | static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) { | |
23009 | PyObject *resultobj; | |
23010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23011 | wxSize *arg2 = 0 ; | |
23012 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23013 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23014 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23015 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23016 | wxSize temp2 ; | |
23017 | wxSize temp3 ; | |
23018 | wxSize temp4 ; | |
23019 | PyObject * obj0 = 0 ; | |
23020 | PyObject * obj1 = 0 ; | |
23021 | PyObject * obj2 = 0 ; | |
23022 | PyObject * obj3 = 0 ; | |
23023 | ||
23024 | if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23027 | { | |
23028 | arg2 = &temp2; | |
23029 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23030 | } | |
23031 | if (obj2) { | |
23032 | { | |
23033 | arg3 = &temp3; | |
23034 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23035 | } | |
23036 | } | |
23037 | if (obj3) { | |
23038 | { | |
23039 | arg4 = &temp4; | |
23040 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23041 | } | |
23042 | } | |
23043 | { | |
23044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23045 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); | |
23046 | ||
23047 | wxPyEndAllowThreads(__tstate); | |
23048 | if (PyErr_Occurred()) SWIG_fail; | |
23049 | } | |
23050 | Py_INCREF(Py_None); resultobj = Py_None; | |
23051 | return resultobj; | |
23052 | fail: | |
23053 | return NULL; | |
23054 | } | |
23055 | ||
23056 | ||
23057 | static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) { | |
23058 | int argc; | |
23059 | PyObject *argv[8]; | |
23060 | int ii; | |
23061 | ||
23062 | argc = PyObject_Length(args); | |
23063 | for (ii = 0; (ii < argc) && (ii < 7); ii++) { | |
23064 | argv[ii] = PyTuple_GetItem(args,ii); | |
23065 | } | |
23066 | if ((argc >= 2) && (argc <= 4)) { | |
23067 | int _v; | |
23068 | { | |
23069 | void *ptr; | |
23070 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23071 | _v = 0; | |
23072 | PyErr_Clear(); | |
23073 | } else { | |
23074 | _v = 1; | |
23075 | } | |
23076 | } | |
23077 | if (_v) { | |
23078 | { | |
23079 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23080 | } | |
23081 | if (_v) { | |
23082 | if (argc <= 2) { | |
23083 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23084 | } | |
23085 | { | |
23086 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23087 | } | |
23088 | if (_v) { | |
23089 | if (argc <= 3) { | |
23090 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23091 | } | |
23092 | { | |
23093 | _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2); | |
23094 | } | |
23095 | if (_v) { | |
23096 | return _wrap_Window_SetSizeHints__SWIG_1(self,args); | |
23097 | } | |
23098 | } | |
23099 | } | |
23100 | } | |
23101 | } | |
23102 | if ((argc >= 3) && (argc <= 7)) { | |
23103 | int _v; | |
23104 | { | |
23105 | void *ptr; | |
23106 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23107 | _v = 0; | |
23108 | PyErr_Clear(); | |
23109 | } else { | |
23110 | _v = 1; | |
23111 | } | |
23112 | } | |
23113 | if (_v) { | |
23114 | _v = SWIG_CheckInt(argv[1]); | |
23115 | if (_v) { | |
23116 | _v = SWIG_CheckInt(argv[2]); | |
23117 | if (_v) { | |
23118 | if (argc <= 3) { | |
23119 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23120 | } | |
23121 | _v = SWIG_CheckInt(argv[3]); | |
23122 | if (_v) { | |
23123 | if (argc <= 4) { | |
23124 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23125 | } | |
23126 | _v = SWIG_CheckInt(argv[4]); | |
23127 | if (_v) { | |
23128 | if (argc <= 5) { | |
23129 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23130 | } | |
23131 | _v = SWIG_CheckInt(argv[5]); | |
23132 | if (_v) { | |
23133 | if (argc <= 6) { | |
23134 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23135 | } | |
23136 | _v = SWIG_CheckInt(argv[6]); | |
23137 | if (_v) { | |
23138 | return _wrap_Window_SetSizeHints__SWIG_0(self,args); | |
23139 | } | |
23140 | } | |
23141 | } | |
23142 | } | |
23143 | } | |
23144 | } | |
23145 | } | |
23146 | } | |
23147 | ||
23148 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'"); | |
23149 | return NULL; | |
23150 | } | |
23151 | ||
23152 | ||
23153 | static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) { | |
23154 | PyObject *resultobj; | |
23155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23156 | int arg2 ; | |
23157 | int arg3 ; | |
23158 | int arg4 = (int) -1 ; | |
23159 | int arg5 = (int) -1 ; | |
23160 | PyObject * obj0 = 0 ; | |
23161 | PyObject * obj1 = 0 ; | |
23162 | PyObject * obj2 = 0 ; | |
23163 | PyObject * obj3 = 0 ; | |
23164 | PyObject * obj4 = 0 ; | |
23165 | ||
23166 | if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23169 | arg2 = (int) SWIG_AsInt(obj1); | |
23170 | if (PyErr_Occurred()) SWIG_fail; | |
23171 | arg3 = (int) SWIG_AsInt(obj2); | |
23172 | if (PyErr_Occurred()) SWIG_fail; | |
23173 | if (obj3) { | |
23174 | arg4 = (int) SWIG_AsInt(obj3); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
23176 | } | |
23177 | if (obj4) { | |
23178 | arg5 = (int) SWIG_AsInt(obj4); | |
23179 | if (PyErr_Occurred()) SWIG_fail; | |
23180 | } | |
23181 | { | |
23182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23183 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); | |
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_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) { | |
23196 | PyObject *resultobj; | |
23197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23198 | wxSize *arg2 = 0 ; | |
23199 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23200 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23201 | wxSize temp2 ; | |
23202 | wxSize temp3 ; | |
23203 | PyObject * obj0 = 0 ; | |
23204 | PyObject * obj1 = 0 ; | |
23205 | PyObject * obj2 = 0 ; | |
23206 | ||
23207 | if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail; | |
23208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23210 | { | |
23211 | arg2 = &temp2; | |
23212 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23213 | } | |
23214 | if (obj2) { | |
23215 | { | |
23216 | arg3 = &temp3; | |
23217 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23218 | } | |
23219 | } | |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23223 | ||
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | Py_INCREF(Py_None); resultobj = Py_None; | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
23234 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) { | |
23235 | int argc; | |
23236 | PyObject *argv[6]; | |
23237 | int ii; | |
23238 | ||
23239 | argc = PyObject_Length(args); | |
23240 | for (ii = 0; (ii < argc) && (ii < 5); ii++) { | |
23241 | argv[ii] = PyTuple_GetItem(args,ii); | |
23242 | } | |
23243 | if ((argc >= 2) && (argc <= 3)) { | |
23244 | int _v; | |
23245 | { | |
23246 | void *ptr; | |
23247 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23248 | _v = 0; | |
23249 | PyErr_Clear(); | |
23250 | } else { | |
23251 | _v = 1; | |
23252 | } | |
23253 | } | |
23254 | if (_v) { | |
23255 | { | |
23256 | _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); | |
23257 | } | |
23258 | if (_v) { | |
23259 | if (argc <= 2) { | |
23260 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23261 | } | |
23262 | { | |
23263 | _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2); | |
23264 | } | |
23265 | if (_v) { | |
23266 | return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args); | |
23267 | } | |
23268 | } | |
23269 | } | |
23270 | } | |
23271 | if ((argc >= 3) && (argc <= 5)) { | |
23272 | int _v; | |
23273 | { | |
23274 | void *ptr; | |
23275 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
23276 | _v = 0; | |
23277 | PyErr_Clear(); | |
23278 | } else { | |
23279 | _v = 1; | |
23280 | } | |
23281 | } | |
23282 | if (_v) { | |
23283 | _v = SWIG_CheckInt(argv[1]); | |
23284 | if (_v) { | |
23285 | _v = SWIG_CheckInt(argv[2]); | |
23286 | if (_v) { | |
23287 | if (argc <= 3) { | |
23288 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23289 | } | |
23290 | _v = SWIG_CheckInt(argv[3]); | |
23291 | if (_v) { | |
23292 | if (argc <= 4) { | |
23293 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23294 | } | |
23295 | _v = SWIG_CheckInt(argv[4]); | |
23296 | if (_v) { | |
23297 | return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args); | |
23298 | } | |
23299 | } | |
23300 | } | |
23301 | } | |
23302 | } | |
23303 | } | |
23304 | ||
23305 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'"); | |
23306 | return NULL; | |
23307 | } | |
23308 | ||
23309 | ||
23310 | static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23311 | PyObject *resultobj; | |
23312 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23313 | int result; | |
23314 | PyObject * obj0 = 0 ; | |
23315 | char *kwnames[] = { | |
23316 | (char *) "self", NULL | |
23317 | }; | |
23318 | ||
23319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; | |
23320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23322 | { | |
23323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23324 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); | |
23325 | ||
23326 | wxPyEndAllowThreads(__tstate); | |
23327 | if (PyErr_Occurred()) SWIG_fail; | |
23328 | } | |
23329 | resultobj = SWIG_FromInt((int)result); | |
23330 | return resultobj; | |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
23336 | static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23337 | PyObject *resultobj; | |
23338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23339 | int result; | |
23340 | PyObject * obj0 = 0 ; | |
23341 | char *kwnames[] = { | |
23342 | (char *) "self", NULL | |
23343 | }; | |
23344 | ||
23345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; | |
23346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23348 | { | |
23349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23350 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); | |
23351 | ||
23352 | wxPyEndAllowThreads(__tstate); | |
23353 | if (PyErr_Occurred()) SWIG_fail; | |
23354 | } | |
23355 | resultobj = SWIG_FromInt((int)result); | |
23356 | return resultobj; | |
23357 | fail: | |
23358 | return NULL; | |
23359 | } | |
23360 | ||
23361 | ||
23362 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23363 | PyObject *resultobj; | |
23364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23365 | int result; | |
23366 | PyObject * obj0 = 0 ; | |
23367 | char *kwnames[] = { | |
23368 | (char *) "self", NULL | |
23369 | }; | |
23370 | ||
23371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; | |
23372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); | |
23377 | ||
23378 | wxPyEndAllowThreads(__tstate); | |
23379 | if (PyErr_Occurred()) SWIG_fail; | |
23380 | } | |
23381 | resultobj = SWIG_FromInt((int)result); | |
23382 | return resultobj; | |
23383 | fail: | |
23384 | return NULL; | |
23385 | } | |
23386 | ||
23387 | ||
23388 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23389 | PyObject *resultobj; | |
23390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23391 | int result; | |
23392 | PyObject * obj0 = 0 ; | |
23393 | char *kwnames[] = { | |
23394 | (char *) "self", NULL | |
23395 | }; | |
23396 | ||
23397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; | |
23398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23400 | { | |
23401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23402 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); | |
23403 | ||
23404 | wxPyEndAllowThreads(__tstate); | |
23405 | if (PyErr_Occurred()) SWIG_fail; | |
23406 | } | |
23407 | resultobj = SWIG_FromInt((int)result); | |
23408 | return resultobj; | |
23409 | fail: | |
23410 | return NULL; | |
23411 | } | |
23412 | ||
23413 | ||
23414 | static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23415 | PyObject *resultobj; | |
23416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23417 | wxSize result; | |
23418 | PyObject * obj0 = 0 ; | |
23419 | char *kwnames[] = { | |
23420 | (char *) "self", NULL | |
23421 | }; | |
23422 | ||
23423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; | |
23424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23426 | { | |
23427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23428 | result = ((wxWindow const *)arg1)->GetMaxSize(); | |
23429 | ||
23430 | wxPyEndAllowThreads(__tstate); | |
23431 | if (PyErr_Occurred()) SWIG_fail; | |
23432 | } | |
23433 | { | |
23434 | wxSize * resultptr; | |
23435 | resultptr = new wxSize((wxSize &) result); | |
23436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23437 | } | |
23438 | return resultobj; | |
23439 | fail: | |
23440 | return NULL; | |
23441 | } | |
23442 | ||
23443 | ||
23444 | static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23445 | PyObject *resultobj; | |
23446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23447 | wxSize result; | |
23448 | PyObject * obj0 = 0 ; | |
23449 | char *kwnames[] = { | |
23450 | (char *) "self", NULL | |
23451 | }; | |
23452 | ||
23453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; | |
23454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23456 | { | |
23457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23458 | result = ((wxWindow const *)arg1)->GetMinSize(); | |
23459 | ||
23460 | wxPyEndAllowThreads(__tstate); | |
23461 | if (PyErr_Occurred()) SWIG_fail; | |
23462 | } | |
23463 | { | |
23464 | wxSize * resultptr; | |
23465 | resultptr = new wxSize((wxSize &) result); | |
23466 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23467 | } | |
23468 | return resultobj; | |
23469 | fail: | |
23470 | return NULL; | |
23471 | } | |
23472 | ||
23473 | ||
23474 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23475 | PyObject *resultobj; | |
23476 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23477 | wxSize *arg2 = 0 ; | |
23478 | wxSize temp2 ; | |
23479 | PyObject * obj0 = 0 ; | |
23480 | PyObject * obj1 = 0 ; | |
23481 | char *kwnames[] = { | |
23482 | (char *) "self",(char *) "size", NULL | |
23483 | }; | |
23484 | ||
23485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
23486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23488 | { | |
23489 | arg2 = &temp2; | |
23490 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23491 | } | |
23492 | { | |
23493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23494 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
23495 | ||
23496 | wxPyEndAllowThreads(__tstate); | |
23497 | if (PyErr_Occurred()) SWIG_fail; | |
23498 | } | |
23499 | Py_INCREF(Py_None); resultobj = Py_None; | |
23500 | return resultobj; | |
23501 | fail: | |
23502 | return NULL; | |
23503 | } | |
23504 | ||
23505 | ||
23506 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23507 | PyObject *resultobj; | |
23508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23509 | int arg2 ; | |
23510 | int arg3 ; | |
23511 | PyObject * obj0 = 0 ; | |
23512 | PyObject * obj1 = 0 ; | |
23513 | PyObject * obj2 = 0 ; | |
23514 | char *kwnames[] = { | |
23515 | (char *) "self",(char *) "w",(char *) "h", NULL | |
23516 | }; | |
23517 | ||
23518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23521 | arg2 = (int) SWIG_AsInt(obj1); | |
23522 | if (PyErr_Occurred()) SWIG_fail; | |
23523 | arg3 = (int) SWIG_AsInt(obj2); | |
23524 | if (PyErr_Occurred()) SWIG_fail; | |
23525 | { | |
23526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23527 | (arg1)->SetVirtualSize(arg2,arg3); | |
23528 | ||
23529 | wxPyEndAllowThreads(__tstate); | |
23530 | if (PyErr_Occurred()) SWIG_fail; | |
23531 | } | |
23532 | Py_INCREF(Py_None); resultobj = Py_None; | |
23533 | return resultobj; | |
23534 | fail: | |
23535 | return NULL; | |
23536 | } | |
23537 | ||
23538 | ||
23539 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23540 | PyObject *resultobj; | |
23541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23542 | wxSize result; | |
23543 | PyObject * obj0 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23551 | { | |
23552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23553 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
23554 | ||
23555 | wxPyEndAllowThreads(__tstate); | |
23556 | if (PyErr_Occurred()) SWIG_fail; | |
23557 | } | |
23558 | { | |
23559 | wxSize * resultptr; | |
23560 | resultptr = new wxSize((wxSize &) result); | |
23561 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23562 | } | |
23563 | return resultobj; | |
23564 | fail: | |
23565 | return NULL; | |
23566 | } | |
23567 | ||
23568 | ||
23569 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23570 | PyObject *resultobj; | |
23571 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23572 | int *arg2 = (int *) 0 ; | |
23573 | int *arg3 = (int *) 0 ; | |
23574 | int temp2 ; | |
23575 | int temp3 ; | |
23576 | PyObject * obj0 = 0 ; | |
23577 | char *kwnames[] = { | |
23578 | (char *) "self", NULL | |
23579 | }; | |
23580 | ||
23581 | arg2 = &temp2; | |
23582 | arg3 = &temp3; | |
23583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; | |
23584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23586 | { | |
23587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23588 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
23589 | ||
23590 | wxPyEndAllowThreads(__tstate); | |
23591 | if (PyErr_Occurred()) SWIG_fail; | |
23592 | } | |
23593 | Py_INCREF(Py_None); resultobj = Py_None; | |
23594 | { | |
23595 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
23596 | resultobj = t_output_helper(resultobj,o); | |
23597 | } | |
23598 | { | |
23599 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23600 | resultobj = t_output_helper(resultobj,o); | |
23601 | } | |
23602 | return resultobj; | |
23603 | fail: | |
23604 | return NULL; | |
23605 | } | |
23606 | ||
23607 | ||
23608 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23609 | PyObject *resultobj; | |
23610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23611 | wxSize result; | |
23612 | PyObject * obj0 = 0 ; | |
23613 | char *kwnames[] = { | |
23614 | (char *) "self", NULL | |
23615 | }; | |
23616 | ||
23617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
23618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23620 | { | |
23621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23622 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
23623 | ||
23624 | wxPyEndAllowThreads(__tstate); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
23626 | } | |
23627 | { | |
23628 | wxSize * resultptr; | |
23629 | resultptr = new wxSize((wxSize &) result); | |
23630 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23631 | } | |
23632 | return resultobj; | |
23633 | fail: | |
23634 | return NULL; | |
23635 | } | |
23636 | ||
23637 | ||
23638 | static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23639 | PyObject *resultobj; | |
23640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23641 | bool arg2 = (bool) True ; | |
23642 | bool result; | |
23643 | PyObject * obj0 = 0 ; | |
23644 | PyObject * obj1 = 0 ; | |
23645 | char *kwnames[] = { | |
23646 | (char *) "self",(char *) "show", NULL | |
23647 | }; | |
23648 | ||
23649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
23650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23652 | if (obj1) { | |
23653 | arg2 = (bool) SWIG_AsBool(obj1); | |
23654 | if (PyErr_Occurred()) SWIG_fail; | |
23655 | } | |
23656 | { | |
23657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23658 | result = (bool)(arg1)->Show(arg2); | |
23659 | ||
23660 | wxPyEndAllowThreads(__tstate); | |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
23662 | } | |
23663 | { | |
23664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23665 | } | |
23666 | return resultobj; | |
23667 | fail: | |
23668 | return NULL; | |
23669 | } | |
23670 | ||
23671 | ||
23672 | static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23673 | PyObject *resultobj; | |
23674 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23675 | bool result; | |
23676 | PyObject * obj0 = 0 ; | |
23677 | char *kwnames[] = { | |
23678 | (char *) "self", NULL | |
23679 | }; | |
23680 | ||
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23684 | { | |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23686 | result = (bool)(arg1)->Hide(); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
23689 | if (PyErr_Occurred()) SWIG_fail; | |
23690 | } | |
23691 | { | |
23692 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23693 | } | |
23694 | return resultobj; | |
23695 | fail: | |
23696 | return NULL; | |
23697 | } | |
23698 | ||
23699 | ||
23700 | static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23701 | PyObject *resultobj; | |
23702 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23703 | bool arg2 = (bool) True ; | |
23704 | bool result; | |
23705 | PyObject * obj0 = 0 ; | |
23706 | PyObject * obj1 = 0 ; | |
23707 | char *kwnames[] = { | |
23708 | (char *) "self",(char *) "enable", NULL | |
23709 | }; | |
23710 | ||
23711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
23712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23714 | if (obj1) { | |
23715 | arg2 = (bool) SWIG_AsBool(obj1); | |
23716 | if (PyErr_Occurred()) SWIG_fail; | |
23717 | } | |
23718 | { | |
23719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23720 | result = (bool)(arg1)->Enable(arg2); | |
23721 | ||
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | { | |
23726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23727 | } | |
23728 | return resultobj; | |
23729 | fail: | |
23730 | return NULL; | |
23731 | } | |
23732 | ||
23733 | ||
23734 | static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23735 | PyObject *resultobj; | |
23736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23737 | bool result; | |
23738 | PyObject * obj0 = 0 ; | |
23739 | char *kwnames[] = { | |
23740 | (char *) "self", NULL | |
23741 | }; | |
23742 | ||
23743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
23744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23746 | { | |
23747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23748 | result = (bool)(arg1)->Disable(); | |
23749 | ||
23750 | wxPyEndAllowThreads(__tstate); | |
23751 | if (PyErr_Occurred()) SWIG_fail; | |
23752 | } | |
23753 | { | |
23754 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23755 | } | |
23756 | return resultobj; | |
23757 | fail: | |
23758 | return NULL; | |
23759 | } | |
23760 | ||
23761 | ||
23762 | static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23763 | PyObject *resultobj; | |
23764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23765 | bool result; | |
23766 | PyObject * obj0 = 0 ; | |
23767 | char *kwnames[] = { | |
23768 | (char *) "self", NULL | |
23769 | }; | |
23770 | ||
23771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
23772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23774 | { | |
23775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23776 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
23777 | ||
23778 | wxPyEndAllowThreads(__tstate); | |
23779 | if (PyErr_Occurred()) SWIG_fail; | |
23780 | } | |
23781 | { | |
23782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23783 | } | |
23784 | return resultobj; | |
23785 | fail: | |
23786 | return NULL; | |
23787 | } | |
23788 | ||
23789 | ||
23790 | static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23791 | PyObject *resultobj; | |
23792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23793 | bool result; | |
23794 | PyObject * obj0 = 0 ; | |
23795 | char *kwnames[] = { | |
23796 | (char *) "self", NULL | |
23797 | }; | |
23798 | ||
23799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
23800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23802 | { | |
23803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23804 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
23805 | ||
23806 | wxPyEndAllowThreads(__tstate); | |
23807 | if (PyErr_Occurred()) SWIG_fail; | |
23808 | } | |
23809 | { | |
23810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23811 | } | |
23812 | return resultobj; | |
23813 | fail: | |
23814 | return NULL; | |
23815 | } | |
23816 | ||
23817 | ||
23818 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23819 | PyObject *resultobj; | |
23820 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23821 | long arg2 ; | |
23822 | PyObject * obj0 = 0 ; | |
23823 | PyObject * obj1 = 0 ; | |
23824 | char *kwnames[] = { | |
23825 | (char *) "self",(char *) "style", NULL | |
23826 | }; | |
23827 | ||
23828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
23829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23831 | arg2 = (long) SWIG_AsLong(obj1); | |
23832 | if (PyErr_Occurred()) SWIG_fail; | |
23833 | { | |
23834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23835 | (arg1)->SetWindowStyleFlag(arg2); | |
23836 | ||
23837 | wxPyEndAllowThreads(__tstate); | |
23838 | if (PyErr_Occurred()) SWIG_fail; | |
23839 | } | |
23840 | Py_INCREF(Py_None); resultobj = Py_None; | |
23841 | return resultobj; | |
23842 | fail: | |
23843 | return NULL; | |
23844 | } | |
23845 | ||
23846 | ||
23847 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23848 | PyObject *resultobj; | |
23849 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23850 | long result; | |
23851 | PyObject * obj0 = 0 ; | |
23852 | char *kwnames[] = { | |
23853 | (char *) "self", NULL | |
23854 | }; | |
23855 | ||
23856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
23857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23859 | { | |
23860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23861 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
23862 | ||
23863 | wxPyEndAllowThreads(__tstate); | |
23864 | if (PyErr_Occurred()) SWIG_fail; | |
23865 | } | |
23866 | resultobj = SWIG_FromLong((long)result); | |
23867 | return resultobj; | |
23868 | fail: | |
23869 | return NULL; | |
23870 | } | |
23871 | ||
23872 | ||
23873 | static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23874 | PyObject *resultobj; | |
23875 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23876 | int arg2 ; | |
23877 | bool result; | |
23878 | PyObject * obj0 = 0 ; | |
23879 | PyObject * obj1 = 0 ; | |
23880 | char *kwnames[] = { | |
23881 | (char *) "self",(char *) "flag", NULL | |
23882 | }; | |
23883 | ||
23884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
23885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23887 | arg2 = (int) SWIG_AsInt(obj1); | |
23888 | if (PyErr_Occurred()) SWIG_fail; | |
23889 | { | |
23890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23891 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
23892 | ||
23893 | wxPyEndAllowThreads(__tstate); | |
23894 | if (PyErr_Occurred()) SWIG_fail; | |
23895 | } | |
23896 | { | |
23897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23898 | } | |
23899 | return resultobj; | |
23900 | fail: | |
23901 | return NULL; | |
23902 | } | |
23903 | ||
23904 | ||
23905 | static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23906 | PyObject *resultobj; | |
23907 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23908 | bool result; | |
23909 | PyObject * obj0 = 0 ; | |
23910 | char *kwnames[] = { | |
23911 | (char *) "self", NULL | |
23912 | }; | |
23913 | ||
23914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
23915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23917 | { | |
23918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23919 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
23920 | ||
23921 | wxPyEndAllowThreads(__tstate); | |
23922 | if (PyErr_Occurred()) SWIG_fail; | |
23923 | } | |
23924 | { | |
23925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23926 | } | |
23927 | return resultobj; | |
23928 | fail: | |
23929 | return NULL; | |
23930 | } | |
23931 | ||
23932 | ||
23933 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23934 | PyObject *resultobj; | |
23935 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23936 | long arg2 ; | |
23937 | PyObject * obj0 = 0 ; | |
23938 | PyObject * obj1 = 0 ; | |
23939 | char *kwnames[] = { | |
23940 | (char *) "self",(char *) "exStyle", NULL | |
23941 | }; | |
23942 | ||
23943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
23944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23946 | arg2 = (long) SWIG_AsLong(obj1); | |
23947 | if (PyErr_Occurred()) SWIG_fail; | |
23948 | { | |
23949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23950 | (arg1)->SetExtraStyle(arg2); | |
23951 | ||
23952 | wxPyEndAllowThreads(__tstate); | |
23953 | if (PyErr_Occurred()) SWIG_fail; | |
23954 | } | |
23955 | Py_INCREF(Py_None); resultobj = Py_None; | |
23956 | return resultobj; | |
23957 | fail: | |
23958 | return NULL; | |
23959 | } | |
23960 | ||
23961 | ||
23962 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23963 | PyObject *resultobj; | |
23964 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23965 | long result; | |
23966 | PyObject * obj0 = 0 ; | |
23967 | char *kwnames[] = { | |
23968 | (char *) "self", NULL | |
23969 | }; | |
23970 | ||
23971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
23972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23974 | { | |
23975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23976 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
23977 | ||
23978 | wxPyEndAllowThreads(__tstate); | |
23979 | if (PyErr_Occurred()) SWIG_fail; | |
23980 | } | |
23981 | resultobj = SWIG_FromLong((long)result); | |
23982 | return resultobj; | |
23983 | fail: | |
23984 | return NULL; | |
23985 | } | |
23986 | ||
23987 | ||
23988 | static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23989 | PyObject *resultobj; | |
23990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23991 | bool arg2 = (bool) True ; | |
23992 | PyObject * obj0 = 0 ; | |
23993 | PyObject * obj1 = 0 ; | |
23994 | char *kwnames[] = { | |
23995 | (char *) "self",(char *) "modal", NULL | |
23996 | }; | |
23997 | ||
23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
23999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24001 | if (obj1) { | |
24002 | arg2 = (bool) SWIG_AsBool(obj1); | |
24003 | if (PyErr_Occurred()) SWIG_fail; | |
24004 | } | |
24005 | { | |
24006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24007 | (arg1)->MakeModal(arg2); | |
24008 | ||
24009 | wxPyEndAllowThreads(__tstate); | |
24010 | if (PyErr_Occurred()) SWIG_fail; | |
24011 | } | |
24012 | Py_INCREF(Py_None); resultobj = Py_None; | |
24013 | return resultobj; | |
24014 | fail: | |
24015 | return NULL; | |
24016 | } | |
24017 | ||
24018 | ||
24019 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24020 | PyObject *resultobj; | |
24021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24022 | bool arg2 ; | |
24023 | PyObject * obj0 = 0 ; | |
24024 | PyObject * obj1 = 0 ; | |
24025 | char *kwnames[] = { | |
24026 | (char *) "self",(char *) "enableTheme", NULL | |
24027 | }; | |
24028 | ||
24029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24032 | arg2 = (bool) SWIG_AsBool(obj1); | |
24033 | if (PyErr_Occurred()) SWIG_fail; | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->SetThemeEnabled(arg2); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
24048 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24049 | PyObject *resultobj; | |
24050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24051 | bool result; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self", NULL | |
24055 | }; | |
24056 | ||
24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24062 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24063 | ||
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
24067 | { | |
24068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24069 | } | |
24070 | return resultobj; | |
24071 | fail: | |
24072 | return NULL; | |
24073 | } | |
24074 | ||
24075 | ||
24076 | static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24077 | PyObject *resultobj; | |
24078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24079 | PyObject * obj0 = 0 ; | |
24080 | char *kwnames[] = { | |
24081 | (char *) "self", NULL | |
24082 | }; | |
24083 | ||
24084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24087 | { | |
24088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24089 | (arg1)->SetFocus(); | |
24090 | ||
24091 | wxPyEndAllowThreads(__tstate); | |
24092 | if (PyErr_Occurred()) SWIG_fail; | |
24093 | } | |
24094 | Py_INCREF(Py_None); resultobj = Py_None; | |
24095 | return resultobj; | |
24096 | fail: | |
24097 | return NULL; | |
24098 | } | |
24099 | ||
24100 | ||
24101 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24102 | PyObject *resultobj; | |
24103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24104 | PyObject * obj0 = 0 ; | |
24105 | char *kwnames[] = { | |
24106 | (char *) "self", NULL | |
24107 | }; | |
24108 | ||
24109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24112 | { | |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | (arg1)->SetFocusFromKbd(); | |
24115 | ||
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
24119 | Py_INCREF(Py_None); resultobj = Py_None; | |
24120 | return resultobj; | |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
24126 | static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24127 | PyObject *resultobj; | |
24128 | wxWindow *result; | |
24129 | char *kwnames[] = { | |
24130 | NULL | |
24131 | }; | |
24132 | ||
24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24134 | { | |
24135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24136 | result = (wxWindow *)wxWindow::FindFocus(); | |
24137 | ||
24138 | wxPyEndAllowThreads(__tstate); | |
24139 | if (PyErr_Occurred()) SWIG_fail; | |
24140 | } | |
24141 | { | |
24142 | resultobj = wxPyMake_wxObject(result); | |
24143 | } | |
24144 | return resultobj; | |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
24150 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24151 | PyObject *resultobj; | |
24152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24153 | bool result; | |
24154 | PyObject * obj0 = 0 ; | |
24155 | char *kwnames[] = { | |
24156 | (char *) "self", NULL | |
24157 | }; | |
24158 | ||
24159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24162 | { | |
24163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24164 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24165 | ||
24166 | wxPyEndAllowThreads(__tstate); | |
24167 | if (PyErr_Occurred()) SWIG_fail; | |
24168 | } | |
24169 | { | |
24170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24171 | } | |
24172 | return resultobj; | |
24173 | fail: | |
24174 | return NULL; | |
24175 | } | |
24176 | ||
24177 | ||
24178 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24179 | PyObject *resultobj; | |
24180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24181 | bool result; | |
24182 | PyObject * obj0 = 0 ; | |
24183 | char *kwnames[] = { | |
24184 | (char *) "self", NULL | |
24185 | }; | |
24186 | ||
24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24190 | { | |
24191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24192 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24193 | ||
24194 | wxPyEndAllowThreads(__tstate); | |
24195 | if (PyErr_Occurred()) SWIG_fail; | |
24196 | } | |
24197 | { | |
24198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24199 | } | |
24200 | return resultobj; | |
24201 | fail: | |
24202 | return NULL; | |
24203 | } | |
24204 | ||
24205 | ||
24206 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24207 | PyObject *resultobj; | |
24208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24209 | wxWindow *result; | |
24210 | PyObject * obj0 = 0 ; | |
24211 | char *kwnames[] = { | |
24212 | (char *) "self", NULL | |
24213 | }; | |
24214 | ||
24215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24218 | { | |
24219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24220 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24221 | ||
24222 | wxPyEndAllowThreads(__tstate); | |
24223 | if (PyErr_Occurred()) SWIG_fail; | |
24224 | } | |
24225 | { | |
24226 | resultobj = wxPyMake_wxObject(result); | |
24227 | } | |
24228 | return resultobj; | |
24229 | fail: | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24235 | PyObject *resultobj; | |
24236 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24237 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24238 | wxWindow *result; | |
24239 | PyObject * obj0 = 0 ; | |
24240 | PyObject * obj1 = 0 ; | |
24241 | char *kwnames[] = { | |
24242 | (char *) "self",(char *) "child", NULL | |
24243 | }; | |
24244 | ||
24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24250 | { | |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24253 | ||
24254 | wxPyEndAllowThreads(__tstate); | |
24255 | if (PyErr_Occurred()) SWIG_fail; | |
24256 | } | |
24257 | { | |
24258 | resultobj = wxPyMake_wxObject(result); | |
24259 | } | |
24260 | return resultobj; | |
24261 | fail: | |
24262 | return NULL; | |
24263 | } | |
24264 | ||
24265 | ||
24266 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24267 | PyObject *resultobj; | |
24268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24269 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24270 | PyObject * obj0 = 0 ; | |
24271 | PyObject * obj1 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "self",(char *) "win", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24281 | { | |
24282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24283 | (arg1)->SetTmpDefaultItem(arg2); | |
24284 | ||
24285 | wxPyEndAllowThreads(__tstate); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
24288 | Py_INCREF(Py_None); resultobj = Py_None; | |
24289 | return resultobj; | |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
24295 | static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24296 | PyObject *resultobj; | |
24297 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24298 | PyObject *result; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24307 | { | |
24308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24309 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
24310 | ||
24311 | wxPyEndAllowThreads(__tstate); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | } | |
24314 | resultobj = result; | |
24315 | return resultobj; | |
24316 | fail: | |
24317 | return NULL; | |
24318 | } | |
24319 | ||
24320 | ||
24321 | static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24322 | PyObject *resultobj; | |
24323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24324 | wxWindow *result; | |
24325 | PyObject * obj0 = 0 ; | |
24326 | char *kwnames[] = { | |
24327 | (char *) "self", NULL | |
24328 | }; | |
24329 | ||
24330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
24331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24333 | { | |
24334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24335 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
24336 | ||
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
24340 | { | |
24341 | resultobj = wxPyMake_wxObject(result); | |
24342 | } | |
24343 | return resultobj; | |
24344 | fail: | |
24345 | return NULL; | |
24346 | } | |
24347 | ||
24348 | ||
24349 | static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24350 | PyObject *resultobj; | |
24351 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24352 | wxWindow *result; | |
24353 | PyObject * obj0 = 0 ; | |
24354 | char *kwnames[] = { | |
24355 | (char *) "self", NULL | |
24356 | }; | |
24357 | ||
24358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
24359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | { | |
24369 | resultobj = wxPyMake_wxObject(result); | |
24370 | } | |
24371 | return resultobj; | |
24372 | fail: | |
24373 | return NULL; | |
24374 | } | |
24375 | ||
24376 | ||
24377 | static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24378 | PyObject *resultobj; | |
24379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24380 | bool result; | |
24381 | PyObject * obj0 = 0 ; | |
24382 | char *kwnames[] = { | |
24383 | (char *) "self", NULL | |
24384 | }; | |
24385 | ||
24386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
24387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24389 | { | |
24390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24391 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
24392 | ||
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | { | |
24397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24398 | } | |
24399 | return resultobj; | |
24400 | fail: | |
24401 | return NULL; | |
24402 | } | |
24403 | ||
24404 | ||
24405 | static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24406 | PyObject *resultobj; | |
24407 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24408 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24409 | bool result; | |
24410 | PyObject * obj0 = 0 ; | |
24411 | PyObject * obj1 = 0 ; | |
24412 | char *kwnames[] = { | |
24413 | (char *) "self",(char *) "newParent", NULL | |
24414 | }; | |
24415 | ||
24416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
24417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24419 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24421 | { | |
24422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24423 | result = (bool)(arg1)->Reparent(arg2); | |
24424 | ||
24425 | wxPyEndAllowThreads(__tstate); | |
24426 | if (PyErr_Occurred()) SWIG_fail; | |
24427 | } | |
24428 | { | |
24429 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24430 | } | |
24431 | return resultobj; | |
24432 | fail: | |
24433 | return NULL; | |
24434 | } | |
24435 | ||
24436 | ||
24437 | static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24438 | PyObject *resultobj; | |
24439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24440 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24441 | PyObject * obj0 = 0 ; | |
24442 | PyObject * obj1 = 0 ; | |
24443 | char *kwnames[] = { | |
24444 | (char *) "self",(char *) "child", NULL | |
24445 | }; | |
24446 | ||
24447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24450 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24452 | { | |
24453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24454 | (arg1)->AddChild(arg2); | |
24455 | ||
24456 | wxPyEndAllowThreads(__tstate); | |
24457 | if (PyErr_Occurred()) SWIG_fail; | |
24458 | } | |
24459 | Py_INCREF(Py_None); resultobj = Py_None; | |
24460 | return resultobj; | |
24461 | fail: | |
24462 | return NULL; | |
24463 | } | |
24464 | ||
24465 | ||
24466 | static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24467 | PyObject *resultobj; | |
24468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24469 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24470 | PyObject * obj0 = 0 ; | |
24471 | PyObject * obj1 = 0 ; | |
24472 | char *kwnames[] = { | |
24473 | (char *) "self",(char *) "child", NULL | |
24474 | }; | |
24475 | ||
24476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24481 | { | |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | (arg1)->RemoveChild(arg2); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | Py_INCREF(Py_None); resultobj = Py_None; | |
24489 | return resultobj; | |
24490 | fail: | |
24491 | return NULL; | |
24492 | } | |
24493 | ||
24494 | ||
24495 | static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24496 | PyObject *resultobj; | |
24497 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24498 | long arg2 ; | |
24499 | wxWindow *result; | |
24500 | PyObject * obj0 = 0 ; | |
24501 | PyObject * obj1 = 0 ; | |
24502 | char *kwnames[] = { | |
24503 | (char *) "self",(char *) "winid", NULL | |
24504 | }; | |
24505 | ||
24506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
24507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24509 | arg2 = (long) SWIG_AsLong(obj1); | |
24510 | if (PyErr_Occurred()) SWIG_fail; | |
24511 | { | |
24512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24513 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
24514 | ||
24515 | wxPyEndAllowThreads(__tstate); | |
24516 | if (PyErr_Occurred()) SWIG_fail; | |
24517 | } | |
24518 | { | |
24519 | resultobj = wxPyMake_wxObject(result); | |
24520 | } | |
24521 | return resultobj; | |
24522 | fail: | |
24523 | return NULL; | |
24524 | } | |
24525 | ||
24526 | ||
24527 | static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24528 | PyObject *resultobj; | |
24529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24530 | wxString *arg2 = 0 ; | |
24531 | wxWindow *result; | |
24532 | bool temp2 = False ; | |
24533 | PyObject * obj0 = 0 ; | |
24534 | PyObject * obj1 = 0 ; | |
24535 | char *kwnames[] = { | |
24536 | (char *) "self",(char *) "name", NULL | |
24537 | }; | |
24538 | ||
24539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
24540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24542 | { | |
24543 | arg2 = wxString_in_helper(obj1); | |
24544 | if (arg2 == NULL) SWIG_fail; | |
24545 | temp2 = True; | |
24546 | } | |
24547 | { | |
24548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24549 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
24550 | ||
24551 | wxPyEndAllowThreads(__tstate); | |
24552 | if (PyErr_Occurred()) SWIG_fail; | |
24553 | } | |
24554 | { | |
24555 | resultobj = wxPyMake_wxObject(result); | |
24556 | } | |
24557 | { | |
24558 | if (temp2) | |
24559 | delete arg2; | |
24560 | } | |
24561 | return resultobj; | |
24562 | fail: | |
24563 | { | |
24564 | if (temp2) | |
24565 | delete arg2; | |
24566 | } | |
24567 | return NULL; | |
24568 | } | |
24569 | ||
24570 | ||
24571 | static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24572 | PyObject *resultobj; | |
24573 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24574 | wxEvtHandler *result; | |
24575 | PyObject * obj0 = 0 ; | |
24576 | char *kwnames[] = { | |
24577 | (char *) "self", NULL | |
24578 | }; | |
24579 | ||
24580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
24581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24583 | { | |
24584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24585 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
24586 | ||
24587 | wxPyEndAllowThreads(__tstate); | |
24588 | if (PyErr_Occurred()) SWIG_fail; | |
24589 | } | |
24590 | { | |
24591 | resultobj = wxPyMake_wxObject(result); | |
24592 | } | |
24593 | return resultobj; | |
24594 | fail: | |
24595 | return NULL; | |
24596 | } | |
24597 | ||
24598 | ||
24599 | static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24600 | PyObject *resultobj; | |
24601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24602 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24603 | PyObject * obj0 = 0 ; | |
24604 | PyObject * obj1 = 0 ; | |
24605 | char *kwnames[] = { | |
24606 | (char *) "self",(char *) "handler", NULL | |
24607 | }; | |
24608 | ||
24609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24614 | { | |
24615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24616 | (arg1)->SetEventHandler(arg2); | |
24617 | ||
24618 | wxPyEndAllowThreads(__tstate); | |
24619 | if (PyErr_Occurred()) SWIG_fail; | |
24620 | } | |
24621 | Py_INCREF(Py_None); resultobj = Py_None; | |
24622 | return resultobj; | |
24623 | fail: | |
24624 | return NULL; | |
24625 | } | |
24626 | ||
24627 | ||
24628 | static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24629 | PyObject *resultobj; | |
24630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24631 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24632 | PyObject * obj0 = 0 ; | |
24633 | PyObject * obj1 = 0 ; | |
24634 | char *kwnames[] = { | |
24635 | (char *) "self",(char *) "handler", NULL | |
24636 | }; | |
24637 | ||
24638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24643 | { | |
24644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24645 | (arg1)->PushEventHandler(arg2); | |
24646 | ||
24647 | wxPyEndAllowThreads(__tstate); | |
24648 | if (PyErr_Occurred()) SWIG_fail; | |
24649 | } | |
24650 | Py_INCREF(Py_None); resultobj = Py_None; | |
24651 | return resultobj; | |
24652 | fail: | |
24653 | return NULL; | |
24654 | } | |
24655 | ||
24656 | ||
24657 | static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24658 | PyObject *resultobj; | |
24659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24660 | bool arg2 = (bool) False ; | |
24661 | wxEvtHandler *result; | |
24662 | PyObject * obj0 = 0 ; | |
24663 | PyObject * obj1 = 0 ; | |
24664 | char *kwnames[] = { | |
24665 | (char *) "self",(char *) "deleteHandler", NULL | |
24666 | }; | |
24667 | ||
24668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24671 | if (obj1) { | |
24672 | arg2 = (bool) SWIG_AsBool(obj1); | |
24673 | if (PyErr_Occurred()) SWIG_fail; | |
24674 | } | |
24675 | { | |
24676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24677 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
24678 | ||
24679 | wxPyEndAllowThreads(__tstate); | |
24680 | if (PyErr_Occurred()) SWIG_fail; | |
24681 | } | |
24682 | { | |
24683 | resultobj = wxPyMake_wxObject(result); | |
24684 | } | |
24685 | return resultobj; | |
24686 | fail: | |
24687 | return NULL; | |
24688 | } | |
24689 | ||
24690 | ||
24691 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24692 | PyObject *resultobj; | |
24693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24694 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
24695 | bool result; | |
24696 | PyObject * obj0 = 0 ; | |
24697 | PyObject * obj1 = 0 ; | |
24698 | char *kwnames[] = { | |
24699 | (char *) "self",(char *) "handler", NULL | |
24700 | }; | |
24701 | ||
24702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
24703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
24706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24707 | { | |
24708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24709 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
24710 | ||
24711 | wxPyEndAllowThreads(__tstate); | |
24712 | if (PyErr_Occurred()) SWIG_fail; | |
24713 | } | |
24714 | { | |
24715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24716 | } | |
24717 | return resultobj; | |
24718 | fail: | |
24719 | return NULL; | |
24720 | } | |
24721 | ||
24722 | ||
24723 | static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24724 | PyObject *resultobj; | |
24725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24726 | wxValidator *arg2 = 0 ; | |
24727 | PyObject * obj0 = 0 ; | |
24728 | PyObject * obj1 = 0 ; | |
24729 | char *kwnames[] = { | |
24730 | (char *) "self",(char *) "validator", NULL | |
24731 | }; | |
24732 | ||
24733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
24734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24736 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
24737 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24738 | SWIG_fail; | |
24739 | if (arg2 == NULL) { | |
24740 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24741 | SWIG_fail; | |
24742 | } | |
24743 | { | |
24744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24745 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
24746 | ||
24747 | wxPyEndAllowThreads(__tstate); | |
24748 | if (PyErr_Occurred()) SWIG_fail; | |
24749 | } | |
24750 | Py_INCREF(Py_None); resultobj = Py_None; | |
24751 | return resultobj; | |
24752 | fail: | |
24753 | return NULL; | |
24754 | } | |
24755 | ||
24756 | ||
24757 | static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24758 | PyObject *resultobj; | |
24759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24760 | wxValidator *result; | |
24761 | PyObject * obj0 = 0 ; | |
24762 | char *kwnames[] = { | |
24763 | (char *) "self", NULL | |
24764 | }; | |
24765 | ||
24766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
24767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24769 | { | |
24770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24771 | result = (wxValidator *)(arg1)->GetValidator(); | |
24772 | ||
24773 | wxPyEndAllowThreads(__tstate); | |
24774 | if (PyErr_Occurred()) SWIG_fail; | |
24775 | } | |
24776 | { | |
24777 | resultobj = wxPyMake_wxObject(result); | |
24778 | } | |
24779 | return resultobj; | |
24780 | fail: | |
24781 | return NULL; | |
24782 | } | |
24783 | ||
24784 | ||
24785 | static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24786 | PyObject *resultobj; | |
24787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24788 | bool result; | |
24789 | PyObject * obj0 = 0 ; | |
24790 | char *kwnames[] = { | |
24791 | (char *) "self", NULL | |
24792 | }; | |
24793 | ||
24794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
24795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24797 | { | |
24798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24799 | result = (bool)(arg1)->Validate(); | |
24800 | ||
24801 | wxPyEndAllowThreads(__tstate); | |
24802 | if (PyErr_Occurred()) SWIG_fail; | |
24803 | } | |
24804 | { | |
24805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24806 | } | |
24807 | return resultobj; | |
24808 | fail: | |
24809 | return NULL; | |
24810 | } | |
24811 | ||
24812 | ||
24813 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24814 | PyObject *resultobj; | |
24815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24816 | bool result; | |
24817 | PyObject * obj0 = 0 ; | |
24818 | char *kwnames[] = { | |
24819 | (char *) "self", NULL | |
24820 | }; | |
24821 | ||
24822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24825 | { | |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | result = (bool)(arg1)->TransferDataToWindow(); | |
24828 | ||
24829 | wxPyEndAllowThreads(__tstate); | |
24830 | if (PyErr_Occurred()) SWIG_fail; | |
24831 | } | |
24832 | { | |
24833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24834 | } | |
24835 | return resultobj; | |
24836 | fail: | |
24837 | return NULL; | |
24838 | } | |
24839 | ||
24840 | ||
24841 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24842 | PyObject *resultobj; | |
24843 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24844 | bool result; | |
24845 | PyObject * obj0 = 0 ; | |
24846 | char *kwnames[] = { | |
24847 | (char *) "self", NULL | |
24848 | }; | |
24849 | ||
24850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24853 | { | |
24854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24855 | result = (bool)(arg1)->TransferDataFromWindow(); | |
24856 | ||
24857 | wxPyEndAllowThreads(__tstate); | |
24858 | if (PyErr_Occurred()) SWIG_fail; | |
24859 | } | |
24860 | { | |
24861 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24862 | } | |
24863 | return resultobj; | |
24864 | fail: | |
24865 | return NULL; | |
24866 | } | |
24867 | ||
24868 | ||
24869 | static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24870 | PyObject *resultobj; | |
24871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24872 | PyObject * obj0 = 0 ; | |
24873 | char *kwnames[] = { | |
24874 | (char *) "self", NULL | |
24875 | }; | |
24876 | ||
24877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
24878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24880 | { | |
24881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24882 | (arg1)->InitDialog(); | |
24883 | ||
24884 | wxPyEndAllowThreads(__tstate); | |
24885 | if (PyErr_Occurred()) SWIG_fail; | |
24886 | } | |
24887 | Py_INCREF(Py_None); resultobj = Py_None; | |
24888 | return resultobj; | |
24889 | fail: | |
24890 | return NULL; | |
24891 | } | |
24892 | ||
24893 | ||
24894 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24895 | PyObject *resultobj; | |
24896 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24897 | wxAcceleratorTable *arg2 = 0 ; | |
24898 | PyObject * obj0 = 0 ; | |
24899 | PyObject * obj1 = 0 ; | |
24900 | char *kwnames[] = { | |
24901 | (char *) "self",(char *) "accel", NULL | |
24902 | }; | |
24903 | ||
24904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
24905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
24908 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24909 | SWIG_fail; | |
24910 | if (arg2 == NULL) { | |
24911 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24912 | SWIG_fail; | |
24913 | } | |
24914 | { | |
24915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24916 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
24917 | ||
24918 | wxPyEndAllowThreads(__tstate); | |
24919 | if (PyErr_Occurred()) SWIG_fail; | |
24920 | } | |
24921 | Py_INCREF(Py_None); resultobj = Py_None; | |
24922 | return resultobj; | |
24923 | fail: | |
24924 | return NULL; | |
24925 | } | |
24926 | ||
24927 | ||
24928 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24929 | PyObject *resultobj; | |
24930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24931 | wxAcceleratorTable *result; | |
24932 | PyObject * obj0 = 0 ; | |
24933 | char *kwnames[] = { | |
24934 | (char *) "self", NULL | |
24935 | }; | |
24936 | ||
24937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
24938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24940 | { | |
24941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24942 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
24943 | ||
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
24948 | return resultobj; | |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24955 | PyObject *resultobj; | |
24956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24957 | int arg2 ; | |
24958 | int arg3 ; | |
24959 | int arg4 ; | |
24960 | bool result; | |
24961 | PyObject * obj0 = 0 ; | |
24962 | PyObject * obj1 = 0 ; | |
24963 | PyObject * obj2 = 0 ; | |
24964 | PyObject * obj3 = 0 ; | |
24965 | char *kwnames[] = { | |
24966 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
24967 | }; | |
24968 | ||
24969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
24970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24972 | arg2 = (int) SWIG_AsInt(obj1); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | arg3 = (int) SWIG_AsInt(obj2); | |
24975 | if (PyErr_Occurred()) SWIG_fail; | |
24976 | arg4 = (int) SWIG_AsInt(obj3); | |
24977 | if (PyErr_Occurred()) SWIG_fail; | |
24978 | { | |
24979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24980 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
24981 | ||
24982 | wxPyEndAllowThreads(__tstate); | |
24983 | if (PyErr_Occurred()) SWIG_fail; | |
24984 | } | |
24985 | { | |
24986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24987 | } | |
24988 | return resultobj; | |
24989 | fail: | |
24990 | return NULL; | |
24991 | } | |
24992 | ||
24993 | ||
24994 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24995 | PyObject *resultobj; | |
24996 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24997 | int arg2 ; | |
24998 | bool result; | |
24999 | PyObject * obj0 = 0 ; | |
25000 | PyObject * obj1 = 0 ; | |
25001 | char *kwnames[] = { | |
25002 | (char *) "self",(char *) "hotkeyId", NULL | |
25003 | }; | |
25004 | ||
25005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25008 | arg2 = (int) SWIG_AsInt(obj1); | |
25009 | if (PyErr_Occurred()) SWIG_fail; | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25012 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25013 | ||
25014 | wxPyEndAllowThreads(__tstate); | |
25015 | if (PyErr_Occurred()) SWIG_fail; | |
25016 | } | |
25017 | { | |
25018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25019 | } | |
25020 | return resultobj; | |
25021 | fail: | |
25022 | return NULL; | |
25023 | } | |
25024 | ||
25025 | ||
25026 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25027 | PyObject *resultobj; | |
25028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25029 | wxPoint *arg2 = 0 ; | |
25030 | wxPoint result; | |
25031 | wxPoint temp2 ; | |
25032 | PyObject * obj0 = 0 ; | |
25033 | PyObject * obj1 = 0 ; | |
25034 | char *kwnames[] = { | |
25035 | (char *) "self",(char *) "pt", NULL | |
25036 | }; | |
25037 | ||
25038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25041 | { | |
25042 | arg2 = &temp2; | |
25043 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25044 | } | |
25045 | { | |
25046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25047 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25048 | ||
25049 | wxPyEndAllowThreads(__tstate); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
25052 | { | |
25053 | wxPoint * resultptr; | |
25054 | resultptr = new wxPoint((wxPoint &) result); | |
25055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25056 | } | |
25057 | return resultobj; | |
25058 | fail: | |
25059 | return NULL; | |
25060 | } | |
25061 | ||
25062 | ||
25063 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25064 | PyObject *resultobj; | |
25065 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25066 | wxSize *arg2 = 0 ; | |
25067 | wxSize result; | |
25068 | wxSize temp2 ; | |
25069 | PyObject * obj0 = 0 ; | |
25070 | PyObject * obj1 = 0 ; | |
25071 | char *kwnames[] = { | |
25072 | (char *) "self",(char *) "sz", NULL | |
25073 | }; | |
25074 | ||
25075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25078 | { | |
25079 | arg2 = &temp2; | |
25080 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25081 | } | |
25082 | { | |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25084 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25085 | ||
25086 | wxPyEndAllowThreads(__tstate); | |
25087 | if (PyErr_Occurred()) SWIG_fail; | |
25088 | } | |
25089 | { | |
25090 | wxSize * resultptr; | |
25091 | resultptr = new wxSize((wxSize &) result); | |
25092 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25093 | } | |
25094 | return resultobj; | |
25095 | fail: | |
25096 | return NULL; | |
25097 | } | |
25098 | ||
25099 | ||
25100 | static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25101 | PyObject *resultobj; | |
25102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25103 | wxPoint *arg2 = 0 ; | |
25104 | wxPoint result; | |
25105 | wxPoint temp2 ; | |
25106 | PyObject * obj0 = 0 ; | |
25107 | PyObject * obj1 = 0 ; | |
25108 | char *kwnames[] = { | |
25109 | (char *) "self",(char *) "pt", NULL | |
25110 | }; | |
25111 | ||
25112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25115 | { | |
25116 | arg2 = &temp2; | |
25117 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25118 | } | |
25119 | { | |
25120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25121 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25122 | ||
25123 | wxPyEndAllowThreads(__tstate); | |
25124 | if (PyErr_Occurred()) SWIG_fail; | |
25125 | } | |
25126 | { | |
25127 | wxPoint * resultptr; | |
25128 | resultptr = new wxPoint((wxPoint &) result); | |
25129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25130 | } | |
25131 | return resultobj; | |
25132 | fail: | |
25133 | return NULL; | |
25134 | } | |
25135 | ||
25136 | ||
25137 | static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25138 | PyObject *resultobj; | |
25139 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25140 | wxSize *arg2 = 0 ; | |
25141 | wxSize result; | |
25142 | wxSize temp2 ; | |
25143 | PyObject * obj0 = 0 ; | |
25144 | PyObject * obj1 = 0 ; | |
25145 | char *kwnames[] = { | |
25146 | (char *) "self",(char *) "sz", NULL | |
25147 | }; | |
25148 | ||
25149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25152 | { | |
25153 | arg2 = &temp2; | |
25154 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25155 | } | |
25156 | { | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | { | |
25164 | wxSize * resultptr; | |
25165 | resultptr = new wxSize((wxSize &) result); | |
25166 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25167 | } | |
25168 | return resultobj; | |
25169 | fail: | |
25170 | return NULL; | |
25171 | } | |
25172 | ||
25173 | ||
25174 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25175 | PyObject *resultobj; | |
25176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25177 | wxPoint *arg2 = 0 ; | |
25178 | wxPoint result; | |
25179 | wxPoint temp2 ; | |
25180 | PyObject * obj0 = 0 ; | |
25181 | PyObject * obj1 = 0 ; | |
25182 | char *kwnames[] = { | |
25183 | (char *) "self",(char *) "pt", NULL | |
25184 | }; | |
25185 | ||
25186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25189 | { | |
25190 | arg2 = &temp2; | |
25191 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25192 | } | |
25193 | { | |
25194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25195 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25196 | ||
25197 | wxPyEndAllowThreads(__tstate); | |
25198 | if (PyErr_Occurred()) SWIG_fail; | |
25199 | } | |
25200 | { | |
25201 | wxPoint * resultptr; | |
25202 | resultptr = new wxPoint((wxPoint &) result); | |
25203 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25204 | } | |
25205 | return resultobj; | |
25206 | fail: | |
25207 | return NULL; | |
25208 | } | |
25209 | ||
25210 | ||
25211 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25212 | PyObject *resultobj; | |
25213 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25214 | wxSize *arg2 = 0 ; | |
25215 | wxSize result; | |
25216 | wxSize temp2 ; | |
25217 | PyObject * obj0 = 0 ; | |
25218 | PyObject * obj1 = 0 ; | |
25219 | char *kwnames[] = { | |
25220 | (char *) "self",(char *) "sz", NULL | |
25221 | }; | |
25222 | ||
25223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25226 | { | |
25227 | arg2 = &temp2; | |
25228 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25229 | } | |
25230 | { | |
25231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25232 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
25233 | ||
25234 | wxPyEndAllowThreads(__tstate); | |
25235 | if (PyErr_Occurred()) SWIG_fail; | |
25236 | } | |
25237 | { | |
25238 | wxSize * resultptr; | |
25239 | resultptr = new wxSize((wxSize &) result); | |
25240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25241 | } | |
25242 | return resultobj; | |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25251 | int arg2 ; | |
25252 | int arg3 ; | |
25253 | PyObject * obj0 = 0 ; | |
25254 | PyObject * obj1 = 0 ; | |
25255 | PyObject * obj2 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "self",(char *) "x",(char *) "y", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25263 | arg2 = (int) SWIG_AsInt(obj1); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | arg3 = (int) SWIG_AsInt(obj2); | |
25266 | if (PyErr_Occurred()) SWIG_fail; | |
25267 | { | |
25268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25269 | (arg1)->WarpPointer(arg2,arg3); | |
25270 | ||
25271 | wxPyEndAllowThreads(__tstate); | |
25272 | if (PyErr_Occurred()) SWIG_fail; | |
25273 | } | |
25274 | Py_INCREF(Py_None); resultobj = Py_None; | |
25275 | return resultobj; | |
25276 | fail: | |
25277 | return NULL; | |
25278 | } | |
25279 | ||
25280 | ||
25281 | static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25282 | PyObject *resultobj; | |
25283 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25284 | PyObject * obj0 = 0 ; | |
25285 | char *kwnames[] = { | |
25286 | (char *) "self", NULL | |
25287 | }; | |
25288 | ||
25289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
25290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25292 | { | |
25293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25294 | (arg1)->CaptureMouse(); | |
25295 | ||
25296 | wxPyEndAllowThreads(__tstate); | |
25297 | if (PyErr_Occurred()) SWIG_fail; | |
25298 | } | |
25299 | Py_INCREF(Py_None); resultobj = Py_None; | |
25300 | return resultobj; | |
25301 | fail: | |
25302 | return NULL; | |
25303 | } | |
25304 | ||
25305 | ||
25306 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25307 | PyObject *resultobj; | |
25308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25309 | PyObject * obj0 = 0 ; | |
25310 | char *kwnames[] = { | |
25311 | (char *) "self", NULL | |
25312 | }; | |
25313 | ||
25314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
25315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25317 | { | |
25318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25319 | (arg1)->ReleaseMouse(); | |
25320 | ||
25321 | wxPyEndAllowThreads(__tstate); | |
25322 | if (PyErr_Occurred()) SWIG_fail; | |
25323 | } | |
25324 | Py_INCREF(Py_None); resultobj = Py_None; | |
25325 | return resultobj; | |
25326 | fail: | |
25327 | return NULL; | |
25328 | } | |
25329 | ||
25330 | ||
25331 | static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25332 | PyObject *resultobj; | |
25333 | wxWindow *result; | |
25334 | char *kwnames[] = { | |
25335 | NULL | |
25336 | }; | |
25337 | ||
25338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
25339 | { | |
25340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25341 | result = (wxWindow *)wxWindow::GetCapture(); | |
25342 | ||
25343 | wxPyEndAllowThreads(__tstate); | |
25344 | if (PyErr_Occurred()) SWIG_fail; | |
25345 | } | |
25346 | { | |
25347 | resultobj = wxPyMake_wxObject(result); | |
25348 | } | |
25349 | return resultobj; | |
25350 | fail: | |
25351 | return NULL; | |
25352 | } | |
25353 | ||
25354 | ||
25355 | static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25356 | PyObject *resultobj; | |
25357 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25358 | bool result; | |
25359 | PyObject * obj0 = 0 ; | |
25360 | char *kwnames[] = { | |
25361 | (char *) "self", NULL | |
25362 | }; | |
25363 | ||
25364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
25365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25367 | { | |
25368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25369 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
25370 | ||
25371 | wxPyEndAllowThreads(__tstate); | |
25372 | if (PyErr_Occurred()) SWIG_fail; | |
25373 | } | |
25374 | { | |
25375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25376 | } | |
25377 | return resultobj; | |
25378 | fail: | |
25379 | return NULL; | |
25380 | } | |
25381 | ||
25382 | ||
25383 | static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25384 | PyObject *resultobj; | |
25385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25386 | bool arg2 = (bool) True ; | |
25387 | wxRect *arg3 = (wxRect *) NULL ; | |
25388 | PyObject * obj0 = 0 ; | |
25389 | PyObject * obj1 = 0 ; | |
25390 | PyObject * obj2 = 0 ; | |
25391 | char *kwnames[] = { | |
25392 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
25393 | }; | |
25394 | ||
25395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25398 | if (obj1) { | |
25399 | arg2 = (bool) SWIG_AsBool(obj1); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | if (obj2) { | |
25403 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
25404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25405 | } | |
25406 | { | |
25407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25408 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
25409 | ||
25410 | wxPyEndAllowThreads(__tstate); | |
25411 | if (PyErr_Occurred()) SWIG_fail; | |
25412 | } | |
25413 | Py_INCREF(Py_None); resultobj = Py_None; | |
25414 | return resultobj; | |
25415 | fail: | |
25416 | return NULL; | |
25417 | } | |
25418 | ||
25419 | ||
25420 | static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25421 | PyObject *resultobj; | |
25422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25423 | wxRect *arg2 = 0 ; | |
25424 | wxRect temp2 ; | |
25425 | PyObject * obj0 = 0 ; | |
25426 | PyObject * obj1 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self",(char *) "rect", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25434 | { | |
25435 | arg2 = &temp2; | |
25436 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25437 | } | |
25438 | { | |
25439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25440 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
25441 | ||
25442 | wxPyEndAllowThreads(__tstate); | |
25443 | if (PyErr_Occurred()) SWIG_fail; | |
25444 | } | |
25445 | Py_INCREF(Py_None); resultobj = Py_None; | |
25446 | return resultobj; | |
25447 | fail: | |
25448 | return NULL; | |
25449 | } | |
25450 | ||
25451 | ||
25452 | static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25453 | PyObject *resultobj; | |
25454 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25455 | PyObject * obj0 = 0 ; | |
25456 | char *kwnames[] = { | |
25457 | (char *) "self", NULL | |
25458 | }; | |
25459 | ||
25460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
25461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25463 | { | |
25464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25465 | (arg1)->Update(); | |
25466 | ||
25467 | wxPyEndAllowThreads(__tstate); | |
25468 | if (PyErr_Occurred()) SWIG_fail; | |
25469 | } | |
25470 | Py_INCREF(Py_None); resultobj = Py_None; | |
25471 | return resultobj; | |
25472 | fail: | |
25473 | return NULL; | |
25474 | } | |
25475 | ||
25476 | ||
25477 | static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25478 | PyObject *resultobj; | |
25479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25480 | PyObject * obj0 = 0 ; | |
25481 | char *kwnames[] = { | |
25482 | (char *) "self", NULL | |
25483 | }; | |
25484 | ||
25485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
25486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25488 | { | |
25489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25490 | (arg1)->ClearBackground(); | |
25491 | ||
25492 | wxPyEndAllowThreads(__tstate); | |
25493 | if (PyErr_Occurred()) SWIG_fail; | |
25494 | } | |
25495 | Py_INCREF(Py_None); resultobj = Py_None; | |
25496 | return resultobj; | |
25497 | fail: | |
25498 | return NULL; | |
25499 | } | |
25500 | ||
25501 | ||
25502 | static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25503 | PyObject *resultobj; | |
25504 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25505 | PyObject * obj0 = 0 ; | |
25506 | char *kwnames[] = { | |
25507 | (char *) "self", NULL | |
25508 | }; | |
25509 | ||
25510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
25511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25513 | { | |
25514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25515 | (arg1)->Freeze(); | |
25516 | ||
25517 | wxPyEndAllowThreads(__tstate); | |
25518 | if (PyErr_Occurred()) SWIG_fail; | |
25519 | } | |
25520 | Py_INCREF(Py_None); resultobj = Py_None; | |
25521 | return resultobj; | |
25522 | fail: | |
25523 | return NULL; | |
25524 | } | |
25525 | ||
25526 | ||
25527 | static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25528 | PyObject *resultobj; | |
25529 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25530 | PyObject * obj0 = 0 ; | |
25531 | char *kwnames[] = { | |
25532 | (char *) "self", NULL | |
25533 | }; | |
25534 | ||
25535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
25536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | (arg1)->Thaw(); | |
25541 | ||
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | Py_INCREF(Py_None); resultobj = Py_None; | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25553 | PyObject *resultobj; | |
25554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25555 | wxDC *arg2 = 0 ; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | PyObject * obj1 = 0 ; | |
25558 | char *kwnames[] = { | |
25559 | (char *) "self",(char *) "dc", NULL | |
25560 | }; | |
25561 | ||
25562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
25563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
25566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25567 | SWIG_fail; | |
25568 | if (arg2 == NULL) { | |
25569 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25570 | SWIG_fail; | |
25571 | } | |
25572 | { | |
25573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25574 | (arg1)->PrepareDC(*arg2); | |
25575 | ||
25576 | wxPyEndAllowThreads(__tstate); | |
25577 | if (PyErr_Occurred()) SWIG_fail; | |
25578 | } | |
25579 | Py_INCREF(Py_None); resultobj = Py_None; | |
25580 | return resultobj; | |
25581 | fail: | |
25582 | return NULL; | |
25583 | } | |
25584 | ||
25585 | ||
25586 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25587 | PyObject *resultobj; | |
25588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25589 | wxRegion *result; | |
25590 | PyObject * obj0 = 0 ; | |
25591 | char *kwnames[] = { | |
25592 | (char *) "self", NULL | |
25593 | }; | |
25594 | ||
25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
25596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25598 | { | |
25599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25600 | { | |
25601 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
25602 | result = (wxRegion *) &_result_ref; | |
25603 | } | |
25604 | ||
25605 | wxPyEndAllowThreads(__tstate); | |
25606 | if (PyErr_Occurred()) SWIG_fail; | |
25607 | } | |
25608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
25609 | return resultobj; | |
25610 | fail: | |
25611 | return NULL; | |
25612 | } | |
25613 | ||
25614 | ||
25615 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25616 | PyObject *resultobj; | |
25617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25618 | wxRect result; | |
25619 | PyObject * obj0 = 0 ; | |
25620 | char *kwnames[] = { | |
25621 | (char *) "self", NULL | |
25622 | }; | |
25623 | ||
25624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
25625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25627 | { | |
25628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25629 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
25630 | ||
25631 | wxPyEndAllowThreads(__tstate); | |
25632 | if (PyErr_Occurred()) SWIG_fail; | |
25633 | } | |
25634 | { | |
25635 | wxRect * resultptr; | |
25636 | resultptr = new wxRect((wxRect &) result); | |
25637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
25638 | } | |
25639 | return resultobj; | |
25640 | fail: | |
25641 | return NULL; | |
25642 | } | |
25643 | ||
25644 | ||
25645 | static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25646 | PyObject *resultobj; | |
25647 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25648 | int arg2 ; | |
25649 | int arg3 ; | |
25650 | int arg4 = (int) 1 ; | |
25651 | int arg5 = (int) 1 ; | |
25652 | bool result; | |
25653 | PyObject * obj0 = 0 ; | |
25654 | PyObject * obj1 = 0 ; | |
25655 | PyObject * obj2 = 0 ; | |
25656 | PyObject * obj3 = 0 ; | |
25657 | PyObject * obj4 = 0 ; | |
25658 | char *kwnames[] = { | |
25659 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25660 | }; | |
25661 | ||
25662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25665 | arg2 = (int) SWIG_AsInt(obj1); | |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | arg3 = (int) SWIG_AsInt(obj2); | |
25668 | if (PyErr_Occurred()) SWIG_fail; | |
25669 | if (obj3) { | |
25670 | arg4 = (int) SWIG_AsInt(obj3); | |
25671 | if (PyErr_Occurred()) SWIG_fail; | |
25672 | } | |
25673 | if (obj4) { | |
25674 | arg5 = (int) SWIG_AsInt(obj4); | |
25675 | if (PyErr_Occurred()) SWIG_fail; | |
25676 | } | |
25677 | { | |
25678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25679 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
25680 | ||
25681 | wxPyEndAllowThreads(__tstate); | |
25682 | if (PyErr_Occurred()) SWIG_fail; | |
25683 | } | |
25684 | { | |
25685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25686 | } | |
25687 | return resultobj; | |
25688 | fail: | |
25689 | return NULL; | |
25690 | } | |
25691 | ||
25692 | ||
25693 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25694 | PyObject *resultobj; | |
25695 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25696 | wxPoint *arg2 = 0 ; | |
25697 | bool result; | |
25698 | wxPoint temp2 ; | |
25699 | PyObject * obj0 = 0 ; | |
25700 | PyObject * obj1 = 0 ; | |
25701 | char *kwnames[] = { | |
25702 | (char *) "self",(char *) "pt", NULL | |
25703 | }; | |
25704 | ||
25705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
25706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25708 | { | |
25709 | arg2 = &temp2; | |
25710 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25711 | } | |
25712 | { | |
25713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25714 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
25715 | ||
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | { | |
25720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25721 | } | |
25722 | return resultobj; | |
25723 | fail: | |
25724 | return NULL; | |
25725 | } | |
25726 | ||
25727 | ||
25728 | static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25729 | PyObject *resultobj; | |
25730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25731 | wxRect *arg2 = 0 ; | |
25732 | bool result; | |
25733 | wxRect temp2 ; | |
25734 | PyObject * obj0 = 0 ; | |
25735 | PyObject * obj1 = 0 ; | |
25736 | char *kwnames[] = { | |
25737 | (char *) "self",(char *) "rect", NULL | |
25738 | }; | |
25739 | ||
25740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
25741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25743 | { | |
25744 | arg2 = &temp2; | |
25745 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
25746 | } | |
25747 | { | |
25748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25749 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
25750 | ||
25751 | wxPyEndAllowThreads(__tstate); | |
25752 | if (PyErr_Occurred()) SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25756 | } | |
25757 | return resultobj; | |
25758 | fail: | |
25759 | return NULL; | |
25760 | } | |
25761 | ||
25762 | ||
25763 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25764 | PyObject *resultobj; | |
25765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25766 | wxVisualAttributes result; | |
25767 | PyObject * obj0 = 0 ; | |
25768 | char *kwnames[] = { | |
25769 | (char *) "self", NULL | |
25770 | }; | |
25771 | ||
25772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
25773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25775 | { | |
25776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25777 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
25778 | ||
25779 | wxPyEndAllowThreads(__tstate); | |
25780 | if (PyErr_Occurred()) SWIG_fail; | |
25781 | } | |
25782 | { | |
25783 | wxVisualAttributes * resultptr; | |
25784 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25785 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25786 | } | |
25787 | return resultobj; | |
25788 | fail: | |
25789 | return NULL; | |
25790 | } | |
25791 | ||
25792 | ||
25793 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25794 | PyObject *resultobj; | |
25795 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
25796 | wxVisualAttributes result; | |
25797 | PyObject * obj0 = 0 ; | |
25798 | char *kwnames[] = { | |
25799 | (char *) "variant", NULL | |
25800 | }; | |
25801 | ||
25802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
25803 | if (obj0) { | |
25804 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
25805 | if (PyErr_Occurred()) SWIG_fail; | |
25806 | } | |
25807 | { | |
25808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25809 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
25810 | ||
25811 | wxPyEndAllowThreads(__tstate); | |
25812 | if (PyErr_Occurred()) SWIG_fail; | |
25813 | } | |
25814 | { | |
25815 | wxVisualAttributes * resultptr; | |
25816 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
25817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
25818 | } | |
25819 | return resultobj; | |
25820 | fail: | |
25821 | return NULL; | |
25822 | } | |
25823 | ||
25824 | ||
25825 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25826 | PyObject *resultobj; | |
25827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25828 | wxColour *arg2 = 0 ; | |
25829 | bool result; | |
25830 | wxColour temp2 ; | |
25831 | PyObject * obj0 = 0 ; | |
25832 | PyObject * obj1 = 0 ; | |
25833 | char *kwnames[] = { | |
25834 | (char *) "self",(char *) "colour", NULL | |
25835 | }; | |
25836 | ||
25837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25840 | { | |
25841 | arg2 = &temp2; | |
25842 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25843 | } | |
25844 | { | |
25845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25846 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
25847 | ||
25848 | wxPyEndAllowThreads(__tstate); | |
25849 | if (PyErr_Occurred()) SWIG_fail; | |
25850 | } | |
25851 | { | |
25852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25853 | } | |
25854 | return resultobj; | |
25855 | fail: | |
25856 | return NULL; | |
25857 | } | |
25858 | ||
25859 | ||
25860 | static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25861 | PyObject *resultobj; | |
25862 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25863 | wxColour *arg2 = 0 ; | |
25864 | wxColour temp2 ; | |
25865 | PyObject * obj0 = 0 ; | |
25866 | PyObject * obj1 = 0 ; | |
25867 | char *kwnames[] = { | |
25868 | (char *) "self",(char *) "colour", NULL | |
25869 | }; | |
25870 | ||
25871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25874 | { | |
25875 | arg2 = &temp2; | |
25876 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25877 | } | |
25878 | { | |
25879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25880 | (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2); | |
25881 | ||
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | Py_INCREF(Py_None); resultobj = Py_None; | |
25886 | return resultobj; | |
25887 | fail: | |
25888 | return NULL; | |
25889 | } | |
25890 | ||
25891 | ||
25892 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25893 | PyObject *resultobj; | |
25894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25895 | wxColour *arg2 = 0 ; | |
25896 | bool result; | |
25897 | wxColour temp2 ; | |
25898 | PyObject * obj0 = 0 ; | |
25899 | PyObject * obj1 = 0 ; | |
25900 | char *kwnames[] = { | |
25901 | (char *) "self",(char *) "colour", NULL | |
25902 | }; | |
25903 | ||
25904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25907 | { | |
25908 | arg2 = &temp2; | |
25909 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25910 | } | |
25911 | { | |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
25914 | ||
25915 | wxPyEndAllowThreads(__tstate); | |
25916 | if (PyErr_Occurred()) SWIG_fail; | |
25917 | } | |
25918 | { | |
25919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25920 | } | |
25921 | return resultobj; | |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
25927 | static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25928 | PyObject *resultobj; | |
25929 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25930 | wxColour *arg2 = 0 ; | |
25931 | wxColour temp2 ; | |
25932 | PyObject * obj0 = 0 ; | |
25933 | PyObject * obj1 = 0 ; | |
25934 | char *kwnames[] = { | |
25935 | (char *) "self",(char *) "colour", NULL | |
25936 | }; | |
25937 | ||
25938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25941 | { | |
25942 | arg2 = &temp2; | |
25943 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25944 | } | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25947 | (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2); | |
25948 | ||
25949 | wxPyEndAllowThreads(__tstate); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | Py_INCREF(Py_None); resultobj = Py_None; | |
25953 | return resultobj; | |
25954 | fail: | |
25955 | return NULL; | |
25956 | } | |
25957 | ||
25958 | ||
25959 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25960 | PyObject *resultobj; | |
25961 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25962 | wxColour result; | |
25963 | PyObject * obj0 = 0 ; | |
25964 | char *kwnames[] = { | |
25965 | (char *) "self", NULL | |
25966 | }; | |
25967 | ||
25968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
25969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25971 | { | |
25972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25973 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
25974 | ||
25975 | wxPyEndAllowThreads(__tstate); | |
25976 | if (PyErr_Occurred()) SWIG_fail; | |
25977 | } | |
25978 | { | |
25979 | wxColour * resultptr; | |
25980 | resultptr = new wxColour((wxColour &) result); | |
25981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25982 | } | |
25983 | return resultobj; | |
25984 | fail: | |
25985 | return NULL; | |
25986 | } | |
25987 | ||
25988 | ||
25989 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25990 | PyObject *resultobj; | |
25991 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25992 | wxColour result; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | char *kwnames[] = { | |
25995 | (char *) "self", NULL | |
25996 | }; | |
25997 | ||
25998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
25999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26001 | { | |
26002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26003 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26004 | ||
26005 | wxPyEndAllowThreads(__tstate); | |
26006 | if (PyErr_Occurred()) SWIG_fail; | |
26007 | } | |
26008 | { | |
26009 | wxColour * resultptr; | |
26010 | resultptr = new wxColour((wxColour &) result); | |
26011 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26012 | } | |
26013 | return resultobj; | |
26014 | fail: | |
26015 | return NULL; | |
26016 | } | |
26017 | ||
26018 | ||
26019 | static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26020 | PyObject *resultobj; | |
26021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26022 | wxCursor *arg2 = 0 ; | |
26023 | bool result; | |
26024 | PyObject * obj0 = 0 ; | |
26025 | PyObject * obj1 = 0 ; | |
26026 | char *kwnames[] = { | |
26027 | (char *) "self",(char *) "cursor", NULL | |
26028 | }; | |
26029 | ||
26030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26033 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26034 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26035 | SWIG_fail; | |
26036 | if (arg2 == NULL) { | |
26037 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26038 | SWIG_fail; | |
26039 | } | |
26040 | { | |
26041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26042 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26043 | ||
26044 | wxPyEndAllowThreads(__tstate); | |
26045 | if (PyErr_Occurred()) SWIG_fail; | |
26046 | } | |
26047 | { | |
26048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26049 | } | |
26050 | return resultobj; | |
26051 | fail: | |
26052 | return NULL; | |
26053 | } | |
26054 | ||
26055 | ||
26056 | static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26057 | PyObject *resultobj; | |
26058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26059 | wxCursor *result; | |
26060 | PyObject * obj0 = 0 ; | |
26061 | char *kwnames[] = { | |
26062 | (char *) "self", NULL | |
26063 | }; | |
26064 | ||
26065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26068 | { | |
26069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26070 | { | |
26071 | wxCursor &_result_ref = (arg1)->GetCursor(); | |
26072 | result = (wxCursor *) &_result_ref; | |
26073 | } | |
26074 | ||
26075 | wxPyEndAllowThreads(__tstate); | |
26076 | if (PyErr_Occurred()) SWIG_fail; | |
26077 | } | |
26078 | { | |
26079 | wxCursor* resultptr = new wxCursor(*result); | |
26080 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
26081 | } | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
26088 | static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26089 | PyObject *resultobj; | |
26090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26091 | wxFont *arg2 = 0 ; | |
26092 | bool result; | |
26093 | PyObject * obj0 = 0 ; | |
26094 | PyObject * obj1 = 0 ; | |
26095 | char *kwnames[] = { | |
26096 | (char *) "self",(char *) "font", NULL | |
26097 | }; | |
26098 | ||
26099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26103 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26104 | SWIG_fail; | |
26105 | if (arg2 == NULL) { | |
26106 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26107 | SWIG_fail; | |
26108 | } | |
26109 | { | |
26110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26111 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26112 | ||
26113 | wxPyEndAllowThreads(__tstate); | |
26114 | if (PyErr_Occurred()) SWIG_fail; | |
26115 | } | |
26116 | { | |
26117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26118 | } | |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
26125 | static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26126 | PyObject *resultobj; | |
26127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26128 | wxFont *arg2 = 0 ; | |
26129 | PyObject * obj0 = 0 ; | |
26130 | PyObject * obj1 = 0 ; | |
26131 | char *kwnames[] = { | |
26132 | (char *) "self",(char *) "font", NULL | |
26133 | }; | |
26134 | ||
26135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail; | |
26136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26138 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26140 | SWIG_fail; | |
26141 | if (arg2 == NULL) { | |
26142 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26143 | SWIG_fail; | |
26144 | } | |
26145 | { | |
26146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26147 | (arg1)->SetDefaultFont((wxFont const &)*arg2); | |
26148 | ||
26149 | wxPyEndAllowThreads(__tstate); | |
26150 | if (PyErr_Occurred()) SWIG_fail; | |
26151 | } | |
26152 | Py_INCREF(Py_None); resultobj = Py_None; | |
26153 | return resultobj; | |
26154 | fail: | |
26155 | return NULL; | |
26156 | } | |
26157 | ||
26158 | ||
26159 | static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26160 | PyObject *resultobj; | |
26161 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26162 | wxFont *result; | |
26163 | PyObject * obj0 = 0 ; | |
26164 | char *kwnames[] = { | |
26165 | (char *) "self", NULL | |
26166 | }; | |
26167 | ||
26168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26171 | { | |
26172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26173 | { | |
26174 | wxFont &_result_ref = (arg1)->GetFont(); | |
26175 | result = (wxFont *) &_result_ref; | |
26176 | } | |
26177 | ||
26178 | wxPyEndAllowThreads(__tstate); | |
26179 | if (PyErr_Occurred()) SWIG_fail; | |
26180 | } | |
26181 | { | |
26182 | wxFont* resultptr = new wxFont(*result); | |
26183 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
26184 | } | |
26185 | return resultobj; | |
26186 | fail: | |
26187 | return NULL; | |
26188 | } | |
26189 | ||
26190 | ||
26191 | static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26192 | PyObject *resultobj; | |
26193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26194 | wxCaret *arg2 = (wxCaret *) 0 ; | |
26195 | PyObject * obj0 = 0 ; | |
26196 | PyObject * obj1 = 0 ; | |
26197 | char *kwnames[] = { | |
26198 | (char *) "self",(char *) "caret", NULL | |
26199 | }; | |
26200 | ||
26201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
26202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
26205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26206 | { | |
26207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26208 | (arg1)->SetCaret(arg2); | |
26209 | ||
26210 | wxPyEndAllowThreads(__tstate); | |
26211 | if (PyErr_Occurred()) SWIG_fail; | |
26212 | } | |
26213 | Py_INCREF(Py_None); resultobj = Py_None; | |
26214 | return resultobj; | |
26215 | fail: | |
26216 | return NULL; | |
26217 | } | |
26218 | ||
26219 | ||
26220 | static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26221 | PyObject *resultobj; | |
26222 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26223 | wxCaret *result; | |
26224 | PyObject * obj0 = 0 ; | |
26225 | char *kwnames[] = { | |
26226 | (char *) "self", NULL | |
26227 | }; | |
26228 | ||
26229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
26230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26232 | { | |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26234 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
26235 | ||
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
26239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
26240 | return resultobj; | |
26241 | fail: | |
26242 | return NULL; | |
26243 | } | |
26244 | ||
26245 | ||
26246 | static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26247 | PyObject *resultobj; | |
26248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26249 | int result; | |
26250 | PyObject * obj0 = 0 ; | |
26251 | char *kwnames[] = { | |
26252 | (char *) "self", NULL | |
26253 | }; | |
26254 | ||
26255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
26256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26258 | { | |
26259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26260 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
26261 | ||
26262 | wxPyEndAllowThreads(__tstate); | |
26263 | if (PyErr_Occurred()) SWIG_fail; | |
26264 | } | |
26265 | resultobj = SWIG_FromInt((int)result); | |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
26272 | static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26273 | PyObject *resultobj; | |
26274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26275 | int result; | |
26276 | PyObject * obj0 = 0 ; | |
26277 | char *kwnames[] = { | |
26278 | (char *) "self", NULL | |
26279 | }; | |
26280 | ||
26281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
26282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26284 | { | |
26285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26286 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
26287 | ||
26288 | wxPyEndAllowThreads(__tstate); | |
26289 | if (PyErr_Occurred()) SWIG_fail; | |
26290 | } | |
26291 | resultobj = SWIG_FromInt((int)result); | |
26292 | return resultobj; | |
26293 | fail: | |
26294 | return NULL; | |
26295 | } | |
26296 | ||
26297 | ||
26298 | static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26299 | PyObject *resultobj; | |
26300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26301 | wxString *arg2 = 0 ; | |
26302 | int *arg3 = (int *) 0 ; | |
26303 | int *arg4 = (int *) 0 ; | |
26304 | bool temp2 = False ; | |
26305 | int temp3 ; | |
26306 | int temp4 ; | |
26307 | PyObject * obj0 = 0 ; | |
26308 | PyObject * obj1 = 0 ; | |
26309 | char *kwnames[] = { | |
26310 | (char *) "self",(char *) "string", NULL | |
26311 | }; | |
26312 | ||
26313 | arg3 = &temp3; | |
26314 | arg4 = &temp4; | |
26315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; | |
26316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26318 | { | |
26319 | arg2 = wxString_in_helper(obj1); | |
26320 | if (arg2 == NULL) SWIG_fail; | |
26321 | temp2 = True; | |
26322 | } | |
26323 | { | |
26324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26325 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
26326 | ||
26327 | wxPyEndAllowThreads(__tstate); | |
26328 | if (PyErr_Occurred()) SWIG_fail; | |
26329 | } | |
26330 | Py_INCREF(Py_None); resultobj = Py_None; | |
26331 | { | |
26332 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26333 | resultobj = t_output_helper(resultobj,o); | |
26334 | } | |
26335 | { | |
26336 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26337 | resultobj = t_output_helper(resultobj,o); | |
26338 | } | |
26339 | { | |
26340 | if (temp2) | |
26341 | delete arg2; | |
26342 | } | |
26343 | return resultobj; | |
26344 | fail: | |
26345 | { | |
26346 | if (temp2) | |
26347 | delete arg2; | |
26348 | } | |
26349 | return NULL; | |
26350 | } | |
26351 | ||
26352 | ||
26353 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26354 | PyObject *resultobj; | |
26355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26356 | wxString *arg2 = 0 ; | |
26357 | int *arg3 = (int *) 0 ; | |
26358 | int *arg4 = (int *) 0 ; | |
26359 | int *arg5 = (int *) 0 ; | |
26360 | int *arg6 = (int *) 0 ; | |
26361 | wxFont *arg7 = (wxFont *) NULL ; | |
26362 | bool temp2 = False ; | |
26363 | int temp3 ; | |
26364 | int temp4 ; | |
26365 | int temp5 ; | |
26366 | int temp6 ; | |
26367 | PyObject * obj0 = 0 ; | |
26368 | PyObject * obj1 = 0 ; | |
26369 | PyObject * obj2 = 0 ; | |
26370 | char *kwnames[] = { | |
26371 | (char *) "self",(char *) "string",(char *) "font", NULL | |
26372 | }; | |
26373 | ||
26374 | arg3 = &temp3; | |
26375 | arg4 = &temp4; | |
26376 | arg5 = &temp5; | |
26377 | arg6 = &temp6; | |
26378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26381 | { | |
26382 | arg2 = wxString_in_helper(obj1); | |
26383 | if (arg2 == NULL) SWIG_fail; | |
26384 | temp2 = True; | |
26385 | } | |
26386 | if (obj2) { | |
26387 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
26388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26389 | } | |
26390 | { | |
26391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26392 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
26393 | ||
26394 | wxPyEndAllowThreads(__tstate); | |
26395 | if (PyErr_Occurred()) SWIG_fail; | |
26396 | } | |
26397 | Py_INCREF(Py_None); resultobj = Py_None; | |
26398 | { | |
26399 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26400 | resultobj = t_output_helper(resultobj,o); | |
26401 | } | |
26402 | { | |
26403 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
26404 | resultobj = t_output_helper(resultobj,o); | |
26405 | } | |
26406 | { | |
26407 | PyObject *o = PyInt_FromLong((long) (*arg5)); | |
26408 | resultobj = t_output_helper(resultobj,o); | |
26409 | } | |
26410 | { | |
26411 | PyObject *o = PyInt_FromLong((long) (*arg6)); | |
26412 | resultobj = t_output_helper(resultobj,o); | |
26413 | } | |
26414 | { | |
26415 | if (temp2) | |
26416 | delete arg2; | |
26417 | } | |
26418 | return resultobj; | |
26419 | fail: | |
26420 | { | |
26421 | if (temp2) | |
26422 | delete arg2; | |
26423 | } | |
26424 | return NULL; | |
26425 | } | |
26426 | ||
26427 | ||
26428 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26429 | PyObject *resultobj; | |
26430 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26431 | int *arg2 = (int *) 0 ; | |
26432 | int *arg3 = (int *) 0 ; | |
26433 | int temp2 ; | |
26434 | int temp3 ; | |
26435 | PyObject * obj0 = 0 ; | |
26436 | PyObject * obj1 = 0 ; | |
26437 | PyObject * obj2 = 0 ; | |
26438 | char *kwnames[] = { | |
26439 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26440 | }; | |
26441 | ||
26442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26445 | { | |
26446 | temp2 = PyInt_AsLong(obj1); | |
26447 | if (PyErr_Occurred()) SWIG_fail; | |
26448 | arg2 = &temp2; | |
26449 | } | |
26450 | { | |
26451 | temp3 = PyInt_AsLong(obj2); | |
26452 | if (PyErr_Occurred()) SWIG_fail; | |
26453 | arg3 = &temp3; | |
26454 | } | |
26455 | { | |
26456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26457 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
26458 | ||
26459 | wxPyEndAllowThreads(__tstate); | |
26460 | if (PyErr_Occurred()) SWIG_fail; | |
26461 | } | |
26462 | Py_INCREF(Py_None); resultobj = Py_None; | |
26463 | { | |
26464 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26465 | resultobj = t_output_helper(resultobj,o); | |
26466 | } | |
26467 | { | |
26468 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26469 | resultobj = t_output_helper(resultobj,o); | |
26470 | } | |
26471 | return resultobj; | |
26472 | fail: | |
26473 | return NULL; | |
26474 | } | |
26475 | ||
26476 | ||
26477 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26478 | PyObject *resultobj; | |
26479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26480 | int *arg2 = (int *) 0 ; | |
26481 | int *arg3 = (int *) 0 ; | |
26482 | int temp2 ; | |
26483 | int temp3 ; | |
26484 | PyObject * obj0 = 0 ; | |
26485 | PyObject * obj1 = 0 ; | |
26486 | PyObject * obj2 = 0 ; | |
26487 | char *kwnames[] = { | |
26488 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26489 | }; | |
26490 | ||
26491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26494 | { | |
26495 | temp2 = PyInt_AsLong(obj1); | |
26496 | if (PyErr_Occurred()) SWIG_fail; | |
26497 | arg2 = &temp2; | |
26498 | } | |
26499 | { | |
26500 | temp3 = PyInt_AsLong(obj2); | |
26501 | if (PyErr_Occurred()) SWIG_fail; | |
26502 | arg3 = &temp3; | |
26503 | } | |
26504 | { | |
26505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26506 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
26507 | ||
26508 | wxPyEndAllowThreads(__tstate); | |
26509 | if (PyErr_Occurred()) SWIG_fail; | |
26510 | } | |
26511 | Py_INCREF(Py_None); resultobj = Py_None; | |
26512 | { | |
26513 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
26514 | resultobj = t_output_helper(resultobj,o); | |
26515 | } | |
26516 | { | |
26517 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26518 | resultobj = t_output_helper(resultobj,o); | |
26519 | } | |
26520 | return resultobj; | |
26521 | fail: | |
26522 | return NULL; | |
26523 | } | |
26524 | ||
26525 | ||
26526 | static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26527 | PyObject *resultobj; | |
26528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26529 | wxPoint *arg2 = 0 ; | |
26530 | wxPoint result; | |
26531 | wxPoint temp2 ; | |
26532 | PyObject * obj0 = 0 ; | |
26533 | PyObject * obj1 = 0 ; | |
26534 | char *kwnames[] = { | |
26535 | (char *) "self",(char *) "pt", NULL | |
26536 | }; | |
26537 | ||
26538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
26539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26541 | { | |
26542 | arg2 = &temp2; | |
26543 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | { | |
26553 | wxPoint * resultptr; | |
26554 | resultptr = new wxPoint((wxPoint &) result); | |
26555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26556 | } | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
26563 | static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26564 | PyObject *resultobj; | |
26565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26566 | wxPoint *arg2 = 0 ; | |
26567 | wxPoint result; | |
26568 | wxPoint temp2 ; | |
26569 | PyObject * obj0 = 0 ; | |
26570 | PyObject * obj1 = 0 ; | |
26571 | char *kwnames[] = { | |
26572 | (char *) "self",(char *) "pt", NULL | |
26573 | }; | |
26574 | ||
26575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
26576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26578 | { | |
26579 | arg2 = &temp2; | |
26580 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26581 | } | |
26582 | { | |
26583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26584 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
26585 | ||
26586 | wxPyEndAllowThreads(__tstate); | |
26587 | if (PyErr_Occurred()) SWIG_fail; | |
26588 | } | |
26589 | { | |
26590 | wxPoint * resultptr; | |
26591 | resultptr = new wxPoint((wxPoint &) result); | |
26592 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26593 | } | |
26594 | return resultobj; | |
26595 | fail: | |
26596 | return NULL; | |
26597 | } | |
26598 | ||
26599 | ||
26600 | static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26601 | PyObject *resultobj; | |
26602 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26603 | int arg2 ; | |
26604 | int arg3 ; | |
26605 | int result; | |
26606 | PyObject * obj0 = 0 ; | |
26607 | PyObject * obj1 = 0 ; | |
26608 | PyObject * obj2 = 0 ; | |
26609 | char *kwnames[] = { | |
26610 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26611 | }; | |
26612 | ||
26613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26616 | arg2 = (int) SWIG_AsInt(obj1); | |
26617 | if (PyErr_Occurred()) SWIG_fail; | |
26618 | arg3 = (int) SWIG_AsInt(obj2); | |
26619 | if (PyErr_Occurred()) SWIG_fail; | |
26620 | { | |
26621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26622 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
26623 | ||
26624 | wxPyEndAllowThreads(__tstate); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | } | |
26627 | resultobj = SWIG_FromInt((int)result); | |
26628 | return resultobj; | |
26629 | fail: | |
26630 | return NULL; | |
26631 | } | |
26632 | ||
26633 | ||
26634 | static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26635 | PyObject *resultobj; | |
26636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26637 | wxPoint *arg2 = 0 ; | |
26638 | int result; | |
26639 | wxPoint temp2 ; | |
26640 | PyObject * obj0 = 0 ; | |
26641 | PyObject * obj1 = 0 ; | |
26642 | char *kwnames[] = { | |
26643 | (char *) "self",(char *) "pt", NULL | |
26644 | }; | |
26645 | ||
26646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
26647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26649 | { | |
26650 | arg2 = &temp2; | |
26651 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26652 | } | |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | resultobj = SWIG_FromInt((int)result); | |
26661 | return resultobj; | |
26662 | fail: | |
26663 | return NULL; | |
26664 | } | |
26665 | ||
26666 | ||
26667 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) { | |
26668 | PyObject *resultobj; | |
26669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26670 | long arg2 ; | |
26671 | int result; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | PyObject * obj1 = 0 ; | |
26674 | ||
26675 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
26676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26678 | arg2 = (long) SWIG_AsLong(obj1); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | { | |
26681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26682 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
26683 | ||
26684 | wxPyEndAllowThreads(__tstate); | |
26685 | if (PyErr_Occurred()) SWIG_fail; | |
26686 | } | |
26687 | resultobj = SWIG_FromInt((int)result); | |
26688 | return resultobj; | |
26689 | fail: | |
26690 | return NULL; | |
26691 | } | |
26692 | ||
26693 | ||
26694 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) { | |
26695 | PyObject *resultobj; | |
26696 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26697 | int result; | |
26698 | PyObject * obj0 = 0 ; | |
26699 | ||
26700 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
26701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26703 | { | |
26704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26705 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
26706 | ||
26707 | wxPyEndAllowThreads(__tstate); | |
26708 | if (PyErr_Occurred()) SWIG_fail; | |
26709 | } | |
26710 | resultobj = SWIG_FromInt((int)result); | |
26711 | return resultobj; | |
26712 | fail: | |
26713 | return NULL; | |
26714 | } | |
26715 | ||
26716 | ||
26717 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
26718 | int argc; | |
26719 | PyObject *argv[3]; | |
26720 | int ii; | |
26721 | ||
26722 | argc = PyObject_Length(args); | |
26723 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
26724 | argv[ii] = PyTuple_GetItem(args,ii); | |
26725 | } | |
26726 | if (argc == 1) { | |
26727 | int _v; | |
26728 | { | |
26729 | void *ptr; | |
26730 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26731 | _v = 0; | |
26732 | PyErr_Clear(); | |
26733 | } else { | |
26734 | _v = 1; | |
26735 | } | |
26736 | } | |
26737 | if (_v) { | |
26738 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
26739 | } | |
26740 | } | |
26741 | if (argc == 2) { | |
26742 | int _v; | |
26743 | { | |
26744 | void *ptr; | |
26745 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
26746 | _v = 0; | |
26747 | PyErr_Clear(); | |
26748 | } else { | |
26749 | _v = 1; | |
26750 | } | |
26751 | } | |
26752 | if (_v) { | |
26753 | _v = SWIG_CheckLong(argv[1]); | |
26754 | if (_v) { | |
26755 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
26756 | } | |
26757 | } | |
26758 | } | |
26759 | ||
26760 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
26761 | return NULL; | |
26762 | } | |
26763 | ||
26764 | ||
26765 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26766 | PyObject *resultobj; | |
26767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26768 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
26769 | PyObject * obj0 = 0 ; | |
26770 | PyObject * obj1 = 0 ; | |
26771 | char *kwnames[] = { | |
26772 | (char *) "self",(char *) "flags", NULL | |
26773 | }; | |
26774 | ||
26775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
26776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26778 | if (obj1) { | |
26779 | arg2 = (long) SWIG_AsLong(obj1); | |
26780 | if (PyErr_Occurred()) SWIG_fail; | |
26781 | } | |
26782 | { | |
26783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26784 | (arg1)->UpdateWindowUI(arg2); | |
26785 | ||
26786 | wxPyEndAllowThreads(__tstate); | |
26787 | if (PyErr_Occurred()) SWIG_fail; | |
26788 | } | |
26789 | Py_INCREF(Py_None); resultobj = Py_None; | |
26790 | return resultobj; | |
26791 | fail: | |
26792 | return NULL; | |
26793 | } | |
26794 | ||
26795 | ||
26796 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26797 | PyObject *resultobj; | |
26798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26799 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26800 | int arg3 ; | |
26801 | int arg4 ; | |
26802 | bool result; | |
26803 | PyObject * obj0 = 0 ; | |
26804 | PyObject * obj1 = 0 ; | |
26805 | PyObject * obj2 = 0 ; | |
26806 | PyObject * obj3 = 0 ; | |
26807 | char *kwnames[] = { | |
26808 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
26809 | }; | |
26810 | ||
26811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26816 | arg3 = (int) SWIG_AsInt(obj2); | |
26817 | if (PyErr_Occurred()) SWIG_fail; | |
26818 | arg4 = (int) SWIG_AsInt(obj3); | |
26819 | if (PyErr_Occurred()) SWIG_fail; | |
26820 | { | |
26821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26822 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
26823 | ||
26824 | wxPyEndAllowThreads(__tstate); | |
26825 | if (PyErr_Occurred()) SWIG_fail; | |
26826 | } | |
26827 | { | |
26828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26829 | } | |
26830 | return resultobj; | |
26831 | fail: | |
26832 | return NULL; | |
26833 | } | |
26834 | ||
26835 | ||
26836 | static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26837 | PyObject *resultobj; | |
26838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26839 | wxMenu *arg2 = (wxMenu *) 0 ; | |
26840 | wxPoint *arg3 = 0 ; | |
26841 | bool result; | |
26842 | wxPoint temp3 ; | |
26843 | PyObject * obj0 = 0 ; | |
26844 | PyObject * obj1 = 0 ; | |
26845 | PyObject * obj2 = 0 ; | |
26846 | char *kwnames[] = { | |
26847 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
26848 | }; | |
26849 | ||
26850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26853 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
26854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26855 | { | |
26856 | arg3 = &temp3; | |
26857 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26858 | } | |
26859 | { | |
26860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26861 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
26862 | ||
26863 | wxPyEndAllowThreads(__tstate); | |
26864 | if (PyErr_Occurred()) SWIG_fail; | |
26865 | } | |
26866 | { | |
26867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26868 | } | |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
26875 | static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26876 | PyObject *resultobj; | |
26877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26878 | long result; | |
26879 | PyObject * obj0 = 0 ; | |
26880 | char *kwnames[] = { | |
26881 | (char *) "self", NULL | |
26882 | }; | |
26883 | ||
26884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
26885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26887 | { | |
26888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26889 | result = (long)wxWindow_GetHandle(arg1); | |
26890 | ||
26891 | wxPyEndAllowThreads(__tstate); | |
26892 | if (PyErr_Occurred()) SWIG_fail; | |
26893 | } | |
26894 | resultobj = SWIG_FromLong((long)result); | |
26895 | return resultobj; | |
26896 | fail: | |
26897 | return NULL; | |
26898 | } | |
26899 | ||
26900 | ||
26901 | static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26902 | PyObject *resultobj; | |
26903 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26904 | wxPaintEvent *arg2 = 0 ; | |
26905 | PyObject * obj0 = 0 ; | |
26906 | PyObject * obj1 = 0 ; | |
26907 | char *kwnames[] = { | |
26908 | (char *) "self",(char *) "event", NULL | |
26909 | }; | |
26910 | ||
26911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail; | |
26912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent, | |
26915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26916 | SWIG_fail; | |
26917 | if (arg2 == NULL) { | |
26918 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26919 | SWIG_fail; | |
26920 | } | |
26921 | { | |
26922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26923 | (arg1)->OnPaint(*arg2); | |
26924 | ||
26925 | wxPyEndAllowThreads(__tstate); | |
26926 | if (PyErr_Occurred()) SWIG_fail; | |
26927 | } | |
26928 | Py_INCREF(Py_None); resultobj = Py_None; | |
26929 | return resultobj; | |
26930 | fail: | |
26931 | return NULL; | |
26932 | } | |
26933 | ||
26934 | ||
26935 | static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26936 | PyObject *resultobj; | |
26937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26938 | int arg2 ; | |
26939 | bool result; | |
26940 | PyObject * obj0 = 0 ; | |
26941 | PyObject * obj1 = 0 ; | |
26942 | char *kwnames[] = { | |
26943 | (char *) "self",(char *) "orient", NULL | |
26944 | }; | |
26945 | ||
26946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
26947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26949 | arg2 = (int) SWIG_AsInt(obj1); | |
26950 | if (PyErr_Occurred()) SWIG_fail; | |
26951 | { | |
26952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26953 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
26954 | ||
26955 | wxPyEndAllowThreads(__tstate); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | { | |
26959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26960 | } | |
26961 | return resultobj; | |
26962 | fail: | |
26963 | return NULL; | |
26964 | } | |
26965 | ||
26966 | ||
26967 | static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26968 | PyObject *resultobj; | |
26969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26970 | int arg2 ; | |
26971 | int arg3 ; | |
26972 | int arg4 ; | |
26973 | int arg5 ; | |
26974 | bool arg6 = (bool) True ; | |
26975 | PyObject * obj0 = 0 ; | |
26976 | PyObject * obj1 = 0 ; | |
26977 | PyObject * obj2 = 0 ; | |
26978 | PyObject * obj3 = 0 ; | |
26979 | PyObject * obj4 = 0 ; | |
26980 | PyObject * obj5 = 0 ; | |
26981 | char *kwnames[] = { | |
79fccf9d | 26982 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
26983 | }; |
26984 | ||
26985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26988 | arg2 = (int) SWIG_AsInt(obj1); | |
26989 | if (PyErr_Occurred()) SWIG_fail; | |
26990 | arg3 = (int) SWIG_AsInt(obj2); | |
26991 | if (PyErr_Occurred()) SWIG_fail; | |
26992 | arg4 = (int) SWIG_AsInt(obj3); | |
26993 | if (PyErr_Occurred()) SWIG_fail; | |
26994 | arg5 = (int) SWIG_AsInt(obj4); | |
26995 | if (PyErr_Occurred()) SWIG_fail; | |
26996 | if (obj5) { | |
26997 | arg6 = (bool) SWIG_AsBool(obj5); | |
26998 | if (PyErr_Occurred()) SWIG_fail; | |
26999 | } | |
27000 | { | |
27001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27002 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27003 | ||
27004 | wxPyEndAllowThreads(__tstate); | |
27005 | if (PyErr_Occurred()) SWIG_fail; | |
27006 | } | |
27007 | Py_INCREF(Py_None); resultobj = Py_None; | |
27008 | return resultobj; | |
27009 | fail: | |
27010 | return NULL; | |
27011 | } | |
27012 | ||
27013 | ||
27014 | static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27015 | PyObject *resultobj; | |
27016 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27017 | int arg2 ; | |
27018 | int arg3 ; | |
27019 | bool arg4 = (bool) True ; | |
27020 | PyObject * obj0 = 0 ; | |
27021 | PyObject * obj1 = 0 ; | |
27022 | PyObject * obj2 = 0 ; | |
27023 | PyObject * obj3 = 0 ; | |
27024 | char *kwnames[] = { | |
27025 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27026 | }; | |
27027 | ||
27028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27031 | arg2 = (int) SWIG_AsInt(obj1); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | arg3 = (int) SWIG_AsInt(obj2); | |
27034 | if (PyErr_Occurred()) SWIG_fail; | |
27035 | if (obj3) { | |
27036 | arg4 = (bool) SWIG_AsBool(obj3); | |
27037 | if (PyErr_Occurred()) SWIG_fail; | |
27038 | } | |
27039 | { | |
27040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27041 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27042 | ||
27043 | wxPyEndAllowThreads(__tstate); | |
27044 | if (PyErr_Occurred()) SWIG_fail; | |
27045 | } | |
27046 | Py_INCREF(Py_None); resultobj = Py_None; | |
27047 | return resultobj; | |
27048 | fail: | |
27049 | return NULL; | |
27050 | } | |
27051 | ||
27052 | ||
27053 | static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27054 | PyObject *resultobj; | |
27055 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27056 | int arg2 ; | |
27057 | int result; | |
27058 | PyObject * obj0 = 0 ; | |
27059 | PyObject * obj1 = 0 ; | |
27060 | char *kwnames[] = { | |
27061 | (char *) "self",(char *) "orientation", NULL | |
27062 | }; | |
27063 | ||
27064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27067 | arg2 = (int) SWIG_AsInt(obj1); | |
27068 | if (PyErr_Occurred()) SWIG_fail; | |
27069 | { | |
27070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27071 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27072 | ||
27073 | wxPyEndAllowThreads(__tstate); | |
27074 | if (PyErr_Occurred()) SWIG_fail; | |
27075 | } | |
27076 | resultobj = SWIG_FromInt((int)result); | |
27077 | return resultobj; | |
27078 | fail: | |
27079 | return NULL; | |
27080 | } | |
27081 | ||
27082 | ||
27083 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27084 | PyObject *resultobj; | |
27085 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27086 | int arg2 ; | |
27087 | int result; | |
27088 | PyObject * obj0 = 0 ; | |
27089 | PyObject * obj1 = 0 ; | |
27090 | char *kwnames[] = { | |
27091 | (char *) "self",(char *) "orientation", NULL | |
27092 | }; | |
27093 | ||
27094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27097 | arg2 = (int) SWIG_AsInt(obj1); | |
27098 | if (PyErr_Occurred()) SWIG_fail; | |
27099 | { | |
27100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27101 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27102 | ||
27103 | wxPyEndAllowThreads(__tstate); | |
27104 | if (PyErr_Occurred()) SWIG_fail; | |
27105 | } | |
27106 | resultobj = SWIG_FromInt((int)result); | |
27107 | return resultobj; | |
27108 | fail: | |
27109 | return NULL; | |
27110 | } | |
27111 | ||
27112 | ||
27113 | static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27114 | PyObject *resultobj; | |
27115 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27116 | int arg2 ; | |
27117 | int result; | |
27118 | PyObject * obj0 = 0 ; | |
27119 | PyObject * obj1 = 0 ; | |
27120 | char *kwnames[] = { | |
27121 | (char *) "self",(char *) "orientation", NULL | |
27122 | }; | |
27123 | ||
27124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
27125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27127 | arg2 = (int) SWIG_AsInt(obj1); | |
27128 | if (PyErr_Occurred()) SWIG_fail; | |
27129 | { | |
27130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27131 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27132 | ||
27133 | wxPyEndAllowThreads(__tstate); | |
27134 | if (PyErr_Occurred()) SWIG_fail; | |
27135 | } | |
27136 | resultobj = SWIG_FromInt((int)result); | |
27137 | return resultobj; | |
27138 | fail: | |
27139 | return NULL; | |
27140 | } | |
27141 | ||
27142 | ||
27143 | static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27144 | PyObject *resultobj; | |
27145 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27146 | int arg2 ; | |
27147 | int arg3 ; | |
27148 | wxRect *arg4 = (wxRect *) NULL ; | |
27149 | PyObject * obj0 = 0 ; | |
27150 | PyObject * obj1 = 0 ; | |
27151 | PyObject * obj2 = 0 ; | |
27152 | PyObject * obj3 = 0 ; | |
27153 | char *kwnames[] = { | |
27154 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
27155 | }; | |
27156 | ||
27157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27160 | arg2 = (int) SWIG_AsInt(obj1); | |
27161 | if (PyErr_Occurred()) SWIG_fail; | |
27162 | arg3 = (int) SWIG_AsInt(obj2); | |
27163 | if (PyErr_Occurred()) SWIG_fail; | |
27164 | if (obj3) { | |
27165 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
27166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27167 | } | |
27168 | { | |
27169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27170 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
27171 | ||
27172 | wxPyEndAllowThreads(__tstate); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | Py_INCREF(Py_None); resultobj = Py_None; | |
27176 | return resultobj; | |
27177 | fail: | |
27178 | return NULL; | |
27179 | } | |
27180 | ||
27181 | ||
27182 | static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27183 | PyObject *resultobj; | |
27184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27185 | int arg2 ; | |
27186 | bool result; | |
27187 | PyObject * obj0 = 0 ; | |
27188 | PyObject * obj1 = 0 ; | |
27189 | char *kwnames[] = { | |
27190 | (char *) "self",(char *) "lines", NULL | |
27191 | }; | |
27192 | ||
27193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
27194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27196 | arg2 = (int) SWIG_AsInt(obj1); | |
27197 | if (PyErr_Occurred()) SWIG_fail; | |
27198 | { | |
27199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27200 | result = (bool)(arg1)->ScrollLines(arg2); | |
27201 | ||
27202 | wxPyEndAllowThreads(__tstate); | |
27203 | if (PyErr_Occurred()) SWIG_fail; | |
27204 | } | |
27205 | { | |
27206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27207 | } | |
27208 | return resultobj; | |
27209 | fail: | |
27210 | return NULL; | |
27211 | } | |
27212 | ||
27213 | ||
27214 | static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27215 | PyObject *resultobj; | |
27216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27217 | int arg2 ; | |
27218 | bool result; | |
27219 | PyObject * obj0 = 0 ; | |
27220 | PyObject * obj1 = 0 ; | |
27221 | char *kwnames[] = { | |
27222 | (char *) "self",(char *) "pages", NULL | |
27223 | }; | |
27224 | ||
27225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
27226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27228 | arg2 = (int) SWIG_AsInt(obj1); | |
27229 | if (PyErr_Occurred()) SWIG_fail; | |
27230 | { | |
27231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27232 | result = (bool)(arg1)->ScrollPages(arg2); | |
27233 | ||
27234 | wxPyEndAllowThreads(__tstate); | |
27235 | if (PyErr_Occurred()) SWIG_fail; | |
27236 | } | |
27237 | { | |
27238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27239 | } | |
27240 | return resultobj; | |
27241 | fail: | |
27242 | return NULL; | |
27243 | } | |
27244 | ||
27245 | ||
27246 | static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27247 | PyObject *resultobj; | |
27248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27249 | bool result; | |
27250 | PyObject * obj0 = 0 ; | |
27251 | char *kwnames[] = { | |
27252 | (char *) "self", NULL | |
27253 | }; | |
27254 | ||
27255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
27256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27258 | { | |
27259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27260 | result = (bool)(arg1)->LineUp(); | |
27261 | ||
27262 | wxPyEndAllowThreads(__tstate); | |
27263 | if (PyErr_Occurred()) SWIG_fail; | |
27264 | } | |
27265 | { | |
27266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27267 | } | |
27268 | return resultobj; | |
27269 | fail: | |
27270 | return NULL; | |
27271 | } | |
27272 | ||
27273 | ||
27274 | static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27275 | PyObject *resultobj; | |
27276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27277 | bool result; | |
27278 | PyObject * obj0 = 0 ; | |
27279 | char *kwnames[] = { | |
27280 | (char *) "self", NULL | |
27281 | }; | |
27282 | ||
27283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
27284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27286 | { | |
27287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27288 | result = (bool)(arg1)->LineDown(); | |
27289 | ||
27290 | wxPyEndAllowThreads(__tstate); | |
27291 | if (PyErr_Occurred()) SWIG_fail; | |
27292 | } | |
27293 | { | |
27294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27295 | } | |
27296 | return resultobj; | |
27297 | fail: | |
27298 | return NULL; | |
27299 | } | |
27300 | ||
27301 | ||
27302 | static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27303 | PyObject *resultobj; | |
27304 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27305 | bool result; | |
27306 | PyObject * obj0 = 0 ; | |
27307 | char *kwnames[] = { | |
27308 | (char *) "self", NULL | |
27309 | }; | |
27310 | ||
27311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
27312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27314 | { | |
27315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27316 | result = (bool)(arg1)->PageUp(); | |
27317 | ||
27318 | wxPyEndAllowThreads(__tstate); | |
27319 | if (PyErr_Occurred()) SWIG_fail; | |
27320 | } | |
27321 | { | |
27322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27323 | } | |
27324 | return resultobj; | |
27325 | fail: | |
27326 | return NULL; | |
27327 | } | |
27328 | ||
27329 | ||
27330 | static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27331 | PyObject *resultobj; | |
27332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27333 | bool result; | |
27334 | PyObject * obj0 = 0 ; | |
27335 | char *kwnames[] = { | |
27336 | (char *) "self", NULL | |
27337 | }; | |
27338 | ||
27339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
27340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27342 | { | |
27343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27344 | result = (bool)(arg1)->PageDown(); | |
27345 | ||
27346 | wxPyEndAllowThreads(__tstate); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | } | |
27349 | { | |
27350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27351 | } | |
27352 | return resultobj; | |
27353 | fail: | |
27354 | return NULL; | |
27355 | } | |
27356 | ||
27357 | ||
27358 | static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27359 | PyObject *resultobj; | |
27360 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27361 | wxString *arg2 = 0 ; | |
27362 | bool temp2 = False ; | |
27363 | PyObject * obj0 = 0 ; | |
27364 | PyObject * obj1 = 0 ; | |
27365 | char *kwnames[] = { | |
27366 | (char *) "self",(char *) "text", NULL | |
27367 | }; | |
27368 | ||
27369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
27370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27372 | { | |
27373 | arg2 = wxString_in_helper(obj1); | |
27374 | if (arg2 == NULL) SWIG_fail; | |
27375 | temp2 = True; | |
27376 | } | |
27377 | { | |
27378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27379 | (arg1)->SetHelpText((wxString const &)*arg2); | |
27380 | ||
27381 | wxPyEndAllowThreads(__tstate); | |
27382 | if (PyErr_Occurred()) SWIG_fail; | |
27383 | } | |
27384 | Py_INCREF(Py_None); resultobj = Py_None; | |
27385 | { | |
27386 | if (temp2) | |
27387 | delete arg2; | |
27388 | } | |
27389 | return resultobj; | |
27390 | fail: | |
27391 | { | |
27392 | if (temp2) | |
27393 | delete arg2; | |
27394 | } | |
27395 | return NULL; | |
27396 | } | |
27397 | ||
27398 | ||
27399 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27400 | PyObject *resultobj; | |
27401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27402 | wxString *arg2 = 0 ; | |
27403 | bool temp2 = False ; | |
27404 | PyObject * obj0 = 0 ; | |
27405 | PyObject * obj1 = 0 ; | |
27406 | char *kwnames[] = { | |
27407 | (char *) "self",(char *) "text", NULL | |
27408 | }; | |
27409 | ||
27410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
27411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27413 | { | |
27414 | arg2 = wxString_in_helper(obj1); | |
27415 | if (arg2 == NULL) SWIG_fail; | |
27416 | temp2 = True; | |
27417 | } | |
27418 | { | |
27419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27420 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
27421 | ||
27422 | wxPyEndAllowThreads(__tstate); | |
27423 | if (PyErr_Occurred()) SWIG_fail; | |
27424 | } | |
27425 | Py_INCREF(Py_None); resultobj = Py_None; | |
27426 | { | |
27427 | if (temp2) | |
27428 | delete arg2; | |
27429 | } | |
27430 | return resultobj; | |
27431 | fail: | |
27432 | { | |
27433 | if (temp2) | |
27434 | delete arg2; | |
27435 | } | |
27436 | return NULL; | |
27437 | } | |
27438 | ||
27439 | ||
27440 | static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27441 | PyObject *resultobj; | |
27442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27443 | wxString result; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | char *kwnames[] = { | |
27446 | (char *) "self", NULL | |
27447 | }; | |
27448 | ||
27449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
27450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27452 | { | |
27453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27454 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
27455 | ||
27456 | wxPyEndAllowThreads(__tstate); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | } | |
27459 | { | |
27460 | #if wxUSE_UNICODE | |
27461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27462 | #else | |
27463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27464 | #endif | |
27465 | } | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27473 | PyObject *resultobj; | |
27474 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27475 | wxString *arg2 = 0 ; | |
27476 | bool temp2 = False ; | |
27477 | PyObject * obj0 = 0 ; | |
27478 | PyObject * obj1 = 0 ; | |
27479 | char *kwnames[] = { | |
27480 | (char *) "self",(char *) "tip", NULL | |
27481 | }; | |
27482 | ||
27483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
27484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27486 | { | |
27487 | arg2 = wxString_in_helper(obj1); | |
27488 | if (arg2 == NULL) SWIG_fail; | |
27489 | temp2 = True; | |
27490 | } | |
27491 | { | |
27492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27493 | (arg1)->SetToolTip((wxString const &)*arg2); | |
27494 | ||
27495 | wxPyEndAllowThreads(__tstate); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | Py_INCREF(Py_None); resultobj = Py_None; | |
27499 | { | |
27500 | if (temp2) | |
27501 | delete arg2; | |
27502 | } | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | { | |
27506 | if (temp2) | |
27507 | delete arg2; | |
27508 | } | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27514 | PyObject *resultobj; | |
27515 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27516 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
27517 | PyObject * obj0 = 0 ; | |
27518 | PyObject * obj1 = 0 ; | |
27519 | char *kwnames[] = { | |
27520 | (char *) "self",(char *) "tip", NULL | |
27521 | }; | |
27522 | ||
27523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
27524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27526 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
27527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27528 | { | |
27529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27530 | (arg1)->SetToolTip(arg2); | |
27531 | ||
27532 | wxPyEndAllowThreads(__tstate); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | } | |
27535 | Py_INCREF(Py_None); resultobj = Py_None; | |
27536 | return resultobj; | |
27537 | fail: | |
27538 | return NULL; | |
27539 | } | |
27540 | ||
27541 | ||
27542 | static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27543 | PyObject *resultobj; | |
27544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27545 | wxToolTip *result; | |
27546 | PyObject * obj0 = 0 ; | |
27547 | char *kwnames[] = { | |
27548 | (char *) "self", NULL | |
27549 | }; | |
27550 | ||
27551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
27552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27554 | { | |
27555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27556 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
27557 | ||
27558 | wxPyEndAllowThreads(__tstate); | |
27559 | if (PyErr_Occurred()) SWIG_fail; | |
27560 | } | |
27561 | { | |
27562 | resultobj = wxPyMake_wxObject(result); | |
27563 | } | |
27564 | return resultobj; | |
27565 | fail: | |
27566 | return NULL; | |
27567 | } | |
27568 | ||
27569 | ||
27570 | static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27571 | PyObject *resultobj; | |
27572 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27573 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
27574 | PyObject * obj0 = 0 ; | |
27575 | PyObject * obj1 = 0 ; | |
27576 | char *kwnames[] = { | |
27577 | (char *) "self",(char *) "dropTarget", NULL | |
27578 | }; | |
27579 | ||
27580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
27581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
27584 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
27585 | { | |
27586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27587 | (arg1)->SetDropTarget(arg2); | |
27588 | ||
27589 | wxPyEndAllowThreads(__tstate); | |
27590 | if (PyErr_Occurred()) SWIG_fail; | |
27591 | } | |
27592 | Py_INCREF(Py_None); resultobj = Py_None; | |
27593 | return resultobj; | |
27594 | fail: | |
27595 | return NULL; | |
27596 | } | |
27597 | ||
27598 | ||
27599 | static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27600 | PyObject *resultobj; | |
27601 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27602 | wxPyDropTarget *result; | |
27603 | PyObject * obj0 = 0 ; | |
27604 | char *kwnames[] = { | |
27605 | (char *) "self", NULL | |
27606 | }; | |
27607 | ||
27608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
27609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27611 | { | |
27612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27613 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
27614 | ||
27615 | wxPyEndAllowThreads(__tstate); | |
27616 | if (PyErr_Occurred()) SWIG_fail; | |
27617 | } | |
27618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
27619 | return resultobj; | |
27620 | fail: | |
27621 | return NULL; | |
27622 | } | |
27623 | ||
27624 | ||
27625 | static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27626 | PyObject *resultobj; | |
27627 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27628 | bool arg2 ; | |
27629 | PyObject * obj0 = 0 ; | |
27630 | PyObject * obj1 = 0 ; | |
27631 | char *kwnames[] = { | |
27632 | (char *) "self",(char *) "accept", NULL | |
27633 | }; | |
27634 | ||
27635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail; | |
27636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27638 | arg2 = (bool) SWIG_AsBool(obj1); | |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | { | |
27641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27642 | (arg1)->DragAcceptFiles(arg2); | |
27643 | ||
27644 | wxPyEndAllowThreads(__tstate); | |
27645 | if (PyErr_Occurred()) SWIG_fail; | |
27646 | } | |
27647 | Py_INCREF(Py_None); resultobj = Py_None; | |
27648 | return resultobj; | |
27649 | fail: | |
27650 | return NULL; | |
27651 | } | |
27652 | ||
27653 | ||
27654 | static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27655 | PyObject *resultobj; | |
27656 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27657 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
27658 | PyObject * obj0 = 0 ; | |
27659 | PyObject * obj1 = 0 ; | |
27660 | char *kwnames[] = { | |
27661 | (char *) "self",(char *) "constraints", NULL | |
27662 | }; | |
27663 | ||
27664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
27665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
27668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27669 | { | |
27670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27671 | (arg1)->SetConstraints(arg2); | |
27672 | ||
27673 | wxPyEndAllowThreads(__tstate); | |
27674 | if (PyErr_Occurred()) SWIG_fail; | |
27675 | } | |
27676 | Py_INCREF(Py_None); resultobj = Py_None; | |
27677 | return resultobj; | |
27678 | fail: | |
27679 | return NULL; | |
27680 | } | |
27681 | ||
27682 | ||
27683 | static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27684 | PyObject *resultobj; | |
27685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27686 | wxLayoutConstraints *result; | |
27687 | PyObject * obj0 = 0 ; | |
27688 | char *kwnames[] = { | |
27689 | (char *) "self", NULL | |
27690 | }; | |
27691 | ||
27692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
27693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27695 | { | |
27696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27697 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
27698 | ||
27699 | wxPyEndAllowThreads(__tstate); | |
27700 | if (PyErr_Occurred()) SWIG_fail; | |
27701 | } | |
27702 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
27703 | return resultobj; | |
27704 | fail: | |
27705 | return NULL; | |
27706 | } | |
27707 | ||
27708 | ||
27709 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27710 | PyObject *resultobj; | |
27711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27712 | bool arg2 ; | |
27713 | PyObject * obj0 = 0 ; | |
27714 | PyObject * obj1 = 0 ; | |
27715 | char *kwnames[] = { | |
27716 | (char *) "self",(char *) "autoLayout", NULL | |
27717 | }; | |
27718 | ||
27719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
27720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27722 | arg2 = (bool) SWIG_AsBool(obj1); | |
27723 | if (PyErr_Occurred()) SWIG_fail; | |
27724 | { | |
27725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27726 | (arg1)->SetAutoLayout(arg2); | |
27727 | ||
27728 | wxPyEndAllowThreads(__tstate); | |
27729 | if (PyErr_Occurred()) SWIG_fail; | |
27730 | } | |
27731 | Py_INCREF(Py_None); resultobj = Py_None; | |
27732 | return resultobj; | |
27733 | fail: | |
27734 | return NULL; | |
27735 | } | |
27736 | ||
27737 | ||
27738 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27739 | PyObject *resultobj; | |
27740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27741 | bool result; | |
27742 | PyObject * obj0 = 0 ; | |
27743 | char *kwnames[] = { | |
27744 | (char *) "self", NULL | |
27745 | }; | |
27746 | ||
27747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
27748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27750 | { | |
27751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27752 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
27753 | ||
27754 | wxPyEndAllowThreads(__tstate); | |
27755 | if (PyErr_Occurred()) SWIG_fail; | |
27756 | } | |
27757 | { | |
27758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27759 | } | |
27760 | return resultobj; | |
27761 | fail: | |
27762 | return NULL; | |
27763 | } | |
27764 | ||
27765 | ||
27766 | static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27767 | PyObject *resultobj; | |
27768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27769 | bool result; | |
27770 | PyObject * obj0 = 0 ; | |
27771 | char *kwnames[] = { | |
27772 | (char *) "self", NULL | |
27773 | }; | |
27774 | ||
27775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
27776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27778 | { | |
27779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27780 | result = (bool)(arg1)->Layout(); | |
27781 | ||
27782 | wxPyEndAllowThreads(__tstate); | |
27783 | if (PyErr_Occurred()) SWIG_fail; | |
27784 | } | |
27785 | { | |
27786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27787 | } | |
27788 | return resultobj; | |
27789 | fail: | |
27790 | return NULL; | |
27791 | } | |
27792 | ||
27793 | ||
27794 | static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27795 | PyObject *resultobj; | |
27796 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27797 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27798 | bool arg3 = (bool) True ; | |
27799 | PyObject * obj0 = 0 ; | |
27800 | PyObject * obj1 = 0 ; | |
27801 | PyObject * obj2 = 0 ; | |
27802 | char *kwnames[] = { | |
27803 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27804 | }; | |
27805 | ||
27806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27809 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27811 | if (obj2) { | |
27812 | arg3 = (bool) SWIG_AsBool(obj2); | |
27813 | if (PyErr_Occurred()) SWIG_fail; | |
27814 | } | |
27815 | { | |
27816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27817 | (arg1)->SetSizer(arg2,arg3); | |
27818 | ||
27819 | wxPyEndAllowThreads(__tstate); | |
27820 | if (PyErr_Occurred()) SWIG_fail; | |
27821 | } | |
27822 | Py_INCREF(Py_None); resultobj = Py_None; | |
27823 | return resultobj; | |
27824 | fail: | |
27825 | return NULL; | |
27826 | } | |
27827 | ||
27828 | ||
27829 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27830 | PyObject *resultobj; | |
27831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27832 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27833 | bool arg3 = (bool) True ; | |
27834 | PyObject * obj0 = 0 ; | |
27835 | PyObject * obj1 = 0 ; | |
27836 | PyObject * obj2 = 0 ; | |
27837 | char *kwnames[] = { | |
27838 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
27839 | }; | |
27840 | ||
27841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27846 | if (obj2) { | |
27847 | arg3 = (bool) SWIG_AsBool(obj2); | |
27848 | if (PyErr_Occurred()) SWIG_fail; | |
27849 | } | |
27850 | { | |
27851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27852 | (arg1)->SetSizerAndFit(arg2,arg3); | |
27853 | ||
27854 | wxPyEndAllowThreads(__tstate); | |
27855 | if (PyErr_Occurred()) SWIG_fail; | |
27856 | } | |
27857 | Py_INCREF(Py_None); resultobj = Py_None; | |
27858 | return resultobj; | |
27859 | fail: | |
27860 | return NULL; | |
27861 | } | |
27862 | ||
27863 | ||
27864 | static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27865 | PyObject *resultobj; | |
27866 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27867 | wxSizer *result; | |
27868 | PyObject * obj0 = 0 ; | |
27869 | char *kwnames[] = { | |
27870 | (char *) "self", NULL | |
27871 | }; | |
27872 | ||
27873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
27874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27876 | { | |
27877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27878 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
27879 | ||
27880 | wxPyEndAllowThreads(__tstate); | |
27881 | if (PyErr_Occurred()) SWIG_fail; | |
27882 | } | |
27883 | { | |
27884 | resultobj = wxPyMake_wxSizer(result); | |
27885 | } | |
27886 | return resultobj; | |
27887 | fail: | |
27888 | return NULL; | |
27889 | } | |
27890 | ||
27891 | ||
27892 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27893 | PyObject *resultobj; | |
27894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27895 | wxSizer *arg2 = (wxSizer *) 0 ; | |
27896 | PyObject * obj0 = 0 ; | |
27897 | PyObject * obj1 = 0 ; | |
27898 | char *kwnames[] = { | |
27899 | (char *) "self",(char *) "sizer", NULL | |
27900 | }; | |
27901 | ||
27902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
27903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
27906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27907 | { | |
27908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27909 | (arg1)->SetContainingSizer(arg2); | |
27910 | ||
27911 | wxPyEndAllowThreads(__tstate); | |
27912 | if (PyErr_Occurred()) SWIG_fail; | |
27913 | } | |
27914 | Py_INCREF(Py_None); resultobj = Py_None; | |
27915 | return resultobj; | |
27916 | fail: | |
27917 | return NULL; | |
27918 | } | |
27919 | ||
27920 | ||
27921 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27922 | PyObject *resultobj; | |
27923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27924 | wxSizer *result; | |
27925 | PyObject * obj0 = 0 ; | |
27926 | char *kwnames[] = { | |
27927 | (char *) "self", NULL | |
27928 | }; | |
27929 | ||
27930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
27931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27933 | { | |
27934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27935 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
27936 | ||
27937 | wxPyEndAllowThreads(__tstate); | |
27938 | if (PyErr_Occurred()) SWIG_fail; | |
27939 | } | |
27940 | { | |
27941 | resultobj = wxPyMake_wxSizer(result); | |
27942 | } | |
27943 | return resultobj; | |
27944 | fail: | |
27945 | return NULL; | |
27946 | } | |
27947 | ||
27948 | ||
27949 | static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27950 | PyObject *resultobj; | |
27951 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27952 | PyObject * obj0 = 0 ; | |
27953 | char *kwnames[] = { | |
27954 | (char *) "self", NULL | |
27955 | }; | |
27956 | ||
27957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
27958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27960 | { | |
27961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27962 | (arg1)->InheritAttributes(); | |
27963 | ||
27964 | wxPyEndAllowThreads(__tstate); | |
27965 | if (PyErr_Occurred()) SWIG_fail; | |
27966 | } | |
27967 | Py_INCREF(Py_None); resultobj = Py_None; | |
27968 | return resultobj; | |
27969 | fail: | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
27974 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27975 | PyObject *resultobj; | |
27976 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27977 | bool result; | |
27978 | PyObject * obj0 = 0 ; | |
27979 | char *kwnames[] = { | |
27980 | (char *) "self", NULL | |
27981 | }; | |
27982 | ||
27983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
27984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27986 | { | |
27987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27988 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
27989 | ||
27990 | wxPyEndAllowThreads(__tstate); | |
27991 | if (PyErr_Occurred()) SWIG_fail; | |
27992 | } | |
27993 | { | |
27994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27995 | } | |
27996 | return resultobj; | |
27997 | fail: | |
27998 | return NULL; | |
27999 | } | |
28000 | ||
28001 | ||
28002 | static PyObject * Window_swigregister(PyObject *self, PyObject *args) { | |
28003 | PyObject *obj; | |
28004 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28005 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28006 | Py_INCREF(obj); | |
28007 | return Py_BuildValue((char *)""); | |
28008 | } | |
28009 | static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28010 | PyObject *resultobj; | |
28011 | long arg1 ; | |
28012 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28013 | wxWindow *result; | |
28014 | PyObject * obj0 = 0 ; | |
28015 | PyObject * obj1 = 0 ; | |
28016 | char *kwnames[] = { | |
28017 | (char *) "id",(char *) "parent", NULL | |
28018 | }; | |
28019 | ||
28020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
28021 | arg1 = (long) SWIG_AsLong(obj0); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | if (obj1) { | |
28024 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28026 | } | |
28027 | { | |
28028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28029 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28030 | ||
28031 | wxPyEndAllowThreads(__tstate); | |
28032 | if (PyErr_Occurred()) SWIG_fail; | |
28033 | } | |
28034 | { | |
28035 | resultobj = wxPyMake_wxObject(result); | |
28036 | } | |
28037 | return resultobj; | |
28038 | fail: | |
28039 | return NULL; | |
28040 | } | |
28041 | ||
28042 | ||
28043 | static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28044 | PyObject *resultobj; | |
28045 | wxString *arg1 = 0 ; | |
28046 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28047 | wxWindow *result; | |
28048 | bool temp1 = False ; | |
28049 | PyObject * obj0 = 0 ; | |
28050 | PyObject * obj1 = 0 ; | |
28051 | char *kwnames[] = { | |
28052 | (char *) "name",(char *) "parent", NULL | |
28053 | }; | |
28054 | ||
28055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28056 | { | |
28057 | arg1 = wxString_in_helper(obj0); | |
28058 | if (arg1 == NULL) SWIG_fail; | |
28059 | temp1 = True; | |
28060 | } | |
28061 | if (obj1) { | |
28062 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28064 | } | |
28065 | { | |
28066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28067 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28068 | ||
28069 | wxPyEndAllowThreads(__tstate); | |
28070 | if (PyErr_Occurred()) SWIG_fail; | |
28071 | } | |
28072 | { | |
28073 | resultobj = wxPyMake_wxObject(result); | |
28074 | } | |
28075 | { | |
28076 | if (temp1) | |
28077 | delete arg1; | |
28078 | } | |
28079 | return resultobj; | |
28080 | fail: | |
28081 | { | |
28082 | if (temp1) | |
28083 | delete arg1; | |
28084 | } | |
28085 | return NULL; | |
28086 | } | |
28087 | ||
28088 | ||
28089 | static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28090 | PyObject *resultobj; | |
28091 | wxString *arg1 = 0 ; | |
28092 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28093 | wxWindow *result; | |
28094 | bool temp1 = False ; | |
28095 | PyObject * obj0 = 0 ; | |
28096 | PyObject * obj1 = 0 ; | |
28097 | char *kwnames[] = { | |
28098 | (char *) "label",(char *) "parent", NULL | |
28099 | }; | |
28100 | ||
28101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28102 | { | |
28103 | arg1 = wxString_in_helper(obj0); | |
28104 | if (arg1 == NULL) SWIG_fail; | |
28105 | temp1 = True; | |
28106 | } | |
28107 | if (obj1) { | |
28108 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28110 | } | |
28111 | { | |
28112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28113 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28114 | ||
28115 | wxPyEndAllowThreads(__tstate); | |
28116 | if (PyErr_Occurred()) SWIG_fail; | |
28117 | } | |
28118 | { | |
28119 | resultobj = wxPyMake_wxObject(result); | |
28120 | } | |
28121 | { | |
28122 | if (temp1) | |
28123 | delete arg1; | |
28124 | } | |
28125 | return resultobj; | |
28126 | fail: | |
28127 | { | |
28128 | if (temp1) | |
28129 | delete arg1; | |
28130 | } | |
28131 | return NULL; | |
28132 | } | |
28133 | ||
28134 | ||
28135 | static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28136 | PyObject *resultobj; | |
28137 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28138 | unsigned long arg2 ; | |
28139 | wxWindow *result; | |
28140 | PyObject * obj0 = 0 ; | |
28141 | PyObject * obj1 = 0 ; | |
28142 | char *kwnames[] = { | |
28143 | (char *) "parent",(char *) "_hWnd", NULL | |
28144 | }; | |
28145 | ||
28146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28149 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
28150 | if (PyErr_Occurred()) SWIG_fail; | |
28151 | { | |
28152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28153 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
28154 | ||
28155 | wxPyEndAllowThreads(__tstate); | |
28156 | if (PyErr_Occurred()) SWIG_fail; | |
28157 | } | |
28158 | { | |
28159 | resultobj = wxPyMake_wxObject(result); | |
28160 | } | |
28161 | return resultobj; | |
28162 | fail: | |
28163 | return NULL; | |
28164 | } | |
28165 | ||
28166 | ||
28167 | static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28168 | PyObject *resultobj; | |
28169 | wxValidator *result; | |
28170 | char *kwnames[] = { | |
28171 | NULL | |
28172 | }; | |
28173 | ||
28174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
28175 | { | |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28177 | result = (wxValidator *)new wxValidator(); | |
28178 | ||
28179 | wxPyEndAllowThreads(__tstate); | |
28180 | if (PyErr_Occurred()) SWIG_fail; | |
28181 | } | |
28182 | { | |
28183 | resultobj = wxPyMake_wxObject(result); | |
28184 | } | |
28185 | return resultobj; | |
28186 | fail: | |
28187 | return NULL; | |
28188 | } | |
28189 | ||
28190 | ||
28191 | static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28192 | PyObject *resultobj; | |
28193 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28194 | wxValidator *result; | |
28195 | PyObject * obj0 = 0 ; | |
28196 | char *kwnames[] = { | |
28197 | (char *) "self", NULL | |
28198 | }; | |
28199 | ||
28200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
28201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28203 | { | |
28204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28205 | result = (wxValidator *)(arg1)->Clone(); | |
28206 | ||
28207 | wxPyEndAllowThreads(__tstate); | |
28208 | if (PyErr_Occurred()) SWIG_fail; | |
28209 | } | |
28210 | { | |
28211 | resultobj = wxPyMake_wxObject(result); | |
28212 | } | |
28213 | return resultobj; | |
28214 | fail: | |
28215 | return NULL; | |
28216 | } | |
28217 | ||
28218 | ||
28219 | static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28220 | PyObject *resultobj; | |
28221 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28223 | bool result; | |
28224 | PyObject * obj0 = 0 ; | |
28225 | PyObject * obj1 = 0 ; | |
28226 | char *kwnames[] = { | |
28227 | (char *) "self",(char *) "parent", NULL | |
28228 | }; | |
28229 | ||
28230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
28231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28233 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28235 | { | |
28236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28237 | result = (bool)(arg1)->Validate(arg2); | |
28238 | ||
28239 | wxPyEndAllowThreads(__tstate); | |
28240 | if (PyErr_Occurred()) SWIG_fail; | |
28241 | } | |
28242 | { | |
28243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28244 | } | |
28245 | return resultobj; | |
28246 | fail: | |
28247 | return NULL; | |
28248 | } | |
28249 | ||
28250 | ||
28251 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28252 | PyObject *resultobj; | |
28253 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28254 | bool result; | |
28255 | PyObject * obj0 = 0 ; | |
28256 | char *kwnames[] = { | |
28257 | (char *) "self", NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
28261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28263 | { | |
28264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28265 | result = (bool)(arg1)->TransferToWindow(); | |
28266 | ||
28267 | wxPyEndAllowThreads(__tstate); | |
28268 | if (PyErr_Occurred()) SWIG_fail; | |
28269 | } | |
28270 | { | |
28271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28272 | } | |
28273 | return resultobj; | |
28274 | fail: | |
28275 | return NULL; | |
28276 | } | |
28277 | ||
28278 | ||
28279 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28280 | PyObject *resultobj; | |
28281 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28282 | bool result; | |
28283 | PyObject * obj0 = 0 ; | |
28284 | char *kwnames[] = { | |
28285 | (char *) "self", NULL | |
28286 | }; | |
28287 | ||
28288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
28289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28291 | { | |
28292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28293 | result = (bool)(arg1)->TransferFromWindow(); | |
28294 | ||
28295 | wxPyEndAllowThreads(__tstate); | |
28296 | if (PyErr_Occurred()) SWIG_fail; | |
28297 | } | |
28298 | { | |
28299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28300 | } | |
28301 | return resultobj; | |
28302 | fail: | |
28303 | return NULL; | |
28304 | } | |
28305 | ||
28306 | ||
28307 | static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28308 | PyObject *resultobj; | |
28309 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28310 | wxWindow *result; | |
28311 | PyObject * obj0 = 0 ; | |
28312 | char *kwnames[] = { | |
28313 | (char *) "self", NULL | |
28314 | }; | |
28315 | ||
28316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
28317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28319 | { | |
28320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28321 | result = (wxWindow *)(arg1)->GetWindow(); | |
28322 | ||
28323 | wxPyEndAllowThreads(__tstate); | |
28324 | if (PyErr_Occurred()) SWIG_fail; | |
28325 | } | |
28326 | { | |
28327 | resultobj = wxPyMake_wxObject(result); | |
28328 | } | |
28329 | return resultobj; | |
28330 | fail: | |
28331 | return NULL; | |
28332 | } | |
28333 | ||
28334 | ||
28335 | static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28336 | PyObject *resultobj; | |
28337 | wxValidator *arg1 = (wxValidator *) 0 ; | |
28338 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28339 | PyObject * obj0 = 0 ; | |
28340 | PyObject * obj1 = 0 ; | |
28341 | char *kwnames[] = { | |
28342 | (char *) "self",(char *) "window", NULL | |
28343 | }; | |
28344 | ||
28345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
28346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
28347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28350 | { | |
28351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28352 | (arg1)->SetWindow(arg2); | |
28353 | ||
28354 | wxPyEndAllowThreads(__tstate); | |
28355 | if (PyErr_Occurred()) SWIG_fail; | |
28356 | } | |
28357 | Py_INCREF(Py_None); resultobj = Py_None; | |
28358 | return resultobj; | |
28359 | fail: | |
28360 | return NULL; | |
28361 | } | |
28362 | ||
28363 | ||
28364 | static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28365 | PyObject *resultobj; | |
28366 | bool result; | |
28367 | char *kwnames[] = { | |
28368 | NULL | |
28369 | }; | |
28370 | ||
28371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
28372 | { | |
28373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28374 | result = (bool)wxValidator::IsSilent(); | |
28375 | ||
28376 | wxPyEndAllowThreads(__tstate); | |
28377 | if (PyErr_Occurred()) SWIG_fail; | |
28378 | } | |
28379 | { | |
28380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28381 | } | |
28382 | return resultobj; | |
28383 | fail: | |
28384 | return NULL; | |
28385 | } | |
28386 | ||
28387 | ||
28388 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28389 | PyObject *resultobj; | |
28390 | int arg1 = (int) True ; | |
28391 | PyObject * obj0 = 0 ; | |
28392 | char *kwnames[] = { | |
28393 | (char *) "doIt", NULL | |
28394 | }; | |
28395 | ||
28396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
28397 | if (obj0) { | |
28398 | arg1 = (int) SWIG_AsInt(obj0); | |
28399 | if (PyErr_Occurred()) SWIG_fail; | |
28400 | } | |
28401 | { | |
28402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28403 | wxValidator::SetBellOnError(arg1); | |
28404 | ||
28405 | wxPyEndAllowThreads(__tstate); | |
28406 | if (PyErr_Occurred()) SWIG_fail; | |
28407 | } | |
28408 | Py_INCREF(Py_None); resultobj = Py_None; | |
28409 | return resultobj; | |
28410 | fail: | |
28411 | return NULL; | |
28412 | } | |
28413 | ||
28414 | ||
28415 | static PyObject * Validator_swigregister(PyObject *self, PyObject *args) { | |
28416 | PyObject *obj; | |
28417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28418 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
28419 | Py_INCREF(obj); | |
28420 | return Py_BuildValue((char *)""); | |
28421 | } | |
28422 | static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28423 | PyObject *resultobj; | |
28424 | wxPyValidator *result; | |
28425 | char *kwnames[] = { | |
28426 | NULL | |
28427 | }; | |
28428 | ||
28429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
28430 | { | |
28431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28432 | result = (wxPyValidator *)new wxPyValidator(); | |
28433 | ||
28434 | wxPyEndAllowThreads(__tstate); | |
28435 | if (PyErr_Occurred()) SWIG_fail; | |
28436 | } | |
28437 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | return NULL; | |
28441 | } | |
28442 | ||
28443 | ||
28444 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28445 | PyObject *resultobj; | |
28446 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
28447 | PyObject *arg2 = (PyObject *) 0 ; | |
28448 | PyObject *arg3 = (PyObject *) 0 ; | |
28449 | int arg4 = (int) True ; | |
28450 | PyObject * obj0 = 0 ; | |
28451 | PyObject * obj1 = 0 ; | |
28452 | PyObject * obj2 = 0 ; | |
28453 | PyObject * obj3 = 0 ; | |
28454 | char *kwnames[] = { | |
28455 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
28456 | }; | |
28457 | ||
28458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
28460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28461 | arg2 = obj1; | |
28462 | arg3 = obj2; | |
28463 | if (obj3) { | |
28464 | arg4 = (int) SWIG_AsInt(obj3); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | } | |
28467 | { | |
28468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28469 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
28470 | ||
28471 | wxPyEndAllowThreads(__tstate); | |
28472 | if (PyErr_Occurred()) SWIG_fail; | |
28473 | } | |
28474 | Py_INCREF(Py_None); resultobj = Py_None; | |
28475 | return resultobj; | |
28476 | fail: | |
28477 | return NULL; | |
28478 | } | |
28479 | ||
28480 | ||
28481 | static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) { | |
28482 | PyObject *obj; | |
28483 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28484 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
28485 | Py_INCREF(obj); | |
28486 | return Py_BuildValue((char *)""); | |
28487 | } | |
28488 | static int _wrap_DefaultValidator_set(PyObject *_val) { | |
28489 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); | |
28490 | return 1; | |
28491 | } | |
28492 | ||
28493 | ||
28494 | static PyObject *_wrap_DefaultValidator_get() { | |
28495 | PyObject *pyobj; | |
28496 | ||
28497 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
28498 | return pyobj; | |
28499 | } | |
28500 | ||
28501 | ||
28502 | static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28503 | PyObject *resultobj; | |
28504 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
28505 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
28506 | long arg2 = (long) 0 ; | |
28507 | wxMenu *result; | |
28508 | bool temp1 = False ; | |
28509 | PyObject * obj0 = 0 ; | |
28510 | PyObject * obj1 = 0 ; | |
28511 | char *kwnames[] = { | |
28512 | (char *) "title",(char *) "style", NULL | |
28513 | }; | |
28514 | ||
28515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
28516 | if (obj0) { | |
28517 | { | |
28518 | arg1 = wxString_in_helper(obj0); | |
28519 | if (arg1 == NULL) SWIG_fail; | |
28520 | temp1 = True; | |
28521 | } | |
28522 | } | |
28523 | if (obj1) { | |
28524 | arg2 = (long) SWIG_AsLong(obj1); | |
28525 | if (PyErr_Occurred()) SWIG_fail; | |
28526 | } | |
28527 | { | |
28528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28529 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
28530 | ||
28531 | wxPyEndAllowThreads(__tstate); | |
28532 | if (PyErr_Occurred()) SWIG_fail; | |
28533 | } | |
28534 | { | |
28535 | resultobj = wxPyMake_wxObject(result); | |
28536 | } | |
28537 | { | |
28538 | if (temp1) | |
28539 | delete arg1; | |
28540 | } | |
28541 | return resultobj; | |
28542 | fail: | |
28543 | { | |
28544 | if (temp1) | |
28545 | delete arg1; | |
28546 | } | |
28547 | return NULL; | |
28548 | } | |
28549 | ||
28550 | ||
28551 | static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28552 | PyObject *resultobj; | |
28553 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28554 | int arg2 ; | |
28555 | wxString *arg3 = 0 ; | |
28556 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28557 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28558 | int arg5 = (int) wxITEM_NORMAL ; | |
28559 | wxMenuItem *result; | |
28560 | bool temp3 = False ; | |
28561 | bool temp4 = False ; | |
28562 | PyObject * obj0 = 0 ; | |
28563 | PyObject * obj1 = 0 ; | |
28564 | PyObject * obj2 = 0 ; | |
28565 | PyObject * obj3 = 0 ; | |
28566 | PyObject * obj4 = 0 ; | |
28567 | char *kwnames[] = { | |
28568 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28569 | }; | |
28570 | ||
28571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28574 | arg2 = (int) SWIG_AsInt(obj1); | |
28575 | if (PyErr_Occurred()) SWIG_fail; | |
28576 | { | |
28577 | arg3 = wxString_in_helper(obj2); | |
28578 | if (arg3 == NULL) SWIG_fail; | |
28579 | temp3 = True; | |
28580 | } | |
28581 | if (obj3) { | |
28582 | { | |
28583 | arg4 = wxString_in_helper(obj3); | |
28584 | if (arg4 == NULL) SWIG_fail; | |
28585 | temp4 = True; | |
28586 | } | |
28587 | } | |
28588 | if (obj4) { | |
28589 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
28590 | if (PyErr_Occurred()) SWIG_fail; | |
28591 | } | |
28592 | { | |
28593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28594 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
28595 | ||
28596 | wxPyEndAllowThreads(__tstate); | |
28597 | if (PyErr_Occurred()) SWIG_fail; | |
28598 | } | |
28599 | { | |
28600 | resultobj = wxPyMake_wxObject(result); | |
28601 | } | |
28602 | { | |
28603 | if (temp3) | |
28604 | delete arg3; | |
28605 | } | |
28606 | { | |
28607 | if (temp4) | |
28608 | delete arg4; | |
28609 | } | |
28610 | return resultobj; | |
28611 | fail: | |
28612 | { | |
28613 | if (temp3) | |
28614 | delete arg3; | |
28615 | } | |
28616 | { | |
28617 | if (temp4) | |
28618 | delete arg4; | |
28619 | } | |
28620 | return NULL; | |
28621 | } | |
28622 | ||
28623 | ||
28624 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28625 | PyObject *resultobj; | |
28626 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28627 | wxMenuItem *result; | |
28628 | PyObject * obj0 = 0 ; | |
28629 | char *kwnames[] = { | |
28630 | (char *) "self", NULL | |
28631 | }; | |
28632 | ||
28633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
28634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28636 | { | |
28637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28638 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
28639 | ||
28640 | wxPyEndAllowThreads(__tstate); | |
28641 | if (PyErr_Occurred()) SWIG_fail; | |
28642 | } | |
28643 | { | |
28644 | resultobj = wxPyMake_wxObject(result); | |
28645 | } | |
28646 | return resultobj; | |
28647 | fail: | |
28648 | return NULL; | |
28649 | } | |
28650 | ||
28651 | ||
28652 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28653 | PyObject *resultobj; | |
28654 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28655 | int arg2 ; | |
28656 | wxString *arg3 = 0 ; | |
28657 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28658 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28659 | wxMenuItem *result; | |
28660 | bool temp3 = False ; | |
28661 | bool temp4 = False ; | |
28662 | PyObject * obj0 = 0 ; | |
28663 | PyObject * obj1 = 0 ; | |
28664 | PyObject * obj2 = 0 ; | |
28665 | PyObject * obj3 = 0 ; | |
28666 | char *kwnames[] = { | |
28667 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28668 | }; | |
28669 | ||
28670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28673 | arg2 = (int) SWIG_AsInt(obj1); | |
28674 | if (PyErr_Occurred()) SWIG_fail; | |
28675 | { | |
28676 | arg3 = wxString_in_helper(obj2); | |
28677 | if (arg3 == NULL) SWIG_fail; | |
28678 | temp3 = True; | |
28679 | } | |
28680 | if (obj3) { | |
28681 | { | |
28682 | arg4 = wxString_in_helper(obj3); | |
28683 | if (arg4 == NULL) SWIG_fail; | |
28684 | temp4 = True; | |
28685 | } | |
28686 | } | |
28687 | { | |
28688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28689 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28690 | ||
28691 | wxPyEndAllowThreads(__tstate); | |
28692 | if (PyErr_Occurred()) SWIG_fail; | |
28693 | } | |
28694 | { | |
28695 | resultobj = wxPyMake_wxObject(result); | |
28696 | } | |
28697 | { | |
28698 | if (temp3) | |
28699 | delete arg3; | |
28700 | } | |
28701 | { | |
28702 | if (temp4) | |
28703 | delete arg4; | |
28704 | } | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | { | |
28708 | if (temp3) | |
28709 | delete arg3; | |
28710 | } | |
28711 | { | |
28712 | if (temp4) | |
28713 | delete arg4; | |
28714 | } | |
28715 | return NULL; | |
28716 | } | |
28717 | ||
28718 | ||
28719 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28720 | PyObject *resultobj; | |
28721 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28722 | int arg2 ; | |
28723 | wxString *arg3 = 0 ; | |
28724 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
28725 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28726 | wxMenuItem *result; | |
28727 | bool temp3 = False ; | |
28728 | bool temp4 = False ; | |
28729 | PyObject * obj0 = 0 ; | |
28730 | PyObject * obj1 = 0 ; | |
28731 | PyObject * obj2 = 0 ; | |
28732 | PyObject * obj3 = 0 ; | |
28733 | char *kwnames[] = { | |
28734 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
28735 | }; | |
28736 | ||
28737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28740 | arg2 = (int) SWIG_AsInt(obj1); | |
28741 | if (PyErr_Occurred()) SWIG_fail; | |
28742 | { | |
28743 | arg3 = wxString_in_helper(obj2); | |
28744 | if (arg3 == NULL) SWIG_fail; | |
28745 | temp3 = True; | |
28746 | } | |
28747 | if (obj3) { | |
28748 | { | |
28749 | arg4 = wxString_in_helper(obj3); | |
28750 | if (arg4 == NULL) SWIG_fail; | |
28751 | temp4 = True; | |
28752 | } | |
28753 | } | |
28754 | { | |
28755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28756 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
28757 | ||
28758 | wxPyEndAllowThreads(__tstate); | |
28759 | if (PyErr_Occurred()) SWIG_fail; | |
28760 | } | |
28761 | { | |
28762 | resultobj = wxPyMake_wxObject(result); | |
28763 | } | |
28764 | { | |
28765 | if (temp3) | |
28766 | delete arg3; | |
28767 | } | |
28768 | { | |
28769 | if (temp4) | |
28770 | delete arg4; | |
28771 | } | |
28772 | return resultobj; | |
28773 | fail: | |
28774 | { | |
28775 | if (temp3) | |
28776 | delete arg3; | |
28777 | } | |
28778 | { | |
28779 | if (temp4) | |
28780 | delete arg4; | |
28781 | } | |
28782 | return NULL; | |
28783 | } | |
28784 | ||
28785 | ||
28786 | static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28787 | PyObject *resultobj; | |
28788 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28789 | int arg2 ; | |
28790 | wxString *arg3 = 0 ; | |
28791 | wxMenu *arg4 = (wxMenu *) 0 ; | |
28792 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28793 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28794 | wxMenuItem *result; | |
28795 | bool temp3 = False ; | |
28796 | bool temp5 = False ; | |
28797 | PyObject * obj0 = 0 ; | |
28798 | PyObject * obj1 = 0 ; | |
28799 | PyObject * obj2 = 0 ; | |
28800 | PyObject * obj3 = 0 ; | |
28801 | PyObject * obj4 = 0 ; | |
28802 | char *kwnames[] = { | |
28803 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
28804 | }; | |
28805 | ||
28806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28809 | arg2 = (int) SWIG_AsInt(obj1); | |
28810 | if (PyErr_Occurred()) SWIG_fail; | |
28811 | { | |
28812 | arg3 = wxString_in_helper(obj2); | |
28813 | if (arg3 == NULL) SWIG_fail; | |
28814 | temp3 = True; | |
28815 | } | |
28816 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
28817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28818 | if (obj4) { | |
28819 | { | |
28820 | arg5 = wxString_in_helper(obj4); | |
28821 | if (arg5 == NULL) SWIG_fail; | |
28822 | temp5 = True; | |
28823 | } | |
28824 | } | |
28825 | { | |
28826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28827 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
28828 | ||
28829 | wxPyEndAllowThreads(__tstate); | |
28830 | if (PyErr_Occurred()) SWIG_fail; | |
28831 | } | |
28832 | { | |
28833 | resultobj = wxPyMake_wxObject(result); | |
28834 | } | |
28835 | { | |
28836 | if (temp3) | |
28837 | delete arg3; | |
28838 | } | |
28839 | { | |
28840 | if (temp5) | |
28841 | delete arg5; | |
28842 | } | |
28843 | return resultobj; | |
28844 | fail: | |
28845 | { | |
28846 | if (temp3) | |
28847 | delete arg3; | |
28848 | } | |
28849 | { | |
28850 | if (temp5) | |
28851 | delete arg5; | |
28852 | } | |
28853 | return NULL; | |
28854 | } | |
28855 | ||
28856 | ||
28857 | static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28858 | PyObject *resultobj; | |
28859 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28860 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
28861 | wxMenuItem *result; | |
28862 | PyObject * obj0 = 0 ; | |
28863 | PyObject * obj1 = 0 ; | |
28864 | char *kwnames[] = { | |
28865 | (char *) "self",(char *) "item", NULL | |
28866 | }; | |
28867 | ||
28868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
28869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
28872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28873 | { | |
28874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28875 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
28876 | ||
28877 | wxPyEndAllowThreads(__tstate); | |
28878 | if (PyErr_Occurred()) SWIG_fail; | |
28879 | } | |
28880 | { | |
28881 | resultobj = wxPyMake_wxObject(result); | |
28882 | } | |
28883 | return resultobj; | |
28884 | fail: | |
28885 | return NULL; | |
28886 | } | |
28887 | ||
28888 | ||
28889 | static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28890 | PyObject *resultobj; | |
28891 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28892 | PyObject * obj0 = 0 ; | |
28893 | char *kwnames[] = { | |
28894 | (char *) "self", NULL | |
28895 | }; | |
28896 | ||
28897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
28898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28900 | { | |
28901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28902 | (arg1)->Break(); | |
28903 | ||
28904 | wxPyEndAllowThreads(__tstate); | |
28905 | if (PyErr_Occurred()) SWIG_fail; | |
28906 | } | |
28907 | Py_INCREF(Py_None); resultobj = Py_None; | |
28908 | return resultobj; | |
28909 | fail: | |
28910 | return NULL; | |
28911 | } | |
28912 | ||
28913 | ||
28914 | static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28915 | PyObject *resultobj; | |
28916 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28917 | size_t arg2 ; | |
28918 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
28919 | wxMenuItem *result; | |
28920 | PyObject * obj0 = 0 ; | |
28921 | PyObject * obj1 = 0 ; | |
28922 | PyObject * obj2 = 0 ; | |
28923 | char *kwnames[] = { | |
28924 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
28925 | }; | |
28926 | ||
28927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28930 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28931 | if (PyErr_Occurred()) SWIG_fail; | |
28932 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
28933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28934 | { | |
28935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28936 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
28937 | ||
28938 | wxPyEndAllowThreads(__tstate); | |
28939 | if (PyErr_Occurred()) SWIG_fail; | |
28940 | } | |
28941 | { | |
28942 | resultobj = wxPyMake_wxObject(result); | |
28943 | } | |
28944 | return resultobj; | |
28945 | fail: | |
28946 | return NULL; | |
28947 | } | |
28948 | ||
28949 | ||
28950 | static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28951 | PyObject *resultobj; | |
28952 | wxMenu *arg1 = (wxMenu *) 0 ; | |
28953 | size_t arg2 ; | |
28954 | int arg3 ; | |
28955 | wxString *arg4 = 0 ; | |
28956 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
28957 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
28958 | int arg6 = (int) wxITEM_NORMAL ; | |
28959 | wxMenuItem *result; | |
28960 | bool temp4 = False ; | |
28961 | bool temp5 = False ; | |
28962 | PyObject * obj0 = 0 ; | |
28963 | PyObject * obj1 = 0 ; | |
28964 | PyObject * obj2 = 0 ; | |
28965 | PyObject * obj3 = 0 ; | |
28966 | PyObject * obj4 = 0 ; | |
28967 | PyObject * obj5 = 0 ; | |
28968 | char *kwnames[] = { | |
28969 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
28970 | }; | |
28971 | ||
28972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
28974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28975 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | arg3 = (int) SWIG_AsInt(obj2); | |
28978 | if (PyErr_Occurred()) SWIG_fail; | |
28979 | { | |
28980 | arg4 = wxString_in_helper(obj3); | |
28981 | if (arg4 == NULL) SWIG_fail; | |
28982 | temp4 = True; | |
28983 | } | |
28984 | if (obj4) { | |
28985 | { | |
28986 | arg5 = wxString_in_helper(obj4); | |
28987 | if (arg5 == NULL) SWIG_fail; | |
28988 | temp5 = True; | |
28989 | } | |
28990 | } | |
28991 | if (obj5) { | |
28992 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
28993 | if (PyErr_Occurred()) SWIG_fail; | |
28994 | } | |
28995 | { | |
28996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28997 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
28998 | ||
28999 | wxPyEndAllowThreads(__tstate); | |
29000 | if (PyErr_Occurred()) SWIG_fail; | |
29001 | } | |
29002 | { | |
29003 | resultobj = wxPyMake_wxObject(result); | |
29004 | } | |
29005 | { | |
29006 | if (temp4) | |
29007 | delete arg4; | |
29008 | } | |
29009 | { | |
29010 | if (temp5) | |
29011 | delete arg5; | |
29012 | } | |
29013 | return resultobj; | |
29014 | fail: | |
29015 | { | |
29016 | if (temp4) | |
29017 | delete arg4; | |
29018 | } | |
29019 | { | |
29020 | if (temp5) | |
29021 | delete arg5; | |
29022 | } | |
29023 | return NULL; | |
29024 | } | |
29025 | ||
29026 | ||
29027 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29028 | PyObject *resultobj; | |
29029 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29030 | size_t arg2 ; | |
29031 | wxMenuItem *result; | |
29032 | PyObject * obj0 = 0 ; | |
29033 | PyObject * obj1 = 0 ; | |
29034 | char *kwnames[] = { | |
29035 | (char *) "self",(char *) "pos", NULL | |
29036 | }; | |
29037 | ||
29038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29041 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29042 | if (PyErr_Occurred()) SWIG_fail; | |
29043 | { | |
29044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29045 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29046 | ||
29047 | wxPyEndAllowThreads(__tstate); | |
29048 | if (PyErr_Occurred()) SWIG_fail; | |
29049 | } | |
29050 | { | |
29051 | resultobj = wxPyMake_wxObject(result); | |
29052 | } | |
29053 | return resultobj; | |
29054 | fail: | |
29055 | return NULL; | |
29056 | } | |
29057 | ||
29058 | ||
29059 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29060 | PyObject *resultobj; | |
29061 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29062 | size_t arg2 ; | |
29063 | int arg3 ; | |
29064 | wxString *arg4 = 0 ; | |
29065 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29066 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29067 | wxMenuItem *result; | |
29068 | bool temp4 = False ; | |
29069 | bool temp5 = False ; | |
29070 | PyObject * obj0 = 0 ; | |
29071 | PyObject * obj1 = 0 ; | |
29072 | PyObject * obj2 = 0 ; | |
29073 | PyObject * obj3 = 0 ; | |
29074 | PyObject * obj4 = 0 ; | |
29075 | char *kwnames[] = { | |
29076 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29077 | }; | |
29078 | ||
29079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29082 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
29084 | arg3 = (int) SWIG_AsInt(obj2); | |
29085 | if (PyErr_Occurred()) SWIG_fail; | |
29086 | { | |
29087 | arg4 = wxString_in_helper(obj3); | |
29088 | if (arg4 == NULL) SWIG_fail; | |
29089 | temp4 = True; | |
29090 | } | |
29091 | if (obj4) { | |
29092 | { | |
29093 | arg5 = wxString_in_helper(obj4); | |
29094 | if (arg5 == NULL) SWIG_fail; | |
29095 | temp5 = True; | |
29096 | } | |
29097 | } | |
29098 | { | |
29099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29100 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29101 | ||
29102 | wxPyEndAllowThreads(__tstate); | |
29103 | if (PyErr_Occurred()) SWIG_fail; | |
29104 | } | |
29105 | { | |
29106 | resultobj = wxPyMake_wxObject(result); | |
29107 | } | |
29108 | { | |
29109 | if (temp4) | |
29110 | delete arg4; | |
29111 | } | |
29112 | { | |
29113 | if (temp5) | |
29114 | delete arg5; | |
29115 | } | |
29116 | return resultobj; | |
29117 | fail: | |
29118 | { | |
29119 | if (temp4) | |
29120 | delete arg4; | |
29121 | } | |
29122 | { | |
29123 | if (temp5) | |
29124 | delete arg5; | |
29125 | } | |
29126 | return NULL; | |
29127 | } | |
29128 | ||
29129 | ||
29130 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29131 | PyObject *resultobj; | |
29132 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29133 | size_t arg2 ; | |
29134 | int arg3 ; | |
29135 | wxString *arg4 = 0 ; | |
29136 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29137 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29138 | wxMenuItem *result; | |
29139 | bool temp4 = False ; | |
29140 | bool temp5 = False ; | |
29141 | PyObject * obj0 = 0 ; | |
29142 | PyObject * obj1 = 0 ; | |
29143 | PyObject * obj2 = 0 ; | |
29144 | PyObject * obj3 = 0 ; | |
29145 | PyObject * obj4 = 0 ; | |
29146 | char *kwnames[] = { | |
29147 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29148 | }; | |
29149 | ||
29150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29153 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29154 | if (PyErr_Occurred()) SWIG_fail; | |
29155 | arg3 = (int) SWIG_AsInt(obj2); | |
29156 | if (PyErr_Occurred()) SWIG_fail; | |
29157 | { | |
29158 | arg4 = wxString_in_helper(obj3); | |
29159 | if (arg4 == NULL) SWIG_fail; | |
29160 | temp4 = True; | |
29161 | } | |
29162 | if (obj4) { | |
29163 | { | |
29164 | arg5 = wxString_in_helper(obj4); | |
29165 | if (arg5 == NULL) SWIG_fail; | |
29166 | temp5 = True; | |
29167 | } | |
29168 | } | |
29169 | { | |
29170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29171 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29172 | ||
29173 | wxPyEndAllowThreads(__tstate); | |
29174 | if (PyErr_Occurred()) SWIG_fail; | |
29175 | } | |
29176 | { | |
29177 | resultobj = wxPyMake_wxObject(result); | |
29178 | } | |
29179 | { | |
29180 | if (temp4) | |
29181 | delete arg4; | |
29182 | } | |
29183 | { | |
29184 | if (temp5) | |
29185 | delete arg5; | |
29186 | } | |
29187 | return resultobj; | |
29188 | fail: | |
29189 | { | |
29190 | if (temp4) | |
29191 | delete arg4; | |
29192 | } | |
29193 | { | |
29194 | if (temp5) | |
29195 | delete arg5; | |
29196 | } | |
29197 | return NULL; | |
29198 | } | |
29199 | ||
29200 | ||
29201 | static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29202 | PyObject *resultobj; | |
29203 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29204 | size_t arg2 ; | |
29205 | int arg3 ; | |
29206 | wxString *arg4 = 0 ; | |
29207 | wxMenu *arg5 = (wxMenu *) 0 ; | |
29208 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
29209 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
29210 | wxMenuItem *result; | |
29211 | bool temp4 = False ; | |
29212 | bool temp6 = False ; | |
29213 | PyObject * obj0 = 0 ; | |
29214 | PyObject * obj1 = 0 ; | |
29215 | PyObject * obj2 = 0 ; | |
29216 | PyObject * obj3 = 0 ; | |
29217 | PyObject * obj4 = 0 ; | |
29218 | PyObject * obj5 = 0 ; | |
29219 | char *kwnames[] = { | |
29220 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29221 | }; | |
29222 | ||
29223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29226 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | arg3 = (int) SWIG_AsInt(obj2); | |
29229 | if (PyErr_Occurred()) SWIG_fail; | |
29230 | { | |
29231 | arg4 = wxString_in_helper(obj3); | |
29232 | if (arg4 == NULL) SWIG_fail; | |
29233 | temp4 = True; | |
29234 | } | |
29235 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
29236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29237 | if (obj5) { | |
29238 | { | |
29239 | arg6 = wxString_in_helper(obj5); | |
29240 | if (arg6 == NULL) SWIG_fail; | |
29241 | temp6 = True; | |
29242 | } | |
29243 | } | |
29244 | { | |
29245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29246 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
29247 | ||
29248 | wxPyEndAllowThreads(__tstate); | |
29249 | if (PyErr_Occurred()) SWIG_fail; | |
29250 | } | |
29251 | { | |
29252 | resultobj = wxPyMake_wxObject(result); | |
29253 | } | |
29254 | { | |
29255 | if (temp4) | |
29256 | delete arg4; | |
29257 | } | |
29258 | { | |
29259 | if (temp6) | |
29260 | delete arg6; | |
29261 | } | |
29262 | return resultobj; | |
29263 | fail: | |
29264 | { | |
29265 | if (temp4) | |
29266 | delete arg4; | |
29267 | } | |
29268 | { | |
29269 | if (temp6) | |
29270 | delete arg6; | |
29271 | } | |
29272 | return NULL; | |
29273 | } | |
29274 | ||
29275 | ||
29276 | static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29277 | PyObject *resultobj; | |
29278 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29279 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29280 | wxMenuItem *result; | |
29281 | PyObject * obj0 = 0 ; | |
29282 | PyObject * obj1 = 0 ; | |
29283 | char *kwnames[] = { | |
29284 | (char *) "self",(char *) "item", NULL | |
29285 | }; | |
29286 | ||
29287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
29288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29292 | { | |
29293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29294 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
29295 | ||
29296 | wxPyEndAllowThreads(__tstate); | |
29297 | if (PyErr_Occurred()) SWIG_fail; | |
29298 | } | |
29299 | { | |
29300 | resultobj = wxPyMake_wxObject(result); | |
29301 | } | |
29302 | return resultobj; | |
29303 | fail: | |
29304 | return NULL; | |
29305 | } | |
29306 | ||
29307 | ||
29308 | static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29309 | PyObject *resultobj; | |
29310 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29311 | int arg2 ; | |
29312 | wxString *arg3 = 0 ; | |
29313 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29314 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29315 | int arg5 = (int) wxITEM_NORMAL ; | |
29316 | wxMenuItem *result; | |
29317 | bool temp3 = False ; | |
29318 | bool temp4 = False ; | |
29319 | PyObject * obj0 = 0 ; | |
29320 | PyObject * obj1 = 0 ; | |
29321 | PyObject * obj2 = 0 ; | |
29322 | PyObject * obj3 = 0 ; | |
29323 | PyObject * obj4 = 0 ; | |
29324 | char *kwnames[] = { | |
29325 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29326 | }; | |
29327 | ||
29328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29331 | arg2 = (int) SWIG_AsInt(obj1); | |
29332 | if (PyErr_Occurred()) SWIG_fail; | |
29333 | { | |
29334 | arg3 = wxString_in_helper(obj2); | |
29335 | if (arg3 == NULL) SWIG_fail; | |
29336 | temp3 = True; | |
29337 | } | |
29338 | if (obj3) { | |
29339 | { | |
29340 | arg4 = wxString_in_helper(obj3); | |
29341 | if (arg4 == NULL) SWIG_fail; | |
29342 | temp4 = True; | |
29343 | } | |
29344 | } | |
29345 | if (obj4) { | |
29346 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
29347 | if (PyErr_Occurred()) SWIG_fail; | |
29348 | } | |
29349 | { | |
29350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29351 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29352 | ||
29353 | wxPyEndAllowThreads(__tstate); | |
29354 | if (PyErr_Occurred()) SWIG_fail; | |
29355 | } | |
29356 | { | |
29357 | resultobj = wxPyMake_wxObject(result); | |
29358 | } | |
29359 | { | |
29360 | if (temp3) | |
29361 | delete arg3; | |
29362 | } | |
29363 | { | |
29364 | if (temp4) | |
29365 | delete arg4; | |
29366 | } | |
29367 | return resultobj; | |
29368 | fail: | |
29369 | { | |
29370 | if (temp3) | |
29371 | delete arg3; | |
29372 | } | |
29373 | { | |
29374 | if (temp4) | |
29375 | delete arg4; | |
29376 | } | |
29377 | return NULL; | |
29378 | } | |
29379 | ||
29380 | ||
29381 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29382 | PyObject *resultobj; | |
29383 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29384 | wxMenuItem *result; | |
29385 | PyObject * obj0 = 0 ; | |
29386 | char *kwnames[] = { | |
29387 | (char *) "self", NULL | |
29388 | }; | |
29389 | ||
29390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
29391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29393 | { | |
29394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29395 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
29396 | ||
29397 | wxPyEndAllowThreads(__tstate); | |
29398 | if (PyErr_Occurred()) SWIG_fail; | |
29399 | } | |
29400 | { | |
29401 | resultobj = wxPyMake_wxObject(result); | |
29402 | } | |
29403 | return resultobj; | |
29404 | fail: | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
29409 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29410 | PyObject *resultobj; | |
29411 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29412 | int arg2 ; | |
29413 | wxString *arg3 = 0 ; | |
29414 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29415 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29416 | wxMenuItem *result; | |
29417 | bool temp3 = False ; | |
29418 | bool temp4 = False ; | |
29419 | PyObject * obj0 = 0 ; | |
29420 | PyObject * obj1 = 0 ; | |
29421 | PyObject * obj2 = 0 ; | |
29422 | PyObject * obj3 = 0 ; | |
29423 | char *kwnames[] = { | |
29424 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29425 | }; | |
29426 | ||
29427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29430 | arg2 = (int) SWIG_AsInt(obj1); | |
29431 | if (PyErr_Occurred()) SWIG_fail; | |
29432 | { | |
29433 | arg3 = wxString_in_helper(obj2); | |
29434 | if (arg3 == NULL) SWIG_fail; | |
29435 | temp3 = True; | |
29436 | } | |
29437 | if (obj3) { | |
29438 | { | |
29439 | arg4 = wxString_in_helper(obj3); | |
29440 | if (arg4 == NULL) SWIG_fail; | |
29441 | temp4 = True; | |
29442 | } | |
29443 | } | |
29444 | { | |
29445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29446 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29447 | ||
29448 | wxPyEndAllowThreads(__tstate); | |
29449 | if (PyErr_Occurred()) SWIG_fail; | |
29450 | } | |
29451 | { | |
29452 | resultobj = wxPyMake_wxObject(result); | |
29453 | } | |
29454 | { | |
29455 | if (temp3) | |
29456 | delete arg3; | |
29457 | } | |
29458 | { | |
29459 | if (temp4) | |
29460 | delete arg4; | |
29461 | } | |
29462 | return resultobj; | |
29463 | fail: | |
29464 | { | |
29465 | if (temp3) | |
29466 | delete arg3; | |
29467 | } | |
29468 | { | |
29469 | if (temp4) | |
29470 | delete arg4; | |
29471 | } | |
29472 | return NULL; | |
29473 | } | |
29474 | ||
29475 | ||
29476 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29477 | PyObject *resultobj; | |
29478 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29479 | int arg2 ; | |
29480 | wxString *arg3 = 0 ; | |
29481 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29482 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29483 | wxMenuItem *result; | |
29484 | bool temp3 = False ; | |
29485 | bool temp4 = False ; | |
29486 | PyObject * obj0 = 0 ; | |
29487 | PyObject * obj1 = 0 ; | |
29488 | PyObject * obj2 = 0 ; | |
29489 | PyObject * obj3 = 0 ; | |
29490 | char *kwnames[] = { | |
29491 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29492 | }; | |
29493 | ||
29494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29497 | arg2 = (int) SWIG_AsInt(obj1); | |
29498 | if (PyErr_Occurred()) SWIG_fail; | |
29499 | { | |
29500 | arg3 = wxString_in_helper(obj2); | |
29501 | if (arg3 == NULL) SWIG_fail; | |
29502 | temp3 = True; | |
29503 | } | |
29504 | if (obj3) { | |
29505 | { | |
29506 | arg4 = wxString_in_helper(obj3); | |
29507 | if (arg4 == NULL) SWIG_fail; | |
29508 | temp4 = True; | |
29509 | } | |
29510 | } | |
29511 | { | |
29512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29513 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29514 | ||
29515 | wxPyEndAllowThreads(__tstate); | |
29516 | if (PyErr_Occurred()) SWIG_fail; | |
29517 | } | |
29518 | { | |
29519 | resultobj = wxPyMake_wxObject(result); | |
29520 | } | |
29521 | { | |
29522 | if (temp3) | |
29523 | delete arg3; | |
29524 | } | |
29525 | { | |
29526 | if (temp4) | |
29527 | delete arg4; | |
29528 | } | |
29529 | return resultobj; | |
29530 | fail: | |
29531 | { | |
29532 | if (temp3) | |
29533 | delete arg3; | |
29534 | } | |
29535 | { | |
29536 | if (temp4) | |
29537 | delete arg4; | |
29538 | } | |
29539 | return NULL; | |
29540 | } | |
29541 | ||
29542 | ||
29543 | static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29544 | PyObject *resultobj; | |
29545 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29546 | int arg2 ; | |
29547 | wxString *arg3 = 0 ; | |
29548 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29549 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29550 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29551 | wxMenuItem *result; | |
29552 | bool temp3 = False ; | |
29553 | bool temp5 = False ; | |
29554 | PyObject * obj0 = 0 ; | |
29555 | PyObject * obj1 = 0 ; | |
29556 | PyObject * obj2 = 0 ; | |
29557 | PyObject * obj3 = 0 ; | |
29558 | PyObject * obj4 = 0 ; | |
29559 | char *kwnames[] = { | |
29560 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29561 | }; | |
29562 | ||
29563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29566 | arg2 = (int) SWIG_AsInt(obj1); | |
29567 | if (PyErr_Occurred()) SWIG_fail; | |
29568 | { | |
29569 | arg3 = wxString_in_helper(obj2); | |
29570 | if (arg3 == NULL) SWIG_fail; | |
29571 | temp3 = True; | |
29572 | } | |
29573 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29575 | if (obj4) { | |
29576 | { | |
29577 | arg5 = wxString_in_helper(obj4); | |
29578 | if (arg5 == NULL) SWIG_fail; | |
29579 | temp5 = True; | |
29580 | } | |
29581 | } | |
29582 | { | |
29583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29584 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29585 | ||
29586 | wxPyEndAllowThreads(__tstate); | |
29587 | if (PyErr_Occurred()) SWIG_fail; | |
29588 | } | |
29589 | { | |
29590 | resultobj = wxPyMake_wxObject(result); | |
29591 | } | |
29592 | { | |
29593 | if (temp3) | |
29594 | delete arg3; | |
29595 | } | |
29596 | { | |
29597 | if (temp5) | |
29598 | delete arg5; | |
29599 | } | |
29600 | return resultobj; | |
29601 | fail: | |
29602 | { | |
29603 | if (temp3) | |
29604 | delete arg3; | |
29605 | } | |
29606 | { | |
29607 | if (temp5) | |
29608 | delete arg5; | |
29609 | } | |
29610 | return NULL; | |
29611 | } | |
29612 | ||
29613 | ||
29614 | static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29615 | PyObject *resultobj; | |
29616 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29617 | int arg2 ; | |
29618 | wxMenuItem *result; | |
29619 | PyObject * obj0 = 0 ; | |
29620 | PyObject * obj1 = 0 ; | |
29621 | char *kwnames[] = { | |
29622 | (char *) "self",(char *) "id", NULL | |
29623 | }; | |
29624 | ||
29625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
29626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29628 | arg2 = (int) SWIG_AsInt(obj1); | |
29629 | if (PyErr_Occurred()) SWIG_fail; | |
29630 | { | |
29631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29632 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29633 | ||
29634 | wxPyEndAllowThreads(__tstate); | |
29635 | if (PyErr_Occurred()) SWIG_fail; | |
29636 | } | |
29637 | { | |
29638 | resultobj = wxPyMake_wxObject(result); | |
29639 | } | |
29640 | return resultobj; | |
29641 | fail: | |
29642 | return NULL; | |
29643 | } | |
29644 | ||
29645 | ||
29646 | static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29647 | PyObject *resultobj; | |
29648 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29649 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29650 | wxMenuItem *result; | |
29651 | PyObject * obj0 = 0 ; | |
29652 | PyObject * obj1 = 0 ; | |
29653 | char *kwnames[] = { | |
29654 | (char *) "self",(char *) "item", NULL | |
29655 | }; | |
29656 | ||
29657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
29658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29662 | { | |
29663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29664 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
29665 | ||
29666 | wxPyEndAllowThreads(__tstate); | |
29667 | if (PyErr_Occurred()) SWIG_fail; | |
29668 | } | |
29669 | { | |
29670 | resultobj = wxPyMake_wxObject(result); | |
29671 | } | |
29672 | return resultobj; | |
29673 | fail: | |
29674 | return NULL; | |
29675 | } | |
29676 | ||
29677 | ||
29678 | static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29679 | PyObject *resultobj; | |
29680 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29681 | int arg2 ; | |
29682 | bool result; | |
29683 | PyObject * obj0 = 0 ; | |
29684 | PyObject * obj1 = 0 ; | |
29685 | char *kwnames[] = { | |
29686 | (char *) "self",(char *) "id", NULL | |
29687 | }; | |
29688 | ||
29689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
29690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29692 | arg2 = (int) SWIG_AsInt(obj1); | |
29693 | if (PyErr_Occurred()) SWIG_fail; | |
29694 | { | |
29695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29696 | result = (bool)(arg1)->Delete(arg2); | |
29697 | ||
29698 | wxPyEndAllowThreads(__tstate); | |
29699 | if (PyErr_Occurred()) SWIG_fail; | |
29700 | } | |
29701 | { | |
29702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29703 | } | |
29704 | return resultobj; | |
29705 | fail: | |
29706 | return NULL; | |
29707 | } | |
29708 | ||
29709 | ||
29710 | static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29711 | PyObject *resultobj; | |
29712 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29713 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29714 | bool result; | |
29715 | PyObject * obj0 = 0 ; | |
29716 | PyObject * obj1 = 0 ; | |
29717 | char *kwnames[] = { | |
29718 | (char *) "self",(char *) "item", NULL | |
29719 | }; | |
29720 | ||
29721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
29722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29726 | { | |
29727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29728 | result = (bool)(arg1)->Delete(arg2); | |
29729 | ||
29730 | wxPyEndAllowThreads(__tstate); | |
29731 | if (PyErr_Occurred()) SWIG_fail; | |
29732 | } | |
29733 | { | |
29734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29735 | } | |
29736 | return resultobj; | |
29737 | fail: | |
29738 | return NULL; | |
29739 | } | |
29740 | ||
29741 | ||
29742 | static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29743 | PyObject *resultobj; | |
29744 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29745 | PyObject * obj0 = 0 ; | |
29746 | char *kwnames[] = { | |
29747 | (char *) "self", NULL | |
29748 | }; | |
29749 | ||
29750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
29751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29753 | { | |
29754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29755 | wxMenu_Destroy(arg1); | |
29756 | ||
29757 | wxPyEndAllowThreads(__tstate); | |
29758 | if (PyErr_Occurred()) SWIG_fail; | |
29759 | } | |
29760 | Py_INCREF(Py_None); resultobj = Py_None; | |
29761 | return resultobj; | |
29762 | fail: | |
29763 | return NULL; | |
29764 | } | |
29765 | ||
29766 | ||
29767 | static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29768 | PyObject *resultobj; | |
29769 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29770 | int arg2 ; | |
29771 | bool result; | |
29772 | PyObject * obj0 = 0 ; | |
29773 | PyObject * obj1 = 0 ; | |
29774 | char *kwnames[] = { | |
29775 | (char *) "self",(char *) "id", NULL | |
29776 | }; | |
29777 | ||
29778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
29779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29781 | arg2 = (int) SWIG_AsInt(obj1); | |
29782 | if (PyErr_Occurred()) SWIG_fail; | |
29783 | { | |
29784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29785 | result = (bool)(arg1)->Destroy(arg2); | |
29786 | ||
29787 | wxPyEndAllowThreads(__tstate); | |
29788 | if (PyErr_Occurred()) SWIG_fail; | |
29789 | } | |
29790 | { | |
29791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29792 | } | |
29793 | return resultobj; | |
29794 | fail: | |
29795 | return NULL; | |
29796 | } | |
29797 | ||
29798 | ||
29799 | static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29800 | PyObject *resultobj; | |
29801 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29802 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29803 | bool result; | |
29804 | PyObject * obj0 = 0 ; | |
29805 | PyObject * obj1 = 0 ; | |
29806 | char *kwnames[] = { | |
29807 | (char *) "self",(char *) "item", NULL | |
29808 | }; | |
29809 | ||
29810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
29811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29815 | { | |
29816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29817 | result = (bool)(arg1)->Destroy(arg2); | |
29818 | ||
29819 | wxPyEndAllowThreads(__tstate); | |
29820 | if (PyErr_Occurred()) SWIG_fail; | |
29821 | } | |
29822 | { | |
29823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29824 | } | |
29825 | return resultobj; | |
29826 | fail: | |
29827 | return NULL; | |
29828 | } | |
29829 | ||
29830 | ||
29831 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29832 | PyObject *resultobj; | |
29833 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29834 | size_t result; | |
29835 | PyObject * obj0 = 0 ; | |
29836 | char *kwnames[] = { | |
29837 | (char *) "self", NULL | |
29838 | }; | |
29839 | ||
29840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
29841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29843 | { | |
29844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29845 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
29846 | ||
29847 | wxPyEndAllowThreads(__tstate); | |
29848 | if (PyErr_Occurred()) SWIG_fail; | |
29849 | } | |
29850 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
29851 | return resultobj; | |
29852 | fail: | |
29853 | return NULL; | |
29854 | } | |
29855 | ||
29856 | ||
29857 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29858 | PyObject *resultobj; | |
29859 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29860 | PyObject *result; | |
29861 | PyObject * obj0 = 0 ; | |
29862 | char *kwnames[] = { | |
29863 | (char *) "self", NULL | |
29864 | }; | |
29865 | ||
29866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
29867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29869 | { | |
29870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29871 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
29872 | ||
29873 | wxPyEndAllowThreads(__tstate); | |
29874 | if (PyErr_Occurred()) SWIG_fail; | |
29875 | } | |
29876 | resultobj = result; | |
29877 | return resultobj; | |
29878 | fail: | |
29879 | return NULL; | |
29880 | } | |
29881 | ||
29882 | ||
29883 | static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29884 | PyObject *resultobj; | |
29885 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29886 | wxString *arg2 = 0 ; | |
29887 | int result; | |
29888 | bool temp2 = False ; | |
29889 | PyObject * obj0 = 0 ; | |
29890 | PyObject * obj1 = 0 ; | |
29891 | char *kwnames[] = { | |
29892 | (char *) "self",(char *) "item", NULL | |
29893 | }; | |
29894 | ||
29895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
29896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29898 | { | |
29899 | arg2 = wxString_in_helper(obj1); | |
29900 | if (arg2 == NULL) SWIG_fail; | |
29901 | temp2 = True; | |
29902 | } | |
29903 | { | |
29904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29905 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
29906 | ||
29907 | wxPyEndAllowThreads(__tstate); | |
29908 | if (PyErr_Occurred()) SWIG_fail; | |
29909 | } | |
29910 | resultobj = SWIG_FromInt((int)result); | |
29911 | { | |
29912 | if (temp2) | |
29913 | delete arg2; | |
29914 | } | |
29915 | return resultobj; | |
29916 | fail: | |
29917 | { | |
29918 | if (temp2) | |
29919 | delete arg2; | |
29920 | } | |
29921 | return NULL; | |
29922 | } | |
29923 | ||
29924 | ||
29925 | static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29926 | PyObject *resultobj; | |
29927 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29928 | int arg2 ; | |
29929 | wxMenuItem *result; | |
29930 | PyObject * obj0 = 0 ; | |
29931 | PyObject * obj1 = 0 ; | |
29932 | char *kwnames[] = { | |
29933 | (char *) "self",(char *) "id", NULL | |
29934 | }; | |
29935 | ||
29936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
29937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29939 | arg2 = (int) SWIG_AsInt(obj1); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | { | |
29942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29943 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
29944 | ||
29945 | wxPyEndAllowThreads(__tstate); | |
29946 | if (PyErr_Occurred()) SWIG_fail; | |
29947 | } | |
29948 | { | |
29949 | resultobj = wxPyMake_wxObject(result); | |
29950 | } | |
29951 | return resultobj; | |
29952 | fail: | |
29953 | return NULL; | |
29954 | } | |
29955 | ||
29956 | ||
29957 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29958 | PyObject *resultobj; | |
29959 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29960 | size_t arg2 ; | |
29961 | wxMenuItem *result; | |
29962 | PyObject * obj0 = 0 ; | |
29963 | PyObject * obj1 = 0 ; | |
29964 | char *kwnames[] = { | |
29965 | (char *) "self",(char *) "position", NULL | |
29966 | }; | |
29967 | ||
29968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
29969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29971 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
29972 | if (PyErr_Occurred()) SWIG_fail; | |
29973 | { | |
29974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29975 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
29976 | ||
29977 | wxPyEndAllowThreads(__tstate); | |
29978 | if (PyErr_Occurred()) SWIG_fail; | |
29979 | } | |
29980 | { | |
29981 | resultobj = wxPyMake_wxObject(result); | |
29982 | } | |
29983 | return resultobj; | |
29984 | fail: | |
29985 | return NULL; | |
29986 | } | |
29987 | ||
29988 | ||
29989 | static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29990 | PyObject *resultobj; | |
29991 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29992 | int arg2 ; | |
29993 | bool arg3 ; | |
29994 | PyObject * obj0 = 0 ; | |
29995 | PyObject * obj1 = 0 ; | |
29996 | PyObject * obj2 = 0 ; | |
29997 | char *kwnames[] = { | |
29998 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
29999 | }; | |
30000 | ||
30001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30004 | arg2 = (int) SWIG_AsInt(obj1); | |
30005 | if (PyErr_Occurred()) SWIG_fail; | |
30006 | arg3 = (bool) SWIG_AsBool(obj2); | |
30007 | if (PyErr_Occurred()) SWIG_fail; | |
30008 | { | |
30009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30010 | (arg1)->Enable(arg2,arg3); | |
30011 | ||
30012 | wxPyEndAllowThreads(__tstate); | |
30013 | if (PyErr_Occurred()) SWIG_fail; | |
30014 | } | |
30015 | Py_INCREF(Py_None); resultobj = Py_None; | |
30016 | return resultobj; | |
30017 | fail: | |
30018 | return NULL; | |
30019 | } | |
30020 | ||
30021 | ||
30022 | static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30023 | PyObject *resultobj; | |
30024 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30025 | int arg2 ; | |
30026 | bool result; | |
30027 | PyObject * obj0 = 0 ; | |
30028 | PyObject * obj1 = 0 ; | |
30029 | char *kwnames[] = { | |
30030 | (char *) "self",(char *) "id", NULL | |
30031 | }; | |
30032 | ||
30033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30036 | arg2 = (int) SWIG_AsInt(obj1); | |
30037 | if (PyErr_Occurred()) SWIG_fail; | |
30038 | { | |
30039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30040 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30041 | ||
30042 | wxPyEndAllowThreads(__tstate); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
30045 | { | |
30046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30047 | } | |
30048 | return resultobj; | |
30049 | fail: | |
30050 | return NULL; | |
30051 | } | |
30052 | ||
30053 | ||
30054 | static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30055 | PyObject *resultobj; | |
30056 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30057 | int arg2 ; | |
30058 | bool arg3 ; | |
30059 | PyObject * obj0 = 0 ; | |
30060 | PyObject * obj1 = 0 ; | |
30061 | PyObject * obj2 = 0 ; | |
30062 | char *kwnames[] = { | |
30063 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30064 | }; | |
30065 | ||
30066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30069 | arg2 = (int) SWIG_AsInt(obj1); | |
30070 | if (PyErr_Occurred()) SWIG_fail; | |
30071 | arg3 = (bool) SWIG_AsBool(obj2); | |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
30073 | { | |
30074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30075 | (arg1)->Check(arg2,arg3); | |
30076 | ||
30077 | wxPyEndAllowThreads(__tstate); | |
30078 | if (PyErr_Occurred()) SWIG_fail; | |
30079 | } | |
30080 | Py_INCREF(Py_None); resultobj = Py_None; | |
30081 | return resultobj; | |
30082 | fail: | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
30087 | static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30088 | PyObject *resultobj; | |
30089 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30090 | int arg2 ; | |
30091 | bool result; | |
30092 | PyObject * obj0 = 0 ; | |
30093 | PyObject * obj1 = 0 ; | |
30094 | char *kwnames[] = { | |
30095 | (char *) "self",(char *) "id", NULL | |
30096 | }; | |
30097 | ||
30098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30101 | arg2 = (int) SWIG_AsInt(obj1); | |
30102 | if (PyErr_Occurred()) SWIG_fail; | |
30103 | { | |
30104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30105 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30106 | ||
30107 | wxPyEndAllowThreads(__tstate); | |
30108 | if (PyErr_Occurred()) SWIG_fail; | |
30109 | } | |
30110 | { | |
30111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30112 | } | |
30113 | return resultobj; | |
30114 | fail: | |
30115 | return NULL; | |
30116 | } | |
30117 | ||
30118 | ||
30119 | static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30120 | PyObject *resultobj; | |
30121 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30122 | int arg2 ; | |
30123 | wxString *arg3 = 0 ; | |
30124 | bool temp3 = False ; | |
30125 | PyObject * obj0 = 0 ; | |
30126 | PyObject * obj1 = 0 ; | |
30127 | PyObject * obj2 = 0 ; | |
30128 | char *kwnames[] = { | |
30129 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30130 | }; | |
30131 | ||
30132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30135 | arg2 = (int) SWIG_AsInt(obj1); | |
30136 | if (PyErr_Occurred()) SWIG_fail; | |
30137 | { | |
30138 | arg3 = wxString_in_helper(obj2); | |
30139 | if (arg3 == NULL) SWIG_fail; | |
30140 | temp3 = True; | |
30141 | } | |
30142 | { | |
30143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30144 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30145 | ||
30146 | wxPyEndAllowThreads(__tstate); | |
30147 | if (PyErr_Occurred()) SWIG_fail; | |
30148 | } | |
30149 | Py_INCREF(Py_None); resultobj = Py_None; | |
30150 | { | |
30151 | if (temp3) | |
30152 | delete arg3; | |
30153 | } | |
30154 | return resultobj; | |
30155 | fail: | |
30156 | { | |
30157 | if (temp3) | |
30158 | delete arg3; | |
30159 | } | |
30160 | return NULL; | |
30161 | } | |
30162 | ||
30163 | ||
30164 | static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30165 | PyObject *resultobj; | |
30166 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30167 | int arg2 ; | |
30168 | wxString result; | |
30169 | PyObject * obj0 = 0 ; | |
30170 | PyObject * obj1 = 0 ; | |
30171 | char *kwnames[] = { | |
30172 | (char *) "self",(char *) "id", NULL | |
30173 | }; | |
30174 | ||
30175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
30176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30178 | arg2 = (int) SWIG_AsInt(obj1); | |
30179 | if (PyErr_Occurred()) SWIG_fail; | |
30180 | { | |
30181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30182 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
30183 | ||
30184 | wxPyEndAllowThreads(__tstate); | |
30185 | if (PyErr_Occurred()) SWIG_fail; | |
30186 | } | |
30187 | { | |
30188 | #if wxUSE_UNICODE | |
30189 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30190 | #else | |
30191 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30192 | #endif | |
30193 | } | |
30194 | return resultobj; | |
30195 | fail: | |
30196 | return NULL; | |
30197 | } | |
30198 | ||
30199 | ||
30200 | static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30201 | PyObject *resultobj; | |
30202 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30203 | int arg2 ; | |
30204 | wxString *arg3 = 0 ; | |
30205 | bool temp3 = False ; | |
30206 | PyObject * obj0 = 0 ; | |
30207 | PyObject * obj1 = 0 ; | |
30208 | PyObject * obj2 = 0 ; | |
30209 | char *kwnames[] = { | |
30210 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
30211 | }; | |
30212 | ||
30213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30216 | arg2 = (int) SWIG_AsInt(obj1); | |
30217 | if (PyErr_Occurred()) SWIG_fail; | |
30218 | { | |
30219 | arg3 = wxString_in_helper(obj2); | |
30220 | if (arg3 == NULL) SWIG_fail; | |
30221 | temp3 = True; | |
30222 | } | |
30223 | { | |
30224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30225 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
30226 | ||
30227 | wxPyEndAllowThreads(__tstate); | |
30228 | if (PyErr_Occurred()) SWIG_fail; | |
30229 | } | |
30230 | Py_INCREF(Py_None); resultobj = Py_None; | |
30231 | { | |
30232 | if (temp3) | |
30233 | delete arg3; | |
30234 | } | |
30235 | return resultobj; | |
30236 | fail: | |
30237 | { | |
30238 | if (temp3) | |
30239 | delete arg3; | |
30240 | } | |
30241 | return NULL; | |
30242 | } | |
30243 | ||
30244 | ||
30245 | static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30246 | PyObject *resultobj; | |
30247 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30248 | int arg2 ; | |
30249 | wxString result; | |
30250 | PyObject * obj0 = 0 ; | |
30251 | PyObject * obj1 = 0 ; | |
30252 | char *kwnames[] = { | |
30253 | (char *) "self",(char *) "id", NULL | |
30254 | }; | |
30255 | ||
30256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
30257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30259 | arg2 = (int) SWIG_AsInt(obj1); | |
30260 | if (PyErr_Occurred()) SWIG_fail; | |
30261 | { | |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30263 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
30264 | ||
30265 | wxPyEndAllowThreads(__tstate); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
30268 | { | |
30269 | #if wxUSE_UNICODE | |
30270 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30271 | #else | |
30272 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30273 | #endif | |
30274 | } | |
30275 | return resultobj; | |
30276 | fail: | |
30277 | return NULL; | |
30278 | } | |
30279 | ||
30280 | ||
30281 | static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30282 | PyObject *resultobj; | |
30283 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30284 | wxString *arg2 = 0 ; | |
30285 | bool temp2 = False ; | |
30286 | PyObject * obj0 = 0 ; | |
30287 | PyObject * obj1 = 0 ; | |
30288 | char *kwnames[] = { | |
30289 | (char *) "self",(char *) "title", NULL | |
30290 | }; | |
30291 | ||
30292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
30293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30295 | { | |
30296 | arg2 = wxString_in_helper(obj1); | |
30297 | if (arg2 == NULL) SWIG_fail; | |
30298 | temp2 = True; | |
30299 | } | |
30300 | { | |
30301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30302 | (arg1)->SetTitle((wxString const &)*arg2); | |
30303 | ||
30304 | wxPyEndAllowThreads(__tstate); | |
30305 | if (PyErr_Occurred()) SWIG_fail; | |
30306 | } | |
30307 | Py_INCREF(Py_None); resultobj = Py_None; | |
30308 | { | |
30309 | if (temp2) | |
30310 | delete arg2; | |
30311 | } | |
30312 | return resultobj; | |
30313 | fail: | |
30314 | { | |
30315 | if (temp2) | |
30316 | delete arg2; | |
30317 | } | |
30318 | return NULL; | |
30319 | } | |
30320 | ||
30321 | ||
30322 | static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30323 | PyObject *resultobj; | |
30324 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30325 | wxString result; | |
30326 | PyObject * obj0 = 0 ; | |
30327 | char *kwnames[] = { | |
30328 | (char *) "self", NULL | |
30329 | }; | |
30330 | ||
30331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
30332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30334 | { | |
30335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30336 | result = ((wxMenu const *)arg1)->GetTitle(); | |
30337 | ||
30338 | wxPyEndAllowThreads(__tstate); | |
30339 | if (PyErr_Occurred()) SWIG_fail; | |
30340 | } | |
30341 | { | |
30342 | #if wxUSE_UNICODE | |
30343 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30344 | #else | |
30345 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30346 | #endif | |
30347 | } | |
30348 | return resultobj; | |
30349 | fail: | |
30350 | return NULL; | |
30351 | } | |
30352 | ||
30353 | ||
30354 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30355 | PyObject *resultobj; | |
30356 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30357 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
30358 | PyObject * obj0 = 0 ; | |
30359 | PyObject * obj1 = 0 ; | |
30360 | char *kwnames[] = { | |
30361 | (char *) "self",(char *) "handler", NULL | |
30362 | }; | |
30363 | ||
30364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
30365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30369 | { | |
30370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30371 | (arg1)->SetEventHandler(arg2); | |
30372 | ||
30373 | wxPyEndAllowThreads(__tstate); | |
30374 | if (PyErr_Occurred()) SWIG_fail; | |
30375 | } | |
30376 | Py_INCREF(Py_None); resultobj = Py_None; | |
30377 | return resultobj; | |
30378 | fail: | |
30379 | return NULL; | |
30380 | } | |
30381 | ||
30382 | ||
30383 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30384 | PyObject *resultobj; | |
30385 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30386 | wxEvtHandler *result; | |
30387 | PyObject * obj0 = 0 ; | |
30388 | char *kwnames[] = { | |
30389 | (char *) "self", NULL | |
30390 | }; | |
30391 | ||
30392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
30393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30395 | { | |
30396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30397 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
30398 | ||
30399 | wxPyEndAllowThreads(__tstate); | |
30400 | if (PyErr_Occurred()) SWIG_fail; | |
30401 | } | |
30402 | { | |
30403 | resultobj = wxPyMake_wxObject(result); | |
30404 | } | |
30405 | return resultobj; | |
30406 | fail: | |
30407 | return NULL; | |
30408 | } | |
30409 | ||
30410 | ||
30411 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30412 | PyObject *resultobj; | |
30413 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30414 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30415 | PyObject * obj0 = 0 ; | |
30416 | PyObject * obj1 = 0 ; | |
30417 | char *kwnames[] = { | |
30418 | (char *) "self",(char *) "win", NULL | |
30419 | }; | |
30420 | ||
30421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
30422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30426 | { | |
30427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30428 | (arg1)->SetInvokingWindow(arg2); | |
30429 | ||
30430 | wxPyEndAllowThreads(__tstate); | |
30431 | if (PyErr_Occurred()) SWIG_fail; | |
30432 | } | |
30433 | Py_INCREF(Py_None); resultobj = Py_None; | |
30434 | return resultobj; | |
30435 | fail: | |
30436 | return NULL; | |
30437 | } | |
30438 | ||
30439 | ||
30440 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30441 | PyObject *resultobj; | |
30442 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30443 | wxWindow *result; | |
30444 | PyObject * obj0 = 0 ; | |
30445 | char *kwnames[] = { | |
30446 | (char *) "self", NULL | |
30447 | }; | |
30448 | ||
30449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
30450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30452 | { | |
30453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30454 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
30455 | ||
30456 | wxPyEndAllowThreads(__tstate); | |
30457 | if (PyErr_Occurred()) SWIG_fail; | |
30458 | } | |
30459 | { | |
30460 | resultobj = wxPyMake_wxObject(result); | |
30461 | } | |
30462 | return resultobj; | |
30463 | fail: | |
30464 | return NULL; | |
30465 | } | |
30466 | ||
30467 | ||
30468 | static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30469 | PyObject *resultobj; | |
30470 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30471 | long result; | |
30472 | PyObject * obj0 = 0 ; | |
30473 | char *kwnames[] = { | |
30474 | (char *) "self", NULL | |
30475 | }; | |
30476 | ||
30477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
30478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30480 | { | |
30481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30482 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
30483 | ||
30484 | wxPyEndAllowThreads(__tstate); | |
30485 | if (PyErr_Occurred()) SWIG_fail; | |
30486 | } | |
30487 | resultobj = SWIG_FromLong((long)result); | |
30488 | return resultobj; | |
30489 | fail: | |
30490 | return NULL; | |
30491 | } | |
30492 | ||
30493 | ||
30494 | static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30495 | PyObject *resultobj; | |
30496 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30497 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
30498 | PyObject * obj0 = 0 ; | |
30499 | PyObject * obj1 = 0 ; | |
30500 | char *kwnames[] = { | |
30501 | (char *) "self",(char *) "source", NULL | |
30502 | }; | |
30503 | ||
30504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
30505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30507 | if (obj1) { | |
30508 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
30509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30510 | } | |
30511 | { | |
30512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30513 | (arg1)->UpdateUI(arg2); | |
30514 | ||
30515 | wxPyEndAllowThreads(__tstate); | |
30516 | if (PyErr_Occurred()) SWIG_fail; | |
30517 | } | |
30518 | Py_INCREF(Py_None); resultobj = Py_None; | |
30519 | return resultobj; | |
30520 | fail: | |
30521 | return NULL; | |
30522 | } | |
30523 | ||
30524 | ||
30525 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30526 | PyObject *resultobj; | |
30527 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30528 | wxMenuBar *result; | |
30529 | PyObject * obj0 = 0 ; | |
30530 | char *kwnames[] = { | |
30531 | (char *) "self", NULL | |
30532 | }; | |
30533 | ||
30534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
30535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30537 | { | |
30538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30539 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
30540 | ||
30541 | wxPyEndAllowThreads(__tstate); | |
30542 | if (PyErr_Occurred()) SWIG_fail; | |
30543 | } | |
30544 | { | |
30545 | resultobj = wxPyMake_wxObject(result); | |
30546 | } | |
30547 | return resultobj; | |
30548 | fail: | |
30549 | return NULL; | |
30550 | } | |
30551 | ||
30552 | ||
30553 | static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30554 | PyObject *resultobj; | |
30555 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30556 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
30557 | PyObject * obj0 = 0 ; | |
30558 | PyObject * obj1 = 0 ; | |
30559 | char *kwnames[] = { | |
30560 | (char *) "self",(char *) "menubar", NULL | |
30561 | }; | |
30562 | ||
30563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
30564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
30567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30568 | { | |
30569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30570 | (arg1)->Attach(arg2); | |
30571 | ||
30572 | wxPyEndAllowThreads(__tstate); | |
30573 | if (PyErr_Occurred()) SWIG_fail; | |
30574 | } | |
30575 | Py_INCREF(Py_None); resultobj = Py_None; | |
30576 | return resultobj; | |
30577 | fail: | |
30578 | return NULL; | |
30579 | } | |
30580 | ||
30581 | ||
30582 | static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30583 | PyObject *resultobj; | |
30584 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30585 | PyObject * obj0 = 0 ; | |
30586 | char *kwnames[] = { | |
30587 | (char *) "self", NULL | |
30588 | }; | |
30589 | ||
30590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
30591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30593 | { | |
30594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30595 | (arg1)->Detach(); | |
30596 | ||
30597 | wxPyEndAllowThreads(__tstate); | |
30598 | if (PyErr_Occurred()) SWIG_fail; | |
30599 | } | |
30600 | Py_INCREF(Py_None); resultobj = Py_None; | |
30601 | return resultobj; | |
30602 | fail: | |
30603 | return NULL; | |
30604 | } | |
30605 | ||
30606 | ||
30607 | static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30608 | PyObject *resultobj; | |
30609 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30610 | bool result; | |
30611 | PyObject * obj0 = 0 ; | |
30612 | char *kwnames[] = { | |
30613 | (char *) "self", NULL | |
30614 | }; | |
30615 | ||
30616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
30617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30619 | { | |
30620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30621 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
30622 | ||
30623 | wxPyEndAllowThreads(__tstate); | |
30624 | if (PyErr_Occurred()) SWIG_fail; | |
30625 | } | |
30626 | { | |
30627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30628 | } | |
30629 | return resultobj; | |
30630 | fail: | |
30631 | return NULL; | |
30632 | } | |
30633 | ||
30634 | ||
30635 | static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30636 | PyObject *resultobj; | |
30637 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30638 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30639 | PyObject * obj0 = 0 ; | |
30640 | PyObject * obj1 = 0 ; | |
30641 | char *kwnames[] = { | |
30642 | (char *) "self",(char *) "parent", NULL | |
30643 | }; | |
30644 | ||
30645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
30646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30650 | { | |
30651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30652 | (arg1)->SetParent(arg2); | |
30653 | ||
30654 | wxPyEndAllowThreads(__tstate); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | Py_INCREF(Py_None); resultobj = Py_None; | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
30664 | static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30665 | PyObject *resultobj; | |
30666 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30667 | wxMenu *result; | |
30668 | PyObject * obj0 = 0 ; | |
30669 | char *kwnames[] = { | |
30670 | (char *) "self", NULL | |
30671 | }; | |
30672 | ||
30673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
30674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30676 | { | |
30677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30678 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
30679 | ||
30680 | wxPyEndAllowThreads(__tstate); | |
30681 | if (PyErr_Occurred()) SWIG_fail; | |
30682 | } | |
30683 | { | |
30684 | resultobj = wxPyMake_wxObject(result); | |
30685 | } | |
30686 | return resultobj; | |
30687 | fail: | |
30688 | return NULL; | |
30689 | } | |
30690 | ||
30691 | ||
30692 | static PyObject * Menu_swigregister(PyObject *self, PyObject *args) { | |
30693 | PyObject *obj; | |
30694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30695 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
30696 | Py_INCREF(obj); | |
30697 | return Py_BuildValue((char *)""); | |
30698 | } | |
30699 | static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30700 | PyObject *resultobj; | |
30701 | long arg1 = (long) 0 ; | |
30702 | wxMenuBar *result; | |
30703 | PyObject * obj0 = 0 ; | |
30704 | char *kwnames[] = { | |
30705 | (char *) "style", NULL | |
30706 | }; | |
30707 | ||
30708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
30709 | if (obj0) { | |
30710 | arg1 = (long) SWIG_AsLong(obj0); | |
30711 | if (PyErr_Occurred()) SWIG_fail; | |
30712 | } | |
30713 | { | |
30714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30715 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
30716 | ||
30717 | wxPyEndAllowThreads(__tstate); | |
30718 | if (PyErr_Occurred()) SWIG_fail; | |
30719 | } | |
30720 | { | |
30721 | resultobj = wxPyMake_wxObject(result); | |
30722 | } | |
30723 | return resultobj; | |
30724 | fail: | |
30725 | return NULL; | |
30726 | } | |
30727 | ||
30728 | ||
30729 | static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30730 | PyObject *resultobj; | |
30731 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30732 | wxMenu *arg2 = (wxMenu *) 0 ; | |
30733 | wxString *arg3 = 0 ; | |
30734 | bool result; | |
30735 | bool temp3 = False ; | |
30736 | PyObject * obj0 = 0 ; | |
30737 | PyObject * obj1 = 0 ; | |
30738 | PyObject * obj2 = 0 ; | |
30739 | char *kwnames[] = { | |
30740 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
30741 | }; | |
30742 | ||
30743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
30747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30748 | { | |
30749 | arg3 = wxString_in_helper(obj2); | |
30750 | if (arg3 == NULL) SWIG_fail; | |
30751 | temp3 = True; | |
30752 | } | |
30753 | { | |
30754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30755 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
30756 | ||
30757 | wxPyEndAllowThreads(__tstate); | |
30758 | if (PyErr_Occurred()) SWIG_fail; | |
30759 | } | |
30760 | { | |
30761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30762 | } | |
30763 | { | |
30764 | if (temp3) | |
30765 | delete arg3; | |
30766 | } | |
30767 | return resultobj; | |
30768 | fail: | |
30769 | { | |
30770 | if (temp3) | |
30771 | delete arg3; | |
30772 | } | |
30773 | return NULL; | |
30774 | } | |
30775 | ||
30776 | ||
30777 | static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30778 | PyObject *resultobj; | |
30779 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30780 | size_t arg2 ; | |
30781 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30782 | wxString *arg4 = 0 ; | |
30783 | bool result; | |
30784 | bool temp4 = False ; | |
30785 | PyObject * obj0 = 0 ; | |
30786 | PyObject * obj1 = 0 ; | |
30787 | PyObject * obj2 = 0 ; | |
30788 | PyObject * obj3 = 0 ; | |
30789 | char *kwnames[] = { | |
30790 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30791 | }; | |
30792 | ||
30793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30796 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30797 | if (PyErr_Occurred()) SWIG_fail; | |
30798 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30800 | { | |
30801 | arg4 = wxString_in_helper(obj3); | |
30802 | if (arg4 == NULL) SWIG_fail; | |
30803 | temp4 = True; | |
30804 | } | |
30805 | { | |
30806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30807 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
30808 | ||
30809 | wxPyEndAllowThreads(__tstate); | |
30810 | if (PyErr_Occurred()) SWIG_fail; | |
30811 | } | |
30812 | { | |
30813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30814 | } | |
30815 | { | |
30816 | if (temp4) | |
30817 | delete arg4; | |
30818 | } | |
30819 | return resultobj; | |
30820 | fail: | |
30821 | { | |
30822 | if (temp4) | |
30823 | delete arg4; | |
30824 | } | |
30825 | return NULL; | |
30826 | } | |
30827 | ||
30828 | ||
30829 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30830 | PyObject *resultobj; | |
30831 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30832 | size_t result; | |
30833 | PyObject * obj0 = 0 ; | |
30834 | char *kwnames[] = { | |
30835 | (char *) "self", NULL | |
30836 | }; | |
30837 | ||
30838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
30839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30841 | { | |
30842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30843 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
30844 | ||
30845 | wxPyEndAllowThreads(__tstate); | |
30846 | if (PyErr_Occurred()) SWIG_fail; | |
30847 | } | |
30848 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
30849 | return resultobj; | |
30850 | fail: | |
30851 | return NULL; | |
30852 | } | |
30853 | ||
30854 | ||
30855 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30856 | PyObject *resultobj; | |
30857 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30858 | size_t arg2 ; | |
30859 | wxMenu *result; | |
30860 | PyObject * obj0 = 0 ; | |
30861 | PyObject * obj1 = 0 ; | |
30862 | char *kwnames[] = { | |
30863 | (char *) "self",(char *) "pos", NULL | |
30864 | }; | |
30865 | ||
30866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
30867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30869 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30870 | if (PyErr_Occurred()) SWIG_fail; | |
30871 | { | |
30872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30873 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
30874 | ||
30875 | wxPyEndAllowThreads(__tstate); | |
30876 | if (PyErr_Occurred()) SWIG_fail; | |
30877 | } | |
30878 | { | |
30879 | resultobj = wxPyMake_wxObject(result); | |
30880 | } | |
30881 | return resultobj; | |
30882 | fail: | |
30883 | return NULL; | |
30884 | } | |
30885 | ||
30886 | ||
30887 | static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30888 | PyObject *resultobj; | |
30889 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30890 | size_t arg2 ; | |
30891 | wxMenu *arg3 = (wxMenu *) 0 ; | |
30892 | wxString *arg4 = 0 ; | |
30893 | wxMenu *result; | |
30894 | bool temp4 = False ; | |
30895 | PyObject * obj0 = 0 ; | |
30896 | PyObject * obj1 = 0 ; | |
30897 | PyObject * obj2 = 0 ; | |
30898 | PyObject * obj3 = 0 ; | |
30899 | char *kwnames[] = { | |
30900 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
30901 | }; | |
30902 | ||
30903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30906 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30907 | if (PyErr_Occurred()) SWIG_fail; | |
30908 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
30909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30910 | { | |
30911 | arg4 = wxString_in_helper(obj3); | |
30912 | if (arg4 == NULL) SWIG_fail; | |
30913 | temp4 = True; | |
30914 | } | |
30915 | { | |
30916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30917 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
30918 | ||
30919 | wxPyEndAllowThreads(__tstate); | |
30920 | if (PyErr_Occurred()) SWIG_fail; | |
30921 | } | |
30922 | { | |
30923 | resultobj = wxPyMake_wxObject(result); | |
30924 | } | |
30925 | { | |
30926 | if (temp4) | |
30927 | delete arg4; | |
30928 | } | |
30929 | return resultobj; | |
30930 | fail: | |
30931 | { | |
30932 | if (temp4) | |
30933 | delete arg4; | |
30934 | } | |
30935 | return NULL; | |
30936 | } | |
30937 | ||
30938 | ||
30939 | static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30940 | PyObject *resultobj; | |
30941 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30942 | size_t arg2 ; | |
30943 | wxMenu *result; | |
30944 | PyObject * obj0 = 0 ; | |
30945 | PyObject * obj1 = 0 ; | |
30946 | char *kwnames[] = { | |
30947 | (char *) "self",(char *) "pos", NULL | |
30948 | }; | |
30949 | ||
30950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30953 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30954 | if (PyErr_Occurred()) SWIG_fail; | |
30955 | { | |
30956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30957 | result = (wxMenu *)(arg1)->Remove(arg2); | |
30958 | ||
30959 | wxPyEndAllowThreads(__tstate); | |
30960 | if (PyErr_Occurred()) SWIG_fail; | |
30961 | } | |
30962 | { | |
30963 | resultobj = wxPyMake_wxObject(result); | |
30964 | } | |
30965 | return resultobj; | |
30966 | fail: | |
30967 | return NULL; | |
30968 | } | |
30969 | ||
30970 | ||
30971 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30972 | PyObject *resultobj; | |
30973 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
30974 | size_t arg2 ; | |
30975 | bool arg3 ; | |
30976 | PyObject * obj0 = 0 ; | |
30977 | PyObject * obj1 = 0 ; | |
30978 | PyObject * obj2 = 0 ; | |
30979 | char *kwnames[] = { | |
30980 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
30981 | }; | |
30982 | ||
30983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
30985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30986 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | arg3 = (bool) SWIG_AsBool(obj2); | |
30989 | if (PyErr_Occurred()) SWIG_fail; | |
30990 | { | |
30991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30992 | (arg1)->EnableTop(arg2,arg3); | |
30993 | ||
30994 | wxPyEndAllowThreads(__tstate); | |
30995 | if (PyErr_Occurred()) SWIG_fail; | |
30996 | } | |
30997 | Py_INCREF(Py_None); resultobj = Py_None; | |
30998 | return resultobj; | |
30999 | fail: | |
31000 | return NULL; | |
31001 | } | |
31002 | ||
31003 | ||
31004 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31005 | PyObject *resultobj; | |
31006 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31007 | size_t arg2 ; | |
31008 | bool result; | |
31009 | PyObject * obj0 = 0 ; | |
31010 | PyObject * obj1 = 0 ; | |
31011 | char *kwnames[] = { | |
31012 | (char *) "self",(char *) "pos", NULL | |
31013 | }; | |
31014 | ||
31015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31018 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31019 | if (PyErr_Occurred()) SWIG_fail; | |
31020 | { | |
31021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31022 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31023 | ||
31024 | wxPyEndAllowThreads(__tstate); | |
31025 | if (PyErr_Occurred()) SWIG_fail; | |
31026 | } | |
31027 | { | |
31028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31029 | } | |
31030 | return resultobj; | |
31031 | fail: | |
31032 | return NULL; | |
31033 | } | |
31034 | ||
31035 | ||
31036 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31037 | PyObject *resultobj; | |
31038 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31039 | size_t arg2 ; | |
31040 | wxString *arg3 = 0 ; | |
31041 | bool temp3 = False ; | |
31042 | PyObject * obj0 = 0 ; | |
31043 | PyObject * obj1 = 0 ; | |
31044 | PyObject * obj2 = 0 ; | |
31045 | char *kwnames[] = { | |
31046 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31047 | }; | |
31048 | ||
31049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31052 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31053 | if (PyErr_Occurred()) SWIG_fail; | |
31054 | { | |
31055 | arg3 = wxString_in_helper(obj2); | |
31056 | if (arg3 == NULL) SWIG_fail; | |
31057 | temp3 = True; | |
31058 | } | |
31059 | { | |
31060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31061 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31062 | ||
31063 | wxPyEndAllowThreads(__tstate); | |
31064 | if (PyErr_Occurred()) SWIG_fail; | |
31065 | } | |
31066 | Py_INCREF(Py_None); resultobj = Py_None; | |
31067 | { | |
31068 | if (temp3) | |
31069 | delete arg3; | |
31070 | } | |
31071 | return resultobj; | |
31072 | fail: | |
31073 | { | |
31074 | if (temp3) | |
31075 | delete arg3; | |
31076 | } | |
31077 | return NULL; | |
31078 | } | |
31079 | ||
31080 | ||
31081 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31082 | PyObject *resultobj; | |
31083 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31084 | size_t arg2 ; | |
31085 | wxString result; | |
31086 | PyObject * obj0 = 0 ; | |
31087 | PyObject * obj1 = 0 ; | |
31088 | char *kwnames[] = { | |
31089 | (char *) "self",(char *) "pos", NULL | |
31090 | }; | |
31091 | ||
31092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31095 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
31096 | if (PyErr_Occurred()) SWIG_fail; | |
31097 | { | |
31098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31099 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31100 | ||
31101 | wxPyEndAllowThreads(__tstate); | |
31102 | if (PyErr_Occurred()) SWIG_fail; | |
31103 | } | |
31104 | { | |
31105 | #if wxUSE_UNICODE | |
31106 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31107 | #else | |
31108 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31109 | #endif | |
31110 | } | |
31111 | return resultobj; | |
31112 | fail: | |
31113 | return NULL; | |
31114 | } | |
31115 | ||
31116 | ||
31117 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31118 | PyObject *resultobj; | |
31119 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31120 | wxString *arg2 = 0 ; | |
31121 | wxString *arg3 = 0 ; | |
31122 | int result; | |
31123 | bool temp2 = False ; | |
31124 | bool temp3 = False ; | |
31125 | PyObject * obj0 = 0 ; | |
31126 | PyObject * obj1 = 0 ; | |
31127 | PyObject * obj2 = 0 ; | |
31128 | char *kwnames[] = { | |
31129 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31130 | }; | |
31131 | ||
31132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31135 | { | |
31136 | arg2 = wxString_in_helper(obj1); | |
31137 | if (arg2 == NULL) SWIG_fail; | |
31138 | temp2 = True; | |
31139 | } | |
31140 | { | |
31141 | arg3 = wxString_in_helper(obj2); | |
31142 | if (arg3 == NULL) SWIG_fail; | |
31143 | temp3 = True; | |
31144 | } | |
31145 | { | |
31146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31147 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31148 | ||
31149 | wxPyEndAllowThreads(__tstate); | |
31150 | if (PyErr_Occurred()) SWIG_fail; | |
31151 | } | |
31152 | resultobj = SWIG_FromInt((int)result); | |
31153 | { | |
31154 | if (temp2) | |
31155 | delete arg2; | |
31156 | } | |
31157 | { | |
31158 | if (temp3) | |
31159 | delete arg3; | |
31160 | } | |
31161 | return resultobj; | |
31162 | fail: | |
31163 | { | |
31164 | if (temp2) | |
31165 | delete arg2; | |
31166 | } | |
31167 | { | |
31168 | if (temp3) | |
31169 | delete arg3; | |
31170 | } | |
31171 | return NULL; | |
31172 | } | |
31173 | ||
31174 | ||
31175 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31176 | PyObject *resultobj; | |
31177 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31178 | int arg2 ; | |
31179 | wxMenuItem *result; | |
31180 | PyObject * obj0 = 0 ; | |
31181 | PyObject * obj1 = 0 ; | |
31182 | char *kwnames[] = { | |
31183 | (char *) "self",(char *) "id", NULL | |
31184 | }; | |
31185 | ||
31186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31189 | arg2 = (int) SWIG_AsInt(obj1); | |
31190 | if (PyErr_Occurred()) SWIG_fail; | |
31191 | { | |
31192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31193 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
31194 | ||
31195 | wxPyEndAllowThreads(__tstate); | |
31196 | if (PyErr_Occurred()) SWIG_fail; | |
31197 | } | |
31198 | { | |
31199 | resultobj = wxPyMake_wxObject(result); | |
31200 | } | |
31201 | return resultobj; | |
31202 | fail: | |
31203 | return NULL; | |
31204 | } | |
31205 | ||
31206 | ||
31207 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31208 | PyObject *resultobj; | |
31209 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31210 | wxString *arg2 = 0 ; | |
31211 | int result; | |
31212 | bool temp2 = False ; | |
31213 | PyObject * obj0 = 0 ; | |
31214 | PyObject * obj1 = 0 ; | |
31215 | char *kwnames[] = { | |
31216 | (char *) "self",(char *) "title", NULL | |
31217 | }; | |
31218 | ||
31219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
31220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31222 | { | |
31223 | arg2 = wxString_in_helper(obj1); | |
31224 | if (arg2 == NULL) SWIG_fail; | |
31225 | temp2 = True; | |
31226 | } | |
31227 | { | |
31228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31229 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
31230 | ||
31231 | wxPyEndAllowThreads(__tstate); | |
31232 | if (PyErr_Occurred()) SWIG_fail; | |
31233 | } | |
31234 | resultobj = SWIG_FromInt((int)result); | |
31235 | { | |
31236 | if (temp2) | |
31237 | delete arg2; | |
31238 | } | |
31239 | return resultobj; | |
31240 | fail: | |
31241 | { | |
31242 | if (temp2) | |
31243 | delete arg2; | |
31244 | } | |
31245 | return NULL; | |
31246 | } | |
31247 | ||
31248 | ||
31249 | static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31250 | PyObject *resultobj; | |
31251 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31252 | int arg2 ; | |
31253 | bool arg3 ; | |
31254 | PyObject * obj0 = 0 ; | |
31255 | PyObject * obj1 = 0 ; | |
31256 | PyObject * obj2 = 0 ; | |
31257 | char *kwnames[] = { | |
31258 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31259 | }; | |
31260 | ||
31261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
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; | |
31266 | arg3 = (bool) SWIG_AsBool(obj2); | |
31267 | if (PyErr_Occurred()) SWIG_fail; | |
31268 | { | |
31269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31270 | (arg1)->Enable(arg2,arg3); | |
31271 | ||
31272 | wxPyEndAllowThreads(__tstate); | |
31273 | if (PyErr_Occurred()) SWIG_fail; | |
31274 | } | |
31275 | Py_INCREF(Py_None); resultobj = Py_None; | |
31276 | return resultobj; | |
31277 | fail: | |
31278 | return NULL; | |
31279 | } | |
31280 | ||
31281 | ||
31282 | static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31283 | PyObject *resultobj; | |
31284 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31285 | int arg2 ; | |
31286 | bool arg3 ; | |
31287 | PyObject * obj0 = 0 ; | |
31288 | PyObject * obj1 = 0 ; | |
31289 | PyObject * obj2 = 0 ; | |
31290 | char *kwnames[] = { | |
31291 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31292 | }; | |
31293 | ||
31294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31297 | arg2 = (int) SWIG_AsInt(obj1); | |
31298 | if (PyErr_Occurred()) SWIG_fail; | |
31299 | arg3 = (bool) SWIG_AsBool(obj2); | |
31300 | if (PyErr_Occurred()) SWIG_fail; | |
31301 | { | |
31302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31303 | (arg1)->Check(arg2,arg3); | |
31304 | ||
31305 | wxPyEndAllowThreads(__tstate); | |
31306 | if (PyErr_Occurred()) SWIG_fail; | |
31307 | } | |
31308 | Py_INCREF(Py_None); resultobj = Py_None; | |
31309 | return resultobj; | |
31310 | fail: | |
31311 | return NULL; | |
31312 | } | |
31313 | ||
31314 | ||
31315 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31316 | PyObject *resultobj; | |
31317 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31318 | int arg2 ; | |
31319 | bool result; | |
31320 | PyObject * obj0 = 0 ; | |
31321 | PyObject * obj1 = 0 ; | |
31322 | char *kwnames[] = { | |
31323 | (char *) "self",(char *) "id", NULL | |
31324 | }; | |
31325 | ||
31326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31329 | arg2 = (int) SWIG_AsInt(obj1); | |
31330 | if (PyErr_Occurred()) SWIG_fail; | |
31331 | { | |
31332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31333 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
31334 | ||
31335 | wxPyEndAllowThreads(__tstate); | |
31336 | if (PyErr_Occurred()) SWIG_fail; | |
31337 | } | |
31338 | { | |
31339 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31340 | } | |
31341 | return resultobj; | |
31342 | fail: | |
31343 | return NULL; | |
31344 | } | |
31345 | ||
31346 | ||
31347 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31348 | PyObject *resultobj; | |
31349 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31350 | int arg2 ; | |
31351 | bool result; | |
31352 | PyObject * obj0 = 0 ; | |
31353 | PyObject * obj1 = 0 ; | |
31354 | char *kwnames[] = { | |
31355 | (char *) "self",(char *) "id", NULL | |
31356 | }; | |
31357 | ||
31358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31361 | arg2 = (int) SWIG_AsInt(obj1); | |
31362 | if (PyErr_Occurred()) SWIG_fail; | |
31363 | { | |
31364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31365 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
31366 | ||
31367 | wxPyEndAllowThreads(__tstate); | |
31368 | if (PyErr_Occurred()) SWIG_fail; | |
31369 | } | |
31370 | { | |
31371 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31372 | } | |
31373 | return resultobj; | |
31374 | fail: | |
31375 | return NULL; | |
31376 | } | |
31377 | ||
31378 | ||
31379 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31380 | PyObject *resultobj; | |
31381 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31382 | int arg2 ; | |
31383 | wxString *arg3 = 0 ; | |
31384 | bool temp3 = False ; | |
31385 | PyObject * obj0 = 0 ; | |
31386 | PyObject * obj1 = 0 ; | |
31387 | PyObject * obj2 = 0 ; | |
31388 | char *kwnames[] = { | |
31389 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31390 | }; | |
31391 | ||
31392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31395 | arg2 = (int) SWIG_AsInt(obj1); | |
31396 | if (PyErr_Occurred()) SWIG_fail; | |
31397 | { | |
31398 | arg3 = wxString_in_helper(obj2); | |
31399 | if (arg3 == NULL) SWIG_fail; | |
31400 | temp3 = True; | |
31401 | } | |
31402 | { | |
31403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31404 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31405 | ||
31406 | wxPyEndAllowThreads(__tstate); | |
31407 | if (PyErr_Occurred()) SWIG_fail; | |
31408 | } | |
31409 | Py_INCREF(Py_None); resultobj = Py_None; | |
31410 | { | |
31411 | if (temp3) | |
31412 | delete arg3; | |
31413 | } | |
31414 | return resultobj; | |
31415 | fail: | |
31416 | { | |
31417 | if (temp3) | |
31418 | delete arg3; | |
31419 | } | |
31420 | return NULL; | |
31421 | } | |
31422 | ||
31423 | ||
31424 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31425 | PyObject *resultobj; | |
31426 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31427 | int arg2 ; | |
31428 | wxString result; | |
31429 | PyObject * obj0 = 0 ; | |
31430 | PyObject * obj1 = 0 ; | |
31431 | char *kwnames[] = { | |
31432 | (char *) "self",(char *) "id", NULL | |
31433 | }; | |
31434 | ||
31435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31438 | arg2 = (int) SWIG_AsInt(obj1); | |
31439 | if (PyErr_Occurred()) SWIG_fail; | |
31440 | { | |
31441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31442 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
31443 | ||
31444 | wxPyEndAllowThreads(__tstate); | |
31445 | if (PyErr_Occurred()) SWIG_fail; | |
31446 | } | |
31447 | { | |
31448 | #if wxUSE_UNICODE | |
31449 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31450 | #else | |
31451 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31452 | #endif | |
31453 | } | |
31454 | return resultobj; | |
31455 | fail: | |
31456 | return NULL; | |
31457 | } | |
31458 | ||
31459 | ||
31460 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31461 | PyObject *resultobj; | |
31462 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31463 | int arg2 ; | |
31464 | wxString *arg3 = 0 ; | |
31465 | bool temp3 = False ; | |
31466 | PyObject * obj0 = 0 ; | |
31467 | PyObject * obj1 = 0 ; | |
31468 | PyObject * obj2 = 0 ; | |
31469 | char *kwnames[] = { | |
31470 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31471 | }; | |
31472 | ||
31473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31476 | arg2 = (int) SWIG_AsInt(obj1); | |
31477 | if (PyErr_Occurred()) SWIG_fail; | |
31478 | { | |
31479 | arg3 = wxString_in_helper(obj2); | |
31480 | if (arg3 == NULL) SWIG_fail; | |
31481 | temp3 = True; | |
31482 | } | |
31483 | { | |
31484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31485 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31486 | ||
31487 | wxPyEndAllowThreads(__tstate); | |
31488 | if (PyErr_Occurred()) SWIG_fail; | |
31489 | } | |
31490 | Py_INCREF(Py_None); resultobj = Py_None; | |
31491 | { | |
31492 | if (temp3) | |
31493 | delete arg3; | |
31494 | } | |
31495 | return resultobj; | |
31496 | fail: | |
31497 | { | |
31498 | if (temp3) | |
31499 | delete arg3; | |
31500 | } | |
31501 | return NULL; | |
31502 | } | |
31503 | ||
31504 | ||
31505 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31506 | PyObject *resultobj; | |
31507 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31508 | int arg2 ; | |
31509 | wxString result; | |
31510 | PyObject * obj0 = 0 ; | |
31511 | PyObject * obj1 = 0 ; | |
31512 | char *kwnames[] = { | |
31513 | (char *) "self",(char *) "id", NULL | |
31514 | }; | |
31515 | ||
31516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31519 | arg2 = (int) SWIG_AsInt(obj1); | |
31520 | if (PyErr_Occurred()) SWIG_fail; | |
31521 | { | |
31522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31523 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
31524 | ||
31525 | wxPyEndAllowThreads(__tstate); | |
31526 | if (PyErr_Occurred()) SWIG_fail; | |
31527 | } | |
31528 | { | |
31529 | #if wxUSE_UNICODE | |
31530 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31531 | #else | |
31532 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31533 | #endif | |
31534 | } | |
31535 | return resultobj; | |
31536 | fail: | |
31537 | return NULL; | |
31538 | } | |
31539 | ||
31540 | ||
31541 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31542 | PyObject *resultobj; | |
31543 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31544 | wxFrame *result; | |
31545 | PyObject * obj0 = 0 ; | |
31546 | char *kwnames[] = { | |
31547 | (char *) "self", NULL | |
31548 | }; | |
31549 | ||
31550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
31551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31553 | { | |
31554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31555 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
31556 | ||
31557 | wxPyEndAllowThreads(__tstate); | |
31558 | if (PyErr_Occurred()) SWIG_fail; | |
31559 | } | |
31560 | { | |
31561 | resultobj = wxPyMake_wxObject(result); | |
31562 | } | |
31563 | return resultobj; | |
31564 | fail: | |
31565 | return NULL; | |
31566 | } | |
31567 | ||
31568 | ||
31569 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31570 | PyObject *resultobj; | |
31571 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31572 | bool result; | |
31573 | PyObject * obj0 = 0 ; | |
31574 | char *kwnames[] = { | |
31575 | (char *) "self", NULL | |
31576 | }; | |
31577 | ||
31578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
31579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31581 | { | |
31582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31583 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
31584 | ||
31585 | wxPyEndAllowThreads(__tstate); | |
31586 | if (PyErr_Occurred()) SWIG_fail; | |
31587 | } | |
31588 | { | |
31589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31590 | } | |
31591 | return resultobj; | |
31592 | fail: | |
31593 | return NULL; | |
31594 | } | |
31595 | ||
31596 | ||
31597 | static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31598 | PyObject *resultobj; | |
31599 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31600 | wxFrame *arg2 = (wxFrame *) 0 ; | |
31601 | PyObject * obj0 = 0 ; | |
31602 | PyObject * obj1 = 0 ; | |
31603 | char *kwnames[] = { | |
31604 | (char *) "self",(char *) "frame", NULL | |
31605 | }; | |
31606 | ||
31607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
31611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31612 | { | |
31613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31614 | (arg1)->Attach(arg2); | |
31615 | ||
31616 | wxPyEndAllowThreads(__tstate); | |
31617 | if (PyErr_Occurred()) SWIG_fail; | |
31618 | } | |
31619 | Py_INCREF(Py_None); resultobj = Py_None; | |
31620 | return resultobj; | |
31621 | fail: | |
31622 | return NULL; | |
31623 | } | |
31624 | ||
31625 | ||
31626 | static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31627 | PyObject *resultobj; | |
31628 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31629 | PyObject * obj0 = 0 ; | |
31630 | char *kwnames[] = { | |
31631 | (char *) "self", NULL | |
31632 | }; | |
31633 | ||
31634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
31635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31637 | { | |
31638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31639 | (arg1)->Detach(); | |
31640 | ||
31641 | wxPyEndAllowThreads(__tstate); | |
31642 | if (PyErr_Occurred()) SWIG_fail; | |
31643 | } | |
31644 | Py_INCREF(Py_None); resultobj = Py_None; | |
31645 | return resultobj; | |
31646 | fail: | |
31647 | return NULL; | |
31648 | } | |
31649 | ||
31650 | ||
31651 | static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) { | |
31652 | PyObject *obj; | |
31653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31654 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
31655 | Py_INCREF(obj); | |
31656 | return Py_BuildValue((char *)""); | |
31657 | } | |
31658 | static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31659 | PyObject *resultobj; | |
31660 | wxMenu *arg1 = (wxMenu *) NULL ; | |
31661 | int arg2 = (int) wxID_ANY ; | |
31662 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
31663 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
31664 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
31665 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
31666 | int arg5 = (int) wxITEM_NORMAL ; | |
31667 | wxMenu *arg6 = (wxMenu *) NULL ; | |
31668 | wxMenuItem *result; | |
31669 | bool temp3 = False ; | |
31670 | bool temp4 = False ; | |
31671 | PyObject * obj0 = 0 ; | |
31672 | PyObject * obj1 = 0 ; | |
31673 | PyObject * obj2 = 0 ; | |
31674 | PyObject * obj3 = 0 ; | |
31675 | PyObject * obj4 = 0 ; | |
31676 | PyObject * obj5 = 0 ; | |
31677 | char *kwnames[] = { | |
31678 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
31679 | }; | |
31680 | ||
31681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
31682 | if (obj0) { | |
31683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31685 | } | |
31686 | if (obj1) { | |
31687 | arg2 = (int) SWIG_AsInt(obj1); | |
31688 | if (PyErr_Occurred()) SWIG_fail; | |
31689 | } | |
31690 | if (obj2) { | |
31691 | { | |
31692 | arg3 = wxString_in_helper(obj2); | |
31693 | if (arg3 == NULL) SWIG_fail; | |
31694 | temp3 = True; | |
31695 | } | |
31696 | } | |
31697 | if (obj3) { | |
31698 | { | |
31699 | arg4 = wxString_in_helper(obj3); | |
31700 | if (arg4 == NULL) SWIG_fail; | |
31701 | temp4 = True; | |
31702 | } | |
31703 | } | |
31704 | if (obj4) { | |
31705 | arg5 = (wxItemKind) SWIG_AsInt(obj4); | |
31706 | if (PyErr_Occurred()) SWIG_fail; | |
31707 | } | |
31708 | if (obj5) { | |
31709 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
31710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31711 | } | |
31712 | { | |
31713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31714 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
31715 | ||
31716 | wxPyEndAllowThreads(__tstate); | |
31717 | if (PyErr_Occurred()) SWIG_fail; | |
31718 | } | |
31719 | { | |
31720 | resultobj = wxPyMake_wxObject(result); | |
31721 | } | |
31722 | { | |
31723 | if (temp3) | |
31724 | delete arg3; | |
31725 | } | |
31726 | { | |
31727 | if (temp4) | |
31728 | delete arg4; | |
31729 | } | |
31730 | return resultobj; | |
31731 | fail: | |
31732 | { | |
31733 | if (temp3) | |
31734 | delete arg3; | |
31735 | } | |
31736 | { | |
31737 | if (temp4) | |
31738 | delete arg4; | |
31739 | } | |
31740 | return NULL; | |
31741 | } | |
31742 | ||
31743 | ||
31744 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31745 | PyObject *resultobj; | |
31746 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31747 | wxMenu *result; | |
31748 | PyObject * obj0 = 0 ; | |
31749 | char *kwnames[] = { | |
31750 | (char *) "self", NULL | |
31751 | }; | |
31752 | ||
31753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
31754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31756 | { | |
31757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31758 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
31759 | ||
31760 | wxPyEndAllowThreads(__tstate); | |
31761 | if (PyErr_Occurred()) SWIG_fail; | |
31762 | } | |
31763 | { | |
31764 | resultobj = wxPyMake_wxObject(result); | |
31765 | } | |
31766 | return resultobj; | |
31767 | fail: | |
31768 | return NULL; | |
31769 | } | |
31770 | ||
31771 | ||
31772 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31773 | PyObject *resultobj; | |
31774 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31775 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31776 | PyObject * obj0 = 0 ; | |
31777 | PyObject * obj1 = 0 ; | |
31778 | char *kwnames[] = { | |
31779 | (char *) "self",(char *) "menu", NULL | |
31780 | }; | |
31781 | ||
31782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31787 | { | |
31788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31789 | (arg1)->SetMenu(arg2); | |
31790 | ||
31791 | wxPyEndAllowThreads(__tstate); | |
31792 | if (PyErr_Occurred()) SWIG_fail; | |
31793 | } | |
31794 | Py_INCREF(Py_None); resultobj = Py_None; | |
31795 | return resultobj; | |
31796 | fail: | |
31797 | return NULL; | |
31798 | } | |
31799 | ||
31800 | ||
31801 | static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31802 | PyObject *resultobj; | |
31803 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31804 | int arg2 ; | |
31805 | PyObject * obj0 = 0 ; | |
31806 | PyObject * obj1 = 0 ; | |
31807 | char *kwnames[] = { | |
31808 | (char *) "self",(char *) "id", NULL | |
31809 | }; | |
31810 | ||
31811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
31812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31814 | arg2 = (int) SWIG_AsInt(obj1); | |
31815 | if (PyErr_Occurred()) SWIG_fail; | |
31816 | { | |
31817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31818 | (arg1)->SetId(arg2); | |
31819 | ||
31820 | wxPyEndAllowThreads(__tstate); | |
31821 | if (PyErr_Occurred()) SWIG_fail; | |
31822 | } | |
31823 | Py_INCREF(Py_None); resultobj = Py_None; | |
31824 | return resultobj; | |
31825 | fail: | |
31826 | return NULL; | |
31827 | } | |
31828 | ||
31829 | ||
31830 | static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31831 | PyObject *resultobj; | |
31832 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31833 | int result; | |
31834 | PyObject * obj0 = 0 ; | |
31835 | char *kwnames[] = { | |
31836 | (char *) "self", NULL | |
31837 | }; | |
31838 | ||
31839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
31840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31842 | { | |
31843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31844 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
31845 | ||
31846 | wxPyEndAllowThreads(__tstate); | |
31847 | if (PyErr_Occurred()) SWIG_fail; | |
31848 | } | |
31849 | resultobj = SWIG_FromInt((int)result); | |
31850 | return resultobj; | |
31851 | fail: | |
31852 | return NULL; | |
31853 | } | |
31854 | ||
31855 | ||
31856 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31857 | PyObject *resultobj; | |
31858 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31859 | bool result; | |
31860 | PyObject * obj0 = 0 ; | |
31861 | char *kwnames[] = { | |
31862 | (char *) "self", NULL | |
31863 | }; | |
31864 | ||
31865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
31866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31868 | { | |
31869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31870 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
31871 | ||
31872 | wxPyEndAllowThreads(__tstate); | |
31873 | if (PyErr_Occurred()) SWIG_fail; | |
31874 | } | |
31875 | { | |
31876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31877 | } | |
31878 | return resultobj; | |
31879 | fail: | |
31880 | return NULL; | |
31881 | } | |
31882 | ||
31883 | ||
31884 | static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31885 | PyObject *resultobj; | |
31886 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31887 | wxString *arg2 = 0 ; | |
31888 | bool temp2 = False ; | |
31889 | PyObject * obj0 = 0 ; | |
31890 | PyObject * obj1 = 0 ; | |
31891 | char *kwnames[] = { | |
31892 | (char *) "self",(char *) "str", NULL | |
31893 | }; | |
31894 | ||
31895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
31896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31898 | { | |
31899 | arg2 = wxString_in_helper(obj1); | |
31900 | if (arg2 == NULL) SWIG_fail; | |
31901 | temp2 = True; | |
31902 | } | |
31903 | { | |
31904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31905 | (arg1)->SetText((wxString const &)*arg2); | |
31906 | ||
31907 | wxPyEndAllowThreads(__tstate); | |
31908 | if (PyErr_Occurred()) SWIG_fail; | |
31909 | } | |
31910 | Py_INCREF(Py_None); resultobj = Py_None; | |
31911 | { | |
31912 | if (temp2) | |
31913 | delete arg2; | |
31914 | } | |
31915 | return resultobj; | |
31916 | fail: | |
31917 | { | |
31918 | if (temp2) | |
31919 | delete arg2; | |
31920 | } | |
31921 | return NULL; | |
31922 | } | |
31923 | ||
31924 | ||
31925 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31926 | PyObject *resultobj; | |
31927 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31928 | wxString result; | |
31929 | PyObject * obj0 = 0 ; | |
31930 | char *kwnames[] = { | |
31931 | (char *) "self", NULL | |
31932 | }; | |
31933 | ||
31934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
31935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31937 | { | |
31938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31939 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
31940 | ||
31941 | wxPyEndAllowThreads(__tstate); | |
31942 | if (PyErr_Occurred()) SWIG_fail; | |
31943 | } | |
31944 | { | |
31945 | #if wxUSE_UNICODE | |
31946 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31947 | #else | |
31948 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31949 | #endif | |
31950 | } | |
31951 | return resultobj; | |
31952 | fail: | |
31953 | return NULL; | |
31954 | } | |
31955 | ||
31956 | ||
31957 | static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31958 | PyObject *resultobj; | |
31959 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
31960 | wxString *result; | |
31961 | PyObject * obj0 = 0 ; | |
31962 | char *kwnames[] = { | |
31963 | (char *) "self", NULL | |
31964 | }; | |
31965 | ||
31966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
31967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
31968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31969 | { | |
31970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31971 | { | |
31972 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
31973 | result = (wxString *) &_result_ref; | |
31974 | } | |
31975 | ||
31976 | wxPyEndAllowThreads(__tstate); | |
31977 | if (PyErr_Occurred()) SWIG_fail; | |
31978 | } | |
31979 | { | |
31980 | #if wxUSE_UNICODE | |
31981 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
31982 | #else | |
31983 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
31984 | #endif | |
31985 | } | |
31986 | return resultobj; | |
31987 | fail: | |
31988 | return NULL; | |
31989 | } | |
31990 | ||
31991 | ||
31992 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31993 | PyObject *resultobj; | |
31994 | wxString *arg1 = 0 ; | |
31995 | wxString result; | |
31996 | bool temp1 = False ; | |
31997 | PyObject * obj0 = 0 ; | |
31998 | char *kwnames[] = { | |
31999 | (char *) "text", NULL | |
32000 | }; | |
32001 | ||
32002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32003 | { | |
32004 | arg1 = wxString_in_helper(obj0); | |
32005 | if (arg1 == NULL) SWIG_fail; | |
32006 | temp1 = True; | |
32007 | } | |
32008 | { | |
32009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32010 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32011 | ||
32012 | wxPyEndAllowThreads(__tstate); | |
32013 | if (PyErr_Occurred()) SWIG_fail; | |
32014 | } | |
32015 | { | |
32016 | #if wxUSE_UNICODE | |
32017 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32018 | #else | |
32019 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32020 | #endif | |
32021 | } | |
32022 | { | |
32023 | if (temp1) | |
32024 | delete arg1; | |
32025 | } | |
32026 | return resultobj; | |
32027 | fail: | |
32028 | { | |
32029 | if (temp1) | |
32030 | delete arg1; | |
32031 | } | |
32032 | return NULL; | |
32033 | } | |
32034 | ||
32035 | ||
32036 | static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32037 | PyObject *resultobj; | |
32038 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32039 | int result; | |
32040 | PyObject * obj0 = 0 ; | |
32041 | char *kwnames[] = { | |
32042 | (char *) "self", NULL | |
32043 | }; | |
32044 | ||
32045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32048 | { | |
32049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32050 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32051 | ||
32052 | wxPyEndAllowThreads(__tstate); | |
32053 | if (PyErr_Occurred()) SWIG_fail; | |
32054 | } | |
32055 | resultobj = SWIG_FromInt((int)result); | |
32056 | return resultobj; | |
32057 | fail: | |
32058 | return NULL; | |
32059 | } | |
32060 | ||
32061 | ||
32062 | static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32063 | PyObject *resultobj; | |
32064 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32065 | int arg2 ; | |
32066 | PyObject * obj0 = 0 ; | |
32067 | PyObject * obj1 = 0 ; | |
32068 | char *kwnames[] = { | |
32069 | (char *) "self",(char *) "kind", NULL | |
32070 | }; | |
32071 | ||
32072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32075 | arg2 = (wxItemKind) SWIG_AsInt(obj1); | |
32076 | if (PyErr_Occurred()) SWIG_fail; | |
32077 | { | |
32078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32079 | (arg1)->SetKind((wxItemKind )arg2); | |
32080 | ||
32081 | wxPyEndAllowThreads(__tstate); | |
32082 | if (PyErr_Occurred()) SWIG_fail; | |
32083 | } | |
32084 | Py_INCREF(Py_None); resultobj = Py_None; | |
32085 | return resultobj; | |
32086 | fail: | |
32087 | return NULL; | |
32088 | } | |
32089 | ||
32090 | ||
32091 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32092 | PyObject *resultobj; | |
32093 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32094 | bool arg2 ; | |
32095 | PyObject * obj0 = 0 ; | |
32096 | PyObject * obj1 = 0 ; | |
32097 | char *kwnames[] = { | |
32098 | (char *) "self",(char *) "checkable", NULL | |
32099 | }; | |
32100 | ||
32101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32104 | arg2 = (bool) SWIG_AsBool(obj1); | |
32105 | if (PyErr_Occurred()) SWIG_fail; | |
32106 | { | |
32107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32108 | (arg1)->SetCheckable(arg2); | |
32109 | ||
32110 | wxPyEndAllowThreads(__tstate); | |
32111 | if (PyErr_Occurred()) SWIG_fail; | |
32112 | } | |
32113 | Py_INCREF(Py_None); resultobj = Py_None; | |
32114 | return resultobj; | |
32115 | fail: | |
32116 | return NULL; | |
32117 | } | |
32118 | ||
32119 | ||
32120 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32121 | PyObject *resultobj; | |
32122 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32123 | bool result; | |
32124 | PyObject * obj0 = 0 ; | |
32125 | char *kwnames[] = { | |
32126 | (char *) "self", NULL | |
32127 | }; | |
32128 | ||
32129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32132 | { | |
32133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32134 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32135 | ||
32136 | wxPyEndAllowThreads(__tstate); | |
32137 | if (PyErr_Occurred()) SWIG_fail; | |
32138 | } | |
32139 | { | |
32140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32141 | } | |
32142 | return resultobj; | |
32143 | fail: | |
32144 | return NULL; | |
32145 | } | |
32146 | ||
32147 | ||
32148 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32149 | PyObject *resultobj; | |
32150 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32151 | bool result; | |
32152 | PyObject * obj0 = 0 ; | |
32153 | char *kwnames[] = { | |
32154 | (char *) "self", NULL | |
32155 | }; | |
32156 | ||
32157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
32158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32160 | { | |
32161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32162 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32163 | ||
32164 | wxPyEndAllowThreads(__tstate); | |
32165 | if (PyErr_Occurred()) SWIG_fail; | |
32166 | } | |
32167 | { | |
32168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32169 | } | |
32170 | return resultobj; | |
32171 | fail: | |
32172 | return NULL; | |
32173 | } | |
32174 | ||
32175 | ||
32176 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32177 | PyObject *resultobj; | |
32178 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32179 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32180 | PyObject * obj0 = 0 ; | |
32181 | PyObject * obj1 = 0 ; | |
32182 | char *kwnames[] = { | |
32183 | (char *) "self",(char *) "menu", NULL | |
32184 | }; | |
32185 | ||
32186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
32187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32191 | { | |
32192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32193 | (arg1)->SetSubMenu(arg2); | |
32194 | ||
32195 | wxPyEndAllowThreads(__tstate); | |
32196 | if (PyErr_Occurred()) SWIG_fail; | |
32197 | } | |
32198 | Py_INCREF(Py_None); resultobj = Py_None; | |
32199 | return resultobj; | |
32200 | fail: | |
32201 | return NULL; | |
32202 | } | |
32203 | ||
32204 | ||
32205 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32206 | PyObject *resultobj; | |
32207 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32208 | wxMenu *result; | |
32209 | PyObject * obj0 = 0 ; | |
32210 | char *kwnames[] = { | |
32211 | (char *) "self", NULL | |
32212 | }; | |
32213 | ||
32214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
32215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32217 | { | |
32218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32219 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
32220 | ||
32221 | wxPyEndAllowThreads(__tstate); | |
32222 | if (PyErr_Occurred()) SWIG_fail; | |
32223 | } | |
32224 | { | |
32225 | resultobj = wxPyMake_wxObject(result); | |
32226 | } | |
32227 | return resultobj; | |
32228 | fail: | |
32229 | return NULL; | |
32230 | } | |
32231 | ||
32232 | ||
32233 | static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32234 | PyObject *resultobj; | |
32235 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32236 | bool arg2 = (bool) True ; | |
32237 | PyObject * obj0 = 0 ; | |
32238 | PyObject * obj1 = 0 ; | |
32239 | char *kwnames[] = { | |
32240 | (char *) "self",(char *) "enable", NULL | |
32241 | }; | |
32242 | ||
32243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
32244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32246 | if (obj1) { | |
32247 | arg2 = (bool) SWIG_AsBool(obj1); | |
32248 | if (PyErr_Occurred()) SWIG_fail; | |
32249 | } | |
32250 | { | |
32251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32252 | (arg1)->Enable(arg2); | |
32253 | ||
32254 | wxPyEndAllowThreads(__tstate); | |
32255 | if (PyErr_Occurred()) SWIG_fail; | |
32256 | } | |
32257 | Py_INCREF(Py_None); resultobj = Py_None; | |
32258 | return resultobj; | |
32259 | fail: | |
32260 | return NULL; | |
32261 | } | |
32262 | ||
32263 | ||
32264 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32265 | PyObject *resultobj; | |
32266 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32267 | bool result; | |
32268 | PyObject * obj0 = 0 ; | |
32269 | char *kwnames[] = { | |
32270 | (char *) "self", NULL | |
32271 | }; | |
32272 | ||
32273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
32274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32276 | { | |
32277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32278 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
32279 | ||
32280 | wxPyEndAllowThreads(__tstate); | |
32281 | if (PyErr_Occurred()) SWIG_fail; | |
32282 | } | |
32283 | { | |
32284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32285 | } | |
32286 | return resultobj; | |
32287 | fail: | |
32288 | return NULL; | |
32289 | } | |
32290 | ||
32291 | ||
32292 | static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32293 | PyObject *resultobj; | |
32294 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32295 | bool arg2 = (bool) True ; | |
32296 | PyObject * obj0 = 0 ; | |
32297 | PyObject * obj1 = 0 ; | |
32298 | char *kwnames[] = { | |
32299 | (char *) "self",(char *) "check", NULL | |
32300 | }; | |
32301 | ||
32302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
32303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32305 | if (obj1) { | |
32306 | arg2 = (bool) SWIG_AsBool(obj1); | |
32307 | if (PyErr_Occurred()) SWIG_fail; | |
32308 | } | |
32309 | { | |
32310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32311 | (arg1)->Check(arg2); | |
32312 | ||
32313 | wxPyEndAllowThreads(__tstate); | |
32314 | if (PyErr_Occurred()) SWIG_fail; | |
32315 | } | |
32316 | Py_INCREF(Py_None); resultobj = Py_None; | |
32317 | return resultobj; | |
32318 | fail: | |
32319 | return NULL; | |
32320 | } | |
32321 | ||
32322 | ||
32323 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32324 | PyObject *resultobj; | |
32325 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32326 | bool result; | |
32327 | PyObject * obj0 = 0 ; | |
32328 | char *kwnames[] = { | |
32329 | (char *) "self", NULL | |
32330 | }; | |
32331 | ||
32332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
32333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32335 | { | |
32336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32337 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
32338 | ||
32339 | wxPyEndAllowThreads(__tstate); | |
32340 | if (PyErr_Occurred()) SWIG_fail; | |
32341 | } | |
32342 | { | |
32343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32344 | } | |
32345 | return resultobj; | |
32346 | fail: | |
32347 | return NULL; | |
32348 | } | |
32349 | ||
32350 | ||
32351 | static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32352 | PyObject *resultobj; | |
32353 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32354 | PyObject * obj0 = 0 ; | |
32355 | char *kwnames[] = { | |
32356 | (char *) "self", NULL | |
32357 | }; | |
32358 | ||
32359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
32360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32362 | { | |
32363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32364 | (arg1)->Toggle(); | |
32365 | ||
32366 | wxPyEndAllowThreads(__tstate); | |
32367 | if (PyErr_Occurred()) SWIG_fail; | |
32368 | } | |
32369 | Py_INCREF(Py_None); resultobj = Py_None; | |
32370 | return resultobj; | |
32371 | fail: | |
32372 | return NULL; | |
32373 | } | |
32374 | ||
32375 | ||
32376 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32377 | PyObject *resultobj; | |
32378 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32379 | wxString *arg2 = 0 ; | |
32380 | bool temp2 = False ; | |
32381 | PyObject * obj0 = 0 ; | |
32382 | PyObject * obj1 = 0 ; | |
32383 | char *kwnames[] = { | |
32384 | (char *) "self",(char *) "str", NULL | |
32385 | }; | |
32386 | ||
32387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
32388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32390 | { | |
32391 | arg2 = wxString_in_helper(obj1); | |
32392 | if (arg2 == NULL) SWIG_fail; | |
32393 | temp2 = True; | |
32394 | } | |
32395 | { | |
32396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32397 | (arg1)->SetHelp((wxString const &)*arg2); | |
32398 | ||
32399 | wxPyEndAllowThreads(__tstate); | |
32400 | if (PyErr_Occurred()) SWIG_fail; | |
32401 | } | |
32402 | Py_INCREF(Py_None); resultobj = Py_None; | |
32403 | { | |
32404 | if (temp2) | |
32405 | delete arg2; | |
32406 | } | |
32407 | return resultobj; | |
32408 | fail: | |
32409 | { | |
32410 | if (temp2) | |
32411 | delete arg2; | |
32412 | } | |
32413 | return NULL; | |
32414 | } | |
32415 | ||
32416 | ||
32417 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32418 | PyObject *resultobj; | |
32419 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32420 | wxString *result; | |
32421 | PyObject * obj0 = 0 ; | |
32422 | char *kwnames[] = { | |
32423 | (char *) "self", NULL | |
32424 | }; | |
32425 | ||
32426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
32427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32429 | { | |
32430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32431 | { | |
32432 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
32433 | result = (wxString *) &_result_ref; | |
32434 | } | |
32435 | ||
32436 | wxPyEndAllowThreads(__tstate); | |
32437 | if (PyErr_Occurred()) SWIG_fail; | |
32438 | } | |
32439 | { | |
32440 | #if wxUSE_UNICODE | |
32441 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32442 | #else | |
32443 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32444 | #endif | |
32445 | } | |
32446 | return resultobj; | |
32447 | fail: | |
32448 | return NULL; | |
32449 | } | |
32450 | ||
32451 | ||
32452 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32453 | PyObject *resultobj; | |
32454 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32455 | wxAcceleratorEntry *result; | |
32456 | PyObject * obj0 = 0 ; | |
32457 | char *kwnames[] = { | |
32458 | (char *) "self", NULL | |
32459 | }; | |
32460 | ||
32461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
32462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32464 | { | |
32465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32466 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
32467 | ||
32468 | wxPyEndAllowThreads(__tstate); | |
32469 | if (PyErr_Occurred()) SWIG_fail; | |
32470 | } | |
32471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
32472 | return resultobj; | |
32473 | fail: | |
32474 | return NULL; | |
32475 | } | |
32476 | ||
32477 | ||
32478 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32479 | PyObject *resultobj; | |
32480 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32481 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
32482 | PyObject * obj0 = 0 ; | |
32483 | PyObject * obj1 = 0 ; | |
32484 | char *kwnames[] = { | |
32485 | (char *) "self",(char *) "accel", NULL | |
32486 | }; | |
32487 | ||
32488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
32489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
32492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32493 | { | |
32494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32495 | (arg1)->SetAccel(arg2); | |
32496 | ||
32497 | wxPyEndAllowThreads(__tstate); | |
32498 | if (PyErr_Occurred()) SWIG_fail; | |
32499 | } | |
32500 | Py_INCREF(Py_None); resultobj = Py_None; | |
32501 | return resultobj; | |
32502 | fail: | |
32503 | return NULL; | |
32504 | } | |
32505 | ||
32506 | ||
32507 | static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32508 | PyObject *resultobj; | |
32509 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32510 | wxFont *arg2 = 0 ; | |
32511 | PyObject * obj0 = 0 ; | |
32512 | PyObject * obj1 = 0 ; | |
32513 | char *kwnames[] = { | |
32514 | (char *) "self",(char *) "font", NULL | |
32515 | }; | |
32516 | ||
32517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
32518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
32521 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32522 | SWIG_fail; | |
32523 | if (arg2 == NULL) { | |
32524 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32525 | SWIG_fail; | |
32526 | } | |
32527 | { | |
32528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32529 | (arg1)->SetFont((wxFont const &)*arg2); | |
32530 | ||
32531 | wxPyEndAllowThreads(__tstate); | |
32532 | if (PyErr_Occurred()) SWIG_fail; | |
32533 | } | |
32534 | Py_INCREF(Py_None); resultobj = Py_None; | |
32535 | return resultobj; | |
32536 | fail: | |
32537 | return NULL; | |
32538 | } | |
32539 | ||
32540 | ||
32541 | static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32542 | PyObject *resultobj; | |
32543 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32544 | wxFont result; | |
32545 | PyObject * obj0 = 0 ; | |
32546 | char *kwnames[] = { | |
32547 | (char *) "self", NULL | |
32548 | }; | |
32549 | ||
32550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail; | |
32551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32553 | { | |
32554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32555 | result = (arg1)->GetFont(); | |
32556 | ||
32557 | wxPyEndAllowThreads(__tstate); | |
32558 | if (PyErr_Occurred()) SWIG_fail; | |
32559 | } | |
32560 | { | |
32561 | wxFont * resultptr; | |
32562 | resultptr = new wxFont((wxFont &) result); | |
32563 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
32564 | } | |
32565 | return resultobj; | |
32566 | fail: | |
32567 | return NULL; | |
32568 | } | |
32569 | ||
32570 | ||
32571 | static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32572 | PyObject *resultobj; | |
32573 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32574 | wxColour *arg2 = 0 ; | |
32575 | wxColour temp2 ; | |
32576 | PyObject * obj0 = 0 ; | |
32577 | PyObject * obj1 = 0 ; | |
32578 | char *kwnames[] = { | |
32579 | (char *) "self",(char *) "colText", NULL | |
32580 | }; | |
32581 | ||
32582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
32583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32585 | { | |
32586 | arg2 = &temp2; | |
32587 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32588 | } | |
32589 | { | |
32590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32591 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
32592 | ||
32593 | wxPyEndAllowThreads(__tstate); | |
32594 | if (PyErr_Occurred()) SWIG_fail; | |
32595 | } | |
32596 | Py_INCREF(Py_None); resultobj = Py_None; | |
32597 | return resultobj; | |
32598 | fail: | |
32599 | return NULL; | |
32600 | } | |
32601 | ||
32602 | ||
32603 | static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32604 | PyObject *resultobj; | |
32605 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32606 | wxColour result; | |
32607 | PyObject * obj0 = 0 ; | |
32608 | char *kwnames[] = { | |
32609 | (char *) "self", NULL | |
32610 | }; | |
32611 | ||
32612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail; | |
32613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32615 | { | |
32616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32617 | result = (arg1)->GetTextColour(); | |
32618 | ||
32619 | wxPyEndAllowThreads(__tstate); | |
32620 | if (PyErr_Occurred()) SWIG_fail; | |
32621 | } | |
32622 | { | |
32623 | wxColour * resultptr; | |
32624 | resultptr = new wxColour((wxColour &) result); | |
32625 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
32626 | } | |
32627 | return resultobj; | |
32628 | fail: | |
32629 | return NULL; | |
32630 | } | |
32631 | ||
32632 | ||
32633 | static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32634 | PyObject *resultobj; | |
32635 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32636 | wxColour *arg2 = 0 ; | |
32637 | wxColour temp2 ; | |
32638 | PyObject * obj0 = 0 ; | |
32639 | PyObject * obj1 = 0 ; | |
32640 | char *kwnames[] = { | |
32641 | (char *) "self",(char *) "colBack", NULL | |
32642 | }; | |
32643 | ||
32644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
32645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32647 | { | |
32648 | arg2 = &temp2; | |
32649 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
32650 | } | |
32651 | { | |
32652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32653 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
32654 | ||
32655 | wxPyEndAllowThreads(__tstate); | |
32656 | if (PyErr_Occurred()) SWIG_fail; | |
32657 | } | |
32658 | Py_INCREF(Py_None); resultobj = Py_None; | |
32659 | return resultobj; | |
32660 | fail: | |
32661 | return NULL; | |
32662 | } | |
32663 | ||
32664 | ||
32665 | static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32666 | PyObject *resultobj; | |
32667 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32668 | wxColour result; | |
32669 | PyObject * obj0 = 0 ; | |
32670 | char *kwnames[] = { | |
32671 | (char *) "self", NULL | |
32672 | }; | |
32673 | ||
32674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
32675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32677 | { | |
32678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32679 | result = (arg1)->GetBackgroundColour(); | |
32680 | ||
32681 | wxPyEndAllowThreads(__tstate); | |
32682 | if (PyErr_Occurred()) SWIG_fail; | |
32683 | } | |
32684 | { | |
32685 | wxColour * resultptr; | |
32686 | resultptr = new wxColour((wxColour &) result); | |
32687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
32688 | } | |
32689 | return resultobj; | |
32690 | fail: | |
32691 | return NULL; | |
32692 | } | |
32693 | ||
32694 | ||
32695 | static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32696 | PyObject *resultobj; | |
32697 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32698 | wxBitmap *arg2 = 0 ; | |
32699 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
32700 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
32701 | PyObject * obj0 = 0 ; | |
32702 | PyObject * obj1 = 0 ; | |
32703 | PyObject * obj2 = 0 ; | |
32704 | char *kwnames[] = { | |
32705 | (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL | |
32706 | }; | |
32707 | ||
32708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32713 | SWIG_fail; | |
32714 | if (arg2 == NULL) { | |
32715 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32716 | SWIG_fail; | |
32717 | } | |
32718 | if (obj2) { | |
32719 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
32720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32721 | SWIG_fail; | |
32722 | if (arg3 == NULL) { | |
32723 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32724 | SWIG_fail; | |
32725 | } | |
32726 | } | |
32727 | { | |
32728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32729 | (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
32730 | ||
32731 | wxPyEndAllowThreads(__tstate); | |
32732 | if (PyErr_Occurred()) SWIG_fail; | |
32733 | } | |
32734 | Py_INCREF(Py_None); resultobj = Py_None; | |
32735 | return resultobj; | |
32736 | fail: | |
32737 | return NULL; | |
32738 | } | |
32739 | ||
32740 | ||
32741 | static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32742 | PyObject *resultobj; | |
32743 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32744 | wxBitmap *arg2 = 0 ; | |
32745 | PyObject * obj0 = 0 ; | |
32746 | PyObject * obj1 = 0 ; | |
32747 | char *kwnames[] = { | |
32748 | (char *) "self",(char *) "bmpDisabled", NULL | |
32749 | }; | |
32750 | ||
32751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
32752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32755 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32756 | SWIG_fail; | |
32757 | if (arg2 == NULL) { | |
32758 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32759 | SWIG_fail; | |
32760 | } | |
32761 | { | |
32762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32763 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
32764 | ||
32765 | wxPyEndAllowThreads(__tstate); | |
32766 | if (PyErr_Occurred()) SWIG_fail; | |
32767 | } | |
32768 | Py_INCREF(Py_None); resultobj = Py_None; | |
32769 | return resultobj; | |
32770 | fail: | |
32771 | return NULL; | |
32772 | } | |
32773 | ||
32774 | ||
32775 | static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32776 | PyObject *resultobj; | |
32777 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32778 | wxBitmap *result; | |
32779 | PyObject * obj0 = 0 ; | |
32780 | char *kwnames[] = { | |
32781 | (char *) "self", NULL | |
32782 | }; | |
32783 | ||
32784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
32785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32787 | { | |
32788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32789 | { | |
32790 | wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap(); | |
32791 | result = (wxBitmap *) &_result_ref; | |
32792 | } | |
32793 | ||
32794 | wxPyEndAllowThreads(__tstate); | |
32795 | if (PyErr_Occurred()) SWIG_fail; | |
32796 | } | |
32797 | { | |
32798 | wxBitmap* resultptr = new wxBitmap(*result); | |
32799 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
32800 | } | |
32801 | return resultobj; | |
32802 | fail: | |
32803 | return NULL; | |
32804 | } | |
32805 | ||
32806 | ||
32807 | static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32808 | PyObject *resultobj; | |
32809 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32810 | int arg2 ; | |
32811 | PyObject * obj0 = 0 ; | |
32812 | PyObject * obj1 = 0 ; | |
32813 | char *kwnames[] = { | |
32814 | (char *) "self",(char *) "nWidth", NULL | |
32815 | }; | |
32816 | ||
32817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail; | |
32818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32820 | arg2 = (int) SWIG_AsInt(obj1); | |
32821 | if (PyErr_Occurred()) SWIG_fail; | |
32822 | { | |
32823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32824 | (arg1)->SetMarginWidth(arg2); | |
32825 | ||
32826 | wxPyEndAllowThreads(__tstate); | |
32827 | if (PyErr_Occurred()) SWIG_fail; | |
32828 | } | |
32829 | Py_INCREF(Py_None); resultobj = Py_None; | |
32830 | return resultobj; | |
32831 | fail: | |
32832 | return NULL; | |
32833 | } | |
32834 | ||
32835 | ||
32836 | static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32837 | PyObject *resultobj; | |
32838 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32839 | int result; | |
32840 | PyObject * obj0 = 0 ; | |
32841 | char *kwnames[] = { | |
32842 | (char *) "self", NULL | |
32843 | }; | |
32844 | ||
32845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail; | |
32846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32848 | { | |
32849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32850 | result = (int)(arg1)->GetMarginWidth(); | |
32851 | ||
32852 | wxPyEndAllowThreads(__tstate); | |
32853 | if (PyErr_Occurred()) SWIG_fail; | |
32854 | } | |
32855 | resultobj = SWIG_FromInt((int)result); | |
32856 | return resultobj; | |
32857 | fail: | |
32858 | return NULL; | |
32859 | } | |
32860 | ||
32861 | ||
32862 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32863 | PyObject *resultobj; | |
32864 | int result; | |
32865 | char *kwnames[] = { | |
32866 | NULL | |
32867 | }; | |
32868 | ||
32869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
32870 | { | |
32871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32872 | result = (int)wxMenuItem::GetDefaultMarginWidth(); | |
32873 | ||
32874 | wxPyEndAllowThreads(__tstate); | |
32875 | if (PyErr_Occurred()) SWIG_fail; | |
32876 | } | |
32877 | resultobj = SWIG_FromInt((int)result); | |
32878 | return resultobj; | |
32879 | fail: | |
32880 | return NULL; | |
32881 | } | |
32882 | ||
32883 | ||
32884 | static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32885 | PyObject *resultobj; | |
32886 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32887 | bool result; | |
32888 | PyObject * obj0 = 0 ; | |
32889 | char *kwnames[] = { | |
32890 | (char *) "self", NULL | |
32891 | }; | |
32892 | ||
32893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail; | |
32894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32896 | { | |
32897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32898 | result = (bool)(arg1)->IsOwnerDrawn(); | |
32899 | ||
32900 | wxPyEndAllowThreads(__tstate); | |
32901 | if (PyErr_Occurred()) SWIG_fail; | |
32902 | } | |
32903 | { | |
32904 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32905 | } | |
32906 | return resultobj; | |
32907 | fail: | |
32908 | return NULL; | |
32909 | } | |
32910 | ||
32911 | ||
32912 | static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32913 | PyObject *resultobj; | |
32914 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32915 | bool arg2 = (bool) True ; | |
32916 | PyObject * obj0 = 0 ; | |
32917 | PyObject * obj1 = 0 ; | |
32918 | char *kwnames[] = { | |
32919 | (char *) "self",(char *) "ownerDrawn", NULL | |
32920 | }; | |
32921 | ||
32922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail; | |
32923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32925 | if (obj1) { | |
32926 | arg2 = (bool) SWIG_AsBool(obj1); | |
32927 | if (PyErr_Occurred()) SWIG_fail; | |
32928 | } | |
32929 | { | |
32930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32931 | (arg1)->SetOwnerDrawn(arg2); | |
32932 | ||
32933 | wxPyEndAllowThreads(__tstate); | |
32934 | if (PyErr_Occurred()) SWIG_fail; | |
32935 | } | |
32936 | Py_INCREF(Py_None); resultobj = Py_None; | |
32937 | return resultobj; | |
32938 | fail: | |
32939 | return NULL; | |
32940 | } | |
32941 | ||
32942 | ||
32943 | static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32944 | PyObject *resultobj; | |
32945 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32946 | PyObject * obj0 = 0 ; | |
32947 | char *kwnames[] = { | |
32948 | (char *) "self", NULL | |
32949 | }; | |
32950 | ||
32951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail; | |
32952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32954 | { | |
32955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32956 | (arg1)->ResetOwnerDrawn(); | |
32957 | ||
32958 | wxPyEndAllowThreads(__tstate); | |
32959 | if (PyErr_Occurred()) SWIG_fail; | |
32960 | } | |
32961 | Py_INCREF(Py_None); resultobj = Py_None; | |
32962 | return resultobj; | |
32963 | fail: | |
32964 | return NULL; | |
32965 | } | |
32966 | ||
32967 | ||
32968 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
32969 | PyObject *resultobj; | |
32970 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32971 | wxBitmap *arg2 = 0 ; | |
32972 | PyObject * obj0 = 0 ; | |
32973 | PyObject * obj1 = 0 ; | |
32974 | char *kwnames[] = { | |
32975 | (char *) "self",(char *) "bitmap", NULL | |
32976 | }; | |
32977 | ||
32978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
32979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
32982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
32983 | SWIG_fail; | |
32984 | if (arg2 == NULL) { | |
32985 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
32986 | SWIG_fail; | |
32987 | } | |
32988 | { | |
32989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32990 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
32991 | ||
32992 | wxPyEndAllowThreads(__tstate); | |
32993 | if (PyErr_Occurred()) SWIG_fail; | |
32994 | } | |
32995 | Py_INCREF(Py_None); resultobj = Py_None; | |
32996 | return resultobj; | |
32997 | fail: | |
32998 | return NULL; | |
32999 | } | |
33000 | ||
33001 | ||
33002 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33003 | PyObject *resultobj; | |
33004 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33005 | wxBitmap *result; | |
33006 | PyObject * obj0 = 0 ; | |
33007 | char *kwnames[] = { | |
33008 | (char *) "self", NULL | |
33009 | }; | |
33010 | ||
33011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33014 | { | |
33015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33016 | { | |
33017 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33018 | result = (wxBitmap *) &_result_ref; | |
33019 | } | |
33020 | ||
33021 | wxPyEndAllowThreads(__tstate); | |
33022 | if (PyErr_Occurred()) SWIG_fail; | |
33023 | } | |
33024 | { | |
33025 | wxBitmap* resultptr = new wxBitmap(*result); | |
33026 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33027 | } | |
33028 | return resultobj; | |
33029 | fail: | |
33030 | return NULL; | |
33031 | } | |
33032 | ||
33033 | ||
33034 | static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) { | |
33035 | PyObject *obj; | |
33036 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33037 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33038 | Py_INCREF(obj); | |
33039 | return Py_BuildValue((char *)""); | |
33040 | } | |
33041 | static int _wrap_ControlNameStr_set(PyObject *_val) { | |
33042 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); | |
33043 | return 1; | |
33044 | } | |
33045 | ||
33046 | ||
33047 | static PyObject *_wrap_ControlNameStr_get() { | |
33048 | PyObject *pyobj; | |
33049 | ||
33050 | { | |
33051 | #if wxUSE_UNICODE | |
33052 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33053 | #else | |
33054 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33055 | #endif | |
33056 | } | |
33057 | return pyobj; | |
33058 | } | |
33059 | ||
33060 | ||
33061 | static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33062 | PyObject *resultobj; | |
33063 | wxWindow *arg1 = (wxWindow *) 0 ; | |
33064 | int arg2 ; | |
33065 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
33066 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33067 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33068 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33069 | long arg5 = (long) 0 ; | |
33070 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33071 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33072 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33073 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33074 | wxControl *result; | |
33075 | wxPoint temp3 ; | |
33076 | wxSize temp4 ; | |
33077 | bool temp7 = False ; | |
33078 | PyObject * obj0 = 0 ; | |
33079 | PyObject * obj1 = 0 ; | |
33080 | PyObject * obj2 = 0 ; | |
33081 | PyObject * obj3 = 0 ; | |
33082 | PyObject * obj4 = 0 ; | |
33083 | PyObject * obj5 = 0 ; | |
33084 | PyObject * obj6 = 0 ; | |
33085 | char *kwnames[] = { | |
33086 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33087 | }; | |
33088 | ||
33089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
33090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
33091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33092 | arg2 = (int) SWIG_AsInt(obj1); | |
33093 | if (PyErr_Occurred()) SWIG_fail; | |
33094 | if (obj2) { | |
33095 | { | |
33096 | arg3 = &temp3; | |
33097 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33098 | } | |
33099 | } | |
33100 | if (obj3) { | |
33101 | { | |
33102 | arg4 = &temp4; | |
33103 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33104 | } | |
33105 | } | |
33106 | if (obj4) { | |
33107 | arg5 = (long) SWIG_AsLong(obj4); | |
33108 | if (PyErr_Occurred()) SWIG_fail; | |
33109 | } | |
33110 | if (obj5) { | |
33111 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33113 | SWIG_fail; | |
33114 | if (arg6 == NULL) { | |
33115 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33116 | SWIG_fail; | |
33117 | } | |
33118 | } | |
33119 | if (obj6) { | |
33120 | { | |
33121 | arg7 = wxString_in_helper(obj6); | |
33122 | if (arg7 == NULL) SWIG_fail; | |
33123 | temp7 = True; | |
33124 | } | |
33125 | } | |
33126 | { | |
33127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33128 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33129 | ||
33130 | wxPyEndAllowThreads(__tstate); | |
33131 | if (PyErr_Occurred()) SWIG_fail; | |
33132 | } | |
33133 | { | |
33134 | resultobj = wxPyMake_wxObject(result); | |
33135 | } | |
33136 | { | |
33137 | if (temp7) | |
33138 | delete arg7; | |
33139 | } | |
33140 | return resultobj; | |
33141 | fail: | |
33142 | { | |
33143 | if (temp7) | |
33144 | delete arg7; | |
33145 | } | |
33146 | return NULL; | |
33147 | } | |
33148 | ||
33149 | ||
33150 | static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33151 | PyObject *resultobj; | |
33152 | wxControl *result; | |
33153 | char *kwnames[] = { | |
33154 | NULL | |
33155 | }; | |
33156 | ||
33157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33158 | { | |
33159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33160 | result = (wxControl *)new wxControl(); | |
33161 | ||
33162 | wxPyEndAllowThreads(__tstate); | |
33163 | if (PyErr_Occurred()) SWIG_fail; | |
33164 | } | |
33165 | { | |
33166 | resultobj = wxPyMake_wxObject(result); | |
33167 | } | |
33168 | return resultobj; | |
33169 | fail: | |
33170 | return NULL; | |
33171 | } | |
33172 | ||
33173 | ||
33174 | static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33175 | PyObject *resultobj; | |
33176 | wxControl *arg1 = (wxControl *) 0 ; | |
33177 | wxWindow *arg2 = (wxWindow *) 0 ; | |
33178 | int arg3 ; | |
33179 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
33180 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33181 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33182 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33183 | long arg6 = (long) 0 ; | |
33184 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33185 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33186 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33187 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33188 | bool result; | |
33189 | wxPoint temp4 ; | |
33190 | wxSize temp5 ; | |
33191 | bool temp8 = False ; | |
33192 | PyObject * obj0 = 0 ; | |
33193 | PyObject * obj1 = 0 ; | |
33194 | PyObject * obj2 = 0 ; | |
33195 | PyObject * obj3 = 0 ; | |
33196 | PyObject * obj4 = 0 ; | |
33197 | PyObject * obj5 = 0 ; | |
33198 | PyObject * obj6 = 0 ; | |
33199 | PyObject * obj7 = 0 ; | |
33200 | char *kwnames[] = { | |
33201 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33202 | }; | |
33203 | ||
33204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
33205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33207 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33209 | arg3 = (int) SWIG_AsInt(obj2); | |
33210 | if (PyErr_Occurred()) SWIG_fail; | |
33211 | if (obj3) { | |
33212 | { | |
33213 | arg4 = &temp4; | |
33214 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33215 | } | |
33216 | } | |
33217 | if (obj4) { | |
33218 | { | |
33219 | arg5 = &temp5; | |
33220 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33221 | } | |
33222 | } | |
33223 | if (obj5) { | |
33224 | arg6 = (long) SWIG_AsLong(obj5); | |
33225 | if (PyErr_Occurred()) SWIG_fail; | |
33226 | } | |
33227 | if (obj6) { | |
33228 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33230 | SWIG_fail; | |
33231 | if (arg7 == NULL) { | |
33232 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33233 | SWIG_fail; | |
33234 | } | |
33235 | } | |
33236 | if (obj7) { | |
33237 | { | |
33238 | arg8 = wxString_in_helper(obj7); | |
33239 | if (arg8 == NULL) SWIG_fail; | |
33240 | temp8 = True; | |
33241 | } | |
33242 | } | |
33243 | { | |
33244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33245 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33246 | ||
33247 | wxPyEndAllowThreads(__tstate); | |
33248 | if (PyErr_Occurred()) SWIG_fail; | |
33249 | } | |
33250 | { | |
33251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33252 | } | |
33253 | { | |
33254 | if (temp8) | |
33255 | delete arg8; | |
33256 | } | |
33257 | return resultobj; | |
33258 | fail: | |
33259 | { | |
33260 | if (temp8) | |
33261 | delete arg8; | |
33262 | } | |
33263 | return NULL; | |
33264 | } | |
33265 | ||
33266 | ||
33267 | static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33268 | PyObject *resultobj; | |
33269 | wxControl *arg1 = (wxControl *) 0 ; | |
33270 | wxCommandEvent *arg2 = 0 ; | |
33271 | PyObject * obj0 = 0 ; | |
33272 | PyObject * obj1 = 0 ; | |
33273 | char *kwnames[] = { | |
33274 | (char *) "self",(char *) "event", NULL | |
33275 | }; | |
33276 | ||
33277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33281 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33282 | SWIG_fail; | |
33283 | if (arg2 == NULL) { | |
33284 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33285 | SWIG_fail; | |
33286 | } | |
33287 | { | |
33288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33289 | (arg1)->Command(*arg2); | |
33290 | ||
33291 | wxPyEndAllowThreads(__tstate); | |
33292 | if (PyErr_Occurred()) SWIG_fail; | |
33293 | } | |
33294 | Py_INCREF(Py_None); resultobj = Py_None; | |
33295 | return resultobj; | |
33296 | fail: | |
33297 | return NULL; | |
33298 | } | |
33299 | ||
33300 | ||
33301 | static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33302 | PyObject *resultobj; | |
33303 | wxControl *arg1 = (wxControl *) 0 ; | |
33304 | wxString result; | |
33305 | PyObject * obj0 = 0 ; | |
33306 | char *kwnames[] = { | |
33307 | (char *) "self", NULL | |
33308 | }; | |
33309 | ||
33310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
33311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33313 | { | |
33314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33315 | result = (arg1)->GetLabel(); | |
33316 | ||
33317 | wxPyEndAllowThreads(__tstate); | |
33318 | if (PyErr_Occurred()) SWIG_fail; | |
33319 | } | |
33320 | { | |
33321 | #if wxUSE_UNICODE | |
33322 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33323 | #else | |
33324 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33325 | #endif | |
33326 | } | |
33327 | return resultobj; | |
33328 | fail: | |
33329 | return NULL; | |
33330 | } | |
33331 | ||
33332 | ||
33333 | static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33334 | PyObject *resultobj; | |
33335 | wxControl *arg1 = (wxControl *) 0 ; | |
33336 | wxString *arg2 = 0 ; | |
33337 | bool temp2 = False ; | |
33338 | PyObject * obj0 = 0 ; | |
33339 | PyObject * obj1 = 0 ; | |
33340 | char *kwnames[] = { | |
33341 | (char *) "self",(char *) "label", NULL | |
33342 | }; | |
33343 | ||
33344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
33345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33347 | { | |
33348 | arg2 = wxString_in_helper(obj1); | |
33349 | if (arg2 == NULL) SWIG_fail; | |
33350 | temp2 = True; | |
33351 | } | |
33352 | { | |
33353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33354 | (arg1)->SetLabel((wxString const &)*arg2); | |
33355 | ||
33356 | wxPyEndAllowThreads(__tstate); | |
33357 | if (PyErr_Occurred()) SWIG_fail; | |
33358 | } | |
33359 | Py_INCREF(Py_None); resultobj = Py_None; | |
33360 | { | |
33361 | if (temp2) | |
33362 | delete arg2; | |
33363 | } | |
33364 | return resultobj; | |
33365 | fail: | |
33366 | { | |
33367 | if (temp2) | |
33368 | delete arg2; | |
33369 | } | |
33370 | return NULL; | |
33371 | } | |
33372 | ||
33373 | ||
33374 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33375 | PyObject *resultobj; | |
33376 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33377 | wxVisualAttributes result; | |
33378 | PyObject * obj0 = 0 ; | |
33379 | char *kwnames[] = { | |
33380 | (char *) "variant", NULL | |
33381 | }; | |
33382 | ||
33383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33384 | if (obj0) { | |
33385 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
33386 | if (PyErr_Occurred()) SWIG_fail; | |
33387 | } | |
33388 | { | |
33389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33390 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33391 | ||
33392 | wxPyEndAllowThreads(__tstate); | |
33393 | if (PyErr_Occurred()) SWIG_fail; | |
33394 | } | |
33395 | { | |
33396 | wxVisualAttributes * resultptr; | |
33397 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33398 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33399 | } | |
33400 | return resultobj; | |
33401 | fail: | |
33402 | return NULL; | |
33403 | } | |
33404 | ||
33405 | ||
33406 | static PyObject * Control_swigregister(PyObject *self, PyObject *args) { | |
33407 | PyObject *obj; | |
33408 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33409 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33410 | Py_INCREF(obj); | |
33411 | return Py_BuildValue((char *)""); | |
33412 | } | |
33413 | static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33414 | PyObject *resultobj; | |
33415 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33416 | wxString *arg2 = 0 ; | |
33417 | PyObject *arg3 = (PyObject *) NULL ; | |
33418 | int result; | |
33419 | bool temp2 = False ; | |
33420 | PyObject * obj0 = 0 ; | |
33421 | PyObject * obj1 = 0 ; | |
33422 | PyObject * obj2 = 0 ; | |
33423 | char *kwnames[] = { | |
33424 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33425 | }; | |
33426 | ||
33427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33430 | { | |
33431 | arg2 = wxString_in_helper(obj1); | |
33432 | if (arg2 == NULL) SWIG_fail; | |
33433 | temp2 = True; | |
33434 | } | |
33435 | if (obj2) { | |
33436 | arg3 = obj2; | |
33437 | } | |
33438 | { | |
33439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33440 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33441 | ||
33442 | wxPyEndAllowThreads(__tstate); | |
33443 | if (PyErr_Occurred()) SWIG_fail; | |
33444 | } | |
33445 | resultobj = SWIG_FromInt((int)result); | |
33446 | { | |
33447 | if (temp2) | |
33448 | delete arg2; | |
33449 | } | |
33450 | return resultobj; | |
33451 | fail: | |
33452 | { | |
33453 | if (temp2) | |
33454 | delete arg2; | |
33455 | } | |
33456 | return NULL; | |
33457 | } | |
33458 | ||
33459 | ||
33460 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33461 | PyObject *resultobj; | |
33462 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33463 | wxArrayString *arg2 = 0 ; | |
33464 | bool temp2 = False ; | |
33465 | PyObject * obj0 = 0 ; | |
33466 | PyObject * obj1 = 0 ; | |
33467 | char *kwnames[] = { | |
33468 | (char *) "self",(char *) "strings", NULL | |
33469 | }; | |
33470 | ||
33471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
33472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33474 | { | |
33475 | if (! PySequence_Check(obj1)) { | |
33476 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33477 | SWIG_fail; | |
33478 | } | |
33479 | arg2 = new wxArrayString; | |
33480 | temp2 = True; | |
33481 | int i, len=PySequence_Length(obj1); | |
33482 | for (i=0; i<len; i++) { | |
33483 | PyObject* item = PySequence_GetItem(obj1, i); | |
33484 | #if wxUSE_UNICODE | |
33485 | PyObject* str = PyObject_Unicode(item); | |
33486 | #else | |
33487 | PyObject* str = PyObject_Str(item); | |
33488 | #endif | |
33489 | if (PyErr_Occurred()) SWIG_fail; | |
33490 | arg2->Add(Py2wxString(str)); | |
33491 | Py_DECREF(item); | |
33492 | Py_DECREF(str); | |
33493 | } | |
33494 | } | |
33495 | { | |
33496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33497 | (arg1)->Append((wxArrayString const &)*arg2); | |
33498 | ||
33499 | wxPyEndAllowThreads(__tstate); | |
33500 | if (PyErr_Occurred()) SWIG_fail; | |
33501 | } | |
33502 | Py_INCREF(Py_None); resultobj = Py_None; | |
33503 | { | |
33504 | if (temp2) delete arg2; | |
33505 | } | |
33506 | return resultobj; | |
33507 | fail: | |
33508 | { | |
33509 | if (temp2) delete arg2; | |
33510 | } | |
33511 | return NULL; | |
33512 | } | |
33513 | ||
33514 | ||
33515 | static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33516 | PyObject *resultobj; | |
33517 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33518 | wxString *arg2 = 0 ; | |
33519 | int arg3 ; | |
33520 | PyObject *arg4 = (PyObject *) NULL ; | |
33521 | int result; | |
33522 | bool temp2 = False ; | |
33523 | PyObject * obj0 = 0 ; | |
33524 | PyObject * obj1 = 0 ; | |
33525 | PyObject * obj2 = 0 ; | |
33526 | PyObject * obj3 = 0 ; | |
33527 | char *kwnames[] = { | |
33528 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33529 | }; | |
33530 | ||
33531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33534 | { | |
33535 | arg2 = wxString_in_helper(obj1); | |
33536 | if (arg2 == NULL) SWIG_fail; | |
33537 | temp2 = True; | |
33538 | } | |
33539 | arg3 = (int) SWIG_AsInt(obj2); | |
33540 | if (PyErr_Occurred()) SWIG_fail; | |
33541 | if (obj3) { | |
33542 | arg4 = obj3; | |
33543 | } | |
33544 | { | |
33545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33546 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33547 | ||
33548 | wxPyEndAllowThreads(__tstate); | |
33549 | if (PyErr_Occurred()) SWIG_fail; | |
33550 | } | |
33551 | resultobj = SWIG_FromInt((int)result); | |
33552 | { | |
33553 | if (temp2) | |
33554 | delete arg2; | |
33555 | } | |
33556 | return resultobj; | |
33557 | fail: | |
33558 | { | |
33559 | if (temp2) | |
33560 | delete arg2; | |
33561 | } | |
33562 | return NULL; | |
33563 | } | |
33564 | ||
33565 | ||
33566 | static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33567 | PyObject *resultobj; | |
33568 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33569 | PyObject * obj0 = 0 ; | |
33570 | char *kwnames[] = { | |
33571 | (char *) "self", NULL | |
33572 | }; | |
33573 | ||
33574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33577 | { | |
33578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33579 | (arg1)->Clear(); | |
33580 | ||
33581 | wxPyEndAllowThreads(__tstate); | |
33582 | if (PyErr_Occurred()) SWIG_fail; | |
33583 | } | |
33584 | Py_INCREF(Py_None); resultobj = Py_None; | |
33585 | return resultobj; | |
33586 | fail: | |
33587 | return NULL; | |
33588 | } | |
33589 | ||
33590 | ||
33591 | static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33592 | PyObject *resultobj; | |
33593 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33594 | int arg2 ; | |
33595 | PyObject * obj0 = 0 ; | |
33596 | PyObject * obj1 = 0 ; | |
33597 | char *kwnames[] = { | |
33598 | (char *) "self",(char *) "n", NULL | |
33599 | }; | |
33600 | ||
33601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
33602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33604 | arg2 = (int) SWIG_AsInt(obj1); | |
33605 | if (PyErr_Occurred()) SWIG_fail; | |
33606 | { | |
33607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33608 | (arg1)->Delete(arg2); | |
33609 | ||
33610 | wxPyEndAllowThreads(__tstate); | |
33611 | if (PyErr_Occurred()) SWIG_fail; | |
33612 | } | |
33613 | Py_INCREF(Py_None); resultobj = Py_None; | |
33614 | return resultobj; | |
33615 | fail: | |
33616 | return NULL; | |
33617 | } | |
33618 | ||
33619 | ||
33620 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33621 | PyObject *resultobj; | |
33622 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33623 | int result; | |
33624 | PyObject * obj0 = 0 ; | |
33625 | char *kwnames[] = { | |
33626 | (char *) "self", NULL | |
33627 | }; | |
33628 | ||
33629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
33630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33632 | { | |
33633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33634 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
33635 | ||
33636 | wxPyEndAllowThreads(__tstate); | |
33637 | if (PyErr_Occurred()) SWIG_fail; | |
33638 | } | |
33639 | resultobj = SWIG_FromInt((int)result); | |
33640 | return resultobj; | |
33641 | fail: | |
33642 | return NULL; | |
33643 | } | |
33644 | ||
33645 | ||
33646 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33647 | PyObject *resultobj; | |
33648 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33649 | bool result; | |
33650 | PyObject * obj0 = 0 ; | |
33651 | char *kwnames[] = { | |
33652 | (char *) "self", NULL | |
33653 | }; | |
33654 | ||
33655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
33656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33658 | { | |
33659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33660 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
33661 | ||
33662 | wxPyEndAllowThreads(__tstate); | |
33663 | if (PyErr_Occurred()) SWIG_fail; | |
33664 | } | |
33665 | { | |
33666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33667 | } | |
33668 | return resultobj; | |
33669 | fail: | |
33670 | return NULL; | |
33671 | } | |
33672 | ||
33673 | ||
33674 | static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33675 | PyObject *resultobj; | |
33676 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33677 | int arg2 ; | |
33678 | wxString result; | |
33679 | PyObject * obj0 = 0 ; | |
33680 | PyObject * obj1 = 0 ; | |
33681 | char *kwnames[] = { | |
33682 | (char *) "self",(char *) "n", NULL | |
33683 | }; | |
33684 | ||
33685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
33686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33688 | arg2 = (int) SWIG_AsInt(obj1); | |
33689 | if (PyErr_Occurred()) SWIG_fail; | |
33690 | { | |
33691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33692 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
33693 | ||
33694 | wxPyEndAllowThreads(__tstate); | |
33695 | if (PyErr_Occurred()) SWIG_fail; | |
33696 | } | |
33697 | { | |
33698 | #if wxUSE_UNICODE | |
33699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33700 | #else | |
33701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33702 | #endif | |
33703 | } | |
33704 | return resultobj; | |
33705 | fail: | |
33706 | return NULL; | |
33707 | } | |
33708 | ||
33709 | ||
33710 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33711 | PyObject *resultobj; | |
33712 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33713 | wxArrayString result; | |
33714 | PyObject * obj0 = 0 ; | |
33715 | char *kwnames[] = { | |
33716 | (char *) "self", NULL | |
33717 | }; | |
33718 | ||
33719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
33720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33722 | { | |
33723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33724 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
33725 | ||
33726 | wxPyEndAllowThreads(__tstate); | |
33727 | if (PyErr_Occurred()) SWIG_fail; | |
33728 | } | |
33729 | { | |
33730 | resultobj = wxArrayString2PyList_helper(result); | |
33731 | } | |
33732 | return resultobj; | |
33733 | fail: | |
33734 | return NULL; | |
33735 | } | |
33736 | ||
33737 | ||
33738 | static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33739 | PyObject *resultobj; | |
33740 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33741 | int arg2 ; | |
33742 | wxString *arg3 = 0 ; | |
33743 | bool temp3 = False ; | |
33744 | PyObject * obj0 = 0 ; | |
33745 | PyObject * obj1 = 0 ; | |
33746 | PyObject * obj2 = 0 ; | |
33747 | char *kwnames[] = { | |
33748 | (char *) "self",(char *) "n",(char *) "s", NULL | |
33749 | }; | |
33750 | ||
33751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33754 | arg2 = (int) SWIG_AsInt(obj1); | |
33755 | if (PyErr_Occurred()) SWIG_fail; | |
33756 | { | |
33757 | arg3 = wxString_in_helper(obj2); | |
33758 | if (arg3 == NULL) SWIG_fail; | |
33759 | temp3 = True; | |
33760 | } | |
33761 | { | |
33762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33763 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
33764 | ||
33765 | wxPyEndAllowThreads(__tstate); | |
33766 | if (PyErr_Occurred()) SWIG_fail; | |
33767 | } | |
33768 | Py_INCREF(Py_None); resultobj = Py_None; | |
33769 | { | |
33770 | if (temp3) | |
33771 | delete arg3; | |
33772 | } | |
33773 | return resultobj; | |
33774 | fail: | |
33775 | { | |
33776 | if (temp3) | |
33777 | delete arg3; | |
33778 | } | |
33779 | return NULL; | |
33780 | } | |
33781 | ||
33782 | ||
33783 | static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33784 | PyObject *resultobj; | |
33785 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33786 | wxString *arg2 = 0 ; | |
33787 | int result; | |
33788 | bool temp2 = False ; | |
33789 | PyObject * obj0 = 0 ; | |
33790 | PyObject * obj1 = 0 ; | |
33791 | char *kwnames[] = { | |
33792 | (char *) "self",(char *) "s", NULL | |
33793 | }; | |
33794 | ||
33795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
33796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33798 | { | |
33799 | arg2 = wxString_in_helper(obj1); | |
33800 | if (arg2 == NULL) SWIG_fail; | |
33801 | temp2 = True; | |
33802 | } | |
33803 | { | |
33804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33805 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
33806 | ||
33807 | wxPyEndAllowThreads(__tstate); | |
33808 | if (PyErr_Occurred()) SWIG_fail; | |
33809 | } | |
33810 | resultobj = SWIG_FromInt((int)result); | |
33811 | { | |
33812 | if (temp2) | |
33813 | delete arg2; | |
33814 | } | |
33815 | return resultobj; | |
33816 | fail: | |
33817 | { | |
33818 | if (temp2) | |
33819 | delete arg2; | |
33820 | } | |
33821 | return NULL; | |
33822 | } | |
33823 | ||
33824 | ||
33825 | static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33826 | PyObject *resultobj; | |
33827 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33828 | int arg2 ; | |
33829 | PyObject * obj0 = 0 ; | |
33830 | PyObject * obj1 = 0 ; | |
33831 | char *kwnames[] = { | |
33832 | (char *) "self",(char *) "n", NULL | |
33833 | }; | |
33834 | ||
33835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
33836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33838 | arg2 = (int) SWIG_AsInt(obj1); | |
33839 | if (PyErr_Occurred()) SWIG_fail; | |
33840 | { | |
33841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33842 | (arg1)->Select(arg2); | |
33843 | ||
33844 | wxPyEndAllowThreads(__tstate); | |
33845 | if (PyErr_Occurred()) SWIG_fail; | |
33846 | } | |
33847 | Py_INCREF(Py_None); resultobj = Py_None; | |
33848 | return resultobj; | |
33849 | fail: | |
33850 | return NULL; | |
33851 | } | |
33852 | ||
33853 | ||
33854 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33855 | PyObject *resultobj; | |
33856 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33857 | int result; | |
33858 | PyObject * obj0 = 0 ; | |
33859 | char *kwnames[] = { | |
33860 | (char *) "self", NULL | |
33861 | }; | |
33862 | ||
33863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
33864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33866 | { | |
33867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33868 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
33869 | ||
33870 | wxPyEndAllowThreads(__tstate); | |
33871 | if (PyErr_Occurred()) SWIG_fail; | |
33872 | } | |
33873 | resultobj = SWIG_FromInt((int)result); | |
33874 | return resultobj; | |
33875 | fail: | |
33876 | return NULL; | |
33877 | } | |
33878 | ||
33879 | ||
33880 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33881 | PyObject *resultobj; | |
33882 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33883 | wxString result; | |
33884 | PyObject * obj0 = 0 ; | |
33885 | char *kwnames[] = { | |
33886 | (char *) "self", NULL | |
33887 | }; | |
33888 | ||
33889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
33890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33892 | { | |
33893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33894 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
33895 | ||
33896 | wxPyEndAllowThreads(__tstate); | |
33897 | if (PyErr_Occurred()) SWIG_fail; | |
33898 | } | |
33899 | { | |
33900 | #if wxUSE_UNICODE | |
33901 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33902 | #else | |
33903 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33904 | #endif | |
33905 | } | |
33906 | return resultobj; | |
33907 | fail: | |
33908 | return NULL; | |
33909 | } | |
33910 | ||
33911 | ||
33912 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33913 | PyObject *resultobj; | |
33914 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33915 | int arg2 ; | |
33916 | PyObject *result; | |
33917 | PyObject * obj0 = 0 ; | |
33918 | PyObject * obj1 = 0 ; | |
33919 | char *kwnames[] = { | |
33920 | (char *) "self",(char *) "n", NULL | |
33921 | }; | |
33922 | ||
33923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
33924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33926 | arg2 = (int) SWIG_AsInt(obj1); | |
33927 | if (PyErr_Occurred()) SWIG_fail; | |
33928 | { | |
33929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33930 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
33931 | ||
33932 | wxPyEndAllowThreads(__tstate); | |
33933 | if (PyErr_Occurred()) SWIG_fail; | |
33934 | } | |
33935 | resultobj = result; | |
33936 | return resultobj; | |
33937 | fail: | |
33938 | return NULL; | |
33939 | } | |
33940 | ||
33941 | ||
33942 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33943 | PyObject *resultobj; | |
33944 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33945 | int arg2 ; | |
33946 | PyObject *arg3 = (PyObject *) 0 ; | |
33947 | PyObject * obj0 = 0 ; | |
33948 | PyObject * obj1 = 0 ; | |
33949 | PyObject * obj2 = 0 ; | |
33950 | char *kwnames[] = { | |
33951 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
33952 | }; | |
33953 | ||
33954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33957 | arg2 = (int) SWIG_AsInt(obj1); | |
33958 | if (PyErr_Occurred()) SWIG_fail; | |
33959 | arg3 = obj2; | |
33960 | { | |
33961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33962 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
33963 | ||
33964 | wxPyEndAllowThreads(__tstate); | |
33965 | if (PyErr_Occurred()) SWIG_fail; | |
33966 | } | |
33967 | Py_INCREF(Py_None); resultobj = Py_None; | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | return NULL; | |
33971 | } | |
33972 | ||
33973 | ||
33974 | static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) { | |
33975 | PyObject *obj; | |
33976 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33977 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
33978 | Py_INCREF(obj); | |
33979 | return Py_BuildValue((char *)""); | |
33980 | } | |
33981 | static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) { | |
33982 | PyObject *obj; | |
33983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33984 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
33985 | Py_INCREF(obj); | |
33986 | return Py_BuildValue((char *)""); | |
33987 | } | |
33988 | static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
33989 | PyObject *resultobj; | |
33990 | wxSizerItem *result; | |
33991 | char *kwnames[] = { | |
33992 | NULL | |
33993 | }; | |
33994 | ||
33995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
33996 | { | |
33997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33998 | result = (wxSizerItem *)new wxSizerItem(); | |
33999 | ||
34000 | wxPyEndAllowThreads(__tstate); | |
34001 | if (PyErr_Occurred()) SWIG_fail; | |
34002 | } | |
34003 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34004 | return resultobj; | |
34005 | fail: | |
34006 | return NULL; | |
34007 | } | |
34008 | ||
34009 | ||
34010 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34011 | PyObject *resultobj; | |
34012 | int arg1 ; | |
34013 | int arg2 ; | |
34014 | int arg3 ; | |
34015 | int arg4 ; | |
34016 | int arg5 ; | |
34017 | wxObject *arg6 = (wxObject *) 0 ; | |
34018 | wxSizerItem *result; | |
34019 | PyObject * obj0 = 0 ; | |
34020 | PyObject * obj1 = 0 ; | |
34021 | PyObject * obj2 = 0 ; | |
34022 | PyObject * obj3 = 0 ; | |
34023 | PyObject * obj4 = 0 ; | |
34024 | PyObject * obj5 = 0 ; | |
34025 | char *kwnames[] = { | |
34026 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34027 | }; | |
34028 | ||
34029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
34030 | arg1 = (int) SWIG_AsInt(obj0); | |
34031 | if (PyErr_Occurred()) SWIG_fail; | |
34032 | arg2 = (int) SWIG_AsInt(obj1); | |
34033 | if (PyErr_Occurred()) SWIG_fail; | |
34034 | arg3 = (int) SWIG_AsInt(obj2); | |
34035 | if (PyErr_Occurred()) SWIG_fail; | |
34036 | arg4 = (int) SWIG_AsInt(obj3); | |
34037 | if (PyErr_Occurred()) SWIG_fail; | |
34038 | arg5 = (int) SWIG_AsInt(obj4); | |
34039 | if (PyErr_Occurred()) SWIG_fail; | |
34040 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
34041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34042 | { | |
34043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34044 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); | |
34045 | ||
34046 | wxPyEndAllowThreads(__tstate); | |
34047 | if (PyErr_Occurred()) SWIG_fail; | |
34048 | } | |
34049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34050 | return resultobj; | |
34051 | fail: | |
34052 | return NULL; | |
34053 | } | |
34054 | ||
34055 | ||
34056 | static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34057 | PyObject *resultobj; | |
34058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
34059 | int arg2 ; | |
34060 | int arg3 ; | |
34061 | int arg4 ; | |
34062 | wxObject *arg5 = (wxObject *) 0 ; | |
34063 | wxSizerItem *result; | |
34064 | PyObject * obj0 = 0 ; | |
34065 | PyObject * obj1 = 0 ; | |
34066 | PyObject * obj2 = 0 ; | |
34067 | PyObject * obj3 = 0 ; | |
34068 | PyObject * obj4 = 0 ; | |
34069 | char *kwnames[] = { | |
34070 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34071 | }; | |
34072 | ||
34073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34076 | arg2 = (int) SWIG_AsInt(obj1); | |
34077 | if (PyErr_Occurred()) SWIG_fail; | |
34078 | arg3 = (int) SWIG_AsInt(obj2); | |
34079 | if (PyErr_Occurred()) SWIG_fail; | |
34080 | arg4 = (int) SWIG_AsInt(obj3); | |
34081 | if (PyErr_Occurred()) SWIG_fail; | |
34082 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
34083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34084 | { | |
34085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34086 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
34087 | ||
34088 | wxPyEndAllowThreads(__tstate); | |
34089 | if (PyErr_Occurred()) SWIG_fail; | |
34090 | } | |
34091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34092 | return resultobj; | |
34093 | fail: | |
34094 | return NULL; | |
34095 | } | |
34096 | ||
34097 | ||
34098 | static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34099 | PyObject *resultobj; | |
34100 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34101 | int arg2 ; | |
34102 | int arg3 ; | |
34103 | int arg4 ; | |
34104 | wxObject *arg5 = (wxObject *) 0 ; | |
34105 | wxSizerItem *result; | |
34106 | PyObject * obj0 = 0 ; | |
34107 | PyObject * obj1 = 0 ; | |
34108 | PyObject * obj2 = 0 ; | |
34109 | PyObject * obj3 = 0 ; | |
34110 | PyObject * obj4 = 0 ; | |
34111 | char *kwnames[] = { | |
34112 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34113 | }; | |
34114 | ||
34115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
34116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
34117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34118 | arg2 = (int) SWIG_AsInt(obj1); | |
34119 | if (PyErr_Occurred()) SWIG_fail; | |
34120 | arg3 = (int) SWIG_AsInt(obj2); | |
34121 | if (PyErr_Occurred()) SWIG_fail; | |
34122 | arg4 = (int) SWIG_AsInt(obj3); | |
34123 | if (PyErr_Occurred()) SWIG_fail; | |
34124 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxObject, | |
34125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34126 | { | |
34127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34128 | result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5); | |
34129 | ||
34130 | wxPyEndAllowThreads(__tstate); | |
34131 | if (PyErr_Occurred()) SWIG_fail; | |
34132 | } | |
34133 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34134 | return resultobj; | |
34135 | fail: | |
34136 | return NULL; | |
34137 | } | |
34138 | ||
34139 | ||
34140 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34141 | PyObject *resultobj; | |
34142 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34143 | PyObject * obj0 = 0 ; | |
34144 | char *kwnames[] = { | |
34145 | (char *) "self", NULL | |
34146 | }; | |
34147 | ||
34148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34151 | { | |
34152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34153 | (arg1)->DeleteWindows(); | |
34154 | ||
34155 | wxPyEndAllowThreads(__tstate); | |
34156 | if (PyErr_Occurred()) SWIG_fail; | |
34157 | } | |
34158 | Py_INCREF(Py_None); resultobj = Py_None; | |
34159 | return resultobj; | |
34160 | fail: | |
34161 | return NULL; | |
34162 | } | |
34163 | ||
34164 | ||
34165 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34166 | PyObject *resultobj; | |
34167 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34168 | PyObject * obj0 = 0 ; | |
34169 | char *kwnames[] = { | |
34170 | (char *) "self", NULL | |
34171 | }; | |
34172 | ||
34173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34176 | { | |
34177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34178 | (arg1)->DetachSizer(); | |
34179 | ||
34180 | wxPyEndAllowThreads(__tstate); | |
34181 | if (PyErr_Occurred()) SWIG_fail; | |
34182 | } | |
34183 | Py_INCREF(Py_None); resultobj = Py_None; | |
34184 | return resultobj; | |
34185 | fail: | |
34186 | return NULL; | |
34187 | } | |
34188 | ||
34189 | ||
34190 | static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34191 | PyObject *resultobj; | |
34192 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34193 | wxSize result; | |
34194 | PyObject * obj0 = 0 ; | |
34195 | char *kwnames[] = { | |
34196 | (char *) "self", NULL | |
34197 | }; | |
34198 | ||
34199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34202 | { | |
34203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34204 | result = (arg1)->GetSize(); | |
34205 | ||
34206 | wxPyEndAllowThreads(__tstate); | |
34207 | if (PyErr_Occurred()) SWIG_fail; | |
34208 | } | |
34209 | { | |
34210 | wxSize * resultptr; | |
34211 | resultptr = new wxSize((wxSize &) result); | |
34212 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34213 | } | |
34214 | return resultobj; | |
34215 | fail: | |
34216 | return NULL; | |
34217 | } | |
34218 | ||
34219 | ||
34220 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34221 | PyObject *resultobj; | |
34222 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34223 | wxSize result; | |
34224 | PyObject * obj0 = 0 ; | |
34225 | char *kwnames[] = { | |
34226 | (char *) "self", NULL | |
34227 | }; | |
34228 | ||
34229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34232 | { | |
34233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34234 | result = (arg1)->CalcMin(); | |
34235 | ||
34236 | wxPyEndAllowThreads(__tstate); | |
34237 | if (PyErr_Occurred()) SWIG_fail; | |
34238 | } | |
34239 | { | |
34240 | wxSize * resultptr; | |
34241 | resultptr = new wxSize((wxSize &) result); | |
34242 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34243 | } | |
34244 | return resultobj; | |
34245 | fail: | |
34246 | return NULL; | |
34247 | } | |
34248 | ||
34249 | ||
34250 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34251 | PyObject *resultobj; | |
34252 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34253 | wxPoint arg2 ; | |
34254 | wxSize arg3 ; | |
34255 | wxPoint *argp2 ; | |
34256 | wxSize *argp3 ; | |
34257 | PyObject * obj0 = 0 ; | |
34258 | PyObject * obj1 = 0 ; | |
34259 | PyObject * obj2 = 0 ; | |
34260 | char *kwnames[] = { | |
34261 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34262 | }; | |
34263 | ||
34264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34267 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34268 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34269 | arg2 = *argp2; | |
34270 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34271 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34272 | arg3 = *argp3; | |
34273 | { | |
34274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34275 | (arg1)->SetDimension(arg2,arg3); | |
34276 | ||
34277 | wxPyEndAllowThreads(__tstate); | |
34278 | if (PyErr_Occurred()) SWIG_fail; | |
34279 | } | |
34280 | Py_INCREF(Py_None); resultobj = Py_None; | |
34281 | return resultobj; | |
34282 | fail: | |
34283 | return NULL; | |
34284 | } | |
34285 | ||
34286 | ||
34287 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34288 | PyObject *resultobj; | |
34289 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34290 | wxSize result; | |
34291 | PyObject * obj0 = 0 ; | |
34292 | char *kwnames[] = { | |
34293 | (char *) "self", NULL | |
34294 | }; | |
34295 | ||
34296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
34297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34299 | { | |
34300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34301 | result = (arg1)->GetMinSize(); | |
34302 | ||
34303 | wxPyEndAllowThreads(__tstate); | |
34304 | if (PyErr_Occurred()) SWIG_fail; | |
34305 | } | |
34306 | { | |
34307 | wxSize * resultptr; | |
34308 | resultptr = new wxSize((wxSize &) result); | |
34309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34310 | } | |
34311 | return resultobj; | |
34312 | fail: | |
34313 | return NULL; | |
34314 | } | |
34315 | ||
34316 | ||
34317 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34318 | PyObject *resultobj; | |
34319 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34320 | int arg2 ; | |
34321 | int arg3 ; | |
34322 | PyObject * obj0 = 0 ; | |
34323 | PyObject * obj1 = 0 ; | |
34324 | PyObject * obj2 = 0 ; | |
34325 | char *kwnames[] = { | |
34326 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34327 | }; | |
34328 | ||
34329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34332 | arg2 = (int) SWIG_AsInt(obj1); | |
34333 | if (PyErr_Occurred()) SWIG_fail; | |
34334 | arg3 = (int) SWIG_AsInt(obj2); | |
34335 | if (PyErr_Occurred()) SWIG_fail; | |
34336 | { | |
34337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34338 | (arg1)->SetInitSize(arg2,arg3); | |
34339 | ||
34340 | wxPyEndAllowThreads(__tstate); | |
34341 | if (PyErr_Occurred()) SWIG_fail; | |
34342 | } | |
34343 | Py_INCREF(Py_None); resultobj = Py_None; | |
34344 | return resultobj; | |
34345 | fail: | |
34346 | return NULL; | |
34347 | } | |
34348 | ||
34349 | ||
34350 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34351 | PyObject *resultobj; | |
34352 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34353 | int arg2 ; | |
34354 | int arg3 ; | |
34355 | PyObject * obj0 = 0 ; | |
34356 | PyObject * obj1 = 0 ; | |
34357 | PyObject * obj2 = 0 ; | |
34358 | char *kwnames[] = { | |
34359 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34360 | }; | |
34361 | ||
34362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34365 | arg2 = (int) SWIG_AsInt(obj1); | |
34366 | if (PyErr_Occurred()) SWIG_fail; | |
34367 | arg3 = (int) SWIG_AsInt(obj2); | |
34368 | if (PyErr_Occurred()) SWIG_fail; | |
34369 | { | |
34370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34371 | (arg1)->SetRatio(arg2,arg3); | |
34372 | ||
34373 | wxPyEndAllowThreads(__tstate); | |
34374 | if (PyErr_Occurred()) SWIG_fail; | |
34375 | } | |
34376 | Py_INCREF(Py_None); resultobj = Py_None; | |
34377 | return resultobj; | |
34378 | fail: | |
34379 | return NULL; | |
34380 | } | |
34381 | ||
34382 | ||
34383 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34384 | PyObject *resultobj; | |
34385 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34386 | wxSize arg2 ; | |
34387 | wxSize *argp2 ; | |
34388 | PyObject * obj0 = 0 ; | |
34389 | PyObject * obj1 = 0 ; | |
34390 | char *kwnames[] = { | |
34391 | (char *) "self",(char *) "size", NULL | |
34392 | }; | |
34393 | ||
34394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
34395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34397 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34398 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34399 | arg2 = *argp2; | |
34400 | { | |
34401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34402 | (arg1)->SetRatio(arg2); | |
34403 | ||
34404 | wxPyEndAllowThreads(__tstate); | |
34405 | if (PyErr_Occurred()) SWIG_fail; | |
34406 | } | |
34407 | Py_INCREF(Py_None); resultobj = Py_None; | |
34408 | return resultobj; | |
34409 | fail: | |
34410 | return NULL; | |
34411 | } | |
34412 | ||
34413 | ||
34414 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34415 | PyObject *resultobj; | |
34416 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34417 | float arg2 ; | |
34418 | PyObject * obj0 = 0 ; | |
34419 | PyObject * obj1 = 0 ; | |
34420 | char *kwnames[] = { | |
34421 | (char *) "self",(char *) "ratio", NULL | |
34422 | }; | |
34423 | ||
34424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
34425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34427 | arg2 = (float) SWIG_AsFloat(obj1); | |
34428 | if (PyErr_Occurred()) SWIG_fail; | |
34429 | { | |
34430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34431 | (arg1)->SetRatio(arg2); | |
34432 | ||
34433 | wxPyEndAllowThreads(__tstate); | |
34434 | if (PyErr_Occurred()) SWIG_fail; | |
34435 | } | |
34436 | Py_INCREF(Py_None); resultobj = Py_None; | |
34437 | return resultobj; | |
34438 | fail: | |
34439 | return NULL; | |
34440 | } | |
34441 | ||
34442 | ||
34443 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34444 | PyObject *resultobj; | |
34445 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34446 | float result; | |
34447 | PyObject * obj0 = 0 ; | |
34448 | char *kwnames[] = { | |
34449 | (char *) "self", NULL | |
34450 | }; | |
34451 | ||
34452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
34453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34455 | { | |
34456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34457 | result = (float)(arg1)->GetRatio(); | |
34458 | ||
34459 | wxPyEndAllowThreads(__tstate); | |
34460 | if (PyErr_Occurred()) SWIG_fail; | |
34461 | } | |
34462 | resultobj = SWIG_FromFloat((float)result); | |
34463 | return resultobj; | |
34464 | fail: | |
34465 | return NULL; | |
34466 | } | |
34467 | ||
34468 | ||
34469 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34470 | PyObject *resultobj; | |
34471 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34472 | bool result; | |
34473 | PyObject * obj0 = 0 ; | |
34474 | char *kwnames[] = { | |
34475 | (char *) "self", NULL | |
34476 | }; | |
34477 | ||
34478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
34479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34481 | { | |
34482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34483 | result = (bool)(arg1)->IsWindow(); | |
34484 | ||
34485 | wxPyEndAllowThreads(__tstate); | |
34486 | if (PyErr_Occurred()) SWIG_fail; | |
34487 | } | |
34488 | { | |
34489 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34490 | } | |
34491 | return resultobj; | |
34492 | fail: | |
34493 | return NULL; | |
34494 | } | |
34495 | ||
34496 | ||
34497 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34498 | PyObject *resultobj; | |
34499 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34500 | bool result; | |
34501 | PyObject * obj0 = 0 ; | |
34502 | char *kwnames[] = { | |
34503 | (char *) "self", NULL | |
34504 | }; | |
34505 | ||
34506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34509 | { | |
34510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34511 | result = (bool)(arg1)->IsSizer(); | |
34512 | ||
34513 | wxPyEndAllowThreads(__tstate); | |
34514 | if (PyErr_Occurred()) SWIG_fail; | |
34515 | } | |
34516 | { | |
34517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34518 | } | |
34519 | return resultobj; | |
34520 | fail: | |
34521 | return NULL; | |
34522 | } | |
34523 | ||
34524 | ||
34525 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34526 | PyObject *resultobj; | |
34527 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34528 | bool result; | |
34529 | PyObject * obj0 = 0 ; | |
34530 | char *kwnames[] = { | |
34531 | (char *) "self", NULL | |
34532 | }; | |
34533 | ||
34534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34537 | { | |
34538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34539 | result = (bool)(arg1)->IsSpacer(); | |
34540 | ||
34541 | wxPyEndAllowThreads(__tstate); | |
34542 | if (PyErr_Occurred()) SWIG_fail; | |
34543 | } | |
34544 | { | |
34545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34546 | } | |
34547 | return resultobj; | |
34548 | fail: | |
34549 | return NULL; | |
34550 | } | |
34551 | ||
34552 | ||
34553 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34554 | PyObject *resultobj; | |
34555 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34556 | int arg2 ; | |
34557 | PyObject * obj0 = 0 ; | |
34558 | PyObject * obj1 = 0 ; | |
34559 | char *kwnames[] = { | |
34560 | (char *) "self",(char *) "proportion", NULL | |
34561 | }; | |
34562 | ||
34563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
34564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34566 | arg2 = (int) SWIG_AsInt(obj1); | |
34567 | if (PyErr_Occurred()) SWIG_fail; | |
34568 | { | |
34569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34570 | (arg1)->SetProportion(arg2); | |
34571 | ||
34572 | wxPyEndAllowThreads(__tstate); | |
34573 | if (PyErr_Occurred()) SWIG_fail; | |
34574 | } | |
34575 | Py_INCREF(Py_None); resultobj = Py_None; | |
34576 | return resultobj; | |
34577 | fail: | |
34578 | return NULL; | |
34579 | } | |
34580 | ||
34581 | ||
34582 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34583 | PyObject *resultobj; | |
34584 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34585 | int result; | |
34586 | PyObject * obj0 = 0 ; | |
34587 | char *kwnames[] = { | |
34588 | (char *) "self", NULL | |
34589 | }; | |
34590 | ||
34591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
34592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34594 | { | |
34595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34596 | result = (int)(arg1)->GetProportion(); | |
34597 | ||
34598 | wxPyEndAllowThreads(__tstate); | |
34599 | if (PyErr_Occurred()) SWIG_fail; | |
34600 | } | |
34601 | resultobj = SWIG_FromInt((int)result); | |
34602 | return resultobj; | |
34603 | fail: | |
34604 | return NULL; | |
34605 | } | |
34606 | ||
34607 | ||
34608 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34609 | PyObject *resultobj; | |
34610 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34611 | int arg2 ; | |
34612 | PyObject * obj0 = 0 ; | |
34613 | PyObject * obj1 = 0 ; | |
34614 | char *kwnames[] = { | |
34615 | (char *) "self",(char *) "flag", NULL | |
34616 | }; | |
34617 | ||
34618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
34619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34621 | arg2 = (int) SWIG_AsInt(obj1); | |
34622 | if (PyErr_Occurred()) SWIG_fail; | |
34623 | { | |
34624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34625 | (arg1)->SetFlag(arg2); | |
34626 | ||
34627 | wxPyEndAllowThreads(__tstate); | |
34628 | if (PyErr_Occurred()) SWIG_fail; | |
34629 | } | |
34630 | Py_INCREF(Py_None); resultobj = Py_None; | |
34631 | return resultobj; | |
34632 | fail: | |
34633 | return NULL; | |
34634 | } | |
34635 | ||
34636 | ||
34637 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34638 | PyObject *resultobj; | |
34639 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34640 | int result; | |
34641 | PyObject * obj0 = 0 ; | |
34642 | char *kwnames[] = { | |
34643 | (char *) "self", NULL | |
34644 | }; | |
34645 | ||
34646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
34647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34649 | { | |
34650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34651 | result = (int)(arg1)->GetFlag(); | |
34652 | ||
34653 | wxPyEndAllowThreads(__tstate); | |
34654 | if (PyErr_Occurred()) SWIG_fail; | |
34655 | } | |
34656 | resultobj = SWIG_FromInt((int)result); | |
34657 | return resultobj; | |
34658 | fail: | |
34659 | return NULL; | |
34660 | } | |
34661 | ||
34662 | ||
34663 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34664 | PyObject *resultobj; | |
34665 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34666 | int arg2 ; | |
34667 | PyObject * obj0 = 0 ; | |
34668 | PyObject * obj1 = 0 ; | |
34669 | char *kwnames[] = { | |
34670 | (char *) "self",(char *) "border", NULL | |
34671 | }; | |
34672 | ||
34673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
34674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34676 | arg2 = (int) SWIG_AsInt(obj1); | |
34677 | if (PyErr_Occurred()) SWIG_fail; | |
34678 | { | |
34679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34680 | (arg1)->SetBorder(arg2); | |
34681 | ||
34682 | wxPyEndAllowThreads(__tstate); | |
34683 | if (PyErr_Occurred()) SWIG_fail; | |
34684 | } | |
34685 | Py_INCREF(Py_None); resultobj = Py_None; | |
34686 | return resultobj; | |
34687 | fail: | |
34688 | return NULL; | |
34689 | } | |
34690 | ||
34691 | ||
34692 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34693 | PyObject *resultobj; | |
34694 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34695 | int result; | |
34696 | PyObject * obj0 = 0 ; | |
34697 | char *kwnames[] = { | |
34698 | (char *) "self", NULL | |
34699 | }; | |
34700 | ||
34701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
34702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34704 | { | |
34705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34706 | result = (int)(arg1)->GetBorder(); | |
34707 | ||
34708 | wxPyEndAllowThreads(__tstate); | |
34709 | if (PyErr_Occurred()) SWIG_fail; | |
34710 | } | |
34711 | resultobj = SWIG_FromInt((int)result); | |
34712 | return resultobj; | |
34713 | fail: | |
34714 | return NULL; | |
34715 | } | |
34716 | ||
34717 | ||
34718 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34719 | PyObject *resultobj; | |
34720 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34721 | wxWindow *result; | |
34722 | PyObject * obj0 = 0 ; | |
34723 | char *kwnames[] = { | |
34724 | (char *) "self", NULL | |
34725 | }; | |
34726 | ||
34727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
34728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34730 | { | |
34731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34732 | result = (wxWindow *)(arg1)->GetWindow(); | |
34733 | ||
34734 | wxPyEndAllowThreads(__tstate); | |
34735 | if (PyErr_Occurred()) SWIG_fail; | |
34736 | } | |
34737 | { | |
34738 | resultobj = wxPyMake_wxObject(result); | |
34739 | } | |
34740 | return resultobj; | |
34741 | fail: | |
34742 | return NULL; | |
34743 | } | |
34744 | ||
34745 | ||
34746 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34747 | PyObject *resultobj; | |
34748 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
34750 | PyObject * obj0 = 0 ; | |
34751 | PyObject * obj1 = 0 ; | |
34752 | char *kwnames[] = { | |
34753 | (char *) "self",(char *) "window", NULL | |
34754 | }; | |
34755 | ||
34756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
34757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34759 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
34760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34761 | { | |
34762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34763 | (arg1)->SetWindow(arg2); | |
34764 | ||
34765 | wxPyEndAllowThreads(__tstate); | |
34766 | if (PyErr_Occurred()) SWIG_fail; | |
34767 | } | |
34768 | Py_INCREF(Py_None); resultobj = Py_None; | |
34769 | return resultobj; | |
34770 | fail: | |
34771 | return NULL; | |
34772 | } | |
34773 | ||
34774 | ||
34775 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34776 | PyObject *resultobj; | |
34777 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34778 | wxSizer *result; | |
34779 | PyObject * obj0 = 0 ; | |
34780 | char *kwnames[] = { | |
34781 | (char *) "self", NULL | |
34782 | }; | |
34783 | ||
34784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
34785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34787 | { | |
34788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34789 | result = (wxSizer *)(arg1)->GetSizer(); | |
34790 | ||
34791 | wxPyEndAllowThreads(__tstate); | |
34792 | if (PyErr_Occurred()) SWIG_fail; | |
34793 | } | |
34794 | { | |
34795 | resultobj = wxPyMake_wxSizer(result); | |
34796 | } | |
34797 | return resultobj; | |
34798 | fail: | |
34799 | return NULL; | |
34800 | } | |
34801 | ||
34802 | ||
34803 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34804 | PyObject *resultobj; | |
34805 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34806 | wxSizer *arg2 = (wxSizer *) 0 ; | |
34807 | PyObject * obj0 = 0 ; | |
34808 | PyObject * obj1 = 0 ; | |
34809 | char *kwnames[] = { | |
34810 | (char *) "self",(char *) "sizer", NULL | |
34811 | }; | |
34812 | ||
34813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
34814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34816 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
34817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34818 | { | |
34819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34820 | (arg1)->SetSizer(arg2); | |
34821 | ||
34822 | wxPyEndAllowThreads(__tstate); | |
34823 | if (PyErr_Occurred()) SWIG_fail; | |
34824 | } | |
34825 | Py_INCREF(Py_None); resultobj = Py_None; | |
34826 | return resultobj; | |
34827 | fail: | |
34828 | return NULL; | |
34829 | } | |
34830 | ||
34831 | ||
34832 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34833 | PyObject *resultobj; | |
34834 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34835 | wxSize *result; | |
34836 | PyObject * obj0 = 0 ; | |
34837 | char *kwnames[] = { | |
34838 | (char *) "self", NULL | |
34839 | }; | |
34840 | ||
34841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
34842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34844 | { | |
34845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34846 | { | |
34847 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
34848 | result = (wxSize *) &_result_ref; | |
34849 | } | |
34850 | ||
34851 | wxPyEndAllowThreads(__tstate); | |
34852 | if (PyErr_Occurred()) SWIG_fail; | |
34853 | } | |
34854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
34855 | return resultobj; | |
34856 | fail: | |
34857 | return NULL; | |
34858 | } | |
34859 | ||
34860 | ||
34861 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34862 | PyObject *resultobj; | |
34863 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34864 | wxSize *arg2 = 0 ; | |
34865 | wxSize temp2 ; | |
34866 | PyObject * obj0 = 0 ; | |
34867 | PyObject * obj1 = 0 ; | |
34868 | char *kwnames[] = { | |
34869 | (char *) "self",(char *) "size", NULL | |
34870 | }; | |
34871 | ||
34872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
34873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34875 | { | |
34876 | arg2 = &temp2; | |
34877 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
34878 | } | |
34879 | { | |
34880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34881 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
34882 | ||
34883 | wxPyEndAllowThreads(__tstate); | |
34884 | if (PyErr_Occurred()) SWIG_fail; | |
34885 | } | |
34886 | Py_INCREF(Py_None); resultobj = Py_None; | |
34887 | return resultobj; | |
34888 | fail: | |
34889 | return NULL; | |
34890 | } | |
34891 | ||
34892 | ||
34893 | static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34894 | PyObject *resultobj; | |
34895 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34896 | bool arg2 ; | |
34897 | PyObject * obj0 = 0 ; | |
34898 | PyObject * obj1 = 0 ; | |
34899 | char *kwnames[] = { | |
34900 | (char *) "self",(char *) "show", NULL | |
34901 | }; | |
34902 | ||
34903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
34904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34906 | arg2 = (bool) SWIG_AsBool(obj1); | |
34907 | if (PyErr_Occurred()) SWIG_fail; | |
34908 | { | |
34909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34910 | (arg1)->Show(arg2); | |
34911 | ||
34912 | wxPyEndAllowThreads(__tstate); | |
34913 | if (PyErr_Occurred()) SWIG_fail; | |
34914 | } | |
34915 | Py_INCREF(Py_None); resultobj = Py_None; | |
34916 | return resultobj; | |
34917 | fail: | |
34918 | return NULL; | |
34919 | } | |
34920 | ||
34921 | ||
34922 | static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34923 | PyObject *resultobj; | |
34924 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34925 | bool result; | |
34926 | PyObject * obj0 = 0 ; | |
34927 | char *kwnames[] = { | |
34928 | (char *) "self", NULL | |
34929 | }; | |
34930 | ||
34931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
34932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34934 | { | |
34935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34936 | result = (bool)(arg1)->IsShown(); | |
34937 | ||
34938 | wxPyEndAllowThreads(__tstate); | |
34939 | if (PyErr_Occurred()) SWIG_fail; | |
34940 | } | |
34941 | { | |
34942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34943 | } | |
34944 | return resultobj; | |
34945 | fail: | |
34946 | return NULL; | |
34947 | } | |
34948 | ||
34949 | ||
34950 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34951 | PyObject *resultobj; | |
34952 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34953 | wxPoint result; | |
34954 | PyObject * obj0 = 0 ; | |
34955 | char *kwnames[] = { | |
34956 | (char *) "self", NULL | |
34957 | }; | |
34958 | ||
34959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
34960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34962 | { | |
34963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34964 | result = (arg1)->GetPosition(); | |
34965 | ||
34966 | wxPyEndAllowThreads(__tstate); | |
34967 | if (PyErr_Occurred()) SWIG_fail; | |
34968 | } | |
34969 | { | |
34970 | wxPoint * resultptr; | |
34971 | resultptr = new wxPoint((wxPoint &) result); | |
34972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
34973 | } | |
34974 | return resultobj; | |
34975 | fail: | |
34976 | return NULL; | |
34977 | } | |
34978 | ||
34979 | ||
34980 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
34981 | PyObject *resultobj; | |
34982 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34983 | PyObject *result; | |
34984 | PyObject * obj0 = 0 ; | |
34985 | char *kwnames[] = { | |
34986 | (char *) "self", NULL | |
34987 | }; | |
34988 | ||
34989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
34990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34992 | { | |
34993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34994 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
34995 | ||
34996 | wxPyEndAllowThreads(__tstate); | |
34997 | if (PyErr_Occurred()) SWIG_fail; | |
34998 | } | |
34999 | resultobj = result; | |
35000 | return resultobj; | |
35001 | fail: | |
35002 | return NULL; | |
35003 | } | |
35004 | ||
35005 | ||
35006 | static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) { | |
35007 | PyObject *obj; | |
35008 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35009 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35010 | Py_INCREF(obj); | |
35011 | return Py_BuildValue((char *)""); | |
35012 | } | |
35013 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35014 | PyObject *resultobj; | |
35015 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35016 | PyObject *arg2 = (PyObject *) 0 ; | |
35017 | PyObject * obj0 = 0 ; | |
35018 | PyObject * obj1 = 0 ; | |
35019 | char *kwnames[] = { | |
35020 | (char *) "self",(char *) "_self", NULL | |
35021 | }; | |
35022 | ||
35023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35026 | arg2 = obj1; | |
35027 | { | |
35028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35029 | wxSizer__setOORInfo(arg1,arg2); | |
35030 | ||
35031 | wxPyEndAllowThreads(__tstate); | |
35032 | if (PyErr_Occurred()) SWIG_fail; | |
35033 | } | |
35034 | Py_INCREF(Py_None); resultobj = Py_None; | |
35035 | return resultobj; | |
35036 | fail: | |
35037 | return NULL; | |
35038 | } | |
35039 | ||
35040 | ||
35041 | static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35042 | PyObject *resultobj; | |
35043 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35044 | PyObject *arg2 = (PyObject *) 0 ; | |
35045 | int arg3 = (int) 0 ; | |
35046 | int arg4 = (int) 0 ; | |
35047 | int arg5 = (int) 0 ; | |
35048 | PyObject *arg6 = (PyObject *) NULL ; | |
35049 | PyObject * obj0 = 0 ; | |
35050 | PyObject * obj1 = 0 ; | |
35051 | PyObject * obj2 = 0 ; | |
35052 | PyObject * obj3 = 0 ; | |
35053 | PyObject * obj4 = 0 ; | |
35054 | PyObject * obj5 = 0 ; | |
35055 | char *kwnames[] = { | |
35056 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35057 | }; | |
35058 | ||
35059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35062 | arg2 = obj1; | |
35063 | if (obj2) { | |
35064 | arg3 = (int) SWIG_AsInt(obj2); | |
35065 | if (PyErr_Occurred()) SWIG_fail; | |
35066 | } | |
35067 | if (obj3) { | |
35068 | arg4 = (int) SWIG_AsInt(obj3); | |
35069 | if (PyErr_Occurred()) SWIG_fail; | |
35070 | } | |
35071 | if (obj4) { | |
35072 | arg5 = (int) SWIG_AsInt(obj4); | |
35073 | if (PyErr_Occurred()) SWIG_fail; | |
35074 | } | |
35075 | if (obj5) { | |
35076 | arg6 = obj5; | |
35077 | } | |
35078 | { | |
35079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35080 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
35081 | ||
35082 | wxPyEndAllowThreads(__tstate); | |
35083 | if (PyErr_Occurred()) SWIG_fail; | |
35084 | } | |
35085 | Py_INCREF(Py_None); resultobj = Py_None; | |
35086 | return resultobj; | |
35087 | fail: | |
35088 | return NULL; | |
35089 | } | |
35090 | ||
35091 | ||
35092 | static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35093 | PyObject *resultobj; | |
35094 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35095 | int arg2 ; | |
35096 | PyObject *arg3 = (PyObject *) 0 ; | |
35097 | int arg4 = (int) 0 ; | |
35098 | int arg5 = (int) 0 ; | |
35099 | int arg6 = (int) 0 ; | |
35100 | PyObject *arg7 = (PyObject *) NULL ; | |
35101 | PyObject * obj0 = 0 ; | |
35102 | PyObject * obj1 = 0 ; | |
35103 | PyObject * obj2 = 0 ; | |
35104 | PyObject * obj3 = 0 ; | |
35105 | PyObject * obj4 = 0 ; | |
35106 | PyObject * obj5 = 0 ; | |
35107 | PyObject * obj6 = 0 ; | |
35108 | char *kwnames[] = { | |
35109 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35110 | }; | |
35111 | ||
35112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35115 | arg2 = (int) SWIG_AsInt(obj1); | |
35116 | if (PyErr_Occurred()) SWIG_fail; | |
35117 | arg3 = obj2; | |
35118 | if (obj3) { | |
35119 | arg4 = (int) SWIG_AsInt(obj3); | |
35120 | if (PyErr_Occurred()) SWIG_fail; | |
35121 | } | |
35122 | if (obj4) { | |
35123 | arg5 = (int) SWIG_AsInt(obj4); | |
35124 | if (PyErr_Occurred()) SWIG_fail; | |
35125 | } | |
35126 | if (obj5) { | |
35127 | arg6 = (int) SWIG_AsInt(obj5); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
35130 | if (obj6) { | |
35131 | arg7 = obj6; | |
35132 | } | |
35133 | { | |
35134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35135 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35136 | ||
35137 | wxPyEndAllowThreads(__tstate); | |
35138 | if (PyErr_Occurred()) SWIG_fail; | |
35139 | } | |
35140 | Py_INCREF(Py_None); resultobj = Py_None; | |
35141 | return resultobj; | |
35142 | fail: | |
35143 | return NULL; | |
35144 | } | |
35145 | ||
35146 | ||
35147 | static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35148 | PyObject *resultobj; | |
35149 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35150 | PyObject *arg2 = (PyObject *) 0 ; | |
35151 | int arg3 = (int) 0 ; | |
35152 | int arg4 = (int) 0 ; | |
35153 | int arg5 = (int) 0 ; | |
35154 | PyObject *arg6 = (PyObject *) NULL ; | |
35155 | PyObject * obj0 = 0 ; | |
35156 | PyObject * obj1 = 0 ; | |
35157 | PyObject * obj2 = 0 ; | |
35158 | PyObject * obj3 = 0 ; | |
35159 | PyObject * obj4 = 0 ; | |
35160 | PyObject * obj5 = 0 ; | |
35161 | char *kwnames[] = { | |
35162 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35163 | }; | |
35164 | ||
35165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35168 | arg2 = obj1; | |
35169 | if (obj2) { | |
35170 | arg3 = (int) SWIG_AsInt(obj2); | |
35171 | if (PyErr_Occurred()) SWIG_fail; | |
35172 | } | |
35173 | if (obj3) { | |
35174 | arg4 = (int) SWIG_AsInt(obj3); | |
35175 | if (PyErr_Occurred()) SWIG_fail; | |
35176 | } | |
35177 | if (obj4) { | |
35178 | arg5 = (int) SWIG_AsInt(obj4); | |
35179 | if (PyErr_Occurred()) SWIG_fail; | |
35180 | } | |
35181 | if (obj5) { | |
35182 | arg6 = obj5; | |
35183 | } | |
35184 | { | |
35185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35186 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35187 | ||
35188 | wxPyEndAllowThreads(__tstate); | |
35189 | if (PyErr_Occurred()) SWIG_fail; | |
35190 | } | |
35191 | Py_INCREF(Py_None); resultobj = Py_None; | |
35192 | return resultobj; | |
35193 | fail: | |
35194 | return NULL; | |
35195 | } | |
35196 | ||
35197 | ||
35198 | static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35199 | PyObject *resultobj; | |
35200 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35201 | PyObject *arg2 = (PyObject *) 0 ; | |
35202 | bool result; | |
35203 | PyObject * obj0 = 0 ; | |
35204 | PyObject * obj1 = 0 ; | |
35205 | char *kwnames[] = { | |
35206 | (char *) "self",(char *) "item", NULL | |
35207 | }; | |
35208 | ||
35209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35212 | arg2 = obj1; | |
35213 | { | |
35214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35215 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35216 | ||
35217 | wxPyEndAllowThreads(__tstate); | |
35218 | if (PyErr_Occurred()) SWIG_fail; | |
35219 | } | |
35220 | { | |
35221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35222 | } | |
35223 | return resultobj; | |
35224 | fail: | |
35225 | return NULL; | |
35226 | } | |
35227 | ||
35228 | ||
1a6bba1e RD |
35229 | static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { |
35230 | PyObject *resultobj; | |
35231 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35232 | PyObject *arg2 = (PyObject *) 0 ; | |
35233 | bool result; | |
35234 | PyObject * obj0 = 0 ; | |
35235 | PyObject * obj1 = 0 ; | |
35236 | char *kwnames[] = { | |
35237 | (char *) "self",(char *) "item", NULL | |
35238 | }; | |
35239 | ||
35240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35243 | arg2 = obj1; | |
35244 | { | |
35245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35246 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35247 | ||
35248 | wxPyEndAllowThreads(__tstate); | |
35249 | if (PyErr_Occurred()) SWIG_fail; | |
35250 | } | |
35251 | { | |
35252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35253 | } | |
35254 | return resultobj; | |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
d55e5bfc RD |
35260 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
35261 | PyObject *resultobj; | |
35262 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35263 | PyObject *arg2 = (PyObject *) 0 ; | |
35264 | wxSize *arg3 = 0 ; | |
35265 | wxSize temp3 ; | |
35266 | PyObject * obj0 = 0 ; | |
35267 | PyObject * obj1 = 0 ; | |
35268 | PyObject * obj2 = 0 ; | |
35269 | char *kwnames[] = { | |
35270 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35271 | }; | |
35272 | ||
35273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35276 | arg2 = obj1; | |
35277 | { | |
35278 | arg3 = &temp3; | |
35279 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35280 | } | |
35281 | { | |
35282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35283 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
35284 | ||
35285 | wxPyEndAllowThreads(__tstate); | |
35286 | if (PyErr_Occurred()) SWIG_fail; | |
35287 | } | |
35288 | Py_INCREF(Py_None); resultobj = Py_None; | |
35289 | return resultobj; | |
35290 | fail: | |
35291 | return NULL; | |
35292 | } | |
35293 | ||
35294 | ||
35295 | static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35296 | PyObject *resultobj; | |
35297 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35298 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35299 | PyObject * obj0 = 0 ; | |
35300 | PyObject * obj1 = 0 ; | |
35301 | char *kwnames[] = { | |
35302 | (char *) "self",(char *) "item", NULL | |
35303 | }; | |
35304 | ||
35305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
35306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35310 | { | |
35311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35312 | (arg1)->Add(arg2); | |
35313 | ||
35314 | wxPyEndAllowThreads(__tstate); | |
35315 | if (PyErr_Occurred()) SWIG_fail; | |
35316 | } | |
35317 | Py_INCREF(Py_None); resultobj = Py_None; | |
35318 | return resultobj; | |
35319 | fail: | |
35320 | return NULL; | |
35321 | } | |
35322 | ||
35323 | ||
35324 | static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35325 | PyObject *resultobj; | |
35326 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35327 | size_t arg2 ; | |
35328 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35329 | PyObject * obj0 = 0 ; | |
35330 | PyObject * obj1 = 0 ; | |
35331 | PyObject * obj2 = 0 ; | |
35332 | char *kwnames[] = { | |
35333 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35334 | }; | |
35335 | ||
35336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35339 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
35340 | if (PyErr_Occurred()) SWIG_fail; | |
35341 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35343 | { | |
35344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35345 | (arg1)->Insert(arg2,arg3); | |
35346 | ||
35347 | wxPyEndAllowThreads(__tstate); | |
35348 | if (PyErr_Occurred()) SWIG_fail; | |
35349 | } | |
35350 | Py_INCREF(Py_None); resultobj = Py_None; | |
35351 | return resultobj; | |
35352 | fail: | |
35353 | return NULL; | |
35354 | } | |
35355 | ||
35356 | ||
35357 | static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35358 | PyObject *resultobj; | |
35359 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35360 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35361 | PyObject * obj0 = 0 ; | |
35362 | PyObject * obj1 = 0 ; | |
35363 | char *kwnames[] = { | |
35364 | (char *) "self",(char *) "item", NULL | |
35365 | }; | |
35366 | ||
35367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
35368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35372 | { | |
35373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35374 | (arg1)->Prepend(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_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35387 | PyObject *resultobj; | |
35388 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35389 | int arg2 ; | |
35390 | int arg3 ; | |
35391 | int arg4 ; | |
35392 | int arg5 ; | |
35393 | PyObject * obj0 = 0 ; | |
35394 | PyObject * obj1 = 0 ; | |
35395 | PyObject * obj2 = 0 ; | |
35396 | PyObject * obj3 = 0 ; | |
35397 | PyObject * obj4 = 0 ; | |
35398 | char *kwnames[] = { | |
35399 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35400 | }; | |
35401 | ||
35402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
35403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35405 | arg2 = (int) SWIG_AsInt(obj1); | |
35406 | if (PyErr_Occurred()) SWIG_fail; | |
35407 | arg3 = (int) SWIG_AsInt(obj2); | |
35408 | if (PyErr_Occurred()) SWIG_fail; | |
35409 | arg4 = (int) SWIG_AsInt(obj3); | |
35410 | if (PyErr_Occurred()) SWIG_fail; | |
35411 | arg5 = (int) SWIG_AsInt(obj4); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | { | |
35414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35415 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35416 | ||
35417 | wxPyEndAllowThreads(__tstate); | |
35418 | if (PyErr_Occurred()) SWIG_fail; | |
35419 | } | |
35420 | Py_INCREF(Py_None); resultobj = Py_None; | |
35421 | return resultobj; | |
35422 | fail: | |
35423 | return NULL; | |
35424 | } | |
35425 | ||
35426 | ||
35427 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35428 | PyObject *resultobj; | |
35429 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35430 | wxSize *arg2 = 0 ; | |
35431 | wxSize temp2 ; | |
35432 | PyObject * obj0 = 0 ; | |
35433 | PyObject * obj1 = 0 ; | |
35434 | char *kwnames[] = { | |
35435 | (char *) "self",(char *) "size", NULL | |
35436 | }; | |
35437 | ||
35438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
35439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35441 | { | |
35442 | arg2 = &temp2; | |
35443 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35444 | } | |
35445 | { | |
35446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35447 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
35448 | ||
35449 | wxPyEndAllowThreads(__tstate); | |
35450 | if (PyErr_Occurred()) SWIG_fail; | |
35451 | } | |
35452 | Py_INCREF(Py_None); resultobj = Py_None; | |
35453 | return resultobj; | |
35454 | fail: | |
35455 | return NULL; | |
35456 | } | |
35457 | ||
35458 | ||
35459 | static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35460 | PyObject *resultobj; | |
35461 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35462 | wxSize result; | |
35463 | PyObject * obj0 = 0 ; | |
35464 | char *kwnames[] = { | |
35465 | (char *) "self", NULL | |
35466 | }; | |
35467 | ||
35468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
35469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35471 | { | |
35472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35473 | result = (arg1)->GetSize(); | |
35474 | ||
35475 | wxPyEndAllowThreads(__tstate); | |
35476 | if (PyErr_Occurred()) SWIG_fail; | |
35477 | } | |
35478 | { | |
35479 | wxSize * resultptr; | |
35480 | resultptr = new wxSize((wxSize &) result); | |
35481 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35482 | } | |
35483 | return resultobj; | |
35484 | fail: | |
35485 | return NULL; | |
35486 | } | |
35487 | ||
35488 | ||
35489 | static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35490 | PyObject *resultobj; | |
35491 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35492 | wxPoint result; | |
35493 | PyObject * obj0 = 0 ; | |
35494 | char *kwnames[] = { | |
35495 | (char *) "self", NULL | |
35496 | }; | |
35497 | ||
35498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
35499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35501 | { | |
35502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35503 | result = (arg1)->GetPosition(); | |
35504 | ||
35505 | wxPyEndAllowThreads(__tstate); | |
35506 | if (PyErr_Occurred()) SWIG_fail; | |
35507 | } | |
35508 | { | |
35509 | wxPoint * resultptr; | |
35510 | resultptr = new wxPoint((wxPoint &) result); | |
35511 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35512 | } | |
35513 | return resultobj; | |
35514 | fail: | |
35515 | return NULL; | |
35516 | } | |
35517 | ||
35518 | ||
35519 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35520 | PyObject *resultobj; | |
35521 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35522 | wxSize result; | |
35523 | PyObject * obj0 = 0 ; | |
35524 | char *kwnames[] = { | |
35525 | (char *) "self", NULL | |
35526 | }; | |
35527 | ||
35528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35531 | { | |
35532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35533 | result = (arg1)->GetMinSize(); | |
35534 | ||
35535 | wxPyEndAllowThreads(__tstate); | |
35536 | if (PyErr_Occurred()) SWIG_fail; | |
35537 | } | |
35538 | { | |
35539 | wxSize * resultptr; | |
35540 | resultptr = new wxSize((wxSize &) result); | |
35541 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35542 | } | |
35543 | return resultobj; | |
35544 | fail: | |
35545 | return NULL; | |
35546 | } | |
35547 | ||
35548 | ||
35549 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35550 | PyObject *resultobj; | |
35551 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35552 | PyObject * obj0 = 0 ; | |
35553 | char *kwnames[] = { | |
35554 | (char *) "self", NULL | |
35555 | }; | |
35556 | ||
35557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35560 | { | |
35561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35562 | (arg1)->RecalcSizes(); | |
35563 | ||
35564 | wxPyEndAllowThreads(__tstate); | |
35565 | if (PyErr_Occurred()) SWIG_fail; | |
35566 | } | |
35567 | Py_INCREF(Py_None); resultobj = Py_None; | |
35568 | return resultobj; | |
35569 | fail: | |
35570 | return NULL; | |
35571 | } | |
35572 | ||
35573 | ||
35574 | static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35575 | PyObject *resultobj; | |
35576 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35577 | wxSize result; | |
35578 | PyObject * obj0 = 0 ; | |
35579 | char *kwnames[] = { | |
35580 | (char *) "self", NULL | |
35581 | }; | |
35582 | ||
35583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
35584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35586 | { | |
35587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35588 | result = (arg1)->CalcMin(); | |
35589 | ||
35590 | wxPyEndAllowThreads(__tstate); | |
35591 | if (PyErr_Occurred()) SWIG_fail; | |
35592 | } | |
35593 | { | |
35594 | wxSize * resultptr; | |
35595 | resultptr = new wxSize((wxSize &) result); | |
35596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35597 | } | |
35598 | return resultobj; | |
35599 | fail: | |
35600 | return NULL; | |
35601 | } | |
35602 | ||
35603 | ||
35604 | static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35605 | PyObject *resultobj; | |
35606 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35607 | PyObject * obj0 = 0 ; | |
35608 | char *kwnames[] = { | |
35609 | (char *) "self", NULL | |
35610 | }; | |
35611 | ||
35612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
35613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35615 | { | |
35616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35617 | (arg1)->Layout(); | |
35618 | ||
35619 | wxPyEndAllowThreads(__tstate); | |
35620 | if (PyErr_Occurred()) SWIG_fail; | |
35621 | } | |
35622 | Py_INCREF(Py_None); resultobj = Py_None; | |
35623 | return resultobj; | |
35624 | fail: | |
35625 | return NULL; | |
35626 | } | |
35627 | ||
35628 | ||
35629 | static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35630 | PyObject *resultobj; | |
35631 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35632 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35633 | wxSize result; | |
35634 | PyObject * obj0 = 0 ; | |
35635 | PyObject * obj1 = 0 ; | |
35636 | char *kwnames[] = { | |
35637 | (char *) "self",(char *) "window", NULL | |
35638 | }; | |
35639 | ||
35640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
35641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35643 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35645 | { | |
35646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35647 | result = (arg1)->Fit(arg2); | |
35648 | ||
35649 | wxPyEndAllowThreads(__tstate); | |
35650 | if (PyErr_Occurred()) SWIG_fail; | |
35651 | } | |
35652 | { | |
35653 | wxSize * resultptr; | |
35654 | resultptr = new wxSize((wxSize &) result); | |
35655 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35656 | } | |
35657 | return resultobj; | |
35658 | fail: | |
35659 | return NULL; | |
35660 | } | |
35661 | ||
35662 | ||
35663 | static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35664 | PyObject *resultobj; | |
35665 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35667 | PyObject * obj0 = 0 ; | |
35668 | PyObject * obj1 = 0 ; | |
35669 | char *kwnames[] = { | |
35670 | (char *) "self",(char *) "window", NULL | |
35671 | }; | |
35672 | ||
35673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
35674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35678 | { | |
35679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35680 | (arg1)->FitInside(arg2); | |
35681 | ||
35682 | wxPyEndAllowThreads(__tstate); | |
35683 | if (PyErr_Occurred()) SWIG_fail; | |
35684 | } | |
35685 | Py_INCREF(Py_None); resultobj = Py_None; | |
35686 | return resultobj; | |
35687 | fail: | |
35688 | return NULL; | |
35689 | } | |
35690 | ||
35691 | ||
35692 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35693 | PyObject *resultobj; | |
35694 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35695 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35696 | PyObject * obj0 = 0 ; | |
35697 | PyObject * obj1 = 0 ; | |
35698 | char *kwnames[] = { | |
35699 | (char *) "self",(char *) "window", NULL | |
35700 | }; | |
35701 | ||
35702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35705 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35707 | { | |
35708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35709 | (arg1)->SetSizeHints(arg2); | |
35710 | ||
35711 | wxPyEndAllowThreads(__tstate); | |
35712 | if (PyErr_Occurred()) SWIG_fail; | |
35713 | } | |
35714 | Py_INCREF(Py_None); resultobj = Py_None; | |
35715 | return resultobj; | |
35716 | fail: | |
35717 | return NULL; | |
35718 | } | |
35719 | ||
35720 | ||
35721 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35722 | PyObject *resultobj; | |
35723 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35724 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35725 | PyObject * obj0 = 0 ; | |
35726 | PyObject * obj1 = 0 ; | |
35727 | char *kwnames[] = { | |
35728 | (char *) "self",(char *) "window", NULL | |
35729 | }; | |
35730 | ||
35731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
35732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35736 | { | |
35737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35738 | (arg1)->SetVirtualSizeHints(arg2); | |
35739 | ||
35740 | wxPyEndAllowThreads(__tstate); | |
35741 | if (PyErr_Occurred()) SWIG_fail; | |
35742 | } | |
35743 | Py_INCREF(Py_None); resultobj = Py_None; | |
35744 | return resultobj; | |
35745 | fail: | |
35746 | return NULL; | |
35747 | } | |
35748 | ||
35749 | ||
35750 | static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35751 | PyObject *resultobj; | |
35752 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35753 | bool arg2 = (bool) False ; | |
35754 | PyObject * obj0 = 0 ; | |
35755 | PyObject * obj1 = 0 ; | |
35756 | char *kwnames[] = { | |
35757 | (char *) "self",(char *) "delete_windows", NULL | |
35758 | }; | |
35759 | ||
35760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
35761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35763 | if (obj1) { | |
35764 | arg2 = (bool) SWIG_AsBool(obj1); | |
35765 | if (PyErr_Occurred()) SWIG_fail; | |
35766 | } | |
35767 | { | |
35768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35769 | (arg1)->Clear(arg2); | |
35770 | ||
35771 | wxPyEndAllowThreads(__tstate); | |
35772 | if (PyErr_Occurred()) SWIG_fail; | |
35773 | } | |
35774 | Py_INCREF(Py_None); resultobj = Py_None; | |
35775 | return resultobj; | |
35776 | fail: | |
35777 | return NULL; | |
35778 | } | |
35779 | ||
35780 | ||
35781 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35782 | PyObject *resultobj; | |
35783 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35784 | PyObject * obj0 = 0 ; | |
35785 | char *kwnames[] = { | |
35786 | (char *) "self", NULL | |
35787 | }; | |
35788 | ||
35789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
35790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35792 | { | |
35793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35794 | (arg1)->DeleteWindows(); | |
35795 | ||
35796 | wxPyEndAllowThreads(__tstate); | |
35797 | if (PyErr_Occurred()) SWIG_fail; | |
35798 | } | |
35799 | Py_INCREF(Py_None); resultobj = Py_None; | |
35800 | return resultobj; | |
35801 | fail: | |
35802 | return NULL; | |
35803 | } | |
35804 | ||
35805 | ||
35806 | static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35807 | PyObject *resultobj; | |
35808 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35809 | PyObject *result; | |
35810 | PyObject * obj0 = 0 ; | |
35811 | char *kwnames[] = { | |
35812 | (char *) "self", NULL | |
35813 | }; | |
35814 | ||
35815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
35816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35818 | { | |
35819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35820 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
35821 | ||
35822 | wxPyEndAllowThreads(__tstate); | |
35823 | if (PyErr_Occurred()) SWIG_fail; | |
35824 | } | |
35825 | resultobj = result; | |
35826 | return resultobj; | |
35827 | fail: | |
35828 | return NULL; | |
35829 | } | |
35830 | ||
35831 | ||
35832 | static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35833 | PyObject *resultobj; | |
35834 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35835 | PyObject *arg2 = (PyObject *) 0 ; | |
35836 | bool arg3 = (bool) True ; | |
35837 | PyObject * obj0 = 0 ; | |
35838 | PyObject * obj1 = 0 ; | |
35839 | PyObject * obj2 = 0 ; | |
35840 | char *kwnames[] = { | |
35841 | (char *) "self",(char *) "item",(char *) "show", NULL | |
35842 | }; | |
35843 | ||
35844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35847 | arg2 = obj1; | |
35848 | if (obj2) { | |
35849 | arg3 = (bool) SWIG_AsBool(obj2); | |
35850 | if (PyErr_Occurred()) SWIG_fail; | |
35851 | } | |
35852 | { | |
35853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35854 | wxSizer_Show(arg1,arg2,arg3); | |
35855 | ||
35856 | wxPyEndAllowThreads(__tstate); | |
35857 | if (PyErr_Occurred()) SWIG_fail; | |
35858 | } | |
35859 | Py_INCREF(Py_None); resultobj = Py_None; | |
35860 | return resultobj; | |
35861 | fail: | |
35862 | return NULL; | |
35863 | } | |
35864 | ||
35865 | ||
35866 | static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35867 | PyObject *resultobj; | |
35868 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35869 | PyObject *arg2 = (PyObject *) 0 ; | |
35870 | PyObject * obj0 = 0 ; | |
35871 | PyObject * obj1 = 0 ; | |
35872 | char *kwnames[] = { | |
35873 | (char *) "self",(char *) "item", NULL | |
35874 | }; | |
35875 | ||
35876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail; | |
35877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35879 | arg2 = obj1; | |
35880 | { | |
35881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35882 | wxSizer_Hide(arg1,arg2); | |
35883 | ||
35884 | wxPyEndAllowThreads(__tstate); | |
35885 | if (PyErr_Occurred()) SWIG_fail; | |
35886 | } | |
35887 | Py_INCREF(Py_None); resultobj = Py_None; | |
35888 | return resultobj; | |
35889 | fail: | |
35890 | return NULL; | |
35891 | } | |
35892 | ||
35893 | ||
35894 | static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35895 | PyObject *resultobj; | |
35896 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35897 | PyObject *arg2 = (PyObject *) 0 ; | |
35898 | bool result; | |
35899 | PyObject * obj0 = 0 ; | |
35900 | PyObject * obj1 = 0 ; | |
35901 | char *kwnames[] = { | |
35902 | (char *) "self",(char *) "item", NULL | |
35903 | }; | |
35904 | ||
35905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
35906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35908 | arg2 = obj1; | |
35909 | { | |
35910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35911 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
35912 | ||
35913 | wxPyEndAllowThreads(__tstate); | |
35914 | if (PyErr_Occurred()) SWIG_fail; | |
35915 | } | |
35916 | { | |
35917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35918 | } | |
35919 | return resultobj; | |
35920 | fail: | |
35921 | return NULL; | |
35922 | } | |
35923 | ||
35924 | ||
35925 | static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35926 | PyObject *resultobj; | |
35927 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35928 | bool arg2 ; | |
35929 | PyObject * obj0 = 0 ; | |
35930 | PyObject * obj1 = 0 ; | |
35931 | char *kwnames[] = { | |
35932 | (char *) "self",(char *) "show", NULL | |
35933 | }; | |
35934 | ||
35935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
35936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35938 | arg2 = (bool) SWIG_AsBool(obj1); | |
35939 | if (PyErr_Occurred()) SWIG_fail; | |
35940 | { | |
35941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35942 | (arg1)->ShowItems(arg2); | |
35943 | ||
35944 | wxPyEndAllowThreads(__tstate); | |
35945 | if (PyErr_Occurred()) SWIG_fail; | |
35946 | } | |
35947 | Py_INCREF(Py_None); resultobj = Py_None; | |
35948 | return resultobj; | |
35949 | fail: | |
35950 | return NULL; | |
35951 | } | |
35952 | ||
35953 | ||
35954 | static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) { | |
35955 | PyObject *obj; | |
35956 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35957 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
35958 | Py_INCREF(obj); | |
35959 | return Py_BuildValue((char *)""); | |
35960 | } | |
35961 | static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35962 | PyObject *resultobj; | |
35963 | wxPySizer *result; | |
35964 | char *kwnames[] = { | |
35965 | NULL | |
35966 | }; | |
35967 | ||
35968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
35969 | { | |
35970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35971 | result = (wxPySizer *)new wxPySizer(); | |
35972 | ||
35973 | wxPyEndAllowThreads(__tstate); | |
35974 | if (PyErr_Occurred()) SWIG_fail; | |
35975 | } | |
35976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
35977 | return resultobj; | |
35978 | fail: | |
35979 | return NULL; | |
35980 | } | |
35981 | ||
35982 | ||
35983 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
35984 | PyObject *resultobj; | |
35985 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
35986 | PyObject *arg2 = (PyObject *) 0 ; | |
35987 | PyObject *arg3 = (PyObject *) 0 ; | |
35988 | PyObject * obj0 = 0 ; | |
35989 | PyObject * obj1 = 0 ; | |
35990 | PyObject * obj2 = 0 ; | |
35991 | char *kwnames[] = { | |
35992 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
35993 | }; | |
35994 | ||
35995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
35997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35998 | arg2 = obj1; | |
35999 | arg3 = obj2; | |
36000 | { | |
36001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36002 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36003 | ||
36004 | wxPyEndAllowThreads(__tstate); | |
36005 | if (PyErr_Occurred()) SWIG_fail; | |
36006 | } | |
36007 | Py_INCREF(Py_None); resultobj = Py_None; | |
36008 | return resultobj; | |
36009 | fail: | |
36010 | return NULL; | |
36011 | } | |
36012 | ||
36013 | ||
36014 | static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) { | |
36015 | PyObject *obj; | |
36016 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36017 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36018 | Py_INCREF(obj); | |
36019 | return Py_BuildValue((char *)""); | |
36020 | } | |
36021 | static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36022 | PyObject *resultobj; | |
36023 | int arg1 = (int) wxHORIZONTAL ; | |
36024 | wxBoxSizer *result; | |
36025 | PyObject * obj0 = 0 ; | |
36026 | char *kwnames[] = { | |
36027 | (char *) "orient", NULL | |
36028 | }; | |
36029 | ||
36030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36031 | if (obj0) { | |
36032 | arg1 = (int) SWIG_AsInt(obj0); | |
36033 | if (PyErr_Occurred()) SWIG_fail; | |
36034 | } | |
36035 | { | |
36036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36037 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36038 | ||
36039 | wxPyEndAllowThreads(__tstate); | |
36040 | if (PyErr_Occurred()) SWIG_fail; | |
36041 | } | |
36042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36043 | return resultobj; | |
36044 | fail: | |
36045 | return NULL; | |
36046 | } | |
36047 | ||
36048 | ||
36049 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36050 | PyObject *resultobj; | |
36051 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36052 | int result; | |
36053 | PyObject * obj0 = 0 ; | |
36054 | char *kwnames[] = { | |
36055 | (char *) "self", NULL | |
36056 | }; | |
36057 | ||
36058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36061 | { | |
36062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36063 | result = (int)(arg1)->GetOrientation(); | |
36064 | ||
36065 | wxPyEndAllowThreads(__tstate); | |
36066 | if (PyErr_Occurred()) SWIG_fail; | |
36067 | } | |
36068 | resultobj = SWIG_FromInt((int)result); | |
36069 | return resultobj; | |
36070 | fail: | |
36071 | return NULL; | |
36072 | } | |
36073 | ||
36074 | ||
36075 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36076 | PyObject *resultobj; | |
36077 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36078 | int arg2 ; | |
36079 | PyObject * obj0 = 0 ; | |
36080 | PyObject * obj1 = 0 ; | |
36081 | char *kwnames[] = { | |
36082 | (char *) "self",(char *) "orient", NULL | |
36083 | }; | |
36084 | ||
36085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36088 | arg2 = (int) SWIG_AsInt(obj1); | |
36089 | if (PyErr_Occurred()) SWIG_fail; | |
36090 | { | |
36091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36092 | (arg1)->SetOrientation(arg2); | |
36093 | ||
36094 | wxPyEndAllowThreads(__tstate); | |
36095 | if (PyErr_Occurred()) SWIG_fail; | |
36096 | } | |
36097 | Py_INCREF(Py_None); resultobj = Py_None; | |
36098 | return resultobj; | |
36099 | fail: | |
36100 | return NULL; | |
36101 | } | |
36102 | ||
36103 | ||
36104 | static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36105 | PyObject *resultobj; | |
36106 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36107 | PyObject * obj0 = 0 ; | |
36108 | char *kwnames[] = { | |
36109 | (char *) "self", NULL | |
36110 | }; | |
36111 | ||
36112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36115 | { | |
36116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36117 | (arg1)->RecalcSizes(); | |
36118 | ||
36119 | wxPyEndAllowThreads(__tstate); | |
36120 | if (PyErr_Occurred()) SWIG_fail; | |
36121 | } | |
36122 | Py_INCREF(Py_None); resultobj = Py_None; | |
36123 | return resultobj; | |
36124 | fail: | |
36125 | return NULL; | |
36126 | } | |
36127 | ||
36128 | ||
36129 | static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36130 | PyObject *resultobj; | |
36131 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36132 | wxSize result; | |
36133 | PyObject * obj0 = 0 ; | |
36134 | char *kwnames[] = { | |
36135 | (char *) "self", NULL | |
36136 | }; | |
36137 | ||
36138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36141 | { | |
36142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36143 | result = (arg1)->CalcMin(); | |
36144 | ||
36145 | wxPyEndAllowThreads(__tstate); | |
36146 | if (PyErr_Occurred()) SWIG_fail; | |
36147 | } | |
36148 | { | |
36149 | wxSize * resultptr; | |
36150 | resultptr = new wxSize((wxSize &) result); | |
36151 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36152 | } | |
36153 | return resultobj; | |
36154 | fail: | |
36155 | return NULL; | |
36156 | } | |
36157 | ||
36158 | ||
36159 | static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) { | |
36160 | PyObject *obj; | |
36161 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36162 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36163 | Py_INCREF(obj); | |
36164 | return Py_BuildValue((char *)""); | |
36165 | } | |
36166 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36167 | PyObject *resultobj; | |
36168 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36169 | int arg2 = (int) wxHORIZONTAL ; | |
36170 | wxStaticBoxSizer *result; | |
36171 | PyObject * obj0 = 0 ; | |
36172 | PyObject * obj1 = 0 ; | |
36173 | char *kwnames[] = { | |
36174 | (char *) "box",(char *) "orient", NULL | |
36175 | }; | |
36176 | ||
36177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36180 | if (obj1) { | |
36181 | arg2 = (int) SWIG_AsInt(obj1); | |
36182 | if (PyErr_Occurred()) SWIG_fail; | |
36183 | } | |
36184 | { | |
36185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36186 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36187 | ||
36188 | wxPyEndAllowThreads(__tstate); | |
36189 | if (PyErr_Occurred()) SWIG_fail; | |
36190 | } | |
36191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36192 | return resultobj; | |
36193 | fail: | |
36194 | return NULL; | |
36195 | } | |
36196 | ||
36197 | ||
36198 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36199 | PyObject *resultobj; | |
36200 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36201 | wxStaticBox *result; | |
36202 | PyObject * obj0 = 0 ; | |
36203 | char *kwnames[] = { | |
36204 | (char *) "self", NULL | |
36205 | }; | |
36206 | ||
36207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36210 | { | |
36211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36212 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36213 | ||
36214 | wxPyEndAllowThreads(__tstate); | |
36215 | if (PyErr_Occurred()) SWIG_fail; | |
36216 | } | |
36217 | { | |
36218 | resultobj = wxPyMake_wxObject(result); | |
36219 | } | |
36220 | return resultobj; | |
36221 | fail: | |
36222 | return NULL; | |
36223 | } | |
36224 | ||
36225 | ||
36226 | static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36227 | PyObject *resultobj; | |
36228 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36229 | PyObject * obj0 = 0 ; | |
36230 | char *kwnames[] = { | |
36231 | (char *) "self", NULL | |
36232 | }; | |
36233 | ||
36234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36237 | { | |
36238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36239 | (arg1)->RecalcSizes(); | |
36240 | ||
36241 | wxPyEndAllowThreads(__tstate); | |
36242 | if (PyErr_Occurred()) SWIG_fail; | |
36243 | } | |
36244 | Py_INCREF(Py_None); resultobj = Py_None; | |
36245 | return resultobj; | |
36246 | fail: | |
36247 | return NULL; | |
36248 | } | |
36249 | ||
36250 | ||
36251 | static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36252 | PyObject *resultobj; | |
36253 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36254 | wxSize result; | |
36255 | PyObject * obj0 = 0 ; | |
36256 | char *kwnames[] = { | |
36257 | (char *) "self", NULL | |
36258 | }; | |
36259 | ||
36260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36263 | { | |
36264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36265 | result = (arg1)->CalcMin(); | |
36266 | ||
36267 | wxPyEndAllowThreads(__tstate); | |
36268 | if (PyErr_Occurred()) SWIG_fail; | |
36269 | } | |
36270 | { | |
36271 | wxSize * resultptr; | |
36272 | resultptr = new wxSize((wxSize &) result); | |
36273 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36274 | } | |
36275 | return resultobj; | |
36276 | fail: | |
36277 | return NULL; | |
36278 | } | |
36279 | ||
36280 | ||
36281 | static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) { | |
36282 | PyObject *obj; | |
36283 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36284 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36285 | Py_INCREF(obj); | |
36286 | return Py_BuildValue((char *)""); | |
36287 | } | |
36288 | static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36289 | PyObject *resultobj; | |
36290 | int arg1 = (int) 1 ; | |
36291 | int arg2 = (int) 0 ; | |
36292 | int arg3 = (int) 0 ; | |
36293 | int arg4 = (int) 0 ; | |
36294 | wxGridSizer *result; | |
36295 | PyObject * obj0 = 0 ; | |
36296 | PyObject * obj1 = 0 ; | |
36297 | PyObject * obj2 = 0 ; | |
36298 | PyObject * obj3 = 0 ; | |
36299 | char *kwnames[] = { | |
36300 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36301 | }; | |
36302 | ||
36303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36304 | if (obj0) { | |
36305 | arg1 = (int) SWIG_AsInt(obj0); | |
36306 | if (PyErr_Occurred()) SWIG_fail; | |
36307 | } | |
36308 | if (obj1) { | |
36309 | arg2 = (int) SWIG_AsInt(obj1); | |
36310 | if (PyErr_Occurred()) SWIG_fail; | |
36311 | } | |
36312 | if (obj2) { | |
36313 | arg3 = (int) SWIG_AsInt(obj2); | |
36314 | if (PyErr_Occurred()) SWIG_fail; | |
36315 | } | |
36316 | if (obj3) { | |
36317 | arg4 = (int) SWIG_AsInt(obj3); | |
36318 | if (PyErr_Occurred()) SWIG_fail; | |
36319 | } | |
36320 | { | |
36321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36322 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36323 | ||
36324 | wxPyEndAllowThreads(__tstate); | |
36325 | if (PyErr_Occurred()) SWIG_fail; | |
36326 | } | |
36327 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36328 | return resultobj; | |
36329 | fail: | |
36330 | return NULL; | |
36331 | } | |
36332 | ||
36333 | ||
36334 | static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36335 | PyObject *resultobj; | |
36336 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36337 | PyObject * obj0 = 0 ; | |
36338 | char *kwnames[] = { | |
36339 | (char *) "self", NULL | |
36340 | }; | |
36341 | ||
36342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36345 | { | |
36346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36347 | (arg1)->RecalcSizes(); | |
36348 | ||
36349 | wxPyEndAllowThreads(__tstate); | |
36350 | if (PyErr_Occurred()) SWIG_fail; | |
36351 | } | |
36352 | Py_INCREF(Py_None); resultobj = Py_None; | |
36353 | return resultobj; | |
36354 | fail: | |
36355 | return NULL; | |
36356 | } | |
36357 | ||
36358 | ||
36359 | static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36360 | PyObject *resultobj; | |
36361 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36362 | wxSize result; | |
36363 | PyObject * obj0 = 0 ; | |
36364 | char *kwnames[] = { | |
36365 | (char *) "self", NULL | |
36366 | }; | |
36367 | ||
36368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36371 | { | |
36372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36373 | result = (arg1)->CalcMin(); | |
36374 | ||
36375 | wxPyEndAllowThreads(__tstate); | |
36376 | if (PyErr_Occurred()) SWIG_fail; | |
36377 | } | |
36378 | { | |
36379 | wxSize * resultptr; | |
36380 | resultptr = new wxSize((wxSize &) result); | |
36381 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36382 | } | |
36383 | return resultobj; | |
36384 | fail: | |
36385 | return NULL; | |
36386 | } | |
36387 | ||
36388 | ||
36389 | static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36390 | PyObject *resultobj; | |
36391 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36392 | int arg2 ; | |
36393 | PyObject * obj0 = 0 ; | |
36394 | PyObject * obj1 = 0 ; | |
36395 | char *kwnames[] = { | |
36396 | (char *) "self",(char *) "cols", NULL | |
36397 | }; | |
36398 | ||
36399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
36400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36402 | arg2 = (int) SWIG_AsInt(obj1); | |
36403 | if (PyErr_Occurred()) SWIG_fail; | |
36404 | { | |
36405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36406 | (arg1)->SetCols(arg2); | |
36407 | ||
36408 | wxPyEndAllowThreads(__tstate); | |
36409 | if (PyErr_Occurred()) SWIG_fail; | |
36410 | } | |
36411 | Py_INCREF(Py_None); resultobj = Py_None; | |
36412 | return resultobj; | |
36413 | fail: | |
36414 | return NULL; | |
36415 | } | |
36416 | ||
36417 | ||
36418 | static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36419 | PyObject *resultobj; | |
36420 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36421 | int arg2 ; | |
36422 | PyObject * obj0 = 0 ; | |
36423 | PyObject * obj1 = 0 ; | |
36424 | char *kwnames[] = { | |
36425 | (char *) "self",(char *) "rows", NULL | |
36426 | }; | |
36427 | ||
36428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36431 | arg2 = (int) SWIG_AsInt(obj1); | |
36432 | if (PyErr_Occurred()) SWIG_fail; | |
36433 | { | |
36434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36435 | (arg1)->SetRows(arg2); | |
36436 | ||
36437 | wxPyEndAllowThreads(__tstate); | |
36438 | if (PyErr_Occurred()) SWIG_fail; | |
36439 | } | |
36440 | Py_INCREF(Py_None); resultobj = Py_None; | |
36441 | return resultobj; | |
36442 | fail: | |
36443 | return NULL; | |
36444 | } | |
36445 | ||
36446 | ||
36447 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36448 | PyObject *resultobj; | |
36449 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36450 | int arg2 ; | |
36451 | PyObject * obj0 = 0 ; | |
36452 | PyObject * obj1 = 0 ; | |
36453 | char *kwnames[] = { | |
36454 | (char *) "self",(char *) "gap", NULL | |
36455 | }; | |
36456 | ||
36457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
36458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36460 | arg2 = (int) SWIG_AsInt(obj1); | |
36461 | if (PyErr_Occurred()) SWIG_fail; | |
36462 | { | |
36463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36464 | (arg1)->SetVGap(arg2); | |
36465 | ||
36466 | wxPyEndAllowThreads(__tstate); | |
36467 | if (PyErr_Occurred()) SWIG_fail; | |
36468 | } | |
36469 | Py_INCREF(Py_None); resultobj = Py_None; | |
36470 | return resultobj; | |
36471 | fail: | |
36472 | return NULL; | |
36473 | } | |
36474 | ||
36475 | ||
36476 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36477 | PyObject *resultobj; | |
36478 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36479 | int arg2 ; | |
36480 | PyObject * obj0 = 0 ; | |
36481 | PyObject * obj1 = 0 ; | |
36482 | char *kwnames[] = { | |
36483 | (char *) "self",(char *) "gap", NULL | |
36484 | }; | |
36485 | ||
36486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
36487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36489 | arg2 = (int) SWIG_AsInt(obj1); | |
36490 | if (PyErr_Occurred()) SWIG_fail; | |
36491 | { | |
36492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36493 | (arg1)->SetHGap(arg2); | |
36494 | ||
36495 | wxPyEndAllowThreads(__tstate); | |
36496 | if (PyErr_Occurred()) SWIG_fail; | |
36497 | } | |
36498 | Py_INCREF(Py_None); resultobj = Py_None; | |
36499 | return resultobj; | |
36500 | fail: | |
36501 | return NULL; | |
36502 | } | |
36503 | ||
36504 | ||
36505 | static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36506 | PyObject *resultobj; | |
36507 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36508 | int result; | |
36509 | PyObject * obj0 = 0 ; | |
36510 | char *kwnames[] = { | |
36511 | (char *) "self", NULL | |
36512 | }; | |
36513 | ||
36514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36517 | { | |
36518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36519 | result = (int)(arg1)->GetCols(); | |
36520 | ||
36521 | wxPyEndAllowThreads(__tstate); | |
36522 | if (PyErr_Occurred()) SWIG_fail; | |
36523 | } | |
36524 | resultobj = SWIG_FromInt((int)result); | |
36525 | return resultobj; | |
36526 | fail: | |
36527 | return NULL; | |
36528 | } | |
36529 | ||
36530 | ||
36531 | static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36532 | PyObject *resultobj; | |
36533 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36534 | int result; | |
36535 | PyObject * obj0 = 0 ; | |
36536 | char *kwnames[] = { | |
36537 | (char *) "self", NULL | |
36538 | }; | |
36539 | ||
36540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36543 | { | |
36544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36545 | result = (int)(arg1)->GetRows(); | |
36546 | ||
36547 | wxPyEndAllowThreads(__tstate); | |
36548 | if (PyErr_Occurred()) SWIG_fail; | |
36549 | } | |
36550 | resultobj = SWIG_FromInt((int)result); | |
36551 | return resultobj; | |
36552 | fail: | |
36553 | return NULL; | |
36554 | } | |
36555 | ||
36556 | ||
36557 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36558 | PyObject *resultobj; | |
36559 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36560 | int result; | |
36561 | PyObject * obj0 = 0 ; | |
36562 | char *kwnames[] = { | |
36563 | (char *) "self", NULL | |
36564 | }; | |
36565 | ||
36566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36569 | { | |
36570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36571 | result = (int)(arg1)->GetVGap(); | |
36572 | ||
36573 | wxPyEndAllowThreads(__tstate); | |
36574 | if (PyErr_Occurred()) SWIG_fail; | |
36575 | } | |
36576 | resultobj = SWIG_FromInt((int)result); | |
36577 | return resultobj; | |
36578 | fail: | |
36579 | return NULL; | |
36580 | } | |
36581 | ||
36582 | ||
36583 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36584 | PyObject *resultobj; | |
36585 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36586 | int result; | |
36587 | PyObject * obj0 = 0 ; | |
36588 | char *kwnames[] = { | |
36589 | (char *) "self", NULL | |
36590 | }; | |
36591 | ||
36592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36595 | { | |
36596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36597 | result = (int)(arg1)->GetHGap(); | |
36598 | ||
36599 | wxPyEndAllowThreads(__tstate); | |
36600 | if (PyErr_Occurred()) SWIG_fail; | |
36601 | } | |
36602 | resultobj = SWIG_FromInt((int)result); | |
36603 | return resultobj; | |
36604 | fail: | |
36605 | return NULL; | |
36606 | } | |
36607 | ||
36608 | ||
36609 | static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) { | |
36610 | PyObject *obj; | |
36611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36612 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36613 | Py_INCREF(obj); | |
36614 | return Py_BuildValue((char *)""); | |
36615 | } | |
36616 | static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36617 | PyObject *resultobj; | |
36618 | int arg1 = (int) 1 ; | |
36619 | int arg2 = (int) 0 ; | |
36620 | int arg3 = (int) 0 ; | |
36621 | int arg4 = (int) 0 ; | |
36622 | wxFlexGridSizer *result; | |
36623 | PyObject * obj0 = 0 ; | |
36624 | PyObject * obj1 = 0 ; | |
36625 | PyObject * obj2 = 0 ; | |
36626 | PyObject * obj3 = 0 ; | |
36627 | char *kwnames[] = { | |
36628 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36629 | }; | |
36630 | ||
36631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36632 | if (obj0) { | |
36633 | arg1 = (int) SWIG_AsInt(obj0); | |
36634 | if (PyErr_Occurred()) SWIG_fail; | |
36635 | } | |
36636 | if (obj1) { | |
36637 | arg2 = (int) SWIG_AsInt(obj1); | |
36638 | if (PyErr_Occurred()) SWIG_fail; | |
36639 | } | |
36640 | if (obj2) { | |
36641 | arg3 = (int) SWIG_AsInt(obj2); | |
36642 | if (PyErr_Occurred()) SWIG_fail; | |
36643 | } | |
36644 | if (obj3) { | |
36645 | arg4 = (int) SWIG_AsInt(obj3); | |
36646 | if (PyErr_Occurred()) SWIG_fail; | |
36647 | } | |
36648 | { | |
36649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36650 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36651 | ||
36652 | wxPyEndAllowThreads(__tstate); | |
36653 | if (PyErr_Occurred()) SWIG_fail; | |
36654 | } | |
36655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36656 | return resultobj; | |
36657 | fail: | |
36658 | return NULL; | |
36659 | } | |
36660 | ||
36661 | ||
36662 | static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36663 | PyObject *resultobj; | |
36664 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36665 | PyObject * obj0 = 0 ; | |
36666 | char *kwnames[] = { | |
36667 | (char *) "self", NULL | |
36668 | }; | |
36669 | ||
36670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36673 | { | |
36674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36675 | (arg1)->RecalcSizes(); | |
36676 | ||
36677 | wxPyEndAllowThreads(__tstate); | |
36678 | if (PyErr_Occurred()) SWIG_fail; | |
36679 | } | |
36680 | Py_INCREF(Py_None); resultobj = Py_None; | |
36681 | return resultobj; | |
36682 | fail: | |
36683 | return NULL; | |
36684 | } | |
36685 | ||
36686 | ||
36687 | static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36688 | PyObject *resultobj; | |
36689 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36690 | wxSize result; | |
36691 | PyObject * obj0 = 0 ; | |
36692 | char *kwnames[] = { | |
36693 | (char *) "self", NULL | |
36694 | }; | |
36695 | ||
36696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail; | |
36697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36699 | { | |
36700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36701 | result = (arg1)->CalcMin(); | |
36702 | ||
36703 | wxPyEndAllowThreads(__tstate); | |
36704 | if (PyErr_Occurred()) SWIG_fail; | |
36705 | } | |
36706 | { | |
36707 | wxSize * resultptr; | |
36708 | resultptr = new wxSize((wxSize &) result); | |
36709 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36710 | } | |
36711 | return resultobj; | |
36712 | fail: | |
36713 | return NULL; | |
36714 | } | |
36715 | ||
36716 | ||
36717 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36718 | PyObject *resultobj; | |
36719 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36720 | size_t arg2 ; | |
36721 | int arg3 = (int) 0 ; | |
36722 | PyObject * obj0 = 0 ; | |
36723 | PyObject * obj1 = 0 ; | |
36724 | PyObject * obj2 = 0 ; | |
36725 | char *kwnames[] = { | |
36726 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36727 | }; | |
36728 | ||
36729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36732 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36733 | if (PyErr_Occurred()) SWIG_fail; | |
36734 | if (obj2) { | |
36735 | arg3 = (int) SWIG_AsInt(obj2); | |
36736 | if (PyErr_Occurred()) SWIG_fail; | |
36737 | } | |
36738 | { | |
36739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36740 | (arg1)->AddGrowableRow(arg2,arg3); | |
36741 | ||
36742 | wxPyEndAllowThreads(__tstate); | |
36743 | if (PyErr_Occurred()) SWIG_fail; | |
36744 | } | |
36745 | Py_INCREF(Py_None); resultobj = Py_None; | |
36746 | return resultobj; | |
36747 | fail: | |
36748 | return NULL; | |
36749 | } | |
36750 | ||
36751 | ||
36752 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36753 | PyObject *resultobj; | |
36754 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36755 | size_t arg2 ; | |
36756 | PyObject * obj0 = 0 ; | |
36757 | PyObject * obj1 = 0 ; | |
36758 | char *kwnames[] = { | |
36759 | (char *) "self",(char *) "idx", NULL | |
36760 | }; | |
36761 | ||
36762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36765 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36766 | if (PyErr_Occurred()) SWIG_fail; | |
36767 | { | |
36768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36769 | (arg1)->RemoveGrowableRow(arg2); | |
36770 | ||
36771 | wxPyEndAllowThreads(__tstate); | |
36772 | if (PyErr_Occurred()) SWIG_fail; | |
36773 | } | |
36774 | Py_INCREF(Py_None); resultobj = Py_None; | |
36775 | return resultobj; | |
36776 | fail: | |
36777 | return NULL; | |
36778 | } | |
36779 | ||
36780 | ||
36781 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36782 | PyObject *resultobj; | |
36783 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36784 | size_t arg2 ; | |
36785 | int arg3 = (int) 0 ; | |
36786 | PyObject * obj0 = 0 ; | |
36787 | PyObject * obj1 = 0 ; | |
36788 | PyObject * obj2 = 0 ; | |
36789 | char *kwnames[] = { | |
36790 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36791 | }; | |
36792 | ||
36793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36796 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36797 | if (PyErr_Occurred()) SWIG_fail; | |
36798 | if (obj2) { | |
36799 | arg3 = (int) SWIG_AsInt(obj2); | |
36800 | if (PyErr_Occurred()) SWIG_fail; | |
36801 | } | |
36802 | { | |
36803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36804 | (arg1)->AddGrowableCol(arg2,arg3); | |
36805 | ||
36806 | wxPyEndAllowThreads(__tstate); | |
36807 | if (PyErr_Occurred()) SWIG_fail; | |
36808 | } | |
36809 | Py_INCREF(Py_None); resultobj = Py_None; | |
36810 | return resultobj; | |
36811 | fail: | |
36812 | return NULL; | |
36813 | } | |
36814 | ||
36815 | ||
36816 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36817 | PyObject *resultobj; | |
36818 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36819 | size_t arg2 ; | |
36820 | PyObject * obj0 = 0 ; | |
36821 | PyObject * obj1 = 0 ; | |
36822 | char *kwnames[] = { | |
36823 | (char *) "self",(char *) "idx", NULL | |
36824 | }; | |
36825 | ||
36826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
36827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36829 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
36830 | if (PyErr_Occurred()) SWIG_fail; | |
36831 | { | |
36832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36833 | (arg1)->RemoveGrowableCol(arg2); | |
36834 | ||
36835 | wxPyEndAllowThreads(__tstate); | |
36836 | if (PyErr_Occurred()) SWIG_fail; | |
36837 | } | |
36838 | Py_INCREF(Py_None); resultobj = Py_None; | |
36839 | return resultobj; | |
36840 | fail: | |
36841 | return NULL; | |
36842 | } | |
36843 | ||
36844 | ||
36845 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36846 | PyObject *resultobj; | |
36847 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36848 | int arg2 ; | |
36849 | PyObject * obj0 = 0 ; | |
36850 | PyObject * obj1 = 0 ; | |
36851 | char *kwnames[] = { | |
36852 | (char *) "self",(char *) "direction", NULL | |
36853 | }; | |
36854 | ||
36855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
36856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36858 | arg2 = (int) SWIG_AsInt(obj1); | |
36859 | if (PyErr_Occurred()) SWIG_fail; | |
36860 | { | |
36861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36862 | (arg1)->SetFlexibleDirection(arg2); | |
36863 | ||
36864 | wxPyEndAllowThreads(__tstate); | |
36865 | if (PyErr_Occurred()) SWIG_fail; | |
36866 | } | |
36867 | Py_INCREF(Py_None); resultobj = Py_None; | |
36868 | return resultobj; | |
36869 | fail: | |
36870 | return NULL; | |
36871 | } | |
36872 | ||
36873 | ||
36874 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36875 | PyObject *resultobj; | |
36876 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36877 | int result; | |
36878 | PyObject * obj0 = 0 ; | |
36879 | char *kwnames[] = { | |
36880 | (char *) "self", NULL | |
36881 | }; | |
36882 | ||
36883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
36884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36886 | { | |
36887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36888 | result = (int)(arg1)->GetFlexibleDirection(); | |
36889 | ||
36890 | wxPyEndAllowThreads(__tstate); | |
36891 | if (PyErr_Occurred()) SWIG_fail; | |
36892 | } | |
36893 | resultobj = SWIG_FromInt((int)result); | |
36894 | return resultobj; | |
36895 | fail: | |
36896 | return NULL; | |
36897 | } | |
36898 | ||
36899 | ||
36900 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36901 | PyObject *resultobj; | |
36902 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36903 | int arg2 ; | |
36904 | PyObject * obj0 = 0 ; | |
36905 | PyObject * obj1 = 0 ; | |
36906 | char *kwnames[] = { | |
36907 | (char *) "self",(char *) "mode", NULL | |
36908 | }; | |
36909 | ||
36910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
36911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36913 | arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1); | |
36914 | if (PyErr_Occurred()) SWIG_fail; | |
36915 | { | |
36916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36917 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
36918 | ||
36919 | wxPyEndAllowThreads(__tstate); | |
36920 | if (PyErr_Occurred()) SWIG_fail; | |
36921 | } | |
36922 | Py_INCREF(Py_None); resultobj = Py_None; | |
36923 | return resultobj; | |
36924 | fail: | |
36925 | return NULL; | |
36926 | } | |
36927 | ||
36928 | ||
36929 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36930 | PyObject *resultobj; | |
36931 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36932 | int result; | |
36933 | PyObject * obj0 = 0 ; | |
36934 | char *kwnames[] = { | |
36935 | (char *) "self", NULL | |
36936 | }; | |
36937 | ||
36938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
36939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36941 | { | |
36942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36943 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
36944 | ||
36945 | wxPyEndAllowThreads(__tstate); | |
36946 | if (PyErr_Occurred()) SWIG_fail; | |
36947 | } | |
36948 | resultobj = SWIG_FromInt((int)result); | |
36949 | return resultobj; | |
36950 | fail: | |
36951 | return NULL; | |
36952 | } | |
36953 | ||
36954 | ||
36955 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36956 | PyObject *resultobj; | |
36957 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36958 | wxArrayInt *result; | |
36959 | PyObject * obj0 = 0 ; | |
36960 | char *kwnames[] = { | |
36961 | (char *) "self", NULL | |
36962 | }; | |
36963 | ||
36964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
36965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36967 | { | |
36968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36969 | { | |
36970 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
36971 | result = (wxArrayInt *) &_result_ref; | |
36972 | } | |
36973 | ||
36974 | wxPyEndAllowThreads(__tstate); | |
36975 | if (PyErr_Occurred()) SWIG_fail; | |
36976 | } | |
36977 | { | |
36978 | resultobj = PyList_New(0); | |
36979 | size_t idx; | |
36980 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
36981 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
36982 | PyList_Append(resultobj, val); | |
36983 | Py_DECREF(val); | |
36984 | } | |
36985 | } | |
36986 | return resultobj; | |
36987 | fail: | |
36988 | return NULL; | |
36989 | } | |
36990 | ||
36991 | ||
36992 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) { | |
36993 | PyObject *resultobj; | |
36994 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36995 | wxArrayInt *result; | |
36996 | PyObject * obj0 = 0 ; | |
36997 | char *kwnames[] = { | |
36998 | (char *) "self", NULL | |
36999 | }; | |
37000 | ||
37001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37004 | { | |
37005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37006 | { | |
37007 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37008 | result = (wxArrayInt *) &_result_ref; | |
37009 | } | |
37010 | ||
37011 | wxPyEndAllowThreads(__tstate); | |
37012 | if (PyErr_Occurred()) SWIG_fail; | |
37013 | } | |
37014 | { | |
37015 | resultobj = PyList_New(0); | |
37016 | size_t idx; | |
37017 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37018 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37019 | PyList_Append(resultobj, val); | |
37020 | Py_DECREF(val); | |
37021 | } | |
37022 | } | |
37023 | return resultobj; | |
37024 | fail: | |
37025 | return NULL; | |
37026 | } | |
37027 | ||
37028 | ||
37029 | static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) { | |
37030 | PyObject *obj; | |
37031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37032 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37033 | Py_INCREF(obj); | |
37034 | return Py_BuildValue((char *)""); | |
37035 | } | |
37036 | static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37037 | PyObject *resultobj; | |
37038 | int arg1 = (int) 0 ; | |
37039 | int arg2 = (int) 0 ; | |
37040 | wxGBPosition *result; | |
37041 | PyObject * obj0 = 0 ; | |
37042 | PyObject * obj1 = 0 ; | |
37043 | char *kwnames[] = { | |
37044 | (char *) "row",(char *) "col", NULL | |
37045 | }; | |
37046 | ||
37047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37048 | if (obj0) { | |
37049 | arg1 = (int) SWIG_AsInt(obj0); | |
37050 | if (PyErr_Occurred()) SWIG_fail; | |
37051 | } | |
37052 | if (obj1) { | |
37053 | arg2 = (int) SWIG_AsInt(obj1); | |
37054 | if (PyErr_Occurred()) SWIG_fail; | |
37055 | } | |
37056 | { | |
37057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37058 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37059 | ||
37060 | wxPyEndAllowThreads(__tstate); | |
37061 | if (PyErr_Occurred()) SWIG_fail; | |
37062 | } | |
37063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37064 | return resultobj; | |
37065 | fail: | |
37066 | return NULL; | |
37067 | } | |
37068 | ||
37069 | ||
37070 | static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37071 | PyObject *resultobj; | |
37072 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37073 | int result; | |
37074 | PyObject * obj0 = 0 ; | |
37075 | char *kwnames[] = { | |
37076 | (char *) "self", NULL | |
37077 | }; | |
37078 | ||
37079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37082 | { | |
37083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37084 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37085 | ||
37086 | wxPyEndAllowThreads(__tstate); | |
37087 | if (PyErr_Occurred()) SWIG_fail; | |
37088 | } | |
37089 | resultobj = SWIG_FromInt((int)result); | |
37090 | return resultobj; | |
37091 | fail: | |
37092 | return NULL; | |
37093 | } | |
37094 | ||
37095 | ||
37096 | static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37097 | PyObject *resultobj; | |
37098 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37099 | int result; | |
37100 | PyObject * obj0 = 0 ; | |
37101 | char *kwnames[] = { | |
37102 | (char *) "self", NULL | |
37103 | }; | |
37104 | ||
37105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37108 | { | |
37109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37110 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37111 | ||
37112 | wxPyEndAllowThreads(__tstate); | |
37113 | if (PyErr_Occurred()) SWIG_fail; | |
37114 | } | |
37115 | resultobj = SWIG_FromInt((int)result); | |
37116 | return resultobj; | |
37117 | fail: | |
37118 | return NULL; | |
37119 | } | |
37120 | ||
37121 | ||
37122 | static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37123 | PyObject *resultobj; | |
37124 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37125 | int arg2 ; | |
37126 | PyObject * obj0 = 0 ; | |
37127 | PyObject * obj1 = 0 ; | |
37128 | char *kwnames[] = { | |
37129 | (char *) "self",(char *) "row", NULL | |
37130 | }; | |
37131 | ||
37132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37135 | arg2 = (int) SWIG_AsInt(obj1); | |
37136 | if (PyErr_Occurred()) SWIG_fail; | |
37137 | { | |
37138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37139 | (arg1)->SetRow(arg2); | |
37140 | ||
37141 | wxPyEndAllowThreads(__tstate); | |
37142 | if (PyErr_Occurred()) SWIG_fail; | |
37143 | } | |
37144 | Py_INCREF(Py_None); resultobj = Py_None; | |
37145 | return resultobj; | |
37146 | fail: | |
37147 | return NULL; | |
37148 | } | |
37149 | ||
37150 | ||
37151 | static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37152 | PyObject *resultobj; | |
37153 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37154 | int arg2 ; | |
37155 | PyObject * obj0 = 0 ; | |
37156 | PyObject * obj1 = 0 ; | |
37157 | char *kwnames[] = { | |
37158 | (char *) "self",(char *) "col", NULL | |
37159 | }; | |
37160 | ||
37161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37164 | arg2 = (int) SWIG_AsInt(obj1); | |
37165 | if (PyErr_Occurred()) SWIG_fail; | |
37166 | { | |
37167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37168 | (arg1)->SetCol(arg2); | |
37169 | ||
37170 | wxPyEndAllowThreads(__tstate); | |
37171 | if (PyErr_Occurred()) SWIG_fail; | |
37172 | } | |
37173 | Py_INCREF(Py_None); resultobj = Py_None; | |
37174 | return resultobj; | |
37175 | fail: | |
37176 | return NULL; | |
37177 | } | |
37178 | ||
37179 | ||
37180 | static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37181 | PyObject *resultobj; | |
37182 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37183 | wxGBPosition *arg2 = 0 ; | |
37184 | bool result; | |
37185 | wxGBPosition temp2 ; | |
37186 | PyObject * obj0 = 0 ; | |
37187 | PyObject * obj1 = 0 ; | |
37188 | char *kwnames[] = { | |
37189 | (char *) "self",(char *) "other", NULL | |
37190 | }; | |
37191 | ||
37192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37195 | { | |
37196 | arg2 = &temp2; | |
37197 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37198 | } | |
37199 | { | |
37200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37201 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37202 | ||
37203 | wxPyEndAllowThreads(__tstate); | |
37204 | if (PyErr_Occurred()) SWIG_fail; | |
37205 | } | |
37206 | { | |
37207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37208 | } | |
37209 | return resultobj; | |
37210 | fail: | |
37211 | return NULL; | |
37212 | } | |
37213 | ||
37214 | ||
37215 | static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37216 | PyObject *resultobj; | |
37217 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37218 | wxGBPosition *arg2 = 0 ; | |
37219 | bool result; | |
37220 | wxGBPosition temp2 ; | |
37221 | PyObject * obj0 = 0 ; | |
37222 | PyObject * obj1 = 0 ; | |
37223 | char *kwnames[] = { | |
37224 | (char *) "self",(char *) "other", NULL | |
37225 | }; | |
37226 | ||
37227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37230 | { | |
37231 | arg2 = &temp2; | |
37232 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37233 | } | |
37234 | { | |
37235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37236 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37237 | ||
37238 | wxPyEndAllowThreads(__tstate); | |
37239 | if (PyErr_Occurred()) SWIG_fail; | |
37240 | } | |
37241 | { | |
37242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37243 | } | |
37244 | return resultobj; | |
37245 | fail: | |
37246 | return NULL; | |
37247 | } | |
37248 | ||
37249 | ||
37250 | static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37251 | PyObject *resultobj; | |
37252 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37253 | int arg2 = (int) 0 ; | |
37254 | int arg3 = (int) 0 ; | |
37255 | PyObject * obj0 = 0 ; | |
37256 | PyObject * obj1 = 0 ; | |
37257 | PyObject * obj2 = 0 ; | |
37258 | char *kwnames[] = { | |
37259 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37260 | }; | |
37261 | ||
37262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37265 | if (obj1) { | |
37266 | arg2 = (int) SWIG_AsInt(obj1); | |
37267 | if (PyErr_Occurred()) SWIG_fail; | |
37268 | } | |
37269 | if (obj2) { | |
37270 | arg3 = (int) SWIG_AsInt(obj2); | |
37271 | if (PyErr_Occurred()) SWIG_fail; | |
37272 | } | |
37273 | { | |
37274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37275 | wxGBPosition_Set(arg1,arg2,arg3); | |
37276 | ||
37277 | wxPyEndAllowThreads(__tstate); | |
37278 | if (PyErr_Occurred()) SWIG_fail; | |
37279 | } | |
37280 | Py_INCREF(Py_None); resultobj = Py_None; | |
37281 | return resultobj; | |
37282 | fail: | |
37283 | return NULL; | |
37284 | } | |
37285 | ||
37286 | ||
37287 | static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37288 | PyObject *resultobj; | |
37289 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37290 | PyObject *result; | |
37291 | PyObject * obj0 = 0 ; | |
37292 | char *kwnames[] = { | |
37293 | (char *) "self", NULL | |
37294 | }; | |
37295 | ||
37296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37299 | { | |
37300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37301 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37302 | ||
37303 | wxPyEndAllowThreads(__tstate); | |
37304 | if (PyErr_Occurred()) SWIG_fail; | |
37305 | } | |
37306 | resultobj = result; | |
37307 | return resultobj; | |
37308 | fail: | |
37309 | return NULL; | |
37310 | } | |
37311 | ||
37312 | ||
37313 | static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) { | |
37314 | PyObject *obj; | |
37315 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37316 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37317 | Py_INCREF(obj); | |
37318 | return Py_BuildValue((char *)""); | |
37319 | } | |
37320 | static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37321 | PyObject *resultobj; | |
37322 | int arg1 = (int) 1 ; | |
37323 | int arg2 = (int) 1 ; | |
37324 | wxGBSpan *result; | |
37325 | PyObject * obj0 = 0 ; | |
37326 | PyObject * obj1 = 0 ; | |
37327 | char *kwnames[] = { | |
37328 | (char *) "rowspan",(char *) "colspan", NULL | |
37329 | }; | |
37330 | ||
37331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37332 | if (obj0) { | |
37333 | arg1 = (int) SWIG_AsInt(obj0); | |
37334 | if (PyErr_Occurred()) SWIG_fail; | |
37335 | } | |
37336 | if (obj1) { | |
37337 | arg2 = (int) SWIG_AsInt(obj1); | |
37338 | if (PyErr_Occurred()) SWIG_fail; | |
37339 | } | |
37340 | { | |
37341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37342 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37343 | ||
37344 | wxPyEndAllowThreads(__tstate); | |
37345 | if (PyErr_Occurred()) SWIG_fail; | |
37346 | } | |
37347 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37348 | return resultobj; | |
37349 | fail: | |
37350 | return NULL; | |
37351 | } | |
37352 | ||
37353 | ||
37354 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37355 | PyObject *resultobj; | |
37356 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37357 | int result; | |
37358 | PyObject * obj0 = 0 ; | |
37359 | char *kwnames[] = { | |
37360 | (char *) "self", NULL | |
37361 | }; | |
37362 | ||
37363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37366 | { | |
37367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37368 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37369 | ||
37370 | wxPyEndAllowThreads(__tstate); | |
37371 | if (PyErr_Occurred()) SWIG_fail; | |
37372 | } | |
37373 | resultobj = SWIG_FromInt((int)result); | |
37374 | return resultobj; | |
37375 | fail: | |
37376 | return NULL; | |
37377 | } | |
37378 | ||
37379 | ||
37380 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37381 | PyObject *resultobj; | |
37382 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37383 | int result; | |
37384 | PyObject * obj0 = 0 ; | |
37385 | char *kwnames[] = { | |
37386 | (char *) "self", NULL | |
37387 | }; | |
37388 | ||
37389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37392 | { | |
37393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37394 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37395 | ||
37396 | wxPyEndAllowThreads(__tstate); | |
37397 | if (PyErr_Occurred()) SWIG_fail; | |
37398 | } | |
37399 | resultobj = SWIG_FromInt((int)result); | |
37400 | return resultobj; | |
37401 | fail: | |
37402 | return NULL; | |
37403 | } | |
37404 | ||
37405 | ||
37406 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37407 | PyObject *resultobj; | |
37408 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37409 | int arg2 ; | |
37410 | PyObject * obj0 = 0 ; | |
37411 | PyObject * obj1 = 0 ; | |
37412 | char *kwnames[] = { | |
37413 | (char *) "self",(char *) "rowspan", NULL | |
37414 | }; | |
37415 | ||
37416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37419 | arg2 = (int) SWIG_AsInt(obj1); | |
37420 | if (PyErr_Occurred()) SWIG_fail; | |
37421 | { | |
37422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37423 | (arg1)->SetRowspan(arg2); | |
37424 | ||
37425 | wxPyEndAllowThreads(__tstate); | |
37426 | if (PyErr_Occurred()) SWIG_fail; | |
37427 | } | |
37428 | Py_INCREF(Py_None); resultobj = Py_None; | |
37429 | return resultobj; | |
37430 | fail: | |
37431 | return NULL; | |
37432 | } | |
37433 | ||
37434 | ||
37435 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37436 | PyObject *resultobj; | |
37437 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37438 | int arg2 ; | |
37439 | PyObject * obj0 = 0 ; | |
37440 | PyObject * obj1 = 0 ; | |
37441 | char *kwnames[] = { | |
37442 | (char *) "self",(char *) "colspan", NULL | |
37443 | }; | |
37444 | ||
37445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
37446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37448 | arg2 = (int) SWIG_AsInt(obj1); | |
37449 | if (PyErr_Occurred()) SWIG_fail; | |
37450 | { | |
37451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37452 | (arg1)->SetColspan(arg2); | |
37453 | ||
37454 | wxPyEndAllowThreads(__tstate); | |
37455 | if (PyErr_Occurred()) SWIG_fail; | |
37456 | } | |
37457 | Py_INCREF(Py_None); resultobj = Py_None; | |
37458 | return resultobj; | |
37459 | fail: | |
37460 | return NULL; | |
37461 | } | |
37462 | ||
37463 | ||
37464 | static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37465 | PyObject *resultobj; | |
37466 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37467 | wxGBSpan *arg2 = 0 ; | |
37468 | bool result; | |
37469 | wxGBSpan temp2 ; | |
37470 | PyObject * obj0 = 0 ; | |
37471 | PyObject * obj1 = 0 ; | |
37472 | char *kwnames[] = { | |
37473 | (char *) "self",(char *) "other", NULL | |
37474 | }; | |
37475 | ||
37476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37479 | { | |
37480 | arg2 = &temp2; | |
37481 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37482 | } | |
37483 | { | |
37484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37485 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
37486 | ||
37487 | wxPyEndAllowThreads(__tstate); | |
37488 | if (PyErr_Occurred()) SWIG_fail; | |
37489 | } | |
37490 | { | |
37491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37492 | } | |
37493 | return resultobj; | |
37494 | fail: | |
37495 | return NULL; | |
37496 | } | |
37497 | ||
37498 | ||
37499 | static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37500 | PyObject *resultobj; | |
37501 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37502 | wxGBSpan *arg2 = 0 ; | |
37503 | bool result; | |
37504 | wxGBSpan temp2 ; | |
37505 | PyObject * obj0 = 0 ; | |
37506 | PyObject * obj1 = 0 ; | |
37507 | char *kwnames[] = { | |
37508 | (char *) "self",(char *) "other", NULL | |
37509 | }; | |
37510 | ||
37511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37514 | { | |
37515 | arg2 = &temp2; | |
37516 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37517 | } | |
37518 | { | |
37519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37520 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37521 | ||
37522 | wxPyEndAllowThreads(__tstate); | |
37523 | if (PyErr_Occurred()) SWIG_fail; | |
37524 | } | |
37525 | { | |
37526 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37527 | } | |
37528 | return resultobj; | |
37529 | fail: | |
37530 | return NULL; | |
37531 | } | |
37532 | ||
37533 | ||
37534 | static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37535 | PyObject *resultobj; | |
37536 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37537 | int arg2 = (int) 1 ; | |
37538 | int arg3 = (int) 1 ; | |
37539 | PyObject * obj0 = 0 ; | |
37540 | PyObject * obj1 = 0 ; | |
37541 | PyObject * obj2 = 0 ; | |
37542 | char *kwnames[] = { | |
37543 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37544 | }; | |
37545 | ||
37546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37549 | if (obj1) { | |
37550 | arg2 = (int) SWIG_AsInt(obj1); | |
37551 | if (PyErr_Occurred()) SWIG_fail; | |
37552 | } | |
37553 | if (obj2) { | |
37554 | arg3 = (int) SWIG_AsInt(obj2); | |
37555 | if (PyErr_Occurred()) SWIG_fail; | |
37556 | } | |
37557 | { | |
37558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37559 | wxGBSpan_Set(arg1,arg2,arg3); | |
37560 | ||
37561 | wxPyEndAllowThreads(__tstate); | |
37562 | if (PyErr_Occurred()) SWIG_fail; | |
37563 | } | |
37564 | Py_INCREF(Py_None); resultobj = Py_None; | |
37565 | return resultobj; | |
37566 | fail: | |
37567 | return NULL; | |
37568 | } | |
37569 | ||
37570 | ||
37571 | static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37572 | PyObject *resultobj; | |
37573 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37574 | PyObject *result; | |
37575 | PyObject * obj0 = 0 ; | |
37576 | char *kwnames[] = { | |
37577 | (char *) "self", NULL | |
37578 | }; | |
37579 | ||
37580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37583 | { | |
37584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37585 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37586 | ||
37587 | wxPyEndAllowThreads(__tstate); | |
37588 | if (PyErr_Occurred()) SWIG_fail; | |
37589 | } | |
37590 | resultobj = result; | |
37591 | return resultobj; | |
37592 | fail: | |
37593 | return NULL; | |
37594 | } | |
37595 | ||
37596 | ||
37597 | static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) { | |
37598 | PyObject *obj; | |
37599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37600 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37601 | Py_INCREF(obj); | |
37602 | return Py_BuildValue((char *)""); | |
37603 | } | |
37604 | static int _wrap_DefaultSpan_set(PyObject *_val) { | |
37605 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); | |
37606 | return 1; | |
37607 | } | |
37608 | ||
37609 | ||
37610 | static PyObject *_wrap_DefaultSpan_get() { | |
37611 | PyObject *pyobj; | |
37612 | ||
37613 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37614 | return pyobj; | |
37615 | } | |
37616 | ||
37617 | ||
37618 | static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37619 | PyObject *resultobj; | |
37620 | wxGBSizerItem *result; | |
37621 | char *kwnames[] = { | |
37622 | NULL | |
37623 | }; | |
37624 | ||
37625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37626 | { | |
37627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37628 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37629 | ||
37630 | wxPyEndAllowThreads(__tstate); | |
37631 | if (PyErr_Occurred()) SWIG_fail; | |
37632 | } | |
37633 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37634 | return resultobj; | |
37635 | fail: | |
37636 | return NULL; | |
37637 | } | |
37638 | ||
37639 | ||
37640 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37641 | PyObject *resultobj; | |
37642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37643 | wxGBPosition *arg2 = 0 ; | |
37644 | wxGBSpan *arg3 = 0 ; | |
37645 | int arg4 ; | |
37646 | int arg5 ; | |
37647 | wxObject *arg6 = (wxObject *) 0 ; | |
37648 | wxGBSizerItem *result; | |
37649 | wxGBPosition temp2 ; | |
37650 | wxGBSpan temp3 ; | |
37651 | PyObject * obj0 = 0 ; | |
37652 | PyObject * obj1 = 0 ; | |
37653 | PyObject * obj2 = 0 ; | |
37654 | PyObject * obj3 = 0 ; | |
37655 | PyObject * obj4 = 0 ; | |
37656 | PyObject * obj5 = 0 ; | |
37657 | char *kwnames[] = { | |
37658 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37659 | }; | |
37660 | ||
37661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
37663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37664 | { | |
37665 | arg2 = &temp2; | |
37666 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37667 | } | |
37668 | { | |
37669 | arg3 = &temp3; | |
37670 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37671 | } | |
37672 | arg4 = (int) SWIG_AsInt(obj3); | |
37673 | if (PyErr_Occurred()) SWIG_fail; | |
37674 | arg5 = (int) SWIG_AsInt(obj4); | |
37675 | if (PyErr_Occurred()) SWIG_fail; | |
37676 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37678 | { | |
37679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37680 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37681 | ||
37682 | wxPyEndAllowThreads(__tstate); | |
37683 | if (PyErr_Occurred()) SWIG_fail; | |
37684 | } | |
37685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37686 | return resultobj; | |
37687 | fail: | |
37688 | return NULL; | |
37689 | } | |
37690 | ||
37691 | ||
37692 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37693 | PyObject *resultobj; | |
37694 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37695 | wxGBPosition *arg2 = 0 ; | |
37696 | wxGBSpan *arg3 = 0 ; | |
37697 | int arg4 ; | |
37698 | int arg5 ; | |
37699 | wxObject *arg6 = (wxObject *) 0 ; | |
37700 | wxGBSizerItem *result; | |
37701 | wxGBPosition temp2 ; | |
37702 | wxGBSpan temp3 ; | |
37703 | PyObject * obj0 = 0 ; | |
37704 | PyObject * obj1 = 0 ; | |
37705 | PyObject * obj2 = 0 ; | |
37706 | PyObject * obj3 = 0 ; | |
37707 | PyObject * obj4 = 0 ; | |
37708 | PyObject * obj5 = 0 ; | |
37709 | char *kwnames[] = { | |
37710 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37711 | }; | |
37712 | ||
37713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
37714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
37715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37716 | { | |
37717 | arg2 = &temp2; | |
37718 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37719 | } | |
37720 | { | |
37721 | arg3 = &temp3; | |
37722 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37723 | } | |
37724 | arg4 = (int) SWIG_AsInt(obj3); | |
37725 | if (PyErr_Occurred()) SWIG_fail; | |
37726 | arg5 = (int) SWIG_AsInt(obj4); | |
37727 | if (PyErr_Occurred()) SWIG_fail; | |
37728 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxObject, | |
37729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37730 | { | |
37731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37732 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); | |
37733 | ||
37734 | wxPyEndAllowThreads(__tstate); | |
37735 | if (PyErr_Occurred()) SWIG_fail; | |
37736 | } | |
37737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37738 | return resultobj; | |
37739 | fail: | |
37740 | return NULL; | |
37741 | } | |
37742 | ||
37743 | ||
37744 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37745 | PyObject *resultobj; | |
37746 | int arg1 ; | |
37747 | int arg2 ; | |
37748 | wxGBPosition *arg3 = 0 ; | |
37749 | wxGBSpan *arg4 = 0 ; | |
37750 | int arg5 ; | |
37751 | int arg6 ; | |
37752 | wxObject *arg7 = (wxObject *) 0 ; | |
37753 | wxGBSizerItem *result; | |
37754 | wxGBPosition temp3 ; | |
37755 | wxGBSpan temp4 ; | |
37756 | PyObject * obj0 = 0 ; | |
37757 | PyObject * obj1 = 0 ; | |
37758 | PyObject * obj2 = 0 ; | |
37759 | PyObject * obj3 = 0 ; | |
37760 | PyObject * obj4 = 0 ; | |
37761 | PyObject * obj5 = 0 ; | |
37762 | PyObject * obj6 = 0 ; | |
37763 | char *kwnames[] = { | |
37764 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37765 | }; | |
37766 | ||
37767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
37768 | arg1 = (int) SWIG_AsInt(obj0); | |
37769 | if (PyErr_Occurred()) SWIG_fail; | |
37770 | arg2 = (int) SWIG_AsInt(obj1); | |
37771 | if (PyErr_Occurred()) SWIG_fail; | |
37772 | { | |
37773 | arg3 = &temp3; | |
37774 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37775 | } | |
37776 | { | |
37777 | arg4 = &temp4; | |
37778 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37779 | } | |
37780 | arg5 = (int) SWIG_AsInt(obj4); | |
37781 | if (PyErr_Occurred()) SWIG_fail; | |
37782 | arg6 = (int) SWIG_AsInt(obj5); | |
37783 | if (PyErr_Occurred()) SWIG_fail; | |
37784 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxObject, | |
37785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37786 | { | |
37787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37788 | result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
37789 | ||
37790 | wxPyEndAllowThreads(__tstate); | |
37791 | if (PyErr_Occurred()) SWIG_fail; | |
37792 | } | |
37793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37794 | return resultobj; | |
37795 | fail: | |
37796 | return NULL; | |
37797 | } | |
37798 | ||
37799 | ||
37800 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37801 | PyObject *resultobj; | |
37802 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37803 | wxGBPosition result; | |
37804 | PyObject * obj0 = 0 ; | |
37805 | char *kwnames[] = { | |
37806 | (char *) "self", NULL | |
37807 | }; | |
37808 | ||
37809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
37810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37812 | { | |
37813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37814 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
37815 | ||
37816 | wxPyEndAllowThreads(__tstate); | |
37817 | if (PyErr_Occurred()) SWIG_fail; | |
37818 | } | |
37819 | { | |
37820 | wxGBPosition * resultptr; | |
37821 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
37822 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
37823 | } | |
37824 | return resultobj; | |
37825 | fail: | |
37826 | return NULL; | |
37827 | } | |
37828 | ||
37829 | ||
37830 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37831 | PyObject *resultobj; | |
37832 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37833 | wxGBSpan result; | |
37834 | PyObject * obj0 = 0 ; | |
37835 | char *kwnames[] = { | |
37836 | (char *) "self", NULL | |
37837 | }; | |
37838 | ||
37839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
37840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37842 | { | |
37843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37844 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
37845 | ||
37846 | wxPyEndAllowThreads(__tstate); | |
37847 | if (PyErr_Occurred()) SWIG_fail; | |
37848 | } | |
37849 | { | |
37850 | wxGBSpan * resultptr; | |
37851 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
37852 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
37853 | } | |
37854 | return resultobj; | |
37855 | fail: | |
37856 | return NULL; | |
37857 | } | |
37858 | ||
37859 | ||
37860 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37861 | PyObject *resultobj; | |
37862 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37863 | wxGBPosition *arg2 = 0 ; | |
37864 | bool result; | |
37865 | wxGBPosition temp2 ; | |
37866 | PyObject * obj0 = 0 ; | |
37867 | PyObject * obj1 = 0 ; | |
37868 | char *kwnames[] = { | |
37869 | (char *) "self",(char *) "pos", NULL | |
37870 | }; | |
37871 | ||
37872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
37873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37875 | { | |
37876 | arg2 = &temp2; | |
37877 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37878 | } | |
37879 | { | |
37880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37881 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
37882 | ||
37883 | wxPyEndAllowThreads(__tstate); | |
37884 | if (PyErr_Occurred()) SWIG_fail; | |
37885 | } | |
37886 | { | |
37887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37888 | } | |
37889 | return resultobj; | |
37890 | fail: | |
37891 | return NULL; | |
37892 | } | |
37893 | ||
37894 | ||
37895 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) { | |
37896 | PyObject *resultobj; | |
37897 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37898 | wxGBSpan *arg2 = 0 ; | |
37899 | bool result; | |
37900 | wxGBSpan temp2 ; | |
37901 | PyObject * obj0 = 0 ; | |
37902 | PyObject * obj1 = 0 ; | |
37903 | char *kwnames[] = { | |
37904 | (char *) "self",(char *) "span", NULL | |
37905 | }; | |
37906 | ||
37907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
37908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37910 | { | |
37911 | arg2 = &temp2; | |
37912 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37913 | } | |
37914 | { | |
37915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37916 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
37917 | ||
37918 | wxPyEndAllowThreads(__tstate); | |
37919 | if (PyErr_Occurred()) SWIG_fail; | |
37920 | } | |
37921 | { | |
37922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37923 | } | |
37924 | return resultobj; | |
37925 | fail: | |
37926 | return NULL; | |
37927 | } | |
37928 | ||
37929 | ||
37930 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) { | |
37931 | PyObject *resultobj; | |
37932 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37933 | wxGBSizerItem *arg2 = 0 ; | |
37934 | bool result; | |
37935 | PyObject * obj0 = 0 ; | |
37936 | PyObject * obj1 = 0 ; | |
37937 | ||
37938 | if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail; | |
37939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37941 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
37942 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
37943 | SWIG_fail; | |
37944 | if (arg2 == NULL) { | |
37945 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
37946 | SWIG_fail; | |
37947 | } | |
37948 | { | |
37949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37950 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
37951 | ||
37952 | wxPyEndAllowThreads(__tstate); | |
37953 | if (PyErr_Occurred()) SWIG_fail; | |
37954 | } | |
37955 | { | |
37956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37957 | } | |
37958 | return resultobj; | |
37959 | fail: | |
37960 | return NULL; | |
37961 | } | |
37962 | ||
37963 | ||
37964 | static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) { | |
37965 | PyObject *resultobj; | |
37966 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37967 | wxGBPosition *arg2 = 0 ; | |
37968 | wxGBSpan *arg3 = 0 ; | |
37969 | bool result; | |
37970 | wxGBPosition temp2 ; | |
37971 | wxGBSpan temp3 ; | |
37972 | PyObject * obj0 = 0 ; | |
37973 | PyObject * obj1 = 0 ; | |
37974 | PyObject * obj2 = 0 ; | |
37975 | ||
37976 | if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail; | |
37977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37979 | { | |
37980 | arg2 = &temp2; | |
37981 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37982 | } | |
37983 | { | |
37984 | arg3 = &temp3; | |
37985 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37986 | } | |
37987 | { | |
37988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37989 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
37990 | ||
37991 | wxPyEndAllowThreads(__tstate); | |
37992 | if (PyErr_Occurred()) SWIG_fail; | |
37993 | } | |
37994 | { | |
37995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37996 | } | |
37997 | return resultobj; | |
37998 | fail: | |
37999 | return NULL; | |
38000 | } | |
38001 | ||
38002 | ||
38003 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) { | |
38004 | int argc; | |
38005 | PyObject *argv[4]; | |
38006 | int ii; | |
38007 | ||
38008 | argc = PyObject_Length(args); | |
38009 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38010 | argv[ii] = PyTuple_GetItem(args,ii); | |
38011 | } | |
38012 | if (argc == 2) { | |
38013 | int _v; | |
38014 | { | |
38015 | void *ptr; | |
38016 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
38017 | _v = 0; | |
38018 | PyErr_Clear(); | |
38019 | } else { | |
38020 | _v = 1; | |
38021 | } | |
38022 | } | |
38023 | if (_v) { | |
38024 | { | |
38025 | void *ptr; | |
38026 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
38027 | _v = 0; | |
38028 | PyErr_Clear(); | |
38029 | } else { | |
38030 | _v = 1; | |
38031 | } | |
38032 | } | |
38033 | if (_v) { | |
38034 | return _wrap_GBSizerItem_Intersects__SWIG_0(self,args); | |
38035 | } | |
38036 | } | |
38037 | } | |
38038 | if (argc == 3) { | |
38039 | int _v; | |
38040 | { | |
38041 | void *ptr; | |
38042 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
38043 | _v = 0; | |
38044 | PyErr_Clear(); | |
38045 | } else { | |
38046 | _v = 1; | |
38047 | } | |
38048 | } | |
38049 | if (_v) { | |
38050 | { | |
38051 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
38052 | } | |
38053 | if (_v) { | |
38054 | { | |
38055 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
38056 | } | |
38057 | if (_v) { | |
38058 | return _wrap_GBSizerItem_Intersects__SWIG_1(self,args); | |
38059 | } | |
38060 | } | |
38061 | } | |
38062 | } | |
38063 | ||
38064 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'"); | |
38065 | return NULL; | |
38066 | } | |
38067 | ||
38068 | ||
38069 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38070 | PyObject *resultobj; | |
38071 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38072 | int *arg2 = 0 ; | |
38073 | int *arg3 = 0 ; | |
38074 | PyObject * obj0 = 0 ; | |
38075 | PyObject * obj1 = 0 ; | |
38076 | PyObject * obj2 = 0 ; | |
38077 | char *kwnames[] = { | |
38078 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38079 | }; | |
38080 | ||
38081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int, | |
38085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38086 | SWIG_fail; | |
38087 | if (arg2 == NULL) { | |
38088 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38089 | SWIG_fail; | |
38090 | } | |
38091 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int, | |
38092 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38093 | SWIG_fail; | |
38094 | if (arg3 == NULL) { | |
38095 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38096 | SWIG_fail; | |
38097 | } | |
38098 | { | |
38099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38100 | (arg1)->GetEndPos(*arg2,*arg3); | |
38101 | ||
38102 | wxPyEndAllowThreads(__tstate); | |
38103 | if (PyErr_Occurred()) SWIG_fail; | |
38104 | } | |
38105 | Py_INCREF(Py_None); resultobj = Py_None; | |
38106 | return resultobj; | |
38107 | fail: | |
38108 | return NULL; | |
38109 | } | |
38110 | ||
38111 | ||
38112 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38113 | PyObject *resultobj; | |
38114 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38115 | wxGridBagSizer *result; | |
38116 | PyObject * obj0 = 0 ; | |
38117 | char *kwnames[] = { | |
38118 | (char *) "self", NULL | |
38119 | }; | |
38120 | ||
38121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38124 | { | |
38125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38126 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38127 | ||
38128 | wxPyEndAllowThreads(__tstate); | |
38129 | if (PyErr_Occurred()) SWIG_fail; | |
38130 | } | |
38131 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38132 | return resultobj; | |
38133 | fail: | |
38134 | return NULL; | |
38135 | } | |
38136 | ||
38137 | ||
38138 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38139 | PyObject *resultobj; | |
38140 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38141 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38142 | PyObject * obj0 = 0 ; | |
38143 | PyObject * obj1 = 0 ; | |
38144 | char *kwnames[] = { | |
38145 | (char *) "self",(char *) "sizer", NULL | |
38146 | }; | |
38147 | ||
38148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38151 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38153 | { | |
38154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38155 | (arg1)->SetGBSizer(arg2); | |
38156 | ||
38157 | wxPyEndAllowThreads(__tstate); | |
38158 | if (PyErr_Occurred()) SWIG_fail; | |
38159 | } | |
38160 | Py_INCREF(Py_None); resultobj = Py_None; | |
38161 | return resultobj; | |
38162 | fail: | |
38163 | return NULL; | |
38164 | } | |
38165 | ||
38166 | ||
38167 | static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) { | |
38168 | PyObject *obj; | |
38169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38170 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38171 | Py_INCREF(obj); | |
38172 | return Py_BuildValue((char *)""); | |
38173 | } | |
38174 | static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38175 | PyObject *resultobj; | |
38176 | int arg1 = (int) 0 ; | |
38177 | int arg2 = (int) 0 ; | |
38178 | wxGridBagSizer *result; | |
38179 | PyObject * obj0 = 0 ; | |
38180 | PyObject * obj1 = 0 ; | |
38181 | char *kwnames[] = { | |
38182 | (char *) "vgap",(char *) "hgap", NULL | |
38183 | }; | |
38184 | ||
38185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38186 | if (obj0) { | |
38187 | arg1 = (int) SWIG_AsInt(obj0); | |
38188 | if (PyErr_Occurred()) SWIG_fail; | |
38189 | } | |
38190 | if (obj1) { | |
38191 | arg2 = (int) SWIG_AsInt(obj1); | |
38192 | if (PyErr_Occurred()) SWIG_fail; | |
38193 | } | |
38194 | { | |
38195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38196 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38197 | ||
38198 | wxPyEndAllowThreads(__tstate); | |
38199 | if (PyErr_Occurred()) SWIG_fail; | |
38200 | } | |
38201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38202 | return resultobj; | |
38203 | fail: | |
38204 | return NULL; | |
38205 | } | |
38206 | ||
38207 | ||
38208 | static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38209 | PyObject *resultobj; | |
38210 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38211 | PyObject *arg2 = (PyObject *) 0 ; | |
38212 | wxGBPosition *arg3 = 0 ; | |
38213 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38214 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38215 | int arg5 = (int) 0 ; | |
38216 | int arg6 = (int) 0 ; | |
38217 | PyObject *arg7 = (PyObject *) NULL ; | |
38218 | bool result; | |
38219 | wxGBPosition temp3 ; | |
38220 | wxGBSpan temp4 ; | |
38221 | PyObject * obj0 = 0 ; | |
38222 | PyObject * obj1 = 0 ; | |
38223 | PyObject * obj2 = 0 ; | |
38224 | PyObject * obj3 = 0 ; | |
38225 | PyObject * obj4 = 0 ; | |
38226 | PyObject * obj5 = 0 ; | |
38227 | PyObject * obj6 = 0 ; | |
38228 | char *kwnames[] = { | |
38229 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38230 | }; | |
38231 | ||
38232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38235 | arg2 = obj1; | |
38236 | { | |
38237 | arg3 = &temp3; | |
38238 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38239 | } | |
38240 | if (obj3) { | |
38241 | { | |
38242 | arg4 = &temp4; | |
38243 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38244 | } | |
38245 | } | |
38246 | if (obj4) { | |
38247 | arg5 = (int) SWIG_AsInt(obj4); | |
38248 | if (PyErr_Occurred()) SWIG_fail; | |
38249 | } | |
38250 | if (obj5) { | |
38251 | arg6 = (int) SWIG_AsInt(obj5); | |
38252 | if (PyErr_Occurred()) SWIG_fail; | |
38253 | } | |
38254 | if (obj6) { | |
38255 | arg7 = obj6; | |
38256 | } | |
38257 | { | |
38258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38259 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38260 | ||
38261 | wxPyEndAllowThreads(__tstate); | |
38262 | if (PyErr_Occurred()) SWIG_fail; | |
38263 | } | |
38264 | { | |
38265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38266 | } | |
38267 | return resultobj; | |
38268 | fail: | |
38269 | return NULL; | |
38270 | } | |
38271 | ||
38272 | ||
38273 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38274 | PyObject *resultobj; | |
38275 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38276 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38277 | bool result; | |
38278 | PyObject * obj0 = 0 ; | |
38279 | PyObject * obj1 = 0 ; | |
38280 | char *kwnames[] = { | |
38281 | (char *) "self",(char *) "item", NULL | |
38282 | }; | |
38283 | ||
38284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38289 | { | |
38290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38291 | result = (bool)(arg1)->Add(arg2); | |
38292 | ||
38293 | wxPyEndAllowThreads(__tstate); | |
38294 | if (PyErr_Occurred()) SWIG_fail; | |
38295 | } | |
38296 | { | |
38297 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38298 | } | |
38299 | return resultobj; | |
38300 | fail: | |
38301 | return NULL; | |
38302 | } | |
38303 | ||
38304 | ||
38305 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38306 | PyObject *resultobj; | |
38307 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38308 | wxSize result; | |
38309 | PyObject * obj0 = 0 ; | |
38310 | char *kwnames[] = { | |
38311 | (char *) "self", NULL | |
38312 | }; | |
38313 | ||
38314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38317 | { | |
38318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38319 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38320 | ||
38321 | wxPyEndAllowThreads(__tstate); | |
38322 | if (PyErr_Occurred()) SWIG_fail; | |
38323 | } | |
38324 | { | |
38325 | wxSize * resultptr; | |
38326 | resultptr = new wxSize((wxSize &) result); | |
38327 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38328 | } | |
38329 | return resultobj; | |
38330 | fail: | |
38331 | return NULL; | |
38332 | } | |
38333 | ||
38334 | ||
38335 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
38336 | PyObject *resultobj; | |
38337 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38338 | wxSize *arg2 = 0 ; | |
38339 | wxSize temp2 ; | |
38340 | PyObject * obj0 = 0 ; | |
38341 | PyObject * obj1 = 0 ; | |
38342 | char *kwnames[] = { | |
38343 | (char *) "self",(char *) "sz", NULL | |
38344 | }; | |
38345 | ||
38346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38349 | { | |
38350 | arg2 = &temp2; | |
38351 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38352 | } | |
38353 | { | |
38354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38355 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38356 | ||
38357 | wxPyEndAllowThreads(__tstate); | |
38358 | if (PyErr_Occurred()) SWIG_fail; | |
38359 | } | |
38360 | Py_INCREF(Py_None); resultobj = Py_None; | |
38361 | return resultobj; | |
38362 | fail: | |
38363 | return NULL; | |
38364 | } | |
38365 | ||
38366 | ||
38367 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38368 | PyObject *resultobj; | |
38369 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38370 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38371 | wxGBPosition result; | |
38372 | PyObject * obj0 = 0 ; | |
38373 | PyObject * obj1 = 0 ; | |
38374 | ||
38375 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38378 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38380 | { | |
38381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38382 | result = (arg1)->GetItemPosition(arg2); | |
38383 | ||
38384 | wxPyEndAllowThreads(__tstate); | |
38385 | if (PyErr_Occurred()) SWIG_fail; | |
38386 | } | |
38387 | { | |
38388 | wxGBPosition * resultptr; | |
38389 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38390 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38391 | } | |
38392 | return resultobj; | |
38393 | fail: | |
38394 | return NULL; | |
38395 | } | |
38396 | ||
38397 | ||
38398 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38399 | PyObject *resultobj; | |
38400 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38401 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38402 | wxGBPosition result; | |
38403 | PyObject * obj0 = 0 ; | |
38404 | PyObject * obj1 = 0 ; | |
38405 | ||
38406 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38411 | { | |
38412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38413 | result = (arg1)->GetItemPosition(arg2); | |
38414 | ||
38415 | wxPyEndAllowThreads(__tstate); | |
38416 | if (PyErr_Occurred()) SWIG_fail; | |
38417 | } | |
38418 | { | |
38419 | wxGBPosition * resultptr; | |
38420 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38421 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38422 | } | |
38423 | return resultobj; | |
38424 | fail: | |
38425 | return NULL; | |
38426 | } | |
38427 | ||
38428 | ||
38429 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38430 | PyObject *resultobj; | |
38431 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38432 | size_t arg2 ; | |
38433 | wxGBPosition result; | |
38434 | PyObject * obj0 = 0 ; | |
38435 | PyObject * obj1 = 0 ; | |
38436 | ||
38437 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38440 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38441 | if (PyErr_Occurred()) SWIG_fail; | |
38442 | { | |
38443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38444 | result = (arg1)->GetItemPosition(arg2); | |
38445 | ||
38446 | wxPyEndAllowThreads(__tstate); | |
38447 | if (PyErr_Occurred()) SWIG_fail; | |
38448 | } | |
38449 | { | |
38450 | wxGBPosition * resultptr; | |
38451 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38452 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38453 | } | |
38454 | return resultobj; | |
38455 | fail: | |
38456 | return NULL; | |
38457 | } | |
38458 | ||
38459 | ||
38460 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38461 | int argc; | |
38462 | PyObject *argv[3]; | |
38463 | int ii; | |
38464 | ||
38465 | argc = PyObject_Length(args); | |
38466 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38467 | argv[ii] = PyTuple_GetItem(args,ii); | |
38468 | } | |
38469 | if (argc == 2) { | |
38470 | int _v; | |
38471 | { | |
38472 | void *ptr; | |
38473 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38474 | _v = 0; | |
38475 | PyErr_Clear(); | |
38476 | } else { | |
38477 | _v = 1; | |
38478 | } | |
38479 | } | |
38480 | if (_v) { | |
38481 | { | |
38482 | void *ptr; | |
38483 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38484 | _v = 0; | |
38485 | PyErr_Clear(); | |
38486 | } else { | |
38487 | _v = 1; | |
38488 | } | |
38489 | } | |
38490 | if (_v) { | |
38491 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38492 | } | |
38493 | } | |
38494 | } | |
38495 | if (argc == 2) { | |
38496 | int _v; | |
38497 | { | |
38498 | void *ptr; | |
38499 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38500 | _v = 0; | |
38501 | PyErr_Clear(); | |
38502 | } else { | |
38503 | _v = 1; | |
38504 | } | |
38505 | } | |
38506 | if (_v) { | |
38507 | { | |
38508 | void *ptr; | |
38509 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38510 | _v = 0; | |
38511 | PyErr_Clear(); | |
38512 | } else { | |
38513 | _v = 1; | |
38514 | } | |
38515 | } | |
38516 | if (_v) { | |
38517 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38518 | } | |
38519 | } | |
38520 | } | |
38521 | if (argc == 2) { | |
38522 | int _v; | |
38523 | { | |
38524 | void *ptr; | |
38525 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38526 | _v = 0; | |
38527 | PyErr_Clear(); | |
38528 | } else { | |
38529 | _v = 1; | |
38530 | } | |
38531 | } | |
38532 | if (_v) { | |
38533 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38534 | if (_v) { | |
38535 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38536 | } | |
38537 | } | |
38538 | } | |
38539 | ||
38540 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38541 | return NULL; | |
38542 | } | |
38543 | ||
38544 | ||
38545 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) { | |
38546 | PyObject *resultobj; | |
38547 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38549 | wxGBPosition *arg3 = 0 ; | |
38550 | bool result; | |
38551 | wxGBPosition temp3 ; | |
38552 | PyObject * obj0 = 0 ; | |
38553 | PyObject * obj1 = 0 ; | |
38554 | PyObject * obj2 = 0 ; | |
38555 | ||
38556 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38561 | { | |
38562 | arg3 = &temp3; | |
38563 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38564 | } | |
38565 | { | |
38566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38567 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38568 | ||
38569 | wxPyEndAllowThreads(__tstate); | |
38570 | if (PyErr_Occurred()) SWIG_fail; | |
38571 | } | |
38572 | { | |
38573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38574 | } | |
38575 | return resultobj; | |
38576 | fail: | |
38577 | return NULL; | |
38578 | } | |
38579 | ||
38580 | ||
38581 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) { | |
38582 | PyObject *resultobj; | |
38583 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38584 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38585 | wxGBPosition *arg3 = 0 ; | |
38586 | bool result; | |
38587 | wxGBPosition temp3 ; | |
38588 | PyObject * obj0 = 0 ; | |
38589 | PyObject * obj1 = 0 ; | |
38590 | PyObject * obj2 = 0 ; | |
38591 | ||
38592 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38597 | { | |
38598 | arg3 = &temp3; | |
38599 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38600 | } | |
38601 | { | |
38602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38603 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38604 | ||
38605 | wxPyEndAllowThreads(__tstate); | |
38606 | if (PyErr_Occurred()) SWIG_fail; | |
38607 | } | |
38608 | { | |
38609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38610 | } | |
38611 | return resultobj; | |
38612 | fail: | |
38613 | return NULL; | |
38614 | } | |
38615 | ||
38616 | ||
38617 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) { | |
38618 | PyObject *resultobj; | |
38619 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38620 | size_t arg2 ; | |
38621 | wxGBPosition *arg3 = 0 ; | |
38622 | bool result; | |
38623 | wxGBPosition temp3 ; | |
38624 | PyObject * obj0 = 0 ; | |
38625 | PyObject * obj1 = 0 ; | |
38626 | PyObject * obj2 = 0 ; | |
38627 | ||
38628 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38631 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38632 | if (PyErr_Occurred()) SWIG_fail; | |
38633 | { | |
38634 | arg3 = &temp3; | |
38635 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38636 | } | |
38637 | { | |
38638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38639 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38640 | ||
38641 | wxPyEndAllowThreads(__tstate); | |
38642 | if (PyErr_Occurred()) SWIG_fail; | |
38643 | } | |
38644 | { | |
38645 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38646 | } | |
38647 | return resultobj; | |
38648 | fail: | |
38649 | return NULL; | |
38650 | } | |
38651 | ||
38652 | ||
38653 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38654 | int argc; | |
38655 | PyObject *argv[4]; | |
38656 | int ii; | |
38657 | ||
38658 | argc = PyObject_Length(args); | |
38659 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38660 | argv[ii] = PyTuple_GetItem(args,ii); | |
38661 | } | |
38662 | if (argc == 3) { | |
38663 | int _v; | |
38664 | { | |
38665 | void *ptr; | |
38666 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38667 | _v = 0; | |
38668 | PyErr_Clear(); | |
38669 | } else { | |
38670 | _v = 1; | |
38671 | } | |
38672 | } | |
38673 | if (_v) { | |
38674 | { | |
38675 | void *ptr; | |
38676 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38677 | _v = 0; | |
38678 | PyErr_Clear(); | |
38679 | } else { | |
38680 | _v = 1; | |
38681 | } | |
38682 | } | |
38683 | if (_v) { | |
38684 | { | |
38685 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38686 | } | |
38687 | if (_v) { | |
38688 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38689 | } | |
38690 | } | |
38691 | } | |
38692 | } | |
38693 | if (argc == 3) { | |
38694 | int _v; | |
38695 | { | |
38696 | void *ptr; | |
38697 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38698 | _v = 0; | |
38699 | PyErr_Clear(); | |
38700 | } else { | |
38701 | _v = 1; | |
38702 | } | |
38703 | } | |
38704 | if (_v) { | |
38705 | { | |
38706 | void *ptr; | |
38707 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38708 | _v = 0; | |
38709 | PyErr_Clear(); | |
38710 | } else { | |
38711 | _v = 1; | |
38712 | } | |
38713 | } | |
38714 | if (_v) { | |
38715 | { | |
38716 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38717 | } | |
38718 | if (_v) { | |
38719 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38720 | } | |
38721 | } | |
38722 | } | |
38723 | } | |
38724 | if (argc == 3) { | |
38725 | int _v; | |
38726 | { | |
38727 | void *ptr; | |
38728 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38729 | _v = 0; | |
38730 | PyErr_Clear(); | |
38731 | } else { | |
38732 | _v = 1; | |
38733 | } | |
38734 | } | |
38735 | if (_v) { | |
38736 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38737 | if (_v) { | |
38738 | { | |
38739 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38740 | } | |
38741 | if (_v) { | |
38742 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38743 | } | |
38744 | } | |
38745 | } | |
38746 | } | |
38747 | ||
38748 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38749 | return NULL; | |
38750 | } | |
38751 | ||
38752 | ||
38753 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38754 | PyObject *resultobj; | |
38755 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38756 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38757 | wxGBSpan result; | |
38758 | PyObject * obj0 = 0 ; | |
38759 | PyObject * obj1 = 0 ; | |
38760 | ||
38761 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38766 | { | |
38767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38768 | result = (arg1)->GetItemSpan(arg2); | |
38769 | ||
38770 | wxPyEndAllowThreads(__tstate); | |
38771 | if (PyErr_Occurred()) SWIG_fail; | |
38772 | } | |
38773 | { | |
38774 | wxGBSpan * resultptr; | |
38775 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38777 | } | |
38778 | return resultobj; | |
38779 | fail: | |
38780 | return NULL; | |
38781 | } | |
38782 | ||
38783 | ||
38784 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38785 | PyObject *resultobj; | |
38786 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38787 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38788 | wxGBSpan result; | |
38789 | PyObject * obj0 = 0 ; | |
38790 | PyObject * obj1 = 0 ; | |
38791 | ||
38792 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38797 | { | |
38798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38799 | result = (arg1)->GetItemSpan(arg2); | |
38800 | ||
38801 | wxPyEndAllowThreads(__tstate); | |
38802 | if (PyErr_Occurred()) SWIG_fail; | |
38803 | } | |
38804 | { | |
38805 | wxGBSpan * resultptr; | |
38806 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38808 | } | |
38809 | return resultobj; | |
38810 | fail: | |
38811 | return NULL; | |
38812 | } | |
38813 | ||
38814 | ||
38815 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
38816 | PyObject *resultobj; | |
38817 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38818 | size_t arg2 ; | |
38819 | wxGBSpan result; | |
38820 | PyObject * obj0 = 0 ; | |
38821 | PyObject * obj1 = 0 ; | |
38822 | ||
38823 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38826 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
38827 | if (PyErr_Occurred()) SWIG_fail; | |
38828 | { | |
38829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38830 | result = (arg1)->GetItemSpan(arg2); | |
38831 | ||
38832 | wxPyEndAllowThreads(__tstate); | |
38833 | if (PyErr_Occurred()) SWIG_fail; | |
38834 | } | |
38835 | { | |
38836 | wxGBSpan * resultptr; | |
38837 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38839 | } | |
38840 | return resultobj; | |
38841 | fail: | |
38842 | return NULL; | |
38843 | } | |
38844 | ||
38845 | ||
38846 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38847 | int argc; | |
38848 | PyObject *argv[3]; | |
38849 | int ii; | |
38850 | ||
38851 | argc = PyObject_Length(args); | |
38852 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38853 | argv[ii] = PyTuple_GetItem(args,ii); | |
38854 | } | |
38855 | if (argc == 2) { | |
38856 | int _v; | |
38857 | { | |
38858 | void *ptr; | |
38859 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38860 | _v = 0; | |
38861 | PyErr_Clear(); | |
38862 | } else { | |
38863 | _v = 1; | |
38864 | } | |
38865 | } | |
38866 | if (_v) { | |
38867 | { | |
38868 | void *ptr; | |
38869 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38870 | _v = 0; | |
38871 | PyErr_Clear(); | |
38872 | } else { | |
38873 | _v = 1; | |
38874 | } | |
38875 | } | |
38876 | if (_v) { | |
38877 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38878 | } | |
38879 | } | |
38880 | } | |
38881 | if (argc == 2) { | |
38882 | int _v; | |
38883 | { | |
38884 | void *ptr; | |
38885 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38886 | _v = 0; | |
38887 | PyErr_Clear(); | |
38888 | } else { | |
38889 | _v = 1; | |
38890 | } | |
38891 | } | |
38892 | if (_v) { | |
38893 | { | |
38894 | void *ptr; | |
38895 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38896 | _v = 0; | |
38897 | PyErr_Clear(); | |
38898 | } else { | |
38899 | _v = 1; | |
38900 | } | |
38901 | } | |
38902 | if (_v) { | |
38903 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
38904 | } | |
38905 | } | |
38906 | } | |
38907 | if (argc == 2) { | |
38908 | int _v; | |
38909 | { | |
38910 | void *ptr; | |
38911 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38912 | _v = 0; | |
38913 | PyErr_Clear(); | |
38914 | } else { | |
38915 | _v = 1; | |
38916 | } | |
38917 | } | |
38918 | if (_v) { | |
38919 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
38920 | if (_v) { | |
38921 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
38922 | } | |
38923 | } | |
38924 | } | |
38925 | ||
38926 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
38927 | return NULL; | |
38928 | } | |
38929 | ||
38930 | ||
38931 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) { | |
38932 | PyObject *resultobj; | |
38933 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38934 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38935 | wxGBSpan *arg3 = 0 ; | |
38936 | bool result; | |
38937 | wxGBSpan temp3 ; | |
38938 | PyObject * obj0 = 0 ; | |
38939 | PyObject * obj1 = 0 ; | |
38940 | PyObject * obj2 = 0 ; | |
38941 | ||
38942 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
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_wxWindow, | |
38946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38947 | { | |
38948 | arg3 = &temp3; | |
38949 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38950 | } | |
38951 | { | |
38952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38953 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38954 | ||
38955 | wxPyEndAllowThreads(__tstate); | |
38956 | if (PyErr_Occurred()) SWIG_fail; | |
38957 | } | |
38958 | { | |
38959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38960 | } | |
38961 | return resultobj; | |
38962 | fail: | |
38963 | return NULL; | |
38964 | } | |
38965 | ||
38966 | ||
38967 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) { | |
38968 | PyObject *resultobj; | |
38969 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38970 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38971 | wxGBSpan *arg3 = 0 ; | |
38972 | bool result; | |
38973 | wxGBSpan temp3 ; | |
38974 | PyObject * obj0 = 0 ; | |
38975 | PyObject * obj1 = 0 ; | |
38976 | PyObject * obj2 = 0 ; | |
38977 | ||
38978 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
38979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38983 | { | |
38984 | arg3 = &temp3; | |
38985 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38986 | } | |
38987 | { | |
38988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38989 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
38990 | ||
38991 | wxPyEndAllowThreads(__tstate); | |
38992 | if (PyErr_Occurred()) SWIG_fail; | |
38993 | } | |
38994 | { | |
38995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38996 | } | |
38997 | return resultobj; | |
38998 | fail: | |
38999 | return NULL; | |
39000 | } | |
39001 | ||
39002 | ||
39003 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) { | |
39004 | PyObject *resultobj; | |
39005 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39006 | size_t arg2 ; | |
39007 | wxGBSpan *arg3 = 0 ; | |
39008 | bool result; | |
39009 | wxGBSpan temp3 ; | |
39010 | PyObject * obj0 = 0 ; | |
39011 | PyObject * obj1 = 0 ; | |
39012 | PyObject * obj2 = 0 ; | |
39013 | ||
39014 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39017 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
39018 | if (PyErr_Occurred()) SWIG_fail; | |
39019 | { | |
39020 | arg3 = &temp3; | |
39021 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39022 | } | |
39023 | { | |
39024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39025 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39026 | ||
39027 | wxPyEndAllowThreads(__tstate); | |
39028 | if (PyErr_Occurred()) SWIG_fail; | |
39029 | } | |
39030 | { | |
39031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39032 | } | |
39033 | return resultobj; | |
39034 | fail: | |
39035 | return NULL; | |
39036 | } | |
39037 | ||
39038 | ||
39039 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39040 | int argc; | |
39041 | PyObject *argv[4]; | |
39042 | int ii; | |
39043 | ||
39044 | argc = PyObject_Length(args); | |
39045 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39046 | argv[ii] = PyTuple_GetItem(args,ii); | |
39047 | } | |
39048 | if (argc == 3) { | |
39049 | int _v; | |
39050 | { | |
39051 | void *ptr; | |
39052 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39053 | _v = 0; | |
39054 | PyErr_Clear(); | |
39055 | } else { | |
39056 | _v = 1; | |
39057 | } | |
39058 | } | |
39059 | if (_v) { | |
39060 | { | |
39061 | void *ptr; | |
39062 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39063 | _v = 0; | |
39064 | PyErr_Clear(); | |
39065 | } else { | |
39066 | _v = 1; | |
39067 | } | |
39068 | } | |
39069 | if (_v) { | |
39070 | { | |
39071 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39072 | } | |
39073 | if (_v) { | |
39074 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39075 | } | |
39076 | } | |
39077 | } | |
39078 | } | |
39079 | if (argc == 3) { | |
39080 | int _v; | |
39081 | { | |
39082 | void *ptr; | |
39083 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39084 | _v = 0; | |
39085 | PyErr_Clear(); | |
39086 | } else { | |
39087 | _v = 1; | |
39088 | } | |
39089 | } | |
39090 | if (_v) { | |
39091 | { | |
39092 | void *ptr; | |
39093 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39094 | _v = 0; | |
39095 | PyErr_Clear(); | |
39096 | } else { | |
39097 | _v = 1; | |
39098 | } | |
39099 | } | |
39100 | if (_v) { | |
39101 | { | |
39102 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39103 | } | |
39104 | if (_v) { | |
39105 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39106 | } | |
39107 | } | |
39108 | } | |
39109 | } | |
39110 | if (argc == 3) { | |
39111 | int _v; | |
39112 | { | |
39113 | void *ptr; | |
39114 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39115 | _v = 0; | |
39116 | PyErr_Clear(); | |
39117 | } else { | |
39118 | _v = 1; | |
39119 | } | |
39120 | } | |
39121 | if (_v) { | |
39122 | _v = SWIG_CheckUnsignedLong(argv[1]); | |
39123 | if (_v) { | |
39124 | { | |
39125 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39126 | } | |
39127 | if (_v) { | |
39128 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39129 | } | |
39130 | } | |
39131 | } | |
39132 | } | |
39133 | ||
39134 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39135 | return NULL; | |
39136 | } | |
39137 | ||
39138 | ||
39139 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) { | |
39140 | PyObject *resultobj; | |
39141 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39142 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39143 | wxGBSizerItem *result; | |
39144 | PyObject * obj0 = 0 ; | |
39145 | PyObject * obj1 = 0 ; | |
39146 | ||
39147 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39150 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39152 | { | |
39153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39154 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39155 | ||
39156 | wxPyEndAllowThreads(__tstate); | |
39157 | if (PyErr_Occurred()) SWIG_fail; | |
39158 | } | |
39159 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39160 | return resultobj; | |
39161 | fail: | |
39162 | return NULL; | |
39163 | } | |
39164 | ||
39165 | ||
39166 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) { | |
39167 | PyObject *resultobj; | |
39168 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39169 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39170 | wxGBSizerItem *result; | |
39171 | PyObject * obj0 = 0 ; | |
39172 | PyObject * obj1 = 0 ; | |
39173 | ||
39174 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39179 | { | |
39180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39181 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39182 | ||
39183 | wxPyEndAllowThreads(__tstate); | |
39184 | if (PyErr_Occurred()) SWIG_fail; | |
39185 | } | |
39186 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39187 | return resultobj; | |
39188 | fail: | |
39189 | return NULL; | |
39190 | } | |
39191 | ||
39192 | ||
39193 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39194 | int argc; | |
39195 | PyObject *argv[3]; | |
39196 | int ii; | |
39197 | ||
39198 | argc = PyObject_Length(args); | |
39199 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39200 | argv[ii] = PyTuple_GetItem(args,ii); | |
39201 | } | |
39202 | if (argc == 2) { | |
39203 | int _v; | |
39204 | { | |
39205 | void *ptr; | |
39206 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39207 | _v = 0; | |
39208 | PyErr_Clear(); | |
39209 | } else { | |
39210 | _v = 1; | |
39211 | } | |
39212 | } | |
39213 | if (_v) { | |
39214 | { | |
39215 | void *ptr; | |
39216 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39217 | _v = 0; | |
39218 | PyErr_Clear(); | |
39219 | } else { | |
39220 | _v = 1; | |
39221 | } | |
39222 | } | |
39223 | if (_v) { | |
39224 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39225 | } | |
39226 | } | |
39227 | } | |
39228 | if (argc == 2) { | |
39229 | int _v; | |
39230 | { | |
39231 | void *ptr; | |
39232 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39233 | _v = 0; | |
39234 | PyErr_Clear(); | |
39235 | } else { | |
39236 | _v = 1; | |
39237 | } | |
39238 | } | |
39239 | if (_v) { | |
39240 | { | |
39241 | void *ptr; | |
39242 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39243 | _v = 0; | |
39244 | PyErr_Clear(); | |
39245 | } else { | |
39246 | _v = 1; | |
39247 | } | |
39248 | } | |
39249 | if (_v) { | |
39250 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39251 | } | |
39252 | } | |
39253 | } | |
39254 | ||
39255 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39256 | return NULL; | |
39257 | } | |
39258 | ||
39259 | ||
39260 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39261 | PyObject *resultobj; | |
39262 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39263 | wxGBPosition *arg2 = 0 ; | |
39264 | wxGBSizerItem *result; | |
39265 | wxGBPosition temp2 ; | |
39266 | PyObject * obj0 = 0 ; | |
39267 | PyObject * obj1 = 0 ; | |
39268 | char *kwnames[] = { | |
39269 | (char *) "self",(char *) "pos", NULL | |
39270 | }; | |
39271 | ||
39272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39275 | { | |
39276 | arg2 = &temp2; | |
39277 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39278 | } | |
39279 | { | |
39280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39281 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39282 | ||
39283 | wxPyEndAllowThreads(__tstate); | |
39284 | if (PyErr_Occurred()) SWIG_fail; | |
39285 | } | |
39286 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39287 | return resultobj; | |
39288 | fail: | |
39289 | return NULL; | |
39290 | } | |
39291 | ||
39292 | ||
39293 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39294 | PyObject *resultobj; | |
39295 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39296 | wxPoint *arg2 = 0 ; | |
39297 | wxGBSizerItem *result; | |
39298 | wxPoint temp2 ; | |
39299 | PyObject * obj0 = 0 ; | |
39300 | PyObject * obj1 = 0 ; | |
39301 | char *kwnames[] = { | |
39302 | (char *) "self",(char *) "pt", NULL | |
39303 | }; | |
39304 | ||
39305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39308 | { | |
39309 | arg2 = &temp2; | |
39310 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39311 | } | |
39312 | { | |
39313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39314 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39315 | ||
39316 | wxPyEndAllowThreads(__tstate); | |
39317 | if (PyErr_Occurred()) SWIG_fail; | |
39318 | } | |
39319 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39320 | return resultobj; | |
39321 | fail: | |
39322 | return NULL; | |
39323 | } | |
39324 | ||
39325 | ||
39326 | static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39327 | PyObject *resultobj; | |
39328 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39329 | wxObject *arg2 = (wxObject *) 0 ; | |
39330 | wxGBSizerItem *result; | |
39331 | PyObject * obj0 = 0 ; | |
39332 | PyObject * obj1 = 0 ; | |
39333 | char *kwnames[] = { | |
39334 | (char *) "self",(char *) "userData", NULL | |
39335 | }; | |
39336 | ||
39337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail; | |
39338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39340 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
39341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39342 | { | |
39343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39344 | result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2); | |
39345 | ||
39346 | wxPyEndAllowThreads(__tstate); | |
39347 | if (PyErr_Occurred()) SWIG_fail; | |
39348 | } | |
39349 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39350 | return resultobj; | |
39351 | fail: | |
39352 | return NULL; | |
39353 | } | |
39354 | ||
39355 | ||
39356 | static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39357 | PyObject *resultobj; | |
39358 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39359 | PyObject * obj0 = 0 ; | |
39360 | char *kwnames[] = { | |
39361 | (char *) "self", NULL | |
39362 | }; | |
39363 | ||
39364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
39365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39367 | { | |
39368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39369 | (arg1)->RecalcSizes(); | |
39370 | ||
39371 | wxPyEndAllowThreads(__tstate); | |
39372 | if (PyErr_Occurred()) SWIG_fail; | |
39373 | } | |
39374 | Py_INCREF(Py_None); resultobj = Py_None; | |
39375 | return resultobj; | |
39376 | fail: | |
39377 | return NULL; | |
39378 | } | |
39379 | ||
39380 | ||
39381 | static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39382 | PyObject *resultobj; | |
39383 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39384 | wxSize result; | |
39385 | PyObject * obj0 = 0 ; | |
39386 | char *kwnames[] = { | |
39387 | (char *) "self", NULL | |
39388 | }; | |
39389 | ||
39390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail; | |
39391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39393 | { | |
39394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39395 | result = (arg1)->CalcMin(); | |
39396 | ||
39397 | wxPyEndAllowThreads(__tstate); | |
39398 | if (PyErr_Occurred()) SWIG_fail; | |
39399 | } | |
39400 | { | |
39401 | wxSize * resultptr; | |
39402 | resultptr = new wxSize((wxSize &) result); | |
39403 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
39404 | } | |
39405 | return resultobj; | |
39406 | fail: | |
39407 | return NULL; | |
39408 | } | |
39409 | ||
39410 | ||
39411 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) { | |
39412 | PyObject *resultobj; | |
39413 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39414 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39415 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39416 | bool result; | |
39417 | PyObject * obj0 = 0 ; | |
39418 | PyObject * obj1 = 0 ; | |
39419 | PyObject * obj2 = 0 ; | |
39420 | ||
39421 | if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail; | |
39422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39426 | if (obj2) { | |
39427 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39429 | } | |
39430 | { | |
39431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39432 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39433 | ||
39434 | wxPyEndAllowThreads(__tstate); | |
39435 | if (PyErr_Occurred()) SWIG_fail; | |
39436 | } | |
39437 | { | |
39438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39439 | } | |
39440 | return resultobj; | |
39441 | fail: | |
39442 | return NULL; | |
39443 | } | |
39444 | ||
39445 | ||
39446 | static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) { | |
39447 | PyObject *resultobj; | |
39448 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39449 | wxGBPosition *arg2 = 0 ; | |
39450 | wxGBSpan *arg3 = 0 ; | |
39451 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39452 | bool result; | |
39453 | wxGBPosition temp2 ; | |
39454 | wxGBSpan temp3 ; | |
39455 | PyObject * obj0 = 0 ; | |
39456 | PyObject * obj1 = 0 ; | |
39457 | PyObject * obj2 = 0 ; | |
39458 | PyObject * obj3 = 0 ; | |
39459 | ||
39460 | if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39463 | { | |
39464 | arg2 = &temp2; | |
39465 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39466 | } | |
39467 | { | |
39468 | arg3 = &temp3; | |
39469 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39470 | } | |
39471 | if (obj3) { | |
39472 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39474 | } | |
39475 | { | |
39476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39477 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39478 | ||
39479 | wxPyEndAllowThreads(__tstate); | |
39480 | if (PyErr_Occurred()) SWIG_fail; | |
39481 | } | |
39482 | { | |
39483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39484 | } | |
39485 | return resultobj; | |
39486 | fail: | |
39487 | return NULL; | |
39488 | } | |
39489 | ||
39490 | ||
39491 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) { | |
39492 | int argc; | |
39493 | PyObject *argv[5]; | |
39494 | int ii; | |
39495 | ||
39496 | argc = PyObject_Length(args); | |
39497 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
39498 | argv[ii] = PyTuple_GetItem(args,ii); | |
39499 | } | |
39500 | if ((argc >= 2) && (argc <= 3)) { | |
39501 | int _v; | |
39502 | { | |
39503 | void *ptr; | |
39504 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39505 | _v = 0; | |
39506 | PyErr_Clear(); | |
39507 | } else { | |
39508 | _v = 1; | |
39509 | } | |
39510 | } | |
39511 | if (_v) { | |
39512 | { | |
39513 | void *ptr; | |
39514 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39515 | _v = 0; | |
39516 | PyErr_Clear(); | |
39517 | } else { | |
39518 | _v = 1; | |
39519 | } | |
39520 | } | |
39521 | if (_v) { | |
39522 | if (argc <= 2) { | |
39523 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39524 | } | |
39525 | { | |
39526 | void *ptr; | |
39527 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39528 | _v = 0; | |
39529 | PyErr_Clear(); | |
39530 | } else { | |
39531 | _v = 1; | |
39532 | } | |
39533 | } | |
39534 | if (_v) { | |
39535 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args); | |
39536 | } | |
39537 | } | |
39538 | } | |
39539 | } | |
39540 | if ((argc >= 3) && (argc <= 4)) { | |
39541 | int _v; | |
39542 | { | |
39543 | void *ptr; | |
39544 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39545 | _v = 0; | |
39546 | PyErr_Clear(); | |
39547 | } else { | |
39548 | _v = 1; | |
39549 | } | |
39550 | } | |
39551 | if (_v) { | |
39552 | { | |
39553 | _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2); | |
39554 | } | |
39555 | if (_v) { | |
39556 | { | |
39557 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39558 | } | |
39559 | if (_v) { | |
39560 | if (argc <= 3) { | |
39561 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39562 | } | |
39563 | { | |
39564 | void *ptr; | |
39565 | if (SWIG_ConvertPtr(argv[3], &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) { | |
39566 | _v = 0; | |
39567 | PyErr_Clear(); | |
39568 | } else { | |
39569 | _v = 1; | |
39570 | } | |
39571 | } | |
39572 | if (_v) { | |
39573 | return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args); | |
39574 | } | |
39575 | } | |
39576 | } | |
39577 | } | |
39578 | } | |
39579 | ||
39580 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'"); | |
39581 | return NULL; | |
39582 | } | |
39583 | ||
39584 | ||
39585 | static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) { | |
39586 | PyObject *obj; | |
39587 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39588 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39589 | Py_INCREF(obj); | |
39590 | return Py_BuildValue((char *)""); | |
39591 | } | |
39592 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39593 | PyObject *resultobj; | |
39594 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39595 | int arg2 ; | |
39596 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39597 | int arg4 ; | |
39598 | int arg5 = (int) 0 ; | |
39599 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39600 | PyObject * obj0 = 0 ; | |
39601 | PyObject * obj1 = 0 ; | |
39602 | PyObject * obj2 = 0 ; | |
39603 | PyObject * obj3 = 0 ; | |
39604 | PyObject * obj4 = 0 ; | |
39605 | PyObject * obj5 = 0 ; | |
39606 | char *kwnames[] = { | |
39607 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39608 | }; | |
39609 | ||
39610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39613 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
39614 | if (PyErr_Occurred()) SWIG_fail; | |
39615 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39617 | arg4 = (wxEdge) SWIG_AsInt(obj3); | |
39618 | if (PyErr_Occurred()) SWIG_fail; | |
39619 | if (obj4) { | |
39620 | arg5 = (int) SWIG_AsInt(obj4); | |
39621 | if (PyErr_Occurred()) SWIG_fail; | |
39622 | } | |
39623 | if (obj5) { | |
39624 | arg6 = (int) SWIG_AsInt(obj5); | |
39625 | if (PyErr_Occurred()) SWIG_fail; | |
39626 | } | |
39627 | { | |
39628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39629 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39630 | ||
39631 | wxPyEndAllowThreads(__tstate); | |
39632 | if (PyErr_Occurred()) SWIG_fail; | |
39633 | } | |
39634 | Py_INCREF(Py_None); resultobj = Py_None; | |
39635 | return resultobj; | |
39636 | fail: | |
39637 | return NULL; | |
39638 | } | |
39639 | ||
39640 | ||
39641 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39642 | PyObject *resultobj; | |
39643 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39644 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39645 | int arg3 = (int) 0 ; | |
39646 | PyObject * obj0 = 0 ; | |
39647 | PyObject * obj1 = 0 ; | |
39648 | PyObject * obj2 = 0 ; | |
39649 | char *kwnames[] = { | |
39650 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39651 | }; | |
39652 | ||
39653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39658 | if (obj2) { | |
39659 | arg3 = (int) SWIG_AsInt(obj2); | |
39660 | if (PyErr_Occurred()) SWIG_fail; | |
39661 | } | |
39662 | { | |
39663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39664 | (arg1)->LeftOf(arg2,arg3); | |
39665 | ||
39666 | wxPyEndAllowThreads(__tstate); | |
39667 | if (PyErr_Occurred()) SWIG_fail; | |
39668 | } | |
39669 | Py_INCREF(Py_None); resultobj = Py_None; | |
39670 | return resultobj; | |
39671 | fail: | |
39672 | return NULL; | |
39673 | } | |
39674 | ||
39675 | ||
39676 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39677 | PyObject *resultobj; | |
39678 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39679 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39680 | int arg3 = (int) 0 ; | |
39681 | PyObject * obj0 = 0 ; | |
39682 | PyObject * obj1 = 0 ; | |
39683 | PyObject * obj2 = 0 ; | |
39684 | char *kwnames[] = { | |
39685 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39686 | }; | |
39687 | ||
39688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39693 | if (obj2) { | |
39694 | arg3 = (int) SWIG_AsInt(obj2); | |
39695 | if (PyErr_Occurred()) SWIG_fail; | |
39696 | } | |
39697 | { | |
39698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39699 | (arg1)->RightOf(arg2,arg3); | |
39700 | ||
39701 | wxPyEndAllowThreads(__tstate); | |
39702 | if (PyErr_Occurred()) SWIG_fail; | |
39703 | } | |
39704 | Py_INCREF(Py_None); resultobj = Py_None; | |
39705 | return resultobj; | |
39706 | fail: | |
39707 | return NULL; | |
39708 | } | |
39709 | ||
39710 | ||
39711 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39712 | PyObject *resultobj; | |
39713 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39714 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39715 | int arg3 = (int) 0 ; | |
39716 | PyObject * obj0 = 0 ; | |
39717 | PyObject * obj1 = 0 ; | |
39718 | PyObject * obj2 = 0 ; | |
39719 | char *kwnames[] = { | |
39720 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39721 | }; | |
39722 | ||
39723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39728 | if (obj2) { | |
39729 | arg3 = (int) SWIG_AsInt(obj2); | |
39730 | if (PyErr_Occurred()) SWIG_fail; | |
39731 | } | |
39732 | { | |
39733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39734 | (arg1)->Above(arg2,arg3); | |
39735 | ||
39736 | wxPyEndAllowThreads(__tstate); | |
39737 | if (PyErr_Occurred()) SWIG_fail; | |
39738 | } | |
39739 | Py_INCREF(Py_None); resultobj = Py_None; | |
39740 | return resultobj; | |
39741 | fail: | |
39742 | return NULL; | |
39743 | } | |
39744 | ||
39745 | ||
39746 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39747 | PyObject *resultobj; | |
39748 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39750 | int arg3 = (int) 0 ; | |
39751 | PyObject * obj0 = 0 ; | |
39752 | PyObject * obj1 = 0 ; | |
39753 | PyObject * obj2 = 0 ; | |
39754 | char *kwnames[] = { | |
39755 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39756 | }; | |
39757 | ||
39758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39761 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39763 | if (obj2) { | |
39764 | arg3 = (int) SWIG_AsInt(obj2); | |
39765 | if (PyErr_Occurred()) SWIG_fail; | |
39766 | } | |
39767 | { | |
39768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39769 | (arg1)->Below(arg2,arg3); | |
39770 | ||
39771 | wxPyEndAllowThreads(__tstate); | |
39772 | if (PyErr_Occurred()) SWIG_fail; | |
39773 | } | |
39774 | Py_INCREF(Py_None); resultobj = Py_None; | |
39775 | return resultobj; | |
39776 | fail: | |
39777 | return NULL; | |
39778 | } | |
39779 | ||
39780 | ||
39781 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39782 | PyObject *resultobj; | |
39783 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39784 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39785 | int arg3 ; | |
39786 | int arg4 = (int) 0 ; | |
39787 | PyObject * obj0 = 0 ; | |
39788 | PyObject * obj1 = 0 ; | |
39789 | PyObject * obj2 = 0 ; | |
39790 | PyObject * obj3 = 0 ; | |
39791 | char *kwnames[] = { | |
39792 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39793 | }; | |
39794 | ||
39795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39800 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39801 | if (PyErr_Occurred()) SWIG_fail; | |
39802 | if (obj3) { | |
39803 | arg4 = (int) SWIG_AsInt(obj3); | |
39804 | if (PyErr_Occurred()) SWIG_fail; | |
39805 | } | |
39806 | { | |
39807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39808 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39809 | ||
39810 | wxPyEndAllowThreads(__tstate); | |
39811 | if (PyErr_Occurred()) SWIG_fail; | |
39812 | } | |
39813 | Py_INCREF(Py_None); resultobj = Py_None; | |
39814 | return resultobj; | |
39815 | fail: | |
39816 | return NULL; | |
39817 | } | |
39818 | ||
39819 | ||
39820 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39821 | PyObject *resultobj; | |
39822 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39823 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39824 | int arg3 ; | |
39825 | int arg4 ; | |
39826 | PyObject * obj0 = 0 ; | |
39827 | PyObject * obj1 = 0 ; | |
39828 | PyObject * obj2 = 0 ; | |
39829 | PyObject * obj3 = 0 ; | |
39830 | char *kwnames[] = { | |
39831 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39832 | }; | |
39833 | ||
39834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39837 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39839 | arg3 = (wxEdge) SWIG_AsInt(obj2); | |
39840 | if (PyErr_Occurred()) SWIG_fail; | |
39841 | arg4 = (int) SWIG_AsInt(obj3); | |
39842 | if (PyErr_Occurred()) SWIG_fail; | |
39843 | { | |
39844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39845 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39846 | ||
39847 | wxPyEndAllowThreads(__tstate); | |
39848 | if (PyErr_Occurred()) SWIG_fail; | |
39849 | } | |
39850 | Py_INCREF(Py_None); resultobj = Py_None; | |
39851 | return resultobj; | |
39852 | fail: | |
39853 | return NULL; | |
39854 | } | |
39855 | ||
39856 | ||
39857 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39858 | PyObject *resultobj; | |
39859 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39860 | int arg2 ; | |
39861 | PyObject * obj0 = 0 ; | |
39862 | PyObject * obj1 = 0 ; | |
39863 | char *kwnames[] = { | |
39864 | (char *) "self",(char *) "val", NULL | |
39865 | }; | |
39866 | ||
39867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39870 | arg2 = (int) SWIG_AsInt(obj1); | |
39871 | if (PyErr_Occurred()) SWIG_fail; | |
39872 | { | |
39873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39874 | (arg1)->Absolute(arg2); | |
39875 | ||
39876 | wxPyEndAllowThreads(__tstate); | |
39877 | if (PyErr_Occurred()) SWIG_fail; | |
39878 | } | |
39879 | Py_INCREF(Py_None); resultobj = Py_None; | |
39880 | return resultobj; | |
39881 | fail: | |
39882 | return NULL; | |
39883 | } | |
39884 | ||
39885 | ||
39886 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39887 | PyObject *resultobj; | |
39888 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39889 | PyObject * obj0 = 0 ; | |
39890 | char *kwnames[] = { | |
39891 | (char *) "self", NULL | |
39892 | }; | |
39893 | ||
39894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39897 | { | |
39898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39899 | (arg1)->Unconstrained(); | |
39900 | ||
39901 | wxPyEndAllowThreads(__tstate); | |
39902 | if (PyErr_Occurred()) SWIG_fail; | |
39903 | } | |
39904 | Py_INCREF(Py_None); resultobj = Py_None; | |
39905 | return resultobj; | |
39906 | fail: | |
39907 | return NULL; | |
39908 | } | |
39909 | ||
39910 | ||
39911 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39912 | PyObject *resultobj; | |
39913 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39914 | PyObject * obj0 = 0 ; | |
39915 | char *kwnames[] = { | |
39916 | (char *) "self", NULL | |
39917 | }; | |
39918 | ||
39919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39922 | { | |
39923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39924 | (arg1)->AsIs(); | |
39925 | ||
39926 | wxPyEndAllowThreads(__tstate); | |
39927 | if (PyErr_Occurred()) SWIG_fail; | |
39928 | } | |
39929 | Py_INCREF(Py_None); resultobj = Py_None; | |
39930 | return resultobj; | |
39931 | fail: | |
39932 | return NULL; | |
39933 | } | |
39934 | ||
39935 | ||
39936 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39937 | PyObject *resultobj; | |
39938 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39939 | wxWindow *result; | |
39940 | PyObject * obj0 = 0 ; | |
39941 | char *kwnames[] = { | |
39942 | (char *) "self", NULL | |
39943 | }; | |
39944 | ||
39945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39948 | { | |
39949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39950 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39951 | ||
39952 | wxPyEndAllowThreads(__tstate); | |
39953 | if (PyErr_Occurred()) SWIG_fail; | |
39954 | } | |
39955 | { | |
39956 | resultobj = wxPyMake_wxObject(result); | |
39957 | } | |
39958 | return resultobj; | |
39959 | fail: | |
39960 | return NULL; | |
39961 | } | |
39962 | ||
39963 | ||
39964 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39965 | PyObject *resultobj; | |
39966 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39967 | int result; | |
39968 | PyObject * obj0 = 0 ; | |
39969 | char *kwnames[] = { | |
39970 | (char *) "self", NULL | |
39971 | }; | |
39972 | ||
39973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39976 | { | |
39977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39978 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39979 | ||
39980 | wxPyEndAllowThreads(__tstate); | |
39981 | if (PyErr_Occurred()) SWIG_fail; | |
39982 | } | |
39983 | resultobj = SWIG_FromInt((int)result); | |
39984 | return resultobj; | |
39985 | fail: | |
39986 | return NULL; | |
39987 | } | |
39988 | ||
39989 | ||
39990 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
39991 | PyObject *resultobj; | |
39992 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39993 | int arg2 ; | |
39994 | PyObject * obj0 = 0 ; | |
39995 | PyObject * obj1 = 0 ; | |
39996 | char *kwnames[] = { | |
39997 | (char *) "self",(char *) "which", NULL | |
39998 | }; | |
39999 | ||
40000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40003 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
40004 | if (PyErr_Occurred()) SWIG_fail; | |
40005 | { | |
40006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40007 | (arg1)->SetEdge((wxEdge )arg2); | |
40008 | ||
40009 | wxPyEndAllowThreads(__tstate); | |
40010 | if (PyErr_Occurred()) SWIG_fail; | |
40011 | } | |
40012 | Py_INCREF(Py_None); resultobj = Py_None; | |
40013 | return resultobj; | |
40014 | fail: | |
40015 | return NULL; | |
40016 | } | |
40017 | ||
40018 | ||
40019 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40020 | PyObject *resultobj; | |
40021 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40022 | int arg2 ; | |
40023 | PyObject * obj0 = 0 ; | |
40024 | PyObject * obj1 = 0 ; | |
40025 | char *kwnames[] = { | |
40026 | (char *) "self",(char *) "v", NULL | |
40027 | }; | |
40028 | ||
40029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40032 | arg2 = (int) SWIG_AsInt(obj1); | |
40033 | if (PyErr_Occurred()) SWIG_fail; | |
40034 | { | |
40035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40036 | (arg1)->SetValue(arg2); | |
40037 | ||
40038 | wxPyEndAllowThreads(__tstate); | |
40039 | if (PyErr_Occurred()) SWIG_fail; | |
40040 | } | |
40041 | Py_INCREF(Py_None); resultobj = Py_None; | |
40042 | return resultobj; | |
40043 | fail: | |
40044 | return NULL; | |
40045 | } | |
40046 | ||
40047 | ||
40048 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40049 | PyObject *resultobj; | |
40050 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40051 | int result; | |
40052 | PyObject * obj0 = 0 ; | |
40053 | char *kwnames[] = { | |
40054 | (char *) "self", NULL | |
40055 | }; | |
40056 | ||
40057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40060 | { | |
40061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40062 | result = (int)(arg1)->GetMargin(); | |
40063 | ||
40064 | wxPyEndAllowThreads(__tstate); | |
40065 | if (PyErr_Occurred()) SWIG_fail; | |
40066 | } | |
40067 | resultobj = SWIG_FromInt((int)result); | |
40068 | return resultobj; | |
40069 | fail: | |
40070 | return NULL; | |
40071 | } | |
40072 | ||
40073 | ||
40074 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40075 | PyObject *resultobj; | |
40076 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40077 | int arg2 ; | |
40078 | PyObject * obj0 = 0 ; | |
40079 | PyObject * obj1 = 0 ; | |
40080 | char *kwnames[] = { | |
40081 | (char *) "self",(char *) "m", NULL | |
40082 | }; | |
40083 | ||
40084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40087 | arg2 = (int) SWIG_AsInt(obj1); | |
40088 | if (PyErr_Occurred()) SWIG_fail; | |
40089 | { | |
40090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40091 | (arg1)->SetMargin(arg2); | |
40092 | ||
40093 | wxPyEndAllowThreads(__tstate); | |
40094 | if (PyErr_Occurred()) SWIG_fail; | |
40095 | } | |
40096 | Py_INCREF(Py_None); resultobj = Py_None; | |
40097 | return resultobj; | |
40098 | fail: | |
40099 | return NULL; | |
40100 | } | |
40101 | ||
40102 | ||
40103 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40104 | PyObject *resultobj; | |
40105 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40106 | int result; | |
40107 | PyObject * obj0 = 0 ; | |
40108 | char *kwnames[] = { | |
40109 | (char *) "self", NULL | |
40110 | }; | |
40111 | ||
40112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40115 | { | |
40116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40117 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40118 | ||
40119 | wxPyEndAllowThreads(__tstate); | |
40120 | if (PyErr_Occurred()) SWIG_fail; | |
40121 | } | |
40122 | resultobj = SWIG_FromInt((int)result); | |
40123 | return resultobj; | |
40124 | fail: | |
40125 | return NULL; | |
40126 | } | |
40127 | ||
40128 | ||
40129 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40130 | PyObject *resultobj; | |
40131 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40132 | int result; | |
40133 | PyObject * obj0 = 0 ; | |
40134 | char *kwnames[] = { | |
40135 | (char *) "self", NULL | |
40136 | }; | |
40137 | ||
40138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40141 | { | |
40142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40143 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40144 | ||
40145 | wxPyEndAllowThreads(__tstate); | |
40146 | if (PyErr_Occurred()) SWIG_fail; | |
40147 | } | |
40148 | resultobj = SWIG_FromInt((int)result); | |
40149 | return resultobj; | |
40150 | fail: | |
40151 | return NULL; | |
40152 | } | |
40153 | ||
40154 | ||
40155 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40156 | PyObject *resultobj; | |
40157 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40158 | int result; | |
40159 | PyObject * obj0 = 0 ; | |
40160 | char *kwnames[] = { | |
40161 | (char *) "self", NULL | |
40162 | }; | |
40163 | ||
40164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40167 | { | |
40168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40169 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40170 | ||
40171 | wxPyEndAllowThreads(__tstate); | |
40172 | if (PyErr_Occurred()) SWIG_fail; | |
40173 | } | |
40174 | resultobj = SWIG_FromInt((int)result); | |
40175 | return resultobj; | |
40176 | fail: | |
40177 | return NULL; | |
40178 | } | |
40179 | ||
40180 | ||
40181 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40182 | PyObject *resultobj; | |
40183 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40184 | bool result; | |
40185 | PyObject * obj0 = 0 ; | |
40186 | char *kwnames[] = { | |
40187 | (char *) "self", NULL | |
40188 | }; | |
40189 | ||
40190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40193 | { | |
40194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40195 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40196 | ||
40197 | wxPyEndAllowThreads(__tstate); | |
40198 | if (PyErr_Occurred()) SWIG_fail; | |
40199 | } | |
40200 | { | |
40201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40202 | } | |
40203 | return resultobj; | |
40204 | fail: | |
40205 | return NULL; | |
40206 | } | |
40207 | ||
40208 | ||
40209 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40210 | PyObject *resultobj; | |
40211 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40212 | bool arg2 ; | |
40213 | PyObject * obj0 = 0 ; | |
40214 | PyObject * obj1 = 0 ; | |
40215 | char *kwnames[] = { | |
40216 | (char *) "self",(char *) "d", NULL | |
40217 | }; | |
40218 | ||
40219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40222 | arg2 = (bool) SWIG_AsBool(obj1); | |
40223 | if (PyErr_Occurred()) SWIG_fail; | |
40224 | { | |
40225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40226 | (arg1)->SetDone(arg2); | |
40227 | ||
40228 | wxPyEndAllowThreads(__tstate); | |
40229 | if (PyErr_Occurred()) SWIG_fail; | |
40230 | } | |
40231 | Py_INCREF(Py_None); resultobj = Py_None; | |
40232 | return resultobj; | |
40233 | fail: | |
40234 | return NULL; | |
40235 | } | |
40236 | ||
40237 | ||
40238 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40239 | PyObject *resultobj; | |
40240 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40241 | int result; | |
40242 | PyObject * obj0 = 0 ; | |
40243 | char *kwnames[] = { | |
40244 | (char *) "self", NULL | |
40245 | }; | |
40246 | ||
40247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40250 | { | |
40251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40252 | result = (int)(arg1)->GetRelationship(); | |
40253 | ||
40254 | wxPyEndAllowThreads(__tstate); | |
40255 | if (PyErr_Occurred()) SWIG_fail; | |
40256 | } | |
40257 | resultobj = SWIG_FromInt((int)result); | |
40258 | return resultobj; | |
40259 | fail: | |
40260 | return NULL; | |
40261 | } | |
40262 | ||
40263 | ||
40264 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40265 | PyObject *resultobj; | |
40266 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40267 | int arg2 ; | |
40268 | PyObject * obj0 = 0 ; | |
40269 | PyObject * obj1 = 0 ; | |
40270 | char *kwnames[] = { | |
40271 | (char *) "self",(char *) "r", NULL | |
40272 | }; | |
40273 | ||
40274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40277 | arg2 = (wxRelationship) SWIG_AsInt(obj1); | |
40278 | if (PyErr_Occurred()) SWIG_fail; | |
40279 | { | |
40280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40281 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40282 | ||
40283 | wxPyEndAllowThreads(__tstate); | |
40284 | if (PyErr_Occurred()) SWIG_fail; | |
40285 | } | |
40286 | Py_INCREF(Py_None); resultobj = Py_None; | |
40287 | return resultobj; | |
40288 | fail: | |
40289 | return NULL; | |
40290 | } | |
40291 | ||
40292 | ||
40293 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40294 | PyObject *resultobj; | |
40295 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40296 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40297 | bool result; | |
40298 | PyObject * obj0 = 0 ; | |
40299 | PyObject * obj1 = 0 ; | |
40300 | char *kwnames[] = { | |
40301 | (char *) "self",(char *) "otherW", NULL | |
40302 | }; | |
40303 | ||
40304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40307 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40309 | { | |
40310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40311 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40312 | ||
40313 | wxPyEndAllowThreads(__tstate); | |
40314 | if (PyErr_Occurred()) SWIG_fail; | |
40315 | } | |
40316 | { | |
40317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40318 | } | |
40319 | return resultobj; | |
40320 | fail: | |
40321 | return NULL; | |
40322 | } | |
40323 | ||
40324 | ||
40325 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40326 | PyObject *resultobj; | |
40327 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40328 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40329 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40330 | bool result; | |
40331 | PyObject * obj0 = 0 ; | |
40332 | PyObject * obj1 = 0 ; | |
40333 | PyObject * obj2 = 0 ; | |
40334 | char *kwnames[] = { | |
40335 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40336 | }; | |
40337 | ||
40338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40343 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40345 | { | |
40346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40347 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40348 | ||
40349 | wxPyEndAllowThreads(__tstate); | |
40350 | if (PyErr_Occurred()) SWIG_fail; | |
40351 | } | |
40352 | { | |
40353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40354 | } | |
40355 | return resultobj; | |
40356 | fail: | |
40357 | return NULL; | |
40358 | } | |
40359 | ||
40360 | ||
40361 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40362 | PyObject *resultobj; | |
40363 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40364 | int arg2 ; | |
40365 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40366 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40367 | int result; | |
40368 | PyObject * obj0 = 0 ; | |
40369 | PyObject * obj1 = 0 ; | |
40370 | PyObject * obj2 = 0 ; | |
40371 | PyObject * obj3 = 0 ; | |
40372 | char *kwnames[] = { | |
40373 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40374 | }; | |
40375 | ||
40376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40379 | arg2 = (wxEdge) SWIG_AsInt(obj1); | |
40380 | if (PyErr_Occurred()) SWIG_fail; | |
40381 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40383 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40385 | { | |
40386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40387 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40388 | ||
40389 | wxPyEndAllowThreads(__tstate); | |
40390 | if (PyErr_Occurred()) SWIG_fail; | |
40391 | } | |
40392 | resultobj = SWIG_FromInt((int)result); | |
40393 | return resultobj; | |
40394 | fail: | |
40395 | return NULL; | |
40396 | } | |
40397 | ||
40398 | ||
40399 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) { | |
40400 | PyObject *obj; | |
40401 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40402 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40403 | Py_INCREF(obj); | |
40404 | return Py_BuildValue((char *)""); | |
40405 | } | |
40406 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40407 | PyObject *resultobj; | |
40408 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40409 | wxIndividualLayoutConstraint *result; | |
40410 | PyObject * obj0 = 0 ; | |
40411 | char *kwnames[] = { | |
40412 | (char *) "self", NULL | |
40413 | }; | |
40414 | ||
40415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40418 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40419 | ||
40420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40421 | return resultobj; | |
40422 | fail: | |
40423 | return NULL; | |
40424 | } | |
40425 | ||
40426 | ||
40427 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40428 | PyObject *resultobj; | |
40429 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40430 | wxIndividualLayoutConstraint *result; | |
40431 | PyObject * obj0 = 0 ; | |
40432 | char *kwnames[] = { | |
40433 | (char *) "self", NULL | |
40434 | }; | |
40435 | ||
40436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40439 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40440 | ||
40441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40442 | return resultobj; | |
40443 | fail: | |
40444 | return NULL; | |
40445 | } | |
40446 | ||
40447 | ||
40448 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40449 | PyObject *resultobj; | |
40450 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40451 | wxIndividualLayoutConstraint *result; | |
40452 | PyObject * obj0 = 0 ; | |
40453 | char *kwnames[] = { | |
40454 | (char *) "self", NULL | |
40455 | }; | |
40456 | ||
40457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40460 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40461 | ||
40462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40463 | return resultobj; | |
40464 | fail: | |
40465 | return NULL; | |
40466 | } | |
40467 | ||
40468 | ||
40469 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40470 | PyObject *resultobj; | |
40471 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40472 | wxIndividualLayoutConstraint *result; | |
40473 | PyObject * obj0 = 0 ; | |
40474 | char *kwnames[] = { | |
40475 | (char *) "self", NULL | |
40476 | }; | |
40477 | ||
40478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40481 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40482 | ||
40483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40484 | return resultobj; | |
40485 | fail: | |
40486 | return NULL; | |
40487 | } | |
40488 | ||
40489 | ||
40490 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40491 | PyObject *resultobj; | |
40492 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40493 | wxIndividualLayoutConstraint *result; | |
40494 | PyObject * obj0 = 0 ; | |
40495 | char *kwnames[] = { | |
40496 | (char *) "self", NULL | |
40497 | }; | |
40498 | ||
40499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40502 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40503 | ||
40504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40505 | return resultobj; | |
40506 | fail: | |
40507 | return NULL; | |
40508 | } | |
40509 | ||
40510 | ||
40511 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40512 | PyObject *resultobj; | |
40513 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40514 | wxIndividualLayoutConstraint *result; | |
40515 | PyObject * obj0 = 0 ; | |
40516 | char *kwnames[] = { | |
40517 | (char *) "self", NULL | |
40518 | }; | |
40519 | ||
40520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40523 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40524 | ||
40525 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40526 | return resultobj; | |
40527 | fail: | |
40528 | return NULL; | |
40529 | } | |
40530 | ||
40531 | ||
40532 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40533 | PyObject *resultobj; | |
40534 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40535 | wxIndividualLayoutConstraint *result; | |
40536 | PyObject * obj0 = 0 ; | |
40537 | char *kwnames[] = { | |
40538 | (char *) "self", NULL | |
40539 | }; | |
40540 | ||
40541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40544 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40545 | ||
40546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40547 | return resultobj; | |
40548 | fail: | |
40549 | return NULL; | |
40550 | } | |
40551 | ||
40552 | ||
40553 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40554 | PyObject *resultobj; | |
40555 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40556 | wxIndividualLayoutConstraint *result; | |
40557 | PyObject * obj0 = 0 ; | |
40558 | char *kwnames[] = { | |
40559 | (char *) "self", NULL | |
40560 | }; | |
40561 | ||
40562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40565 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40566 | ||
40567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40568 | return resultobj; | |
40569 | fail: | |
40570 | return NULL; | |
40571 | } | |
40572 | ||
40573 | ||
40574 | static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40575 | PyObject *resultobj; | |
40576 | wxLayoutConstraints *result; | |
40577 | char *kwnames[] = { | |
40578 | NULL | |
40579 | }; | |
40580 | ||
40581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40582 | { | |
40583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40584 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40585 | ||
40586 | wxPyEndAllowThreads(__tstate); | |
40587 | if (PyErr_Occurred()) SWIG_fail; | |
40588 | } | |
40589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40590 | return resultobj; | |
40591 | fail: | |
40592 | return NULL; | |
40593 | } | |
40594 | ||
40595 | ||
40596 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40597 | PyObject *resultobj; | |
40598 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40599 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40600 | int *arg3 = (int *) 0 ; | |
40601 | bool result; | |
40602 | int temp3 ; | |
40603 | PyObject * obj0 = 0 ; | |
40604 | PyObject * obj1 = 0 ; | |
40605 | char *kwnames[] = { | |
40606 | (char *) "self",(char *) "win", NULL | |
40607 | }; | |
40608 | ||
40609 | arg3 = &temp3; | |
40610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; | |
40611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40615 | { | |
40616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40617 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40618 | ||
40619 | wxPyEndAllowThreads(__tstate); | |
40620 | if (PyErr_Occurred()) SWIG_fail; | |
40621 | } | |
40622 | { | |
40623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40624 | } | |
40625 | { | |
40626 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
40627 | resultobj = t_output_helper(resultobj,o); | |
40628 | } | |
40629 | return resultobj; | |
40630 | fail: | |
40631 | return NULL; | |
40632 | } | |
40633 | ||
40634 | ||
40635 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) { | |
40636 | PyObject *resultobj; | |
40637 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40638 | bool result; | |
40639 | PyObject * obj0 = 0 ; | |
40640 | char *kwnames[] = { | |
40641 | (char *) "self", NULL | |
40642 | }; | |
40643 | ||
40644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40647 | { | |
40648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40649 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40650 | ||
40651 | wxPyEndAllowThreads(__tstate); | |
40652 | if (PyErr_Occurred()) SWIG_fail; | |
40653 | } | |
40654 | { | |
40655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40656 | } | |
40657 | return resultobj; | |
40658 | fail: | |
40659 | return NULL; | |
40660 | } | |
40661 | ||
40662 | ||
40663 | static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) { | |
40664 | PyObject *obj; | |
40665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40666 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40667 | Py_INCREF(obj); | |
40668 | return Py_BuildValue((char *)""); | |
40669 | } | |
40670 | static PyMethodDef SwigMethods[] = { | |
40671 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS }, | |
40672 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS }, | |
40673 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
40674 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40675 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS }, | |
40676 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40677 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40678 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40679 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40680 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS }, | |
40681 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS }, | |
40682 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40683 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40684 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS }, | |
40685 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40686 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS }, | |
40687 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS }, | |
40688 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS }, | |
40689 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40690 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40691 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40692 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40693 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS }, | |
40694 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS }, | |
40695 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS }, | |
40696 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS }, | |
40697 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40698 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40699 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40700 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40701 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40702 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS }, | |
40703 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40704 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40705 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
40706 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40707 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
40708 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS }, | |
40709 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS }, | |
40710 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40711 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40712 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40713 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40714 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS }, | |
40715 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS }, | |
40716 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40717 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40718 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS }, | |
40719 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS }, | |
40720 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40721 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40722 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS }, | |
40723 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS }, | |
40724 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS }, | |
40725 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40726 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS }, | |
40727 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS }, | |
40728 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS }, | |
40729 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
40730 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
40731 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
40732 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
40733 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40734 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40735 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40736 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40737 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40738 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
40739 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40740 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
40741 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40742 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS }, | |
40743 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40744 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS }, | |
40745 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40746 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
40747 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40748 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
40749 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
40750 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
40751 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
40752 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
40753 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
40754 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS }, | |
40755 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS }, | |
40756 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS }, | |
40757 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS }, | |
40758 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS }, | |
40759 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40760 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40761 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40762 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS }, | |
40763 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
40764 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS }, | |
40765 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40766 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40767 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40768 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40769 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
40770 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
40771 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
40772 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
40773 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS }, | |
40774 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS }, | |
40775 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS }, | |
40776 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
40777 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS }, | |
40778 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS }, | |
40779 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS }, | |
40780 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS }, | |
40781 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS }, | |
40782 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40783 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40784 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS }, | |
40785 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS }, | |
40786 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS }, | |
40787 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS }, | |
40788 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS }, | |
40789 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS }, | |
40790 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS }, | |
40791 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS }, | |
40792 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS }, | |
40793 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS }, | |
40794 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS }, | |
40795 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS }, | |
40796 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS }, | |
40797 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS }, | |
40798 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS }, | |
40799 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS }, | |
40800 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS }, | |
40801 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS }, | |
40802 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS }, | |
40803 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS }, | |
40804 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS }, | |
40805 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS }, | |
40806 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS }, | |
40807 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS }, | |
40808 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS }, | |
40809 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS }, | |
40810 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS }, | |
40811 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS }, | |
40812 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS }, | |
40813 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS }, | |
40814 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS }, | |
40815 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS }, | |
40816 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40817 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS }, | |
40818 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS }, | |
40819 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS }, | |
40820 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS }, | |
40821 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS }, | |
40822 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS }, | |
40823 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS }, | |
40824 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40825 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS }, | |
40826 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS }, | |
40827 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40828 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS }, | |
40829 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40830 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS }, | |
40831 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS }, | |
40832 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS }, | |
40833 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS }, | |
40834 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
40835 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40836 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40837 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40838 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40839 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS }, | |
40840 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS }, | |
40841 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS }, | |
40842 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS }, | |
40843 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS }, | |
40844 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS }, | |
40845 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40846 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS }, | |
40847 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS }, | |
40848 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
40849 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40850 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40851 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40852 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40853 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40854 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS }, | |
40855 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS }, | |
40856 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS }, | |
40857 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40858 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40859 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40860 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS }, | |
40861 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40862 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40863 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40864 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40865 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40866 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS }, | |
40867 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS }, | |
40868 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40869 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS }, | |
40870 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS }, | |
40871 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS }, | |
40872 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS }, | |
40873 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS }, | |
40874 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS }, | |
40875 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS }, | |
40876 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS }, | |
40877 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS }, | |
40878 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40879 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS }, | |
40880 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40881 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40882 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS }, | |
40883 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS }, | |
40884 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS }, | |
40885 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
40886 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS }, | |
40887 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40888 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS }, | |
40889 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40890 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS }, | |
40891 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS }, | |
40892 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS }, | |
40893 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS }, | |
40894 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS }, | |
40895 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS }, | |
c24da6d6 | 40896 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
40897 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS }, |
40898 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS }, | |
40899 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS }, | |
40900 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
40901 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS }, | |
40902 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS }, | |
40903 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS }, | |
40904 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS }, | |
40905 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS }, | |
40906 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS }, | |
40907 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS }, | |
40908 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40909 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40910 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS }, | |
40911 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS }, | |
40912 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS }, | |
40913 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS }, | |
40914 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS }, | |
40915 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
40916 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40917 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
40918 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS }, | |
40919 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS }, | |
40920 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS }, | |
40921 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS }, | |
40922 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS }, | |
40923 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
40924 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
40925 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
40926 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS }, | |
40927 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS }, | |
40928 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS }, | |
40929 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS }, | |
40930 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS }, | |
40931 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40932 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40933 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40934 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS }, | |
40935 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40936 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS }, | |
40937 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS }, | |
40938 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS }, | |
40939 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS }, | |
40940 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS }, | |
40941 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
40942 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS }, | |
40943 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS }, | |
40944 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS }, | |
40945 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS }, | |
40946 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS }, | |
40947 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS }, | |
40948 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
40949 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40950 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
40951 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
40952 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS }, | |
40953 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS }, | |
40954 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS }, | |
40955 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS }, | |
40956 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS }, | |
40957 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS }, | |
40958 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS }, | |
40959 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40960 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS }, | |
40961 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS }, | |
40962 | { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS }, | |
40963 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS }, | |
40964 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS }, | |
40965 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS }, | |
40966 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS }, | |
40967 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS }, | |
40968 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS }, | |
40969 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS }, | |
40970 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS }, | |
40971 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40972 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS }, | |
40973 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40974 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS }, | |
40975 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS }, | |
40976 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS }, | |
40977 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS }, | |
40978 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS }, | |
40979 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40980 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS }, | |
40981 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS }, | |
40982 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS }, | |
40983 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS }, | |
40984 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS }, | |
40985 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS }, | |
40986 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40987 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40988 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
40989 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
40990 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40991 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
40992 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
40993 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, | |
40994 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
40995 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, | |
40996 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, | |
40997 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
40998 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS }, | |
40999 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS }, | |
41000 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS }, | |
41001 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS }, | |
41002 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS }, | |
41003 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
41004 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS }, | |
41005 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
41006 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
41007 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41008 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41009 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41010 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS }, | |
41011 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS }, | |
41012 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS }, | |
41013 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS }, | |
41014 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS }, | |
41015 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41016 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS }, | |
41017 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
41018 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS }, | |
41019 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS }, | |
41020 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
41021 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS }, | |
41022 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS }, | |
41023 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41024 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41025 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41026 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41027 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41028 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS }, | |
41029 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
41030 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS }, | |
41031 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS }, | |
41032 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS }, | |
41033 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41034 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS }, | |
41035 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41036 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
41037 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS }, | |
41038 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS }, | |
41039 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS }, | |
41040 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS }, | |
41041 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41042 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41043 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41044 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41045 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS }, | |
41046 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS }, | |
41047 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41048 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41049 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41050 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41051 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS }, | |
41052 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41053 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
41054 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS }, | |
41055 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS }, | |
41056 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS }, | |
41057 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS }, | |
41058 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41059 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS }, | |
41060 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
41061 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
41062 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
41063 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
41064 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS }, | |
41065 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS }, | |
41066 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS }, | |
41067 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS }, | |
41068 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS }, | |
41069 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS }, | |
41070 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS }, | |
41071 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS }, | |
41072 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS }, | |
41073 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41074 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41075 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS }, | |
41076 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS }, | |
41077 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS }, | |
41078 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS }, | |
41079 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS }, | |
41080 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41081 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41082 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS }, | |
41083 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41084 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41085 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS }, | |
41086 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS }, | |
41087 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS }, | |
41088 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS }, | |
41089 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
41090 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
41091 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
41092 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
41093 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41094 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41095 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41096 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41097 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41098 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41099 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41100 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41101 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41102 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41103 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41104 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41105 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41106 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41107 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS }, | |
41108 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS }, | |
41109 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS }, | |
41110 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS }, | |
41111 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS }, | |
41112 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS }, | |
41113 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS }, | |
41114 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS }, | |
41115 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41116 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41117 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41118 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41119 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS }, | |
41120 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS }, | |
41121 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41122 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS }, | |
41123 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS }, | |
41124 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS }, | |
41125 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS }, | |
41126 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS }, | |
41127 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41128 | { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS }, | |
41129 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41130 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS }, | |
41131 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41132 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41133 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS }, | |
41134 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS }, | |
41135 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS }, | |
41136 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS }, | |
41137 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS }, | |
41138 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS }, | |
41139 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41140 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41141 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41142 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41143 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41144 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41145 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41146 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41147 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS }, | |
41148 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS }, | |
41149 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41150 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41151 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS }, | |
41152 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS }, | |
41153 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS }, | |
41154 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS }, | |
41155 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS }, | |
41156 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41157 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41158 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41159 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41160 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41161 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS }, | |
41162 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS }, | |
41163 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41164 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41165 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS }, | |
41166 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS }, | |
41167 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41168 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41169 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41170 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41171 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS }, | |
41172 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS }, | |
41173 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS }, | |
41174 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS }, | |
41175 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS }, | |
41176 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41177 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS }, | |
41178 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS }, | |
41179 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS }, | |
41180 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41181 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS }, | |
41182 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS }, | |
41183 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41184 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41185 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41186 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS }, | |
41187 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS }, | |
41188 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41189 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS }, | |
41190 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41191 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS }, | |
41192 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS }, | |
41193 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS }, | |
41194 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS }, | |
41195 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41196 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS }, | |
41197 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS }, | |
41198 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41199 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS }, | |
41200 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS }, | |
41201 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41202 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS }, | |
41203 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS }, | |
41204 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41205 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS }, | |
41206 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS }, | |
41207 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS }, | |
41208 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS }, | |
41209 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS }, | |
41210 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS }, | |
41211 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS }, | |
41212 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41213 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS }, | |
41214 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS }, | |
41215 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS }, | |
41216 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS }, | |
41217 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41218 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS }, | |
41219 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS }, | |
41220 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS }, | |
41221 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS }, | |
41222 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41223 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41224 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41225 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS }, | |
41226 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS }, | |
41227 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41228 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS }, | |
41229 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41230 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41231 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41232 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS }, | |
41233 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS }, | |
41234 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS }, | |
41235 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41236 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41237 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS }, | |
41238 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41239 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS }, | |
41240 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41241 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41242 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS }, | |
41243 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41244 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS }, | |
41245 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS }, | |
41246 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41247 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS }, | |
41248 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS }, | |
41249 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS }, | |
41250 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41251 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS }, | |
41252 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS }, | |
41253 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41254 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41255 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS }, | |
41256 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
41257 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS }, | |
41258 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
41259 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS }, | |
41260 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS }, | |
41261 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS }, | |
41262 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41263 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS }, | |
41264 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41265 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41266 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS }, | |
41267 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS }, | |
41268 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41269 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41270 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS }, | |
41271 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS }, | |
41272 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS }, | |
41273 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS }, | |
41274 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS }, | |
41275 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS }, | |
41276 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS }, | |
41277 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS }, | |
41278 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41279 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS }, | |
41280 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41281 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41282 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS }, | |
41283 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41284 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS }, | |
41285 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41286 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS }, | |
41287 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS }, | |
41288 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41289 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS }, | |
41290 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41291 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41292 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS }, | |
41293 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41294 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS }, | |
41295 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41296 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS }, | |
41297 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS }, | |
41298 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS }, | |
41299 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41300 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41301 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41302 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41303 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS }, | |
41304 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS }, | |
41305 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS }, | |
41306 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS }, | |
41307 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS }, | |
41308 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS }, | |
41309 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41310 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS }, | |
41311 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41312 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS }, | |
41313 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41314 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS }, | |
41315 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41316 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS }, | |
41317 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41318 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS }, | |
41319 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41320 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41321 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41322 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41323 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41324 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS }, | |
41325 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41326 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41327 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS }, | |
41328 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS }, | |
41329 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS }, | |
41330 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS }, | |
41331 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS }, | |
41332 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS }, | |
41333 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS }, | |
41334 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
41335 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS }, | |
41336 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS }, | |
41337 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS }, | |
41338 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS }, | |
41339 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS }, | |
41340 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41341 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
41342 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
41343 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, |
41344 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
41345 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
41346 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS }, | |
41347 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41348 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41349 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS }, | |
41350 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS }, | |
41351 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
41352 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41353 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41354 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS }, | |
41355 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS }, | |
41356 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS }, | |
41357 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS }, | |
41358 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS }, | |
41359 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS }, | |
41360 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS }, | |
41361 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS }, | |
41362 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS }, | |
41363 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS }, | |
41364 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS }, | |
41365 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41366 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
41367 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, | |
41368 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41369 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41370 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41371 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41372 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS }, | |
41373 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS }, | |
41374 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41375 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS }, | |
41376 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41377 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41378 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
41379 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
41380 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS }, | |
41381 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
41382 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
41383 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS }, | |
41384 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41385 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS }, | |
41386 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
41387 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS }, | |
41388 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS }, | |
41389 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41390 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41391 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41392 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41393 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
41394 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41395 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41396 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
41397 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
41398 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41399 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
41400 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41401 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41402 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41403 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, | |
41404 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS }, | |
41405 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
41406 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
41407 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41408 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41409 | { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS }, | |
41410 | { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS }, | |
41411 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS }, | |
41412 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS }, | |
41413 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS }, | |
41414 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS }, | |
41415 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
41416 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41417 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41418 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
41419 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41420 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
41421 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
41422 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS }, | |
41423 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41424 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41425 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS }, | |
41426 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41427 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41428 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41429 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
41430 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
41431 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
41432 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41433 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS }, | |
41434 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
41435 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41436 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41437 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS }, | |
41438 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, | |
41439 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
41440 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
41441 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
41442 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41443 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41444 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
41445 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41446 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41447 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
41448 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
41449 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
41450 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
41451 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
41452 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41453 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41454 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41455 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41456 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41457 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41458 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41459 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41460 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
41461 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41462 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41463 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41464 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
41465 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41466 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
41467 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41468 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
41469 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41470 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
41471 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS }, | |
41472 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS }, | |
41473 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41474 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
41475 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
41476 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
41477 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
41478 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
41479 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS }, | |
41480 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
41481 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS }, | |
41482 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS }, | |
41483 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS }, | |
41484 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
41485 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS }, | |
41486 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
41487 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
41488 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS }, | |
41489 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
41490 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
41491 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, | |
41492 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41493 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41494 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41495 | { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41496 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41497 | { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41498 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41499 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41500 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41501 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS }, | |
41502 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41503 | { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS }, | |
41504 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41505 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41506 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS }, | |
41507 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
41508 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
41509 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41510 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
41511 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
41512 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
41513 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
41514 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
41515 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
41516 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
41517 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS }, | |
41518 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, | |
41519 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
41520 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
41521 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS }, | |
41522 | { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS }, | |
41523 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41524 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
41525 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41526 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
41527 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
41528 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
41529 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
41530 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
41531 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
41532 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
41533 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
41534 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
41535 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS }, | |
41536 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41537 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, | |
41538 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
41539 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
41540 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41541 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
41542 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41543 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
41544 | { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
41545 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41546 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41547 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41548 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, | |
41549 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41550 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41551 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, | |
41552 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41553 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41554 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
41555 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41556 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
41557 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS }, | |
41558 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
41559 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
41560 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
41561 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS }, | |
41562 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS }, | |
41563 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
41564 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS }, | |
41565 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS }, | |
41566 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
41567 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41568 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41569 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
41570 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, | |
41571 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS }, | |
41572 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS }, | |
41573 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41574 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS }, | |
41575 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS }, | |
41576 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS }, | |
41577 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41578 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41579 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41580 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
41581 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
41582 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS }, | |
41583 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41584 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41585 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41586 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41587 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41588 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
41589 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41590 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41591 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41592 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
41593 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
41594 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
41595 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41596 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, | |
41597 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41598 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
41599 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
41600 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
41601 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
41602 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
41603 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
41604 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
41605 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41606 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, | |
41607 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41608 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41609 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS }, | |
41610 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41611 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41612 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41613 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41614 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41615 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41616 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
41617 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41618 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
41619 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41620 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
41621 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
41622 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
41623 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41624 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41625 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41626 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41627 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
41628 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
41629 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS }, | |
41630 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS }, | |
41631 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
41632 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41633 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
41634 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41635 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
41636 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
41637 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
41638 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, | |
41639 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41640 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
41641 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41642 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
41643 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, | |
41644 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41645 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
41646 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41647 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41648 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41649 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41650 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41651 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
41652 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
41653 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
41654 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS }, | |
41655 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS }, | |
41656 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS }, | |
41657 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS }, | |
41658 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41659 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, | |
41660 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
41661 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
41662 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
41663 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
41664 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41665 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
41666 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, | |
41667 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
41668 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS }, | |
41669 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41670 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
41671 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41672 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41673 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
41674 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
41675 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
41676 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS }, | |
41677 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
41678 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
41679 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41680 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
41681 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41682 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, | |
41683 | { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
41684 | { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
41685 | { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41686 | { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
41687 | { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41688 | { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
41689 | { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
41690 | { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41691 | { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41692 | { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41693 | { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41694 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
41695 | { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41696 | { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41697 | { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
41698 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41699 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
41700 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS }, | |
41701 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS }, | |
41702 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS }, | |
41703 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS }, | |
41704 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS }, | |
41705 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41706 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
41707 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
41708 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS }, | |
41709 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS }, | |
41710 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS }, | |
41711 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41712 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41713 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS }, | |
41714 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
41715 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS }, | |
41716 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS }, | |
41717 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS }, | |
41718 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS }, | |
41719 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS }, | |
41720 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS }, | |
41721 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
41722 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
41723 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41724 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
41725 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS }, | |
41726 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS }, | |
41727 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41728 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41729 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41730 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41731 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41732 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS }, | |
41733 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41734 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41735 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41736 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41737 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS }, | |
41738 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS }, | |
41739 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS }, | |
41740 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41741 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS }, | |
41742 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS }, | |
41743 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS }, | |
41744 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41745 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41746 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS }, | |
41747 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41748 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS }, | |
41749 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41750 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS }, | |
41751 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41752 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
41753 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41754 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
41755 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41756 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41757 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS }, | |
41758 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41759 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41760 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS }, | |
41761 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS }, | |
41762 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS }, | |
41763 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41764 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS }, | |
41765 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
41766 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS }, | |
1a6bba1e | 41767 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
41768 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS }, |
41769 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41770 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
41771 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
41772 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS }, | |
41773 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41774 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
41775 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
41776 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS }, | |
41777 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41778 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41779 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS }, | |
41780 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS }, | |
41781 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS }, | |
41782 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41783 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
41784 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS }, | |
41785 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS }, | |
41786 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS }, | |
41787 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS }, | |
41788 | { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS }, | |
41789 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
41790 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS }, | |
41791 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS }, | |
41792 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS }, | |
41793 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
41794 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS }, | |
41795 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41796 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41797 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS }, | |
41798 | { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41799 | { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41800 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS }, | |
41801 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS }, | |
41802 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
41803 | { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41804 | { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41805 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS }, | |
41806 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41807 | { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41808 | { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41809 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS }, | |
41810 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
41811 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41812 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41813 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS }, | |
41814 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS }, | |
41815 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS }, | |
41816 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS }, | |
41817 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS }, | |
41818 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS }, | |
41819 | { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41820 | { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41821 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41822 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS }, | |
41823 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41824 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS }, | |
41825 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41826 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS }, | |
41827 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41828 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS }, | |
41829 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS }, | |
41830 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS }, | |
41831 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS }, | |
41832 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS }, | |
41833 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS }, | |
41834 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS }, | |
41835 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS }, | |
41836 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS }, | |
41837 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41838 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41839 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS }, | |
41840 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS }, | |
41841 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS }, | |
41842 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS }, | |
41843 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41844 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41845 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS }, | |
41846 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS }, | |
41847 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS }, | |
41848 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS }, | |
41849 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS }, | |
41850 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS }, | |
41851 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS }, | |
41852 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS }, | |
41853 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS }, | |
41854 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS }, | |
41855 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS }, | |
41856 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS }, | |
41857 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41858 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS }, | |
41859 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS }, | |
41860 | { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS }, | |
41861 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS }, | |
41862 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41863 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS }, | |
41864 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS }, | |
41865 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS }, | |
41866 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS }, | |
41867 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS }, | |
41868 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41869 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS }, | |
41870 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS }, | |
41871 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS }, | |
41872 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS }, | |
41873 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS }, | |
41874 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS }, | |
41875 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS }, | |
41876 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
41877 | { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS }, | |
41878 | { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
41879 | { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
41880 | { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS }, | |
41881 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS }, | |
41882 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
41883 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
41884 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
41885 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
41886 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
41887 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
41888 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
41889 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
41890 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
41891 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
41892 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS }, | |
41893 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS }, | |
41894 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41895 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
41896 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41897 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS }, | |
41898 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
41899 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS }, | |
41900 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS }, | |
41901 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS }, | |
41902 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS }, | |
41903 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41904 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS }, | |
41905 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS }, | |
41906 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS }, | |
41907 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS }, | |
41908 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS }, | |
41909 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
41910 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
41911 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
41912 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
41913 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
41914 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
41915 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
41916 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
41917 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41918 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS }, | |
41919 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS }, | |
41920 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS }, | |
41921 | { NULL, NULL } | |
41922 | }; | |
41923 | ||
41924 | ||
41925 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41926 | ||
41927 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41928 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41929 | } | |
41930 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41931 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41932 | } | |
41933 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41934 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41935 | } | |
41936 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41937 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41938 | } | |
41939 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41940 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41941 | } | |
41942 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41943 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41944 | } | |
41945 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41946 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41947 | } | |
41948 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41949 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41950 | } | |
41951 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41952 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41953 | } | |
41954 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41955 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41956 | } | |
41957 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41958 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41959 | } | |
41960 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41961 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41962 | } | |
41963 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41964 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41965 | } | |
41966 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41967 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41968 | } | |
41969 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41970 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41971 | } | |
41972 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41973 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41974 | } | |
41975 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41976 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41977 | } | |
41978 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41979 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41980 | } | |
41981 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41982 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41983 | } | |
41984 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41985 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41986 | } | |
41987 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41988 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41989 | } | |
41990 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41991 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41992 | } | |
41993 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41994 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41995 | } | |
41996 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41997 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41998 | } | |
41999 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42000 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42001 | } | |
42002 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42003 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42004 | } | |
42005 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42006 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42007 | } | |
42008 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42009 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42010 | } | |
42011 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42012 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42013 | } | |
42014 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42015 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42016 | } | |
42017 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42018 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42019 | } | |
42020 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42021 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42022 | } | |
42023 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42024 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42025 | } | |
42026 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42027 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42028 | } | |
42029 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42030 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42031 | } | |
42032 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42033 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42034 | } | |
42035 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42036 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42037 | } | |
42038 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42039 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42040 | } | |
42041 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42042 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42043 | } | |
42044 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42045 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42046 | } | |
42047 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42048 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42049 | } | |
42050 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42051 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42052 | } | |
42053 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42054 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42055 | } | |
42056 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42057 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42058 | } | |
42059 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42060 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42061 | } | |
42062 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42063 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42064 | } | |
42065 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42066 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42067 | } | |
42068 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42069 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42070 | } | |
42071 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42072 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42073 | } | |
42074 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42075 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42076 | } | |
42077 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42078 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42079 | } | |
42080 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42081 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42082 | } | |
42083 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42084 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42085 | } | |
42086 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42087 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42088 | } | |
42089 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42090 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42091 | } | |
42092 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42093 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42094 | } | |
42095 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42096 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42097 | } | |
42098 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42099 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42100 | } | |
42101 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42102 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42103 | } | |
42104 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42105 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42106 | } | |
42107 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42108 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42109 | } | |
42110 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42111 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42112 | } | |
42113 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42114 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42115 | } | |
42116 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42117 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42118 | } | |
42119 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42120 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42121 | } | |
42122 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42123 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42124 | } | |
42125 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42126 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42127 | } | |
42128 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42129 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42130 | } | |
42131 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42132 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42133 | } | |
42134 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42135 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42136 | } | |
42137 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42138 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42139 | } | |
42140 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42141 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42142 | } | |
42143 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42144 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42145 | } | |
42146 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42147 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42148 | } | |
42149 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42150 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42151 | } | |
42152 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42153 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42154 | } | |
42155 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42156 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42157 | } | |
42158 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42159 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42160 | } | |
42161 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42162 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42163 | } | |
42164 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42165 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42166 | } | |
42167 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42168 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42169 | } | |
42170 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42171 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42172 | } | |
42173 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42174 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42175 | } | |
42176 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42177 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42178 | } | |
42179 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42180 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42181 | } | |
42182 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42183 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42184 | } | |
42185 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42186 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42187 | } | |
42188 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42189 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42190 | } | |
42191 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42192 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42193 | } | |
42194 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42195 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42196 | } | |
42197 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42198 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42199 | } | |
42200 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42201 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42202 | } | |
42203 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42204 | return (void *)((wxObject *) ((wxImage *) x)); | |
42205 | } | |
42206 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42207 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42208 | } | |
42209 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42210 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42211 | } | |
42212 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42213 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42214 | } | |
42215 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42216 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42217 | } | |
42218 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42220 | } | |
42221 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42222 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42223 | } | |
42224 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42225 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42226 | } | |
42227 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42228 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42229 | } | |
42230 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42231 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42232 | } | |
42233 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42234 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42235 | } | |
42236 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42237 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42238 | } | |
42239 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42240 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42241 | } | |
42242 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42243 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42244 | } | |
42245 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42246 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42247 | } | |
42248 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42249 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42250 | } | |
42251 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42252 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42253 | } | |
42254 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42255 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42256 | } | |
42257 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42258 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42259 | } | |
42260 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42261 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42262 | } | |
42263 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42264 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42265 | } | |
42266 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42267 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42268 | } | |
42269 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42270 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42271 | } | |
42272 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42273 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42274 | } | |
42275 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42276 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42277 | } | |
42278 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42279 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42280 | } | |
42281 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42282 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42283 | } | |
42284 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42285 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42286 | } | |
42287 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42288 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42289 | } | |
42290 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42291 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42292 | } | |
42293 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42294 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42295 | } | |
42296 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42297 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42298 | } | |
42299 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42300 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42301 | } | |
42302 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42303 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42304 | } | |
42305 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42306 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42307 | } | |
42308 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42309 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42310 | } | |
42311 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42312 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42313 | } | |
42314 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42315 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42316 | } | |
42317 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42318 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42319 | } | |
42320 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42321 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42322 | } | |
42323 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42324 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42325 | } | |
42326 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42327 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42328 | } | |
42329 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42330 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42331 | } | |
42332 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42333 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42334 | } | |
42335 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42336 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42337 | } | |
42338 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42339 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42340 | } | |
42341 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42342 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42343 | } | |
42344 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42345 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42346 | } | |
42347 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42348 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42349 | } | |
42350 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42351 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42352 | } | |
42353 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42354 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42355 | } | |
42356 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42357 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42358 | } | |
42359 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42360 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42361 | } | |
42362 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42363 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42364 | } | |
42365 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42366 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42367 | } | |
42368 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42369 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42370 | } | |
42371 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42372 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42373 | } | |
42374 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42375 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42376 | } | |
42377 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42378 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42379 | } | |
42380 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42381 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42382 | } | |
42383 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42384 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42385 | } | |
42386 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42387 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42388 | } | |
42389 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42390 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42391 | } | |
42392 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42393 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42394 | } | |
42395 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42396 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42397 | } | |
42398 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42399 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42400 | } | |
42401 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42402 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42403 | } | |
42404 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42405 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42406 | } | |
42407 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42408 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42409 | } | |
42410 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42411 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42412 | } | |
42413 | 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}}; | |
42414 | 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}}; | |
42415 | 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}}; | |
42416 | 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}}; | |
42417 | 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}}; | |
42418 | 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}}; | |
42419 | 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}}; | |
42420 | 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}}; | |
42421 | 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}}; | |
42422 | 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}}; | |
42423 | 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}}; | |
42424 | 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}}; | |
42425 | 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}}; | |
42426 | 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}}; | |
42427 | 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}}; | |
42428 | 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}}; | |
42429 | 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}}; | |
42430 | 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}}; | |
42431 | 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}}; | |
42432 | 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}}; | |
42433 | 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}}; | |
42434 | 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}}; | |
42435 | 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}}; | |
42436 | 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}}; | |
42437 | 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}}; | |
42438 | 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}}; | |
42439 | 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}}; | |
42440 | 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}}; | |
42441 | 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}}; | |
42442 | 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}}; | |
42443 | 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}}; | |
42444 | 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}}; | |
42445 | 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}}; | |
42446 | 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}}; | |
42447 | 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}}; | |
42448 | 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}}; | |
42449 | 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}}; | |
42450 | 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}}; | |
42451 | 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}}; | |
42452 | 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}}; | |
42453 | 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}}; | |
42454 | 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}}; | |
42455 | 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}}; | |
42456 | 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}}; | |
42457 | 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}}; | |
42458 | 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}}; | |
42459 | 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}}; | |
42460 | 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}}; | |
42461 | 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}}; | |
42462 | 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}}; | |
42463 | 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}}; | |
42464 | 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}}; | |
42465 | 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}}; | |
42466 | 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}}; | |
42467 | 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}}; | |
42468 | 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}}; | |
42469 | 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}}; | |
42470 | 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}}; | |
42471 | 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}}; | |
42472 | 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}}; | |
42473 | 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}}; | |
42474 | 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}}; | |
42475 | 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}}; | |
42476 | 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}}; | |
42477 | 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}}; | |
42478 | 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}}; | |
42479 | 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}}; | |
42480 | 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}}; | |
42481 | 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}}; | |
42482 | 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}}; | |
42483 | 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}}; | |
42484 | 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}}; | |
42485 | 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}}; | |
42486 | 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}}; | |
42487 | 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}}; | |
42488 | 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}}; | |
42489 | 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}}; | |
42490 | 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}}; | |
42491 | 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}}; | |
42492 | 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}}; | |
42493 | 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}}; | |
42494 | 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}}; | |
42495 | 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}}; | |
42496 | 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}}; | |
42497 | 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}}; | |
42498 | 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}}; | |
42499 | 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}}; | |
42500 | 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}}; | |
42501 | 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}}; | |
42502 | 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}}; | |
42503 | 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}}; | |
42504 | 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}}; | |
42505 | 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}}; | |
42506 | 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}}; | |
42507 | 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}}; | |
42508 | 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}}; | |
42509 | 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}}; | |
42510 | 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}}; | |
42511 | 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}}; | |
42512 | 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}}; | |
42513 | 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}}; | |
42514 | 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}}; | |
42515 | 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}}; | |
42516 | 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}}; | |
42517 | 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}}; | |
42518 | 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}}; | |
42519 | 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}}; | |
42520 | 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}}; | |
42521 | 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}}; | |
42522 | 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}}; | |
42523 | 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}}; | |
42524 | 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}}; | |
42525 | 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}}; | |
42526 | 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}}; | |
42527 | 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}}; | |
42528 | ||
42529 | static swig_type_info *swig_types_initial[] = { | |
42530 | _swigt__p_wxLayoutConstraints, | |
42531 | _swigt__p_wxRealPoint, | |
42532 | _swigt__p_wxSizerItem, | |
42533 | _swigt__p_wxGBSizerItem, | |
42534 | _swigt__p_wxScrollEvent, | |
42535 | _swigt__p_wxIndividualLayoutConstraint, | |
42536 | _swigt__p_wxSizer, | |
42537 | _swigt__p_wxBoxSizer, | |
42538 | _swigt__p_wxStaticBoxSizer, | |
42539 | _swigt__p_wxGridBagSizer, | |
42540 | _swigt__p_wxAcceleratorEntry, | |
42541 | _swigt__p_wxUpdateUIEvent, | |
42542 | _swigt__p_wxMenu, | |
42543 | _swigt__p_wxEvent, | |
42544 | _swigt__p_wxGridSizer, | |
42545 | _swigt__p_wxFlexGridSizer, | |
42546 | _swigt__p_wxInitDialogEvent, | |
42547 | _swigt__p_wxItemContainer, | |
42548 | _swigt__p_wxNcPaintEvent, | |
42549 | _swigt__p_wxPaintEvent, | |
42550 | _swigt__p_wxSysColourChangedEvent, | |
42551 | _swigt__p_wxMouseCaptureChangedEvent, | |
42552 | _swigt__p_wxDisplayChangedEvent, | |
42553 | _swigt__p_wxPaletteChangedEvent, | |
42554 | _swigt__p_wxControl, | |
42555 | _swigt__p_wxFont, | |
42556 | _swigt__p_wxMenuBarBase, | |
42557 | _swigt__p_wxSetCursorEvent, | |
42558 | _swigt__p_wxFSFile, | |
42559 | _swigt__p_wxCaret, | |
42560 | _swigt__p_wxRegion, | |
42561 | _swigt__p_wxPoint2D, | |
42562 | _swigt__p_int, | |
42563 | _swigt__p_wxSize, | |
42564 | _swigt__p_wxDC, | |
42565 | _swigt__p_wxPySizer, | |
42566 | _swigt__p_wxVisualAttributes, | |
42567 | _swigt__p_wxNotifyEvent, | |
42568 | _swigt__p_wxPyEvent, | |
42569 | _swigt__p_wxPropagationDisabler, | |
42570 | _swigt__p_wxAppTraits, | |
42571 | _swigt__p_wxArrayString, | |
42572 | _swigt__p_wxShowEvent, | |
42573 | _swigt__p_wxToolTip, | |
42574 | _swigt__p_wxMaximizeEvent, | |
42575 | _swigt__p_wxIconizeEvent, | |
42576 | _swigt__p_wxActivateEvent, | |
42577 | _swigt__p_wxMoveEvent, | |
42578 | _swigt__p_wxSizeEvent, | |
42579 | _swigt__p_wxQueryNewPaletteEvent, | |
42580 | _swigt__p_wxWindowCreateEvent, | |
42581 | _swigt__p_wxIdleEvent, | |
42582 | _swigt__p_wxMenuItem, | |
42583 | _swigt__p_wxStaticBox, | |
42584 | _swigt__p_long, | |
42585 | _swigt__p_wxTIFFHandler, | |
42586 | _swigt__p_wxXPMHandler, | |
42587 | _swigt__p_wxPNMHandler, | |
42588 | _swigt__p_wxJPEGHandler, | |
42589 | _swigt__p_wxPCXHandler, | |
42590 | _swigt__p_wxGIFHandler, | |
42591 | _swigt__p_wxPNGHandler, | |
42592 | _swigt__p_wxANIHandler, | |
42593 | _swigt__p_wxMemoryFSHandler, | |
42594 | _swigt__p_wxEvtHandler, | |
42595 | _swigt__p_wxCURHandler, | |
42596 | _swigt__p_wxICOHandler, | |
42597 | _swigt__p_wxBMPHandler, | |
42598 | _swigt__p_wxImageHandler, | |
42599 | _swigt__p_wxFileSystemHandler, | |
42600 | _swigt__p_wxPyFileSystemHandler, | |
42601 | _swigt__p_wxInternetFSHandler, | |
42602 | _swigt__p_wxZipFSHandler, | |
42603 | _swigt__p_wxRect, | |
42604 | _swigt__p_wxGBSpan, | |
42605 | _swigt__p_wxPropagateOnce, | |
42606 | _swigt__p_wxAcceleratorTable, | |
42607 | _swigt__p_char, | |
42608 | _swigt__p_wxGBPosition, | |
42609 | _swigt__p_wxImage, | |
42610 | _swigt__p_wxFrame, | |
42611 | _swigt__p_wxScrollWinEvent, | |
42612 | _swigt__p_wxImageHistogram, | |
42613 | _swigt__p_byte, | |
42614 | _swigt__p_wxPoint, | |
42615 | _swigt__p_wxCursor, | |
42616 | _swigt__p_wxObject, | |
42617 | _swigt__p_wxPyInputStream, | |
42618 | _swigt__p_wxOutputStream, | |
42619 | _swigt__p_wxInputStream, | |
42620 | _swigt__p_wxDateTime, | |
42621 | _swigt__p_wxKeyEvent, | |
42622 | _swigt__p_wxNavigationKeyEvent, | |
42623 | _swigt__p_wxWindowDestroyEvent, | |
42624 | _swigt__p_wxWindow, | |
42625 | _swigt__p_wxMenuBar, | |
42626 | _swigt__p_wxFileSystem, | |
42627 | _swigt__p_wxBitmap, | |
42628 | _swigt__p_wxMenuEvent, | |
42629 | _swigt__p_wxContextMenuEvent, | |
42630 | _swigt__p_unsigned_char, | |
42631 | _swigt__p_wxCloseEvent, | |
42632 | _swigt__p_wxEraseEvent, | |
42633 | _swigt__p_wxMouseEvent, | |
42634 | _swigt__p_wxPyApp, | |
42635 | _swigt__p_wxCommandEvent, | |
42636 | _swigt__p_wxPyCommandEvent, | |
42637 | _swigt__p_wxPyDropTarget, | |
42638 | _swigt__p_wxChildFocusEvent, | |
42639 | _swigt__p_wxFocusEvent, | |
42640 | _swigt__p_wxDropFilesEvent, | |
42641 | _swigt__p_wxControlWithItems, | |
42642 | _swigt__p_wxColour, | |
42643 | _swigt__p_wxValidator, | |
42644 | _swigt__p_wxPyValidator, | |
42645 | 0 | |
42646 | }; | |
42647 | ||
42648 | ||
42649 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42650 | ||
42651 | static swig_const_info swig_const_table[] = { | |
42652 | {0}}; | |
42653 | ||
42654 | #ifdef __cplusplus | |
42655 | } | |
42656 | #endif | |
42657 | ||
42658 | #ifdef __cplusplus | |
42659 | extern "C" | |
42660 | #endif | |
42661 | SWIGEXPORT(void) SWIG_init(void) { | |
42662 | static PyObject *SWIG_globals = 0; | |
42663 | static int typeinit = 0; | |
42664 | PyObject *m, *d; | |
42665 | int i; | |
42666 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42667 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42668 | d = PyModule_GetDict(m); | |
42669 | ||
42670 | if (!typeinit) { | |
42671 | for (i = 0; swig_types_initial[i]; i++) { | |
42672 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42673 | } | |
42674 | typeinit = 1; | |
42675 | } | |
42676 | SWIG_InstallConstants(d,swig_const_table); | |
42677 | ||
42678 | ||
42679 | #ifndef wxPyUSE_EXPORT | |
42680 | // Make our API structure a CObject so other modules can import it | |
42681 | // from this module. | |
42682 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42683 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42684 | Py_XDECREF(cobj); | |
42685 | #endif | |
42686 | ||
42687 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND)); | |
42688 | PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL)); | |
42689 | PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL)); | |
42690 | PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION)); | |
42691 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER)); | |
42692 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER)); | |
42693 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER)); | |
42694 | PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER)); | |
42695 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER)); | |
42696 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER)); | |
42697 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW)); | |
42698 | PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER)); | |
42699 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL)); | |
42700 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS)); | |
42701 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW)); | |
42702 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME)); | |
42703 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN)); | |
42704 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN)); | |
42705 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN)); | |
42706 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM)); | |
42707 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT)); | |
42708 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE)); | |
42709 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE)); | |
42710 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN)); | |
42711 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS)); | |
42712 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB)); | |
42713 | PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED)); | |
42714 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE)); | |
42715 | PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED)); | |
42716 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH)); | |
42717 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB)); | |
42718 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB)); | |
42719 | PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT)); | |
42720 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE)); | |
42721 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE)); | |
42722 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED)); | |
42723 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW)); | |
42724 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL)); | |
42725 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER)); | |
42726 | PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD)); | |
42727 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE)); | |
42728 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN)); | |
42729 | PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT)); | |
42730 | PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY)); | |
42731 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL)); | |
42732 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL)); | |
42733 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS)); | |
42734 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS)); | |
42735 | PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP)); | |
42736 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE)); | |
42737 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL)); | |
42738 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL)); | |
42739 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS)); | |
42740 | PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS)); | |
42741 | PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT)); | |
42742 | PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP)); | |
42743 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT)); | |
42744 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM)); | |
42745 | PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH)); | |
42746 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE)); | |
42747 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL)); | |
42748 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL)); | |
42749 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP)); | |
42750 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE)); | |
42751 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE)); | |
42752 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER)); | |
42753 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE)); | |
42754 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE)); | |
42755 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP)); | |
42756 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM)); | |
42757 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT)); | |
42758 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT)); | |
42759 | PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK)); | |
42760 | PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO)); | |
42761 | PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL)); | |
42762 | PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES)); | |
42763 | PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO)); | |
42764 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT)); | |
42765 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT)); | |
42766 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION)); | |
42767 | PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND)); | |
42768 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION)); | |
42769 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION)); | |
42770 | PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP)); | |
42771 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK)); | |
42772 | PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK)); | |
42773 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING)); | |
42774 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR)); | |
42775 | PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD)); | |
42776 | PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD)); | |
42777 | PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET)); | |
42778 | PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP)); | |
42779 | PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE)); | |
42780 | PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP)); | |
42781 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH)); | |
42782 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT)); | |
42783 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO)); | |
42784 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING)); | |
42785 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42786 | PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT)); | |
42787 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE)); | |
42788 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH)); | |
42789 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM)); | |
42790 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW)); | |
42791 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT)); | |
42792 | PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY)); | |
42793 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR)); | |
42794 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST)); | |
42795 | PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN)); | |
42796 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE)); | |
42797 | PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW)); | |
42798 | PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE)); | |
42799 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS)); | |
42800 | PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT)); | |
42801 | PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT)); | |
42802 | PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO)); | |
42803 | PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO)); | |
42804 | PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP)); | |
42805 | PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT)); | |
42806 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP)); | |
42807 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW)); | |
42808 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT)); | |
42809 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS)); | |
42810 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS)); | |
42811 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES)); | |
42812 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT)); | |
42813 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL)); | |
42814 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES)); | |
42815 | PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT)); | |
42816 | PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY)); | |
42817 | PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE)); | |
42818 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR)); | |
42819 | PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND)); | |
42820 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE)); | |
42821 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL)); | |
42822 | PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE)); | |
42823 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE)); | |
42824 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL)); | |
42825 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES)); | |
42826 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS)); | |
42827 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS)); | |
42828 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS)); | |
42829 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST)); | |
42830 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE)); | |
42831 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME)); | |
42832 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE)); | |
42833 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE)); | |
42834 | PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1)); | |
42835 | PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2)); | |
42836 | PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3)); | |
42837 | PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4)); | |
42838 | PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5)); | |
42839 | PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6)); | |
42840 | PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7)); | |
42841 | PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8)); | |
42842 | PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9)); | |
42843 | PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK)); | |
42844 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL)); | |
42845 | PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY)); | |
42846 | PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES)); | |
42847 | PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO)); | |
42848 | PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC)); | |
42849 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD)); | |
42850 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD)); | |
42851 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT)); | |
42852 | PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE)); | |
42853 | PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP)); | |
42854 | PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET)); | |
42855 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP)); | |
42856 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL)); | |
42857 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL)); | |
42858 | PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT)); | |
42859 | PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY)); | |
42860 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE)); | |
42861 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST)); | |
42862 | PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN)); | |
42863 | PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE)); | |
42864 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY)); | |
42865 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT)); | |
42866 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST)); | |
42867 | PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE)); | |
42868 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR)); | |
42869 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT)); | |
42870 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL)); | |
42871 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT)); | |
42872 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL)); | |
42873 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE)); | |
42874 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL)); | |
42875 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT)); | |
42876 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME)); | |
42877 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME)); | |
42878 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME)); | |
42879 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON)); | |
42880 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE)); | |
42881 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF)); | |
42882 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE)); | |
42883 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42884 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE)); | |
42885 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL)); | |
42886 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL)); | |
42887 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42888 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS)); | |
42889 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT)); | |
42890 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND)); | |
42891 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE)); | |
42892 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42893 | PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT)); | |
42894 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC)); | |
42895 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC)); | |
42896 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH)); | |
42897 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH)); | |
42898 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS)); | |
42899 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC)); | |
42900 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC)); | |
42901 | PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS)); | |
42902 | PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC)); | |
42903 | PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE)); | |
42904 | PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER)); | |
42905 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL)); | |
42906 | PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL)); | |
42907 | PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH)); | |
42908 | PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT)); | |
42909 | PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT)); | |
42910 | PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP)); | |
42911 | PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN)); | |
42912 | PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP)); | |
42913 | PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM)); | |
42914 | PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH)); | |
42915 | PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH)); | |
42916 | PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST)); | |
42917 | PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST)); | |
42918 | PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL)); | |
42919 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT)); | |
42920 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL)); | |
42921 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42922 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT)); | |
42923 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP)); | |
42924 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT)); | |
42925 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM)); | |
42926 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL)); | |
42927 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL)); | |
42928 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER)); | |
42929 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE)); | |
42930 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK)); | |
42931 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT)); | |
42932 | PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK)); | |
42933 | PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW)); | |
42934 | PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND)); | |
42935 | PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED)); | |
42936 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE)); | |
42937 | PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE)); | |
42938 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE)); | |
42939 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT)); | |
42940 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE)); | |
42941 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC)); | |
42942 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE)); | |
42943 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED)); | |
42944 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN)); | |
42945 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE)); | |
42946 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK)); | |
42947 | PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT)); | |
42948 | PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE)); | |
42949 | PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN)); | |
42950 | PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT)); | |
42951 | PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS)); | |
42952 | PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN)); | |
42953 | PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE)); | |
42954 | PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE)); | |
42955 | PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED)); | |
42956 | PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL)); | |
42957 | PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT)); | |
42958 | PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD)); | |
42959 | PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC)); | |
42960 | PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT)); | |
42961 | PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID)); | |
42962 | PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT)); | |
42963 | PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH)); | |
42964 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH)); | |
42965 | PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH)); | |
42966 | PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH)); | |
42967 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT)); | |
42968 | PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE)); | |
42969 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH)); | |
42970 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH)); | |
42971 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH)); | |
42972 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH)); | |
42973 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH)); | |
42974 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH)); | |
42975 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL)); | |
42976 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER)); | |
42977 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND)); | |
42978 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND)); | |
42979 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING)); | |
42980 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT)); | |
42981 | PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR)); | |
42982 | PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR)); | |
42983 | PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT)); | |
42984 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE)); | |
42985 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE)); | |
42986 | PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY)); | |
42987 | PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND)); | |
42988 | PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT)); | |
42989 | PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP)); | |
42990 | PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR)); | |
42991 | PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV)); | |
42992 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT)); | |
42993 | PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT)); | |
42994 | PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND)); | |
42995 | PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR)); | |
42996 | PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET)); | |
42997 | PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK)); | |
42998 | PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB)); | |
42999 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN)); | |
43000 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE)); | |
43001 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE)); | |
43002 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE)); | |
43003 | PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START)); | |
43004 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON)); | |
43005 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON)); | |
43006 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL)); | |
43007 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON)); | |
43008 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR)); | |
43009 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT)); | |
43010 | PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT)); | |
43011 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL)); | |
43012 | PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU)); | |
43013 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE)); | |
43014 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL)); | |
43015 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR)); | |
43016 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT)); | |
43017 | PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END)); | |
43018 | PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME)); | |
43019 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT)); | |
43020 | PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP)); | |
43021 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT)); | |
43022 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN)); | |
43023 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT)); | |
43024 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT)); | |
43025 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE)); | |
43026 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT)); | |
43027 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT)); | |
43028 | PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP)); | |
43029 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0)); | |
43030 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1)); | |
43031 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2)); | |
43032 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3)); | |
43033 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4)); | |
43034 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5)); | |
43035 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6)); | |
43036 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7)); | |
43037 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8)); | |
43038 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9)); | |
43039 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY)); | |
43040 | PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD)); | |
43041 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR)); | |
43042 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT)); | |
43043 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL)); | |
43044 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE)); | |
43045 | PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1)); | |
43046 | PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2)); | |
43047 | PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3)); | |
43048 | PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4)); | |
43049 | PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5)); | |
43050 | PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6)); | |
43051 | PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7)); | |
43052 | PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8)); | |
43053 | PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9)); | |
43054 | PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10)); | |
43055 | PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11)); | |
43056 | PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12)); | |
43057 | PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13)); | |
43058 | PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14)); | |
43059 | PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15)); | |
43060 | PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16)); | |
43061 | PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17)); | |
43062 | PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18)); | |
43063 | PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19)); | |
43064 | PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20)); | |
43065 | PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21)); | |
43066 | PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22)); | |
43067 | PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23)); | |
43068 | PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24)); | |
43069 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK)); | |
43070 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL)); | |
43071 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP)); | |
43072 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN)); | |
43073 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE)); | |
43074 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB)); | |
43075 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER)); | |
43076 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1)); | |
43077 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2)); | |
43078 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3)); | |
43079 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4)); | |
43080 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME)); | |
43081 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT)); | |
43082 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP)); | |
43083 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT)); | |
43084 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN)); | |
43085 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR)); | |
43086 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP)); | |
43087 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT)); | |
43088 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN)); | |
43089 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END)); | |
43090 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN)); | |
43091 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT)); | |
43092 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE)); | |
43093 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL)); | |
43094 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY)); | |
43095 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD)); | |
43096 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR)); | |
43097 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT)); | |
43098 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL)); | |
43099 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE)); | |
43100 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT)); | |
43101 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT)); | |
43102 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU)); | |
43103 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE)); | |
43104 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER)); | |
43105 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL)); | |
43106 | PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4)); | |
43107 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET)); | |
43108 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET)); | |
43109 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET)); | |
43110 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL)); | |
43111 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID)); | |
43112 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER)); | |
43113 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT)); | |
43114 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE)); | |
43115 | PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3)); | |
43116 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL)); | |
43117 | PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5)); | |
43118 | PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4)); | |
43119 | PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5)); | |
43120 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO)); | |
43121 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO)); | |
43122 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14)); | |
43123 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17)); | |
43124 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE)); | |
43125 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9)); | |
43126 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10)); | |
43127 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11)); | |
43128 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12)); | |
43129 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14)); | |
43130 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL)); | |
43131 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5)); | |
43132 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3)); | |
43133 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4)); | |
43134 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6)); | |
43135 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65)); | |
43136 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4)); | |
43137 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5)); | |
43138 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6)); | |
43139 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY)); | |
43140 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH)); | |
43141 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL)); | |
43142 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US)); | |
43143 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43144 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43145 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4)); | |
43146 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD)); | |
43147 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11)); | |
43148 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11)); | |
43149 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11)); | |
43150 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE)); | |
43151 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA)); | |
43152 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA)); | |
43153 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA)); | |
43154 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA)); | |
43155 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE)); | |
43156 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE)); | |
43157 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43158 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS)); | |
43159 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS)); | |
43160 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS)); | |
43161 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS)); | |
43162 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE)); | |
43163 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE)); | |
43164 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA)); | |
43165 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA)); | |
43166 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA)); | |
43167 | PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2)); | |
43168 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE)); | |
43169 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43170 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX)); | |
43171 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL)); | |
43172 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL)); | |
43173 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR)); | |
43174 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL)); | |
43175 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK)); | |
43176 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO)); | |
43177 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX)); | |
43178 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE)); | |
43179 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST)); | |
43180 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43181 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43182 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43183 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43184 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB)); | |
43185 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1)); | |
43186 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2)); | |
43187 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST)); | |
43188 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE)); | |
43189 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE)); | |
43190 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43191 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43192 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER)); | |
43193 | PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX)); | |
43194 | PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE)); | |
43195 | PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT)); | |
43196 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL)); | |
43197 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT)); | |
43198 | PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN)); | |
43199 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE)); | |
43200 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE)); | |
43201 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE)); | |
43202 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
43203 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
43204 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID)); | |
43205 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP)); | |
43206 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO)); | |
43207 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR)); | |
43208 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM)); | |
43209 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA)); | |
43210 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM)); | |
43211 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA)); | |
43212 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF)); | |
43213 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF)); | |
43214 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG)); | |
43215 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG)); | |
43216 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM)); | |
43217 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX)); | |
43218 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT)); | |
43219 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON)); | |
43220 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI)); | |
43221 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF)); | |
43222 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR)); | |
43223 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY)); | |
43224 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE)); | |
43225 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW)); | |
43226 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW)); | |
43227 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE)); | |
43228 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR)); | |
43229 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS)); | |
43230 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND)); | |
43231 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM)); | |
43232 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON)); | |
43233 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER)); | |
43234 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON)); | |
43235 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY)); | |
43236 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH)); | |
43237 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL)); | |
43238 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT)); | |
43239 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT)); | |
43240 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW)); | |
43241 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON)); | |
43242 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW)); | |
43243 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS)); | |
43244 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE)); | |
43245 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE)); | |
43246 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING)); | |
43247 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN)); | |
43248 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT)); | |
43249 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH)); | |
43250 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK)); | |
43251 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT)); | |
43252 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW)); | |
43253 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT)); | |
43254 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX)); | |
43255 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); | |
43256 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
43257 | PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart)); | |
43258 | PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent)); | |
43259 | PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd)); | |
43260 | ||
43261 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43262 | ||
43263 | ||
43264 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43265 | ||
43266 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43267 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43268 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43269 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43270 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43271 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
43272 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES)); | |
43273 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM)); | |
43274 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP)); | |
43275 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP)); | |
43276 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY)); | |
43277 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY)); | |
43278 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED)); | |
43279 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE)); | |
43280 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP)); | |
43281 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP)); | |
43282 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW)); | |
43283 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE)); | |
43284 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX)); | |
43285 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); | |
43286 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43287 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43288 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43289 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43290 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43291 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43292 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43293 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43294 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43295 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43296 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43297 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43298 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43299 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43300 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43301 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43302 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43303 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43304 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43305 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43306 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43307 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43308 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43309 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43310 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43311 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43312 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43313 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43314 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43315 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43316 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43317 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43318 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43319 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43320 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43321 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43322 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43323 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43324 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43325 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43326 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43327 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43328 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43329 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43330 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43331 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43332 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43333 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43334 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43335 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43336 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43337 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43338 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43339 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43340 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43341 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43342 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43343 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43344 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43345 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43346 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43347 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43348 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43349 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43350 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43351 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43352 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43353 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43354 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43355 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43356 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43357 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43358 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43359 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43360 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43361 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43362 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43363 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43364 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43365 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43366 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43367 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43368 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43369 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43370 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43371 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43372 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43373 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43374 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43375 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43376 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43377 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43378 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43379 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43380 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43381 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43382 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43383 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43384 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43385 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43386 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43387 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43388 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43389 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43390 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43391 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43392 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43393 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43394 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43395 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43396 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43397 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43398 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
43399 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY)); | |
43400 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE)); | |
43401 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT)); | |
43402 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE)); | |
43403 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT)); | |
43404 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL)); | |
43405 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43406 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL)); | |
43407 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED)); | |
43408 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43409 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43410 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG)); | |
43411 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG)); | |
43412 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS)); | |
43413 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT)); | |
43414 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); | |
43415 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
43416 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL)); | |
43417 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL)); | |
43418 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI)); | |
43419 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE)); | |
43420 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX)); | |
43421 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); | |
43422 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
43423 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE)); | |
43424 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43425 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL)); | |
43426 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); | |
43427 | PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft)); | |
43428 | PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop)); | |
43429 | PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight)); | |
43430 | PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom)); | |
43431 | PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth)); | |
43432 | PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight)); | |
43433 | PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre)); | |
43434 | PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter)); | |
43435 | PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX)); | |
43436 | PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY)); | |
43437 | PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained)); | |
43438 | PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs)); | |
43439 | PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf)); | |
43440 | PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove)); | |
43441 | PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow)); | |
43442 | PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf)); | |
43443 | PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf)); | |
43444 | PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs)); | |
43445 | PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute)); | |
43446 | ||
43447 | // Initialize threading, some globals and such | |
43448 | __wxPyPreStart(d); | |
43449 | ||
43450 | ||
43451 | // Although these are defined in __version__ they need to be here too so | |
43452 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43453 | // versions match. | |
43454 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43455 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43456 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43457 | ||
43458 | } | |
43459 |